﻿:root {
    font-family: Inter,Segoe UI,Arial,sans-serif;
    color: #102044;
    background: #f4f8fc;
    --sid-ink: #081f3e;
    --sid-navy: #0b2f5f;
    --sid-blue: #155e9e;
    --sid-cyan: #0b9cc8;
    --sid-teal: #0f766e;
    --sid-line: #cbd9ea;
    --sid-soft: #eef6ff;
    --sid-gradient: linear-gradient(135deg,#0b2f5f 0%,#155e9e 54%,#0b9cc8 100%);
    --sid-sidebar: linear-gradient(180deg,#0b2f5f 0%,#155e9e 58%,#0b829e 100%);
    --sid-active: linear-gradient(90deg,#155e9e,#0b9cc8)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100vh
}

button, input, select, textarea {
    font: inherit
}

button {
    cursor: pointer
}

.login-body {
    background: #eef6ff;
    padding: 20px
}

.login-frame {
    min-height: calc(100vh - 40px);
    border-radius: 18px;
    background: linear-gradient(110deg,#e8f4ff 0,#fff 44%,#fff 100%);
    box-shadow: 0 18px 50px #12213a22;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    position: relative
}

    .login-frame:before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 5% 5%,#bfe0ff80,transparent 26%),radial-gradient(circle at 12% 100%,#8cc8ff70,transparent 30%);
        pointer-events: none
    }

.login-shell {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: center;
    width: min(1260px,88vw);
    margin: auto
}

.sid-brand-row {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 55px
}

.sid-word {
    font-size: 92px;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(90deg,#17499d,#18a6dd);
    -webkit-background-clip: text;
    color: transparent
}

.sid-divider {
    width: 1px;
    height: 86px;
    background: #777
}

.sid-text {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    color: #666
}

.brand-panel h1 {
    font-size: 44px;
    line-height: 1.12;
    margin: 0 0 18px;
    color: #09275c
}

.brand-panel p {
    font-size: 18px;
    line-height: 1.55;
    color: #274064
}

.feature-list {
    display: grid;
    gap: 20px;
    margin-top: 32px
}

    .feature-list div {
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: 16px;
        align-items: center
    }

    .feature-list span {
        grid-row: span 2;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #e3efff;
        color: #075bd8;
        font-size: 25px;
        font-weight: 800
    }

    .feature-list b {
        color: #09275c
    }

    .feature-list small {
        color: #2f456b;
        font-size: 15px
    }

.login-card {
    background: #fff;
    border: 1px solid #e7ecf5;
    border-radius: 12px;
    padding: 56px;
    box-shadow: 0 20px 55px #12213a20;
    display: grid;
    gap: 20px
}

    .login-card h2 {
        font-size: 38px;
        margin: 0;
        color: #071b40
    }

.muted {
    color: #53627c;
    margin: 0
}

.login-card label {
    display: grid;
    gap: 10px;
    font-weight: 700;
    color: #102044
}

.login-card input, .login-card select {
    height: 54px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 16px;
    background: white;
    color: #33415c
}

.remember {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    font-weight: 500 !important
}

    .remember input {
        width: 20px;
        height: 20px
    }

.login-card button {
    height: 56px;
    border: 0;
    border-radius: 6px;
    background: #075bd8;
    color: white;
    font-weight: 800;
    font-size: 16px
}

.sso-button {
    background: white !important;
    color: #075bd8 !important
}

.or-line {
    height: 1px;
    background: #e2e8f0;
    position: relative;
    margin: 12px 0
}

    .or-line span {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        background: white;
        color: #64748b;
        padding: 0 16px
    }

.error {
    color: #dc2626;
    min-height: 22px
}

.secondary {
    background: #edf3ff !important;
    color: #1e40af !important
}

footer {
    position: relative;
    text-align: center;
    padding: 20px;
    color: #52617b
}

.admin-body {
    display: grid;
    grid-template-columns: 270px 1fr;
    background: #f5f8fc;
    color: #102044;
    transition: grid-template-columns .18s ease
}

.admin-sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg,#17499d,#159b8e);
    color: white;
    padding: 14px 14px 22px;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px
}

.sid-mini {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #159b8e;
    display: grid;
    place-items: center;
    font-weight: 900;
    letter-spacing: 2px
}

.sid-logo-left {
    width: 66px;
    height: 48px;
    object-fit: cover;
    object-position: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 10px 24px #001a3533
}

.sidebar-brand b {
    font-size: 15px
}

.sidebar-brand em {
    font-style: normal
}

.admin-sidebar button {
    border: 0;
    background: transparent;
    color: white;
    border-radius: 8px;
    padding: 13px 12px;
    text-align: left;
    font-weight: 700;
    display: flex;
    gap: 12px;
    align-items: center;
    white-space: nowrap
}

.admin-sidebar button span {
    width: 24px;
    min-width: 24px;
    text-align: center;
    font-size: 18px
}

    .admin-sidebar button.nav-active {
        background: linear-gradient(90deg,#0f766e,#159b8e)
    }

.nav-section {
    font-size: 12px;
    color: #b6c7da;
    margin: 18px 8px 8px;
    border-bottom: 1px solid #ffffff25;
    padding-bottom: 8px
}

.sidebar-foot {
    margin-top: auto;
    color: #b6c7da;
    font-size: 12px;
    line-height: 1.6;
    padding: 8px
}

.admin-main {
    min-width: 0
}

.admin-topbar {
    height: 62px;
    background: white;
    border-bottom: 1px solid #e5eaf2;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 22px
}

.hamburger, .logout-btn, .product-switch {
    border: 0;
    background: white;
    color: #08244a;
    font-weight: 800
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 6px
}

.top-search {
    margin-left: auto;
    width: min(430px,35vw);
    height: 38px;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px
}

    .top-search input {
        border: 0;
        outline: 0;
        flex: 1
    }

.product-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    padding: 8px 12px;
    background: #f8fbff
}

    .product-switch span {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #0f766e;
        color: white
    }

.admin-user {
    font-weight: 700
}

.view {
    padding: 22px
}

.view-page {
    margin: -22px;
    min-width: 0
}

.view-content {
    padding: 22px;
    display: grid;
    gap: 18px;
    min-width: 0
}

.dash-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px
}

    .dash-head h1 {
        font-size: 26px;
        margin: 0 0 6px
    }

    .dash-head p {
        margin: 0;
        color: #52617b
    }

.date-pill {
    border: 1px solid #dbe3ef;
    background: white;
    border-radius: 8px;
    padding: 10px 14px;
    color: #18345d
}

.dashboard-date-filter {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap
}

.dashboard-date-filter label {
    display: grid;
    gap: 5px;
    color: #173a83;
    font-size: 12px;
    font-weight: 800
}

.dashboard-date-filter input {
    height: 42px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: white;
    color: #18345d;
    padding: 0 12px;
    font: inherit
}

.dashboard-date-filter button {
    height: 42px;
    border-radius: 8px;
    padding: 0 14px;
    border: 1px solid #c8d5e6;
    background: #08244a;
    color: white;
    font-weight: 900
}

.dashboard-date-filter button.secondary {
    background: white;
    color: #08244a
}

.page-banner {
    min-height: 94px;
    height: auto;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 18px;
    padding-bottom: 18px
}

.page-banner p {
    margin: 6px 0 0;
    color: #e8f4ff
}

.page-banner .dashboard-date-filter label {
    color: white
}

.page-banner .dashboard-date-filter input {
    border-color: #ffffff66
}

.page-banner .dashboard-date-filter button {
    border-color: #ffffff55;
    box-shadow: 0 10px 24px #001a3528
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
    margin-bottom: 22px
}

.dash-card {
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: white;
    min-height: 132px;
    padding: 22px;
    display: grid;
    grid-template-columns: 76px 1fr;
    text-align: left;
    align-items: center;
    box-shadow: 0 14px 30px #1020440d
}

    .dash-card i {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: white;
        font-size: 28px;
        grid-row: span 3
    }

    .dash-card span {
        font-weight: 700
    }

    .dash-card strong {
        font-size: 28px
    }

    .dash-card small {
        color: #16a34a
    }

    .dash-card.green i {
        background: #2fb65d
    }

    .dash-card.blue i {
        background: #2878f0
    }

    .dash-card.orange i {
        background: #f59e0b
    }

    .dash-card.red i {
        background: #ef4444
    }

.wide-stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    background: white;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 22px
}

    .wide-stats div {
        display: grid;
        grid-template-columns: 60px 1fr;
        gap: 2px 14px;
        border-right: 1px solid #e5eaf2
    }

        .wide-stats div:last-child {
            border-right: 0
        }

    .wide-stats i {
        grid-row: span 3;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #e9f6ef;
        color: #16a34a;
        font-size: 26px
    }

    .wide-stats span {
        color: #52617b
    }

    .wide-stats strong {
        font-size: 24px
    }

    .wide-stats small {
        color: #16a34a
    }

.dashboard-insights {
    display: grid;
    grid-template-columns: minmax(320px,.85fr) minmax(520px,1.15fr);
    gap: 18px;
    align-items: start
}

.dashboard-insights > .panel {
    min-width: 0
}

.dashboard-status-panel {
    grid-column: 1/-1;
    display: grid;
    gap: 16px;
    overflow: visible
}

.status-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px
}

