/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ANAND GST COMPLIANCE SUITE — SINGLE PAGE DASHBOARD CSS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:root {
    --c-canvas:       #F8F9FA; /* Canvas Gray background */
    --c-paper:        #FFFFFF; /* White Cards / panels */
    --c-navy:         #0F2C59; /* Ashoka Navy (Brand, Typography) */
    --c-navy-light:   rgba(15, 44, 89, 0.05);
    --c-navy-hover:   rgba(15, 44, 89, 0.08);
    --c-saffron:      #FF671F; /* Saffron Orange */
    --c-saffron-dim:  rgba(255, 103, 31, 0.08);
    --c-emerald:      #046A38; /* Emerald Green */
    --c-emerald-dim:  rgba(4, 106, 56, 0.08);
    --c-border:       #E2E8F0; /* Slate Muted Gray */
    --c-text-main:    #1E293B; /* Slate 800 */
    --c-text-sub:     #64748B; /* Slate 500 */
    
    --shadow-sm:      0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md:      0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg:      0 10px 15px -3px rgba(0, 0, 0, 0.04);
    
    --r-sm:           4px;
    --r-md:           6px;
    --r-lg:           10px;
}

/* ── Basic Setup ────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--c-text-main);
    background-color: var(--c-canvas);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.saffron-topbar {
    height: 4px;
    background-color: var(--c-saffron);
    width: 100%;
    z-index: 100;
}

/* ── Navy Header ───────────────────────────────────────── */
.navy-header {
    background-color: var(--c-navy);
    color: #ffffff;
    padding: 14px 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 200;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand .logo-accent {
    color: var(--c-saffron);
}

.brand .header-sub {
    font-size: 13.5px;
    font-weight: 400;
    opacity: 0.8;
    font-family: 'Inter', sans-serif;
}

/* CA Switcher: Header Dropdown elements */
.client-context-dropdown-container {
    position: relative;
}

.client-context-btn {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-md);
    padding: 6px 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.client-context-btn:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

.client-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.client-context-btn strong {
    font-weight: 600;
}

.client-gstin-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--c-saffron);
    background-color: rgba(255, 103, 31, 0.12);
    padding: 2px 6px;
    border-radius: var(--r-sm);
    font-weight: 600;
}

.dropdown-caret {
    font-size: 10px;
    opacity: 0.8;
    margin-left: 2px;
}

/* Switcher floating menu */
.client-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background-color: var(--c-paper);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    color: var(--c-text-main);
    animation: fadeInModal 0.15s ease;
}

.dropdown-header {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--c-text-sub);
    padding: 10px 14px;
    background-color: var(--c-canvas);
    border-bottom: 1px solid var(--c-border);
    border-top-left-radius: var(--r-lg);
    border-top-right-radius: var(--r-lg);
    letter-spacing: 0.5px;
}

.dropdown-list {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.dropdown-item-client {
    padding: 10px 14px;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-item-client:hover {
    background-color: #f1f5f9;
}

.dropdown-item-client.active {
    background-color: var(--c-navy-light);
    border-left: 3px solid var(--c-navy);
}

.dropdown-item-client .client-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--c-navy);
}

.dropdown-item-client .client-gst {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--c-text-sub);
}

.dropdown-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--c-border);
    background-color: #fafbfc;
    border-bottom-left-radius: var(--r-lg);
    border-bottom-right-radius: var(--r-lg);
}

.api-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* ── Module Switcher Bar ────────────────────────────── */
.module-switcher-container {
    background-color: var(--c-paper);
    border-bottom: 1px solid var(--c-border);
    padding: 0 24px;
}

.switcher-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}

.switcher-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 14px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text-sub);
    cursor: pointer;
    transition: all 0.2s ease;
}

.switcher-btn:hover {
    color: var(--c-navy);
    background-color: #f8fafc;
}

.switcher-btn.active {
    color: var(--c-navy);
    border-bottom-color: var(--c-saffron);
}

/* ── Main Dashboard Layout ────────────────────────────── */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.module-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Summary Cards Grid ────────────────────────────────── */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.summary-card {
    background-color: var(--c-paper);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.summary-card .card-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--c-canvas);
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-card .card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-card .card-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--c-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card .card-value {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--c-navy);
}

.summary-card .card-subtext {
    font-size: 11px;
    color: var(--c-text-sub);
}

/* Card highlight variants */
.summary-card.success { border-left: 4px solid var(--c-emerald); }
.summary-card.success .card-icon { background-color: var(--c-emerald-dim); }
.summary-card.warning { border-left: 4px solid var(--c-saffron); }
.summary-card.warning .card-icon { background-color: var(--c-saffron-dim); }
.summary-card.danger { border-left: 4px solid #dc2626; }
.summary-card.danger .card-icon { background-color: rgba(220, 38, 38, 0.05); }

/* ── Workspace Control Panel Grid ──────────────────────── */
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.workspace-card {
    background-color: var(--c-paper);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-header-premium h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-navy);
    font-family: 'Outfit', sans-serif;
}

