/* ============================================================
   VINCIO — STAGE 4B.10.1 PLATFORM CONSOLE
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

.opl-body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background: #f3f7fb;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
}

.opl-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.opl-sidebar {
    width: 245px;
    flex: 0 0 245px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    padding: 18px 14px;
    background:
        linear-gradient(180deg, #0f2b4e 0%, #0b2039 100%);
    color: #fff;
    transition:
        width .18s ease,
        flex-basis .18s ease;
}

.opl-sidebar.collapsed {
    width: 76px;
    flex-basis: 76px;
}

.opl-brand {
    display: grid;
    grid-template-columns: 36px 1fr 34px;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin-bottom: 22px;
}

.opl-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #1769e0;
    color: white;
    font-size: 18px;
}

.opl-brand-copy {
    min-width: 0;
    overflow: hidden;
}

.opl-brand-copy strong {
    display: block;
    white-space: nowrap;
    font-size: 17px;
}

.opl-brand-copy span {
    display: block;
    margin-top: 3px;
    color: #9fb6d0;
    white-space: nowrap;
    font-size: 10px;
}

.opl-sidebar-toggle {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: white;
    cursor: pointer;
}

.opl-sidebar-toggle:hover {
    background: rgba(255,255,255,.15);
}

.opl-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.opl-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    margin-bottom: 5px;
    padding: 10px 11px;
    border-radius: 8px;
    color: #e7eef8;
    text-decoration: none;
    transition: background .14s ease;
    white-space: nowrap;
    overflow: hidden;
}

.opl-nav a:hover {
    background: rgba(33, 116, 226, .28);
}

.opl-nav a > span {
    width: 23px;
    flex: 0 0 23px;
    text-align: center;
    font-style: normal;
}

.opl-nav a > em {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    font-style: normal;
}

.opl-sidebar-bottom {
    flex: 0 0 auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.opl-private-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 9px;
    background: rgba(23,105,224,.15);
    overflow: hidden;
}

.opl-private-note strong,
.opl-user strong {
    display: block;
    white-space: nowrap;
    font-size: 11px;
}

.opl-private-note small,
.opl-user span {
    display: block;
    margin-top: 2px;
    color: #9fb6d0;
    white-space: nowrap;
    font-size: 9px;
}

.opl-user {
    padding: 8px 10px 10px;
    overflow: hidden;
}

.opl-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.opl-logout:hover {
    background: rgba(255,255,255,.08);
}

.opl-sidebar.collapsed .opl-brand-copy,
.opl-sidebar.collapsed .opl-nav a > em,
.opl-sidebar.collapsed .opl-private-note > div,
.opl-sidebar.collapsed .opl-user,
.opl-sidebar.collapsed .opl-logout span {
    display: none;
}

.opl-sidebar.collapsed .opl-brand {
    grid-template-columns: 1fr;
    justify-items: center;
}

.opl-sidebar.collapsed .opl-brand-mark {
    display: none;
}

.opl-sidebar.collapsed .opl-nav a,
.opl-sidebar.collapsed .opl-logout {
    justify-content: center;
}

.opl-sidebar.collapsed .opl-private-note {
    justify-content: center;
}

.opl-main {
    flex: 1 1 auto;
    min-width: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.opl-topbar {
    flex: 0 0 auto;
    min-height: 70px;
    padding: 15px 28px;
    border-bottom: 1px solid #e3e9f1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.opl-topbar > div:first-child strong {
    display: block;
    color: #0f2340;
    font-size: 15px;
}

.opl-topbar > div:first-child span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
}

.opl-topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    font-size: 11px;
}

.opl-access-pill {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #175ec5;
    font-weight: 800;
}

.opl-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    padding: 28px;
}

.opl-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.opl-page-head h1 {
    margin: 3px 0 6px;
    color: #10233f;
    font-size: 31px;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.opl-page-head p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.opl-eyebrow {
    color: #1769e0;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
}

.opl-primary-button,
.opl-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.opl-primary-button {
    border-color: #1769e0;
    background: #1769e0;
    color: #fff;
    box-shadow: 0 5px 13px rgba(23,105,224,.18);
}

.opl-primary-button:hover {
    background: #1259c4;
}

.opl-secondary-button {
    border-color: #cbd5e1;
    background: #fff;
    color: #1e3a5f;
}

.opl-primary-button.full,
.opl-secondary-button.full {
    width: 100%;
}

.opl-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.opl-kpi-card {
    min-height: 108px;
    padding: 16px 18px;
    border: 1px solid #dfe7f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(15,23,42,.04);
}

.opl-kpi-card > span {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.opl-kpi-card > strong {
    display: block;
    margin: 8px 0 4px;
    color: #13294b;
    font-size: 25px;
}

.opl-kpi-card > strong.healthy,
.healthy {
    color: #15803d !important;
}

.opl-kpi-card > strong.warning,
.warning {
    color: #b45309 !important;
}

.opl-kpi-card > strong.danger,
.danger {
    color: #b91c1c !important;
}

.opl-kpi-card > small {
    color: #7b8ca3;
    font-size: 9px;
    line-height: 1.4;
}

.opl-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.opl-card {
    margin-bottom: 18px;
    border: 1px solid #dfe7f0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(15,23,42,.04);
    overflow: hidden;
}

.opl-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 18px 13px;
}

.opl-card-head h2 {
    margin: 0 0 4px;
    color: #17243a;
    font-size: 14px;
}

.opl-card-head p {
    margin: 0;
    color: #7b8ca3;
    font-size: 9px;
}

.opl-card-head a {
    color: #1769e0;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}

.opl-list > div {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid #eef2f7;
}

.opl-list strong {
    display: block;
    color: #203047;
    font-size: 10px;
}

.opl-list small {
    display: block;
    margin-top: 2px;
    color: #7b8ca3;
    font-size: 9px;
}

.opl-list em {
    color: #64748b;
    font-size: 9px;
    font-style: normal;
}

.opl-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.opl-status-dot.green {
    background: #22c55e;
}

.opl-status-dot.blue {
    background: #3b82f6;
}

.opl-boundary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
    padding: 0 18px 18px;
}

.opl-boundary-grid > div {
    padding: 15px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
}

.opl-boundary-grid > div > span {
    font-size: 23px;
}

.opl-boundary-grid strong {
    display: block;
    margin: 8px 0 4px;
    color: #17345a;
    font-size: 11px;
}

.opl-boundary-grid p {
    margin: 0;
    color: #64748b;
    font-size: 9px;
    line-height: 1.45;
}

.opl-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.opl-table {
    width: 100%;
    border-collapse: collapse;
}

.opl-table th {
    padding: 10px 14px;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.opl-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    color: #475569;
    font-size: 10px;
}

.opl-table tr:last-child td {
    border-bottom: 0;
}

.opl-table td strong {
    color: #17243a;
}

.opl-pill {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.opl-pill.green {
    background: #dcfce7;
    color: #166534;
}

.opl-pill.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.opl-pill.amber {
    background: #fef3c7;
    color: #92400e;
}

.opl-empty,
.opl-empty-cell {
    padding: 25px 18px !important;
    color: #94a3b8 !important;
    text-align: center;
    font-size: 10px !important;
}

.opl-security-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.opl-status-card {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #dfe7f0;
    border-radius: 11px;
    background: #fff;
}

.opl-status-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #eff6ff;
}

.opl-status-card strong {
    display: block;
    color: #17243a;
    font-size: 11px;
}

.opl-status-card p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 9px;
}

.opl-status-card em {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
}

.opl-status-card em.good {
    background: #dcfce7;
    color: #166534;
}

.opl-status-card em.warn {
    background: #fef3c7;
    color: #92400e;
}

.opl-settings-list > div {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
    padding: 13px 18px;
    border-bottom: 1px solid #eef2f7;
}

.opl-settings-list > div:last-child {
    border-bottom: 0;
}

.opl-settings-list span {
    color: #64748b;
    font-size: 10px;
}

.opl-settings-list strong {
    color: #17243a;
    font-size: 10px;
}

.opl-coming-soon {
    padding: 32px;
    text-align: center;
}

.opl-coming-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: #eaf2ff;
    color: #1769e0;
    font-size: 27px;
}

.opl-coming-soon h2 {
    margin: 15px 0 6px;
    color: #17243a;
}

.opl-coming-soon > p {
    max-width: 580px;
    margin: 0 auto;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

.opl-coming-list {
    width: min(620px, 100%);
    margin: 22px auto 0;
    text-align: left;
}

.opl-coming-list > div {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    color: #475569;
    font-size: 10px;
}

.opl-coming-list span {
    margin-right: 8px;
    color: #16a34a;
    font-weight: 900;
}

.opl-alert {
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 9px;
    font-size: 10px;
    line-height: 1.45;
}

.opl-alert.info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.opl-alert.danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

/* ============================================================
   PLATFORM LOGIN
   ============================================================ */

