/*!
 * ACE Grid Engine - styles for FAB, card mode, fullscreen, responsive polish
 */

/* ---------- Floating Action Button ---------- */
.ace-grid-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9990;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #2b7dbc;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.ace-grid-fab:hover,
.ace-grid-fab:focus {
    background: #1e6399;
    color: #fff;
    transform: scale(1.08);
}

/* ---------- Fullscreen table ---------- */
body.ace-grid-fullscreen-open {
    overflow: hidden;
}
.dataTables_wrapper.dt-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9995;
    background: #fff;
    overflow: auto;
    padding: 14px 18px;
}
.dataTables_wrapper.dt-fullscreen .dt-buttons {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding: 4px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.dataTables_wrapper.dt-fullscreen .dataTables_filter,
.dataTables_wrapper.dt-fullscreen .dataTables_length {
    position: sticky;
    top: 48px;
    z-index: 2;
    background: #fff;
    padding: 4px 0;
}

/* ---------- Card mode (mobile rows as cards) ---------- */
/* Forced card mode (any width) */
.dataTables_wrapper[data-dt-card="on"] table.dataTable thead {
    display: none;
}
.dataTables_wrapper[data-dt-card="on"] table.dataTable,
.dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody,
.dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody > tr {
    display: block;
    width: 100%;
}
.dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody > tr {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    padding: 6px 10px;
}
.dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody > tr > td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border: none;
    padding: 6px 4px;
    border-bottom: 1px dashed #e5e5e5;
}
.dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody > tr > td:last-child {
    border-bottom: none;
}
.dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody > tr > td:before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
    margin-right: 12px;
    flex-shrink: 0;
}
.dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody > tr > td {
    word-break: break-word;
}
.dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody > tr > td > span {
    min-width: 0;
}

/* Auto card mode on narrow screens */
@media (max-width: 767px) {
    .dataTables_wrapper[data-dt-card="auto"] table.dataTable thead,
    .dataTables_wrapper[data-dt-card="on"] table.dataTable thead {
        display: none;
    }
    .dataTables_wrapper[data-dt-card="auto"] table.dataTable,
    .dataTables_wrapper[data-dt-card="on"] table.dataTable,
    .dataTables_wrapper[data-dt-card="auto"] table.dataTable > tbody,
    .dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody,
    .dataTables_wrapper[data-dt-card="auto"] table.dataTable > tbody > tr,
    .dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody > tr {
        display: block;
        width: 100%;
    }
    .dataTables_wrapper[data-dt-card="auto"] table.dataTable > tbody > tr,
    .dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody > tr {
        border: 1px solid #d9d9d9;
        border-radius: 4px;
        margin-bottom: 8px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
        padding: 6px 10px;
    }
    .dataTables_wrapper[data-dt-card="auto"] table.dataTable > tbody > tr > td,
    .dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody > tr > td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        border: none;
        padding: 6px 4px;
        border-bottom: 1px dashed #e5e5e5;
        word-break: break-word;
    }
    .dataTables_wrapper[data-dt-card="auto"] table.dataTable > tbody > tr > td:last-child,
    .dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody > tr > td:last-child {
        border-bottom: none;
    }
    .dataTables_wrapper[data-dt-card="auto"] table.dataTable > tbody > tr > td:before,
    .dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody > tr > td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        margin-right: 12px;
        flex-shrink: 0;
    }
}

/* Keep CSS-hidden columns (.displayStyle / .setDisplay) hidden in card mode */
.dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody > tr > td.displayStyle,
.dataTables_wrapper[data-dt-card="on"] table.dataTable > tbody > tr > td.setDisplay,
.dataTables_wrapper[data-dt-card="auto"] table.dataTable > tbody > tr > td.displayStyle,
.dataTables_wrapper[data-dt-card="auto"] table.dataTable > tbody > tr > td.setDisplay {
    display: none !important;
}

/* ---------- Responsive child rows polish ---------- */
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before,
table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child:before {
    line-height: 14px;
}
table.dataTable > tbody > tr.child > td .child {
    padding-left: 8px;
}

