/* Modern UI layer - loaded after app.css. Purely visual overrides; no markup or behaviour depends on it. */
:root {
    --mx-bg: #f4f6fb;
    --mx-card: #ffffff;
    --mx-ink: #0f172a;
    --mx-muted: #64748b;
    --mx-line: #e6eaf2;
    --mx-radius: 14px;
    --mx-radius-sm: 10px;
    --mx-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
    --mx-shadow-hover: 0 2px 4px rgba(15, 23, 42, .06), 0 10px 28px rgba(15, 23, 42, .09);
    --mx-primary: #4f46e5;
    --mx-ok: #16a34a;
    --mx-warn: #d97706;
    --mx-danger: #dc2626;
    --mx-info: #2563eb;
}

html, body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.hold-transition:not(.lockscreen) { color: var(--mx-ink); }
#scrollable-container { scroll-behavior: smooth; }

/* ---------- Page headers ---------- */
.content-header { padding: 22px 24px 6px !important; }
.content-header > h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--mx-ink); margin: 0; }
.content-header > h1 > small { font-size: 13px; color: var(--mx-muted); font-weight: 500; margin-left: 8px; }
.content { padding: 16px 24px 28px !important; }

/* ---------- Cards / boxes ---------- */
.box, .nav-tabs-custom, .info-box, .small-box {
    border: 1px solid var(--mx-line) !important;
    border-radius: var(--mx-radius) !important;
    box-shadow: var(--mx-shadow) !important;
    background-color: var(--mx-card);
}
.small-box { background-color: initial; }
.box.box-primary, .box.box-solid.box-primary { border-top: 3px solid var(--mx-primary) !important; }
.box-header { padding: 16px 20px !important; border-radius: var(--mx-radius) var(--mx-radius) 0 0; }
.box-header.with-border { border-bottom: 1px solid var(--mx-line) !important; }
.box-header .box-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.box-body { padding: 18px 20px !important; }
.box-footer { border-top: 1px solid var(--mx-line) !important; border-radius: 0 0 var(--mx-radius) var(--mx-radius); }
.nav-tabs-custom > .nav-tabs { border-bottom: 1px solid var(--mx-line); padding: 0 8px; }
.nav-tabs-custom > .nav-tabs > li > a { font-weight: 500; color: var(--mx-muted); padding: 12px 16px; }
.nav-tabs-custom > .nav-tabs > li.active { border-top-color: var(--mx-primary) !important; }
.nav-tabs-custom > .nav-tabs > li.active > a { color: var(--mx-ink); font-weight: 600; }
.small-box { overflow: hidden; }
.small-box > .small-box-footer { border-radius: 0 0 var(--mx-radius) var(--mx-radius); }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--mx-radius-sm) !important; font-weight: 500; transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background-color: var(--mx-primary); border-color: var(--mx-primary); }
.btn-primary:hover, .btn-primary:focus { background-color: #4338ca; border-color: #4338ca; box-shadow: 0 6px 16px rgba(79, 70, 229, .3); }
.btn-success:hover { box-shadow: 0 6px 16px rgba(22, 163, 74, .28); }
.btn-danger:hover { box-shadow: 0 6px 16px rgba(220, 38, 38, .28); }
.btn-sm, .btn-xs { border-radius: 8px !important; }
.btn-group > .btn:not(:first-child):not(:last-child) { border-radius: 0 !important; }
.btn-group > .btn:first-child:not(:last-child) { border-radius: var(--mx-radius-sm) 0 0 var(--mx-radius-sm) !important; }
.btn-group > .btn:last-child:not(:first-child) { border-radius: 0 var(--mx-radius-sm) var(--mx-radius-sm) 0 !important; }

/* ---------- Forms ---------- */
.form-control, .select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple {
    border-radius: var(--mx-radius-sm) !important;
    border-color: #d8dee9 !important;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0 !important; }
.input-group .form-control:first-child:not(:last-child), .input-group-addon:first-child { border-radius: var(--mx-radius-sm) 0 0 var(--mx-radius-sm) !important; }
.input-group .form-control:last-child:not(:first-child), .input-group-addon:last-child { border-radius: 0 var(--mx-radius-sm) var(--mx-radius-sm) 0 !important; }
.form-control:focus, .select2-container--default.select2-container--focus .select2-selection--multiple, .select2-container--open .select2-selection--single {
    border-color: var(--mx-primary) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .15) !important;
}
label { font-weight: 600; color: #334155; font-size: 13px; }

/* ---------- Tables ---------- */
.table > thead > tr > th {
    background: #f8fafc; color: #475569; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 1px solid var(--mx-line) !important; padding: 12px 10px;
}
.table > tbody > tr > td { padding: 11px 10px; vertical-align: middle; }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border-color: var(--mx-line) !important; }
.table-striped > tbody > tr:nth-of-type(odd) { background-color: #fbfcfe; }
.table > tbody > tr:hover { background-color: #f3f5ff; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { border-radius: var(--mx-radius-sm); border: 1px solid #d8dee9; padding: 5px 10px; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--mx-primary) !important; border-color: var(--mx-primary) !important; color: #fff !important; border-radius: 8px;
}
.pagination > .active > a, .pagination > .active > a:hover { background-color: var(--mx-primary); border-color: var(--mx-primary); }

/* ---------- Modals, dropdowns, alerts ---------- */
.modal-content { border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 23, 42, .25); overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--mx-line); padding: 18px 22px; }
.modal-title { font-weight: 600; letter-spacing: -.01em; }
.modal-footer { border-top: 1px solid var(--mx-line); padding: 14px 22px; }
.dropdown-menu { border: 1px solid var(--mx-line); border-radius: 12px; box-shadow: var(--mx-shadow-hover); padding: 6px; }
.dropdown-menu > li > a { border-radius: 8px; padding: 7px 12px; }
.alert { border-radius: var(--mx-radius-sm); }
.label, .badge { border-radius: 999px; font-weight: 600; padding: .3em .75em; }
.popover, .tooltip-inner { border-radius: 10px; }