.status-panel-head h2 {
    margin-bottom: 6px !important
}

.status-panel-head p {
    margin: 0;
    color: #52617b
}

.status-panel-head > strong {
    min-width: 74px;
    height: 52px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #f7fbff;
    color: #08244a;
    font-size: 24px;
    border: 1px solid #dbe3ef
}

.status-metrics {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px
}

.status-metric {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fbff;
    padding: 14px;
    display: grid;
    gap: 4px
}

.status-metric span {
    color: #52617b;
    font-weight: 800
}

.status-metric strong {
    color: #08244a;
    font-size: 26px
}

.status-metric small {
    color: #64748b
}

.status-metric.good {
    border-color: #bbebcb;
    background: #f0fbf4
}

.status-metric.warn {
    border-color: #ffe0a3;
    background: #fff9ec
}

.status-progress {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    background: #e8eef7
}

.status-progress span {
    display: block;
    min-width: 0
}

.activated-fill {
    background: #42bd69
}

.pending-fill {
    background: #f59e0b
}

.dashboard-table-panel {
    overflow: hidden
}

.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px
}

.panel-title-row h2 {
    margin: 0 !important
}

.panel-title-row span {
    border: 1px solid #dbe3ef;
    background: #f8fbff;
    color: #40516e;
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 900;
    white-space: nowrap
}

