:root {
    --inv-sidebar-bg: #111827;
    --inv-sidebar-bg-2: #0b1220;
    --inv-sidebar-text: #cbd5e1;
    --inv-sidebar-muted: #64748b;
    --inv-sidebar-active: #f8fafc;
    --inv-accent: #0f766e;
    --inv-accent-2: #14b8a6;
    --inv-body: #f5f7fb;
    --inv-card: #ffffff;
    --inv-border: #e5e7eb;
    --inv-text: #111827;
    --inv-muted: #64748b;
    --inv-soft: #f8fafc;
    --inv-radius: 14px;
    --inv-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--inv-body);
    color: var(--inv-text);
}

a { text-decoration: none; }

.inv-auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, .18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, .14), transparent 30%),
        #0f172a;
    padding: 24px;
}

.inv-auth-card {
    width: min(440px, 100%);
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.inv-auth-logo {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--inv-accent), var(--inv-accent-2));
    margin-bottom: 18px;
}

.inv-app-shell {
    display: flex;
    min-height: 100vh;
}

.inv-sidebar {
    width: 252px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--inv-sidebar-bg), var(--inv-sidebar-bg-2));
    color: var(--inv-sidebar-text);
    position: fixed;
    inset: 0 auto 0 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    z-index: 40;
}

.inv-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 6px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 10px;
}

.inv-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--inv-accent), var(--inv-accent-2));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: .02em;
}

.inv-brand-title { color: white; font-weight: 800; line-height: 1.1; font-size: 14px; }
.inv-brand-subtitle { color: var(--inv-sidebar-muted); font-size: 11px; margin-top: 2px; }

.inv-nav-section { margin-top: 10px; }
.inv-nav-label {
    color: var(--inv-sidebar-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 14px 8px 7px;
}
.inv-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--inv-sidebar-text);
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    transition: all .18s ease;
}
.inv-nav-link:hover,
.inv-nav-link.active {
    color: var(--inv-sidebar-active);
    background: rgba(255,255,255,.09);
}
.inv-nav-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    font-size: 12px;
}
.inv-nav-soon {
    margin-left: auto;
    font-size: 10px;
    color: #99f6e4;
    border: 1px solid rgba(153,246,228,.25);
    border-radius: 999px;
    padding: 2px 7px;
}
.inv-sidebar-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 12px;
    font-size: 11px;
    color: var(--inv-sidebar-muted);
}

.inv-main {
    margin-left: 252px;
    width: calc(100% - 252px);
    min-height: 100vh;
}

.inv-topbar {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--inv-border);
    position: sticky;
    top: 0;
    z-index: 30;
}

.inv-content { padding: 22px; }
.inv-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.inv-page-kicker {
    color: var(--inv-accent);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .09em;
    font-weight: 800;
    margin-bottom: 4px;
}
.inv-page-title {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0;
}
.inv-page-subtitle {
    color: var(--inv-muted);
    margin-top: 5px;
    font-size: 12px;
}

.inv-card {
    background: var(--inv-card);
    border: 1px solid var(--inv-border);
    border-radius: var(--inv-radius);
    box-shadow: var(--inv-shadow);
}
.inv-card-body { padding: 12px; }
.inv-card-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--inv-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.inv-card-title { margin: 0; font-size: 15px; font-weight: 800; }
.inv-card-subtitle { margin-top: 4px; color: var(--inv-muted); font-size: 12px; }

.inv-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.inv-kpi-card {
    background: #fff;
    border: 1px solid var(--inv-border);
    border-radius: 14px;
    padding: 15px;
    box-shadow: var(--inv-shadow);
    min-height: 108px;
}
.inv-kpi-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.inv-kpi-label { color: var(--inv-muted); font-size: 12px; font-weight: 700; }
.inv-kpi-value { font-size: 18px; font-weight: 850; margin-top: 9px; letter-spacing: -.02em; }
.inv-kpi-hint { color: var(--inv-muted); font-size: 11px; margin-top: 7px; }
.inv-kpi-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--inv-accent);
    background: rgba(20,184,166,.12);
    font-size: 15px;
}

.inv-btn {
    border: 0;
    border-radius: 10px;
    font-weight: 800;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}