/* ---------- Sidebar / scrollbars ---------- */
.side-bar { box-shadow: 1px 0 0 var(--mx-line); }
#side-bar a { border-radius: 10px; }
#side-bar a:hover { background-color: #f1f4ff; }
#side-bar::-webkit-scrollbar, #scrollable-container::-webkit-scrollbar, .dataTables_scrollBody::-webkit-scrollbar { width: 8px; height: 8px; }
#side-bar::-webkit-scrollbar-thumb, #scrollable-container::-webkit-scrollbar-thumb, .dataTables_scrollBody::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }

/* ---------- Subscription banner ---------- */
.mx-sub-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 9px 22px; font-size: 13px; line-height: 1.4; border-bottom: 1px solid transparent; flex-shrink: 0;
}
.mx-sub-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mx-sub-main i { font-size: 16px; }
.mx-sub-actions { display: flex; align-items: center; gap: 12px; }
.mx-sub-details { opacity: .8; font-size: 12px; }
.mx-sub-cta {
    padding: 5px 14px; border-radius: 999px; font-weight: 600; font-size: 12px; text-decoration: none !important;
    color: #fff !important; transition: transform .12s ease, box-shadow .15s ease;
}
.mx-sub-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.mx-sub-close { background: none; border: 0; font-size: 20px; line-height: 1; color: inherit; opacity: .6; cursor: pointer; padding: 0 4px; }
.mx-sub-close:hover { opacity: 1; }
.mx-sub-ok { background: #ecfdf3; color: #166534; border-color: #bbf7d0; }
.mx-sub-info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.mx-sub-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; font-weight: 500; }
.mx-sub-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; font-weight: 500; }
.mx-sub-ok .mx-sub-cta { background-color: #16a34a; }
.mx-sub-info .mx-sub-cta { background-color: #2563eb; }
.mx-sub-warning .mx-sub-cta { background-color: #d97706; }
.mx-sub-danger .mx-sub-cta { background-color: #dc2626; }

/* ---------- Shared dashboard widgets (home + superadmin) ---------- */
.mx-kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 18px; }
.mx-kpi {
    display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--mx-card);
    border: 1px solid var(--mx-line); border-radius: var(--mx-radius); box-shadow: var(--mx-shadow);
    transition: transform .15s ease, box-shadow .2s ease;
}
.mx-kpi:hover { transform: translateY(-2px); box-shadow: var(--mx-shadow-hover); }
.mx-kpi-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--mx-muted); }
.mx-kpi-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--mx-ink); line-height: 1.2; word-break: break-word; }
.mx-kpi-sub { font-size: 12px; color: var(--mx-muted); }
.mx-up { color: var(--mx-ok); }
.mx-down { color: var(--mx-danger); }
.mx-muted { color: var(--mx-muted); font-size: 12px; }
.mx-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.mx-panels-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mx-panel { background: var(--mx-card); border: 1px solid var(--mx-line); border-radius: var(--mx-radius); box-shadow: var(--mx-shadow); padding: 16px 18px; }
.mx-panel h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.mx-panel h4 small { color: var(--mx-muted); font-weight: 500; font-size: 12px; margin-left: 6px; }
.mx-list { list-style: none; margin: 0; padding: 0; }
.mx-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #eef1f6; font-size: 13px; }
.mx-list li:first-child { border-top: 0; }
.mx-grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mx-empty { color: var(--mx-muted); justify-content: center; }
.mx-rank { width: 22px; height: 22px; border-radius: 50%; background: #eef2ff; color: var(--mx-primary); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mx-pill { padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: capitalize; background: #f1f5f9; color: #475569; white-space: nowrap; }
.mx-pill-paid, .mx-pill-approved { background: #dcfce7; color: #166534; }
.mx-pill-due, .mx-pill-declined { background: #fee2e2; color: #991b1b; }
.mx-pill-partial, .mx-pill-waiting { background: #fef3c7; color: #92400e; }
.mx-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.mx-quick a { padding: 8px 14px; border-radius: 999px; background: var(--mx-card); border: 1px solid var(--mx-line); color: #334155; font-weight: 500; font-size: 13px; box-shadow: var(--mx-shadow); transition: all .15s ease; }
.mx-quick a:hover { border-color: var(--mx-primary); color: var(--mx-primary); text-decoration: none; transform: translateY(-1px); }
.mx-quick a i { margin-right: 6px; }
.mx-alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--mx-radius-sm); margin-bottom: 16px; font-size: 13px; }
.mx-alert a { margin-left: auto; font-weight: 600; text-decoration: underline; }
.mx-alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.mx-insights { margin-bottom: 20px; }

@media (max-width: 991px) { .mx-panels, .mx-panels-3 { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
    .content { padding: 12px !important; }
    .content-header { padding: 16px 12px 4px !important; }
    .mx-sub-banner { padding: 8px 12px; }
    .mx-kpi-value { font-size: 22px; }
}
@media print { .mx-sub-banner { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* =====================================================================
   Layout restyle: top bar, sidebar, dashboard hero
   ===================================================================== */
#scrollable-container { background: var(--mx-bg); }

/* ---------- Top bar: light, glassy, with soft buttons ---------- */
.mx-topbar {
    background: rgba(255, 255, 255, .9) !important;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--mx-line) !important;
    box-shadow: 0 1px 12px rgba(15, 23, 42, .05);
    position: relative; z-index: 30;
}
.mx-topbar [class*="tw-ring-white/10"] {
    background: #f1f5f9 !important; color: #334155 !important; border: 1px solid #e2e8f0;
    box-shadow: none !important; border-radius: 10px !important;
}
.mx-topbar [class*="tw-ring-white/10"]:hover { background: #e7ecf5 !important; color: #0f172a !important; }
.mx-topbar a[href*="pos/create"] {
    background: linear-gradient(135deg, #4f46e5, #2563eb) !important; color: #fff !important; border: 0;
    box-shadow: 0 6px 16px rgba(79, 70, 229, .35) !important; font-weight: 600;
}
.mx-topbar a[href*="pos/create"]:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff !important; }
.mx-topbar details > ul { border-radius: 14px !important; box-shadow: var(--mx-shadow-hover) !important; }

/* ---------- Sidebar: branded header, pill items, accent active state ---------- */
.mx-sidebar { background: #fff; width: 17rem; }
.mx-sidebar .mx-brand {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 60%, #0891b2 100%) !important;
    border-right: 0 !important; height: 64px; box-shadow: 0 6px 18px rgba(79, 70, 229, .25); position: relative; z-index: 2;
}
.mx-sidebar .mx-brand p { font-weight: 700 !important; letter-spacing: -.01em; }
.mx-sidebar #side-bar { border-right: 0 !important; padding: 14px 12px !important; background: #fff; }
.mx-sidebar #side-bar > a, .mx-sidebar #side-bar a.drop_down, .mx-sidebar #side-bar a.tw-flex {
    padding: 9px 12px !important; border-radius: 12px !important; color: #475569 !important;
}
.mx-sidebar #side-bar a i, .mx-sidebar #side-bar a svg:first-child { color: #94a3b8; transition: color .15s ease; }
.mx-sidebar #side-bar a:hover { background: #f1f4ff !important; color: #1e1b4b !important; }
.mx-sidebar #side-bar a:hover i { color: var(--mx-primary); }
.mx-sidebar #side-bar a.tw-bg-gray-200 {
    background: linear-gradient(135deg, rgba(79, 70, 229, .12), rgba(37, 99, 235, .08)) !important;
    color: #3730a3 !important; font-weight: 600; box-shadow: inset 3px 0 0 var(--mx-primary);
}
.mx-sidebar #side-bar a.tw-bg-gray-200 i { color: var(--mx-primary); }
.mx-sidebar #side-bar .chiled a { padding: 4px 0 !important; box-shadow: none; background: transparent !important; }
.mx-sidebar #side-bar .chiled a.tw-text-primary-700 { color: var(--mx-primary) !important; font-weight: 600; }
.mx-sidebar #side-bar .tw-uppercase { color: #94a3b8; letter-spacing: .08em; }

/* ---------- Dashboard hero ---------- */
.mx-hero {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #0891b2 120%) !important;
    border-radius: 0 0 28px 28px; position: relative; overflow: hidden; padding-bottom: 28px !important;
    box-shadow: 0 14px 40px rgba(49, 46, 129, .25);
}
.mx-hero::before, .mx-hero::after {
    content: ""; position: absolute; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%);
}
.mx-hero::before { width: 420px; height: 420px; top: -160px; right: -80px; }
.mx-hero::after { width: 300px; height: 300px; bottom: -140px; left: 20%; }
.mx-hero > * { position: relative; z-index: 1; }
.mx-hero h1 { color: #fff !important; font-weight: 700 !important; letter-spacing: -.02em; }
.mx-hero .tw-absolute.tw-inset-0 { display: none !important; }
.mx-hero [class*="tw-ring-gray-200"] { border: 0; border-radius: 16px !important; box-shadow: 0 8px 24px rgba(15, 23, 42, .18) !important; }
.mx-hero #dashboard_date_filter { background: rgba(255, 255, 255, .95); border-radius: 12px; font-weight: 600; }
.mx-hero .select2-container--default .select2-selection--single { border: 0 !important; }
.mx-insights { margin-top: 4px; }

@media (max-width: 1023px) { .mx-sidebar { width: 16rem; } }

/* =====================================================================
   Modern loaders: replaces every Font Awesome spinner (.fa-spin), the
   DataTables "Processing" box and adds a slim top progress bar.
   ===================================================================== */
@keyframes mx-rotate { to { transform: rotate(360deg); } }
@keyframes mx-glow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes mx-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* Ring spinner: gradient arc that fades out behind a bright round head */
.fa-spin, .fas.fa-spin, .fa.fa-spin, .fa-spin.fa-fw {
    -webkit-animation: mx-rotate .75s cubic-bezier(.55, .2, .45, .8) infinite !important;
    animation: mx-rotate .75s cubic-bezier(.55, .2, .45, .8) infinite !important;
    position: relative; display: inline-block; width: 1em; height: 1em; line-height: 1;
    vertical-align: -.125em; text-align: center; font-style: normal;
}
.fa-spin::before {
    content: "" !important; display: block; width: 100%; height: 100%; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0%, currentColor 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - .17em), #000 calc(100% - .15em));
    mask: radial-gradient(farthest-side, transparent calc(100% - .17em), #000 calc(100% - .15em));
}
.fa-spin::after {
    content: ""; position: absolute; top: 0; left: 50%; width: .19em; height: .19em; margin-left: -.095em;
    border-radius: 50%; background: currentColor; box-shadow: 0 0 .35em currentColor;
}
/* Large, standalone loaders get the brand gradient and a soft glow */
.fa-spin.fa-lg, .fa-spin.fa-2x, .fa-spin.fa-3x, .fa-spin.fa-4x, .fa-spin.fa-5x { color: #4f46e5; filter: drop-shadow(0 0 6px rgba(79, 70, 229, .35)); }
.fa-spin.fa-lg::before, .fa-spin.fa-2x::before, .fa-spin.fa-3x::before, .fa-spin.fa-4x::before, .fa-spin.fa-5x::before {
    background: conic-gradient(from 0deg, rgba(6, 182, 212, 0) 0%, #06b6d4 45%, #4f46e5 100%);
}
.fa-spin.fa-2x::after, .fa-spin.fa-3x::after, .fa-spin.fa-4x::after, .fa-spin.fa-5x::after { background: #4f46e5; box-shadow: 0 0 .4em #4f46e5; }

/* DataTables "Processing..." becomes a floating pill with a ring */
div.dataTables_processing, .dataTables_wrapper .dataTables_processing {
    top: 50% !important; left: 50% !important; width: auto !important; height: auto !important;
    margin: 0 !important; padding: 10px 20px !important; transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, .96) !important; color: #334155; font-size: 13px; font-weight: 600;
    border: 1px solid #e6eaf2; border-radius: 999px; box-shadow: 0 10px 30px rgba(15, 23, 42, .15); z-index: 20;
}
div.dataTables_processing::before {
    content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(6, 182, 212, 0), #06b6d4 45%, #4f46e5);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    animation: mx-rotate .75s cubic-bezier(.55, .2, .45, .8) infinite;
}

/* Slim indeterminate bar at the very top while AJAX requests run */
#mx-ajax-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 99999; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
#mx-ajax-bar.on { opacity: 1; }
#mx-ajax-bar::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%;
    background: linear-gradient(90deg, #06b6d4, #4f46e5, #a855f7); border-radius: 3px; box-shadow: 0 0 10px rgba(79, 70, 229, .6);
    animation: mx-slide 1.1s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .fa-spin, div.dataTables_processing::before { animation-duration: 2s !important; } #mx-ajax-bar::before { animation-duration: 3s; } }

/* ---------- Subscription usage meters ---------- */
.mx-usage { background: var(--mx-card); border: 1px solid var(--mx-line); border-radius: var(--mx-radius); box-shadow: var(--mx-shadow); padding: 16px 18px; margin-bottom: 18px; }
.mx-usage-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mx-usage-head h4 { margin: 0; font-size: 15px; font-weight: 600; }
.mx-usage-head h4 small { color: var(--mx-muted); font-weight: 500; font-size: 12px; margin-left: 6px; }
.mx-usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.mx-usage-item { border: 1px solid var(--mx-line); border-radius: 12px; padding: 12px 14px; }
.mx-usage-top { display: flex; justify-content: space-between; font-size: 13px; color: #334155; margin-bottom: 8px; }
.mx-usage-bar { height: 8px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.mx-usage-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #06b6d4, #4f46e5); }
.mx-usage-foot { font-size: 12px; color: var(--mx-muted); margin-top: 6px; }
.mx-usage-warn .mx-usage-bar span { background: linear-gradient(90deg, #f59e0b, #d97706); }
.mx-usage-warn .mx-usage-foot { color: #b45309; font-weight: 600; }
.mx-usage-full .mx-usage-bar span { background: linear-gradient(90deg, #ef4444, #b91c1c); }
.mx-usage-full .mx-usage-foot { color: #b91c1c; font-weight: 600; }
.mx-usage-full { border-color: #fecaca; background: #fff7f7; }
