/* ============================================================
   VAADIN LUMO-INSPIRED DESIGN SYSTEM (DARK PRIMARY ACCENTS)
   ============================================================ */
:root {
    --primary: #111113;
    --primary-hover: #1e293b;
    --primary-active: #020617;
    --primary-focus: rgba(15, 23, 42, 0.12);
    --bg-canvas: #f8fafc;
    --bg-surface: #ffffff;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --text-primary: #111113;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --radius-s: 4px;
    --radius-m: 6px;
    --radius-l: 8px;
    --radius-xl: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-dropdown: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
}

/* ============================================================
   BASIC LAYOUT & RESET
   ============================================================ */
body {
    background-color: var(--bg-canvas) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

* {
    font-family: inherit;
    box-sizing: border-box;
}

.tab-content {
    display: block;
}

/* Consolidated Main Content Containers */
.invoiceDisplay,
.mainDisplay,
.mainDisplayAmd,
.mainDisplayDealer,
.mainDisplayChallan,
.mainDisplay3 {
    margin-left: 260px;
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s ease;
    padding: 24px 32px;
    min-height: 100vh;
    position: relative;
    background-color: var(--bg-canvas);
    display: flex;
    flex-direction: column;
}

/* Sidebar Collapsed State (Desktop) */
.invoiceDisplay.expanded,
.invoiceDisplay.content-expanded,
.mainDisplay.expanded,
.mainDisplayDealer.expanded,
.mainDisplayAmd.expanded {
    margin-left: 80px;
}

/* Utility for full-screen overrides */
.full-width {
    margin-left: 0 !important;
    width: 100% !important;
}

/* ============================================================
   SIDEBAR COLLAPSED RULES
   ============================================================ */
#sidebar.active .nav-text,
#sidebar.active .logo-title,
#sidebar.active .dropdown-toggle::after {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    width: 0;
}

#sidebar.active .nav-link {
    justify-content: center !important;
    padding: 10px 0 !important;
    gap: 0 !important;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.page-header h4 {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.page-header .subtitle {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Header Section */
.header-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-l);
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
}

/* Search Box */
.search-box {
    flex: 0 0 300px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-m);
    font-size: 13px;
    background-color: var(--bg-surface);
    transition: all 0.15s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-focus);
}

/* ============================================================
   UNIFIED CARD SYSTEM (Vaadin Lumo Style)
   ============================================================ */
.ce-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-l);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ce-card-head {
    padding: 14px 20px;
    background: #fafafa;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ce-card-head i {
    font-size: 15px;
    color: var(--primary);
}

.ce-card-head h2 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin: 0;
}

.ce-card-body {
    padding: 20px 24px;
}

/* ============================================================
   TABLE & VAADIN GRID DESIGN
   ============================================================ */
.table-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-top: 12px;
}

.table {
    margin: 0;
    font-size: 13.5px;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    color: var(--text-primary);
}

table.dataTable thead,
.table thead th,
.table thead th.fl {
    background-color: #f8fafc !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 12px 16px !important;
    border-top: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    vertical-align: middle !important;
}

.table tbody td,
.table tbody th {
    font-size: 13.5px;
    padding: 12px 16px !important;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-subtle);
    color: #1e293b;
    background-color: var(--bg-surface);
}

.table-hover tbody tr:hover td,
.table-hover tbody tr:hover th,
.table tbody tr:hover td {
    background-color: #f8fafc !important;
}

.table-responsive {
    border-radius: var(--radius-l);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.ce-card-body .table-responsive {
    border: none;
}

/* Override empty table lines */
.ce-card-body .table {
    border-bottom: none !important;
}

.ce-card-body .table>:not(caption)>*>* {
    border-bottom-width: 1px !important;
    border-bottom-color: var(--border-subtle) !important;
    box-shadow: none !important;
}

/* ============================================================
   DATATABLES OVERRIDES
   ============================================================ */
.dataTables_wrapper {
    padding: 12px 0;
}

.dataTables_filter {
    margin-bottom: 12px;
}

.dataTables_filter label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dataTables_filter input {
    font-family: inherit;
    font-size: 13px;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--radius-m) !important;
    padding: 6px 12px !important;
    margin-left: 8px;
    width: 240px !important;
    background-color: var(--bg-surface);
    transition: all 0.15s ease;
}

.dataTables_filter input:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-focus) !important;
}

.dataTables_length {
    margin-bottom: 12px;
}