.dashboard-table-scroll {
    overflow: auto;
    max-height: 480px;
    border-radius: 8px
}

.dashboard-table-scroll table {
    min-width: 560px
}

.pending-panel .dashboard-table-scroll table {
    min-width: 760px
}

@media(max-width:1180px) {
    .dashboard-insights {
        grid-template-columns: minmax(0,1fr)
    }
}

.panel, .key-card {
    background: white;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    box-shadow: 0 14px 30px #1020440d;
    padding: 20px;
    overflow: auto
}

    .panel h2, .key-card h2 {
        margin: 0 0 18px;
        font-size: 18px
    }

.donut {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 18px auto;
    background: conic-gradient(#42bd69 0 82%,#f59e0b 82% 93%,#ef4444 93%);
    display: grid;
    place-items: center;
    position: relative
}

    .donut:after {
        content: "";
        position: absolute;
        inset: 32px;
        background: white;
        border-radius: 50%
    }

    .donut b, .donut span {
        position: relative;
        z-index: 1
    }

    .donut span {
        margin-top: 32px;
        color: #52617b
    }

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px
}

.green-dot {
    background: #42bd69
}

.orange-dot {
    background: #f59e0b
}

table {
    width: 100%;
    border-collapse: collapse
}

th, td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #edf1f5;
    font-size: 13px
}

th {
    color: #40516e;
    background: #f8fbff
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 4px 10px;
    background: #eef4ff;
    color: #173a83;
    font-weight: 900;
    white-space: nowrap
}

.status-activated {
    background: #eaf8ef;
    color: #166534
}

.status-pending, .status-new {
    background: #fff7e6;
    color: #9a5b00
}

.status-cancelled, .status-expired, .status-failed {
    background: #feecec;
    color: #991b1b
}

.table-action-cell {
    width: 1%;
    white-space: nowrap
}

.table-action-btn, .resend-mail-btn {
    border: 1px solid #c8d5e6;
    border-radius: 8px;
    background: white;
    color: #08244a;
    padding: 7px 10px;
    font-weight: 900
}

.reset-expired-btn {
    border-color: #f6c453;
    background: #fff7e6;
    color: #9a5b00
}

.table-action-btn:disabled, .resend-mail-btn:disabled {
    opacity: .65
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(220px,1fr));
    gap: 16px
}

.grid-span {
    grid-column: 1/-1
}

.form-grid label, .key-card label {
    display: grid;
    gap: 8px;
    font-weight: 800;
    color: #263a5d
}

.form-grid input, .key-card input, .key-card select, .finder-row input {
    height: 44px;
    border: 1px solid #cbd7e8;
    border-radius: 8px;
    padding: 0 12px;
    background: white
}

.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px
}

    .search-row input {
        flex: 1;
        border: 1px solid #cbd7e8;
        border-radius: 8px;
        padding: 0 12px
    }

.key-page {
    margin: -22px
}

.key-banner {
    height: 94px;
    background: linear-gradient(100deg,#2c58a6,#14a8b8);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 40px
}

    .key-banner small {
        font-weight: 900
    }

    .key-banner h1 {
        margin: 4px 0 0;
        font-size: 28px
    }

.key-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 22px;
    padding: 28px 42px
}