.card-header-premium p {
    font-size: 12.5px;
    color: var(--c-text-sub);
    margin-top: 2px;
}

/* Dropzones */
.upload-dropzones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex: 1;
}

.dropzone-box {
    border: 2px dashed var(--c-border);
    border-radius: var(--r-md);
    padding: 24px 16px;
    text-align: center;
    background-color: var(--c-canvas);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.dropzone-box:hover, .dropzone-box.drag-over {
    border-color: var(--c-navy);
    background-color: var(--c-navy-light);
}

.dropzone-icon {
    font-size: 24px;
}

.dropzone-box h4 {
    font-size: 13.5px;
    font-weight: 600;
}

.dropzone-box p {
    font-size: 11px;
    color: var(--c-text-sub);
}

.file-hidden-input {
    display: none;
}

.file-status-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--c-emerald);
    background-color: var(--c-emerald-dim);
    padding: 3px 8px;
    border-radius: var(--r-sm);
    margin-top: 4px;
}

/* Workspace actions block */
.workspace-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--c-border);
    padding-top: 16px;
}

.template-download-section {
    display: flex;
    gap: 10px;
}

.run-reco-section {
    display: flex;
    gap: 10px;
}

/* API Connection Module Panel */
.api-manager-content {
    background-color: var(--c-canvas);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.api-step-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-navy);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    font-size: 13.5px;
    outline: none;
    background-color: var(--c-paper);
}

.form-input:focus {
    border-color: var(--c-navy);
}

.otp-center {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 6px;
}

.otp-timer-badge {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-saffron);
}

.otp-subtext {
    text-align: center;
    font-size: 11px;
    color: var(--c-text-sub);
    margin-top: -6px;
}

.active-session-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.session-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--c-border);
}

.session-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.session-stat .label {
    color: var(--c-text-sub);
    font-weight: 500;
}

.session-stat .val {
    font-weight: 600;
}

.text-green { color: var(--c-emerald); }
.text-orange { color: var(--c-saffron); }

.session-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.session-actions button {
    flex: 1;
}

/* Gateway Filing bottom controls */
.gateway-filing-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--c-border);
    padding-top: 16px;
}

.filing-preview-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filing-preview-stats .stat {
    display: flex;
    flex-direction: column;
}

.filing-preview-stats .stat .lbl {
    font-size: 11px;
    color: var(--c-text-sub);
    font-weight: 500;
}

.filing-preview-stats .stat strong {
    font-size: 15px;
    color: var(--c-navy);
    font-weight: 700;
}

/* ── Bottom Section: Discrepancy & Table Preview Grid ── */
.bottom-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

.bottom-card {
    background-color: var(--c-paper);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 480px;
    max-height: 480px;
}

.card-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border);
}

.card-header-mini h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--c-navy);
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

/* Tabs for Discrepancy Log / Next Steps Side Panel */
.tab-small {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--c-text-sub);
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-small:hover {
    color: var(--c-navy);
}

.tab-small.active {
    color: var(--c-navy);
    border-bottom-color: var(--c-saffron);
}

.side-tab-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Discrepancy log */
.error-items-container {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.error-item {
    background-color: var(--c-canvas);
    padding: 12px;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-border);
    cursor: pointer;
    transition: all 0.2s;
}

.error-item:hover {
    border-color: var(--c-saffron);
    background-color: var(--c-saffron-dim);
}

.error-item-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 2px;
}

.error-item-msg {
    font-size: 11px;
    color: var(--c-text-sub);
    line-height: 1.4;
}

/* Actionable Guidance Item List */
.guidance-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 2px 0;
}

.guidance-item {
    background-color: #fafbfc;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guidance-item.success { border-left: 3px solid var(--c-emerald); }
.guidance-item.warning { border-left: 3px solid var(--c-saffron); }
.guidance-item.danger { border-left: 3px solid #dc2626; }

.guidance-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-navy);
}

.guidance-msg {
    font-size: 11px;
    color: var(--c-text-sub);
    line-height: 1.4;
}

.guidance-btn {
    align-self: flex-start;
}

.empty-state-mini {
    font-size: 12px;
    color: var(--c-text-sub);
    text-align: center;
    padding: 40px 10px;
}

/* Interactive preview grid */
.table-container {
    flex: 1;
    width: 100%;
    overflow: auto;
}

.reco-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.reco-table th {
    padding: 10px 12px;
    background-color: #fafbfc;
    font-size: 10px;
    font-weight: 600;
    color: var(--c-text-sub);
    text-transform: uppercase;
    border-bottom: 2px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.reco-table td {
    padding: 10px 12px;
    font-family: 'Georgia', serif;
    font-size: 12.5px;
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
}

.reco-table tbody tr:hover {
    background-color: #f8fafc;
}

.reco-table tr.highlighted {
    background-color: var(--c-saffron-dim) !important;
    outline: 2px solid var(--c-saffron);
}

.table-empty-state {
    text-align: center;
    color: var(--c-text-sub);
    padding: 80px 20px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
}

/* Status Badges */
.status-badge {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--r-sm);
    display: inline-block;
}