.inv-btn-primary { background: var(--inv-accent); color: white; }
.inv-btn-primary:hover { background: #115e59; color: white; }
.inv-btn-soft { background: var(--inv-soft); color: var(--inv-text); border: 1px solid var(--inv-border); }
.inv-btn-danger { background: #dc2626; color: white; }
.inv-btn-block { width: 100%; }

.inv-form-label { font-size: 12px; font-weight: 800; color: #334155; margin-bottom: 7px; }
.inv-form-control {
    width: 100%;
    border: 1px solid var(--inv-border);
    border-radius: 12px;
    padding: 9px 11px;
    outline: none;
    background: white;
}
.inv-form-control:focus { border-color: rgba(20,184,166,.8); box-shadow: 0 0 0 4px rgba(20,184,166,.12); }
.inv-form-group { margin-bottom: 13px; }

.inv-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
.inv-table th {
    text-align: left;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--inv-border);
}
.inv-table td { padding: 10px 12px; border-bottom: 1px solid var(--inv-border); color: #334155; }
.inv-table tr:last-child td { border-bottom: 0; }

.inv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 800;
}
.inv-badge-success { background: #dcfce7; color: #166534; }
.inv-badge-warning { background: #fef3c7; color: #92400e; }
.inv-badge-muted { background: #f1f5f9; color: #475569; }

.inv-alert {
    border-radius: 12px;
    padding: 11px 13px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    font-size: 13px;
}
.inv-alert-success { background: #ecfdf5; border-color: #bbf7d0; color: #166534; }
.inv-alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.inv-empty {
    text-align: center;
    padding: 34px 16px;
    color: var(--inv-muted);
}
.inv-empty-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--inv-soft);
    margin: 0 auto 10px;
    font-size: 18px;
}

.inv-mobile-toggle { display: none; }

@media (max-width: 1120px) {
    .inv-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .inv-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .inv-sidebar.open { transform: translateX(0); }
    .inv-main { margin-left: 0; width: 100%; }
    .inv-topbar { padding: 0 18px; }
    .inv-content { padding: 20px; }
    .inv-mobile-toggle { display: inline-flex; }
    .inv-page-header { flex-direction: column; }
}

@media (max-width: 560px) {
    .inv-kpi-grid { grid-template-columns: 1fr; }
    .inv-auth-card { padding: 24px; }
    .inv-page-title { font-size: 23px; }
}

/* V1.0B Master Data */
.inv-filter-card {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--inv-border);
    border-radius: var(--inv-radius);
    box-shadow: var(--inv-shadow);
    padding: 12px;
}
.inv-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(150px, .8fr) minmax(150px, .8fr) auto;
    gap: 10px;
    align-items: end;
}
.inv-filter-grid-compact {
    grid-template-columns: minmax(240px, 1.5fr) minmax(150px, .8fr) auto;
}
.inv-filter-actions,
.inv-row-actions,
.inv-form-footer,
.inv-check-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.inv-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}
.inv-form-grid-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
}
.inv-form-footer {
    justify-content: flex-end;
    padding-top: 14px;
    border-top: 1px solid var(--inv-border);
    margin-top: 8px;
}
.inv-check-row {
    background: #f8fafc;
    border: 1px solid var(--inv-border);
    border-radius: 14px;
    padding: 10px 12px;
    margin: 2px 0 18px;
}
.inv-check-row label {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}
.inv-check-row input { margin-right: 6px; }
.inv-form-error {
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
}
.inv-muted-small {
    color: var(--inv-muted);
    font-size: 12px;
}
.inv-btn-sm {
    padding: 6px 9px;
    border-radius: 9px;
    font-size: 11px;
}
.inv-pagination-wrap {
    padding: 10px 16px 0;
}
.inv-pagination-wrap .pagination {
    margin-bottom: 0;
}
.inv-pagination-wrap .page-link {
    border-radius: 10px;
    margin: 0 2px;
    color: var(--inv-accent);
    border-color: var(--inv-border);
    font-weight: 700;
}
.inv-pagination-wrap .active .page-link {
    background: var(--inv-accent);
    border-color: var(--inv-accent);
}

@media (max-width: 1020px) {
    .inv-filter-grid,
    .inv-filter-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .inv-filter-grid,
    .inv-filter-grid-compact,
    .inv-form-grid {
        grid-template-columns: 1fr;
    }
    .inv-form-footer,
    .inv-filter-actions {
        justify-content: stretch;
    }
    .inv-form-footer .inv-btn,
    .inv-filter-actions .inv-btn {
        flex: 1;
    }
}

/* V1.0B1 Universal Numbering */
.inv-readonly-code {
    background: #f8fafc;
    color: #0f766e;
    font-weight: 850;
    letter-spacing: .04em;
}
.inv-system-note {
    color: var(--inv-muted);
    font-size: 12px;
    font-weight: 650;
    margin-top: 6px;
}


