/* ============================================================
   QubeXCore brand layer
   Loaded after theme.css. Colours and fonts from qubexcore.com
     Brand blue #0066FF  |  light blue #4D9FFF  |  deep blue #0052CC / #0A49D6
     Text #F9F9F9 / #D4D4D4 / #A7A7A7  |  black #000, near-black #05070D / #070A12
   Fonts: Space Grotesk (body / UI), Syne (headings). Self-hosted, see /fonts/brand.
   Sections: 1 fonts  2 tokens  3 typography  4 numbers  5 brand details  6 login
   ============================================================ */

/* ---------- 1. Fonts ---------- */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/brand/space-grotesk-latin-wght-normal.woff2') format('woff2-variations'),
         url('../fonts/brand/space-grotesk-latin-wght-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/brand/syne-latin-wght-normal.woff2') format('woff2-variations'),
         url('../fonts/brand/syne-latin-wght-normal.woff2') format('woff2');
}

:root {
    --qxc-font-body: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --qxc-font-heading: 'Syne', 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    --qxc-blue: #0066ff;
    --qxc-blue-light: #4d9fff;
    --qxc-blue-deep: #0052cc;
}

/* ---------- 2. Colour tokens (override the --up-* set from theme.css) ---------- */
:root {
    --up-bg: #f4f6fb;
    --up-surface: #ffffff;
    --up-surface-2: #f8fafd;
    --up-surface-3: #edf1f9;
    --up-border: #e3e8f2;
    --up-text: #0b1020;
    --up-sub: #4a5468;
    --up-faint: #667085;
    --up-accent: #0066ff;
    --up-accent-soft: #e8f1ff;
    --up-shadow: 0 1px 3px rgba(5, 11, 26, .08);
}

