/* AppCOMS polish — one look for every screen (appearance only; remove the <link> in layouts/partials/css.blade.php to undo). */
:root {
    --ac-navy: #0c4a6e; --ac-navy-2: #075985; --ac-gold: #ca8a04;
    --ac-ink: #0f172a; --ac-text: #334155; --ac-muted: #64748b; --ac-line: #e2e8f0; --ac-field: #d6dee8;
    --ac-bg: #f4f7fb; --ac-soft: #f8fafc; --ac-focus: rgba(14, 165, 233, .16);
    --ac-r: 12px; --ac-r-sm: 9px;
}

/* Page */
#scrollable-container { background: var(--ac-bg); }
#scrollable-container > .content, #scrollable-container .content { color: var(--ac-text); }
#scrollable-container .content-header h1 { font-weight: 800 !important; color: var(--ac-ink) !important; letter-spacing: -.01em; }

/* Cards */
#scrollable-container .tw-ring-gray-200.tw-rounded-xl,
#scrollable-container .box {
    border-radius: 14px !important; border: 1px solid var(--ac-line) !important; --tw-ring-shadow: 0 0 #0000 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -16px rgba(15, 23, 42, .12) !important;
    background: #fff;
}
#scrollable-container .tw-ring-gray-200.tw-rounded-xl:hover { transform: none !important; }
#scrollable-container .box .box-header { border-bottom: 0; }
#scrollable-container .box-title { font-weight: 700; color: var(--ac-ink); }

/* Labels & help */
#scrollable-container label, .modal label { font-weight: 600; color: var(--ac-text); font-size: 13px; margin-bottom: 5px; }
#scrollable-container .help-block, .modal .help-block { color: var(--ac-muted); font-size: 12px; }

/* Fields */
#scrollable-container .form-control, .modal .form-control {
    border-radius: var(--ac-r-sm); border: 1px solid var(--ac-field); box-shadow: none;
    min-height: 38px; font-size: 13.5px; color: var(--ac-ink); background-color: #fff;
    transition: border-color .15s, box-shadow .15s;
}
#scrollable-container textarea.form-control, .modal textarea.form-control { min-height: 70px; }
#scrollable-container .form-control.input-sm, .modal .form-control.input-sm { min-height: 32px; border-radius: 8px; }
#scrollable-container .form-control:focus, .modal .form-control:focus { border-color: #0ea5e9; box-shadow: 0 0 0 3px var(--ac-focus); outline: 0; }
#scrollable-container .form-control[readonly], #scrollable-container .form-control[disabled],
.modal .form-control[readonly], .modal .form-control[disabled] { background: var(--ac-soft); color: var(--ac-muted); }
#scrollable-container .form-control::placeholder, .modal .form-control::placeholder { color: #a3b1c2; }

/* Input groups: rounded as one piece */
#scrollable-container .input-group-addon, .modal .input-group-addon { background: var(--ac-soft); border-color: var(--ac-field); color: var(--ac-muted); }
#scrollable-container .input-group > :first-child:not(:last-child), .modal .input-group > :first-child:not(:last-child) { border-top-left-radius: var(--ac-r-sm); border-bottom-left-radius: var(--ac-r-sm); }
#scrollable-container .input-group > :last-child:not(:first-child), .modal .input-group > :last-child:not(:first-child),
#scrollable-container .input-group-btn:last-child > .btn, .modal .input-group-btn:last-child > .btn { border-top-right-radius: var(--ac-r-sm); border-bottom-right-radius: var(--ac-r-sm); }
#scrollable-container .input-group .form-control:not(:first-child):not(:last-child), .modal .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; }

/* Select2 to match fields */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple { border: 1px solid var(--ac-field) !important; border-radius: var(--ac-r-sm) !important; min-height: 38px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 36px !important; color: var(--ac-ink); padding-left: 11px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px !important; }
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single { border-color: #0ea5e9 !important; box-shadow: 0 0 0 3px var(--ac-focus); }
.select2-container--default .select2-selection--multiple .select2-selection__choice { background: #e0f2fe; border: 1px solid #bae6fd; color: var(--ac-navy); border-radius: 6px; }
.select2-dropdown { border-color: var(--ac-field) !important; border-radius: 10px !important; overflow: hidden; box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .25); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ac-navy) !important; }
.input-group .select2-container--default .select2-selection--single { border-radius: 0 !important; }
.input-group > .select2-container:first-child .select2-selection--single { border-radius: var(--ac-r-sm) 0 0 var(--ac-r-sm) !important; }
.input-group > .select2-container:last-child .select2-selection--single { border-radius: 0 var(--ac-r-sm) var(--ac-r-sm) 0 !important; }
.input-group-sm .select2-selection--single, .input-sm + .select2-container .select2-selection--single { min-height: 32px; }

/* Buttons */
#scrollable-container .btn, .modal .btn { border-radius: var(--ac-r-sm); font-weight: 600; letter-spacing: .01em; transition: background-color .15s, box-shadow .15s, transform .05s; }
#scrollable-container .btn:active, .modal .btn:active { transform: translateY(1px); }
#scrollable-container .btn-primary, .modal .btn-primary { background: var(--ac-navy); border-color: var(--ac-navy); }
#scrollable-container .btn-primary:hover, #scrollable-container .btn-primary:focus,
.modal .btn-primary:hover, .modal .btn-primary:focus { background: var(--ac-navy-2); border-color: var(--ac-navy-2); }
#scrollable-container .btn-default, .modal .btn-default { background: #fff; border-color: var(--ac-field); color: var(--ac-text); }
#scrollable-container .btn-default:hover, .modal .btn-default:hover { background: var(--ac-soft); }
#scrollable-container .btn-xs { border-radius: 7px; }

/* Tables */
#scrollable-container .table, .modal .table { color: var(--ac-text); }
#scrollable-container .table > thead > tr > th, .modal .table > thead > tr > th {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: #475569;
    border-bottom: 1px solid var(--ac-line) !important; vertical-align: middle;
}
#scrollable-container .table > tbody > tr > td, .modal .table > tbody > tr > td { border-top-color: #eef2f7; vertical-align: middle; }
#scrollable-container .table-striped > tbody > tr:nth-of-type(odd) { background-color: #fbfcfe; }
#scrollable-container .table-hover > tbody > tr:hover, #scrollable-container table.dataTable tbody tr:hover { background-color: #f1f7fd !important; }
#scrollable-container .table-bordered, #scrollable-container .table-bordered > thead > tr > th,
#scrollable-container .table-bordered > tbody > tr > td, #scrollable-container .table-bordered > tfoot > tr > td { border-color: #e8edf3; }
#scrollable-container .dataTables_wrapper .dataTables_filter input { border-radius: var(--ac-r-sm); border: 1px solid var(--ac-field); padding: 5px 10px; min-height: 34px; }
#scrollable-container .dataTables_wrapper .dataTables_length select { border-radius: 8px; border: 1px solid var(--ac-field); }
#scrollable-container .pagination > li > a, #scrollable-container .pagination > li > span { border-color: var(--ac-line); color: var(--ac-navy); margin: 0 2px; border-radius: 8px !important; }
#scrollable-container .pagination > .active > a, #scrollable-container .pagination > .active > span { background: var(--ac-navy); border-color: var(--ac-navy); color: #fff; }

/* Tabs */
#scrollable-container .nav-tabs-custom { border-radius: 14px; box-shadow: none; border: 1px solid var(--ac-line); overflow: hidden; }
#scrollable-container .nav-tabs-custom > .nav-tabs > li.active { border-top-color: var(--ac-navy); }
#scrollable-container .nav-tabs-custom > .nav-tabs > li > a { font-weight: 600; }

/* Labels / badges */
#scrollable-container .label, .modal .label { border-radius: 999px; padding: .3em .75em; font-weight: 600; letter-spacing: .01em; }

/* Modals */
.modal-content { border-radius: 16px; border: 0; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .45); overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--ac-line); padding: 14px 20px; }
.modal-header .modal-title { font-weight: 800; color: var(--ac-ink); }
.modal-body { padding: 18px 20px; }
.modal-footer { border-top: 1px solid var(--ac-line); background: var(--ac-soft); padding: 12px 20px; }
.modal-backdrop.in { opacity: .45; }

/* Checkboxes (iCheck) & small things */
#scrollable-container hr { border-top-color: var(--ac-line); }
#scrollable-container .text-muted { color: var(--ac-muted) !important; }
#scrollable-container a:not(.btn):not(.tw-dw-btn) { color: var(--ac-navy-2); }

/* Print stays plain */
@media print {
    #scrollable-container .tw-ring-gray-200.tw-rounded-xl, #scrollable-container .box { box-shadow: none !important; border: 0 !important; }
}

/* WooCommerce is switched off: hide its sync marks */
i.fa-wordpress, i.fab.fa-wordpress { display: none !important; }