/* V1.0B2 Compact Premium Density + Lifecycle Controls */
body { font-size: 14px; }
.inv-topbar .fw-bold { font-size: 14px; }
.inv-topbar .small { font-size: 12px; }
.inv-brand { gap: 10px; }
.inv-nav-link { min-height: 40px; }
.inv-card { overflow: hidden; }
.inv-btn-success { background: #16a34a; color: #fff; }
.inv-btn-success:hover { background: #15803d; color: #fff; }
.inv-btn-outline-danger { background: #fff; color: #dc2626; border: 1px solid #fecaca; }
.inv-btn-outline-danger:hover { background: #fef2f2; color: #b91c1c; }
.inv-row-actions { flex-wrap: nowrap; }
.inv-row-actions form { margin: 0; }
.inv-filter-card { margin-bottom: 16px !important; }
.inv-filter-grid label,
.inv-form-label { display: block; }
.inv-table strong { font-weight: 800; }
.inv-density-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #0f766e;
    background: rgba(20,184,166,.10);
    border: 1px solid rgba(20,184,166,.16);
    border-radius: 999px;
    padding: 4px 8px;
}

@media (max-width: 860px) {
    .inv-sidebar { width: 252px; }
    .inv-topbar { height: 58px; padding: 0 14px; }
    .inv-content { padding: 16px; }
}
.inv-nav-link { font-size: 13px; border-radius: 10px; gap: 10px; }

/* V1.0C Voucher Engine */
.inv-voucher-filter-grid {
    grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .8fr) minmax(140px, .75fr) minmax(130px, .75fr) minmax(130px, .75fr) auto;
}
.inv-advance-filter-grid {
    grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .8fr) minmax(130px, .75fr) minmax(130px, .75fr) auto;
}
.inv-report-filter-grid {
    grid-template-columns: repeat(5, minmax(145px, 1fr)) auto;
}
.inv-report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.inv-report-card {
    display: block;
    background: #fff;
    border: 1px solid var(--inv-border);
    border-radius: var(--inv-radius);
    box-shadow: var(--inv-shadow);
    padding: 14px;
    color: var(--inv-text);
    min-height: 108px;
}
.inv-report-card:hover {
    color: var(--inv-text);
    border-color: rgba(15,118,110,.35);
    transform: translateY(-1px);
}
.inv-report-card-title {
    font-weight: 850;
    font-size: 14px;
    margin-bottom: 8px;
}
.inv-report-totals {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0 0 12px;
}
.inv-report-filter-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 10px;
    color: var(--inv-muted);
    font-size: 11px;
}
.inv-report-filter-summary span {
    border: 1px solid var(--inv-border);
    background: #f8fafc;
    border-radius: 999px;
    padding: 4px 8px;
}
.inv-report-totals > div {
    background: #f8fafc;
    border: 1px solid var(--inv-border);
    border-radius: 12px;
    padding: 9px 11px;
}
.inv-report-totals span {
    display: block;
    color: var(--inv-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.inv-report-totals strong {
    display: block;
    margin-top: 3px;
    font-size: 13px;
}
.inv-print-heading { display: none; }
.inv-report-table th,
.inv-report-table td {
    white-space: nowrap;
}
.inv-section-title {
    font-size: 13px;
    font-weight: 850;
    color: #111827;
    margin-bottom: 8px;
}
.inv-voucher-lines-wrap {
    border: 1px solid var(--inv-border);
    border-radius: var(--inv-radius);
    padding: 12px;
    background: #fff;
    margin-top: 12px;
}
.inv-voucher-lines-table .inv-form-control {
    min-width: 100%;
    padding: 7px 9px;
    border-radius: 9px;
    font-size: 12px;
}
.inv-voucher-lines-table tfoot th {
    background: #f8fafc;
    color: #111827;
}
.inv-balance-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 850;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
}
.inv-balance-pill.balanced {
    color: #166534;
    background: #dcfce7;
    border-color: #bbf7d0;
}
.inv-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.inv-detail-grid > div {
    border: 1px solid var(--inv-border);
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px 12px;
}
.inv-detail-grid span {
    display: block;
    color: var(--inv-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
}
.inv-detail-grid strong {
    display: block;
    color: #111827;
    font-size: 13px;
}
.inv-narration-box {
    background: #fff;
    border: 1px solid var(--inv-border);
    border-radius: 12px;
    padding: 10px 12px;
}
.inv-attachment-list {
    border-top: 1px solid var(--inv-border);
    padding-top: 12px;
}
.inv-attachment-pill,
.inv-journal-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--inv-border);
    border-radius: 12px;
    padding: 9px 11px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    margin-bottom: 8px;
}
.inv-attachment-pill:hover {
    color: #0f766e;
    border-color: rgba(15,118,110,.35);
}
.inv-truncate {
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1180px) {
    .inv-voucher-filter-grid,
    .inv-report-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .inv-report-grid,
    .inv-report-totals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .inv-voucher-filter-grid,
    .inv-report-filter-grid,
    .inv-report-grid,
    .inv-report-totals,
    .inv-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 11px;
    }
    .inv-sidebar,
    .inv-topbar,
    .inv-print-hide,
    .inv-filter-card,
    .inv-page-header .inv-btn,
    .inv-pagination-wrap {
        display: none !important;
    }
    .inv-main {
        margin-left: 0;
        width: 100%;
    }
    .inv-content {
        padding: 0;
    }
    .inv-card {
        border: 0;
        box-shadow: none;
        border-radius: 0;
    }
    .inv-card-header {
        padding: 8px 0;
    }
    .inv-card-body {
        padding: 0;
    }
    .inv-print-heading {
        display: block;
        margin-bottom: 10px;
        border-bottom: 1px solid #111;
        padding-bottom: 8px;
    }
    .inv-page-header {
        margin-bottom: 10px;
    }
    .inv-page-kicker,
    .inv-page-subtitle {
        color: #333;
    }
    .inv-table {
        font-size: 10px;
        border-collapse: collapse;
    }
    .inv-table th,
    .inv-table td {
        padding: 5px 6px;
        border: 1px solid #ddd;
    }
    .inv-report-totals {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 8px;
    }
}

/* V1.0H0 Premium Compact UI/UX Consistency */
:root {
    --if-font-xs: 11px;
    --if-font-sm: 12px;
    --if-font-md: 13px;
    --if-font-lg: 18px;
    --if-space-1: 4px;
    --if-space-2: 8px;
    --if-space-3: 12px;
    --if-space-4: 16px;
    --if-radius-sm: 7px;
    --if-radius-md: 10px;
    --if-shadow-soft: 0 6px 18px rgba(15, 23, 42, .055);
    --if-border: #e2e8f0;
    --if-muted: #64748b;
    --if-primary: #0f766e;
    --if-primary-dark: #0f3f3a;
    --if-primary-soft: #e6fffb;
    --if-accent: #14b8a6;
    --if-bg: #f6f8fb;
    --if-surface: #ffffff;
    --if-card: #ffffff;
    --if-text: #111827;
    --if-success: #15803d;
    --if-warning: #b45309;
    --if-danger: #b91c1c;
    --inv-border: var(--if-border);
    --inv-muted: var(--if-muted);
    --inv-radius: var(--if-radius-md);
    --inv-shadow: var(--if-shadow-soft);
}