.section-title {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px
}

    .section-title i {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        background: linear-gradient(135deg,#2c58d5,#18a6dd)
    }

    .section-title h2 {
        margin: 0
    }

    .section-title p {
        margin: 4px 0 0;
        color: #52617b
    }

.spread {
    justify-content: space-between
}

.finder-row {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 8px;
    margin: 8px 0
}

    .finder-row button {
        border: 0;
        border-radius: 8px;
        background: #173a83;
        color: white;
        font-size: 21px
    }

.finder-results {
    display: grid;
    gap: 6px;
    margin-bottom: 8px
}

.client-pick {
    border: 0;
    background: #edf5ff;
    color: #173a83;
    border-radius: 8px;
    padding: 9px;
    text-align: left
}

.company-badge {
    display: inline-block;
    background: #e8f0ff;
    color: #1e40af;
    border: 1px solid #bcd0ff;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    margin-bottom: 12px
}

.key-card form {
    display: grid;
    gap: 16px
}

.action-row {
    display: flex;
    gap: 12px
}

    .action-row button {
        border: 0;
        border-radius: 8px;
        background: linear-gradient(90deg,#2c58d5,#14a8b8);
        color: white;
        font-weight: 800;
        padding: 12px 18px
    }

.generated textarea {
    width: 100%;
    height: 220px;
    border: 1px solid #cbd7e8;
    border-radius: 8px;
    padding: 16px;
    font-family: Consolas,monospace;
    font-size: 14px;
    line-height: 1.6
}

.generated b {
    display: block;
    margin-top: 12px;
    color: #475569
}

.history-card {
    margin-top: 20px
}

@media(max-width:1100px) {
    .admin-body {
        grid-template-columns: 1fr
    }

    .admin-sidebar {
        display: none
    }

    .dashboard-cards, .wide-stats, .dashboard-insights, .key-layout {
        grid-template-columns: 1fr
    }

    .login-shell {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .otp-shell {
        grid-template-columns: 1fr;
        width: min(520px,100%);
        padding: 0 18px;
        gap: 24px
    }

    .otp-hero {
        text-align: center
    }

    .otp-brand {
        justify-content: center
    }

    .otp-hero h1 {
        font-size: 34px
    }

    .otp-status-row {
        justify-content: center
    }

    .brand-panel {
        display: none
    }

    .top-search {
        display: none
    }
}

.login-body {
    height: 100vh;
    overflow: hidden
}

.login-frame {
    height: calc(100vh - 40px);
    min-height: 0
}

.login-shell {
    height: 100%;
    gap: 48px
}

.sid-brand-row {
    margin-bottom: 38px
}

.sid-word {
    font-size: 78px
}

.sid-divider {
    height: 72px
}

.sid-text {
    font-size: 21px
}

.brand-panel h1 {
    font-size: 40px
}

.feature-list {
    gap: 14px;
    margin-top: 24px
}

    .feature-list span {
        width: 48px;
        height: 48px
    }

.login-card {
    padding: 42px;
    gap: 16px
}

    .login-card h2 {
        font-size: 34px
    }

    .login-card input, .login-card select, .login-card button {
        height: 50px
    }

.otp-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px,.95fr) minmax(340px,460px);
    align-items: center;
    gap: 48px;
    width: min(1080px,90vw);
    margin: auto
}

.otp-frame {
    background: linear-gradient(135deg,#f7fbff 0,#eef7ff 48%,#ffffff 100%)
}

.otp-frame:before {
    background: radial-gradient(circle at 8% 8%,#b8ecff70,transparent 24%),radial-gradient(circle at 88% 18%,#d8f7ed85,transparent 22%),linear-gradient(120deg,#ffffff00,#dfefff70)
}

.otp-hero {
    min-width: 0
}

.otp-hero h1 {
    margin: 0 0 14px;
    color: #071b40;
    font-size: 46px;
    line-height: 1.08
}

.otp-hero p {
    margin: 0;
    color: #385172;
    font-size: 18px;
    line-height: 1.55;
    max-width: 540px
}

.otp-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px
}

.otp-status-row span {
    border: 1px solid #cfe0f3;
    background: #ffffffb8;
    color: #173a83;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    box-shadow: 0 10px 24px #10204412
}

.otp-card {
    border-radius: 8px;
    padding: 36px;
    box-shadow: 0 26px 70px #0f274625;
    min-width: 0;
    width: 100%
}

.otp-card-head {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    align-items: center
}

.otp-mark {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#17499d,#159b8e);
    color: white;
    font-weight: 900;
    letter-spacing: 1px
}

.otp-card h2 {
    font-size: 30px
}

.otp-timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #cfe0f3;
    background: #f7fbff;
    border-radius: 8px;
    padding: 12px 14px;
    color: #173a83;
    font-weight: 800
}

.otp-timer strong {
    min-width: 68px;
    text-align: right;
    color: #0f766e;
    font-size: 22px;
    line-height: 1;
    font-variant-numeric: tabular-nums
}

.otp-card input {
    min-width: 0;
    width: 100%;
    text-align: center;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 8px;
    color: #071b40
}

.otp-card button {
    width: 100%
}

.otp-card input::placeholder {
    color: #b7c4d6
}

@media(max-width:560px) {
    .otp-body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
        padding: 10px
    }

    .otp-frame {
        min-height: calc(100vh - 20px);
        height: auto
    }

    .otp-shell {
        padding: 24px 10px;
        gap: 18px
    }

    .otp-hero {
        display: none
    }

    .otp-brand {
        margin-bottom: 14px
    }

    .otp-brand .sid-login-logo {
        width: min(220px,100%)
    }

    .otp-hero h1 {
        font-size: 28px
    }

    .otp-hero p {
        font-size: 15px
    }

    .otp-status-row {
        display: none
    }

    .otp-card {
        padding: 24px 18px
    }

    .otp-card-head {
        grid-template-columns: 48px 1fr
    }

    .otp-mark {
        width: 48px;
        height: 48px
    }

    .otp-card h2 {
        font-size: 26px
    }

    .otp-card input {
        font-size: 22px;
        letter-spacing: 6px
    }
}