/* ---------- Compact action buttons toolbar ---------- */
.tableTools-container {
    text-align: right;
}
.ace-grid-toolbar {
    text-align: right;
    clear: both;
}
.tableTools-container .dt-buttons,
.ace-grid-toolbar .dt-buttons {
    display: inline-block;
    float: none;
}
.tableTools-container .dt-buttons .dt-button {
    padding: 4px 8px;
    font-size: 13px;
}

/* ---------- SweetAlert settings popup tweaks ---------- */
.ace-grid-settings .ace-grid-check,
.ace-grid-settings .ace-grid-radio {
    font-weight: normal;
    margin-bottom: 0;
}
.ace-grid-settings input[type="checkbox"],
.ace-grid-settings input[type="radio"] {
    margin-right: 6px;
    vertical-align: middle;
}

/* ---------- Report Hub - clean light layout (MasterReport_* pages) ---------- */
.page-content.glass-container {
    background: #f4f6f9;
    min-height: 0;
    padding: 16px 20px 24px;
    overflow: visible;
}

.glass-header {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 20px 26px;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.glass-header h1 {
    margin: 0;
    color: #1f2937;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.glass-header h1 > i {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #ffffff;
    font-size: 20px;
    margin-right: 14px;
    flex-shrink: 0;
}

.glass-header h1 small {
    color: #6b7280;
    font-size: 13px;
    margin-left: 14px;
    font-weight: 400;
}

.glass-header h1 small i {
    margin-right: 4px;
}

.glass-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-left: 4px solid #9ca3af;
    border-radius: 10px;
    margin-bottom: 22px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.glass-card:hover {
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

.glass-card-teal {
    border-left-color: #14b8a6;
}

.glass-card-blue {
    border-left-color: #3b82f6;
}

.glass-card-green {
    border-left-color: #10b981;
}

.glass-card-cyan {
    border-left-color: #06b6d4;
}

.glass-card-purple {
    border-left-color: #8b5cf6;
}

.glass-card-orange {
    border-left-color: #f59e0b;
}

.glass-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid #eef0f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.glass-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.glass-card-title i {
    font-size: 16px;
    color: #9ca3af;
}

.glass-card-teal .glass-card-title i {
    color: #14b8a6;
}

.glass-card-blue .glass-card-title i {
    color: #3b82f6;
}

.glass-card-green .glass-card-title i {
    color: #10b981;
}

.glass-card-cyan .glass-card-title i {
    color: #06b6d4;
}

.glass-card-purple .glass-card-title i {
    color: #8b5cf6;
}

.glass-card-orange .glass-card-title i {
    color: #f59e0b;
}

.glass-card-toolbar a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.glass-card-toolbar a:hover {
    color: #1f2937;
}

.glass-card-body {
    padding: 20px;
}

.glass-report-card {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
    transition: all 0.2s ease;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.glass-report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
    border-color: #dfe4ea;
}

.glass-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card-icon i {
    font-size: 24px;
    color: inherit;
}

.glass-report-card:hover .glass-card-icon {
    transform: scale(1.08);
}

.glass-warning-card .glass-card-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.glass-danger-card .glass-card-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.glass-info-card .glass-card-icon {
    background: rgba(20, 184, 166, 0.12);
    color: #0d9488;
}

.glass-report-card h4 {
    margin: 8px 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.glass-report-card p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
    line-height: 1.4;
}

.glass-btn {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.glass-btn i {
    margin-right: 5px;
}

.glass-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.glass-btn-primary {
    background: #3b82f6;
    color: #ffffff;
}

.glass-btn-primary:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.glass-btn-warning {
    background: #f59e0b;
    color: #ffffff;
}

.glass-btn-warning:hover {
    background: #d97706;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.glass-btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.glass-btn-danger:hover {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.glass-btn-info {
    background: #14b8a6;
    color: #ffffff;
}

.glass-btn-info:hover {
    background: #0d9488;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(20, 184, 166, 0.3);
}

@media (max-width: 768px) {
    .glass-header {
        padding: 16px 18px;
    }

    .glass-header h1 {
        font-size: 17px;
    }

    .glass-header h1 small {
        display: block;
        margin-left: 0;
        margin-top: 8px;
    }

    .glass-card-title {
        font-size: 15px;
    }

    .glass-card-body {
        padding: 14px;
    }
}

/* ==========================================================================
   Dashboard - clean light (Dashboard*.aspx)
   KPI tiles, filter card, data tables, chart boxes, matrices
   ========================================================================== */

/* --- Filter card --- */
.glass-filter-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 22px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.glass-filter-card label {
    font-weight: 600;
    color: #4b5563;
    font-size: 12.5px;
    margin-bottom: 4px;
}

.glass-filter-card .form-group {
    margin-bottom: 14px;
}

.glass-filter-card .form-control {
    border-radius: 8px;
    border-color: #d1d5db;
    height: 36px;
}

.glass-filter-card table {
    margin-bottom: 0;
}

.glass-filter-card table td {
    padding: 2px 10px 2px 0;
    border: none;
    font-weight: 600;
    color: #374151;
}

.glass-filter-card .btn {
    border-radius: 8px;
}

/* --- KPI stat tile --- */
.dash-kpi-card {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    padding: 18px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    height: calc(100% - 16px);
}

.dash-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.09);
    border-color: #dfe4ea;
}