body {
    font-size: var(--if-font-md);
    line-height: 1.42;
    background: #f6f8fb;
}

.inv-sidebar {
    width: 232px;
    padding: 10px;
}
.inv-main {
    margin-left: 232px;
    width: calc(100% - 232px);
}
.inv-brand {
    gap: 9px;
    padding: 5px 5px 12px;
    margin-bottom: 6px;
}
.inv-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 13px;
}
.inv-brand-title {
    font-size: 12.5px;
    max-width: 160px;
}
.inv-brand-subtitle { font-size: 10.5px; }
.inv-nav-section { margin-top: 6px; }
.inv-nav-label {
    font-size: 9.5px;
    letter-spacing: .09em;
    margin: 10px 7px 5px;
}
.inv-nav-link {
    min-height: 35px;
    padding: 6px 8px;
    gap: 8px;
    border-radius: 8px;
    font-size: 12px;
}
.inv-nav-link:hover,
.inv-nav-link.active {
    background: rgba(255, 255, 255, .105);
    box-shadow: inset 2px 0 0 rgba(20, 184, 166, .8);
}
.inv-nav-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    font-size: 10px;
    flex: 0 0 22px;
}
.inv-sidebar-footer {
    padding-top: 9px;
    font-size: 10.5px;
}

.inv-topbar {
    height: 50px;
    padding: 0 16px;
}
.inv-topbar-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--if-primary), var(--if-accent));
    font-size: 11px;
    font-weight: 850;
    box-shadow: 0 6px 16px rgba(15, 118, 110, .18);
}
.inv-topbar .fw-bold { font-size: 12.5px; }
.inv-topbar .small { font-size: 11px; }
.inv-content { padding: 16px; }

.inv-page-header {
    gap: 10px;
    margin-bottom: 12px;
}
.inv-page-kicker {
    font-size: 9.5px;
    margin-bottom: 2px;
}
.inv-page-title {
    font-size: 19px;
    letter-spacing: 0;
}
.inv-page-subtitle {
    font-size: 11.5px;
    margin-top: 3px;
    max-width: 920px;
}
.inv-page-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.inv-card {
    border-radius: var(--if-radius-md);
    box-shadow: var(--if-shadow-soft);
}
.inv-card-header {
    padding: 10px 12px;
    gap: 8px;
}
.inv-card-title {
    font-size: 13px;
    letter-spacing: 0;
}
.inv-card-subtitle {
    font-size: 11px;
    margin-top: 2px;
}
.inv-card-body { padding: 10px; }
.inv-filter-card {
    padding: 9px;
    border-radius: var(--if-radius-md);
    margin-bottom: 12px !important;
}

.inv-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}
.inv-kpi-card {
    border-radius: var(--if-radius-md);
    padding: 10px;
    min-height: 82px;
}
.inv-kpi-top { gap: 8px; }
.inv-kpi-label { font-size: 10.5px; }
.inv-kpi-value {
    font-size: 15px;
    margin-top: 5px;
    letter-spacing: 0;
}
.inv-kpi-hint {
    font-size: 10.5px;
    margin-top: 4px;
    line-height: 1.25;
}
.inv-kpi-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    font-size: 11px;
}

.inv-btn {
    min-height: 30px;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.1;
}
.inv-btn-sm {
    min-height: 25px;
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 10.5px;
}
.inv-btn-soft:hover {
    background: #eef2f7;
    color: var(--inv-text);
}
.inv-btn-danger,
.inv-btn-outline-danger {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}
.inv-btn-outline-danger:hover {
    background: #b91c1c;
    color: #fff;
}

.inv-form-grid { gap: 8px 10px; }
.inv-form-group { margin-bottom: 9px; }
.inv-form-label {
    font-size: 11px;
    margin-bottom: 4px;
}
.inv-form-control {
    min-height: 32px;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
}
select.inv-form-control {
    padding-right: 24px;
    text-overflow: ellipsis;
}
.inv-form-control:focus {
    box-shadow: 0 0 0 3px rgba(20,184,166,.10);
}
.inv-form-error {
    font-size: 10.5px;
    margin-top: 4px;
}
.inv-form-help {
    color: var(--if-muted);
    font-size: 10.5px;
    margin-top: 4px;
}
.inv-form-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    color: var(--if-text);
    font-size: 12px;
    font-weight: 700;
}
.inv-form-check input {
    width: 14px;
    height: 14px;
    accent-color: var(--if-primary);
}
.inv-permission-matrix {
    display: grid;
    gap: 10px;
}
.inv-permission-group {
    border: 1px solid var(--if-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.inv-permission-group-title {
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 850;
    color: var(--if-primary);
    background: var(--if-primary-soft);
    border-bottom: 1px solid var(--if-border);
}
.inv-permission-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 4px 10px;
    padding: 8px 10px;
}
.inv-form-footer {
    padding-top: 10px;
    margin-top: 6px;
}
.inv-system-note,
.inv-muted-small {
    font-size: 10.8px;
}
.inv-check-row {
    border-radius: 9px;
    padding: 8px 10px;
    margin-bottom: 12px;
}
.inv-check-row label { font-size: 11px; }

.inv-table {
    font-size: 12px;
}
.inv-table th {
    font-size: 10px;
    letter-spacing: .045em;
    padding: 7px 9px;
    vertical-align: middle;
}
.inv-table td {
    padding: 7px 9px;
    vertical-align: middle;
}
.inv-table strong { font-weight: 780; }
.inv-report-table th,
.inv-report-table td {
    white-space: nowrap;
}
.inv-truncate { max-width: 230px; }

.inv-badge {
    padding: 3px 7px;
    font-size: 10px;
    border-radius: 999px;
    gap: 4px;
}
.inv-badge-success {
    background: #dcfce7;
    color: #166534;
}
.inv-badge-warning {
    background: #fef3c7;
    color: #92400e;
}
.inv-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}
.inv-badge-muted {
    background: #eef2f7;
    color: #475569;
}
.inv-badge-info,
.inv-badge-primary {
    background: #e0f2fe;
    color: #075985;
}