@media(max-height:780px) {
    .sid-brand-row {
        margin-bottom: 24px
    }

    .brand-panel h1 {
        font-size: 34px
    }

    .feature-list {
        gap: 10px
    }

    .login-card {
        padding: 32px;
        gap: 12px
    }

        .login-card h2 {
            font-size: 30px
        }

    .or-line {
        margin: 4px 0
    }
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #ffffff88;
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin .8s linear infinite;
    vertical-align: middle
}

.login-card button:disabled {
    opacity: .8;
    cursor: wait
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.input-finder {
    display: grid;
    grid-template-columns: 1fr 86px;
    gap: 8px
}

    .input-finder button {
        border: 0;
        border-radius: 8px;
        background: #173a83;
        color: white;
        font-weight: 800
    }

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: #0f172a80;
    display: grid;
    place-items: center;
    z-index: 1000
}

.finder-modal {
    width: min(680px,92vw);
    max-height: 75vh;
    overflow: auto;
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 24px 70px #0004
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px
}

    .modal-head h2 {
        margin: 0
    }

    .modal-head button {
        border: 0;
        background: #eef2ff;
        color: #1e3a8a;
        border-radius: 8px;
        width: 36px;
        height: 36px;
        font-size: 24px
    }

.finder-modal input {
    width: 100%;
    height: 44px;
    border: 1px solid #cbd7e8;
    border-radius: 8px;
    padding: 0 12px;
    margin-bottom: 12px
}

.modal-row {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    background: white;
    padding: 12px;
    text-align: left;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    color: #102044
}

    .modal-row:hover {
        background: #f8fbff
    }

.generated[hidden], .history-card[hidden], .modal-backdrop[hidden] {
    display: none !important
}

.section-title:not(.spread) i {
    display: none
}

.key-card.generated textarea:placeholder-shown {
    display: none
}

.spinner[hidden] {
    display: none !important
}

.company-finder {
    width: min(560px,94vw);
    padding: 0;
    border-radius: 7px;
    overflow: hidden;
    background: #f8fafc
}

    .company-finder .modal-head {
        background: #284991;
        color: white;
        margin: 0;
        padding: 14px 20px;
        height: 70px
    }

        .company-finder .modal-head h2 {
            font-size: 16px;
            color: #24324a
        }

        .company-finder .modal-head button {
            width: auto;
            height: 40px;
            padding: 0 18px;
            background: white;
            color: #284991;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 800
        }

    .company-finder label {
        display: block;
        padding: 12px 20px 4px;
        color: #475569;
        font-weight: 800
    }

    .company-finder #modalSearch {
        width: calc(100% - 40px);
        margin: 0 20px 10px;
        height: 44px;
        border: 1px solid #2f5fd0;
        border-radius: 8px;
        box-shadow: 4px 5px 0 #d8e2f8;
        font-size: 16px
    }

    .company-finder #modalRows {
        padding: 0 20px 20px;
        display: grid;
        gap: 8px
    }

.company-row {
    width: 100%;
    border: 1px solid #cbd7e8 !important;
    border-radius: 7px !important;
    background: white !important;
    padding: 9px 14px !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center;
    gap: 12px;
    color: #263238 !important
}

    .company-row b {
        display: block;
        font-size: 15px
    }

    .company-row small {
        display: block;
        color: #5c665f;
        font-size: 13px;
        font-weight: 800
    }

    .company-row time {
        font-weight: 800;
        color: #5c665f
    }

    .company-row:hover {
        background: #f1f6ff !important;
        border-color: #7aa2ff !important
    }