/* ===================== Premium windows (every pop-up) ===================== */
:root {
    --ac-grad: linear-gradient(120deg, #0b2f4e 0%, #0c4a6e 55%, #0e7490 100%);
    --ac-head: linear-gradient(180deg, #11557f 0%, #0c4a6e 100%);
    --ac-gold-2: #f5b301; --ac-card: #ffffff; --ac-card-line: #e3eaf3; --ac-zebra: #f8fbfe; --ac-hover: #eef6ff;
}
.modal-content { border-radius: 18px; background: #fff; }
.modal-header { background: var(--ac-grad); border-bottom: 3px solid var(--ac-gold-2) !important; padding: 15px 22px; }
.modal-header .modal-title, .modal-header h4, .modal-header h3 { color: #fff !important; font-weight: 800; font-size: 17px; letter-spacing: .01em; }
.modal-header .modal-title b, .modal-header .modal-title strong, .modal-header .modal-title small { color: #fde68a !important; }
.modal-header .close { color: #fff !important; opacity: .85; text-shadow: none; font-size: 26px; margin-top: -3px; }
.modal-header .close:hover { opacity: 1; }
.modal-body { background: #f6f9fc; }
.modal-footer { background: #fff; border-top: 1px solid var(--ac-card-line); }

/* information blocks -> cards */
.modal .invoice-info { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
.modal .invoice-info:before, .modal .invoice-info:after { display: none; }
.modal .invoice-info > .invoice-col { flex: 1 1 210px; float: none; width: auto; min-width: 0;
    background: var(--ac-card); border: 1px solid var(--ac-card-line); border-radius: 12px; padding: 12px 14px; line-height: 1.65;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04); position: relative; }
.modal .invoice-info > .invoice-col:before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--ac-gold-2); }
.modal .invoice-info > .invoice-col:nth-child(2):before { background: #0e7490; }
.modal .invoice-info > .invoice-col:nth-child(3):before { background: #6366f1; }
.modal .invoice-col b, .modal .invoice-col strong { color: #0f172a; }
.modal .well, #scrollable-container .well { background: #fff; border: 1px solid var(--ac-card-line); border-radius: 12px; box-shadow: none; padding: 12px 14px; line-height: 1.65; }

/* coloured table header bars (old green / blue / gray bars) -> one navy style */
.modal table tr.bg-green > th, .modal table tr.bg-green > td, .modal table thead.bg-green th,
.modal table tr.bg-light-blue-active > th, .modal table tr.bg-aqua > th, .modal table tr.bg-navy > th, .modal table tr.bg-olive > th, .modal table tr.bg-teal > th,
#scrollable-container table tr.bg-green > th, #scrollable-container table tr.bg-light-blue-active > th, #scrollable-container table tr.bg-aqua > th,
#scrollable-container table tr.bg-olive > th, #scrollable-container table tr.bg-teal > th {
    background: var(--ac-head) !important; color: #fff !important; border: 0 !important;
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; padding: 10px 12px !important; }
.modal table tr.bg-green, .modal table tr.bg-light-blue-active, #scrollable-container table tr.bg-green { background: transparent !important; }
.modal table tr.bg-gray > th, .modal table tr.bg-gray > td, #scrollable-container table tr.bg-gray > th {
    background: #eef3f8 !important; color: #0f172a !important; font-weight: 700; border-color: var(--ac-card-line) !important; }

/* tables inside windows -> rounded cards */
.modal .table { background: #fff; border: 1px solid var(--ac-card-line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; margin-bottom: 14px; }
.modal .table > thead > tr > th, .modal .table > tbody > tr > th, .modal .table > tbody > tr > td, .modal .table > tfoot > tr > td { padding: 9px 12px; border-top: 1px solid #eef2f7; }
.modal .table > thead > tr:first-child > th, .modal .table > tbody > tr:first-child > th, .modal .table > tbody > tr:first-child > td { border-top: 0; }
.modal .table-striped > tbody > tr:nth-of-type(odd) { background: var(--ac-zebra); }
.modal .table > tbody > tr:hover { background: var(--ac-hover); }
.modal .table-bordered > thead > tr > th, .modal .table-bordered > tbody > tr > td, .modal .table-bordered > tbody > tr > th { border-left: 0; border-right: 0; }
/* totals tables (label + amount) */
.modal .table.ac-totals { max-width: 460px; margin-left: auto; }
.modal .table.ac-totals th { color: #475569; font-weight: 600; background: #fff; }
.modal .table.ac-totals td { text-align: right; font-weight: 700; color: #0f172a; }
.modal .table.ac-totals tr:last-child th, .modal .table.ac-totals tr:last-child td { background: #f0f7ff; color: #0c4a6e; font-size: 15px; font-weight: 800; border-top: 2px solid #0c4a6e; }
/* notes boxes */
.modal .bg-gray, .modal .well-sm { background: #f1f5f9 !important; border-radius: 10px; color: #334155 !important; }

/* status pills everywhere (soft colours) */
.label, .badge { border-radius: 999px; font-weight: 700; letter-spacing: .01em; }
.label-success, .bg-green.label, .badge.bg-green { background: #dcfce7 !important; color: #166534 !important; }
.label-warning, .bg-yellow.label, .badge.bg-yellow { background: #fef3c7 !important; color: #92400e !important; }
.label-danger, .bg-red.label, .badge.bg-red { background: #fee2e2 !important; color: #991b1b !important; }
.label-info, .bg-aqua.label, .bg-info.label, .badge.bg-aqua { background: #e0f2fe !important; color: #075985 !important; }
.label-primary, .bg-light-blue.label { background: #e0e7ff !important; color: #3730a3 !important; }
.label-default { background: #f1f5f9 !important; color: #334155 !important; }

/* numbers line up (class added by appcoms-ui.js) */
.ac-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.ac-num { text-align: right !important; }

/* small screens: info cards stack */
@media (max-width: 600px) { .modal .invoice-info > .invoice-col { flex-basis: 100%; } }
@media print {
    .modal-header { background: none !important; border-bottom: 1px solid #000 !important; }
    .modal-header .modal-title, .modal-header h4 { color: #000 !important; }
    .modal-body { background: #fff; }
    .modal .invoice-info > .invoice-col:before { display: none; }
}


/* plain table headers inside windows -> navy too */
.modal .table > thead > tr > th { background: var(--ac-head); color: #fff !important; border: 0 !important; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; padding: 10px 12px; }
.modal .table > thead > tr > th a { color: #fff !important; }
.modal .table > tbody > tr:first-child:not(:has(td)) > th { background: var(--ac-head); color: #fff !important; border: 0 !important; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; padding: 10px 12px; }
.modal .table.ac-totals > tbody > tr:first-child > th { background: #fff !important; color: #475569 !important; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }

/* ===================== Report summaries (P&L, Purchase & Sale, Tax, …) ===================== */
#scrollable-container .table.ac-totals { background: transparent; margin-bottom: 0; }
#scrollable-container .table.ac-totals > tbody > tr { background: transparent !important; }
#scrollable-container .table.ac-totals > tbody > tr > th, #scrollable-container .table.ac-totals > tbody > tr > td { border-top: 1px dashed #e2e8f0; padding: 10px 6px; vertical-align: middle; }
#scrollable-container .table.ac-totals > tbody > tr:first-child > th, #scrollable-container .table.ac-totals > tbody > tr:first-child > td { border-top: 0; }
#scrollable-container .table.ac-totals > tbody > tr > th { color: #334155; font-weight: 600; font-size: 13.5px; }
#scrollable-container .table.ac-totals > tbody > tr > th small { color: #94a3b8; font-weight: 500; }
#scrollable-container .table.ac-totals > tbody > tr > td { text-align: right; font-weight: 800; color: #0c4a6e; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#scrollable-container .table.ac-totals > tbody > tr:hover { background: #f5f9ff !important; }
#scrollable-container .tw-rounded-xl:has(> div > div > div > div > .table.ac-totals),
#scrollable-container .tw-rounded-xl:has(.table.ac-totals) { border-top: 4px solid #0c4a6e !important; }
#scrollable-container .row > [class*="col-"]:nth-child(2) .tw-rounded-xl:has(.table.ac-totals) { border-top-color: #0e7490 !important; }

.ac-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 4px 0 8px; }
.ac-kpi { position: relative; background: linear-gradient(135deg, #0b2f4e 0%, #0c4a6e 60%, #0e7490 100%); color: #fff; border-radius: 16px; padding: 16px 18px 14px;
    box-shadow: 0 14px 30px -18px rgba(12, 74, 110, .8); overflow: hidden; }
.ac-kpi:after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.ac-kpi .l { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #bae6fd; }
.ac-kpi .l i { color: #fde68a !important; }
.ac-kpi .v { font-size: 26px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ac-kpi .v span { color: #fff !important; }
.ac-kpi.pos { background: linear-gradient(135deg, #064e3b 0%, #047857 60%, #10b981 100%); }
.ac-kpi.pos .l { color: #bbf7d0; }
.ac-kpi.neg { background: linear-gradient(135deg, #4c0519 0%, #9f1239 60%, #e11d48 100%); }
.ac-kpi.neg .l { color: #fecdd3; }
.ac-kpi small, .ac-kpi .help-block { display: block; color: rgba(255, 255, 255, .75) !important; font-size: 11.5px; margin-top: 4px; }
@media print { .ac-kpi { background: #fff !important; color: #000 !important; border: 1px solid #000; box-shadow: none; } .ac-kpi .l, .ac-kpi .v span { color: #000 !important; } }

/* ---- Report tiles v2: calm, one palette (navy + gold), no red/green blocks ---- */
.ac-kpi, .ac-kpi.pos, .ac-kpi.neg {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); color: #0f172a;
    border: 1px solid #e6ebf2; border-radius: 16px; padding: 16px 18px 14px 22px;
    box-shadow: 0 10px 26px -20px rgba(15, 23, 42, .45);
}
.ac-kpi:before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #f5b301, #d97706); }
.ac-kpi:after { right: -40px; top: -40px; width: 130px; height: 130px; background: radial-gradient(circle, rgba(245, 179, 1, .10) 0%, rgba(245, 179, 1, 0) 70%); }
.ac-kpi .l, .ac-kpi.pos .l, .ac-kpi.neg .l { color: #64748b; }
.ac-kpi .l i { color: #d97706 !important; }
.ac-kpi .v span { color: #0c4a6e !important; }
.ac-kpi.neg .v span { color: #b45309 !important; }
.ac-kpi.neg .v:before { content: '\25BC'; font-size: 12px; color: #d97706; margin-right: 6px; vertical-align: 4px; }
.ac-kpi.pos .v:before { content: '\25B2'; font-size: 12px; color: #0e7490; margin-right: 6px; vertical-align: 4px; }
.ac-kpi small, .ac-kpi .help-block { color: #94a3b8 !important; }
#scrollable-container .tw-rounded-xl:has(.table.ac-totals),
#scrollable-container .row > [class*="col-"]:nth-child(2) .tw-rounded-xl:has(.table.ac-totals) { border-top: 3px solid #f5b301 !important; }
#scrollable-container .table.ac-totals > tbody > tr > td { color: #0f172a; }
#scrollable-container .tw-ring-gray-200.tw-rounded-xl:has(.table.ac-totals) { border-top: 3px solid #f5b301 !important; }
/* one button colour family across the app: navy (primary), gold edge on focus */
.tw-dw-btn-primary, .tw-dw-btn.tw-dw-btn-primary { background-color: #0c4a6e !important; border-color: #0c4a6e !important; color: #fff !important; }
.tw-dw-btn-primary:hover, .tw-dw-btn.tw-dw-btn-primary:hover { background-color: #075985 !important; border-color: #075985 !important; }
.tw-dw-btn-primary:focus-visible { outline: 2px solid #f5b301; outline-offset: 2px; }
.tw-dw-btn-outline.tw-dw-btn-primary { background-color: transparent !important; color: #0c4a6e !important; }
.tw-dw-btn-outline.tw-dw-btn-primary:hover { background-color: #0c4a6e !important; color: #fff !important; }
.input-group-addon.bg-light-blue, .input-group-addon.bg-blue, .input-group-addon.bg-aqua { background: #0c4a6e !important; border-color: #0c4a6e !important; color: #fcd34d !important; }

/* ===================== Lists: bigger action icons, compact short columns ===================== */
table.dataTable .row-quick { display: inline-flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
table.dataTable .row-quick > a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px;
    background: #f1f5f9; color: #0c4a6e !important; transition: background .15s, color .15s, transform .1s; }
table.dataTable .row-quick > a:hover { background: #0c4a6e; color: #fcd34d !important; transform: translateY(-1px); }
table.dataTable .row-quick > a i { font-size: 15px; }
table.dataTable td .btn-group > .btn, table.dataTable td .btn-group > .tw-dw-btn, table.dataTable td > .btn-xs, table.dataTable td > .tw-dw-btn-xs {
    min-height: 30px; height: 30px; padding: 0 10px; border-radius: 9px; font-size: 12.5px; }
table.dataTable td .btn-group > .btn i, table.dataTable td .btn-group > .tw-dw-btn i, table.dataTable td .btn-xs i, table.dataTable td .tw-dw-btn-xs i { font-size: 14px; }
table.dataTable td .dropdown-menu > li > a { padding: 7px 14px; font-size: 13px; }
table.dataTable td .dropdown-menu > li > a i { width: 18px; font-size: 14px; color: #0c4a6e; }
table.dataTable td.ac-tight, table.dataTable th.ac-tight, .dataTables_scrollHead th.ac-tight { width: 1% !important; }
table.dataTable td.ac-tight { white-space: nowrap; }
table.dataTable th.ac-tight, .dataTables_scrollHead th.ac-tight { white-space: normal !important; }
table.dataTable td .label, table.dataTable td .badge { font-size: 11.5px; padding: .3em .8em; }

/* ===================== Top bar ===================== */
/* every top-bar control looks like the search box: translucent white pill */
.no-print .ac-nav-btn, #nav-dl > summary, .no-print .clock_in_btn, .no-print .clock_out_btn, .no-print #show_unread_notifications,
.no-print #nav-plus-btn, .no-print a[href$="business/settings"], #nav-toolbar-dropdown > summary {
    background: rgba(255, 255, 255, .12) !important; border: 1px solid rgba(255, 255, 255, .28) !important; --tw-ring-shadow: 0 0 #0000 !important;
    color: #fff !important; border-radius: 999px !important; height: 34px; min-width: 34px; padding: 0 10px !important;
    display: inline-flex !important; align-items: center; justify-content: center; cursor: pointer; list-style: none; transition: background .15s; }
.no-print .ac-nav-btn:hover, #nav-dl > summary:hover, .no-print .clock_in_btn:hover, .no-print .clock_out_btn:hover, .no-print #show_unread_notifications:hover,
.no-print #nav-plus-btn:hover, .no-print a[href$="business/settings"]:hover { background: rgba(255, 255, 255, .22) !important; }
#nav-dl > summary::-webkit-details-marker { display: none; }
.no-print .clock_in_btn.hide, .no-print .clock_out_btn.hide, .no-print .hide.clock_in_btn { display: none !important; }
.no-print .clock_out_btn { position: relative; }
.no-print .clock_out_btn:after { content: ''; position: absolute; right: 3px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px #0c4a6e; }
/* date period dropdown: small pill like the search box */
#header-controls-start select.date_range_preset, .no-print select.date_range_preset {
    background-color: rgba(255, 255, 255, .12) !important; border: 1px solid rgba(255, 255, 255, .28) !important; color: #fff !important;
    border-radius: 999px !important; height: 32px !important; min-height: 32px !important; padding: 0 28px 0 12px !important; font-size: 12.5px; font-weight: 600;
    width: auto !important; max-width: 130px; margin-left: 6px !important; }
.no-print select.date_range_preset option { color: #0f172a; }
/* download menu */
#nav-dl .ac-nav-menu { position: absolute; right: 0; top: 40px; z-index: 50; background: #fff; border-radius: 12px; padding: 8px; min-width: 190px;
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .35); border: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 4px; }
#nav-dl .ac-nav-menu .dt-buttons { display: flex !important; flex-direction: column; gap: 4px; float: none; }
#nav-dl .ac-nav-menu .dt-buttons > *, #nav-dl .ac-nav-menu .ac-dl-item { display: flex !important; align-items: center; gap: 8px; width: 100%;
    background: #fff !important; color: #0f172a !important; border: 0 !important; border-radius: 8px !important; padding: 8px 10px !important;
    font-size: 13px; font-weight: 600; text-align: left; justify-content: flex-start; box-shadow: none !important; }
#nav-dl .ac-nav-menu .dt-buttons > *:hover, #nav-dl .ac-nav-menu .ac-dl-item:hover { background: #f1f5f9 !important; }
#nav-dl .ac-nav-menu i { color: #0c4a6e; width: 16px; }
#nav-dl.ac-flash > summary { animation: acDlFlash 1.2s ease-in-out 2; }
@keyframes acDlFlash { 0%, 100% { background: rgba(255, 255, 255, .12); box-shadow: none; } 50% { background: #16a34a; box-shadow: 0 0 0 4px rgba(34, 197, 94, .35); } }
/* user icon 1.5x, with photo */
.no-print .ac-avatar { width: 52px !important; height: 52px !important; border: 2px solid rgba(252, 211, 77, .85) !important; overflow: hidden; background: rgba(255, 255, 255, .12) !important; }
.no-print .ac-avatar svg { width: 30px !important; height: 30px !important; }
.no-print .ac-avatar .ac-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* ===================== Sweep 1: one palette everywhere ===================== */
/* file pickers "Browse…" */
.btn-file.btn-primary, .btn-primary.btn-file, .file-input .btn-primary { background: #0c4a6e !important; border-color: #0c4a6e !important; color: #fff !important; }
/* gradient Add buttons in page headers -> navy pill */
#scrollable-container a.tw-bg-gradient-to-r, #scrollable-container button.tw-bg-gradient-to-r {
    background: #0c4a6e !important; background-image: none !important; border: 0 !important; color: #fff !important; border-radius: 10px !important; }
#scrollable-container a.tw-bg-gradient-to-r:hover, #scrollable-container button.tw-bg-gradient-to-r:hover { background: #075985 !important; }
/* success buttons -> teal (no bright green) */
#scrollable-container .btn-success, #scrollable-container .tw-dw-btn-success:not(.tw-dw-btn-outline), .modal .btn-success, .modal .tw-dw-btn-success:not(.tw-dw-btn-outline) {
    background: #0e7490 !important; border-color: #0e7490 !important; color: #fff !important; }
#scrollable-container .tw-dw-btn-outline.tw-dw-btn-success, .modal .tw-dw-btn-outline.tw-dw-btn-success,
#scrollable-container .tw-dw-btn-outline.tw-dw-btn-primary, .modal .tw-dw-btn-outline.tw-dw-btn-primary,
#scrollable-container .tw-dw-btn-outline.tw-dw-btn-info, .modal .tw-dw-btn-outline.tw-dw-btn-info,
#scrollable-container .tw-dw-btn-outline.tw-dw-btn-accent, .modal .tw-dw-btn-outline.tw-dw-btn-accent {
    background: #fff !important; color: #0c4a6e !important; border: 1px solid #cbd5e1 !important; }
#scrollable-container .tw-dw-btn-outline:hover, .modal .tw-dw-btn-outline:hover { background: #0c4a6e !important; color: #fff !important; border-color: #0c4a6e !important; }
/* info buttons -> navy-teal */
#scrollable-container .tw-dw-btn-info:not(.tw-dw-btn-outline), .modal .tw-dw-btn-info:not(.tw-dw-btn-outline), #scrollable-container .btn-info, .modal .btn-info {
    background: #0e7490 !important; border-color: #0e7490 !important; color: #fff !important; }
#scrollable-container .tw-dw-btn-warning:not(.tw-dw-btn-outline), .modal .tw-dw-btn-warning:not(.tw-dw-btn-outline), #scrollable-container .btn-warning, .modal .btn-warning {
    background: #f5b301 !important; border-color: #f5b301 !important; color: #0c4a6e !important; }
/* delete / danger: calm amber-brown, outline when small */
#scrollable-container .btn-danger, .modal .btn-danger, #scrollable-container .tw-dw-btn-error:not(.tw-dw-btn-outline), .modal .tw-dw-btn-error:not(.tw-dw-btn-outline) {
    background: #9a3412 !important; border-color: #9a3412 !important; color: #fff !important; }
#scrollable-container .btn-danger.btn-xs, #scrollable-container .tw-dw-btn-error.tw-dw-btn-xs, .modal .btn-danger.btn-xs, .modal .tw-dw-btn-error.tw-dw-btn-xs,
#scrollable-container .tw-dw-btn-outline.tw-dw-btn-error, .modal .tw-dw-btn-outline.tw-dw-btn-error {
    background: #fff !important; color: #9a3412 !important; border: 1px solid #fed7aa !important; }
#scrollable-container .btn-danger.btn-xs:hover, #scrollable-container .tw-dw-btn-error.tw-dw-btn-xs:hover, .modal .tw-dw-btn-outline.tw-dw-btn-error:hover { background: #9a3412 !important; color: #fff !important; }
/* alerts: soft boxes */
#scrollable-container .alert, .modal .alert { border-radius: 12px; border-width: 1px; }
#scrollable-container .alert-danger, .modal .alert-danger { background: #fff7ed !important; border-color: #fed7aa !important; color: #9a3412 !important; }
#scrollable-container .alert-info, .modal .alert-info { background: #f0f9ff !important; border-color: #bae6fd !important; color: #075985 !important; }
#scrollable-container .alert-success, .modal .alert-success { background: #f0fdfa !important; border-color: #99f6e4 !important; color: #115e59 !important; }
#scrollable-container .alert-warning, .modal .alert-warning { background: #fffbeb !important; border-color: #fde68a !important; color: #92400e !important; }
#scrollable-container .alert a, .modal .alert a { color: inherit !important; text-decoration: underline; }
/* old AdminLTE colour chips -> soft pills (same family as status labels) */
#scrollable-container span.bg-light-green, #scrollable-container span.bg-green { background: #e6f4f1 !important; color: #115e59 !important; border-radius: 999px; padding: 2px 9px; }
#scrollable-container span.bg-light-blue, #scrollable-container span.bg-aqua, #scrollable-container span.bg-blue { background: #e0f2fe !important; color: #075985 !important; border-radius: 999px; padding: 2px 9px; }
#scrollable-container span.bg-navy { background: #e2e8f0 !important; color: #0c4a6e !important; border-radius: 999px; padding: 2px 9px; }
#scrollable-container span.bg-yellow, #scrollable-container span.bg-orange { background: #fef3c7 !important; color: #92400e !important; border-radius: 999px; padding: 2px 9px; }
#scrollable-container span.bg-red, #scrollable-container span.bg-maroon { background: #ffedd5 !important; color: #9a3412 !important; border-radius: 999px; padding: 2px 9px; }

/* Home total cards: icon circles in one palette (navy; amber for "due"/returns/expense) */
#scrollable-container .tw-rounded-full.tw-bg-sky-100, #scrollable-container .tw-rounded-full.tw-bg-green-100, #scrollable-container .tw-rounded-full.tw-bg-blue-100,
#scrollable-container .tw-rounded-full.tw-bg-indigo-100, #scrollable-container .tw-rounded-full.tw-bg-emerald-100, #scrollable-container .tw-rounded-full.tw-bg-cyan-100 {
    background: #e0eef7 !important; color: #0c4a6e !important; }
#scrollable-container .tw-rounded-full.tw-bg-yellow-100, #scrollable-container .tw-rounded-full.tw-bg-red-100, #scrollable-container .tw-rounded-full.tw-bg-orange-100,
#scrollable-container .tw-rounded-full.tw-bg-rose-100, #scrollable-container .tw-rounded-full.tw-bg-amber-100, #scrollable-container .tw-rounded-full.tw-bg-pink-100 {
    background: #fef3c7 !important; color: #b45309 !important; }

/* Settings tab menus (Business settings, etc.) */
#scrollable-container .pos-tab-menu { background: #fff; border: 1px solid #e3eaf3; border-radius: 14px !important; padding: 8px !important; box-shadow: 0 10px 26px -22px rgba(15,23,42,.5); }
#scrollable-container .pos-tab-menu .list-group { margin: 0; }
#scrollable-container .pos-tab-menu .list-group-item { border: 0 !important; border-radius: 10px !important; margin: 2px 0; padding: 9px 12px; text-align: left !important;
    color: #334155 !important; font-size: 13.5px !important; font-weight: 600 !important; background: transparent !important; background-image: none !important; }
#scrollable-container .pos-tab-menu .list-group-item:hover { background: #f1f5f9 !important; color: #0c4a6e !important; }
#scrollable-container .pos-tab-menu .list-group-item.active, #scrollable-container .pos-tab-menu .list-group-item.active:hover {
    background: #0c4a6e !important; color: #fff !important; box-shadow: inset 4px 0 0 #f5b301; }
#scrollable-container .pos-tab-menu .list-group-item.active:after, #scrollable-container .pos-tab-menu .list-group-item.active:before { display: none !important; }
#scrollable-container .pos-tab-container { border-radius: 14px; }

/* POS: violet buttons -> navy (date, recent transactions, category / brand tabs) */
[class*="tw-bg-[#646EE4]"], [class*="tw-from-indigo-600"] { background: #0c4a6e !important; background-image: none !important; color: #fff !important; }
[class*="tw-bg-[#646EE4]"]:hover, [class*="tw-from-indigo-600"]:hover { background: #075985 !important; }

/* ===================== POS till ===================== */
body.ac-pos { background: #eef3f8 !important; }
/* top tool buttons: one look */
body.ac-pos #pos_header_more_options button, body.ac-pos #pos_header_more_options a {
    background: #fff !important; border: 1px solid #dbe4ee !important; border-radius: 10px !important; box-shadow: none !important; color: #0c4a6e !important;
    min-width: 38px; height: 36px; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; padding: 0 10px !important; font-weight: 700; font-size: 12.5px; }
body.ac-pos #pos_header_more_options button:hover, body.ac-pos #pos_header_more_options a:hover { background: #0c4a6e !important; color: #fff !important; border-color: #0c4a6e !important; }
body.ac-pos #pos_header_more_options button *, body.ac-pos #pos_header_more_options a * { color: inherit !important; }
body.ac-pos #pos_header_more_options svg { stroke: currentColor !important; width: 18px; height: 18px; }
body.ac-pos #pos_header_more_options i { font-size: 15px; }
body.ac-pos #btnCalculator { display: none !important; }
/* product grid */
body.ac-pos #product_list_body { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; padding: 4px 2px 10px; }
body.ac-pos #product_list_body > [class*="col-"] { width: auto !important; float: none !important; padding: 0 !important; margin: 0 !important; }
body.ac-pos .product_box.ac-tile { position: relative; background: #fff; border: 1px solid #e3eaf3 !important; border-radius: 14px !important; padding: 8px 8px 30px !important;
    height: 100% !important; min-height: 150px; margin: 0 !important; box-shadow: 0 6px 18px -16px rgba(15,23,42,.6); transition: transform .12s, box-shadow .12s, border-color .12s; animation: none !important; cursor: pointer; }
body.ac-pos .product_box.ac-tile:hover { transform: translateY(-2px); border-color: #f5b301 !important; box-shadow: 0 14px 26px -18px rgba(12,74,110,.7); }
body.ac-pos .product_box .image-container { height: 72px !important; border-radius: 10px; background-color: #f8fafc; margin-bottom: 6px; }
body.ac-pos .product_box .image-container.ac-noimg { background-image: none !important; background: linear-gradient(135deg, #0b2f4e, #0e7490) !important; position: relative; }
body.ac-pos .product_box .image-container.ac-noimg:after { content: attr(data-ini); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fcd34d; font-weight: 800; font-size: 22px; letter-spacing: .04em; }
body.ac-pos .product_box .text_div { text-align: left !important; line-height: 1.25; }
body.ac-pos .product_box .text_div .text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: #0f172a !important; font-weight: 700; font-size: 12.5px; }
body.ac-pos .product_box .text_div small { color: #64748b !important; font-size: 11px !important; }
body.ac-pos .product_box .ac-price { position: absolute; left: 8px; right: 8px; bottom: 7px; background: #0c4a6e; color: #fff; border-radius: 8px;
    text-align: center; font-weight: 800; font-size: 12px; padding: 3px 4px; font-variant-numeric: tabular-nums; }
/* category / brand tabs */
body.ac-pos [class*="tw-from-indigo-600"] { border-radius: 12px !important; }
/* bottom action bar */
body.ac-pos .pos-form-actions { border-top: 3px solid #f5b301 !important; background: #fff !important; }
body.ac-pos .pos-form-actions .ac-pos-sec { background: #fff !important; border: 1px solid #cbd5e1 !important; color: #0c4a6e !important; border-radius: 10px !important; font-weight: 700 !important; box-shadow: none !important; }
body.ac-pos .pos-form-actions .ac-pos-sec:hover { background: #0c4a6e !important; color: #fff !important; }
body.ac-pos .pos-form-actions .ac-pos-sec * { color: inherit !important; }
body.ac-pos .pos-form-actions .ac-pos-card, body.ac-pos .pos-form-actions .ac-pos-multi, body.ac-pos .pos-form-actions .ac-pos-cash, body.ac-pos .pos-form-actions .ac-pos-cancel {
    border-radius: 12px !important; font-weight: 800 !important; min-height: 46px; padding: 0 18px !important; box-shadow: none !important; border: 0 !important; color: #fff !important; }
body.ac-pos .pos-form-actions .ac-pos-card { background: #0c4a6e !important; }
body.ac-pos .pos-form-actions .ac-pos-multi { background: #0b2f4e !important; }
body.ac-pos .pos-form-actions .ac-pos-cash { background: #0e7490 !important; min-width: 120px; font-size: 16px !important; }
body.ac-pos .pos-form-actions .ac-pos-cancel { background: #fff !important; color: #9a3412 !important; border: 1px solid #fed7aa !important; }
body.ac-pos .pos-form-actions .ac-pos-cancel * { color: inherit !important; }
body.ac-pos .pos-form-actions .ac-pos-card:hover, body.ac-pos .pos-form-actions .ac-pos-multi:hover { background: #075985 !important; }
body.ac-pos .pos-form-actions .ac-pos-cash:hover { background: #0f766e !important; }
body.ac-pos .pos-form-actions .ac-pos-cancel:hover { background: #9a3412 !important; color: #fff !important; }
body.ac-pos .pos-form-actions #total_payable { color: #0c4a6e !important; font-size: 30px !important; font-weight: 800; font-variant-numeric: tabular-nums; }
/* cart */
body.ac-pos #pos_table thead th { background: linear-gradient(180deg, #11557f, #0c4a6e) !important; color: #fff !important; border: 0 !important; font-size: 11.5px; letter-spacing: .04em; }
body.ac-pos #pos_table tbody td { vertical-align: middle !important; }
body.ac-pos .pos-form-actions #total_payable { font-size: 24px !important; white-space: nowrap; }
body.ac-pos .pos-form-actions .tw-pos-total { white-space: nowrap; }

/* ---- POS simple till v2 ---- */
body.ac-pos .ac-pos-hidden { display: none !important; }
body.ac-pos .ac-pos-search { width: 100% !important; }
@media (min-width: 992px) {
    body.ac-pos .ac-pos-main { flex-direction: row-reverse !important; gap: 14px; }
    body.ac-pos .ac-pos-main > .ac-pos-products { width: 58% !important; flex: 0 0 58%; padding: 0 0 0 14px !important; }
    body.ac-pos .ac-pos-main > .ac-pos-cart { width: auto !important; flex: 1 1 auto; padding: 0 14px 0 0 !important; }
}
body.ac-pos #product_list_body { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; }
body.ac-pos .product_box .image-container { height: 84px !important; }
/* one "More" menu in the top bar */
body.ac-pos .ac-pos-more { position: relative; margin-left: auto; }
body.ac-pos .ac-pos-more-btn { background: #0c4a6e !important; color: #fff !important; border: 0 !important; border-radius: 10px !important; height: 36px; padding: 0 14px; font-weight: 800; }
body.ac-pos .ac-pos-more-btn i { color: #fcd34d; margin-right: 4px; }
body.ac-pos .ac-pos-menu { display: none; position: absolute; right: 0; top: 42px; z-index: 1050; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    box-shadow: 0 20px 44px -16px rgba(15, 23, 42, .4); padding: 8px; min-width: 240px; flex-direction: column; gap: 2px; }
body.ac-pos .ac-pos-more.open .ac-pos-menu { display: flex; }
body.ac-pos .ac-pos-menu .ac-pos-item { display: flex !important; align-items: center; gap: 10px; width: 100% !important; height: auto !important; min-height: 38px;
    justify-content: flex-start !important; background: #fff !important; border: 0 !important; border-radius: 9px !important; color: #0f172a !important;
    padding: 6px 10px !important; font-size: 13.5px !important; font-weight: 600 !important; text-align: left; box-shadow: none !important; margin: 0 !important; }
body.ac-pos .ac-pos-menu .ac-pos-item:hover { background: #f1f5f9 !important; }
body.ac-pos .ac-pos-menu .ac-pos-item svg, body.ac-pos .ac-pos-menu .ac-pos-item i { color: #0c4a6e !important; stroke: #0c4a6e !important; width: 18px; }
body.ac-pos .ac-pos-menu .ac-pos-item .lbl { color: #0f172a; }
body.ac-pos .ac-pos-menu .ac-pos-item .tw-sr-only { position: static !important; width: auto !important; height: auto !important; clip: auto !important; margin: 0 !important; overflow: visible !important; white-space: nowrap; }
body.ac-pos .ac-pos-menu .ac-pos-item.hide, body.ac-pos .ac-pos-menu .ac-pos-item.hidden { display: none !important; }
/* footer: only the payment buttons, bigger */
body.ac-pos .pos-form-actions .ac-pos-card, body.ac-pos .pos-form-actions .ac-pos-multi, body.ac-pos .pos-form-actions .ac-pos-cash { min-height: 54px; min-width: 130px; font-size: 16px !important; }
body.ac-pos .pos-form-actions .ac-pos-cash { min-width: 160px; }
body.ac-pos .pos-form-actions .tw-pos-total > div { white-space: nowrap; flex-direction: row !important; gap: 8px; align-items: baseline !important; }
body.ac-pos .ac-pos-menu .ac-pos-item .lbl { display: inline !important; font-size: 13.5px; }
body.ac-pos .pos-header .ac-pos-hidden, body.ac-pos #pos_header_more_options .ac-pos-hidden, body.ac-pos .pos-form-actions .ac-pos-hidden,
body.ac-pos #pos_header_more_options button.ac-pos-hidden, body.ac-pos #pos_header_more_options a.ac-pos-hidden { display: none !important; }

/* ---- POS v3: categories first, clean ticket ---- */
body.ac-pos #ac-cat { padding: 4px 2px 10px; }
body.ac-pos .ac-cat-h { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 10px; flex-wrap: wrap; }
body.ac-pos .ac-cat-h span { font-size: 17px; font-weight: 800; color: #0c4a6e; }
body.ac-pos .ac-cat-h small { color: #64748b; font-size: 12px; }
body.ac-pos .ac-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
body.ac-pos .ac-cat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 120px; padding: 14px 10px;
    background: #fff; border: 1px solid #e3eaf3; border-radius: 16px; box-shadow: 0 8px 20px -16px rgba(15,23,42,.6); cursor: pointer; transition: transform .12s, border-color .12s, box-shadow .12s; }
body.ac-pos .ac-cat-tile:hover { transform: translateY(-2px); border-color: #f5b301; box-shadow: 0 16px 28px -18px rgba(12,74,110,.7); }
body.ac-pos .ac-cat-tile .i { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px;
    color: #fcd34d; background: linear-gradient(135deg, #0b2f4e, #0e7490); }
body.ac-pos .ac-cat-tile .n { font-weight: 700; color: #0f172a; font-size: 13.5px; text-align: center; line-height: 1.25; }
body.ac-pos .ac-cat-tile.all .i { background: linear-gradient(135deg, #b45309, #f5b301); color: #fff; }
body.ac-pos .ac-cat-tile.back { min-height: 120px; background: #f8fafc; border-style: dashed; }
body.ac-pos .ac-cat-tile.back .i { background: #e2e8f0; color: #0c4a6e; }
body.ac-pos .ac-cat-back { background: #0c4a6e; color: #fff; border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 800; margin: 2px 0 10px; }
body.ac-pos .ac-cat-back i { color: #fcd34d; margin-right: 4px; }
/* ticket lines */
body.ac-pos #pos_table tbody tr.ac-line > td { padding: 8px 6px !important; border-color: #eef2f7 !important; }
body.ac-pos #pos_table .ac-line-ini { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0b2f4e, #0e7490); color: #fcd34d; font-weight: 800; font-size: 14px; order: -1; margin-right: 4px; }
body.ac-pos #pos_table img.ac-line-img { width: 44px !important; height: 44px !important; border-radius: 10px !important; object-fit: cover; order: -1; margin: 0 4px 0 0 !important; }
body.ac-pos #pos_table tr.ac-line td:first-child > div { align-items: center; }
body.ac-pos #pos_table tr.ac-line .text-link { color: #0f172a !important; font-weight: 700; font-size: 13px; line-height: 1.3; }
body.ac-pos #pos_table tr.ac-line .text-link i { color: #94a3b8; }
body.ac-pos #pos_table .input-number { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; }
body.ac-pos #pos_table .input-number .input-group-btn { width: auto !important; display: inline-flex; }
body.ac-pos #pos_table .quantity-down, body.ac-pos #pos_table .quantity-up { width: 34px !important; height: 34px !important; border-radius: 50% !important; padding: 0 !important;
    border: 1px solid #cbd5e1 !important; background: #fff !important; display: inline-flex !important; align-items: center; justify-content: center; }
body.ac-pos #pos_table .quantity-down i, body.ac-pos #pos_table .quantity-up i { color: #0c4a6e !important; font-size: 13px; }
body.ac-pos #pos_table .quantity-down:hover, body.ac-pos #pos_table .quantity-up:hover { background: #0c4a6e !important; border-color: #0c4a6e !important; }
body.ac-pos #pos_table .quantity-down:hover i, body.ac-pos #pos_table .quantity-up:hover i { color: #fff !important; }
body.ac-pos #pos_table .pos_quantity { width: 50px !important; height: 34px !important; text-align: center; font-weight: 800; font-size: 15px; border-radius: 9px !important; flex: 0 0 auto; }
body.ac-pos #pos_table .pos_remove_row, body.ac-pos #pos_table .pos_remove_row i { color: #9a3412 !important; }
body.ac-pos .pos_form_totals table { margin-bottom: 0; }
body.ac-pos .pos_form_totals tr:first-child td { border: 0 !important; padding: 10px 6px; }
body.ac-pos .pos_form_totals .price_total { color: #0c4a6e; font-weight: 800 !important; }

/* POS supervisor approval */
.ac-sup-ov { position: fixed; inset: 0; z-index: 30000; background: rgba(2, 12, 27, .65); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ac-sup-box { width: min(360px, 100%); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.ac-sup-h { background: linear-gradient(120deg, #0b2f4e, #0c4a6e 55%, #0e7490); color: #fff; font-weight: 800; padding: 14px 18px; border-bottom: 3px solid #f5b301; }
.ac-sup-h i { color: #fcd34d; margin-right: 6px; }
.ac-sup-what { padding: 12px 18px 4px; } .ac-sup-what b { display: block; color: #9a3412; font-size: 15px; } .ac-sup-what span { color: #334155; font-size: 13px; }
.ac-sup-pin { display: block; width: calc(100% - 36px); margin: 10px 18px 4px; height: 48px; border: 1px solid #cbd5e1; border-radius: 12px; text-align: center; font-size: 24px; letter-spacing: .4em; font-weight: 800; }
.ac-sup-msg { min-height: 18px; color: #9a3412; font-size: 12.5px; text-align: center; font-weight: 700; }
.ac-sup-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px 18px 4px; }
.ac-sup-pad button { height: 50px; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; font-size: 20px; font-weight: 800; color: #0c4a6e; }
.ac-sup-pad button:active { background: #0c4a6e; color: #fff; }
.ac-sup-f { display: flex; gap: 8px; padding: 12px 18px 16px; } .ac-sup-f button { flex: 1; height: 46px; border: 0; border-radius: 12px; font-weight: 800; }
.ac-sup-f .c { background: #f1f5f9; color: #334155; } .ac-sup-f .ok { background: #0c4a6e; color: #fff; } .ac-sup-f .ok i { color: #fcd34d; }
body.ac-pos .row_edit_product_price_model .form-group:has(.row_discount_type), body.ac-pos .row_edit_product_price_model .form-group:has(.row_discount_amount) { display: none !important; }
.ac-sup-fp { display: flex; align-items: center; justify-content: center; gap: 10px; width: calc(100% - 36px); margin: 12px 18px 4px; height: 56px; border: 0; border-radius: 14px;
    background: linear-gradient(135deg, #0b2f4e, #0e7490); color: #fff; font-weight: 800; font-size: 16px; }
.ac-sup-fp i { color: #fcd34d; font-size: 24px; }
.ac-sup-or { text-align: center; color: #94a3b8; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

/* ==== POS v2 (owner 2026-10-02): 3/4 item grid + 1/4 ticket, payment under the ticket ==== */
body.ac-pos2 .pos-form-actions { display: none !important; }
body.ac-pos2 section.content { padding-bottom: 0 !important; }
body.ac-pos2 .ac2-back { display: inline-flex; align-items: center; gap: 6px; background: #0c4a6e; color: #fff !important; border-radius: 10px; padding: 7px 14px; font-weight: 800; margin-right: 12px; white-space: nowrap; text-decoration: none !important; }
body.ac-pos2 .ac2-back i { color: #fcd34d; }
body.ac-pos2 .ac2-back:hover { background: #075985; }
@media (min-width: 992px) {
    body.ac-pos2 .ac-pos-main { flex-direction: row-reverse !important; gap: 14px; align-items: stretch; height: calc(100vh - 128px); }
    body.ac-pos2 .ac-pos-main > .ac-pos-products { flex: 0 0 74% !important; width: 74% !important; padding: 0 0 0 14px !important; display: flex; flex-direction: column; min-height: 0; }
    body.ac-pos2 .ac-pos-main > .ac-pos-cart { flex: 1 1 auto !important; width: auto !important; min-width: 330px; padding: 0 14px 0 0 !important; display: flex; flex-direction: column; min-height: 0; }
    body.ac-pos2 #product_list_body { height: calc(100vh - 262px) !important; overflow-y: auto !important; align-content: start; }
    body.ac-pos2 .ac-pos-cart .pos_product_div { max-height: calc(100vh - 420px) !important; min-height: 160px; overflow-y: auto !important; }
}
/* scan box + chips */
body.ac-pos2 .ac2-top { background: #fff; border: 1px solid #e3eaf3; border-radius: 16px; padding: 10px 12px 8px; margin: 0 0 10px; box-shadow: 0 8px 22px -20px rgba(12,74,110,.6); }
body.ac-pos2 .ac2-top .ac-pos-search { width: 100% !important; float: none !important; padding: 0 !important; }
body.ac-pos2 .ac2-top .ac-pos-search .form-group { margin-bottom: 8px; }
body.ac-pos2 .ac2-top #search_product { height: 46px !important; font-size: 16px !important; border-radius: 0 12px 12px 0 !important; border: 2px solid #0c4a6e !important; }
body.ac-pos2 .ac2-top .input-group-addon { border-radius: 12px 0 0 12px !important; background: #0c4a6e !important; color: #fcd34d !important; border-color: #0c4a6e !important; }
body.ac-pos2 .ac2-top .input-group-addon *, body.ac-pos2 .ac2-top .input-group-btn .btn i { color: inherit !important; }
body.ac-pos2 .ac2-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: thin; }
body.ac-pos2 .ac2-chip { flex: 0 0 auto; border: 1px solid #cbd5e1; background: #fff; color: #0c4a6e; border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 13.5px; white-space: nowrap; transition: all .15s; }
body.ac-pos2 .ac2-chip:hover { border-color: #0c4a6e; }
body.ac-pos2 .ac2-chip.on { background: #0c4a6e; color: #fff; border-color: #0c4a6e; box-shadow: inset 0 -3px 0 #f5b301; }
body.ac-pos2 .ac2-subs .ac2-chip { font-size: 12.5px; padding: 5px 13px; }
body.ac-pos2 .ac2-subs .ac2-chip.on { background: #f5b301; color: #0b2f4e; border-color: #f5b301; box-shadow: none; }
/* item grid: ~25 visible */
body.ac-pos2 #product_list_body { grid-template-columns: repeat(auto-fill, minmax(114px, 1fr)) !important; gap: 9px !important; padding: 2px 4px 14px 2px !important; }
body.ac-pos2 .product_box.ac-tile { padding: 6px 6px 30px !important; border-radius: 14px !important; min-height: 0 !important; height: auto !important; cursor: pointer; }
body.ac-pos2 .product_box .image-container { height: 78px !important; border-radius: 10px !important; background-size: cover !important; background-position: center !important; }
body.ac-pos2 .product_box .image-container.ac-noimg:after { font-size: 26px; color: #fff; letter-spacing: 1px; }
body.ac-pos2 .product_box .text_div { text-align: center !important; padding: 0 2px; }
body.ac-pos2 .product_box .text_div .text { font-size: 12.5px !important; font-weight: 700 !important; color: #0f172a !important; min-height: 31px; }
body.ac-pos2 .product_box .text_div small:not(.text), body.ac-pos2 .product_box .text_div br { display: none !important; }
body.ac-pos2 .product_box .text_div small.text { display: -webkit-box !important; color: #0f172a !important; font-size: 12.5px !important; font-weight: 700 !important; line-height: 1.25; min-height: 31px; margin-top: 2px; }
body.ac-pos2 .product_box .ac-price { left: 6px; right: 6px; bottom: 6px; text-align: center; font-weight: 800; }
body.ac-pos2 .product_box:active { transform: scale(.97); }
/* ticket */
body.ac-pos2 .ac-pos-cart > .tw-rounded-2xl, body.ac-pos2 .ac-pos-cart .box { margin-bottom: 0 !important; border-radius: 16px 16px 0 0 !important; }
body.ac-pos2 #pos_table thead th:nth-child(3), body.ac-pos2 #pos_table tbody td:nth-child(3) { display: none !important; }
body.ac-pos2 #pos_table thead th { font-size: 11px !important; padding: 8px 6px !important; }
body.ac-pos2 #pos_table tr.ac-line .text-link { font-size: 12.5px; }
body.ac-pos2 #pos_table .quantity-down, body.ac-pos2 #pos_table .quantity-up { width: 30px !important; height: 30px !important; }
body.ac-pos2 #pos_table .pos_quantity { width: 42px !important; height: 30px !important; }
body.ac-pos2 #pos_table .ac-line-ini, body.ac-pos2 #pos_table img.ac-line-img { width: 36px !important; height: 36px !important; flex-basis: 36px; }
body.ac-pos2 .ac2-pay { background: #0b2f4e; border-radius: 0 0 16px 16px; padding: 12px; box-shadow: 0 14px 28px -20px rgba(12,74,110,.9); }
body.ac-pos2 .ac2-total { display: flex; align-items: baseline; justify-content: space-between; color: #cbd5e1; font-weight: 700; margin-bottom: 10px; }
body.ac-pos2 .ac2-total span { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
body.ac-pos2 .ac2-total b { color: #fcd34d; font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
body.ac-pos2 .ac2-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
body.ac-pos2 .ac2-b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 70px; border: 0; border-radius: 12px; font-weight: 800; font-size: 15px; color: #fff; transition: transform .1s, filter .15s; }
body.ac-pos2 .ac2-b i { font-size: 20px; }
body.ac-pos2 .ac2-b:active { transform: scale(.96); }
body.ac-pos2 .ac2-card { background: #0e7490; }
body.ac-pos2 .ac2-cash { background: #f5b301; color: #0b2f4e; }
body.ac-pos2 .ac2-multi { background: #1e3a5f; border: 1px solid #335b85; }
body.ac-pos2 .ac2-b:hover { filter: brightness(1.08); }
body.ac-pos2 .ac2-cancel { width: 100%; margin-top: 8px; background: transparent; border: 1px solid #335b85; color: #cbd5e1; border-radius: 10px; padding: 7px; font-weight: 700; }
body.ac-pos2 .ac2-cancel:hover { border-color: #f59e0b; color: #fcd34d; }
body.ac-pos2 .ac2-pay.empty .ac2-b { opacity: .45; pointer-events: none; }
@media (max-width: 991px) { body.ac-pos2 .ac2-pay { position: sticky; bottom: 0; z-index: 20; border-radius: 16px; } }

/* ac2-fixh: tile wrappers had a fixed height */
body.ac-pos2 #product_list_body > .product_list, body.ac-pos2 #product_list_body > [class*="col-"] { height: auto !important; min-height: 0 !important; }
body.ac-pos2 #product_list_body { grid-auto-rows: max-content !important; grid-template-rows: none !important; }
body.ac-pos2 .ac2-nobrand { display: none !important; }

/* ==== Uniform Action column + safe delete (2026-10-02) ==== */
.row-quick.ac-rq { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex-wrap: nowrap; }
.row-quick.ac-rq > a, .row-quick.ac-rq > button, .row-quick.ac-rq > form > button, .row-quick.ac-rq > .btn-group > button {
    width: 30px !important; height: 30px !important; display: inline-flex !important; align-items: center; justify-content: center; padding: 0 !important;
    border-radius: 9px !important; border: 1px solid #d5e3ef !important; background: #fff !important; color: #0c4a6e !important; font-size: 14px; line-height: 1; box-shadow: none !important; margin: 0 !important; }
.row-quick.ac-rq > form { display: inline-flex; margin: 0; }
.row-quick.ac-rq > a:hover, .row-quick.ac-rq > button:hover, .row-quick.ac-rq > form > button:hover, .row-quick.ac-rq > .btn-group > button:hover { background: #0c4a6e !important; color: #fcd34d !important; border-color: #0c4a6e !important; }
.row-quick.ac-rq > a i, .row-quick.ac-rq > button i { color: inherit !important; margin: 0 !important; }
.row-quick.ac-rq > .rq-del { color: #b45309 !important; border-color: #fde3b0 !important; }
.row-quick.ac-rq > .rq-del:hover { background: #b45309 !important; color: #fff !important; border-color: #b45309 !important; }
.row-quick.ac-rq > .btn-group > button .caret { display: none; }
.row-quick.ac-rq > .btn-group { display: inline-flex; }
.ac-del-ov { position: fixed; inset: 0; z-index: 100050; background: rgba(11,47,78,.45); display: flex; align-items: center; justify-content: center; padding: 16px; animation: acDelIn .15s ease-out; }
.ac-del-box { background: #fff; border-radius: 18px; width: 100%; max-width: 380px; padding: 22px 22px 18px; text-align: center; box-shadow: 0 30px 60px -20px rgba(11,47,78,.6); border-top: 5px solid #f5b301; }
.ac-del-ic { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 10px; background: #fef3c7; color: #b45309; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.ac-del-box h4 { margin: 0 0 6px; font-weight: 800; color: #0b2f4e; font-size: 19px; }
.ac-del-what { font-weight: 700; color: #0f172a; margin: 0 0 4px; word-break: break-word; }
.ac-del-note { color: #64748b; font-size: 13px; margin: 0 0 16px; }
.ac-del-f { display: flex; gap: 10px; }
.ac-del-f button { flex: 1; height: 42px; border-radius: 11px; font-weight: 800; font-size: 14.5px; border: 0; }
.ac-del-f .k { background: #0c4a6e; color: #fff; }
.ac-del-f .k:hover { background: #075985; }
.ac-del-f .y { background: #fff; color: #b45309; border: 1.5px solid #f5b301; }
.ac-del-f .y:hover { background: #b45309; color: #fff; border-color: #b45309; }
@keyframes acDelIn { from { opacity: 0; } to { opacity: 1; } }

/* ac-no-discount (owner 2026-10-02): discounts are managed on the Discount page only – not on the sales screens */
.fi-discount { display: none !important; }
.row_edit_product_price_model .form-group:has(.row_discount_type), .row_edit_product_price_model .form-group:has(.row_discount_amount) { display: none !important; }

/* acTips – one (i) info icon style everywhere (owner 2026-10-02) */
.ac-tip { display: inline-block; color: #0c4a6e; cursor: help; margin-left: 4px; font-size: 13px; line-height: 1; outline: 0; vertical-align: baseline; }
.ac-tip > i { opacity: .7; transition: .12s; }
.ac-tip:hover > i, .ac-tip:focus > i { opacity: 1; color: #b45309; }
.ac-tip-title { display: block; font-weight: 700; color: #334155; margin: 0 15px 6px; }
#ac-tip-pop { position: fixed; z-index: 100000; max-width: 280px; background: #0b2f4e; color: #fff; font-size: 12.5px; line-height: 1.45; font-weight: 500; text-transform: none; letter-spacing: 0;
    padding: 9px 12px; border-radius: 10px; border-bottom: 3px solid #f5b301; box-shadow: 0 14px 30px -10px rgba(2,6,23,.5); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
#ac-tip-pop.on { opacity: 1; transform: none; }
#ac-tip-pop::after { content: ''; position: absolute; left: var(--ac-arrow, 50%); top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #f5b301; }
#ac-tip-pop.below { border-bottom: 0; border-top: 3px solid #f5b301; }
#ac-tip-pop.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #f5b301; }
.is-tabs .ac-tip { margin-left: 0; }

/* acBizSettings – Business settings tabs (owner 2026-10-02) */
#bussiness_edit_form .pos-tab-menu .list-group-item { display: flex; align-items: center; gap: 9px; font-weight: 700; color: #334155; border-radius: 10px !important; margin: 2px 0; }
#bussiness_edit_form .pos-tab-menu .list-group-item i { width: 18px; text-align: center; color: #b45309; }
#bussiness_edit_form .pos-tab-menu .list-group-item.active { background: #0c4a6e !important; color: #fff !important; box-shadow: inset 0 -3px 0 #f5b301; }
#bussiness_edit_form .pos-tab-menu .list-group-item.active i { color: #fcd34d; }
#bussiness_edit_form .pos-tab-menu .list-group-item.bs-hit { outline: 2px solid #f5b301; }
.bs-find { position: relative; margin: 4px 0 8px; }
.bs-find i { position: absolute; left: 10px; top: 10px; color: #94a3b8; font-size: 12px; }
.bs-find input { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 6px 8px 6px 28px; font-size: 12.5px; }
.bs-find input:focus { outline: 0; border-color: #0c4a6e; box-shadow: 0 0 0 3px rgba(12,74,110,.12); }
.bs-head { border-bottom: 1px solid #eef2f7; margin: 0 15px 14px; padding: 2px 0 10px; }
.bs-head h3 { margin: 0; font-size: 18px; font-weight: 800; color: #0b2f4e; } .bs-head h3 i { color: #b45309; margin-right: 6px; }
.bs-head p { margin: 4px 0 0; color: #64748b; font-size: 13px; }
#bussiness_edit_form .pos-tab-content.bs-searching { display: block; }
#bussiness_edit_form .pos-tab-content.bs-searching + .pos-tab-content.bs-searching { border-top: 1px dashed #e3eaf3; padding-top: 10px; }

/* acSettings2 – sections for locations, roles finder (owner 2026-10-02) */
.ac-sec h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: #b45309; font-weight: 800; margin: 10px 0 8px; padding-bottom: 6px; border-bottom: 1px solid #eef2f7; }
.ac-sec h4 i { margin-right: 6px; }
.ac-rl-bar { position: sticky; top: 60px; z-index: 20; background: #fff; border: 1px solid #e3eaf3; border-radius: 14px; padding: 10px 12px; margin: 6px 0 14px; box-shadow: 0 10px 22px -20px rgba(12,74,110,.8); }
.ac-rl-find { position: relative; margin-bottom: 8px; }
.ac-rl-find i { position: absolute; left: 11px; top: 10px; color: #94a3b8; font-size: 13px; }
.ac-rl-find input { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 7px 10px 7px 31px; font-size: 13px; }
.ac-rl-find input:focus { outline: 0; border-color: #0c4a6e; box-shadow: 0 0 0 3px rgba(12,74,110,.12); }
.ac-rl-jump { display: flex; flex-wrap: wrap; gap: 5px; max-height: 92px; overflow: auto; }
.ac-rl-jump a { font-size: 11.5px; font-weight: 700; color: #334155; border: 1px solid #cbd5e1; border-radius: 999px; padding: 3px 9px; text-decoration: none !important; white-space: nowrap; }
.ac-rl-jump a:hover { border-color: #0c4a6e; color: #0c4a6e; }
.ac-rl-jump a.on { background: #0c4a6e; border-color: #0c4a6e; color: #fff; }
.ac-rl-jump a b { color: #fcd34d; }
.ac-rl-cnt { display: block; font-size: 11px; font-weight: 700; color: #64748b; margin-top: 3px; }

/* acSettings4 – "how to" line on daily screens (owner 2026-10-02) */
.ac-howto { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid #e3eaf3; border-left: 4px solid #f5b301; border-radius: 12px; padding: 9px 14px; margin: 0 0 12px; color: #334155; font-size: 13px; box-shadow: 0 10px 22px -22px rgba(12,74,110,.8); }
.ac-howto > i { color: #b45309; font-size: 16px; margin-top: 2px; }
.ac-howto b { color: #0b2f4e; }

/* acDictate – voice email typing (owner 2026-10-02) */
.acd-mic { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 5px; background: #fff; border: 1px solid #0c4a6e; color: #0c4a6e; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; cursor: pointer; }
.acd-mic:hover { background: #0c4a6e; color: #fff; }
#acd-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 100001; background: #0b2f4e; color: #fff; border-radius: 14px; border-bottom: 3px solid #f5b301;
    box-shadow: 0 16px 40px -10px rgba(2,6,23,.55); padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 94vw; font-size: 13px; }
#acd-bar .acd-dot { width: 12px; height: 12px; border-radius: 50%; background: #f5b301; box-shadow: 0 0 0 0 rgba(245,179,1,.7); animation: acdp 1.2s infinite; }
#acd-bar.off .acd-dot { animation: none; background: #94a3b8; }
#acd-bar .acd-t { font-weight: 700; margin-right: 6px; }
#acd-bar button { background: #f5b301; color: #0b2f4e; border: 0; border-radius: 8px; padding: 5px 11px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
#acd-bar button[data-a=undo], #acd-bar button[data-a=toggle] { background: transparent; color: #fff; border: 1px solid #94a3b8; }
#acd-bar .acd-h { flex-basis: 100%; font-size: 11.5px; color: #cbd5e1; }
@keyframes acdp { 0% { box-shadow: 0 0 0 0 rgba(245,179,1,.7); } 70% { box-shadow: 0 0 0 10px rgba(245,179,1,0); } 100% { box-shadow: 0 0 0 0 rgba(245,179,1,0); } }
.acd-compose textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 7px; font: 13px Arial; margin-top: 6px; }
.acd-cbtn { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.acd-cbtn button { background: #0c4a6e; color: #fff; border: 0; border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }

/* Overlap fixes (owner 2026-10-02 "icons overlapping"): a dropdown with a "+" button next to it (e.g. Supplier + add supplier) –
   the dropdown took the full width and pushed the button onto the next field. Dropdown now shrinks, button stays beside it. */
.input-group:has(> .select2-container) > .select2-container { flex: 1 1 auto; width: auto !important; min-width: 0; }
.input-group:has(> .select2-container) > .input-group-btn { flex: 0 0 auto; width: auto; }
.input-group:has(> .select2-container) > select.select2-hidden-accessible { position: absolute !important; }
/* top-bar branch picker (Add sale / POS): show the full branch name, e.g. "Manama (BH01)" */
#select_location_id { min-width: 165px; }

/* Phone / tablet top bar (owner 2026-10-02: "mobile, tab, laptop, desktop – no overlap"): the bar held ~830 px of buttons on a 375 px phone
   → every page scrolled sideways. On small screens the bar wraps to two lines: title + menu on top, action buttons below. */
@media (max-width: 991px) {
    div:has(> #header-controls-start) { flex-wrap: wrap; row-gap: 6px; }
    #header-controls-start { min-width: 0; max-width: 100%; }
    #header-controls-start h1, #header-controls-start .tw-truncate, #header-controls-start span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    div:has(> #header-controls-start) > div:last-child { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; min-width: 0; }
    #nav-search-slot { flex: 1 1 160px; min-width: 0; }
    #nav-search-slot input { width: 100% !important; min-width: 0; }
}
@media (max-width: 767px) {
    div:has(> #header-controls-start) > .ac-tip { display: none; }              /* subscription info icon – not needed on a phone */
    div:has(> #header-controls-start) > div[style*="space-evenly"] { gap: 6px !important; }
    #select_location_id { min-width: 0; max-width: 150px; }                     /* branch picker fits next to the menu button */
    div:has(> #header-controls-start) > div:last-child { gap: 6px !important; }
    #nav-search-slot { flex: 1 1 60px; }
}

/* dropdown + icon + '+' button in a narrow column (tablet): use flex so the dropdown shrinks instead of pushing the '+' onto the next field */
.input-group:has(> .select2-container) { display: flex; width: 100%; max-width: 100%; }
.input-group:has(> .select2-container) > .input-group-addon { flex: 0 0 auto; width: auto; display: flex; align-items: center; }

/* Add sale / edit sale summary bar (Staff notes · Qty · Disc · VAT · Total · Save): on tablets / small laptops it was wider than the screen and the Save button was cut off → wrap to two lines */
@media (max-width: 1199px) {
    html body #footer_sell { flex-wrap: wrap !important; row-gap: 8px; overflow: visible !important; }
    html body #footer_sell > .fi-staffnote { flex: 1 1 100% !important; min-width: 0 !important; max-width: none !important; }
    html body #footer_sell > .fi-discount { min-width: 70px !important; }
    html body #footer_sell > .fi-buttons { margin-left: auto !important; }
}

/* the wider branch picker only where there is room (laptop / desktop); on tablets it pushed into the POS clock box */
@media (max-width: 1199px) { #select_location_id { min-width: 0; } }

/* acAiEmail – AI email writer buttons (owner 2026-10-02) */
.aie-wrap { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: 4px; }
.aie-btn { background: #0c4a6e !important; color: #fcd34d !important; border-color: #0c4a6e !important; }
.aie-btn:hover { background: #0b2f4e !important; }
.aie-tone, .aie-lang { border: 1px solid #cbd5e1; border-radius: 999px; padding: 3px 8px; font-size: 12px; background: #fff; color: #334155; height: 27px; }
.aie-note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 8px; padding: 5px 10px; font-size: 12px; margin: 4px 0; }
.aie-note a { font-weight: 700; color: #0c4a6e; margin-left: 6px; }
#acd-bar .aie-bar { background: #fcd34d; }
@media (max-width: 767px) { .aie-wrap { margin-left: 0; } }

/* ==== POS pay pad (owner 2026-10-03): items | keypad + payment | wide ticket ==== */
@media (min-width: 1200px) {
    body.ac-pos2 .ac-pos-main > .ac-pos-products { flex: 0 0 50% !important; width: 50% !important; }   /* owner: half the screen for the items */
    body.ac-pos2 .ac-pos-main > .ac3-pad { flex: 0 0 262px; width: 262px; height: calc(100vh - 128px); overflow-y: auto; }
    body.ac-pos2 .ac-pos-main > .ac-pos-cart { flex: 1 1 auto !important; min-width: 0; }
    body.ac-pos2 .ac-pos-cart .pos_product_div { max-height: calc(100vh - 330px) !important; }
}
body.ac-pos2 .ac3-pad { background: #0b2f4e; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 14px 28px -20px rgba(12,74,110,.9); }
body.ac-pos2 .ac3-pad.in-cart { border-radius: 0; margin: 0; }
body.ac-pos2 .ac3-check { height: 42px; border: 0; border-radius: 11px; background: linear-gradient(135deg, #0c4a6e, #0e7490); color: #fff; font-weight: 800; font-size: 15px; box-shadow: inset 0 -3px 0 #f5b301; }
body.ac-pos2 .ac3-check i { color: #fcd34d; margin-right: 6px; }
/* the display, like a card machine screen */
body.ac-pos2 .ac3-screen { background: linear-gradient(180deg, #06223a, #0a3354); border: 2px solid #164e7a; border-radius: 12px; padding: 8px 12px; color: #cbd5e1; min-height: 116px; box-shadow: inset 0 2px 10px rgba(0,0,0,.45); }
body.ac-pos2 .ac3-ml { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #7dd3fc; }
body.ac-pos2 .ac3-val { font-size: 32px; font-weight: 800; color: #fcd34d; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: "Consolas", "Courier New", monospace; letter-spacing: .02em; }
body.ac-pos2 .ac3-sub { font-size: 12px; color: #94a3b8; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ac-pos2 .ac3-chg { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; font-size: 12px; color: #94a3b8; min-height: 22px; }
body.ac-pos2 .ac3-chg b { font-size: 20px; font-variant-numeric: tabular-nums; }
body.ac-pos2 .ac3-chg.ok { color: #fcd34d; } body.ac-pos2 .ac3-chg.ok b { color: #fff; background: #b45309; border-radius: 8px; padding: 0 8px; }
body.ac-pos2 .ac3-chg.due { color: #fbbf24; } body.ac-pos2 .ac3-chg.due b { color: #fbbf24; }
/* modes */
body.ac-pos2 .ac3-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
body.ac-pos2 .ac3-modes button { height: 32px; border: 1px solid #335b85; border-radius: 9px; background: transparent; color: #cbd5e1; font-weight: 700; font-size: 12px; white-space: nowrap; padding: 0 2px; }
body.ac-pos2 .ac3-modes button.on { background: #fcd34d; color: #0b2f4e; border-color: #fcd34d; }
body.ac-pos2 .ac3-notes { display: none; grid-template-columns: repeat(5, 1fr); gap: 4px; }
body.ac-pos2 .ac3-pad[data-mode="cash"] .ac3-notes { display: grid; }
body.ac-pos2 .ac3-notes button { height: 30px; border: 0; border-radius: 8px; background: #155e75; color: #fff; font-weight: 800; font-size: 12.5px; padding: 0; }
body.ac-pos2 .ac3-notes button[data-n="exact"] { background: #f5b301; color: #0b2f4e; font-size: 11.5px; }
/* number keys */
body.ac-pos2 .ac3-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 1 1 auto; }
body.ac-pos2 .ac3-keys button { min-height: 48px; border: 0; border-radius: 11px; background: #fff; color: #0b2f4e; font-size: 24px; font-weight: 800; box-shadow: inset 0 -3px 0 #cbd5e1; transition: transform .08s; font-variant-numeric: tabular-nums; }
body.ac-pos2 .ac3-keys button.fn { background: #e2e8f0; font-size: 18px; color: #b45309; }
body.ac-pos2 .ac3-keys button:active, body.ac-pos2 .ac3-act button:active { transform: scale(.94); }
body.ac-pos2 .ac3-act { display: grid; grid-template-columns: 1fr 2fr; gap: 6px; }
body.ac-pos2 .ac3-act button { height: 46px; border: 0; border-radius: 11px; font-weight: 800; font-size: 15px; }
body.ac-pos2 .ac3-clr { background: #fef3c7; color: #b45309; font-size: 20px !important; }
body.ac-pos2 .ac3-ok { background: #f5b301; color: #0b2f4e; }
body.ac-pos2 .ac3-pad[data-mode="card"] .ac3-ok { background: #0e7490; color: #fff; }
/* payment buttons now under the keys */
body.ac-pos2 .ac3-pays .ac2-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
body.ac-pos2 .ac3-pays .ac2-b { height: 60px; font-size: 13.5px; }
body.ac-pos2 .ac3-pays .ac2-b i { font-size: 18px; }
body.ac-pos2 .ac3-pad[data-mode="card"] .ac2-card, body.ac-pos2 .ac3-pad[data-mode="cash"] .ac2-cash { outline: 3px solid #fcd34d; outline-offset: 1px; }
body.ac-pos2 .ac3-pays .ac2-cancel { margin-top: 6px; padding: 5px; }
body.ac-pos2 .ac3-pad.empty .ac2-b, body.ac-pos2 .ac3-pad.empty .ac3-check { opacity: .45; pointer-events: none; }
/* ticket footer: quantity + total */
body.ac-pos2 .ac3-foot { display: flex; align-items: center; gap: 14px; }
body.ac-pos2 .ac3-foot .ac3-qtyc { display: flex; align-items: baseline; gap: 10px; color: #cbd5e1; font-weight: 700; border-right: 1px solid #335b85; padding-right: 14px; }
body.ac-pos2 .ac3-foot .ac3-qtyc span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
body.ac-pos2 .ac3-foot .ac3-qtyc b { color: #fff; font-size: 24px; font-variant-numeric: tabular-nums; }
body.ac-pos2 .ac3-foot .ac2-total { flex: 1; margin: 0; }
/* chosen ticket line (Qty keys change it) */
body.ac-pos2 #pos_table tbody tr.ac3-sel > td { background: #fffbeb !important; }
body.ac-pos2 #pos_table tbody tr.ac3-sel > td:first-child { box-shadow: inset 4px 0 0 #f5b301; }
body.ac-pos2 #pos_table tbody tr.product_row { cursor: pointer; }
/* the card window is filled by the pad – never shown */
body.ac3-silent #card_details_modal { visibility: hidden !important; }
body.ac3-silent .modal-backdrop { opacity: 0 !important; }
@media (max-width: 1199px) { body.ac-pos2 .ac3-keys button { min-height: 44px; } }

/* pad-fit (2026-10-03): ticket fills the height, compact columns beside the pad */
@media (min-width: 1200px) {
    body.ac-pos2 .ac-pos-main > .ac3-pad { flex-basis: 240px; width: 240px; }
    body.ac-pos2 .ac-pos-cart > .tw-rounded-2xl, body.ac-pos2 .ac-pos-cart > .box { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
    body.ac-pos2 .ac-pos-cart .pos_product_div { flex: 1 1 auto; height: auto !important; max-height: none !important; min-height: 0 !important; }
    body.ac-pos2 #pos_table { font-size: 12.5px; }
    body.ac-pos2 #pos_table td, body.ac-pos2 #pos_table th { padding-left: 4px !important; padding-right: 4px !important; }
    body.ac-pos2 #pos_table .quantity-down, body.ac-pos2 #pos_table .quantity-up { width: 26px !important; height: 28px !important; }
    body.ac-pos2 #pos_table .pos_quantity { width: 34px !important; height: 28px !important; padding: 0 2px !important; }
    body.ac-pos2 #pos_table td:nth-child(2) select { max-width: 100px; }
}

/* pad-fit2 */
body.ac-pos2 .ac3-val small { font-size: 14px; color: #7dd3fc; letter-spacing: 0; vertical-align: middle; }
@media (min-width: 1200px) {
    body.ac-pos2 .ac-pos-cart .pos_product_div { height: calc(100vh - 345px) !important; }
    body.ac-pos2 #pos_table { width: 100% !important; }
    body.ac-pos2 #pos_table td:first-child > div { flex-wrap: wrap; }
    body.ac-pos2 #pos_table td:first-child small.text-muted { flex: 0 0 100%; padding: 0 0 0 42px !important; font-size: 10.5px; }
}

/* pad-fit3 */
body.ac-pos2 .ac3-pad[data-mode="card"] .ac3-val { font-size: 27px; }
body.ac-pos2 .ac3-val small { font-size: 11px; letter-spacing: -.04em; }

/* pad-cash (2026-10-03): Total / Paid / Balance on the pad screen, Paid / Return under the ticket total */
body.ac-pos2 .ac3-chg:has(.ac3-rows) { display: block; }
body.ac-pos2 .ac3-rows { border-top: 1px dashed #335b85; margin-top: 6px; padding-top: 4px; }
body.ac-pos2 .ac3-rows > div { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: #cbd5e1; line-height: 1.5; }
body.ac-pos2 .ac3-rows > div b { color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }
body.ac-pos2 .ac3-rows > div.bal { margin-top: 3px; background: #f5b301; color: #0b2f4e; border-radius: 8px; padding: 2px 8px; font-weight: 800; }
body.ac-pos2 .ac3-rows > div.bal b { color: #0b2f4e; font-size: 20px; }
body.ac-pos2 .ac3-rows > div.bal.due { background: #fef3c7; color: #92400e; }
body.ac-pos2 .ac3-rows > div.bal.due b { color: #92400e; }
body.ac-pos2 .ac3-sub b { color: #fcd34d; }
body.ac-pos2 .ac3-foot { flex-wrap: wrap; }
body.ac-pos2 .ac3-cashinfo { display: none; flex: 0 0 100%; justify-content: space-between; gap: 10px; border-top: 1px solid #335b85; padding-top: 8px; margin-top: 2px; color: #cbd5e1; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
body.ac-pos2 .ac3-cashinfo.on { display: flex; }
body.ac-pos2 .ac3-cashinfo b { color: #fff; font-size: 20px; margin-left: 6px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
body.ac-pos2 .ac3-cashinfo span:last-child b { color: #0b2f4e; background: #fcd34d; border-radius: 8px; padding: 0 8px; }
body.ac-pos2 .ac3-cashinfo.due span:last-child b { background: #fef3c7; color: #92400e; }

/* pad-cash2: nothing in the pad column may be squeezed; keys take what is left */
body.ac-pos2 .ac3-pad > * { flex-shrink: 0; }
body.ac-pos2 .ac3-pad > .ac3-keys { flex: 1 1 auto; grid-auto-rows: minmax(38px, 1fr); }
body.ac-pos2 .ac3-pad > .ac3-keys button { min-height: 38px; }
body.ac-pos2 .ac3-screen:has(.ac3-rows) .ac3-val { font-size: 24px; line-height: 1.1; }
body.ac-pos2 .ac3-pad .ac3-screen { min-height: 0; }
@media (max-height: 820px) {
    body.ac-pos2 .ac3-pad { gap: 6px; padding: 8px; }
    body.ac-pos2 .ac3-check { height: 36px; }
    body.ac-pos2 .ac3-act button { height: 40px; }
    body.ac-pos2 .ac3-pays .ac2-b { height: 52px; }
}

/* ==== POS split payment (Multi-pay, owner 2026-10-03): sheet in place of the ticket, amounts on the keypad ==== */
body.ac-pos2 .ac-pos-cart > .ac3-hide { display: none !important; }
body.ac-pos2 .ac3-split { background: #fff; border: 1px solid #e3eaf3; border-radius: 16px 16px 0 0; padding: 12px; display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
body.ac-pos2 .sp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.ac-pos2 .sp-head b { font-size: 17px; color: #0b2f4e; font-weight: 800; } body.ac-pos2 .sp-head b i { color: #b45309; margin-right: 6px; }
body.ac-pos2 .sp-back { border: 1px solid #cbd5e1; background: #fff; color: #0c4a6e; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 12.5px; }
body.ac-pos2 .sp-back:hover { border-color: #0c4a6e; }
body.ac-pos2 .sp-sum { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; }
body.ac-pos2 .sp-sum > div { background: #f1f5f9; border-radius: 12px; padding: 7px 10px; display: flex; flex-direction: column; }
body.ac-pos2 .sp-sum span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; font-weight: 700; }
body.ac-pos2 .sp-sum b { font-size: 18px; color: #0b2f4e; font-variant-numeric: tabular-nums; }
body.ac-pos2 .sp-sum .rem { background: #0b2f4e; } body.ac-pos2 .sp-sum .rem span { color: #7dd3fc; } body.ac-pos2 .sp-sum .rem b { color: #fcd34d; font-size: 21px; }
body.ac-pos2 .sp-sum .rem.chg, body.ac-pos2 .sp-sum .rem.done { background: #f5b301; } body.ac-pos2 .sp-sum .rem.chg span, body.ac-pos2 .sp-sum .rem.done span, body.ac-pos2 .sp-sum .rem.chg b, body.ac-pos2 .sp-sum .rem.done b { color: #0b2f4e; }
body.ac-pos2 .sp-lbl { font-size: 11.5px; color: #64748b; font-weight: 700; margin-bottom: -3px; }
body.ac-pos2 .sp-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
body.ac-pos2 .sp-methods button { height: 44px; border: 1.5px solid #cbd5e1; background: #fff; color: #0b2f4e; border-radius: 11px; font-weight: 800; font-size: 13px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ac-pos2 .sp-methods button i { color: #0e7490; margin-right: 4px; }
body.ac-pos2 .sp-methods button.on { background: #0c4a6e; color: #fff; border-color: #0c4a6e; box-shadow: inset 0 -3px 0 #f5b301; } body.ac-pos2 .sp-methods button.on i { color: #fcd34d; }
body.ac-pos2 .sp-list { display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
body.ac-pos2 .sp-part { display: grid; grid-template-columns: 28px 1fr auto 30px; align-items: center; gap: 8px; border: 1px solid #e3eaf3; border-left: 4px solid #f5b301; border-radius: 10px; padding: 7px 8px; }
body.ac-pos2 .sp-part > i { color: #0e7490; font-size: 17px; text-align: center; }
body.ac-pos2 .sp-part .n { font-weight: 800; color: #0b2f4e; } body.ac-pos2 .sp-part .n small { display: block; color: #64748b; font-weight: 600; font-size: 11.5px; }
body.ac-pos2 .sp-part b { font-size: 16px; color: #0b2f4e; font-variant-numeric: tabular-nums; }
body.ac-pos2 .sp-del { width: 28px; height: 28px; border: 0; border-radius: 8px; background: #fef3c7; color: #b45309; }
body.ac-pos2 .sp-del:hover { background: #b45309; color: #fff; }
body.ac-pos2 .sp-empty { color: #94a3b8; font-size: 13px; text-align: center; padding: 14px 0; border: 1px dashed #cbd5e1; border-radius: 10px; }
body.ac-pos2 .sp-note { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 6px 9px; font-size: 13px; resize: vertical; }
body.ac-pos2 .sp-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: auto; }
body.ac-pos2 .sp-more { border: 1px solid #cbd5e1; background: #fff; color: #0c4a6e; border-radius: 11px; padding: 0 12px; font-weight: 700; font-size: 12.5px; }
body.ac-pos2 .sp-done { height: 50px; border: 0; border-radius: 12px; background: #f5b301; color: #0b2f4e; font-weight: 800; font-size: 16px; }
body.ac-pos2 .sp-done:disabled { opacity: .45; }
/* keypad while splitting */
body.ac-pos2 .ac3-pad.split-on .ac3-modes { display: none; }
body.ac-pos2 .ac3-pad[data-mode="split"][data-sm="cash"] .ac3-notes { display: grid; }
body.ac-pos2 .ac3-pad.split-on .ac2-multi { outline: 3px solid #fcd34d; outline-offset: 1px; }
body.ac-pos2 .ac3-val .ph { opacity: .45; }
@media (min-width: 1200px) { body.ac-pos2 .ac-pos-cart:has(.ac3-split:not([style*="none"])) { min-height: 0; } }

/* split-tab */
@media (max-width: 1199px) { body.ac-pos2 .ac3-split { border-radius: 16px; margin-bottom: 8px; } body.ac-pos2 .ac3-pad.in-cart.split-on { border-radius: 16px; margin-bottom: 8px; } }

/* ==== Cash register details / close (owner 2026-10-03): navy + gold cards, amber for minus ==== */
.acr-modal .modal-title i { color: #fcd34d; margin-right: 6px; }
.acr-modal .acr-when { display: block; font-size: 12.5px; color: #cbd5e1; margin-top: 3px; font-weight: 600; }
.acr { margin-bottom: 6px; }
.acr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.acr-kpi { background: #f1f5f9; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; border: 1px solid #e3eaf3; }
.acr-kpi span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.acr-kpi b { font-size: 19px; color: #0b2f4e; font-variant-numeric: tabular-nums; }
.acr-kpi.main { background: #0b2f4e; border-color: #0b2f4e; box-shadow: inset 0 -4px 0 #f5b301; }
.acr-kpi.main span { color: #7dd3fc; } .acr-kpi.main b { color: #fcd34d; font-size: 23px; }
.acr-h { font-size: 15px; font-weight: 800; color: #0b2f4e; margin: 6px 0 9px; } .acr-h i { color: #b45309; margin-right: 6px; }
.acr-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 14px; }
.acr-m { position: relative; border: 1px solid #e3eaf3; border-left: 4px solid #0e7490; border-radius: 12px; padding: 9px 10px 8px 42px; background: #fff; }
.acr-m > i { position: absolute; left: 12px; top: 12px; color: #0e7490; font-size: 17px; }
.acr-mn { font-size: 12px; color: #64748b; font-weight: 700; }
.acr-m > b { display: block; white-space: nowrap; font-size: 16px; color: #0b2f4e; font-variant-numeric: tabular-nums; }
.acr-m small { display: block; font-size: 11px; color: #64748b; } .acr-m small.neg { color: #b45309; }
.acr-sum { border: 1px solid #e3eaf3; border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.acr-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 14px; border-bottom: 1px solid #eef2f7; }
.acr-sum > div:last-child { border-bottom: 0; }
.acr-sum span { font-weight: 700; color: #334155; } .acr-sum span small { color: #94a3b8; font-weight: 500; }
.acr-sum b { font-variant-numeric: tabular-nums; color: #0b2f4e; font-size: 15px; }
.acr-sum > div.neg b { color: #b45309; }
.acr-sum > div.tot { background: #0b2f4e; } .acr-sum > div.tot span { color: #cbd5e1; } .acr-sum > div.tot span small { color: #7dd3fc; } .acr-sum > div.tot b { color: #fcd34d; font-size: 18px; }
.acr-modal .table thead th, .acr-modal .table > tbody > tr > th { background: #0c4a6e; color: #fff; border-color: #0c4a6e; }
.acr-modal .table > tbody > tr.danger > *, .acr-modal .table > tbody > tr.success > * { background: #fff !important; }
.acr-count { background: #f8fafc; border: 1px solid #e3eaf3; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.acr-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.acr-grid .form-group { margin-bottom: 6px; }
.acr-big { height: 44px !important; font-size: 20px !important; font-weight: 800; color: #0b2f4e; border: 2px solid #0c4a6e !important; border-radius: 10px !important; }
.acr-diff { border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 13.5px; margin: 4px 0 8px; }
.acr-diff.ok { background: #0b2f4e; color: #fcd34d; }
.acr-diff.short, .acr-diff.over { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.acr-notes summary { cursor: pointer; font-weight: 800; color: #0c4a6e; margin: 4px 0 8px; } .acr-notes summary i { color: #b45309; margin-right: 5px; } .acr-notes summary small { color: #94a3b8; font-weight: 500; }
.acr-dn { background: #fff; border-radius: 10px; overflow: hidden; }
.acr-who { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #475569; font-size: 13px; border-top: 1px dashed #e3eaf3; padding-top: 10px; }
.acr-who i { color: #b45309; margin-right: 5px; }
.acr-closebtn i { color: #fcd34d; margin-right: 4px; }
@media (max-width: 767px) { .acr-kpis { grid-template-columns: 1fr 1fr; } .acr-grid { grid-template-columns: 1fr; } }
@media print { .acr-kpi.main, .acr-sum > div.tot { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ==== POS recent transactions (owner 2026-10-03) ==== */
#recent_transactions_modal .nav-tabs { border: 0; display: flex; gap: 6px; margin-bottom: 10px; }
#recent_transactions_modal .nav-tabs > li > a { border: 1px solid #cbd5e1 !important; border-radius: 999px !important; padding: 7px 16px; font-weight: 800; color: #0c4a6e; margin: 0; }
#recent_transactions_modal .nav-tabs > li.active > a, #recent_transactions_modal .nav-tabs > li.active > a:hover, #recent_transactions_modal .nav-tabs > li.active > a:focus { background: #0c4a6e !important; color: #fff !important; border-color: #0c4a6e !important; box-shadow: inset 0 -3px 0 #f5b301; }
#recent_transactions_modal .nav-tabs > li.active > a i { color: #fcd34d; }
.acrt { display: flex; flex-direction: column; gap: 6px; }
.acrt-row { display: grid; grid-template-columns: 28px 1fr auto auto auto; align-items: center; gap: 10px; border: 1px solid #e3eaf3; border-left: 4px solid #0e7490; border-radius: 12px; padding: 8px 10px; background: #fff; }
.acrt-row:hover { background: #f8fafc; }
.acrt-n { width: 26px; height: 26px; border-radius: 50%; background: #f1f5f9; color: #64748b; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.acrt-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.acrt-main b { color: #0b2f4e; font-size: 14px; } .acrt-main span { color: #334155; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .acrt-main small { color: #94a3b8; font-size: 11.5px; }
.acrt-ps { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 3px 9px; background: #e0f2fe; color: #0c4a6e; }
.acrt-ps.due, .acrt-ps.partial { background: #fef3c7; color: #92400e; }
.acrt-amt { font-size: 15px; color: #0b2f4e; font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }
.acrt-act { display: flex; gap: 5px; }
.acrt-act a { width: 32px; height: 32px; border-radius: 9px; border: 1px solid #d5e3ef; color: #0c4a6e; display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important; }
.acrt-act a:hover { background: #0c4a6e; color: #fcd34d; border-color: #0c4a6e; }
.acrt-act a.del { color: #b45309; border-color: #fde3b0; } .acrt-act a.del:hover { background: #b45309; color: #fff; border-color: #b45309; }
.acrt-empty { color: #94a3b8; text-align: center; padding: 20px 0; } .acrt-empty i { margin-right: 6px; }
@media (max-width: 640px) { .acrt-row { grid-template-columns: 1fr auto; } .acrt-n, .acrt-ps { display: none; } .acrt-act { grid-column: 1 / -1; } }