.opl-login-body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    background:
        radial-gradient(
            circle at top,
            #eaf2ff 0%,
            #f7f9fc 44%,
            #eef2f7 100%
        );
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
}

.opl-login-shell {
    width: min(450px, 100%);
}

.opl-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.opl-login-brand > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #1769e0;
    color: #fff;
    font-size: 21px;
}

.opl-login-brand strong {
    display: block;
    color: #10233f;
    font-size: 20px;
}

.opl-login-brand small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 9px;
}

.opl-login-card {
    padding: 30px;
    border: 1px solid #dbe3ed;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(15,23,42,.12);
    text-align: center;
}

.opl-login-lock {
    margin-bottom: 10px;
    font-size: 31px;
}

.opl-login-card h1 {
    margin: 5px 0 8px;
    color: #10233f;
    font-size: 25px;
}

.opl-login-card > p {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.55;
}

.opl-login-card form {
    text-align: left;
}

.opl-login-card label {
    display: block;
    margin-bottom: 13px;
}

.opl-login-card label > span {
    display: block;
    margin-bottom: 5px;
    color: #334155;
    font-size: 10px;
    font-weight: 800;
}

.opl-login-card input[type="text"],
.opl-login-card input[type="password"] {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    outline: none;
}

.opl-login-card input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.opl-login-card ul.errorlist {
    margin: 5px 0 0;
    padding: 0;
    color: #b91c1c;
    font-size: 9px;
    list-style: none;
}