.menu-collapsed {
    grid-template-columns: 76px 1fr
}

    .menu-collapsed .admin-sidebar {
        display: flex;
        padding: 14px 8px 18px;
        align-items: center
    }

    .menu-collapsed .sidebar-brand {
        justify-content: center;
        width: 100%;
        margin-bottom: 22px
    }

    .menu-collapsed .sid-logo-left {
        width: 52px;
        height: 42px;
        border-radius: 8px
    }

    .menu-collapsed .sidebar-brand b,
    .menu-collapsed .nav-section,
    .menu-collapsed .sidebar-foot {
        display: none
    }

    .menu-collapsed .admin-sidebar button {
        width: 52px;
        height: 52px;
        justify-content: center;
        padding: 0;
        gap: 0;
        font-size: 0
    }

    .menu-collapsed .admin-sidebar button span {
        font-size: 22px;
        width: auto;
        min-width: 0
    }

    .menu-collapsed .sidebar-logout img {
        width: 24px;
        height: 24px
    }

.hamburger {
    font-size: 22px
}

.dash-card {
    cursor: pointer
}

    .dash-card:not(button) {
        cursor: default
    }

.form-grid > button.grid-span, .search-row button {
    border: 1px solid #cbd7e8;
    background: white;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 800
}

.product-hrms .admin-sidebar {
    background: linear-gradient(180deg,#17499d,#159b8e)
}

    .product-hrms .admin-sidebar button.nav-active, .product-hrms .action-row button {
        background: linear-gradient(90deg,#0f766e,#159b8e)
    }

.product-hrms .key-banner {
    background: linear-gradient(100deg,#17499d,#159b8e)
}

.product-hrms .product-switch span, .product-hrms .sid-mini {
    background: #159b8e
}

.product-hrms .dash-card.green i {
    background: #16a34a
}

.product-hrms .dash-card.blue i {
    background: #2563eb
}

.product-hrms .dash-card.orange i {
    background: #f59e0b
}

.product-hrms .dash-card.red i {
    background: #ef4444
}

.product-tax .admin-sidebar {
    background: linear-gradient(180deg,#7c3aed,#06b6d4)
}

    .product-tax .admin-sidebar button.nav-active, .product-tax .action-row button {
        background: linear-gradient(90deg,#7c3aed,#06b6d4)
    }

.product-tax .key-banner {
    background: linear-gradient(100deg,#7c3aed,#06b6d4)
}

.product-tax .product-switch span, .product-tax .sid-mini {
    background: #7c3aed
}

.product-tax .dash-card.green i {
    background: #7c3aed
}

.product-tax .dash-card.blue i {
    background: #06b6d4
}

.product-tax .dash-card.orange i {
    background: #f97316
}

.product-tax .dash-card.red i {
    background: #e11d48
}

.product-tax .company-finder .modal-head {
    background: #4c1d95
}

.product-tax .company-finder #modalSearch {
    border-color: #7c3aed;
    box-shadow: 4px 5px 0 #ede9fe
}

.company-finder .modal-head h2 {
    color: white !important
}

.finder-row {
    grid-template-columns: 1fr 78px
}

    .finder-row button {
        font-size: 14px;
        font-weight: 900;
        letter-spacing: 0;
        background: #173a83
    }

.product-tax .finder-row button {
    background: #7c3aed
}

.save-client-btn {
    background: linear-gradient(90deg,#0f766e,#159b8e) !important;
    color: white !important;
    border: 0 !important
}

.product-tax .save-client-btn {
    background: linear-gradient(90deg,#7c3aed,#06b6d4) !important
}

.form-message {
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 800
}

    .form-message.success {
        background: #dcfce7;
        color: #166534;
        border: 1px solid #86efac
    }

    .form-message.danger {
        background: #fee2e2;
        color: #991b1b;
        border: 1px solid #fecaca
    }

.page-error h2 {
    color: #991b1b
}

.page-error p {
    color: #475569;
    white-space: pre-wrap
}

.top-search button {
    border: 0;
    background: white;
    color: #102044;
    font-weight: 900;
    font-size: 18px
}

.view > .panel + .panel {
    margin-top: 18px
}

.dashboard-cards button.dash-card {
    font: inherit;
    color: inherit
}

.client-id-tools {
    grid-template-columns: 1fr 48px 48px
}

    .client-id-tools button {
        font-size: 20px
    }

.product-tax .client-id-tools {
    color: #7c3aed !important
}

.sid-login-logo {
    display: block;
    width: min(760px,100%);
    height: auto;
    object-fit: contain
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 40px;
    padding: 0;
    overflow: hidden;
    text-indent: -999px
}

.finder-icon {
    background-image: url('/img/icon-finder.png') !important
}

.new-icon, .create-icon {
    background-image: none !important;
    background-color: #3fa34d !important;
    border-radius: 4px;
    filter: brightness(1.05);
    text-indent: 0 !important;
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 900;
    display: grid;
    place-items: center;
    box-shadow: inset 0 -2px 0 #2a7d36
}

.top-search button {
    width: 40px;
    height: 36px;
    background: url('/img/icon-finder.png') center/32px 32px no-repeat !important;
    text-indent: -999px;
    overflow: hidden
}

.client-id-tools {
    grid-template-columns: 1fr 40px 40px !important;
    align-items: end
}

.finder-row {
    grid-template-columns: 1fr 40px 40px !important;
    align-items: end
}

.form-grid select {
    height: 44px;
    border: 1px solid #cbd7e8;
    border-radius: 8px;
    padding: 0 12px;
    background: white
}

.field-stack {
    display: grid;
    gap: 8px
}

.radio-group {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 18px;
    align-items: center;
    grid-column: 1/-1
}

    .radio-group legend {
        font-weight: 800;
        color: #263a5d;
        padding: 0 6px
    }

    .radio-group label {
        display: flex !important;
        gap: 8px;
        align-items: center;
        font-weight: 700 !important
    }

    .radio-group input {
        width: 18px;
        height: 18px
    }

.sidebar-logout {
    margin-top: 8px
}

    .sidebar-logout img {
        width: 18px;
        height: 18px;
        background: transparent;
        border-radius: 0;
        padding: 0
    }

.sidebar-logout {
    background: transparent !important
}

.otp-brand {
    margin-bottom: 24px
}

    .otp-brand .sid-login-logo {
        width: min(430px,100%)
    }

.license-option-wrap {
    gap: 6px;
    margin-top: 12px
}

    .license-option-wrap .radio-group {
        margin-top: 0
    }

.key-card .field-stack label {
    margin-bottom: 0
}

.key-card .field-stack input, .key-card .field-stack select {
    margin-top: 0
}

.panel {
    padding: 24px
}

.form-grid {
    gap: 18px 16px
}

    .form-grid input, .form-grid select, .key-card input, .key-card select {
        box-shadow: 0 1px 0 #f1f5f9 inset
    }

    .form-grid label {
        font-size: 14px;
        letter-spacing: .01em
    }

.action-row.grid-span {
    padding-top: 4px
}

.page-loading::before {
    content: "";
    position: fixed;
    inset: 0;
    background: #ffffffaa;
    backdrop-filter: blur(1px);
    z-index: 2000
}

.page-loading::after {
    content: "";
    position: fixed;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid #dbe3ef;
    border-top-color: #1d4ed8;
    animation: spin .8s linear infinite;
    z-index: 2001
}

.finder-row.finder-actions {
    grid-template-columns: minmax(0,1fr) 40px 40px !important
}

.input-finder.client-id-tools {
    grid-template-columns: minmax(0,1fr) 40px 40px !important
}

#createClientBtn.icon-btn.create-icon,
#clientScreenRefresh.icon-btn.new-icon,
.product-tax #createClientBtn.icon-btn.create-icon,
.product-tax #clientScreenRefresh.icon-btn.new-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #3fa34d !important;
    background-image: none !important;
    color: #fff !important;
    text-indent: 0 !important;
    overflow: hidden !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    box-shadow: inset 0 -2px 0 #2a7d36 !important
}

.client-create {
    width: min(620px,94vw) !important;
    max-height: 88vh
}

.client-create .modal-head {
    height: 72px
}

.client-create-form {
    padding: 18px 20px 20px;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px 22px
}

.client-create-form label {
    padding: 0 !important;
    color: #475569;
    font-size: 14px;
    font-weight: 900
}

.client-create-form input,
.client-create-form select {
    width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
    border: 1px solid #c8d6ea !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    font-weight: 700
}

.client-create-form .customer-id-field input {
    background: #eef6ff !important;
    color: #173a83;
    border-color: #b8ccef !important
}

.client-create-form .action-row {
    justify-content: flex-end
}

.client-create-form .save-client-btn {
    min-width: 140px
}

@media(max-width:640px) {
    .client-create-form {
        grid-template-columns: 1fr;
        gap: 14px
    }
}

/* Unified SID theme */
.admin-body {
    background: #f3f7fb;
    color: var(--sid-ink)
}

.admin-sidebar,
.product-hrms .admin-sidebar,
.product-tax .admin-sidebar {
    background: var(--sid-sidebar) !important
}

.key-banner,
.page-banner,
.product-hrms .key-banner,
.product-tax .key-banner,
.company-finder .modal-head,
.client-create .modal-head {
    background: var(--sid-gradient) !important
}

.admin-sidebar button.nav-active,
.product-hrms .admin-sidebar button.nav-active,
.product-tax .admin-sidebar button.nav-active,
.action-row button,
.product-hrms .action-row button,
.product-tax .action-row button,
.save-client-btn,
.product-tax .save-client-btn,
.dashboard-date-filter button,
.finder-row button,
.product-tax .finder-row button {
    background: var(--sid-active) !important;
    color: #fff !important
}

.admin-sidebar button:hover {
    background: #ffffff18
}

.admin-sidebar button.nav-active:hover {
    background: var(--sid-active) !important
}

.sidebar-brand b,
.sidebar-foot,
.nav-section {
    color: #d7e7f6
}

.admin-topbar {
    background: #ffffff;
    border-bottom-color: #d8e4f2
}

.top-search {
    border-color: var(--sid-line);
    background: #f8fbff
}

.top-search button {
    background: var(--sid-blue) !important;
    color: #fff !important;
    border-radius: 0 6px 6px 0
}

.product-switch {
    border-color: var(--sid-line);
    background: #f8fbff;
    color: var(--sid-ink)
}

.product-switch span,
.product-hrms .product-switch span,
.product-tax .product-switch span,
.sid-mini,
.product-hrms .sid-mini,
.product-tax .sid-mini {
    background: var(--sid-blue) !important
}

.page-banner p {
    color: #eaf6ff
}

.dash-card {
    border-color: #d8e4f2
}

.dash-card.green i,
.dash-card.blue i,
.dash-card.orange i,
.dash-card.red i,
.product-hrms .dash-card.green i,
.product-hrms .dash-card.blue i,
.product-hrms .dash-card.orange i,
.product-hrms .dash-card.red i,
.product-tax .dash-card.green i,
.product-tax .dash-card.blue i,
.product-tax .dash-card.orange i,
.product-tax .dash-card.red i {
    background: var(--sid-blue) !important
}

.dash-card.orange i,
.product-hrms .dash-card.orange i,
.product-tax .dash-card.orange i {
    background: var(--sid-cyan) !important
}

.dash-card.red i,
.product-hrms .dash-card.red i,
.product-tax .dash-card.red i {
    background: #0f6f95 !important
}

.modal-backdrop {
    background: #071a2f99
}

.finder-modal,
.client-create {
    border: 1px solid #d8e4f2;
    box-shadow: 0 28px 80px #071a2f40
}

.finder-modal .modal-head {
    margin: -20px -20px 16px;
    padding: 18px 20px;
    border-radius: 14px 14px 0 0
}

.modal-head h2,
.company-finder .modal-head h2 {
    color: #fff !important
}

.modal-head button,
.company-finder .modal-head button {
    background: #ffffff !important;
    color: var(--sid-navy) !important;
    border: 1px solid #d8e4f2 !important;
    font-size: 14px !important;
    font-weight: 900;
    width: auto !important;
    min-width: 76px;
    height: 40px !important;
    padding: 0 14px !important
}

.finder-modal input,
.company-finder #modalSearch,
.product-tax .company-finder #modalSearch,
.client-create-form input,
.client-create-form select {
    border-color: var(--sid-line) !important;
    box-shadow: none !important
}

.finder-modal input:focus,
.company-finder #modalSearch:focus,
.client-create-form input:focus,
.client-create-form select:focus {
    outline: 2px solid #b7ddf2;
    outline-offset: 1px
}

.modal-row,
.company-row {
    border-color: #dfe8f3 !important
}

.modal-row:hover,
.company-row:hover {
    background: #eef6ff !important;
    border-color: #a9cce5 !important
}

.company-row b,
.company-row time {
    color: var(--sid-ink) !important
}

.company-row small {
    color: #536579 !important
}

.client-create-form .customer-id-field input {
    background: var(--sid-soft) !important;
    color: var(--sid-navy) !important;
    border-color: #b8d4ea !important
}

#createClientBtn.icon-btn.create-icon,
#clientScreenRefresh.icon-btn.new-icon,
.product-tax #createClientBtn.icon-btn.create-icon,
.product-tax #clientScreenRefresh.icon-btn.new-icon {
    background: var(--sid-blue) !important;
    box-shadow: inset 0 -2px 0 #0a4678 !important
}

/* Product palettes */
.product-hrms {
    --sid-ink: #061d2f;
    --sid-navy: #07345d;
    --sid-blue: #0f766e;
    --sid-cyan: #159b8e;
    --sid-teal: #159b8e;
    --sid-soft: #edf9f6;
    --sid-gradient: linear-gradient(135deg,#07345d 0%,#0f766e 58%,#159b8e 100%);
    --sid-sidebar: linear-gradient(180deg,#07345d 0%,#0e5f66 62%,#0f766e 100%);
    --sid-active: linear-gradient(90deg,#0f766e,#159b8e)
}

.product-tax {
    --sid-ink: #101828;
    --sid-navy: #273469;
    --sid-blue: #3f5aa8;
    --sid-cyan: #0b83a5;
    --sid-teal: #0b83a5;
    --sid-soft: #eef4ff;
    --sid-gradient: linear-gradient(135deg,#273469 0%,#3f5aa8 58%,#0b83a5 100%);
    --sid-sidebar: linear-gradient(180deg,#273469 0%,#24477f 58%,#0b6f8c 100%);
    --sid-active: linear-gradient(90deg,#3f5aa8,#0b83a5)
}