.dataTables_length label {
    font-size: 12px;
    color: var(--text-muted);
}

.dataTables_length select {
    font-size: 12.5px;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--radius-m) !important;
    padding: 5px 24px 5px 10px !important;
    margin: 0 6px;
    background-color: var(--bg-surface);
}

.dataTables_info {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 14px !important;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    border-radius: var(--radius-m) !important;
    border: 1px solid transparent !important;
    padding: 5px 12px !important;
    margin: 0 2px !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
    transition: all 0.15s ease;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f1f5f9 !important;
    color: var(--primary) !important;
    border-color: #e2e8f0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--primary) !important;
    font-weight: 600 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: #cbd5e1 !important;
    background: transparent !important;
    border-color: transparent !important;
    cursor: not-allowed;
}

/* ============================================================
   BUTTONS & STATUS BADGES (VAADIN STYLE)
   ============================================================ */
/* Primary Buttons */
.btn-primary,
.btn-action,
.btn-submit,
.btn-generate {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--primary) !important;
    border-radius: var(--radius-m) !important;
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-action:hover,
.btn-submit:hover,
.btn-generate:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.btn-primary:active,
.btn-action:active,
.btn-submit:active,
.btn-generate:active {
    background-color: var(--primary-active) !important;
    border-color: var(--primary-active) !important;
    transform: translateY(0);
}

.btn-primary:focus,
.btn-action:focus,
.btn-submit:focus,
.btn-generate:focus {
    box-shadow: 0 0 0 3px var(--primary-focus) !important;
    outline: none;
}

/* Secondary Button */
.btn-secondary {
    background-color: #ffffff !important;
    color: var(--text-primary) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--radius-m) !important;
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: var(--text-primary) !important;
}

/* Status Filter Group */
.groupBtn {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.groupBtn a,
.groupBtn button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    font-size: 13px;
    text-decoration: none;
    border-radius: var(--radius-m);
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    background-color: var(--bg-surface);
    color: var(--text-secondary);
}

/* Refined Vaadin status pills */
.appForms {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border-color: #a7f3d0 !important;
}

.appForms:hover,
.appForms.activeL {
    background-color: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.pendForms {
    background-color: #fffbeb !important;
    color: #92400e !important;
    border-color: #fde68a !important;
}

.pendForms:hover,
.pendForms.activeL {
    background-color: #d97706 !important;
    color: #ffffff !important;
    border-color: #d97706 !important;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.2);
}

.rejForms {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border-color: #fecaca !important;
}

.rejForms:hover,
.rejForms.activeL {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.cancelBtn {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

.cancelBtn:hover,
.cancelBtn.activeL {
    background-color: #475569 !important;
    color: #ffffff !important;
    border-color: #475569 !important;
    box-shadow: 0 2px 4px rgba(71, 85, 105, 0.2);
}

.inactiveForms {
    background-color: #f8fafc !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}

.inactiveForms:hover,
.inactiveForms.activeL {
    background-color: #475569 !important;
    color: #ffffff !important;
    border-color: #475569 !important;
}

.regForms {
    background-color: #f0f9ff !important;
    color: #0369a1 !important;
    border-color: #bae6fd !important;
}

.regForms:hover,
.regForms.activeL {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

.transForms {
    background-color: #fff7ed !important;
    color: #9a3412 !important;
    border-color: #fed7aa !important;
}

.transForms:hover,
.transForms.activeL {
    background-color: #ea580c !important;
    color: #ffffff !important;
    border-color: #ea580c !important;
}

/* Status Badges */
.status-pill,
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}

.status-pill.approved,
.badge-approved {
    background-color: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.status-pill.pending,
.badge-pending {
    background-color: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.status-pill.rejected,
.badge-rejected {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.status-pill.blocked,
.badge-blocked {
    background-color: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.fg-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.g2 {
    grid-template-columns: repeat(2, 1fr);
}

.g3 {
    grid-template-columns: repeat(3, 1fr);
}

.fg label,
.form-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    display: block;
}

input[type="date"],
input[type="text"],
input[type="password"],
input[type="email"],
input[type="month"],
input[type="number"],
select.form-control,
.form-control {
    font-size: 13.5px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-m);
    width: 100%;
    color: var(--text-primary);
    background-color: var(--bg-surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="date"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
select.form-control:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-focus);
}

/* ============================================================
   PROFILE HEADER & USER DROPDOWN
   ============================================================ */
.profile-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.profile-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.profile-btn>.bi-person-circle {
    font-size: 20px;
    color: var(--primary);
}

.profile-arrow {
    font-size: 11px;
    color: var(--text-muted);
}

.profile-menu {
    min-width: 180px;
    margin-top: 8px !important;
    padding: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-dropdown);
}

.signout-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-m);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.signout-item i {
    font-size: 16px;
}

.signout-item:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

/* ============================================================
   MODALS (VAADIN STYLE)
   ============================================================ */
.modal-content {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-dropdown) !important;
    background: var(--bg-surface);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    background: #fafafa;
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

.modal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 14px 20px;
}

.modal-fullscreen .modal-content {
    max-height: 88vh;
    width: 85%;
    margin: auto;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-dropdown);
    border: 1px solid var(--border-color) !important;
}

/* ============================================================
   C-FORM ACTION BAR & TABS
   ============================================================ */
.cform-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
    padding: 14px 0;
}

.cform-tabs {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--primary);
}