.inv-alert {
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 12px;
    margin-bottom: 10px;
}
.inv-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.inv-empty {
    padding: 20px 12px;
    font-size: 12px;
}
.inv-empty-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 7px;
}

.inv-filter-grid {
    grid-template-columns: minmax(190px, 1.4fr) repeat(2, minmax(138px, .85fr)) auto;
    gap: 8px;
}
.inv-filter-grid-compact {
    grid-template-columns: minmax(180px, 1.3fr) minmax(130px, .8fr) auto;
}
.inv-voucher-filter-grid {
    grid-template-columns: minmax(185px, 1.3fr) repeat(5, minmax(126px, .8fr)) auto;
}
.inv-advance-filter-grid {
    grid-template-columns: minmax(185px, 1.3fr) repeat(4, minmax(126px, .8fr)) auto;
}
.inv-report-filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)) auto;
}
.inv-filter-actions,
.inv-row-actions,
.inv-form-footer,
.inv-check-row {
    gap: 5px;
}

.inv-report-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}
.inv-report-card {
    border-radius: var(--if-radius-md);
    padding: 10px;
    min-height: 82px;
}
.inv-report-card-title {
    font-size: 12.5px;
    margin-bottom: 5px;
}
.inv-report-totals {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding-bottom: 8px;
}
.inv-report-totals > div {
    border-radius: 8px;
    padding: 7px 8px;
}
.inv-report-totals span {
    font-size: 9.5px;
}
.inv-report-totals strong {
    font-size: 12px;
    margin-top: 2px;
}
.inv-report-filter-summary {
    gap: 5px;
    padding-bottom: 8px;
    font-size: 10.5px;
}
.inv-report-filter-summary span {
    padding: 3px 7px;
}
.inv-section-title {
    font-size: 12px;
    margin-bottom: 6px;
}

.inv-detail-grid { gap: 8px; }
.inv-detail-grid > div,
.inv-narration-box,
.inv-attachment-pill,
.inv-journal-chip,
.inv-voucher-lines-wrap {
    border-radius: 9px;
}
.inv-detail-grid > div,
.inv-narration-box {
    padding: 8px 9px;
}
.inv-detail-grid span {
    font-size: 9.5px;
}
.inv-detail-grid strong {
    font-size: 12px;
}
.inv-voucher-lines-wrap {
    padding: 8px;
    margin-top: 8px;
}
.inv-voucher-lines-table .inv-form-control {
    padding: 5px 7px;
    border-radius: 7px;
    font-size: 11.5px;
}
.inv-inline-reason {
    max-width: 185px;
}
.inv-pagination-wrap {
    padding: 8px 10px 0;
}
.inv-pagination-wrap .page-link {
    border-radius: 7px;
    padding: 4px 8px;
    font-size: 11px;
}

.inv-auth-page {
    padding: 18px;
    background:
        radial-gradient(circle at 20% 20%, rgba(20, 184, 166, .22), transparent 28%),
        linear-gradient(135deg, rgba(15, 118, 110, .24), transparent 45%),
        #0f172a;
}
.inv-auth-shell {
    width: min(820px, 100%);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 24px 72px rgba(0,0,0,.28);
    background: rgba(255, 255, 255, .08);
}
.inv-auth-panel {
    padding: 28px;
    color: #dffcf7;
    background:
        linear-gradient(160deg, rgba(15, 118, 110, .92), rgba(15, 23, 42, .92)),
        #0f172a;
}
.inv-auth-panel h1 {
    color: #fff;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 850;
    margin: 16px 0 9px;
}
.inv-auth-panel p {
    color: rgba(223, 252, 247, .82);
    font-size: 13px;
    max-width: 330px;
    margin: 0;
}
.inv-auth-eyebrow {
    color: #0f766e;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.inv-auth-panel .inv-auth-eyebrow {
    color: #99f6e4;
}
.inv-auth-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 28px;
}
.inv-auth-proof span {
    border: 1px solid rgba(153, 246, 228, .28);
    background: rgba(255, 255, 255, .08);
    border-radius: 999px;
    padding: 5px 8px;
    color: #ccfbf1;
    font-size: 10.5px;
    font-weight: 750;
}
.inv-auth-card {
    width: 100%;
    border-radius: 0;
    padding: 24px;
    box-shadow: none;
    border: 0;
}
.inv-auth-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.inv-auth-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.inv-auth-form-head h2 {
    margin: 2px 0 2px;
    font-size: 20px;
    font-weight: 850;
}
.inv-auth-form-head p {
    color: var(--if-muted);
    font-size: 12px;
    margin: 0;
}