.badge-exact {
    background-color: var(--c-emerald-dim);
    color: var(--c-emerald);
}

.badge-fuzzy {
    background-color: rgba(56, 126, 209, 0.08);
    color: #387ed1;
}

.badge-mismatch {
    background-color: var(--c-saffron-dim);
    color: var(--c-saffron);
}

.badge-missing-portal {
    background-color: rgba(220, 38, 38, 0.06);
    color: #dc2626;
}

.badge-missing-books {
    background-color: rgba(100, 116, 139, 0.08);
    color: var(--c-text-sub);
}

.badge-danger {
    background-color: #ef4444;
    color: white;
}

.value-comparison {
    display: flex;
    flex-direction: column;
}

.val-books { font-size: 12.5px; }
.val-portal {
    font-size: 10.5px;
    color: var(--c-text-sub);
    border-top: 1px dashed var(--c-border);
    margin-top: 2px;
    padding-top: 2px;
}

/* GSTR-1 Classification labels color styling */
.badge-b2b { background-color: var(--c-emerald-dim); color: var(--c-emerald); }
.badge-b2cl { background-color: rgba(56, 126, 209, 0.08); color: #387ed1; }
.badge-b2cs { background-color: rgba(139, 92, 246, 0.08); color: #8b5cf6; }
.badge-exp { background-color: var(--c-saffron-dim); color: var(--c-saffron); }
.badge-cdnr { background-color: rgba(100, 116, 139, 0.08); color: var(--c-text-sub); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    padding: 8px 16px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 11.5px;
}

.btn-primary {
    background-color: var(--c-navy);
    color: var(--c-paper);
}

.btn-primary:hover {
    background-color: #0c2447;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--c-border);
    color: var(--c-navy);
}

.btn-outline:hover {
    background-color: var(--c-navy-light);
    border-color: var(--c-navy);
}

.btn-saffron {
    background-color: var(--c-saffron);
    color: var(--c-paper);
}

.btn-saffron:hover {
    background-color: #e25816;
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 12px 24px;
    font-size: 14px;
}

.btn-danger {
    color: #dc2626 !important;
    border-color: rgba(220, 38, 38, 0.2) !important;
}

.btn-danger:hover {
    background-color: rgba(220, 38, 38, 0.05) !important;
    border-color: #dc2626 !important;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Modals & Dialogs ───────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 44, 89, 0.4);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeInModal 0.2s;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background-color: var(--c-paper);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--c-saffron);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpModal {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.filing-modal-width {
    max-width: 450px;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-navy);
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--c-text-sub);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--c-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: #fafbfc;
    border-bottom-left-radius: var(--r-lg);
    border-bottom-right-radius: var(--r-lg);
}

/* Filing Simulator progress */
.filing-status-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.filing-progress-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(closest-side, white 79%, transparent 80% 100%),
                conic-gradient(var(--c-saffron) 0%, #e2e8f0 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.circle-inner {
    font-weight: 700;
    font-size: 18px;
    color: var(--c-navy);
}

.filing-logs {
    width: 100%;
    height: 160px;
    background-color: #0f172a;
    color: #38bdf8;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    padding: 12px;
    border-radius: var(--r-md);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.log-entry { line-height: 1.4; }
.log-success { color: #4ade80; }
.log-highlight { color: var(--c-saffron); }

/* ── Toast notifications ────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--c-navy);
    color: var(--c-paper);
    padding: 10px 20px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    animation: slideInToast 0.2s ease;
}

@keyframes slideInToast {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hidden {
    display: none !important;
}

/* ── Column Mapper UI ───────────────────────────────────── */
.modal.modal-lg {
    max-width: 920px;
    width: 95vw;
}

.mapping-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
}

.mapping-selectors {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 10px;
}

.mapping-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mapping-field-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-navy);
}

.mapping-field-group label::after {
    content: " (optional)";
    font-size: 10px;
    font-weight: 400;
    color: var(--c-text-sub);
}

.mapping-field-group.required label::after {
    content: " *";
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
}

.mapping-field-group select {
    padding: 8px 10px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    font-size: 13.5px;
    background-color: var(--c-paper);
    outline: none;
    width: 100%;
}

.mapping-field-group select:focus {
    border-color: var(--c-navy);
}

.mapping-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.mapping-preview h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-table-container {
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background-color: var(--c-paper);
    max-height: 55vh;
    overflow: auto;
}

.preview-table th, .preview-table td {
    padding: 8px 10px !important;
    font-size: 11.5px !important;
}

/* Responsive styles for Column Mapper */
@media (max-width: 850px) {
    .modal.modal-lg {
        max-width: 98vw;
        max-height: 90vh;
        margin: 5px;
    }
    .mapping-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .mapping-selectors {
        max-height: 35vh;
    }
    .preview-table-container {
        max-height: 30vh;
    }
}