:root.dark {
    --up-bg: #000000;
    --up-surface: #05070d;
    --up-surface-2: #070a12;
    --up-surface-3: #0c1220;
    --up-border: rgba(255, 255, 255, .09);
    --up-text: #f9f9f9;
    --up-sub: #d4d4d4;
    --up-faint: #a7a7a7;
    --up-accent: #4d9fff;
    --up-accent-soft: rgba(0, 102, 255, .16);
    --up-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.pos-actions-accent-indigo { color: var(--up-accent); }

/* ---------- 3. Typography ---------- */
/* Element selectors only (no "*"), so Font Awesome and other icon fonts keep their own family. */
body,
input, select, textarea, button,
.btn, .form-control, .table, .dataTables_wrapper,
.select2-container, .select2-results, .swal-modal, .toast {
    font-family: var(--qxc-font-body);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.content-header > h1, .box-title, .modal-title,
.side-bar-heading, .qxc-heading {
    font-family: var(--qxc-font-heading);
    letter-spacing: -.01em;
}

/* ---------- 4. Numbers line up in tables / totals ---------- */
td, th,
.display_currency, .price, .amount, .pos_line_total, .total-paid, .payment_due,
#total_payable, .price_total, .final-total, input[type="number"],
.dataTables_wrapper td.text-right, .table td.text-right {
    font-variant-numeric: tabular-nums;
}

/* ---------- 5. Brand details ---------- */
:root.dark ::selection { background: rgba(0, 102, 255, .45); color: #fff; }
::selection { background: rgba(0, 102, 255, .25); }

:root.dark a:not(.btn):not([class*="tw-"]) { color: var(--qxc-blue-light); }

.qxc-credit { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.qxc-credit img { height: 16px; width: auto; display: block; }
.qxc-credit:hover { text-decoration: none; }

/* ---------- 6. Login / auth pages (html background is set in extracss_auth) ---------- */
.qxc-auth-brand { display: flex; align-items: center; gap: 12px; }
.qxc-auth-brand img { height: 40px; width: auto; display: block; }
.qxc-auth-brand .qxc-wordmark {
    font-family: var(--qxc-font-heading);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -.01em;
    color: #f9f9f9;
}
.qxc-auth-tagline {
    text-align: center;
    color: #d4d4d4;
    font-family: var(--qxc-font-heading);
    font-weight: 600;
    letter-spacing: .02em;
    margin: 4px 0 18px;
}
.qxc-auth-tagline span { color: #4d9fff; }

.qxc-grad { background-image: linear-gradient(to right, #0a49d6, #0066ff); }
a.qxc-grad:hover, button.qxc-grad:hover { background-image: linear-gradient(to right, #0052cc, #1a7dff); }

/* Hard-coded violet utility colours in the POS views, mapped to the brand blue */
.tw-bg-\[\#646EE4\] { background-color: var(--qxc-blue-deep) !important; }
.hover\:tw-bg-\[\#414aac\]:hover { background-color: #003f99 !important; }
.tw-text-\[\#646EE4\] { color: var(--up-accent) !important; }

/* Gradient buttons (Add, Save ...) that use indigo-to-blue utilities: same shape, brand blues */
.tw-from-indigo-500,
.tw-from-indigo-600 {
    --tw-gradient-from: #0a49d6 var(--tw-gradient-from-position, );
    --tw-gradient-to: rgb(10 73 214 / 0) var(--tw-gradient-to-position, );
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.tw-from-indigo-700 {
    --tw-gradient-from: #0046c2 var(--tw-gradient-from-position, );
    --tw-gradient-to: rgb(0 70 194 / 0) var(--tw-gradient-to-position, );
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.tw-to-blue-500 { --tw-gradient-to: #0066ff var(--tw-gradient-to-position, ); }
.tw-text-indigo-600, .tw-text-indigo-700, .tw-text-violet-600, .tw-text-violet-700 { color: var(--up-accent) !important; }
.tw-bg-indigo-50, .tw-bg-violet-50 { background-color: var(--up-accent-soft) !important; }
.tw-border-indigo-200, .tw-border-violet-200 { border-color: color-mix(in srgb, var(--qxc-blue) 30%, transparent) !important; }

/* ============================================================
   7. Boot screen (first load per browser session, see layouts/app)
   ============================================================ */
#qxc-loader {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: radial-gradient(700px 420px at 50% 38%, rgba(0, 102, 255, .22), transparent 65%), #000;
    transition: opacity .3s cubic-bezier(.2, .7, .2, 1);
}
#qxc-loader.qxc-loader-out { opacity: 0; pointer-events: none; }
#qxc-loader img { width: 56px; height: 56px; display: block; }
.qxc-loader-word { font-family: var(--qxc-font-heading); font-weight: 700; font-size: 22px; letter-spacing: -.01em; color: #f9f9f9; }
.qxc-loader-bar { position: relative; width: 140px; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.qxc-loader-bar::after {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 40%;
    background: linear-gradient(90deg, #0066ff, #4d9fff);
    animation: qxc-slide 1.1s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes qxc-slide { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
@media (prefers-reduced-motion: reduce) { .qxc-loader-bar::after { animation: none; width: 100%; } #qxc-loader { transition: none; } }

/* ============================================================
   8. POS cart branding
   ============================================================ */
.pos-cart-head-logo { width: 22px; height: 22px; display: block; flex: 0 0 auto; }
.pos-cart-brand-logo--mark { max-height: none; width: 64px; height: 64px; opacity: .95; }
.qxc-empty-tag { font-family: var(--qxc-font-heading); font-weight: 600; font-size: 12px; letter-spacing: .04em; color: var(--up-accent); }
.pos-cart-head { background: var(--up-surface-2); }
.pos-cart-head-title { font-family: var(--qxc-font-heading); letter-spacing: -.005em; }

/* ============================================================
   9. Shared components: one radius, one border, blue focus
   ============================================================ */
:root { --qxc-radius: 12px; --qxc-radius-sm: 8px; --qxc-focus: 0 0 0 3px rgba(0, 102, 255, .28); }
.box, .info-box, .small-box, .modal-content, .dropdown-menu, .panel {
    border-radius: var(--qxc-radius) !important;
}
.modal-content { border: 1px solid var(--up-border); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .55); }
:root.dark .box, :root.dark .modal-content {
    background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .08);
}
:root.dark .modal-content { background: #070a12; }
.form-control, .select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple,
.btn { border-radius: var(--qxc-radius-sm) !important; }
.form-control:focus, .select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--multiple:focus {
    border-color: var(--qxc-blue) !important; box-shadow: var(--qxc-focus) !important; outline: 0;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--qxc-blue-light); outline-offset: 2px; }
.btn-primary { background-color: var(--qxc-blue); border-color: var(--qxc-blue); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--qxc-blue-deep); border-color: var(--qxc-blue-deep); }
.btn { font-weight: 600; transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease; }
.btn:active { transform: translateY(1px); }

/* Tables: quiet header, soft row hover, blue paging */
table.dataTable thead th, .table > thead > tr > th {
    font-family: var(--qxc-font-heading); font-size: 11px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--up-faint);
    border-bottom: 1px solid var(--up-border) !important;
}
.table > tbody > tr > td { border-top-color: var(--up-border); }
table.dataTable tbody tr:hover > td, .table-hover > tbody > tr:hover > td { background-color: var(--up-accent-soft) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.pagination > .active > a, .pagination > .active > span {
    background: var(--qxc-blue) !important; border-color: var(--qxc-blue) !important; color: #fff !important; border-radius: var(--qxc-radius-sm);
}
.dataTables_wrapper .dt-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.dataTables_wrapper .dataTables_length { margin-bottom: 8px; clear: both; }
.dataTables_wrapper .dataTables_processing {
    background: var(--up-surface) !important; color: var(--up-text); border: 1px solid var(--up-border);
    border-radius: var(--qxc-radius); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5);
}

/* Sidebar: blue active marker, Syne group headings */
.side-bar a.active, .side-bar .active > a, .side-bar li.active > a {
    background: var(--up-accent-soft) !important; color: var(--up-accent) !important;
}
.side-bar .side-bar-heading { font-family: var(--qxc-font-heading); }

/* POS: pay button gets the brand gradient, bigger tabular total */
.pos-actions-charge { background-image: linear-gradient(to right, #0a49d6, #0066ff); color: #fff; box-shadow: 0 6px 16px -6px rgba(0, 102, 255, .6); }
:root.dark .pos-actions-charge { color: #fff; }
:root.dark .pos-actions-charge .pos-actions-kbd { color: #fff; background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); }
.pos-actions-accent-violet { color: var(--up-accent); }
#pos_table tbody td { font-variant-numeric: tabular-nums; }
.pos_form_totals .price_total, .pos_form_totals #total_payable, .pos_form_totals .final-total {
    font-family: var(--qxc-font-heading); font-weight: 700; font-variant-numeric: tabular-nums;
}

/* Touch targets on phones/tablets */
@media (max-width: 991px) {
    .btn, .form-control, .select2-container .select2-selection--single { min-height: 40px; }
    .pos-icon-btn { width: 40px; height: 40px; }
}

/* Custom scrollbars from the palette */
* { scrollbar-width: thin; scrollbar-color: rgba(120, 140, 180, .45) transparent; }

/* DataTables top row (Show N entries | export buttons | search): flex instead of 1/8/3 grid columns that overlap */
.dataTables_wrapper > .row:has(.dataTables_length) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-left: 0; margin-right: 0; }
.dataTables_wrapper > .row:has(.dataTables_length)::before, .dataTables_wrapper > .row:has(.dataTables_length)::after { display: none; }
.dataTables_wrapper > .row:has(.dataTables_length) > [class*="col-"] { float: none; width: auto; padding: 0; }
.dataTables_wrapper > .row:has(.dataTables_length) > .col-sm-8 { flex: 1 1 320px; }
.dataTables_wrapper > .row:has(.dataTables_length) .dataTables_length, .dataTables_wrapper > .row:has(.dataTables_length) .dataTables_filter { margin: 0; white-space: nowrap; }
.dataTables_wrapper > .row:has(.dataTables_length) .dataTables_filter { text-align: right; }

/* Menus and popups must be opaque so they stay readable over tables */
.dropdown-menu, .select2-dropdown, .swal-modal, .popover, .datepicker-dropdown, .daterangepicker {
    background-color: var(--up-surface) !important;
    border: 1px solid var(--up-border) !important;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, .35) !important;
    opacity: 1;
}
:root.dark .dropdown-menu, :root.dark .select2-dropdown, :root.dark .popover { background-color: #0c1220 !important; border-color: rgba(255, 255, 255, .14) !important; box-shadow: 0 18px 48px -8px rgba(0, 0, 0, .9) !important; }
.dropdown-menu > li > a { color: var(--up-text); }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { background-color: var(--up-accent-soft) !important; color: var(--up-accent) !important; }

/* ============================================================
   10. Tables v2 ("ledger"): horizontal hairlines only, roomy rows,
   one quiet toolbar, soft status pills. Applies to every DataTable.
   ============================================================ */
.dataTables_wrapper { font-size: 13px; }

/* Toolbar: ghost export buttons, searchable field with icon */
.dataTables_wrapper .dt-buttons .btn, .dataTables_wrapper .dt-buttons .dt-button, .dataTables_wrapper .dt-buttons button {
    height: 32px; padding: 0 12px; font-size: 12px; font-weight: 600; line-height: 30px;
    background: transparent !important; color: var(--up-sub) !important;
    border: 1px solid var(--up-border) !important; box-shadow: none !important;
}
.dataTables_wrapper .dt-buttons .btn:hover, .dataTables_wrapper .dt-buttons button:hover {
    color: var(--up-accent) !important; border-color: var(--up-accent) !important; background: var(--up-accent-soft) !important;
}
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select {
    height: 34px; background-color: var(--up-surface-2); border: 1px solid var(--up-border); color: var(--up-text);
}
.dataTables_wrapper .dataTables_filter input {
    width: 220px; max-width: 100%; margin-left: 0 !important; padding-left: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 11px 50%;
}

/* Table body */
table.dataTable, .table-bordered { border-collapse: separate; border-spacing: 0; }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td,
table.dataTable.table-bordered th, table.dataTable.table-bordered td {
    border-left: 0 !important; border-right: 0 !important;
}
.table-bordered { border-top: 0 !important; }
table.dataTable > thead > tr > th, .table > thead > tr > th {
    padding: 11px 14px; font-family: var(--qxc-font-body); font-size: 11px; font-weight: 700;
    letter-spacing: .07em; background: var(--up-surface-2) !important; white-space: nowrap;
    border-top: 1px solid var(--up-border) !important; border-bottom: 1px solid var(--up-border) !important;
}
table.dataTable > tbody > tr > td, .table > tbody > tr > td {
    padding: 13px 14px; vertical-align: middle; border-top: 0 !important; border-bottom: 1px solid var(--up-border) !important;
}
table.dataTable > tbody > tr:last-child > td { border-bottom: 0 !important; }
.table-striped > tbody > tr:nth-of-type(odd), :root.dark .table-striped > tbody > tr:nth-of-type(odd),
table.dataTable.stripe tbody tr.odd, :root.dark table.dataTable.stripe tbody tr.odd { background-color: transparent !important; }
table.dataTable > tbody > tr > td:first-child { padding-left: 16px; }
table.dataTable > thead > tr > th:first-child { padding-left: 16px; }
table.dataTable input[type="checkbox"] { accent-color: var(--qxc-blue); width: 15px; height: 15px; }
table.dataTable img { border-radius: var(--qxc-radius-sm); object-fit: cover; }

/* Totals row reads as a total */
.table > tfoot > tr > td, .table > tfoot > tr > th, tr.footer-total > td, .bg-gray.font-17 > td {
    padding: 13px 14px; font-weight: 700; font-variant-numeric: tabular-nums;
    border-top: 1px solid var(--up-border) !important; background: var(--up-surface-2) !important;
}

/* Row action button: compact blue pill */
table.dataTable .btn-group > .btn.dropdown-toggle, table.dataTable .btn-xs.btn-info, table.dataTable .btn-info.btn-xs {
    height: 28px; padding: 0 10px; font-size: 12px; font-weight: 600;
    background: var(--up-accent-soft) !important; color: var(--up-accent) !important;
    border: 1px solid color-mix(in srgb, var(--qxc-blue) 35%, transparent) !important;
}
table.dataTable .btn-group > .btn.dropdown-toggle:hover { background: var(--qxc-blue) !important; color: #fff !important; }

/* Status pills (labels/badges) */
.table .label, table.dataTable .label {
    display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.3;
}
.table .label-success, .table .bg-green { background: rgba(16, 185, 129, .16) !important; color: #059669 !important; }
.table .label-warning, .table .bg-yellow { background: rgba(245, 158, 11, .18) !important; color: #b45309 !important; }
.table .label-danger, .table .bg-red { background: rgba(239, 68, 68, .16) !important; color: #dc2626 !important; }
.table .label-info, .table .label-primary, .table .bg-aqua, .table .bg-light-blue { background: var(--up-accent-soft) !important; color: var(--up-accent) !important; }
:root.dark .table .label-success, :root.dark .table .bg-green { color: #34d399 !important; }
:root.dark .table .label-warning, :root.dark .table .bg-yellow { color: #fbbf24 !important; }
:root.dark .table .label-danger, :root.dark .table .bg-red { color: #f87171 !important; }

/* Footer: info text + pagination */
.dataTables_wrapper .dataTables_info { padding-top: 14px; font-size: 12px; color: var(--up-faint) !important; }
.dataTables_wrapper .dataTables_paginate { padding-top: 10px; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 32px; height: 32px; padding: 0 10px !important; margin-left: 4px; line-height: 30px;
    border: 1px solid var(--up-border) !important; border-radius: var(--qxc-radius-sm) !important; font-weight: 600;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled { opacity: .45; }

/* Sort arrows from the palette */
table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc { color: var(--up-accent) !important; }

/* Phones: tighter rows, scroll hint */
@media (max-width: 767px) {
    table.dataTable > tbody > tr > td, .table > tbody > tr > td { padding: 10px 10px; font-size: 13px; }
    table.dataTable > thead > tr > th, .table > thead > tr > th { padding: 9px 10px; }
    .dataTables_wrapper .dataTables_filter input { width: 100%; }
    .dataTables_wrapper > .row:first-child .dataTables_filter { text-align: left; width: 100%; }
    .dataTables_wrapper .dataTables_paginate .paginate_button { min-width: 36px; height: 36px; line-height: 34px; }
}

/* Row action buttons use DaisyUI classes (tw-dw-btn-*) */
table.dataTable .btn-group > .dropdown-toggle, table.dataTable .tw-dw-btn.tw-dw-btn-xs {
    height: 28px; min-height: 28px; padding: 0 10px; font-size: 12px; font-weight: 600; border-radius: var(--qxc-radius-sm) !important;
    background: var(--up-accent-soft) !important; color: var(--up-accent) !important;
    border: 1px solid color-mix(in srgb, var(--qxc-blue) 35%, transparent) !important;
}
table.dataTable .btn-group > .dropdown-toggle:hover, table.dataTable .tw-dw-btn.tw-dw-btn-xs:hover { background: var(--qxc-blue) !important; color: #fff !important; }

/* Bootstrap pagination markup: style the <a>, not the <li> */
.dataTables_wrapper .dataTables_paginate ul.pagination { margin: 0; display: inline-flex; gap: 4px; }
.dataTables_wrapper .dataTables_paginate li.paginate_button {
    min-width: 0; height: auto; padding: 0 !important; margin: 0; line-height: normal; border: 0 !important; background: transparent !important;
}
.dataTables_wrapper .dataTables_paginate li.paginate_button > a {
    display: block; min-width: 32px; height: 32px; padding: 0 10px; line-height: 30px; text-align: center; font-weight: 600;
    color: var(--up-sub); background: transparent; border: 1px solid var(--up-border); border-radius: var(--qxc-radius-sm) !important; margin: 0;
}
.dataTables_wrapper .dataTables_paginate li.paginate_button:hover > a { color: var(--up-accent); border-color: var(--up-accent); background: var(--up-accent-soft); }
.dataTables_wrapper .dataTables_paginate li.paginate_button.active > a,
.dataTables_wrapper .dataTables_paginate li.paginate_button.active > a:hover { background: var(--qxc-blue); border-color: var(--qxc-blue); color: #fff; }
.dataTables_wrapper .dataTables_paginate li.paginate_button.disabled > a { opacity: .4; pointer-events: none; }

.dataTables_wrapper { clear: both; }
.dataTables_wrapper .dt-buttons > * { flex: 0 0 auto; }

/* ============================================================
   11. Popups v2: modals, DaisyUI buttons, confirm dialogs, pickers, toasts
   ============================================================ */

/* DaisyUI buttons (tw-dw-btn-*) mapped to the brand */
.tw-dw-btn { border-radius: var(--qxc-radius-sm); font-weight: 600; text-transform: none; transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease; }
.tw-dw-btn:active { transform: translateY(1px); }
.tw-dw-btn-primary:not(.tw-dw-btn-outline):not(.tw-dw-btn-ghost) {
    background-color: var(--qxc-blue) !important; border-color: var(--qxc-blue) !important; color: #fff !important;
}
.tw-dw-btn-primary:not(.tw-dw-btn-outline):not(.tw-dw-btn-ghost):hover { background-color: var(--qxc-blue-deep) !important; border-color: var(--qxc-blue-deep) !important; }
.tw-dw-btn-neutral:not(.tw-dw-btn-outline) {
    background-color: transparent !important; color: var(--up-sub) !important; border: 1px solid var(--up-border) !important;
}
.tw-dw-btn-neutral:not(.tw-dw-btn-outline):hover { color: var(--up-text) !important; border-color: var(--up-faint) !important; background-color: var(--up-surface-3) !important; }

/* Modal shell */
.modal-backdrop.in { opacity: .72; background: #000; }
.modal-content { border-radius: 16px !important; overflow: hidden; background: var(--up-surface); }
.modal-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid var(--up-border);
}
.modal-header::before, .modal-header::after { display: none; }
.modal-header .modal-title { order: 1; flex: 1; margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--up-text); }
.modal-header .close {
    order: 2; float: none; margin: 0; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px; line-height: 1; opacity: 1; color: var(--up-faint); text-shadow: none; border-radius: var(--qxc-radius-sm);
}
.modal-header .close:hover { color: var(--up-text); background: var(--up-surface-3); }
.modal-body { padding: 20px; max-height: calc(100vh - 220px); overflow-y: auto; }
.modal-footer {
    display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px;
    padding: 14px 20px; border-top: 1px solid var(--up-border); background: var(--up-surface-2);
}
.modal-footer::before, .modal-footer::after { display: none; }
.modal-footer .btn, .modal-footer .tw-dw-btn { margin: 0; min-width: 88px; }
/* Primary action last, visually dominant */
.modal-footer .tw-dw-btn-primary, .modal-footer .btn-primary { order: 2; }
.modal-footer .tw-dw-btn-neutral, .modal-footer [data-dismiss="modal"] { order: 1; }

/* Form fields inside popups: one height, one surface */
.modal-body label, .modal-body .control-label { font-size: 12px; font-weight: 600; color: var(--up-sub); margin-bottom: 5px; }
.modal-body .form-control { height: 38px; background-color: var(--up-surface-2); border: 1px solid var(--up-border); color: var(--up-text); }
.modal-body textarea.form-control { height: auto; }
.modal-body .input-group-addon { background: var(--up-surface-3); border: 1px solid var(--up-border); color: var(--up-faint); border-radius: var(--qxc-radius-sm) 0 0 var(--qxc-radius-sm) !important; }
.modal-body .input-group .form-control:not(:first-child) { border-radius: 0 var(--qxc-radius-sm) var(--qxc-radius-sm) 0 !important; }
.modal-body select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
.modal-body input[type="radio"], .modal-body input[type="checkbox"] { accent-color: var(--qxc-blue); }
.help-block, .modal-body .help-block { color: var(--up-faint); font-size: 12px; }

/* Select2 list */
.select2-dropdown { border-radius: var(--qxc-radius-sm) !important; overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: var(--qxc-blue) !important; color: #fff !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field { background: var(--up-surface-2); border: 1px solid var(--up-border); color: var(--up-text); border-radius: var(--qxc-radius-sm); }
.select2-results__option { padding: 8px 12px; }

/* SweetAlert confirm / alert dialogs */
.swal-overlay { background-color: rgba(0, 0, 0, .72); }
.swal-modal { border-radius: 16px; background: var(--up-surface); border: 1px solid var(--up-border); width: 440px; }
.swal-title { font-family: var(--qxc-font-heading); color: var(--up-text); font-size: 20px; font-weight: 700; }
.swal-text { color: var(--up-sub); text-align: center; }
.swal-footer { display: flex; justify-content: center; gap: 8px; padding-top: 4px; margin-top: 8px; }
.swal-button { border-radius: var(--qxc-radius-sm); font-weight: 600; padding: 10px 22px; box-shadow: none !important; }
.swal-button--confirm { background-color: var(--qxc-blue); }
.swal-button--confirm:not([disabled]):hover { background-color: var(--qxc-blue-deep); }
.swal-button--danger { background-color: #dc2626; }
.swal-button--danger:not([disabled]):hover { background-color: #b91c1c; }
.swal-button--cancel { background-color: transparent; color: var(--up-sub); border: 1px solid var(--up-border); }
.swal-button--cancel:not([disabled]):hover { background-color: var(--up-surface-3); color: var(--up-text); }
.swal-icon--warning { border-color: #f59e0b; }

/* Date pickers */
.daterangepicker, .datepicker-dropdown, .bootstrap-datetimepicker-widget { border-radius: var(--qxc-radius) !important; overflow: hidden; color: var(--up-text); }
.daterangepicker td.active, .daterangepicker td.active:hover, .daterangepicker .ranges li.active,
.datepicker table tr td.active, .datepicker table tr td.active:hover { background-color: var(--qxc-blue) !important; color: #fff !important; border-radius: 6px; }
.daterangepicker .btn-success, .daterangepicker .applyBtn { background-color: var(--qxc-blue); border-color: var(--qxc-blue); }

/* Toasts */
#toast-container > div { border-radius: var(--qxc-radius) !important; box-shadow: 0 14px 36px -10px rgba(0, 0, 0, .6) !important; opacity: 1 !important; font-family: var(--qxc-font-body); }

/* Phones: popups become near full-width sheets */
@media (max-width: 767px) {
    .modal-dialog { margin: 12px; }
    .modal-body { padding: 16px; max-height: calc(100vh - 190px); }
    .modal-header, .modal-footer { padding: 12px 16px; }
    .modal-footer .btn, .modal-footer .tw-dw-btn { flex: 1 1 0; }
    .swal-modal { width: calc(100vw - 32px); }
}

/* SweetAlert v1 sets button colours with higher-specificity rules; win them explicitly */
.swal-modal .swal-button--cancel { background-color: transparent !important; color: var(--up-sub) !important; border: 1px solid var(--up-border) !important; }
.swal-modal .swal-button--cancel:hover { background-color: var(--up-surface-3) !important; color: var(--up-text) !important; }
.swal-modal .swal-button--confirm { background-color: var(--qxc-blue) !important; color: #fff !important; }
.swal-modal .swal-button--danger { background-color: #dc2626 !important; color: #fff !important; }
.swal-modal .swal-button { min-width: 96px; }
.swal-overlay--show-modal { background-color: rgba(0, 0, 0, .72) !important; }

/* ============================================================
   12. POS screen
   ============================================================ */
/* The cart must always leave room for the product name: when the cart panel is narrow
   (tablet / split screens) the unit-price column folds away, as it already does on phones. */
.pos-cart-main { container-type: inline-size; container-name: poscart; }
@container poscart (max-width: 640px) {
    #pos_table thead th.pos-th-price, #pos_table tbody td.pos-td-price { display: none; }
    #pos_table th.pos-th-qty { width: 170px !important; }
}
#pos_table .text-info, #pos_table .text-link { color: var(--up-accent) !important; }
#pos_table img[alt="product-img"] { border-radius: 8px !important; }
.pos_form_totals #total_payable, .pos_form_totals .total_payable, .pos_form_totals .price_total { letter-spacing: -.01em; }
.pos-sheet-logo { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.pos-sheet-label { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.pos-sheet-logo { margin-right: 0; vertical-align: baseline; flex: 0 0 auto; }

/* Light vertical dividers between columns (not in the POS cart) */
.table:not(#pos_table) > thead > tr > th + th,
.table:not(#pos_table) > tbody > tr > td + td,
.table:not(#pos_table) > tfoot > tr > td + td,
.table:not(#pos_table) > tfoot > tr > th + th,
table.dataTable.table:not(#pos_table) > thead > tr > th + th,
table.dataTable.table:not(#pos_table) > tbody > tr > td + td,
table.dataTable.table-bordered:not(#pos_table) > thead > tr > th + th,
table.dataTable.table-bordered:not(#pos_table) > tbody > tr > td + td {
    border-left: 1px solid color-mix(in srgb, var(--up-border) 75%, transparent) !important;
}

/* ============================================================
   13. POS right panel: read the total, enter cash, press pay.
   Order top to bottom: customer, summary lines, TOTAL, cash given, pay buttons, other actions.
   ============================================================ */
.pos-shell-cart { background: var(--up-surface); }

/* Customer: a clear first step */
.pos-shell-cart > .pos-customer-row { padding: 12px 14px; }

/* Summary lines: quiet, no dashed rules, no "Sale summary" kicker */
.pos-shell-cart .pos_form_totals { border-top: 1px solid var(--up-border); background: transparent; padding-bottom: 12px; }
.pos-shell-cart .pos_form_totals::before { display: none; }
.pos-shell-cart .pos_form_totals .pos_totals_left { padding: 10px 16px 6px; }
.pos-shell-cart .pos_form_totals .pos_totals_cell { border-bottom: 0 !important; padding: 5px 0; }
.pos-shell-cart .pos_form_totals .pos_totals_label { font-size: 13px; color: var(--up-faint); }
.pos-shell-cart .pos_form_totals .pos_totals_value,
.pos-shell-cart .pos_form_totals #shipping_charges_amount { font-size: 14px !important; font-weight: 600; font-variant-numeric: tabular-nums; }

/* TOTAL: the one thing everyone looks at */
.pos-shell-cart .pos_form_totals .pos_totals_right {
    margin: 6px 14px 0; padding: 14px 18px; border: 0; border-radius: 14px;
    background: linear-gradient(135deg, #0a49d6 0%, #0066ff 100%) !important;
    box-shadow: 0 10px 24px -12px rgba(0, 102, 255, .8);
}
.pos-shell-cart .pos_form_totals .pos_totals_right_label {
    font-size: 12px; font-weight: 700; letter-spacing: .1em; color: rgba(255, 255, 255, .82) !important; text-transform: uppercase;
}
.pos-shell-cart .pos_form_totals .pos_totals_right_value,
.pos-shell-cart .pos_form_totals #total_payable {
    font-family: var(--qxc-font-heading); font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
    color: #fff !important; font-variant-numeric: tabular-nums;
}

/* Actions block: cash given first, then the two pay buttons, then the rest */
.pos-shell-cart > .pos-form-actions { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; border-top: 0; }
.pos-shell-cart .pos-actions-quickpay { order: 1; }
.pos-shell-cart .pos-actions-primary { order: 2; }
.pos-shell-cart .pos-actions-secondary { order: 3; }

.pos-shell-cart .pos-actions-quickpay { padding: 4px 6px 4px 14px; border-radius: 12px; min-height: 52px; }
.pos-shell-cart .pos-actions-quickpay:focus-within { border-color: var(--qxc-blue); box-shadow: var(--qxc-focus); }
.pos-shell-cart .pos-actions-quickpay .qp-cash-input { height: 44px; font-size: 20px; font-family: var(--qxc-font-heading); }
.pos-shell-cart .pos-actions-quickpay .qp-change-display { font-size: 13px; padding: 6px 12px; }

.pos-shell-cart .pos-actions-charge, .pos-shell-cart .pos-actions-express {
    min-height: 56px; font-size: 16px; font-weight: 700; border-radius: 12px; letter-spacing: .005em;
}
.pos-shell-cart .pos-actions-charge { background: transparent !important; background-image: none !important; color: var(--up-accent) !important; box-shadow: none; border: 1.5px solid var(--qxc-blue); }
.pos-shell-cart .pos-actions-charge:hover { background: var(--up-accent-soft) !important; filter: none; }
.pos-shell-cart .pos-actions-charge .pos-actions-kbd { color: var(--up-accent); background: var(--up-accent-soft); border-color: color-mix(in srgb, var(--qxc-blue) 35%, transparent); }
.pos-shell-cart .pos-actions-express { background: #059669 !important; color: #fff !important; box-shadow: 0 8px 18px -10px rgba(5, 150, 105, .9); }
.pos-shell-cart .pos-actions-express:hover { background: #047857 !important; filter: none; }

/* Other actions: even 2-column grid of quiet buttons */
.pos-shell-cart .pos-actions-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-shell-cart .pos-actions-secondary > .pos-actions-divider { display: none; }
.pos-shell-cart .pos-actions-secondary-btn, .pos-shell-cart .pos-actions-more-toggle {
    min-height: 42px; justify-content: center; font-size: 13px; font-weight: 600; border-radius: 10px; width: 100%;
    color: var(--up-sub); background: var(--up-surface-2); border: 1px solid var(--up-border);
}
.pos-shell-cart .pos-actions-secondary-btn:hover, .pos-shell-cart .pos-actions-more-toggle:hover { color: var(--up-accent); border-color: var(--up-accent); background: var(--up-accent-soft); }
.pos-shell-cart .pos-actions-more { grid-column: 1 / -1; margin-left: 0; }
.pos-shell-cart .js-pos-cancel { color: #dc2626; }
:root.dark .pos-shell-cart .js-pos-cancel { color: #f87171; }

/* Short screens: keep everything reachable without scrolling the panel */
@media (max-height: 800px) {
    .pos-shell-cart .pos_form_totals .pos_totals_right { padding: 10px 16px; }
    .pos-shell-cart .pos_form_totals .pos_totals_right_value, .pos-shell-cart .pos_form_totals #total_payable { font-size: 28px; }
    .pos-shell-cart .pos-actions-charge, .pos-shell-cart .pos-actions-express { min-height: 48px; }
    .pos-shell-cart > .pos-form-actions { gap: 8px; padding: 10px 14px 12px; }
    .pos-shell-cart .pos-actions-secondary-btn, .pos-shell-cart .pos-actions-more-toggle { min-height: 36px; }
    .pos-shell-cart .pos-actions-quickpay { min-height: 46px; }
    .pos-shell-cart .pos-actions-quickpay .qp-cash-input { height: 38px; font-size: 18px; }
}
.pos-shell-cart .pos_form_totals .pos_totals_right_value, .pos-shell-cart .pos_form_totals #total_payable {
    font-family: var(--qxc-font-body); font-size: 30px; font-weight: 700; letter-spacing: -.02em;
}
.pos-shell-cart .pos_form_totals .pos_totals_right { gap: 10px; }
.pos-shell-cart .pos-actions-secondary-btn, .pos-shell-cart .pos-actions-more-toggle { white-space: nowrap; padding: 6px 8px; font-size: 12.5px; gap: 6px; }
.pos-shell-cart .pos-actions-quickpay .qp-cash-input { font-family: var(--qxc-font-body); }

/* ============================================================
   14. POS product search: results list + search field
   ============================================================ */
ul.ui-autocomplete.ui-menu {
    padding: 6px; max-height: min(60vh, 420px); overflow-y: auto; overflow-x: hidden; z-index: 1051;
    background: var(--up-surface) !important; border: 1px solid var(--up-border) !important; border-radius: 14px !important;
    box-shadow: 0 20px 48px -12px rgba(0, 0, 0, .55) !important;
}
:root.dark ul.ui-autocomplete.ui-menu { background: #0c1220 !important; border-color: rgba(255, 255, 255, .14) !important; }
ul.ui-autocomplete .ui-menu-item { margin: 0; list-style: none; }
ul.ui-autocomplete .ui-menu-item-wrapper {
    padding: 10px 12px; border: 1px solid transparent !important; border-radius: 10px; margin: 0; color: var(--up-text);
}
ul.ui-autocomplete .ui-menu-item-wrapper.ui-state-active,
ul.ui-autocomplete .ui-menu-item-wrapper.ui-state-focus {
    background: var(--up-accent-soft) !important; border-color: color-mix(in srgb, var(--qxc-blue) 45%, transparent) !important; color: var(--up-text) !important; margin: 0 !important;
}
ul.ui-autocomplete .ui-state-disabled { opacity: .5; }
.qxc-sr { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 40px; }
.qxc-sr-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.qxc-sr-name { font-size: 14px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qxc-sr-meta { font-size: 12px; color: var(--up-faint); }
.qxc-sr-stock { color: var(--up-sub); }
.qxc-sr-out { color: #ef4444; font-weight: 600; }
.qxc-sr-price { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: var(--up-accent); font-variant-numeric: tabular-nums; }

/* Search field */
.pos-search-form-group .input-group > .form-control { border-radius: 12px !important; font-size: 15px; }
.pos-search-form-group .input-group > .form-control:focus { border-color: var(--qxc-blue) !important; box-shadow: var(--qxc-focus) !important; }

/* ============================================================
   15. POS payment popup: total first, tidy summary column
   ============================================================ */
#modal_payment .modal-dialog { max-width: 920px; }
#modal_payment .modal-body { padding: 18px 22px; }
#modal_payment #advance_balance_text { color: var(--up-text); font-weight: 600; }
#modal_payment .modal-body > .row > .col-md-12.mb-12 { margin-bottom: 12px; color: var(--up-faint); font-size: 13px; }
#modal_payment .modal-body > .row > .col-md-12.mb-12 strong { font-weight: 500; }

/* Each payment line is one calm card */
#modal_payment #payment_rows_div .box, #modal_payment .payment_row .box { background: var(--up-surface-2) !important; border: 1px solid var(--up-border) !important; border-radius: 14px !important; box-shadow: none; margin-bottom: 12px; }
#modal_payment #payment_rows_div .box-body { padding: 14px 16px 6px; }
#modal_payment #add-payment-row { height: 40px; background: transparent !important; color: var(--up-accent) !important; border: 1.5px dashed color-mix(in srgb, var(--qxc-blue) 55%, transparent) !important; }
#modal_payment #add-payment-row:hover { background: var(--up-accent-soft) !important; }

/* Summary column: label left, value right; payable is the hero */
#modal_payment .col-md-3 > .box { background: var(--up-surface-2) !important; color: var(--up-text) !important; border: 1px solid var(--up-border); border-radius: 14px !important; box-shadow: none; }
#modal_payment .col-md-3 > .box > .box-body { padding: 8px 14px; }
#modal_payment .col-md-3 .box-body > .col-md-12 {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    float: none; width: auto; padding: 11px 0; border-top: 1px solid var(--up-border);
}
#modal_payment .col-md-3 .box-body > .col-md-12:first-child { border-top: 0; }
#modal_payment .col-md-3 .box-body hr, #modal_payment .col-md-3 .box-body br { display: none; }
#modal_payment .col-md-3 .box-body strong { font-size: 12px; font-weight: 600; color: var(--up-faint); letter-spacing: .02em; }
#modal_payment .col-md-3 .box-body .lead { margin: 0; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--up-text); }
/* Total payable */
#modal_payment .col-md-3 .box-body > .col-md-12:nth-child(2) {
    margin: 6px -6px; padding: 14px 16px; border: 0; border-radius: 12px;
    background: linear-gradient(135deg, #0a49d6, #0066ff); box-shadow: 0 10px 22px -12px rgba(0, 102, 255, .8);
    flex-direction: column; align-items: flex-start; gap: 2px;
}
#modal_payment .col-md-3 .box-body > .col-md-12:nth-child(2) strong { color: rgba(255, 255, 255, .85); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
#modal_payment .col-md-3 .box-body > .col-md-12:nth-child(2) .lead { color: #fff; font-size: 26px; letter-spacing: -.02em; }
#modal_payment .change_return_span { color: #10b981 !important; }
:root.dark #modal_payment .change_return_span { color: #34d399 !important; }

/* Phones/tablets: total and balance first, then the payment lines */
@media (max-width: 991px) {
    #modal_payment .modal-body > .row { display: flex; flex-wrap: wrap; }
    #modal_payment .modal-body > .row > .col-md-12 { order: 0; }
    #modal_payment .modal-body > .row > .col-md-3 { order: 1; width: 100%; margin-bottom: 12px; }
    #modal_payment .modal-body > .row > .col-md-9 { order: 2; width: 100%; }
    #modal_payment .col-md-3 > .box > .box-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
    #modal_payment .col-md-3 .box-body > .col-md-12:nth-child(2) { grid-column: 1 / -1; order: -1; }
}

/* ============================================================
   16. POS top bar
   ============================================================ */
.pos-header > div:first-of-type {
    background: var(--up-surface) !important; border: 1px solid var(--up-border); border-radius: 14px !important;
    box-shadow: none !important; padding: 6px 12px !important; min-height: 52px !important; gap: 10px;
}
.pos-header-brand { display: inline-flex; flex: 0 0 auto; padding-right: 4px; }
.pos-header-brand img { width: 28px; height: 28px; display: block; }
.pos-header-loc { margin: 0; color: var(--up-faint); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.pos-header-loc strong { font-weight: 600; }
.pos-header .curr_datetime { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* Icon buttons: one quiet style, accent on hover */
.pos-header #pos_header_more_options a.tw-border-2, .pos-header #pos_header_more_options button.tw-border-2,
.pos-header a.tw-border-2, .pos-header button.tw-border-2 {
    border: 1px solid var(--up-border) !important; background: var(--up-surface-2) !important; box-shadow: none !important;
    border-radius: 10px !important; height: 40px; color: var(--up-sub);
    transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.pos-header a.tw-border-2:hover, .pos-header button.tw-border-2:hover {
    border-color: var(--up-accent) !important; background: var(--up-accent-soft) !important;
}
.pos-header a.tw-border-2 strong, .pos-header button.tw-border-2 strong { display: inline-flex; align-items: center; justify-content: center; margin: 0 !important; }
.pos-header a.tw-border-2:not(.md\:tw-w-10), .pos-header button.tw-border-2:not(.md\:tw-w-10) { padding: 0 14px !important; }
.pos-header button#add_expense, .pos-header a[title*="POS"] { font-weight: 600; color: var(--up-text); }
.pos-header .pos-nav-divider { height: 22px; background: var(--up-border) !important; margin: 0 6px; }

/* Date/time chip */
.pos-header .curr_datetime { color: #fff !important; }
.pos-header div:has(> .curr_datetime) { border-radius: 10px !important; background: var(--qxc-blue-deep) !important; height: 40px; }
.pos-header div:has(> .curr_datetime):hover { background: var(--qxc-blue) !important; }

/* Location select in the bar */
.pos-header #select_location_id { height: 36px; background: var(--up-surface-2); border: 1px solid var(--up-border); font-weight: 600; }
.pos-header .curr_datetime { white-space: nowrap; }
.pos-header > div:first-of-type > div:first-child { width: auto !important; flex: 0 0 auto; }
.pos-header > div:first-of-type > div:first-child > div { gap: 10px; }
.pos-header > div:first-of-type > #pos_header_more_options { width: auto !important; flex: 1 1 auto; }

/* ============================================================
   17. POS left sidebar
   ============================================================ */
.pos-sidebar-pos { background: var(--up-surface); border-radius: 14px; box-shadow: none; }
.pos-sidebar-brand { padding: 12px; }
.pos-sidebar-logo-mark { background: transparent !important; width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pos-sidebar-logo-mark img { width: 30px; height: 30px; display: block; }
.pos-sidebar-brand-name { font-family: var(--qxc-font-heading); font-size: 14px; letter-spacing: -.005em; }
.pos-sidebar-brand-sub { letter-spacing: .06em; }

.pos-sidebar-nav { padding: 10px 8px 4px; }
.pos-sidebar-group { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--up-border); }
.pos-sidebar-group:last-child { border-bottom: 0; }
.pos-sidebar-group-title { padding: 4px 10px 6px; letter-spacing: .1em; }

.pos-sidebar-link { min-height: 38px; padding: 0 10px; border-radius: 10px; margin: 2px 0; transition: background-color .15s ease, color .15s ease; }
.pos-sidebar-link:hover { background: var(--up-surface-3); }
.pos-sidebar-icon { width: 19px; height: 19px; flex-basis: 19px; }
.pos-sidebar-link-active, .pos-sidebar-link-active:hover { background: var(--qxc-blue) !important; color: #fff !important; box-shadow: 0 8px 18px -10px rgba(0, 102, 255, .9); }

/* Collapsed rail: centred icon tiles, hairline between groups */
body.pos-sidebar-collapsed .pos-sidebar-link, .pos-sidebar-pos[style] .pos-sidebar-link { justify-content: center; }
body.pos-sidebar-collapsed .pos-sidebar-group { padding-bottom: 6px; margin-bottom: 6px; }
body.pos-sidebar-collapsed .pos-sidebar-nav { padding-left: 6px; padding-right: 6px; }
body.pos-sidebar-collapsed .pos-sidebar-brand { display: flex; justify-content: center; padding: 12px 0; }

/* Footer: user chip */
.pos-sidebar-footer { padding: 8px; }
.pos-sidebar-user-avatar { background: var(--up-accent-soft) !important; color: var(--up-accent) !important; border: 1px solid color-mix(in srgb, var(--qxc-blue) 35%, transparent); }
.pos-sidebar-collapse-btn { color: var(--up-faint) !important; }

/* ============================================================
   18. Recent Transactions popup
   ============================================================ */
#recent_transactions_modal .modal-body { padding: 14px 20px 18px; }
/* Tabs as a segmented control */
#recent_transactions_modal .nav-tabs-custom { background: transparent; box-shadow: none; margin: 0; }
#recent_transactions_modal .nav-tabs {
    display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border: 1px solid var(--up-border) !important;
    background: var(--up-surface-2); border-radius: 12px;
}
#recent_transactions_modal .nav-tabs > li { float: none; margin: 0; }
#recent_transactions_modal .nav-tabs > li > a, #recent_transactions_modal .nav-tabs > li > a:hover {
    margin: 0; border: 0 !important; border-radius: 9px !important; padding: 7px 14px; font-size: 13px; background: transparent; color: var(--up-sub);
}
#recent_transactions_modal .nav-tabs > li > a b { font-weight: 600; }
#recent_transactions_modal .nav-tabs > li > a i { margin-right: 5px; font-size: 12px; opacity: .85; }
#recent_transactions_modal .nav-tabs > li.active > a, #recent_transactions_modal .nav-tabs > li.active > a:hover {
    background: var(--qxc-blue) !important; color: #fff !important;
}
/* Rows */
#recent_transactions_modal .tab-content { background: transparent; padding: 0; }
#recent_transactions_modal .table { margin: 0; }
#recent_transactions_modal .table > tbody > tr > td {
    padding: 12px 10px; vertical-align: middle; border-left: 0 !important; border-top: 0 !important;
    border-bottom: 1px solid var(--up-border) !important;
}
#recent_transactions_modal .table > tbody > tr:last-child > td { border-bottom: 0 !important; }
#recent_transactions_modal .table > tbody > tr > td:first-child { width: 28px; color: var(--up-faint); font-variant-numeric: tabular-nums; padding-right: 0; }
#recent_transactions_modal .rt-inv { font-weight: 700; color: var(--up-text); margin-right: 6px; }
#recent_transactions_modal .rt-cust { color: var(--up-faint); font-size: 13px; }
#recent_transactions_modal td.display_currency { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
#recent_transactions_modal td.tw-flex { display: table-cell !important; text-align: right; white-space: nowrap; }
#recent_transactions_modal td.tw-flex > a { display: inline-flex; margin: 0 0 0 6px !important; }
#recent_transactions_modal .tw-dw-btn.tw-dw-btn-outline {
    height: 34px; min-height: 34px; padding: 0 12px; font-size: 12.5px; font-weight: 600; gap: 6px;
    background: transparent !important; border: 1px solid var(--up-border) !important; color: var(--up-sub) !important;
}
#recent_transactions_modal .tw-dw-btn.tw-dw-btn-outline i { color: inherit !important; }
#recent_transactions_modal .tw-dw-btn-info:hover { color: var(--up-accent) !important; border-color: var(--up-accent) !important; background: var(--up-accent-soft) !important; }
#recent_transactions_modal .tw-dw-btn-success:hover { color: #059669 !important; border-color: #059669 !important; background: rgba(16, 185, 129, .12) !important; }
#recent_transactions_modal .tw-dw-btn-error { color: #ef4444 !important; }
#recent_transactions_modal .tw-dw-btn-error:hover { border-color: #ef4444 !important; background: rgba(239, 68, 68, .12) !important; }
#recent_transactions_modal p { text-align: center; color: var(--up-faint); padding: 28px 0; margin: 0; }
@media (max-width: 767px) {
    #recent_transactions_modal td.tw-flex { white-space: normal; }
    #recent_transactions_modal .table > tbody > tr { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--up-border); padding: 8px 0; }
    #recent_transactions_modal .table > tbody > tr > td { border: 0 !important; padding: 4px 6px; }
    #recent_transactions_modal .table > tbody > tr > td.col-md-4 { flex: 1 1 60%; }
    #recent_transactions_modal td.tw-flex { flex: 1 1 100%; text-align: left; display: flex !important; }
    #recent_transactions_modal td.tw-flex > a { margin: 0 6px 0 0 !important; flex: 1 1 0; justify-content: center; }
}
#recent_transactions_modal .table:not(#pos_table) > tbody > tr > td + td { border-left: 0 !important; }
#recent_transactions_modal .nav-tabs-custom > .nav-tabs > li, #recent_transactions_modal .nav-tabs-custom > .nav-tabs > li.active { border-top: 0 !important; margin: 0; }
@media (max-width: 767px) {
    #recent_transactions_modal td.tw-flex { flex-direction: row !important; gap: 6px; }
    #recent_transactions_modal td.tw-flex > a { margin: 0 !important; min-width: 0; padding: 0 8px; }
}

/* Top bar on desktop: every button carries its text label */
@media (min-width: 1200px) {
    .pos-header #pos_header_more_options a.tw-border-2, .pos-header #pos_header_more_options button.tw-border-2 { width: auto !important; padding: 0 12px !important; }
    .pos-header #pos_header_more_options a.tw-border-2 strong, .pos-header #pos_header_more_options button.tw-border-2 strong { gap: 7px; }
    .pos-header #pos_header_more_options .md\:tw-hidden { display: inline !important; }
    .pos-header #pos_header_more_options span.tw-inline { font-size: 12.5px; font-weight: 600; color: var(--up-sub); white-space: nowrap; }
    .pos-header #pos_header_more_options a.tw-border-2:hover span.tw-inline, .pos-header #pos_header_more_options button.tw-border-2:hover span.tw-inline { color: var(--up-accent); }
    /* The mobile-only "recent transactions" shortcut stays hidden on desktop */
    .pos-header #pos_header_more_options button.md\:tw-hidden { display: none !important; }
    .pos-header #pos_header_more_options { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
}
@media (min-width: 1200px) and (max-width: 1749px) {
    .pos-header #pos_header_more_options a.tw-border-2, .pos-header #pos_header_more_options button.tw-border-2 { padding: 0 9px !important; }
    .pos-header #pos_header_more_options span.tw-inline { font-size: 12px; }
    .pos-header #pos_header_more_options a.tw-border-2 strong, .pos-header #pos_header_more_options button.tw-border-2 strong { gap: 5px; }
    .pos-header #pos_header_more_options { gap: 4px; flex-wrap: nowrap; }
    .pos-header #pos_header_more_options .pos-nav-divider { display: none; }
}
@media (min-width: 1200px) and (max-width: 1499px) {
    .pos-header #btnCalculator span.tw-inline, .pos-header #full_screen span.tw-inline { display: none !important; }
    .pos-header #btnCalculator, .pos-header #full_screen { width: 40px !important; padding: 0 !important; }
}

/* ============================================================
   19. Shortcut key caps + help sheet
   ============================================================ */
.qxc-kbd {
    display: inline-block; min-width: 20px; padding: 1px 6px; font-family: var(--qxc-font-body); font-size: 11px; font-weight: 700; line-height: 1.5;
    color: var(--up-sub); background: var(--up-surface-3); border: 1px solid var(--up-border); border-bottom-width: 2px; border-radius: 6px; text-align: center;
}
.qxc-kbd-inline { margin-left: 6px; font-size: 10.5px; padding: 0 5px; opacity: .85; vertical-align: 1px; }
.pos-actions-secondary-btn .qxc-kbd-inline, .pos-more-item .qxc-kbd-inline { margin-left: auto; }
.pos-actions-secondary-btn { gap: 6px; }
.qxc-plus { margin: 0 3px; color: var(--up-faint); font-size: 11px; }
.qxc-keys-link { background: transparent; border: 0; cursor: pointer; color: var(--up-faint); font: inherit; }
.qxc-keys-link:hover { color: var(--up-accent); }

/* Key caps on the labelled top bar (wide screens only; smaller ones get them in the tooltip) */
@media (min-width: 1800px) {
    .pos-header #pos_header_more_options [data-qxc-key]:not(#btnCalculator) strong::after {
        content: attr(data-qxc-key); margin-left: 8px; padding: 0 5px; font-size: 10.5px; font-weight: 700; line-height: 1.6; color: var(--up-faint);
        border: 1px solid var(--up-border); border-bottom-width: 2px; border-radius: 6px; background: var(--up-surface-3);
    }
}
.pos-header #pos_header_more_options [data-qxc-key] strong::after { content: none; }
@media (min-width: 1800px) {
    .pos-header #pos_header_more_options [data-qxc-key] strong::after { content: attr(data-qxc-key) !important; }
}

/* Help sheet */
.qxc-keys-overlay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .72); }
.qxc-keys-overlay[hidden] { display: none; }
.qxc-keys-card { width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #0c1220; color: #f9f9f9; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); }
:root:not(.dark) .qxc-keys-card { background: #fff; color: #0b1020; border-color: #e3e8f2; }
.qxc-keys-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--up-border); }
.qxc-keys-title { font-family: var(--qxc-font-heading); font-size: 18px; font-weight: 700; }
.qxc-keys-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.qxc-keys-close:hover { background: var(--up-surface-3); }
.qxc-keys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; padding: 18px 20px; }
.qxc-keys-gname { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--up-accent); margin-bottom: 6px; }
.qxc-keys-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--up-border); font-size: 14px; }
.qxc-keys-caps { white-space: nowrap; }
.qxc-keys-foot { padding: 12px 20px 16px; font-size: 12px; color: var(--up-faint); }
@media (max-width: 640px) { .qxc-keys-grid { grid-template-columns: 1fr; } }

/* ============================================================
   20. Settings tabs + register screens: theme-aware (light and dark)
   ============================================================ */
div.pos-tab-container { background-color: var(--up-surface) !important; border: 1px solid var(--up-border) !important; border-radius: var(--qxc-radius) !important; box-shadow: none !important; overflow: hidden; }
div.pos-tab-content { background-color: var(--up-surface) !important; color: var(--up-text); padding: 20px 20px 8px !important; }
div.pos-tab-menu { background: var(--up-surface-2); border-right: 1px solid var(--up-border); }
div.pos-tab-menu div.list-group > a {
    background: transparent !important; color: var(--up-sub) !important; border: 0 !important; border-bottom: 1px solid var(--up-border) !important;
    border-radius: 0 !important; font-weight: 600; padding: 11px 12px;
}
div.pos-tab-menu div.list-group > a:hover { background: var(--up-surface-3) !important; color: var(--up-text) !important; }
div.pos-tab-menu div.list-group > a .glyphicon, div.pos-tab-menu div.list-group > a .fa { color: var(--up-accent) !important; }
div.pos-tab-menu div.list-group > a.active, div.pos-tab-menu div.list-group > a.active .glyphicon, div.pos-tab-menu div.list-group > a.active .fa {
    background: var(--qxc-blue) !important; color: #fff !important;
}
div.pos-tab-content .help-block { color: var(--up-faint); }
div.pos-tab-content .form-control:not(.select2-hidden-accessible) { background-color: var(--up-surface-2); border-color: var(--up-border); color: var(--up-text); }
div.pos-tab-content .input-group-addon { background: var(--up-surface-3); border-color: var(--up-border); color: var(--up-faint); }
div.pos-tab-content label { color: var(--up-sub); font-weight: 600; }
div.pos-tab-content hr { border-top-color: var(--up-border); }
div.pos-tab-content .box, div.pos-tab-content .panel { background: var(--up-surface-2); border-color: var(--up-border); color: var(--up-text); }
div.pos-tab-content .table > thead > tr > th, div.pos-tab-content .table > tbody > tr > td { border-color: var(--up-border); }

/* Bootstrap contextual table cells: soft tint, readable text in both themes */
.table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > tr.success > td, .table > tbody > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, tr.success > td { background-color: color-mix(in srgb, #10b981 16%, var(--up-surface)) !important; color: var(--up-text) !important; }
.table > tbody > tr > td.info, .table > tbody > tr.info > td, tr.info > td, .table > thead > tr > th.info { background-color: color-mix(in srgb, var(--qxc-blue) 14%, var(--up-surface)) !important; color: var(--up-text) !important; }
.table > tbody > tr > td.danger, .table > tbody > tr.danger > td, tr.danger > td { background-color: color-mix(in srgb, #ef4444 16%, var(--up-surface)) !important; color: var(--up-text) !important; }
.table > tbody > tr > td.warning, .table > tbody > tr.warning > td, tr.warning > td { background-color: color-mix(in srgb, #f59e0b 18%, var(--up-surface)) !important; color: var(--up-text) !important; }
.table > tbody > tr.success > td *, .table > tbody > tr.info > td *, tr.success > td b, tr.success > td span { color: inherit; }

/* Register modals: headings and tables */
.register_details_modal .modal-body h3, .register_details_modal .modal-body h4, #close_register_modal .modal-body h3, #close_register_modal .modal-body h4,
.register_details_modal .modal-body .box-title { font-family: var(--qxc-font-heading); font-size: 16px; font-weight: 700; color: var(--up-text); margin: 18px 0 10px; }
.register_details_modal .modal-body hr, #close_register_modal .modal-body hr { border-top-color: var(--up-border); margin: 16px 0; }
.register_details_modal .modal-body .table th, #close_register_modal .modal-body .table th { background: var(--up-surface-2); color: var(--up-faint); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.register_details_modal .modal-body .table td, #close_register_modal .modal-body .table td { color: var(--up-text); }

/* ============================================================
   21. Tax switched off: product price fields show plain purchase / selling price only
   ============================================================ */
body.qxc-no-tax .add-product-price-table .dpp_inc_tax,
body.qxc-no-tax .add-product-price-table #single_dsp_inc_tax,
body.qxc-no-tax .add-product-price-table .variable_dsp_inc_tax,
body.qxc-no-tax .add-product-price-table label[for="single_dpp_inc_tax"],
body.qxc-no-tax .add-product-price-table label:has(> .dsp_label),
body.qxc-no-tax .add-product-price-table .dsp_label,
body.qxc-no-tax .add-product-price-table th .pull-right,
body.qxc-no-tax .add-product-price-table .width-50:has(.variable_dpp_inc_tax),
body.qxc-no-tax .add-product-price-table .col-sm-6:has(.dpp_inc_tax) { display: none !important; }
body.qxc-no-tax .add-product-price-table #single_dsp,
body.qxc-no-tax .add-product-price-table .variable_dsp { display: block !important; }
body.qxc-no-tax .add-product-price-table .width-50:has(.variable_dpp) { width: 100%; float: none; }
body.qxc-no-tax .add-product-price-table .col-sm-6:has(.dpp) { width: 100%; }
body.qxc-no-tax .add-product-price-table label[for="single_dpp"] { display: none !important; }
body.qxc-no-tax .add-product-price-table td { vertical-align: middle; }
body.qxc-no-tax .add-product-price-table td > .col-sm-6 { padding: 0; }
.add-product-price-table th { background-color: var(--up-surface-2) !important; color: var(--up-faint) !important; border-color: var(--up-border) !important; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.add-product-price-table td { border-color: var(--up-border) !important; }

/* ============================================================
   22. Dashboard (home): flat, scannable, one card style
   ============================================================ */
.qxc-dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.qxc-dash-title { margin: 0; font-family: var(--qxc-font-heading); font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--up-text) !important; }
.qxc-dash-sub { margin: 4px 0 0; font-size: 13px; color: var(--up-faint); }
.qxc-dash-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qxc-dash-filters .select2-container { min-width: 200px; }
.qxc-dash-datebtn {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--qxc-radius-sm);
    background: var(--up-surface); color: var(--up-text); border: 1px solid var(--up-border); font-size: 13px; font-weight: 600; cursor: pointer;
}
.qxc-dash-datebtn:hover { border-color: var(--qxc-blue); color: var(--up-accent); }
.qxc-dash-datebtn .fa-chevron-down { font-size: 10px; color: var(--up-faint); }

.qxc-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.qxc-quick-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
    color: var(--up-sub); background: var(--up-surface); border: 1px solid var(--up-border); text-decoration: none; transition: border-color .15s, color .15s, background .15s;
}
.qxc-quick-btn i { font-size: 12px; color: var(--up-accent); }
.qxc-quick-btn:hover { color: var(--up-accent); border-color: var(--qxc-blue); text-decoration: none; }
.qxc-quick-primary { background: var(--qxc-blue); border-color: var(--qxc-blue); color: #fff; }
.qxc-quick-primary i { color: #fff; }
.qxc-quick-primary:hover { background: var(--qxc-blue-deep); border-color: var(--qxc-blue-deep); color: #fff; }

/* KPI cards */
.qxc-dash .qxc-kpis { margin-top: 16px !important; gap: 12px !important; }
.qxc-dash .qxc-kpis > div {
    background: var(--up-surface) !important; border: 1px solid var(--up-border) !important; border-radius: 14px !important;
    box-shadow: none !important; --tw-ring-shadow: 0 0 #0000 !important; transform: none !important; transition: border-color .15s ease;
}
.qxc-dash .qxc-kpis > div:hover { border-color: color-mix(in srgb, var(--qxc-blue) 55%, var(--up-border)) !important; }
.qxc-dash .qxc-kpis > div > div { padding: 16px 18px !important; }
.qxc-dash .qxc-kpis > div .tw-rounded-full { border-radius: 12px !important; width: 42px !important; height: 42px !important; }
.qxc-dash .qxc-kpis p:first-child, .qxc-dash .qxc-kpis p.tw-text-gray-500 {
    font-size: 12px !important; font-weight: 600 !important; letter-spacing: .04em; text-transform: uppercase; color: var(--up-faint) !important;
}
.qxc-dash .qxc-kpis p.tw-font-mono {
    font-family: var(--qxc-font-body) !important; font-size: 24px !important; line-height: 1.2; font-weight: 700 !important;
    color: var(--up-text) !important; font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}

/* Panels */
.qxc-panels { gap: 12px !important; }
.qxc-panels > div {
    background: var(--up-surface) !important; border: 1px solid var(--up-border) !important; border-radius: 14px !important;
    box-shadow: none !important; --tw-ring-shadow: 0 0 #0000 !important; transform: none !important;
}
.qxc-panels > div > div { padding: 18px 20px !important; }
.qxc-panels h3 { font-family: var(--qxc-font-heading); font-size: 16px !important; font-weight: 700; color: var(--up-text); margin: 0; }
.qxc-panels .tw-border-2.tw-rounded-full { display: none !important; }
.qxc-panels .tw-h-100 { height: auto; min-height: 320px; }
.qxc-panels .tw-mt-5 { margin-top: 14px; }
.qxc-panels .tw-flow-root { margin-top: 12px; }
@media (max-width: 767px) {
    .qxc-dash-title { font-size: 22px; }
    .qxc-dash .qxc-kpis > div > div { padding: 12px 14px !important; }
    .qxc-dash .qxc-kpis p.tw-font-mono { font-size: 20px !important; }
}
.qxc-panels .tw-items-center.tw-flex-1.tw-gap-1 { flex-wrap: wrap; row-gap: 8px; }
.qxc-panels .tw-items-center.tw-flex-1.tw-gap-1 > div { width: auto !important; flex: 1 1 180px; }
.qxc-panels .dt-buttons, .qxc-panels .dataTables_wrapper .dt-buttons { margin-bottom: 8px; }
/* Dashboard tables: no export buttons or page-size pickers; those live on the full list pages */
.qxc-panels .dt-buttons, .qxc-panels .dataTables_length { display: none !important; }
.qxc-panels .dataTables_wrapper .dataTables_filter { margin-bottom: 8px; }
.qxc-quick-primary, .qxc-quick-primary:hover, .qxc-quick-primary:focus, .qxc-quick-primary i { color: #fff !important; }
@media (max-width: 639px) {
    .qxc-dash .qxc-kpis { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .qxc-dash .qxc-kpis > div > div > .tw-flex { flex-direction: column; align-items: flex-start; gap: 10px; }
    .qxc-dash .qxc-kpis > div .tw-rounded-full { width: 36px !important; height: 36px !important; }
    .qxc-dash .qxc-kpis p.tw-font-mono { font-size: 18px !important; }
    .qxc-dash .qxc-kpis p:first-child, .qxc-dash .qxc-kpis p.tw-text-gray-500 { font-size: 10.5px !important; white-space: normal !important; }
}

/* ============================================================
   23. POS right panel v2: cash given, Cash + Multiple Pay, method tiles, utilities.
   One 2-column grid, ordered by how often a cashier reaches for each control.
   ============================================================ */
.pos-shell-cart > .pos-form-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; padding: 12px 14px 14px;
}
.pos-shell-cart .pos-actions-primary, .pos-shell-cart .pos-actions-secondary { display: contents; }
.pos-shell-cart .pos-actions-divider { display: none !important; }

.pos-shell-cart .pos-actions-quickpay { grid-column: 1 / -1; order: 1; }
/* Cash left (most used), Multiple Pay right */
.pos-shell-cart .pos-actions-express { order: 2; }
.pos-shell-cart .pos-actions-charge { order: 3; }
.pos-shell-cart .pos-actions-express, .pos-shell-cart .pos-actions-charge {
    min-height: 64px; flex-direction: column; gap: 2px; justify-content: center; align-items: center; font-size: 15px; padding: 8px 10px; line-height: 1.15; text-align: center;
}
.pos-shell-cart .pos-actions-express i, .pos-shell-cart .pos-actions-charge i { font-size: 17px; }
.pos-shell-cart .pos-actions-express .qxc-kbd-inline, .pos-shell-cart .pos-actions-charge .qxc-kbd-inline { margin: 2px 0 0; }
.pos-shell-cart .pos-actions-express.hide + .pos-actions-charge, .pos-shell-cart .pos-actions-charge:only-child { grid-column: 1 / -1; }

/* Payment-method tiles */
.pos-shell-cart .pos-actions-secondary-btn.pos-express-finalize[data-pay_method="card"] { order: 4; }
.pos-shell-cart .pos-actions-secondary-btn.pos-express-finalize[data-pay_method="credit_sale"] { order: 5; }
.pos-shell-cart .pos-actions-secondary-btn.pos-express-finalize {
    min-height: 48px; font-size: 13.5px; font-weight: 700; color: var(--up-text); background: var(--up-surface-2); border: 1px solid var(--up-border); border-radius: 12px;
}
.pos-shell-cart .pos-actions-secondary-btn.pos-express-finalize i { font-size: 15px; }

/* Utilities, quieter */
.pos-shell-cart .pos-actions-secondary-btn[data-target="#recent_transactions_modal"] { order: 6; }
.pos-shell-cart .pos-actions-more { order: 7; grid-column: auto; margin: 0; }
.pos-shell-cart .pos-actions-more-toggle { height: 100%; }
.pos-shell-cart .js-pos-cancel, .pos-shell-cart .js-pos-delete { order: 8; grid-column: 1 / -1; min-height: 36px; background: transparent !important; border-color: transparent !important; color: #ef4444 !important; font-size: 12.5px; }
.pos-shell-cart .js-pos-cancel:hover { background: color-mix(in srgb, #ef4444 12%, transparent) !important; border-color: color-mix(in srgb, #ef4444 35%, transparent) !important; }

@media (max-width: 767px) {
    .pos-shell-cart .pos-actions-express, .pos-shell-cart .pos-actions-charge { min-height: 60px; }
}
@media (max-height: 800px) {
    .pos-shell-cart > .pos-form-actions { gap: 6px; padding: 8px 12px 10px; }
    .pos-shell-cart .pos-actions-express, .pos-shell-cart .pos-actions-charge { min-height: 54px; }
    .pos-shell-cart .pos-actions-secondary-btn.pos-express-finalize { min-height: 40px; }
    .pos-shell-cart .js-pos-cancel { min-height: 30px; }
}

/* ============================================================
   24. Offline / online status: part of the theme, not a floating dark pill
   ============================================================ */
#pos_status_bar #pos-offline-banner { margin-left: 0; }
#pos_status_bar #pos-offline-inner {
    background: var(--up-surface-2); color: var(--up-sub); border: 1px solid var(--up-border); box-shadow: none; backdrop-filter: none;
    border-radius: 999px; padding: 2px 3px 2px 10px; gap: 8px; font-size: 12px; font-weight: 600;
}
#pos_status_bar #pos-offline-label { color: var(--up-text); }
#pos_status_bar #pos-offline-dot.online { background: #10b981; box-shadow: 0 0 0 3px color-mix(in srgb, #10b981 25%, transparent); }
#pos_status_bar #pos-offline-dot.offline { background: #ef4444; }
#pos_status_bar #pos-offline-cache-badge { color: var(--up-faint); font-size: 11.5px; font-weight: 600; }
#pos_status_bar #pos-offline-cache-badge i { color: var(--up-accent); }
#pos_status_bar #pos-offline-queue-badge { color: #f59e0b; background: color-mix(in srgb, #f59e0b 14%, transparent); border-radius: 999px; padding: 1px 8px; font-size: 11px; }
#pos_status_bar #pos-offline-inner button {
    background: transparent; border: 0; color: var(--up-sub); border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px; transition: background .15s, color .15s;
}
#pos_status_bar #pos-offline-inner button:hover { background: var(--up-surface-3); color: var(--up-text); }
#pos_status_bar #pos-offline-inner button i { font-size: 10.5px; color: var(--up-accent); }
#pos_status_bar #pos-offline-sync-btn { background: var(--qxc-blue); color: #fff; }
#pos_status_bar #pos-offline-sync-btn i { color: #fff; }
#pos_status_bar #pos-offline-sync-btn:hover { background: var(--qxc-blue-deep); color: #fff; }
#pos_status_bar:has(#pos-offline-dot.offline) #pos-offline-inner { background: color-mix(in srgb, #ef4444 12%, var(--up-surface)); border-color: color-mix(in srgb, #ef4444 45%, var(--up-border)); }
#pos_status_bar:has(#pos-offline-dot.offline) #pos-offline-label { color: #ef4444; }

/* Queue drawer */
body #pos-offline-queue-panel { background: var(--up-surface); color: var(--up-text); box-shadow: -12px 0 40px rgba(0, 0, 0, .45); border-left: 1px solid var(--up-border); }
body #pos-qp-header { border-bottom-color: var(--up-border); color: var(--up-text); font-family: var(--qxc-font-heading); }
body #pos-qp-header button { color: var(--up-faint); border-radius: var(--qxc-radius-sm); width: 30px; height: 30px; }
body #pos-qp-header button:hover { background: var(--up-surface-3); color: var(--up-text); }
body .pos-qp-empty { color: var(--up-faint); }
body .pos-qp-item { background: var(--up-surface-2); border-color: var(--up-border); border-radius: 12px; color: var(--up-text); }
body .pos-qp-meta { color: var(--up-faint); }
body .pos-qp-status.pending { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #f59e0b; }
body .pos-qp-status.synced { background: color-mix(in srgb, #10b981 18%, transparent); color: #10b981; }
body .pos-qp-status.failed { background: color-mix(in srgb, #ef4444 18%, transparent); color: #ef4444; }
body .pos-qp-actions button { background: var(--up-surface); border-color: var(--up-border); color: var(--up-sub); }
body .pos-qp-actions button:hover { border-color: var(--qxc-blue); color: var(--up-accent); }
body #pos-qp-footer { border-top-color: var(--up-border); background: var(--up-surface-2); }
body #pos-qp-footer button { border-radius: var(--qxc-radius-sm); }
body #pos-qp-sync { background: var(--qxc-blue); color: #fff; }
body #pos-qp-export, body #pos-qp-clear { background: transparent; color: var(--up-sub); border: 1px solid var(--up-border); }
body #pos-qp-cache-strip { background: color-mix(in srgb, #10b981 10%, var(--up-surface)); border-bottom-color: var(--up-border); color: var(--up-sub); }
body #pos-qp-cache-strip button { background: transparent; border-color: color-mix(in srgb, #10b981 45%, transparent); color: #10b981; }
.pos-shell-cart .js-pos-cancel, .pos-shell-cart .js-pos-delete { justify-content: center; }
.pos-shell-cart .js-pos-cancel .qxc-kbd-inline { margin-left: 8px; }
.pos-shell-cart > .pos-form-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pos-shell-cart > .pos-form-actions > *, .pos-shell-cart .pos-actions-primary > *, .pos-shell-cart .pos-actions-secondary > * { min-width: 0; }
.pos-shell-cart .pos-actions-secondary-btn, .pos-shell-cart .pos-actions-more-toggle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 8px; padding-right: 8px; }
.pos-shell-cart .pos-actions-secondary-btn[data-target="#recent_transactions_modal"] .qxc-kbd-inline { display: none; }
@media (hover: none), (max-width: 767px) { .pos-shell-cart .qxc-kbd-inline, .pos-shell-cart .pos-actions-kbd { display: none !important; } }
.qxc-dash-head { margin-top: 18px; }
@media (max-width: 767px) { .qxc-dash-head { margin-top: 14px; } }

/* ============================================================
   25. Login: split screen, brand panel + form card
   ============================================================ */
.qxc-login { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); max-width: 980px; margin: 4vh auto 0; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); background: #05070d; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.qxc-login-brand { position: relative; padding: 48px 44px; display: flex; flex-direction: column; gap: 28px; color: #f9f9f9; overflow: hidden;
    background: radial-gradient(520px 340px at 100% 0%, rgba(0,102,255,.55), transparent 65%), radial-gradient(420px 300px at 0% 100%, rgba(0,82,204,.4), transparent 65%), #02040a; }
.qxc-login-brand::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(180deg, #000, transparent 75%); pointer-events: none; }
.qxc-login-brand > * { position: relative; z-index: 1; }
.qxc-login-mark { font-family: var(--qxc-font-heading); font-weight: 800; font-size: 34px; letter-spacing: -.02em; }
.qxc-login-mark span { color: var(--qxc-blue-light); }
.qxc-login-headline { font-family: var(--qxc-font-heading); font-weight: 700; font-size: 34px; line-height: 1.12; letter-spacing: -.02em; margin: 6px 0 0; color: #f9f9f9; }
.qxc-login-headline em { font-style: normal; color: var(--qxc-blue-light); }
.qxc-login-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.qxc-login-points li { display: flex; gap: 12px; align-items: flex-start; color: #cfd6e4; font-size: 14px; line-height: 1.45; }
.qxc-login-points i { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(0,102,255,.18); color: var(--qxc-blue-light); font-size: 14px; }
.qxc-login-foot { margin-top: auto; font-family: var(--qxc-font-heading); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #8a94a8; }

.qxc-login-card { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; background: #080b14; }
.qxc-login-title h1 { font-family: var(--qxc-font-heading); font-size: 26px; font-weight: 700; margin: 0 0 4px; color: #f9f9f9; letter-spacing: -.01em; }
.qxc-login-title p { margin: 0 0 26px; color: #8a94a8; font-size: 14px; }
.qxc-field { margin-bottom: 18px; }
.qxc-field > label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 600; color: #cfd6e4; margin-bottom: 7px; }
.qxc-field > label a { font-weight: 500; color: var(--qxc-blue-light); }
.qxc-input { position: relative; }
.qxc-input > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #667085; font-size: 14px; pointer-events: none; }
.qxc-input input { width: 100%; height: 48px; padding: 0 44px 0 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: #0c1220; color: #f9f9f9; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.qxc-input input::placeholder { color: #667085; }
.qxc-input input:focus { border-color: var(--qxc-blue); box-shadow: 0 0 0 3px rgba(0,102,255,.25); }
.qxc-input .show_hide_icon { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: #8a94a8; border-radius: 8px; }
.qxc-input .show_hide_icon i { position: static; transform: none; color: inherit; }
.qxc-input .show_hide_icon:hover { color: #f9f9f9; background: rgba(255,255,255,.06); }
.qxc-field.has-error .qxc-input input { border-color: #ef4444; }
.qxc-error { display: block; margin-top: 6px; color: #f87171; font-size: 12.5px; }
.qxc-remember { display: inline-flex; align-items: center; gap: 8px; color: #cfd6e4; font-size: 13px; cursor: pointer; margin: 2px 0 20px; }
.qxc-remember input { width: 16px; height: 16px; accent-color: var(--qxc-blue); }
.qxc-login-submit { width: 100%; height: 50px; border: 0; border-radius: 12px; color: #fff; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(90deg, #0a49d6, #0066ff); transition: transform .15s, box-shadow .15s; }
.qxc-login-submit:hover { box-shadow: 0 10px 28px rgba(0,102,255,.4); transform: translateY(-1px); }
.qxc-login-submit:active { transform: translateY(0); }
.qxc-login-alt { text-align: center; margin: 20px 0 0; color: #8a94a8; font-size: 13.5px; }
.qxc-login-alt a { color: var(--qxc-blue-light); font-weight: 600; }
@media (max-width: 820px) {
    .qxc-login { grid-template-columns: 1fr; margin-top: 44px; border-radius: 20px; }
    .qxc-login-brand { padding: 28px 24px; gap: 14px; }
    .qxc-login-headline { font-size: 24px; }
    .qxc-login-points, .qxc-login-foot { display: none; }
    .qxc-login-card { padding: 28px 24px; }
}

/* ============================================================
   26. Other auth pages (register, password reset) follow the login look
   ============================================================ */
body.qxc-auth .tw-bg-white.tw-rounded-xl, body.qxc-auth .tw-bg-white.tw-rounded-2xl { background: #080b14 !important; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 30px 80px rgba(0,0,0,.5); border-radius: 20px !important; padding: 28px !important; }
body.qxc-auth .tw-text-black, body.qxc-auth .tw-text-gray-500 { color: #cfd6e4 !important; }
body.qxc-auth .tw-border-\[\#D1D5DA\] { background: #0c1220 !important; border-color: rgba(255,255,255,.12) !important; color: #f9f9f9 !important; border-radius: 12px !important; }
body.qxc-auth .tw-border-\[\#D1D5DA\]:focus { border-color: var(--qxc-blue) !important; box-shadow: 0 0 0 3px rgba(0,102,255,.25); }
body.qxc-auth button[type="submit"].tw-bg-gradient-to-r { background-image: linear-gradient(90deg, #0a49d6, #0066ff) !important; border-radius: 12px; font-weight: 700; }
body.qxc-auth .wizard > .content, body.qxc-auth .wizard > .content label, body.qxc-auth .wizard > .content h3, body.qxc-auth .wizard > .content h4 { color: #cfd6e4 !important; }
body.qxc-auth .wizard > .content .form-control { background: #0c1220; border-color: rgba(255,255,255,.12); color: #f9f9f9; }
body.qxc-auth .wizard > .content .input-group-addon { background: #0c1220; border-color: rgba(255,255,255,.12); color: #8a94a8; }
body.qxc-auth .wizard > .steps a { border-radius: 12px; }
body.qxc-auth .wizard > .steps .disabled a, body.qxc-auth .wizard > .steps .done a { background: #0c1220 !important; color: #8a94a8 !important; border: 1px solid rgba(255,255,255,.09); }
body.qxc-auth .wizard > .steps .current a { background: #0066ff !important; color: #fff !important; }

/* ============================================================
   27. Post Dated Cheques: balance tiles
   ============================================================ */
.pdc-tiles { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.pdc-tiles-out { grid-template-columns: auto repeat(3, 1fr); align-items: stretch; }
.pdc-tiles-title { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--qxc-font-heading); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--up-faint); text-align: center; }
.pdc-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--up-surface); border: 1px solid var(--up-border); box-shadow: var(--up-shadow); min-width: 0; }
.pdc-tile-label { font-size: 12px; font-weight: 600; color: var(--up-faint); display: flex; align-items: center; gap: 6px; }
.pdc-tile-label i { color: var(--up-accent); }
.pdc-tile-val { font-family: var(--qxc-font-heading); font-size: 22px; font-weight: 700; color: var(--up-text); letter-spacing: -.01em; line-height: 1.15; word-break: break-word; }
.pdc-tile-n { color: var(--up-faint); font-size: 12px; }
.pdc-tile-eq { margin-top: auto; padding-top: 6px; font-size: 11.5px; color: var(--up-faint); }
.pdc-tile-hero { background: linear-gradient(135deg, #0a49d6, #0066ff); border-color: transparent; }
.pdc-tile-hero .pdc-tile-label, .pdc-tile-hero .pdc-tile-n, .pdc-tile-hero .pdc-tile-eq { color: rgba(255,255,255,.82); }
.pdc-tile-hero .pdc-tile-label i, .pdc-tile-hero .pdc-tile-val { color: #fff; }
.pdc-tile-hero .pdc-tile-val { font-size: 26px; }
.pdc-ok .pdc-tile-label i { color: #10b981; }
.pdc-bad .pdc-tile-label i { color: #ef4444; }
.pdc-tiles-note { color: var(--up-faint); font-size: 12px; margin: 0 2px 14px; }
@media (max-width: 991px) { .pdc-tiles, .pdc-tiles-out { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pdc-tile-hero, .pdc-tiles-title { grid-column: 1 / -1; } .pdc-tiles-title { writing-mode: initial; transform: none; text-align: left; } }

/* ============================================================
   28. Post Dated Cheques: status and direction chips, header
   ============================================================ */
#pdc_cheque_datatable .label, .content-header .label.label-danger { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; line-height: 1.4; border: 1px solid transparent; }
#pdc_cheque_datatable .label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#pdc_cheque_datatable .label-info { color: #3b82f6; background: color-mix(in srgb, #3b82f6 14%, transparent); border-color: color-mix(in srgb, #3b82f6 30%, transparent); }
#pdc_cheque_datatable .label-warning { color: #f59e0b; background: color-mix(in srgb, #f59e0b 14%, transparent); border-color: color-mix(in srgb, #f59e0b 30%, transparent); }
#pdc_cheque_datatable .label-success { color: #10b981; background: color-mix(in srgb, #10b981 14%, transparent); border-color: color-mix(in srgb, #10b981 30%, transparent); }
#pdc_cheque_datatable .label-danger { color: #ef4444; background: color-mix(in srgb, #ef4444 14%, transparent); border-color: color-mix(in srgb, #ef4444 30%, transparent); }
#pdc_cheque_datatable .label-default, #pdc_cheque_datatable .label-primary { color: var(--up-sub); background: var(--up-surface-3); border-color: var(--up-border); }
.content-header .label.label-danger { color: #ef4444; background: color-mix(in srgb, #ef4444 14%, transparent); border-color: color-mix(in srgb, #ef4444 30%, transparent); font-size: 12.5px !important; }
#pdc_cheque_datatable td:nth-child(6) { font-family: var(--qxc-font-heading); font-weight: 700; white-space: nowrap; }
#pdc_cheque_datatable td:nth-child(2) { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12.5px; }
#pdc-endorse-modal .modal-header, [id^="pdc-"] .modal-header { border-bottom-color: var(--up-border); }

/* ============================================================
   29. Main sidebar: icon tiles, accent-bar active state, dotted sub-menus
   ============================================================ */
body .side-bar { background: var(--up-surface); }
body .side-bar #side-bar { padding: 8px 10px 14px; border-right: 0 !important; scrollbar-width: thin; }
body .side-bar #side-bar > div[class*="tw-space-y"], body .side-bar #side-bar { display: flex; flex-direction: column; gap: 2px; }
body .side-bar #side-bar > a, body .side-bar #side-bar a.drop_down {
    position: relative; min-height: 42px; padding: 6px 10px; gap: 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--up-sub);
    transition: background-color .15s ease, color .15s ease;
}
body .side-bar #side-bar > a > i, body .side-bar #side-bar > a > svg:first-child, body .side-bar #side-bar a.drop_down > i, body .side-bar #side-bar a.drop_down > svg:first-child {
    width: 30px !important; height: 30px !important; flex: 0 0 30px; padding: 6px; border-radius: 10px; background: var(--up-surface-3); color: var(--up-faint);
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px; transition: background-color .15s ease, color .15s ease;
}
body .side-bar #side-bar > a:hover, body .side-bar #side-bar a.drop_down:hover { background: var(--up-surface-2) !important; color: var(--up-text) !important; }
body .side-bar #side-bar > a:hover > i, body .side-bar #side-bar > a:hover > svg:first-child, body .side-bar #side-bar a.drop_down:hover > i, body .side-bar #side-bar a.drop_down:hover > svg:first-child { background: var(--up-accent-soft); color: var(--up-accent); }
body .side-bar #side-bar a.theme-sidebar-active { background: var(--up-accent-soft) !important; color: var(--up-accent) !important; box-shadow: inset 3px 0 0 var(--qxc-blue); font-weight: 700; }
body .side-bar #side-bar a.theme-sidebar-active > i, body .side-bar #side-bar a.theme-sidebar-active > svg:first-child { background: var(--qxc-blue) !important; color: #fff !important; box-shadow: 0 6px 14px -6px rgba(0, 102, 255, .9); }
body .side-bar #side-bar a.theme-sidebar-active .svg { color: var(--up-accent) !important; }

/* sub-menus: dotted list, no vertical rule */
body .side-bar #side-bar .chiled { padding-left: 24px !important; margin: 2px 0 6px !important; }
body .side-bar #side-bar .chiled > div:first-child { display: none; }
body .side-bar #side-bar .chiled a {
    position: relative; padding: 7px 10px 7px 26px !important; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--up-faint);
}
body .side-bar #side-bar .chiled a::before { content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--up-border); transition: background-color .15s, transform .15s; }
body .side-bar #side-bar .chiled a:hover { background: var(--up-surface-2); color: var(--up-text); }
body .side-bar #side-bar .chiled a:hover::before { background: var(--up-accent); transform: scale(1.25); }
body .side-bar #side-bar .chiled a.theme-sidebar-child-active { color: var(--up-accent) !important; font-weight: 700; background: var(--up-accent-soft); }
body .side-bar #side-bar .chiled a.theme-sidebar-child-active::before { background: var(--qxc-blue); }
body .side-bar #sidebar-search { font-size: 13px; }
body .side-bar > div:has(#sidebar-search) { border-right: 0 !important; padding: 10px 12px 6px; }
body .side-bar > div:has(#sidebar-search) > div { border-radius: 12px; background: var(--up-surface-2) !important; border-color: var(--up-border) !important; }

/* Sidebar section headings */
body .side-bar #side-bar .qxc-nav-head { padding: 16px 12px 6px !important; font-family: var(--qxc-font-heading); font-size: 10.5px !important; letter-spacing: .16em !important; color: var(--up-faint) !important; display: flex; align-items: center; gap: 8px; }
body .side-bar #side-bar .qxc-nav-head::after { content: ""; flex: 1; height: 1px; background: var(--up-border); }
body .side-bar #side-bar .qxc-nav-head:has(+ .qxc-nav-head), body .side-bar #side-bar .qxc-nav-head:last-child { display: none; }
@media (max-width: 575px) {
    .pdc-tile { padding: 12px; }
    .pdc-tile-val { font-size: 17px; }
    .pdc-tile-hero .pdc-tile-val { font-size: 24px; }
    .pdc-tile-val .display_currency { white-space: nowrap; }
}
body.qxc-auth .wizard > .content > .title, body.qxc-auth .wizard > .content h1, body.qxc-auth .wizard > .content h2, body.qxc-auth .wizard > .content .title { color: #f9f9f9 !important; font-family: var(--qxc-font-heading); }
@media (max-width: 575px) {
    body.qxc-auth .tw-bg-white.tw-rounded-xl, body.qxc-auth .tw-bg-white.tw-rounded-2xl { padding: 18px !important; }
    body.qxc-auth .wizard > .content { margin: 0 !important; padding: 0 !important; }
    body.qxc-auth .wizard > .content > .body { padding: 0 !important; width: 100% !important; }
    body.qxc-auth .wizard > .steps > ul > li { width: 33.33% !important; }
    body.qxc-auth .wizard > .steps a { padding: 8px !important; font-size: 12px; }
}
body.qxc-auth .wizard legend, body.qxc-auth .wizard legend.text-black { color: #f9f9f9 !important; border-bottom-color: rgba(255,255,255,.1) !important; font-family: var(--qxc-font-heading); }