.cform-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    background-color: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    border-bottom: none;
    border-radius: var(--radius-m) var(--radius-m) 0 0;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.cform-tab:hover,
.cform-tab.active {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.cform-right-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.cform-verify-btn,
.cform-reject-btn {
    min-width: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--radius-m);
}

.cform-verify-btn {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

.cform-verify-btn:hover {
    background-color: #047857 !important;
    border-color: #047857 !important;
}

.cform-reject-btn {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

.cform-reject-btn:hover {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
}

.cform-tab-content {
    margin-top: 15px;
    padding: 20px;
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-l);
}

/* ============================================================
   RESPONSIVENESS & MEDIA QUERIES
   ============================================================ */
@media (max-width: 1100px) {

    .invoiceDisplay,
    .mainDisplay,
    .mainDisplayDealer,
    .mainDisplayAmd {
        margin-left: 80px;
    }
}

@media (max-width: 767px) {

    .invoiceDisplay,
    .mainDisplay,
    .mainDisplayDealer,
    .mainDisplayAmd,
    .mainDisplayChallan {
        margin-left: 0 !important;
        padding: 16px 14px;
        width: 100% !important;
    }

    .search-box {
        flex: 1 0 100%;
        width: 100%;
    }

    .groupBtn {
        justify-content: flex-start !important;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .groupBtn a,
    .groupBtn button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .g2,
    .g3 {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

#sidebarOverlay.show {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1040;
}

#loadingIndicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: var(--bg-surface);
    padding: 24px;
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-dropdown);
    border: 1px solid var(--border-color);
}

/* ============================================================
   COMMON FOOTER STYLING
   ============================================================ */
.app-footer {
    width: 100%;
    background-color: #ffffff !important;
    border-top: 1px solid #dee2e6;
    padding: 12px 32px;
    margin-top: auto;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.invoiceDisplay .app-footer,
.mainDisplay .app-footer,
.mainDisplayAmd .app-footer,
.mainDisplayDealer .app-footer,
.mainDisplayChallan .app-footer,
.mainDisplay3 .app-footer {
    margin-left: -32px;
    margin-right: -32px;
    margin-bottom: -24px;
    width: calc(100% + 64px);
    margin-top: auto;
}

.app-footer .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.app-footer .footer-left {
    color: #495057;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
}

.app-footer .footer-right {
    color: #495057;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
}

.app-footer .footer-right strong {
    font-weight: 700;
    color: #212529;
}

@media (max-width: 991.98px) {
    .invoiceDisplay .app-footer,
    .mainDisplay .app-footer,
    .mainDisplayAmd .app-footer,
    .mainDisplayDealer .app-footer,
    .mainDisplayChallan .app-footer,
    .mainDisplay3 .app-footer {
        margin-left: -16px;
        margin-right: -16px;
        margin-bottom: -16px;
        width: calc(100% + 32px);
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    .app-footer {
        padding: 12px 16px;
    }
    .app-footer .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}


/* ── Table Loading Overlay & Progress Bar/Circle ── */
.table-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 240px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.table-loader-spinner {
    width: 2.75rem;
    height: 2.75rem;
    border-width: 0.25rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.table-loader-progress {
    width: 220px;
    height: 6px;
    border-radius: 4px;
    background-color: #e2e8f0;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.table-loader-progress .progress-bar {
    background-color: #0d6efd;
}

.table-loader-text {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.03em;
}

/* DataTables Processing Indicator Override */
div.dataTables_processing {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    min-width: 220px !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1) !important;
    z-index: 1050 !important;
}