.dash-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.dash-kpi-icon i {
    font-size: 22px;
    color: inherit;
}

.dash-kpi-value {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.dash-kpi-value a {
    color: inherit;
    text-decoration: none;
}

.dash-kpi-value a:hover {
    color: inherit;
    text-decoration: none;
}

.dash-kpi-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-top: 4px;
}

.dash-kpi-caption {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.4;
}

/* KPI color variants */
.dash-kpi-blue {
    border-left: 4px solid #3b82f6;
}

.dash-kpi-blue .dash-kpi-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.dash-kpi-green {
    border-left: 4px solid #10b981;
}

.dash-kpi-green .dash-kpi-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.dash-kpi-teal {
    border-left: 4px solid #14b8a6;
}

.dash-kpi-teal .dash-kpi-icon {
    background: rgba(20, 184, 166, 0.12);
    color: #0d9488;
}

.dash-kpi-purple {
    border-left: 4px solid #8b5cf6;
}

.dash-kpi-purple .dash-kpi-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.dash-kpi-orange {
    border-left: 4px solid #f59e0b;
}

.dash-kpi-orange .dash-kpi-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.dash-kpi-red {
    border-left: 4px solid #ef4444;
}

.dash-kpi-red .dash-kpi-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.dash-kpi-pink {
    border-left: 4px solid #ec4899;
}

.dash-kpi-pink .dash-kpi-icon {
    background: rgba(236, 72, 153, 0.1);
    color: #db2777;
}

.dash-kpi-cyan {
    border-left: 4px solid #06b6d4;
}

.dash-kpi-cyan .dash-kpi-icon {
    background: rgba(6, 182, 212, 0.12);
    color: #0891b2;
}

.dash-kpi-grey {
    border-left: 4px solid #6b7280;
}

.dash-kpi-grey .dash-kpi-icon {
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
}

.dash-kpi-yellow {
    border-left: 4px solid #eab308;
}

.dash-kpi-yellow .dash-kpi-icon {
    background: rgba(234, 179, 8, 0.12);
    color: #ca8a04;
}

/* --- Clean data table --- */
.glass-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.glass-data-table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #e5e7eb;
}

.glass-data-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #eef0f3;
    color: #1f2937;
}

.glass-data-table tr:nth-child(even) td {
    background: #fafbfc;
}

.glass-data-table tr:hover td {
    background: #f0f6ff;
}

.glass-data-table a {
    color: #3b82f6;
    font-weight: 600;
}