.inv-quick-action-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    gap: 8px;
}
.inv-quick-action {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--if-border);
    border-radius: var(--if-radius-md);
    background: #fff;
    color: var(--if-text);
    box-shadow: var(--if-shadow-soft);
}
.inv-quick-action:hover {
    color: var(--if-primary);
    border-color: rgba(15, 118, 110, .28);
    background: #fbfefd;
}
.inv-quick-action span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--if-primary-soft);
    color: var(--if-primary);
    font-size: 9.5px;
    font-weight: 850;
    flex: 0 0 24px;
}
.inv-quick-action strong {
    font-size: 11.5px;
    line-height: 1.15;
}

/* V1.0H0A Premium Navigation & Executive Experience Polish */
:root {
    --if-navy-950: #07111f;
    --if-navy-900: #0b1728;
    --if-teal-glow: rgba(20, 184, 166, .24);
    --if-surface-tint: #f8fafc;
    --if-section-border: rgba(15, 118, 110, .13);
}

body {
    background:
        radial-gradient(circle at 78% 0%, rgba(20, 184, 166, .075), transparent 30%),
        linear-gradient(180deg, #f7fafc 0%, #f3f6fa 44%, #f6f8fb 100%);
}

.inv-sidebar {
    background:
        radial-gradient(circle at 18% 0%, rgba(45, 212, 191, .18), transparent 32%),
        linear-gradient(165deg, #0d1b2d 0%, #081321 48%, #050d18 100%);
    border-right: 1px solid rgba(148, 163, 184, .12);
    box-shadow: 16px 0 42px rgba(2, 6, 23, .18);
}
.inv-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(20, 184, 166, .10), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, .045), transparent 18%);
}
.inv-sidebar > * {
    position: relative;
    z-index: 1;
}
.inv-brand {
    border-bottom-color: rgba(153, 246, 228, .12);
}
.inv-brand-mark,
.inv-auth-logo,
.inv-topbar-mark,
.brand-fallback-mark {
    background: linear-gradient(135deg, #0f766e, #14b8a6 55%, #22d3ee);
}

.brand-logo-login,
.brand-logo-sidebar,
.brand-logo-topbar,
.brand-logo-favicon,
.brand-logo-preview,
.brand-mark {
    display: grid;
    place-items: center;
    overflow: hidden;
}

.brand-logo-login img,
.brand-logo-sidebar img,
.brand-logo-topbar img,
.brand-logo-favicon img,
.brand-logo-preview img,
.brand-mark img,
.inv-brand-mark img,
.inv-auth-logo img,
.inv-topbar-mark img,
.inv-preview-mark img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.brand-fallback-mark {
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    letter-spacing: .02em;
}

.brand-fallback-mark[hidden] {
    display: none !important;
}

.brand-logo-login > .brand-fallback-mark,
.brand-logo-sidebar > .brand-fallback-mark,
.brand-logo-topbar > .brand-fallback-mark,
.brand-logo-favicon > .brand-fallback-mark {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.inv-auth-logo.brand-logo-login {
    width: min(220px, 100%);
    height: 70px;
    max-width: 220px;
    border-radius: 16px;
    padding: 8px;
    background: rgba(15, 23, 42, .82);
    border: 1px solid rgba(153, 246, 228, .22);
    box-shadow: none;
}

.inv-auth-logo.brand-fallback-mark {
    width: 44px;
    height: 44px;
}

.inv-brand.has-sidebar-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.inv-brand.has-sidebar-logo > div:last-child {
    max-width: 100%;
}

.inv-brand.has-sidebar-logo .inv-brand-title,
.inv-brand.has-sidebar-logo .inv-brand-subtitle {
    max-width: 198px;
}

.inv-brand-mark.brand-logo-sidebar {
    width: min(150px, 100%);
    height: 42px;
    max-width: 150px;
    border-radius: 10px;
    padding: 5px;
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(153, 246, 228, .18);
    box-shadow: none;
}

.inv-topbar-mark.brand-logo-topbar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 4px;
    background: #0f172a;
    border: 1px solid rgba(15, 118, 110, .14);
    box-shadow: none;
}

.brand-logo-favicon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    padding: 4px;
    background: #0f172a;
    border: 1px solid rgba(15, 23, 42, .18);
}
.inv-nav-section {
    overflow-y: auto;
    padding: 2px 2px 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .25) transparent;
}
.inv-nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(203, 213, 225, .58);
}
.inv-nav-label::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: linear-gradient(90deg, rgba(148, 163, 184, .16), transparent);
}
.inv-nav-link {
    position: relative;
    isolation: isolate;
    color: rgba(226, 232, 240, .86);
}
.inv-nav-link::before {
    content: "";
    position: absolute;
    inset: 7px auto 7px 0;
    width: 2px;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
}
.inv-nav-link:hover {
    background: rgba(255, 255, 255, .075);
    color: #f8fafc;
    transform: translateX(1px);
}
.inv-nav-link.active {
    background:
        linear-gradient(90deg, rgba(20, 184, 166, .20), rgba(255, 255, 255, .075));
    box-shadow:
        inset 1px 0 0 rgba(153, 246, 228, .35),
        0 8px 22px rgba(0, 0, 0, .13);
}
.inv-nav-link.active::before {
    background: #5eead4;
    box-shadow: 0 0 14px rgba(94, 234, 212, .8);
}
.inv-nav-icon {
    border: 1px solid rgba(226, 232, 240, .08);
    background: rgba(255, 255, 255, .075);
    color: #ccfbf1;
}
.inv-nav-link.active .inv-nav-icon {
    background: rgba(20, 184, 166, .18);
    border-color: rgba(153, 246, 228, .28);
    color: #f0fdfa;
}
.inv-nav-link-disabled {
    cursor: default;
    opacity: .62;
}
.inv-nav-link-disabled:hover {
    background: transparent;
    color: rgba(226, 232, 240, .86);
    transform: none;
}
.inv-nav-soon {
    background: rgba(20, 184, 166, .10);
}
.inv-sidebar-footer {
    border: 1px solid rgba(153, 246, 228, .10);
    border-radius: 10px;
    padding: 9px;
    background: rgba(255, 255, 255, .045);
    color: rgba(203, 213, 225, .72);
}

