﻿:root {
    --blue: #06094c;
    --blue2: #101b8f;
    --cyan: #00a9f5;
    --olive: #9a9b2f;
    --green: #55a630;
    --red: #dc2626;
    --orange: #f97316;
    --border: #8aa0b7;
    --soft-border: #d8e1eb;
    --bg: #f7f9fc;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #5d6675;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 245px;
    background: var(--blue);
    color: white;
    padding: 20px 12px;
    border-right: 1px solid rgba(255,255,255,.08);
}

.sidebar-tagline {
    text-align: center;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.45;
    margin: 4px 10px 28px;
}

.side-nav {
    display: grid;
    gap: 8px;
}

    .side-nav a {
        color: white;
        text-decoration: none;
        display: flex;
        gap: 12px;
        align-items: center;
        padding: 12px 14px;
        border-radius: 7px;
        font-weight: 700;
        font-size: 14px;
    }

        .side-nav a.active,
        .side-nav a:hover {
            background: var(--cyan);
        }

.sidebar-section {
    color: #a8b8ff;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .06em;
    margin: 28px 10px 12px;
}

.side-nav.small a {
    font-weight: 600;
}

.app {
    margin-left: 245px;
    min-height: 100vh;
}

.topbar {
    height: 86px;
    background: white;
    border-bottom: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

    .brand img {
        width: 58px;
        height: 46px;
        object-fit: contain;
    }

    .brand h1 {
        margin: 0;
        font-size: 24px;
    }

.brand-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.pill {
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
}

    .pill.blue {
        background: var(--cyan);
        color: white;
    }

.top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tenant-pill {
    border: 1px solid var(--border);
    padding: 9px 14px;
    border-radius: 7px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    background: white;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--blue);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.tabs {
    background: white;
    border-bottom: 3px solid var(--border);
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 8px;
    overflow: hidden;
}

    .tabs a {
        color: var(--text);
        text-decoration: none;
        font-weight: 700;
        padding: 10px 13px;
        border-radius: 6px;
        font-size: 14px;
    }

        .tabs a.active {
            background: var(--blue);
            color: white;
        }

.hero {
    position: relative;
    overflow: hidden;
    margin: 12px 28px 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    color: white;
    min-height: 190px;
    box-shadow: 0 5px 14px rgba(6,9,76,.25);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: .9;
}

.hero-content {
    position: relative;
    padding: 28px 34px;
    max-width: 760px;
}

.live-dot {
    color: #b9ff9f;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 32px;
    margin: 0 0 8px;
}

.hero p {
    margin: 0;
    color: #dbeafe;
    line-height: 1.5;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

    .hero-badges span {
        border: 1px solid rgba(255,255,255,.18);
        background: rgba(255,255,255,.08);
        border-radius: 10px;
        padding: 11px 15px;
        color: #eaf2ff;
    }

    .hero-badges strong {
        color: white;
    }

.hero-icons {
    position: absolute;
    right: 28px;
    bottom: 28px;
    display: flex;
    gap: 10px;
}

    .hero-icons span {
        border: 1px solid rgba(255,255,255,.2);
        background: rgba(255,255,255,.08);
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 13px;
    }

.metric-grid {
    margin: 0 28px 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.metric-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    min-height: 128px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.metric-title {
    font-weight: 700;
    font-size: 14px;
}

.metric-value {
    font-size: 26px;
    font-weight: 800;
    margin: 28px 0 6px;
}

.metric-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.accent-blue {
    border-left: 4px solid var(--cyan);
}

.accent-olive {
    border-left: 4px solid var(--olive);
}

.accent-cyan {
    border-left: 4px solid var(--cyan);
}

.accent-gray {
    border-left: 4px solid var(--border);
}

.panel {
    margin: 0 28px 22px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.panel h2 {
    margin: 0 0 6px;
}

.panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.status-pill {
    border: 1px solid #75ad29;
    background: #effadf;
    color: #3f7a0d;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.quick-grid {
    display: grid;
    gap: 12px;
}

.code-block {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 12px;
    align-items: center;
    border-top: 1px solid #e5edf5;
    padding-top: 12px;
}

    .code-block label {
        color: var(--muted);
        font-weight: 800;
    }

code {
    background: #eef3f8;
    border: 1px solid #d5e0ea;
    border-radius: 6px;
    padding: 5px 7px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.service-card {
    position: relative;
    border: 1px solid var(--soft-border);
    border-radius: 10px;
    padding: 18px;
    background: #fbfdff;
}

    .service-card.staged {
        border-left: 4px solid var(--olive);
    }

    .service-card.direct {
        border-left: 4px solid var(--cyan);
    }

.service-label {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    background: #eef3f8;
    padding: 4px 8px;
    border-radius: 999px;
}

.service-card h3 {
    margin: 0 0 10px;
}

.service-card code {
    display: inline-block;
    margin-bottom: 12px;
}

.split-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

    .product-grid div {
        border: 1px dashed var(--border);
        border-radius: 10px;
        padding: 16px;
    }

    .product-grid h3 {
        margin: 0 0 8px;
    }

.footer-panel {
    margin: 0 28px 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    padding: 20px 22px;
}

    .footer-panel p {
        margin: 5px 0 0;
        color: var(--muted);
    }

.btn {
    text-decoration: none;
    background: var(--olive);
    color: white;
    padding: 10px 14px;
    border-radius: 7px;
    font-weight: 800;
}

@media (max-width: 1050px) {
    .metric-grid,
    .service-grid,
    .split-panel,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-icons {
        display: none;
    }
}

@media (max-width: 760px) {
    .sidebar {
        position: static;
        width: 100%;
    }

    .powered {
        position: static;
        margin-top: 24px;
    }

    .app {
        margin-left: 0;
    }

    .topbar {
        height: auto;
        padding: 18px;
        align-items: flex-start;
        gap: 14px;
        flex-direction: column;
    }

    .tabs {
        overflow-x: auto;
    }

    .hero,
    .panel,
    .metric-grid,
    .footer-panel {
        margin-left: 14px;
        margin-right: 14px;
    }

    .code-block {
        grid-template-columns: 1fr;
    }
}
.info-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: #eef7ff;
    border-left: 4px solid #00a9f5;
    border-radius: 6px;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}
.sample {
    background: #0f172a;
    color: #e5eefc;
    border-radius: 9px;
    padding: 16px;
    overflow-x: auto;
    border: 1px solid #24324a;
}

    .sample code {
        background: transparent;
        border: 0;
        color: inherit;
        padding: 0;
        font-size: 13px;
    }

.info-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: #eef7ff;
    border-left: 4px solid var(--cyan);
    border-radius: 6px;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}

.docs-table {
    border: 1px solid var(--soft-border);
    border-radius: 10px;
    overflow: hidden;
}

.docs-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--soft-border);
    align-items: center;
}

    .docs-row:last-child {
        border-bottom: 0;
    }

    .docs-row.head {
        background: #eef3f8;
        font-weight: 800;
    }

.doc-list {
    margin-top: 8px;
    line-height: 1.7;
}
.login-panel {
    max-width: 760px;
}

.form-row {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

    .form-row label {
        font-weight: 800;
        color: var(--text);
    }

    .form-row input {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 13px 14px;
        font-size: 15px;
        outline: none;
    }

        .form-row input:focus {
            border-color: var(--cyan);
            box-shadow: 0 0 0 3px rgba(0, 169, 245, 0.16);
        }

.login-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.button-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.btn.secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.error-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 7px;
    background: #fff1f2;
    color: #9f1239;
    border-left: 4px solid #e11d48;
    font-size: 14px;
}
.csv-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.csv-upload-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.import-guide-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field-group {
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

    .field-group strong {
        display: block;
        margin-bottom: 6px;
    }

    .field-group p {
        margin: 0;
    }

    .field-group ul {
        margin: 6px 0 0 18px;
        padding: 0;
    }

.sample-detail {
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

    .sample-detail summary {
        cursor: pointer;
        font-weight: 700;
    }

.mini-sample {
    margin-top: 10px;
    padding: 10px;
    overflow-x: auto;
    font-size: 12px;
}

.csv-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.csv-upload-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.full-width-card {
    grid-column: 1 / -1;
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.field-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 10px;
}

.field-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .field-table th {
        background: #f5f7fa;
        text-align: left;
        padding: 10px;
        border-bottom: 2px solid #d9dee5;
        white-space: nowrap;
    }

    .field-table td {
        padding: 10px;
        border-bottom: 1px solid #eceff3;
        vertical-align: top;
    }

    .field-table code {
        background: #eef3ff;
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

.type-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    width: 84px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

    .type-pill.text {
        background: #65a30d;
    }

    .type-pill.number {
        background: #ea580c;
    }

    .type-pill.boolean {
        background: #dc2626;
    }

    .type-pill.date {
        background: #00A9F6;
    }

    .type-pill.datetime {
        background: #92A8C8;
    }

    .type-pill.list {
        background: #DDD809;
    }
.field-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 12px;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
}

.field-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px;
}

    .field-table th {
        background: #f3f7fb;
        color: #0b1f3a;
        text-align: left;
        padding: 10px 12px;
        border-bottom: 1px solid #d9e2ef;
        font-weight: 700;
    }

    .field-table td {
        padding: 10px 12px;
        border-bottom: 1px solid #edf2f7;
        vertical-align: top;
        line-height: 1.35;
    }

    .field-table tr:last-child td {
        border-bottom: none;
    }

    .field-table th:nth-child(1),
    .field-table td:nth-child(1) {
        width: 22%;
    }

    .field-table th:nth-child(2),
    .field-table td:nth-child(2) {
        width: 11%;
    }

    .field-table th:nth-child(3),
    .field-table td:nth-child(3) {
        width: 12%;
    }

    .field-table th:nth-child(4),
    .field-table td:nth-child(4) {
        width: 20%;
    }

    .field-table th:nth-child(5),
    .field-table td:nth-child(5) {
        width: 35%;
    }

    .field-table code {
        display: inline-block;
        background: #eef5fb;
        border: 1px solid #d6e2ee;
        color: #0b1f3a;
        padding: 4px 7px;
        border-radius: 6px;
        font-size: 12px;
        white-space: nowrap;
    }

.type-pill {
    display: inline-block;
    min-width: 66px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.field-table td:nth-child(3) {
    font-weight: 700;
}

.sample-detail {
    margin-top: 14px;
}

.sample-detail summary {
    cursor: pointer;
    font-weight: 700;
    color: #0b1f3a;
    margin-bottom: 8px;
}
.lookup-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #0b5cab;
    text-decoration: none;
}

    .lookup-link:hover {
        text-decoration: underline;
    }

.lookup-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.lookup-window {
    width: 680px;
    max-width: 95%;
    max-height: 80vh;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.lookup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #f5f7fa;
    border-bottom: 1px solid #d9e2ef;
}

    .lookup-header h3 {
        margin: 0;
    }

    .lookup-header button {
        border: 1px solid #b8c7d9;
        background: #fff;
        border-radius: 8px;
        padding: 6px 10px;
        cursor: pointer;
        font-weight: 700;
    }

.lookup-body {
    padding: 18px;
    overflow-y: auto;
    max-height: 65vh;
}
.powered {
    position: absolute;
    left: 16px;
    bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.10);
    font-size: 12px;
    opacity: .92;
}

    .powered img {
        width: 32px;
        height: 32px;
        object-fit: contain;
        flex-shrink: 0;
    }

.powered-text {
    line-height: 1.15;
    min-width: 180px;
}

.powered-label {
    color: #92A8C8;
    font-size: 12px;
}

.powered-name {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.powered-version {
    display: block;
    margin-top: 4px;
    color: rgba(146,168,200,0.60);
    font-size: 11px;
}