/* --- Chart box --- */
.chart-box {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

/* --- Tax / collection matrix restyle inside glass containers --- */
.glass-container .glass-matrix {
    margin-top: 8px;
}

.glass-container .glass-matrix .pricing-box-small {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 10px;
    margin-bottom: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}

.glass-container .glass-matrix .pricing-box-small .widget-header {
    border: none;
    padding: 9px 10px;
    text-align: center;
    background: #f8fafc;
}

.glass-container .glass-matrix .pricing-box-small .widget-header h5 {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.glass-container .glass-matrix .pricing-table li {
    padding: 9px 10px;
    border-bottom: 1px solid #eef0f3;
    font-size: 13px;
    text-align: center;
    color: #1f2937;
    background: #ffffff;
}

.glass-container .glass-matrix .pricing-table-header li {
    padding: 9px 10px;
    border-bottom: 1px solid #eef0f3;
    font-size: 13px;
    text-align: left;
    color: #374151;
    background: #f8fafc;
}

.glass-container .glass-matrix .pricing-table-header li:first-child,
.glass-container .glass-matrix .pricing-table li:first-child {
    border-top: none;
}

.glass-container .glass-matrix .pricing-table li a,
.glass-container .glass-matrix .pricing-table-header li a {
    color: #3b82f6;
    font-weight: 600;
}

/* --- Service page tabs --- */
.glass-container .tabbable.tabs-left > .nav-tabs {
    margin-right: 0;
    border-right: 0;
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 10px 0 0 10px;
    padding-top: 10px;
}

.glass-container .tabbable.tabs-left > .nav-tabs > li {
    margin: 0;
    width: 100%;
}

.glass-container .tabbable.tabs-left > .nav-tabs > li > a {
    border: none;
    margin: 0;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    border-left: 3px solid transparent;
    background: #ffffff;
}

.glass-container .tabbable.tabs-left > .nav-tabs > li.active > a,
.glass-container .tabbable.tabs-left > .nav-tabs > li > a:hover {
    background: #f0f6ff;
    color: #3b82f6;
    border-left: 3px solid #3b82f6;
}

.glass-container .tabbable.tabs-left > .tab-content {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 0 10px 10px 0;
    padding: 18px;
}

/* --- Service activity tiles --- */
.glass-container .btn-app.btn-app-dash {
    border-radius: 12px;
    min-width: 120px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
    border: 1px solid #e9edf2;
}

.glass-container .btn-app.btn-app-dash:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.1);
}

/* --- User profile page --- */
.dash-profile-header {
    background: #ffffff;
    border: 1px solid #e9edf2;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    margin-bottom: 20px;
}

.dash-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid #dbe4ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.18);
    margin: 0 auto 10px;
    display: block;
}

.dash-profile-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.dash-profile-sub {
    font-size: 13px;
    color: #6b7280;
}

.dash-profile-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.glass-container .profile-user-info-striped {
    margin: 0;
}

.glass-container .profile-user-info-striped .profile-info-row {
    border-bottom: 1px solid #eef0f3;
}

.glass-container .profile-user-info-striped .profile-info-row > div {
    padding: 12px 10px;
    background: #ffffff;
}

.glass-container .profile-user-info-striped .profile-info-name {
    font-weight: 600;
    color: #4b5563;
    border-right: 1px solid #eef0f3;
}

.glass-container .profile-user-info-striped .profile-info-value {
    color: #111827;
}

.glass-container .dash-pay-btn {
    border-radius: 8px;
    padding: 8px 22px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

/* =========================================
   Global async loader (master UpdateProgress)
   ========================================= */
.ace-loader-overlay {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.35);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.ace-loader-box {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 16px;
    padding: 26px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    text-align: center;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    gap: 14px;
}

.ace-loader-text {
    color: #33415c;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ace-spinner {
    display: -webkit-inline-flex;
    display: inline-flex;
    gap: 6px;
}

    .ace-spinner span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        animation: aceBounce 1.2s ease-in-out infinite;
    }

        .ace-spinner span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .ace-spinner span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes aceBounce {
    0%, 80%, 100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 0.6;
    }

    40% {
        -webkit-transform: translateY(-12px);
        transform: translateY(-12px);
        opacity: 1;
    }
}

/* =========================================
   Per-column filter row (data-filter)
   ========================================= */
.ace-grid-filter th {
    background: #f8fafc;
    padding: 5px 6px !important;
    vertical-align: middle;
    border-top: 1px solid #e5e9f2;
}

