/* ==========================================================================
   CrownateStudio Invoice Generator - Premium CSS Design System
   ========================================================================== */

:root {
    --invoice-bg: #050505;
    --card-glass-bg: rgba(20, 20, 20, 0.65);
    --card-glass-border: rgba(255, 255, 255, 0.08);
    --gold-glow: rgba(255, 255, 255, 0.1);
    
    /* Template Colors */
    --brand-gold: #ffffff;
    --brand-gold-dark: #a3a3a3;
    --executive-blue: #737373;
    --executive-dark: #171717;
    --classic-navy: #404040;
    --classic-charcoal: #525252;
}

/* Base Styles */
.invoice-page-body {
    background-color: var(--invoice-bg) !important;
    color: #f8fafc !important;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* Main Layout Grid */
.invoice-creator-container {
    padding-top: 130px;
    padding-bottom: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Glassmorphic Control Panel (Left Column) */
.glass-control-panel {
    background: var(--card-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-control-panel:hover {
    border-color: rgba(251, 191, 36, 0.2);
    box-shadow: 0 25px 50px rgba(251, 191, 36, 0.04);
}

.panel-section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-gold);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Styles */
.invoice-form-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.invoice-form-control {
    background: rgba(3, 7, 18, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.invoice-form-control:focus {
    border-color: var(--brand-gold) !important;
    box-shadow: 0 0 0 3px var(--gold-glow) !important;
    outline: none !important;
}

.invoice-form-control::placeholder {
    color: #475569 !important;
}

/* Dynamic Line Items Table */
.line-items-table {
    width: 100%;
    margin-bottom: 15px;
}

.line-items-table th {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.line-items-table td {
    padding: 6px 4px;
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 0 5px;
}

.btn-remove-item:hover {
    color: #f87171;
    transform: scale(1.15);
}

/* Action Utilities Bar */
.invoice-toolbar {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--card-glass-border);
    border-radius: 18px;
    padding: 15px 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.template-selector-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-selector-btn.active {
    background: var(--brand-gold);
    color: #030712;
    border-color: var(--brand-gold);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.template-selector-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ==========================================================================
   Live Invoice Preview Container (Right Column)
   ========================================================================== */
.invoice-preview-wrapper {
    position: sticky;
    top: 130px;
}

/* High Fidelity A4 Simulation Card */
.invoice-preview-canvas {
    background: #ffffff;
    color: #1e293b;
    border-radius: 12px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
    aspect-ratio: 1 / 1.414; /* Standard A4 Aspect Ratio */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Template 1: Crownate Signature Gold --- */
.template-crownate {
    border-top: 12px solid var(--brand-gold);
    font-family: 'Inter', sans-serif;
}

.template-crownate .invoice-accent-bg {
    background: #0f172a;
    color: #ffffff;
}

.template-crownate .invoice-header-title {
    font-family: 'Raleway', sans-serif;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.template-crownate .accent-text {
    color: var(--brand-gold-dark);
    font-weight: 700;
}

.template-crownate .invoice-table th {
    background: #0f172a;
    color: #ffffff;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

.template-crownate .totals-table tr.grand-total {
    border-top: 2px solid #0f172a;
    border-bottom: 2px double #0f172a;
}

.template-crownate .totals-table tr.grand-total td {
    color: var(--brand-gold-dark);
    font-weight: 800;
    font-size: 16px;
}

/* --- Template 2: Modern Executive --- */
.template-modern {
    border-left: 10px solid var(--executive-blue);
    font-family: 'Roboto', sans-serif;
}

.template-modern .invoice-accent-bg {
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 8px;
}

.template-modern .invoice-header-title {
    color: var(--executive-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.template-modern .accent-text {
    color: var(--executive-blue);
    font-weight: 700;
}

.template-modern .invoice-table th {
    background: #f8fafc;
    color: #475569;
    border-bottom: 2px solid var(--executive-blue);
    font-weight: 700;
}

.template-modern .totals-table tr.grand-total {
    background: var(--executive-blue);
    color: #ffffff;
}

.template-modern .totals-table tr.grand-total td {
    font-weight: 700;
    font-size: 15px;
    padding: 8px 12px;
}

/* --- Template 3: Classic Traditional --- */
.template-classic {
    font-family: 'Georgia', serif;
    border: 1px solid #d1d5db;
}

.template-classic .invoice-accent-bg {
    border-top: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    background: transparent;
}

.template-classic .invoice-header-title {
    font-family: 'Georgia', serif;
    color: #111827;
    font-weight: 400;
    font-style: italic;
    border-bottom: 1px solid #374151;
    padding-bottom: 5px;
}

.template-classic .accent-text {
    color: #111827;
    font-weight: bold;
}

.template-classic .invoice-table {
    border-collapse: collapse;
}

.template-classic .invoice-table th {
    border-top: 1px solid #374151;
    border-bottom: 2px solid #374151;
    background: transparent;
    color: #111827;
    font-weight: bold;
}

.template-classic .invoice-table td {
    border-bottom: 1px solid #e5e7eb;
}

.template-classic .totals-table tr.grand-total {
    border-top: 1px solid #374151;
    border-bottom: 4px double #374151;
}

.template-classic .totals-table tr.grand-total td {
    font-weight: bold;
    font-size: 15px;
}

/* Shared Invoice Preview Elements */
.invoice-table {
    width: 100%;
    margin-top: 25px;
    margin-bottom: 20px;
    border-collapse: collapse !important;
    border: 1.5px solid #cbd5e1 !important; /* Excel-like outer border */
}

.invoice-table th {
    padding: 10px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #cbd5e1 !important; /* Vertical column lines in header */
}

.invoice-table td {
    padding: 10px 12px;
    border: 1px solid #e2e8f0 !important; /* Excel-like cell lines, rows and columns */
    font-size: 12px;
}

.totals-table {
    width: 100%;
}

.totals-table td {
    padding: 6px 12px;
    font-size: 12px;
}

.totals-table td:last-child {
    text-align: right;
}

/* History Ledger Ledger */
.ledger-history-list {
    max-height: 250px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(3, 7, 18, 0.3);
}

.ledger-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.ledger-history-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ledger-history-item:last-child {
    border-bottom: none;
}

.ledger-btn-load {
    background: transparent;
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ledger-btn-load:hover {
    background: var(--brand-gold);
    color: #030712;
}

.ledger-btn-delete {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
}

.ledger-btn-delete:hover {
    color: #f87171;
}

/* Virtual Dispatch Email Modal Styles */
.dispatch-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.85);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dispatch-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.dispatch-modal-card {
    background: #0f172a;
    border: 1px solid var(--brand-gold);
    border-radius: 20px;
    padding: 35px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(251, 191, 36, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.dispatch-modal-overlay.active .dispatch-modal-card {
    transform: translateY(0);
}

.dispatch-success-icon {
    font-size: 55px;
    color: #10b981;
    margin-bottom: 20px;
    animation: successPulse 1.5s infinite;
}

@keyframes successPulse {
    0% { transform: scale(1); text-shadow: 0 0 0 rgba(16, 185, 129, 0); }
    70% { transform: scale(1.05); text-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
    100% { transform: scale(1); text-shadow: 0 0 0 rgba(16, 185, 129, 0); }
}

/* Image select wrapper */
.logo-upload-box {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(3, 7, 18, 0.3);
}

.logo-upload-box:hover {
    border-color: var(--brand-gold);
    background: rgba(251, 191, 36, 0.05);
}

/* ==========================================================================
   HIGH FIDELITY PRINT MEDIA OVERRIDES (A4 Output Optimization)
   ========================================================================== */
@media print {
    /* Hide everything on the page except the invoice preview */
    body, html {
        background: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        font-size: 12pt !important;
        width: 100% !important;
    }
    
    /* Disable all page layouts and scrollings */
    #crownate-header, 
    #footer, 
    #scroll-top, 
    .invoice-toolbar, 
    .glass-control-panel, 
    .col-lg-5, /* Sidebar container column */
    #nexus-chatbot-trigger, 
    #nexus-chat-window,
    .top-info-bar,
    .sticky-cta-bar {
        display: none !important;
    }
    
    /* Force main column to full A4 dimensions */
    .invoice-creator-container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .col-lg-7 { /* Main column */
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .invoice-preview-wrapper {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .invoice-preview-canvas {
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0px !important; /* Printing uses native margins */
        margin: 0 !important;
        aspect-ratio: auto !important;
        background: #ffffff !important;
        color: #000000 !important;
    }

    /* Template color forces for printing */
    .template-crownate {
        border-top: 15px solid var(--brand-gold) !important;
    }
    .template-modern {
        border-left: 12px solid var(--executive-blue) !important;
    }

    .invoice-accent-bg {
        background-color: #f1f5f9 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Reset borders on printed/exported document to keep it structured but borderless */
    .invoice-table {
        border: none !important;
    }

    .invoice-table th {
        background-color: #0f172a !important;
        color: #ffffff !important;
        border: none !important;
        border-bottom: 2px solid #0f172a !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .invoice-table td {
        border: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    
    .template-modern .invoice-table th {
        background-color: #f8fafc !important;
        color: #475569 !important;
        border: none !important;
        border-bottom: 2px solid var(--executive-blue) !important;
    }

    .template-classic .invoice-table th {
        border: none !important;
        border-bottom: 2.5px solid #111827 !important;
        border-top: 1px solid #111827 !important;
    }

    .template-modern tr.grand-total {
        background-color: var(--executive-blue) !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Standard high-contrast prints */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* ==========================================================================
   Professional Black, White, and Gray Color System Overrides
   ========================================================================== */
.text-gold, .text-warning, .text-gold-dark, .text-warning-glow, .text-gold-glow {
    color: #ffffff !important;
    text-shadow: none !important;
}

.btn-outline-warning {
    border-color: #404040 !important;
    color: #ffffff !important;
}

.btn-outline-warning:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

.btn-remove-item {
    color: #737373 !important;
}

.btn-remove-item:hover {
    color: #ffffff !important;
}

/* Digitally Sign Action Button */
#btn-send-email {
    background: #ffffff !important;
    color: #000000 !important;
    font-weight: 800 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#btn-send-email:hover {
    background: #d4d4d4 !important;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15) !important;
}

/* Local storage history ledger actions */
.ledger-btn-load {
    border-color: #404040 !important;
    color: #ffffff !important;
}

.ledger-btn-load:hover {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

.ledger-history-item span.text-gold {
    color: #ffffff !important;
}

/* Grand total accent lines */
.template-crownate {
    border-top: 12px solid #171717 !important;
}

/* Hidden States */
.d-none {
    display: none !important;
}

/* Dark Table Registry overrides */
.table-dark {
    --bs-table-bg: rgba(3, 7, 18, 0.4) !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.table-dark th {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
    color: #94a3b8;
    background: rgba(3, 7, 18, 0.8) !important;
}

/* Monochrome and State Badges */
.badge {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 50px;
}

.badge.bg-success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge.bg-danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge.bg-warning {
    background-color: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge.bg-primary {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge.bg-info {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge.bg-secondary {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pagination Overrides */
.pagination .page-link {
    background-color: rgba(3, 7, 18, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    font-size: 10px;
    font-weight: 700;
}

.pagination .page-item.active .page-link {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
}

.pagination .page-item.disabled .page-link {
    background-color: rgba(3, 7, 18, 0.2) !important;
    color: #4b5563 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Space utilities for login form */
.space-y-3 > * + * {
    margin-top: 1rem !important;
}


.template-crownate .accent-text {
    color: #171717 !important;
}

.template-crownate .totals-table tr.grand-total td {
    color: #171717 !important;
    font-weight: 900 !important;
}

/* Modal dispatch confirmation alerts */
.dispatch-modal-card {
    background: #0a0a0a !important;
    border-color: #262626 !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.05) !important;
}

.dispatch-modal-card button {
    border-color: #404040 !important;
    color: #ffffff !important;
}

.dispatch-modal-card button:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

/* ==========================================================================
   Clean White Background and Black Text for Template Canvas Preview
   ========================================================================== */
.invoice-preview-canvas {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #000000 !important;
}

.invoice-preview-canvas,
.invoice-preview-canvas p,
.invoice-preview-canvas span,
.invoice-preview-canvas div,
.invoice-preview-canvas td,
.invoice-preview-canvas th,
.invoice-preview-canvas strong,
.invoice-preview-canvas small,
.invoice-preview-canvas h1,
.invoice-preview-canvas h2,
.invoice-preview-canvas h3,
.invoice-preview-canvas h4,
.invoice-preview-canvas h5,
.invoice-preview-canvas h6 {
    color: #000000 !important;
}

.invoice-preview-canvas .invoice-accent-bg {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #000000 !important;
    border: 1px solid #e2e8f0 !important;
}

.invoice-preview-canvas th {
    background-color: #f1f5f9 !important;
    background: #f1f5f9 !important;
    color: #000000 !important;
    border: 1px solid #cbd5e1 !important;
}

.invoice-preview-canvas .totals-table tr.grand-total {
    background-color: #f1f5f9 !important;
    background: #f1f5f9 !important;
    color: #000000 !important;
    border-top: 2px solid #000000 !important;
    border-bottom: 2.5px double #000000 !important;
}

.invoice-preview-canvas .totals-table tr.grand-total td {
    color: #000000 !important;
}

.invoice-preview-canvas #prev-net-due-row td {
    color: #000000 !important;
}

/* ==========================================================================
   Spreadsheet / Excel Input Format for Builder Grid
   ========================================================================== */
.line-items-table {
    border-collapse: collapse !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    width: 100%;
    margin-bottom: 1rem;
}

.line-items-table th {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 8px 10px !important;
    text-align: inherit;
}

.line-items-table td {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.15);
}

.excel-input {
    width: 100% !important;
    height: 38px !important;
    border: none !important;
    background: transparent !important;
    color: #ffffff !important;
    padding: 8px 10px !important;
    outline: none !important;
    font-size: 12px !important;
    font-family: 'Inter', sans-serif !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease;
}

.excel-input:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6) !important;
}

select.excel-input {
    cursor: pointer;
    font-size: 11px !important;
    appearance: none;
    -webkit-appearance: none;
}

select.excel-input option {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
}

/* Remove spin buttons from number inputs inside spreadsheet */
.excel-input::-webkit-outer-spin-button,
.excel-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.excel-input[type=number] {
    -moz-appearance: textfield;
}

/* ==========================================================================
   Minimalist Workspace Mode Theme Styles (Activated in Creator view)
   ========================================================================== */
.minimalist-mode {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #0f172a !important;
}

.minimalist-mode .glass-control-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}

.minimalist-mode .panel-section-title {
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}

.minimalist-mode .invoice-form-label {
    color: #475569 !important;
}

.minimalist-mode .invoice-form-control {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cbd5e1 !important;
}

.minimalist-mode .invoice-form-control:focus {
    border-color: #0f172a !important;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1) !important;
}

.minimalist-mode .excel-input {
    color: #000000 !important;
}

.minimalist-mode .excel-input:focus {
    background: rgba(0, 0, 0, 0.03) !important;
    box-shadow: inset 0 0 0 2px #0f172a !important;
}

.minimalist-mode .line-items-table {
    border: 1px solid #cbd5e1 !important;
}

.minimalist-mode .line-items-table td {
    border: 1px solid #cbd5e1 !important;
    background: transparent !important;
}

.minimalist-mode .line-items-table th {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

.minimalist-mode .text-white,
.minimalist-mode h1,
.minimalist-mode h2,
.minimalist-mode h3,
.minimalist-mode h4,
.minimalist-mode h5,
.minimalist-mode h6 {
    color: #0f172a !important;
}

.minimalist-mode .text-slate-400,
.minimalist-mode .text-white-50 {
    color: #475569 !important;
}

.minimalist-mode .accordion-button {
    color: #0f172a !important;
}

.minimalist-mode .invoice-toolbar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #000000 !important;
}

.minimalist-mode .template-selector-btn {
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.minimalist-mode .template-selector-btn.active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

.minimalist-mode .btn-outline-light {
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.minimalist-mode .btn-outline-light:hover {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

.minimalist-mode .btn-remove-item {
    color: #94a3b8 !important;
}

.minimalist-mode .btn-remove-item:hover {
    color: #ef4444 !important;
}

/* Active/Inactive tab selector buttons styling */
.active-tab-btn {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
}

.inactive-tab-btn {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.inactive-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}