.inv-main {
    background:
        linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,0) 185px),
        radial-gradient(circle at 92% 4%, rgba(20, 184, 166, .08), transparent 26%);
}
.inv-content {
    position: relative;
}
.inv-content::before {
    content: "";
    position: fixed;
    top: 50px;
    right: 0;
    left: 232px;
    height: 96px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(20, 184, 166, .045), transparent);
    z-index: -1;
}
.inv-topbar {
    background: rgba(255, 255, 255, .91);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .045);
}
.inv-page-header {
    padding: 2px 0;
}
.inv-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.inv-page-kicker::before {
    content: "";
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--if-primary), var(--if-accent));
}
.inv-card,
.inv-filter-card {
    border: 1px solid rgba(226, 232, 240, .92);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(255, 255, 255, .95)),
        #fff;
}
.inv-card-header {
    border-bottom-color: rgba(226, 232, 240, .78);
}
.inv-card-title,
.inv-section-title {
    color: #0f172a;
}
.inv-section-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.inv-section-title::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(20, 184, 166, .75);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .10);
}

.inv-dashboard-hero {
    position: relative;
    border: 1px solid rgba(15, 118, 110, .12);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background:
        radial-gradient(circle at 95% 0%, rgba(20, 184, 166, .16), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(240, 253, 250, .86));
    box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}
.inv-dashboard-hero .inv-page-header {
    margin-bottom: 10px;
}
.inv-dashboard-hero .inv-page-title {
    color: #0f172a;
}
.inv-period-strip {
    border-left: 3px solid rgba(20, 184, 166, .75);
}
.inv-readiness-panel .inv-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .99), rgba(236, 253, 245, .72));
}
.inv-kpi-card {
    border: 1px solid rgba(226, 232, 240, .9);
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}
.inv-kpi-card:nth-child(-n+4) {
    border-color: rgba(15, 118, 110, .14);
}
.inv-kpi-card:nth-child(-n+4) .inv-kpi-icon {
    background: var(--if-primary-soft);
    color: var(--if-primary);
}
.inv-quick-action {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .92));
    border-color: rgba(226, 232, 240, .95);
}
.inv-quick-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 118, 110, .09);
}

.inv-report-group {
    border: 1px solid rgba(226, 232, 240, .88);
    border-radius: 13px;
    padding: 10px;
    margin-bottom: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .92));
    box-shadow: var(--if-shadow-soft);
}
.inv-report-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}
.inv-report-card {
    position: relative;
    overflow: hidden;
}
.inv-report-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(20, 184, 166, .08), transparent 42%);
    opacity: 0;
    transition: opacity .16s ease;
}
.inv-report-card:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, .20);
}
.inv-report-card:hover::after {
    opacity: 1;
}
.inv-report-filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) auto;
}
.inv-report-filter-summary span,
.inv-report-totals > div {
    border-color: rgba(226, 232, 240, .86);
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.inv-table thead th {
    background: #f8fafc;
    color: #475569;
}
.inv-row-actions .inv-btn,
.inv-table .inv-btn {
    white-space: nowrap;
}
.inv-badge {
    border: 1px solid rgba(15, 23, 42, .04);
    font-weight: 800;
}
.inv-badge-warning {
    border-color: rgba(180, 83, 9, .12);
}
.inv-badge-danger {
    border-color: rgba(185, 28, 28, .12);
}
.inv-badge-success {
    border-color: rgba(21, 128, 61, .12);
}
.inv-empty {
    border: 1px dashed rgba(148, 163, 184, .42);
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 0%, rgba(20, 184, 166, .08), transparent 36%),
        #fbfdff;
    color: #64748b;
}
.inv-empty-icon {
    background: linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(20, 184, 166, .18));
    color: #0f766e;
    border: 1px solid rgba(15, 118, 110, .12);
}

.inv-readiness-next {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 251, 235, .56));
    border-color: rgba(245, 158, 11, .18);
}
.inv-control-zone .inv-card {
    min-height: 100%;
}
.inv-control-zone .inv-card-header {
    background: linear-gradient(90deg, rgba(15, 118, 110, .055), transparent);
}
.inv-control-zone-alt .inv-card-header {
    background: linear-gradient(90deg, rgba(14, 165, 233, .06), transparent);
}
.inv-master-readiness {
    margin-top: 14px;
}
.inv-uat-list {
    display: grid;
    gap: 7px;
}
.inv-uat-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, .85);
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}
.inv-uat-step .inv-badge {
    flex: 0 0 auto;
}
.inv-branding-preview-list {
    display: grid;
    gap: 9px;
}