.ace-grid-filter th.ace-grid-filter-hidden {
    display: none;
}

.ace-grid-filter-input {
    height: 28px;
    font-size: 12px;
    border-radius: 6px;
    padding: 2px 8px;
    border-color: #d7deeb;
    box-shadow: none;
    background-color: #fff;
}

.ace-grid-filter-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* =========================================
   Footer totals (data-total)
   ========================================= */
table.dataTable tfoot th {
    border-top: 2px solid #dbe3f0;
    background: #f1f5f9;
    color: #33415c;
}

table.dataTable tfoot th.ace-grid-total {
    font-weight: 700;
    color: #1f2937;
    background: #e8eef7;
    white-space: nowrap;
}

/* =========================================
   Glass data table (for non-DataTables grids)
   ========================================= */
.glass-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e9f2;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

    .glass-data-table > thead > tr > th {
        background: #f8fafc;
        color: #475569;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        border-bottom: 2px solid #e2e8f0;
        padding: 10px 12px;
        white-space: nowrap;
    }

    .glass-data-table > tbody > tr:nth-child(even) > td {
        background: #fafbfd;
    }

    .glass-data-table > tbody > tr:hover > td {
        background: #f1f5ff;
    }

    .glass-data-table > tbody > tr > td {
        padding: 9px 12px;
        border-top: 1px solid #eef2f7;
        vertical-align: middle;
        color: #33415c;
    }

    .glass-data-table > tfoot > tr > td {
        background: #f1f5f9;
        font-weight: 700;
        color: #1f2937;
        border-top: 2px solid #e2e8f0;
        padding: 10px 12px;
    }

/* =========================================
   Modern form controls (.modern-form)
   ========================================= */
.modern-form .form-group {
    margin-bottom: 18px;
}

.modern-form .control-label {
    font-weight: 600;
    color: #33415c;
    margin-bottom: 6px;
}

.modern-form .form-control {
    border-radius: 8px;
    border-color: #d7deeb;
    box-shadow: none;
    height: 38px;
}

.modern-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.modern-form label.required::after {
    content: ' *';
    color: #e11d48;
    font-weight: 700;
}

.modern-form .date-picker,
.modern-form .input-group.date > .form-control {
    border-radius: 8px;
}

.modern-form .input-group-addon {
    border-radius: 0 8px 8px 0;
}

/* =========================================
   Modern buttons (action classes, ACE/DataTables excluded)
   ========================================= */
.btn:not(.btn-white) {
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:not(.btn-white).btn-info,
.btn:not(.btn-white).btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #5b6ee1 100%);
    border-color: #5b6ee1;
    color: #fff;
}

    .btn:not(.btn-white).btn-info:hover,
    .btn:not(.btn-white).btn-primary:hover {
        background: linear-gradient(135deg, #5b6ee1 0%, #4f5fd0 100%);
        border-color: #4f5fd0;
        color: #fff;
        box-shadow: 0 4px 12px rgba(91, 110, 225, 0.35);
    }

.btn:not(.btn-white).btn-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #f59e0b;
    color: #fff;
}

    .btn:not(.btn-white).btn-warning:hover {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        border-color: #d97706;
        color: #fff;
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    }

.btn:not(.btn-white).btn-success {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    border-color: #10b981;
    color: #fff;
}

    .btn:not(.btn-white).btn-success:hover {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        border-color: #059669;
        color: #fff;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    }

.btn:not(.btn-white).btn-danger {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    border-color: #ef4444;
    color: #fff;
}

    .btn:not(.btn-white).btn-danger:hover {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        border-color: #dc2626;
        color: #fff;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    }

.btn:not(.btn-white).btn-default,
.btn:not(.btn-white).btn-outline {
    background: #fff;
    border-color: #d7deeb;
    color: #33415c;
}

    .btn:not(.btn-white).btn-default:hover,
    .btn:not(.btn-white).btn-outline:hover {
        background: #f1f5f9;
        border-color: #c3cbe0;
        color: #1f2937;
    }