.opl-login-security {
    margin-top: 17px;
    padding: 11px 12px;
    border: 1px solid #dbeafe;
    border-radius: 9px;
    background: #f8fbff;
    text-align: left;
}

.opl-login-security strong {
    display: block;
    color: #1e3a8a;
    font-size: 9px;
}

.opl-login-security span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 8px;
    line-height: 1.4;
}

.opl-login-footer {
    margin-top: 16px;
    color: #64748b;
    font-size: 9px;
    text-align: center;
}

@media (max-width: 1050px) {
    .opl-kpi-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .opl-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .opl-sidebar {
        width: 76px;
        flex-basis: 76px;
    }

    .opl-sidebar .opl-brand-copy,
    .opl-sidebar .opl-nav a > em,
    .opl-sidebar .opl-private-note > div,
    .opl-sidebar .opl-user,
    .opl-sidebar .opl-logout span {
        display: none;
    }

    .opl-sidebar .opl-brand {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .opl-sidebar .opl-brand-mark {
        display: none;
    }

    .opl-sidebar .opl-nav a,
    .opl-sidebar .opl-logout {
        justify-content: center;
    }

    .opl-content {
        padding: 18px;
    }

    .opl-page-head {
        flex-direction: column;
    }

    .opl-kpi-grid,
    .opl-boundary-grid {
        grid-template-columns: 1fr;
    }

    .opl-topbar-user {
        display: none;
    }
}