.inv-branding-preview {
    display: grid;
    grid-template-columns: minmax(118px, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 12px;
    background: linear-gradient(135deg, #fff, #f8fafc);
}

.inv-preview-label {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.inv-preview-label strong {
    font-size: 12px;
    line-height: 1.15;
}

.inv-preview-label span {
    color: var(--if-muted);
    font-size: 10.5px;
}

.inv-preview-label small {
    display: block;
    color: var(--if-muted);
    font-size: 10px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.brand-logo-preview {
    background:
        linear-gradient(135deg, rgba(20, 184, 166, .10), transparent),
        #0f172a;
    border: 1px solid rgba(15, 23, 42, .18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.brand-logo-login.brand-logo-preview {
    width: 190px;
    height: 62px;
    padding: 7px;
    border-radius: 12px;
}

.brand-logo-sidebar.brand-logo-preview {
    width: 132px;
    height: 40px;
    padding: 5px;
    border-radius: 10px;
}

.brand-logo-topbar.brand-logo-preview {
    width: 34px;
    height: 34px;
    padding: 4px;
    border-radius: 9px;
}

.brand-logo-preview .brand-fallback-mark {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    font-size: 11px;
}

.inv-preview-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--preview-accent, #0f766e), #14b8a6);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(15, 118, 110, .15);
    flex: 0 0 54px;
    overflow: hidden;
}

@media (max-width: 560px) {
    .inv-branding-preview {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .brand-logo-login.brand-logo-preview,
    .brand-logo-sidebar.brand-logo-preview {
        width: 100%;
        max-width: 190px;
    }
}

@media (max-width: 1280px) {
    .inv-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .inv-report-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .inv-report-totals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
    .inv-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .inv-report-grid,
    .inv-report-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .inv-sidebar { width: 232px; }
    .inv-main { margin-left: 0; width: 100%; }
    .inv-content::before { left: 0; }
    .inv-topbar { height: 48px; padding: 0 12px; }
    .inv-content { padding: 12px; }
    .inv-auth-shell {
        grid-template-columns: 1fr;
    }
    .inv-auth-panel {
        padding: 20px;
    }
    .inv-quick-action-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .inv-kpi-grid,
    .inv-report-grid,
    .inv-report-totals {
        grid-template-columns: 1fr;
    }
}

.inv-readonly-field {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 7px 10px;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: var(--if-radius-md, 10px);
    background: rgba(15, 23, 42, .035);
    color: var(--if-muted, #64748b);
    font-size: var(--if-font-sm, 13px);
}

.inv-checklist {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 8px;
    color: var(--if-text, #0f172a);
    font-size: var(--if-font-sm, 13px);
}

/* V1.1D2-Hotfix1: Inventory dashboard scoped card layout. */
.inventory-dashboard-note {
    margin: 0 0 18px;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

.inventory-dashboard-grid {
    display: grid;
    gap: 14px;
    align-items: stretch;
}

.inventory-dashboard-grid.summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.inventory-dashboard-grid.daily {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inventory-dashboard-grid.master {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.inventory-dashboard-grid.reports {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inventory-summary-card,
.inventory-action-card,
.inventory-master-card,
.inventory-report-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: 15px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .055);
    color: #0f172a;
}

.inventory-summary-card:hover,
.inventory-action-card:hover,
.inventory-master-card:hover,
.inventory-report-card:hover {
    border-color: rgba(15, 118, 110, .28);
    box-shadow: 0 12px 26px rgba(15, 118, 110, .09);
}

.inventory-summary-label,
.inventory-card-label {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.inventory-summary-value {
    margin-top: 16px;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    color: #0f172a;
}

.inventory-card-description,
.inventory-summary-hint {
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.inventory-action-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    min-width: 0;
}

.inventory-action-badge {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #ccfbf1;
    color: #0f766e;
    font-size: 11px;
    font-weight: 900;
}

.inventory-action-title {
    min-width: 0;
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
}

.inventory-card-footer {
    margin-top: auto;
    padding-top: 14px;
}

.inventory-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}

.inventory-link-button:hover {
    color: #0f172a;
    text-decoration: none;
    border-color: rgba(15, 118, 110, .32);
    background: #f0fdfa;
}

.inventory-action-card.primary .inventory-link-button,
.inventory-link-button.primary {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

.inventory-action-card.primary .inventory-link-button:hover,
.inventory-link-button.primary:hover {
    background: #115e59;
    color: #ffffff;
}

.inventory-two-column {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.inventory-control-list {
    display: grid;
    gap: 12px;
}

.inventory-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    font-size: 13px;
}

.inventory-control-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.inventory-empty-note {
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}

.inventory-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 1200px) {
    .inventory-dashboard-grid.summary,
    .inventory-dashboard-grid.daily,
    .inventory-dashboard-grid.reports {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventory-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .inventory-dashboard-grid.summary,
    .inventory-dashboard-grid.daily,
    .inventory-dashboard-grid.reports,
    .inventory-dashboard-grid.master {
        grid-template-columns: 1fr;
    }

    .inventory-header-actions {
        justify-content: flex-start;
    }
}

@media print {
    .inventory-header-actions,
    .inv-sidebar,
    .inv-topbar {
        display: none !important;
    }
}
