:root{--blue:#0d6efd;--green:#16a34a;--red:#ef4444;--muted:#64748b;--border:#e2e8f0;--bg:#f8fafc;--ink:#0f172a}
*{box-sizing:border-box} body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif}.app-shell{display:flex;min-height:100vh}.sidebar{width:280px;background:#fff;border-right:1px solid var(--border);padding:18px 16px;position:fixed;top:0;bottom:0;left:0}.brand{display:flex;gap:14px;align-items:center}.brand-icon{width:52px;height:52px;border-radius:14px;background:linear-gradient(135deg,#0d6efd,#075bd8);color:#fff;display:grid;place-items:center;font-size:28px;box-shadow:0 10px 20px #0d6efd33}.brand h1{font-size:24px;line-height:1;margin:0;font-weight:800}.brand p{margin:5px 0 0;color:#475569;font-size:14px}.nav-link{display:flex;align-items:center;gap:16px;color:#334155;padding:15px 16px;border-radius:12px;font-size:17px;font-weight:600}.nav-link i{font-size:22px}.nav-link:hover,.nav-link.active{background:#eaf2ff;color:var(--blue)}.main{margin-left:280px;flex:1;padding-bottom:62px}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 24px;position:sticky;top:0;z-index:5;box-shadow:0 4px 12px rgba(15,23,42,.04)}.scanner-ready{background:#ecfdf5;border:1px solid #bbf7d0;color:#15803d;border-radius:10px;padding:9px 16px;font-weight:700}.scanner-ready span{display:inline-block;width:11px;height:11px;background:#22c55e;border-radius:50%;margin-right:8px}.user-pill{display:flex;align-items:center;gap:9px;font-weight:700}.user-pill i:first-child{font-size:34px;color:var(--blue)}.content{padding:16px 22px}.card-soft{background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 5px 18px rgba(15,23,42,.05)}.form-control,.input-group-text{border-color:#cbd5e1}.focused-field{border:2px solid var(--blue)!important;box-shadow:0 0 0 .2rem rgba(13,110,253,.08)!important}.section-title{font-size:20px;font-weight:800;margin:0 0 14px}.table>:not(caption)>*>*{padding:.72rem .75rem;vertical-align:middle}.product-img{width:42px;height:42px;border-radius:9px;object-fit:cover;border:1px solid #e2e8f0}.qty-control{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:9px;overflow:hidden}.qty-control button{border:0;background:#fff;width:38px;height:34px;font-size:18px;font-weight:800}.qty-control span{width:42px;text-align:center}.trash-btn{color:#ef4444;background:#fff;border:0;font-size:18px}.summary-total{font-size:25px;font-weight:900}.btn-action{width:100%;font-weight:800;border-radius:9px;padding:10px 12px}.receipt-paper{background:#fff;border-radius:12px;padding:18px;border:1px solid #e5e7eb;box-shadow:inset 0 0 0 1px #f8fafc;font-family:'Courier New',monospace;font-size:12px;line-height:1.35;white-space:pre-wrap}.stock-badge{display:inline-block;min-width:46px;text-align:center;border-radius:9px;padding:4px 8px;background:#dcfce7;color:#15803d;font-weight:800}.stock-low{background:#ffedd5;color:#c2410c}.product-action-btn{width:76px!important;min-width:76px!important;display:inline-flex!important;align-items:center;justify-content:center;text-align:center}.td-actions-nowrap,.actions{white-space:nowrap}.statusbar{position:fixed;left:280px;right:0;bottom:0;height:56px;background:#fff;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 26px;color:#334155}.search-card label{font-weight:800;margin-bottom:7px}.money-input .input-group-text{background:#f8fafc;font-weight:800}.delete-product{cursor:pointer}.print-only{display:none}@media(max-width:1100px){.sidebar{width:90px}.brand h1,.brand p,.nav-link span,.nav-link{font-size:0}.nav-link i{font-size:24px}.main{margin-left:90px}.statusbar{left:90px}.brand{justify-content:center}.brand-icon{width:48px;height:48px}}@media print{body *{visibility:hidden}.print-area,.print-area *{visibility:visible}.print-area{position:absolute;left:0;top:0;width:100%}.no-print{display:none!important}}

.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eff6ff,#f8fafc);padding:24px}.login-card{width:100%;max-width:430px}.role-box{margin:24px 18px 0;padding:14px;border-radius:16px;background:#f8fafc;border:1px solid #e5e7eb}.role-badge{font-size:.75rem}.role-admin{background:#0d6efd!important;color:#fff}.role-supervisor{background:#f59e0b!important;color:#111827}.role-cashier{background:#16a34a!important;color:#fff}.modal-content{border:0;border-radius:18px;box-shadow:0 22px 50px rgba(15,23,42,.18)}

/* Responsive layout for tablets and phones */
.sidebar-backdrop{display:none}.mobile-page-title{display:none;font-weight:800;font-size:18px}.menu-toggle{display:inline-flex;align-items:center;justify-content:center}.table-card{width:100%}
@media(max-width:991.98px){
  .content{padding:14px}.topbar{padding:0 14px;height:64px}.topbar-right{gap:8px!important}.scanner-ready{padding:7px 10px;font-size:13px}.user-pill span{display:none}.user-pill{font-size:0}.user-pill i:first-child{font-size:30px}.summary-total{font-size:22px}.btn-action{padding:12px 14px;font-size:16px}.receipt-paper{max-height:360px;overflow:auto}.product-img{width:38px;height:38px}.row.g-3{--bs-gutter-x:.75rem;--bs-gutter-y:.75rem}
}
@media(max-width:767.98px){
  body{background:#f8fafc}.app-shell{display:block}.sidebar{width:280px;transform:translateX(-105%);transition:transform .22s ease;z-index:1040;box-shadow:20px 0 40px rgba(15,23,42,.18);overflow-y:auto}.app-shell.sidebar-open .sidebar{transform:translateX(0)}.app-shell.sidebar-open .sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:1030}.brand{justify-content:flex-start}.brand h1{font-size:22px}.brand p{font-size:13px}.nav-link{font-size:16px}.nav-link span{font-size:inherit}.main{margin-left:0;padding-bottom:74px}.statusbar{left:0;height:auto;min-height:58px;padding:8px 12px;font-size:12px;gap:6px;flex-wrap:wrap}.statusbar span:nth-child(2){order:3;width:100%;text-align:center}.mobile-page-title{display:block}.topbar{position:sticky;top:0}.content{padding:12px}.section-title{font-size:18px}.card-soft{border-radius:12px}.search-card .input-group-lg>.form-control,.search-card .input-group-lg>.input-group-text{font-size:15px;padding:.55rem .75rem}.btn{min-height:40px}.qty-control button{width:42px;height:38px}.qty-control span{width:42px}.modal-dialog{margin:.75rem}.receipt-paper{font-size:11px;max-height:320px}.alert{font-size:14px}
  .table-responsive.mobile-card-wrap{overflow:visible}.table-mobile{border:0}.table-mobile thead{display:none}.table-mobile tbody,.table-mobile tr,.table-mobile td{display:block;width:100%}.table-mobile tr{background:#fff;border:1px solid var(--border);border-radius:12px;margin-bottom:10px;padding:8px;box-shadow:0 3px 10px rgba(15,23,42,.04)}.table-mobile td{border:0!important;padding:8px 6px!important;display:flex;justify-content:space-between;align-items:center;gap:14px;text-align:right!important}.table-mobile td::before{content:attr(data-label);font-weight:800;color:#64748b;text-align:left}.table-mobile td[data-label="Item"],.table-mobile td[data-label="Name"]{align-items:flex-start}.table-mobile td[data-label="Item"]::before,.table-mobile td[data-label="Name"]::before{padding-top:8px}.table-mobile td.actions,.table-mobile td[data-label="Action"]{justify-content:flex-end}.table-mobile td.actions::before,.table-mobile td[data-label="Action"]::before{display:none}.table-mobile .product-img{margin-right:8px}.table-mobile .btn-sm{min-height:38px;padding:.45rem .65rem}.table-mobile .stock-badge{min-width:54px}.hide-on-mobile{display:none!important}
}
@media(max-width:420px){
  .brand-icon{width:46px;height:46px}.brand h1{font-size:20px}.mobile-page-title{font-size:16px}.scanner-ready{display:none}.content{padding:10px}.card-soft{padding:12px!important}.summary-total{font-size:20px}.receipt-paper{font-size:10px}.statusbar span:first-child{display:none}.table-mobile td{font-size:14px}.login-page{padding:14px}
}


/* Cash payment calculator modal */
.payment-dialog{max-width:430px}.payment-modal .modal-body{padding:18px}.payment-total-box{display:flex;justify-content:space-between;align-items:center;background:#f8fafc;border:1px solid var(--border);border-radius:14px;padding:14px}.payment-total{font-size:28px;font-weight:900;color:var(--blue);line-height:1.1}.payment-change{font-size:24px;font-weight:900;color:var(--green);line-height:1.1}.payment-display{font-size:32px;font-weight:900;border:2px solid var(--blue);border-radius:12px;min-height:64px}.cash-keypad{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.cash-keypad button{border:1px solid #cbd5e1;background:#fff;border-radius:12px;min-height:58px;font-size:22px;font-weight:900;color:#0f172a;box-shadow:0 3px 9px rgba(15,23,42,.05)}.cash-keypad button:active{transform:translateY(1px);box-shadow:none}.cash-keypad .key-enter{background:var(--green);border-color:var(--green);color:#fff;font-size:18px}.cash-keypad .key-danger{background:#fee2e2;border-color:#fecaca;color:#dc2626}.cash-keypad .key-soft{background:#eff6ff;border-color:#bfdbfe;color:#0d6efd;font-size:16px}
@media(max-width:420px){.payment-dialog{margin:.5rem}.payment-display{font-size:28px;min-height:58px}.cash-keypad{gap:8px}.cash-keypad button{min-height:54px;font-size:20px}.cash-keypad .key-enter{font-size:16px}.payment-total{font-size:24px}.payment-change{font-size:22px}}

/* Sidebar responsiveness fix - v2 */
.sidebar{display:flex;flex-direction:column;gap:0;z-index:1020}.sidebar-close{display:none;position:absolute;right:12px;top:12px;width:42px;height:42px;border-radius:12px}.nav-link span{display:inline}.menu-toggle{display:none}.body-sidebar-open{overflow:hidden;touch-action:none}
@media(min-width:768px) and (max-width:1100px){
  .sidebar{width:92px;padding:16px 10px;align-items:center}.sidebar .brand{justify-content:center;width:100%}.sidebar .brand>div:last-child,.sidebar .nav-link span,.sidebar .role-box{display:none!important}.sidebar .nav{width:100%;align-items:center}.sidebar .nav-link{width:56px;height:56px;justify-content:center;padding:0;border-radius:16px;font-size:0;gap:0}.sidebar .nav-link i{font-size:25px;margin:0}.main{margin-left:92px}.statusbar{left:92px}.menu-toggle{display:none!important}
}
@media(min-width:1100.01px){.sidebar{transform:none!important}.main{margin-left:280px}.statusbar{left:280px}.sidebar-backdrop{display:none!important}}
@media(max-width:767.98px){
  .menu-toggle{display:inline-flex!important}.sidebar{width:min(86vw,320px);max-width:320px;transform:translateX(-110%);transition:transform .25s ease;z-index:1050;padding:18px 16px 20px;align-items:stretch}.sidebar-close{display:inline-flex;align-items:center;justify-content:center}.sidebar .brand{padding-right:48px}.sidebar .brand>div:last-child{display:block!important}.sidebar .nav{width:100%}.sidebar .nav-link{width:100%;height:auto;justify-content:flex-start;padding:15px 16px;font-size:16px;gap:14px}.sidebar .nav-link i{font-size:22px}.sidebar .nav-link span{display:inline!important}.app-shell.sidebar-open .sidebar{transform:translateX(0)}.app-shell.sidebar-open .sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(15,23,42,.52);z-index:1040;backdrop-filter:blur(2px)}.main{margin-left:0!important;width:100%;min-width:0}.topbar{gap:10px}.mobile-page-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-right{min-width:0}.content{max-width:100%;overflow-x:hidden}.statusbar{left:0!important;right:0}.card-soft{max-width:100%}.table-responsive{max-width:100%}
}
@media(max-width:575.98px){.sidebar{width:88vw}.topbar{height:60px}.mobile-page-title{font-size:15px}.topbar .scanner-ready{display:none}.user-pill{max-width:42px;overflow:hidden}.content{padding:10px}.row.g-3{--bs-gutter-x:0;--bs-gutter-y:.75rem}.card-soft{border-radius:12px}.btn-action{font-size:15px}.statusbar{font-size:11px;justify-content:center}}

/* Store and product image settings */
.brand-logo{overflow:hidden;background:#fff;padding:0}
.brand-logo img{width:100%;height:100%;object-fit:cover;display:block}
.settings-logo-preview{width:120px;height:120px;border-radius:24px;object-fit:cover;border:1px solid var(--border);background:#f8fafc;padding:6px}
@media(min-width:768px) and (max-width:1100px){.sidebar .brand-logo{display:flex!important}}

/* Dashboard analytics */
.dashboard-page .chart-wrap {
    position: relative;
    width: 100%;
    min-height: 340px;
    height: 42vh;
    max-height: 460px;
}
.dashboard-chart-card {
    overflow: hidden;
}
.dashboard-list {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
}
.dashboard-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}
.dashboard-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f8fafc;
    flex: 0 0 auto;
}
.empty-dashboard-state {
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: 16px;
    background: #f8fafc;
}
.empty-dashboard-state i {
    font-size: 42px;
    color: #94a3b8;
}
.empty-dashboard-state.compact {
    min-height: 120px;
}
.empty-dashboard-state.compact i {
    font-size: 28px;
    color: #16a34a;
}
.min-w-0 {
    min-width: 0;
}
@media (max-width: 767.98px) {
    .dashboard-page .chart-wrap {
        min-height: 300px;
        height: 360px;
    }
}

/* Receipt printing setting: keep the switch aligned with its label */
.receipt-print-option{
    padding:16px 18px;
}
.receipt-print-row{
    display:flex;
    align-items:flex-start;
    gap:14px;
}
.receipt-print-switch{
    flex:0 0 auto;
    min-width:48px;
    padding-left:0;
    margin:0;
}
.receipt-print-switch .form-check-input{
    float:none;
    margin-left:0;
    margin-top:2px;
    width:2.75rem;
    height:1.45rem;
    cursor:pointer;
}
.receipt-print-copy{
    flex:1;
    min-width:0;
}
.receipt-print-copy label{
    cursor:pointer;
}
@media (max-width: 575.98px){
    .receipt-print-option{padding:14px}
    .receipt-print-row{gap:12px}
    .receipt-print-switch{min-width:44px}
    .receipt-print-switch .form-check-input{width:2.5rem;height:1.35rem}
}

/* Printable sales report */
.report-store-logo{width:58px;height:58px;border-radius:14px;object-fit:cover;border:1px solid #e2e8f0;background:#fff}
.report-store-name{font-size:24px;font-weight:900;line-height:1.1}
.report-print-header{border-top:4px solid var(--blue)}
@media print{
    @page{size:A4;margin:12mm}
    body{background:#fff!important;color:#111827!important}
    .sidebar,.topbar,.statusbar,.no-print,.no-print-badge,.no-print-col{display:none!important}
    .main{margin-left:0!important;padding:0!important}
    .content{padding:0!important}
    body *{visibility:hidden}
    .print-area,.print-area *{visibility:visible}
    .print-area{position:absolute!important;left:0!important;top:0!important;width:100%!important;background:#fff!important}
    .card-soft{box-shadow:none!important;border:1px solid #d1d5db!important;border-radius:8px!important;background:#fff!important}
    .report-print-header{border-top:0!important;border-bottom:2px solid #111827!important;border-left:0!important;border-right:0!important;border-radius:0!important;padding:0 0 12px 0!important;margin-bottom:12px!important}
    .report-store-logo{width:52px!important;height:52px!important}
    .report-store-name{font-size:22px!important;margin:0!important}
    .report-summary-grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:8px!important;margin-bottom:12px!important}
    .report-summary-grid>[class*="col-"]{width:auto!important;max-width:none!important;flex:none!important;padding:0!important}
    .report-summary-grid .fs-2{font-size:18px!important}
    .report-summary-grid .card-soft{padding:8px!important;break-inside:avoid}
    .report-section{break-inside:avoid;margin-bottom:12px!important;padding:10px!important}
    .section-title{font-size:16px!important;margin-bottom:8px!important}
    .report-table{font-size:11px!important;margin-bottom:0!important;border-collapse:collapse!important;width:100%!important}
    .report-table th,.report-table td{padding:5px 6px!important;border:1px solid #d1d5db!important}
    .report-table thead th,.report-table tfoot th{background:#f3f4f6!important;color:#111827!important}
    .table-responsive{overflow:visible!important}
}


/* User-selectable gradient themes */
body.theme-ocean{--blue:#0d6efd;--blue-dark:#075bd8;--green:#16a34a;--theme-gradient:linear-gradient(135deg,#0d6efd,#06b6d4);--theme-soft:#eaf2ff;--theme-ring:rgba(13,110,253,.18);--theme-accent:#0d6efd}
body.theme-sunset{--blue:#f97316;--blue-dark:#db2777;--green:#16a34a;--theme-gradient:linear-gradient(135deg,#f97316,#ec4899);--theme-soft:#fff1e8;--theme-ring:rgba(249,115,22,.18);--theme-accent:#f97316}
body.theme-forest{--blue:#059669;--blue-dark:#0f766e;--green:#16a34a;--theme-gradient:linear-gradient(135deg,#059669,#14b8a6);--theme-soft:#e8fff6;--theme-ring:rgba(5,150,105,.18);--theme-accent:#059669}
body.theme-royal{--blue:#7c3aed;--blue-dark:#4f46e5;--green:#16a34a;--theme-gradient:linear-gradient(135deg,#7c3aed,#4f46e5);--theme-soft:#f1ecff;--theme-ring:rgba(124,58,237,.18);--theme-accent:#7c3aed}
body.theme-rose{--blue:#e11d48;--blue-dark:#be123c;--green:#16a34a;--theme-gradient:linear-gradient(135deg,#e11d48,#ef4444);--theme-soft:#fff1f2;--theme-ring:rgba(225,29,72,.18);--theme-accent:#e11d48}
body[class*="theme-"] .brand-icon,
body[class*="theme-"] .btn-primary,
body[class*="theme-"] .key-enter,
body[class*="theme-"] .cash-keypad .key-enter{background:var(--theme-gradient)!important;border-color:transparent!important;color:#fff!important}
body[class*="theme-"] .brand-icon{box-shadow:0 10px 22px var(--theme-ring)}
body[class*="theme-"] .nav-link:hover,
body[class*="theme-"] .nav-link.active{background:var(--theme-soft)!important;color:var(--theme-accent)!important}
body[class*="theme-"] .text-primary{color:var(--theme-accent)!important}
body[class*="theme-"] .btn-outline-primary{color:var(--theme-accent)!important;border-color:var(--theme-accent)!important}
body[class*="theme-"] .btn-outline-primary:hover{background:var(--theme-gradient)!important;border-color:transparent!important;color:#fff!important}
body[class*="theme-"] .form-control:focus{border-color:var(--theme-accent);box-shadow:0 0 0 .2rem var(--theme-ring)}
body[class*="theme-"] .focused-field{border-color:var(--theme-accent)!important;box-shadow:0 0 0 .2rem var(--theme-ring)!important}
body[class*="theme-"] .payment-display{border-color:var(--theme-accent)!important}
body[class*="theme-"] .payment-total,
body[class*="theme-"] .summary-total,
body[class*="theme-"] .fs-2.fw-bold.text-primary{color:var(--theme-accent)!important}

.theme-choice-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.theme-choice{position:relative;border:1px solid var(--border);border-radius:16px;background:#fff;padding:12px;display:flex;align-items:center;gap:10px;cursor:pointer;min-height:90px;transition:.18s;overflow:hidden}
.theme-choice:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,23,42,.08)}
.theme-choice input{position:absolute;opacity:0;pointer-events:none}.theme-swatch{width:42px;height:42px;border-radius:14px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}.theme-copy{display:flex;flex-direction:column;line-height:1.2}.theme-copy strong{font-size:14px}.theme-copy small{font-size:12px;color:#64748b;margin-top:4px}.theme-check{position:absolute;right:10px;top:10px;color:#16a34a;opacity:0}.theme-choice.selected{border-color:var(--theme-accent);box-shadow:0 0 0 .2rem var(--theme-ring)}.theme-choice.selected .theme-check{opacity:1}.theme-swatch-ocean .theme-swatch{background:linear-gradient(135deg,#0d6efd,#06b6d4)}.theme-swatch-sunset .theme-swatch{background:linear-gradient(135deg,#f97316,#ec4899)}.theme-swatch-forest .theme-swatch{background:linear-gradient(135deg,#059669,#14b8a6)}.theme-swatch-royal .theme-swatch{background:linear-gradient(135deg,#7c3aed,#4f46e5)}.theme-swatch-rose .theme-swatch{background:linear-gradient(135deg,#e11d48,#ef4444)}
@media(max-width:991.98px){.theme-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:575.98px){.theme-choice-grid{grid-template-columns:1fr}.theme-choice{min-height:76px}}

/* Odoo-style POS product thumbnail grid */
.product-catalog-card{
    overflow:hidden;
}
.odoo-category-tabs{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:6px 2px 14px;
    margin-bottom:4px;
    scrollbar-width:thin;
}
.odoo-category{
    border:1px solid var(--border);
    background:#fff;
    color:#334155;
    border-radius:999px;
    padding:9px 14px;
    font-weight:800;
    white-space:nowrap;
    display:inline-flex;
    align-items:center;
    gap:7px;
    transition:.18s;
}
.odoo-category:hover,
.odoo-category.active{
    background:var(--theme-soft, #eaf2ff);
    border-color:var(--theme-accent, var(--blue));
    color:var(--theme-accent, var(--blue));
}
.odoo-product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
    gap:14px;
    max-height:560px;
    overflow:auto;
    padding:2px 4px 6px 2px;
}
.odoo-product-card{
    border:1px solid var(--border);
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    padding:0;
    text-align:left;
    min-height:210px;
    box-shadow:0 3px 10px rgba(15,23,42,.05);
    transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    display:flex;
    flex-direction:column;
    position:relative;
}
.odoo-product-card:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 28px rgba(15,23,42,.12);
    border-color:var(--theme-accent, var(--blue));
}
.odoo-product-card:active{
    transform:translateY(0) scale(.99);
}
.odoo-product-card.out-of-stock{
    opacity:.65;
    cursor:not-allowed;
}
.odoo-product-image-wrap{
    position:relative;
    height:118px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(180deg,#fff,#f8fafc);
    border-bottom:1px solid #eef2f7;
}
.odoo-product-image{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:12px;
}
.odoo-price-badge{
    position:absolute;
    top:8px;
    right:8px;
    background:var(--theme-gradient, linear-gradient(135deg,#0d6efd,#06b6d4));
    color:#fff;
    border-radius:999px;
    padding:5px 9px;
    font-size:12px;
    font-weight:900;
    box-shadow:0 6px 14px rgba(15,23,42,.15);
}
.odoo-stock-overlay{
    position:absolute;
    inset:auto 8px 8px 8px;
    background:rgba(15,23,42,.82);
    color:#fff;
    border-radius:10px;
    text-align:center;
    padding:5px 8px;
    font-size:12px;
    font-weight:900;
}
.odoo-product-info{
    padding:11px 12px 12px;
    display:flex;
    flex-direction:column;
    gap:6px;
    flex:1;
}
.odoo-product-name{
    font-weight:900;
    color:#0f172a;
    line-height:1.2;
    min-height:38px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.odoo-product-meta{
    display:flex;
    justify-content:space-between;
    gap:8px;
    color:#64748b;
    font-size:12px;
    font-weight:700;
}
.odoo-product-barcode{
    color:#94a3b8;
    font-size:11px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.empty-product-grid{
    min-height:160px;
    display:grid;
    place-items:center;
    align-content:center;
    gap:8px;
    color:#64748b;
    border:1px dashed var(--border);
    border-radius:16px;
    background:#f8fafc;
    text-align:center;
}
.empty-product-grid i{font-size:34px;color:#94a3b8}
@media(max-width:1199.98px){
    .odoo-product-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));max-height:none}
}
@media(max-width:767.98px){
    .odoo-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:none}
    .odoo-product-card{min-height:190px;border-radius:14px}
    .odoo-product-image-wrap{height:105px}
    .odoo-product-info{padding:9px 10px 10px}
    .odoo-product-name{font-size:14px;min-height:34px}
    .odoo-category{padding:8px 12px;font-size:14px}
}
@media(max-width:380px){
    .odoo-product-grid{grid-template-columns:1fr}
    .odoo-product-image-wrap{height:130px}
}

/* Payment complete / next customer confirmation */
.sale-complete-modal{border-radius:18px;overflow:hidden}
.sale-complete-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sale-complete-summary>div{background:#f8fafc;border:1px solid var(--border);border-radius:12px;padding:12px}
.sale-complete-summary span{display:block;color:#64748b;font-size:12px;font-weight:700;margin-bottom:4px}
.sale-complete-summary strong{display:block;font-size:18px;line-height:1.15}
@media(max-width:420px){.sale-complete-summary{grid-template-columns:1fr}.sale-complete-modal .modal-footer .btn{width:100%}}


/* Receipt verification in reports */
.receipt-verify-card .form-control-lg{border-radius:14px}
.receipt-verification-result{border:1px solid var(--border);border-radius:16px;background:#f8fafc;padding:14px}
.verify-summary-box{border:1px solid var(--border);border-radius:14px;background:#fff;padding:14px}
.verify-line{display:flex;justify-content:space-between;gap:12px;border-top:1px dashed var(--border);padding:8px 0;font-size:14px}
.verify-line span{color:#64748b;font-weight:700}
.verify-line strong{text-align:right}
@media(max-width:767.98px){.receipt-verification-result{padding:10px}.verify-line{font-size:13px}.receipt-verify-card .btn-lg{font-size:15px}}

.product-qr-preview{width:74px;height:74px;border:1px solid var(--border);border-radius:10px;background:#fff;padding:4px}
.odoo-product-barcode i{margin-right:4px}

/* Professional themed login and support pages */
.professional-login,
.support-page{
    min-height:100vh;
    background:
        radial-gradient(circle at 15% 20%, var(--theme-soft, #eaf2ff) 0, transparent 32%),
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.55) 0, transparent 28%),
        linear-gradient(135deg,#f8fafc,#eef2ff);
    position:relative;
    overflow-x:hidden;
}
.login-bg-shape{position:fixed;border-radius:999px;filter:blur(10px);opacity:.2;pointer-events:none;background:var(--theme-gradient, linear-gradient(135deg,#0d6efd,#06b6d4))}
.login-bg-shape-one{width:360px;height:360px;left:-120px;top:-100px}.login-bg-shape-two{width:420px;height:420px;right:-140px;bottom:-160px}
.login-pro-shell{width:min(1120px,calc(100% - 32px));min-height:100vh;margin:0 auto;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:28px;padding:32px 0}
.login-hero-panel{min-height:680px;border-radius:32px;background:var(--theme-gradient, linear-gradient(135deg,#0d6efd,#06b6d4));color:#fff;padding:34px;position:relative;overflow:hidden;box-shadow:0 24px 60px rgba(15,23,42,.18);display:flex;flex-direction:column;justify-content:space-between}
.login-hero-panel::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 10%,rgba(255,255,255,.24),transparent 28%),radial-gradient(circle at 20% 80%,rgba(255,255,255,.15),transparent 34%);pointer-events:none}
.login-brand-row,.login-hero-copy,.login-feature-grid,.login-store-address{position:relative;z-index:1}.login-brand-row{display:flex;align-items:center;gap:16px}.login-store-logo{width:68px;height:68px;border-radius:20px;background:#fff;display:grid;place-items:center;overflow:hidden;box-shadow:0 12px 26px rgba(0,0,0,.14)}.login-store-logo img{width:100%;height:100%;object-fit:cover}.login-brand-row h1{font-size:28px;font-weight:900;margin:0;line-height:1.05}.login-brand-row p{margin:4px 0 0;opacity:.88}.login-kicker{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:8px 12px;font-weight:800;margin-bottom:16px}.login-hero-copy h2{font-size:46px;line-height:1.03;font-weight:900;margin:0 0 16px;letter-spacing:-.04em}.login-hero-copy p{font-size:18px;line-height:1.55;opacity:.88;max-width:560px}.login-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.login-feature-grid div{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:18px;padding:16px;display:flex;align-items:center;gap:12px;font-weight:900;backdrop-filter:blur(8px)}.login-feature-grid i{font-size:24px}.login-store-address{display:inline-flex;align-items:center;gap:8px;opacity:.9;font-weight:700}
.login-form-panel{display:flex;justify-content:center}.login-card-pro{width:min(100%,460px);background:rgba(255,255,255,.86);border:1px solid rgba(226,232,240,.9);border-radius:28px;padding:28px;box-shadow:0 24px 60px rgba(15,23,42,.13);backdrop-filter:blur(12px)}.login-card-head{display:flex;align-items:center;gap:14px;margin-bottom:22px}.login-lock-icon{width:58px;height:58px;border-radius:18px;background:var(--theme-soft,#eaf2ff);color:var(--theme-accent,#0d6efd);display:grid;place-items:center;font-size:28px}.login-card-head h3{margin:0;font-size:28px;font-weight:900}.login-card-head p{margin:3px 0 0;color:#64748b}.login-input-group .input-group-text{background:#fff;color:var(--theme-accent,#0d6efd);border-radius:14px 0 0 14px}.login-input-group .form-control{border-radius:0 14px 14px 0}.login-submit{min-height:54px;border-radius:16px}.login-help-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;color:#64748b;font-size:14px}.login-help-row a{font-weight:900;color:var(--theme-accent,#0d6efd);display:inline-flex;align-items:center;gap:6px}.login-demo-box{border-top:1px solid var(--border);padding-top:16px}
.support-shell{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:36px 0}.support-card{border-radius:28px}.support-logo{width:64px;height:64px;border-radius:18px;background:#fff;display:grid;place-items:center;overflow:hidden;border:1px solid var(--border)}.support-logo img{width:100%;height:100%;object-fit:cover}.fw-black{font-weight:900}.support-info-box{height:100%;background:#f8fafc;border:1px solid var(--border);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:5px}.support-info-box i{font-size:24px;color:var(--theme-accent,#0d6efd)}.support-info-box span{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:900}.support-info-box strong{font-size:15px}.support-section{height:100%;border:1px solid var(--border);border-radius:18px;padding:18px;background:#fff}.support-section h2{font-size:19px;font-weight:900;margin:0 0 12px;display:flex;align-items:center;gap:8px}.support-section h2 i{color:var(--theme-accent,#0d6efd)}.support-section ul{margin:0;padding-left:20px;color:#334155}.support-section li{margin-bottom:8px}.support-footer-note{border-radius:16px;background:var(--theme-soft,#eaf2ff);color:#334155;padding:14px 16px;font-weight:800;display:flex;align-items:center;gap:8px}
@media(max-width:991.98px){.login-pro-shell{grid-template-columns:1fr;min-height:auto;padding:20px 0}.login-hero-panel{min-height:auto;padding:26px}.login-hero-copy h2{font-size:34px}.login-card-pro{max-width:100%}}
@media(max-width:575.98px){.login-pro-shell,.support-shell{width:min(100% - 20px,1120px)}.login-hero-panel{border-radius:24px;padding:22px}.login-brand-row h1{font-size:22px}.login-store-logo{width:56px;height:56px}.login-hero-copy h2{font-size:28px}.login-hero-copy p{font-size:15px}.login-feature-grid{grid-template-columns:1fr}.login-card-pro{border-radius:22px;padding:20px}.login-help-row{align-items:flex-start;flex-direction:column}.support-card{border-radius:22px;padding:20px!important}}

/* Support AI chatbot */
.support-chatbot-card{height:100%;border:1px solid var(--border);border-radius:22px;background:#fff;overflow:hidden;box-shadow:0 12px 28px rgba(15,23,42,.06)}
.chatbot-header{display:flex;align-items:center;gap:14px;padding:18px;border-bottom:1px solid var(--border);background:linear-gradient(135deg,var(--theme-soft,#eaf2ff),#fff)}
.chatbot-avatar{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:var(--theme-gradient,linear-gradient(135deg,#0d6efd,#075bd8));color:#fff;font-size:26px;box-shadow:0 10px 22px rgba(15,23,42,.12)}
.chatbot-header h2{font-size:20px;font-weight:900;margin:0}.chatbot-header p{margin:4px 0 0;color:#64748b;font-size:14px}.chatbot-quick-actions{display:flex;gap:8px;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid var(--border);background:#f8fafc}.chatbot-quick-actions button,.page-guide-list button{border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:8px 12px;font-weight:800;color:#334155}.chatbot-quick-actions button:hover,.page-guide-list button:hover{border-color:var(--theme-accent,#0d6efd);color:var(--theme-accent,#0d6efd);background:var(--theme-soft,#eaf2ff)}
.chatbot-window{height:360px;overflow:auto;padding:16px;background:#f8fafc}.chat-message{display:flex;margin-bottom:12px}.chat-message.user{justify-content:flex-end}.chat-bubble{max-width:86%;border-radius:18px;padding:12px 14px;line-height:1.45;font-size:14px;box-shadow:0 4px 12px rgba(15,23,42,.05)}.chat-message.bot .chat-bubble{background:#fff;border:1px solid var(--border);border-top-left-radius:6px}.chat-message.user .chat-bubble{background:var(--theme-gradient,linear-gradient(135deg,#0d6efd,#075bd8));color:#fff;border-top-right-radius:6px}.chatbot-input-row{display:flex;gap:10px;padding:14px;border-top:1px solid var(--border);background:#fff}.chatbot-input-row .form-control{border-radius:14px}.chatbot-input-row .btn{border-radius:14px;min-width:54px}.chatbot-hint{padding:0 14px 14px;color:#64748b;font-size:12px}.page-guide-list{display:flex;flex-wrap:wrap;gap:10px}.page-guide-list button{border-radius:14px;min-height:42px}
@media(max-width:575.98px){.chatbot-header{align-items:flex-start}.chatbot-window{height:330px}.chat-bubble{max-width:94%;font-size:13px}.chatbot-input-row{gap:8px}.chatbot-quick-actions button,.page-guide-list button{font-size:13px;padding:8px 10px}}


/* Database backup page */
.backup-table-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}.backup-table-card{display:flex;align-items:center;gap:10px;border:1px solid var(--border);background:#fff;border-radius:14px;padding:12px 14px;font-weight:700;cursor:pointer}.backup-table-card input{width:18px;height:18px}.backup-table-card:hover{border-color:var(--theme-start,#0d6efd);box-shadow:0 4px 12px rgba(15,23,42,.06)}
@media(max-width:575.98px){.backup-table-grid{grid-template-columns:1fr}.backup-page .btn{width:100%}}

/* Professional themed POS shell - applied to app pages only, excluding login/support standalone pages */
body:not(.login-page):not(.support-page){
  --pro-surface:#ffffff;
  --pro-bg:#eef3f8;
  --pro-border:#dbe4ef;
  --pro-text:#0f172a;
  --pro-muted:#64748b;
  --pro-shadow:0 18px 45px rgba(15,23,42,.08);
  background:radial-gradient(circle at top left, color-mix(in srgb, var(--theme-accent, #0d6efd) 13%, transparent), transparent 28%), var(--pro-bg);
}
body:not(.login-page):not(.support-page) .app-shell{
  min-height:100vh;
}
body:not(.login-page):not(.support-page) .sidebar{
  background:linear-gradient(180deg,#0b1220 0%,#111827 55%,#0f172a 100%);
  border-right:0;
  box-shadow:12px 0 38px rgba(15,23,42,.22);
  color:#fff;
}
body:not(.login-page):not(.support-page) .brand{
  padding:12px 10px 18px;
  border-radius:22px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
body:not(.login-page):not(.support-page) .brand h1{color:#fff;font-size:21px;letter-spacing:-.02em}
body:not(.login-page):not(.support-page) .brand p{color:#cbd5e1;font-weight:700}
body:not(.login-page):not(.support-page) .brand-logo{
  border:2px solid rgba(255,255,255,.22);
  box-shadow:0 12px 25px rgba(0,0,0,.24), 0 0 0 5px rgba(255,255,255,.06);
}
body:not(.login-page):not(.support-page) .sidebar .nav{padding-top:6px}
body:not(.login-page):not(.support-page) .sidebar .nav-link{
  color:#cbd5e1;
  border:1px solid transparent;
  border-radius:16px;
  margin-bottom:2px;
  font-weight:800;
  letter-spacing:-.01em;
}
body:not(.login-page):not(.support-page) .sidebar .nav-link i{
  display:grid;place-items:center;
  width:30px;height:30px;border-radius:12px;
  color:#e2e8f0;background:rgba(255,255,255,.06);
}
body:not(.login-page):not(.support-page) .sidebar .nav-link:hover,
body:not(.login-page):not(.support-page) .sidebar .nav-link.active{
  color:#fff!important;
  background:linear-gradient(135deg, color-mix(in srgb, var(--theme-accent, #0d6efd) 32%, transparent), rgba(255,255,255,.10))!important;
  border-color:rgba(255,255,255,.14);
  box-shadow:0 12px 24px rgba(0,0,0,.16);
}
body:not(.login-page):not(.support-page) .sidebar .nav-link:hover i,
body:not(.login-page):not(.support-page) .sidebar .nav-link.active i{
  background:var(--theme-gradient)!important;color:#fff!important;
}
body:not(.login-page):not(.support-page) .main{
  background:transparent;
}
body:not(.login-page):not(.support-page) .topbar{
  height:78px;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(226,232,240,.8);
  box-shadow:0 10px 30px rgba(15,23,42,.06);
}
.topbar-title-block{display:flex;flex-direction:column;min-width:0}
.desktop-page-title{font-size:21px;font-weight:950;line-height:1.1;letter-spacing:-.03em;color:#0f172a}
.desktop-page-subtitle{font-size:13px;font-weight:700;color:#64748b;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:560px}
body:not(.login-page):not(.support-page) .scanner-ready{
  border:1px solid rgba(34,197,94,.25);
  background:#f0fdf4;
  border-radius:999px;
  box-shadow:0 5px 14px rgba(22,163,74,.08);
}
body:not(.login-page):not(.support-page) .user-pill{
  background:#fff;
  border:1px solid var(--pro-border);
  padding:8px 12px;
  border-radius:999px;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}
body:not(.login-page):not(.support-page) .user-pill i:first-child{font-size:28px;color:var(--theme-accent, var(--blue))}
body:not(.login-page):not(.support-page) .content{
  padding:22px 26px 88px;
}
body:not(.login-page):not(.support-page) .card-soft{
  border:1px solid rgba(219,228,239,.95);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.94));
  box-shadow:var(--pro-shadow);
}
body:not(.login-page):not(.support-page) .section-title,
body:not(.login-page):not(.support-page) h2.section-title,
body:not(.login-page):not(.support-page) .card-soft h4{
  letter-spacing:-.03em;
  color:#0f172a;
}
body:not(.login-page):not(.support-page) .card-soft .text-muted{color:#64748b!important;font-weight:600}
body:not(.login-page):not(.support-page) .btn{
  border-radius:14px;
  font-weight:800;
}
body:not(.login-page):not(.support-page) .btn-primary{
  box-shadow:0 12px 24px var(--theme-ring, rgba(13,110,253,.18));
}
body:not(.login-page):not(.support-page) .btn-light,
body:not(.login-page):not(.support-page) .btn-outline-primary,
body:not(.login-page):not(.support-page) .btn-outline-danger,
body:not(.login-page):not(.support-page) .btn-outline-secondary{
  background:#fff;
  border-color:var(--pro-border)!important;
  box-shadow:0 6px 16px rgba(15,23,42,.04);
}
body:not(.login-page):not(.support-page) .form-control,
body:not(.login-page):not(.support-page) .form-select,
body:not(.login-page):not(.support-page) .input-group-text{
  border-radius:14px;
  border-color:#d7e1ee;
  min-height:42px;
}
body:not(.login-page):not(.support-page) .input-group .form-control{border-top-left-radius:0;border-bottom-left-radius:0}
body:not(.login-page):not(.support-page) .input-group .input-group-text{border-top-right-radius:0;border-bottom-right-radius:0}
body:not(.login-page):not(.support-page) .table{
  --bs-table-bg:transparent;
  border-collapse:separate;
  border-spacing:0 8px;
}
body:not(.login-page):not(.support-page) .table thead th{
  border:0!important;
  color:#475569;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
  background:#f8fafc!important;
}
body:not(.login-page):not(.support-page) .table tbody tr{
  background:#fff;
  box-shadow:0 5px 18px rgba(15,23,42,.04);
}
body:not(.login-page):not(.support-page) .table tbody td{
  border-top:1px solid #edf2f7!important;
  border-bottom:1px solid #edf2f7!important;
}
body:not(.login-page):not(.support-page) .table tbody td:first-child{border-left:1px solid #edf2f7!important;border-top-left-radius:14px;border-bottom-left-radius:14px}
body:not(.login-page):not(.support-page) .table tbody td:last-child{border-right:1px solid #edf2f7!important;border-top-right-radius:14px;border-bottom-right-radius:14px}
body:not(.login-page):not(.support-page) .badge{
  border-radius:999px;
  padding:.5rem .75rem;
}
body:not(.login-page):not(.support-page) .stock-badge{
  border-radius:999px;
  padding:6px 11px;
}
body:not(.login-page):not(.support-page) .statusbar{
  height:58px;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(16px);
  border-top:1px solid rgba(226,232,240,.9);
  box-shadow:0 -10px 30px rgba(15,23,42,.05);
}
body:not(.login-page):not(.support-page) .modal-content{
  border-radius:24px;
  border:1px solid var(--pro-border);
  box-shadow:0 30px 80px rgba(15,23,42,.24);
}
body:not(.login-page):not(.support-page) .modal-header{
  border-bottom:1px solid #edf2f7;
  background:linear-gradient(180deg,#fff,#f8fafc);
}
/* Professional dashboard KPI cards */
.dashboard-page>.row:first-of-type .card-soft{
  position:relative;overflow:hidden;
}
.dashboard-page>.row:first-of-type .card-soft:before{
  content:"";position:absolute;right:-24px;top:-28px;width:90px;height:90px;border-radius:50%;
  background:var(--theme-gradient);opacity:.10;
}
.dashboard-page>.row:first-of-type .fs-2{letter-spacing:-.04em}
/* POS register polish */
body:not(.login-page):not(.support-page) .summary-total{
  color:var(--theme-accent, var(--blue));
  font-size:30px;
  letter-spacing:-.04em;
}
body:not(.login-page):not(.support-page) .receipt-paper{
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#fbfdff);
}
.odoo-product-card{
  border-radius:20px!important;
  box-shadow:0 10px 25px rgba(15,23,42,.07)!important;
}
.odoo-product-card:hover{
  border-color:var(--theme-accent, var(--blue))!important;
  box-shadow:0 18px 36px rgba(15,23,42,.12)!important;
}
.odoo-price-badge,
.product-price-tag{
  background:var(--theme-gradient)!important;
  color:#fff!important;
  box-shadow:0 8px 18px var(--theme-ring, rgba(13,110,253,.18));
}
/* Settings/backup/returns professional sections */
.receipt-print-option,
.theme-choice,
.support-info-box,
.return-search-card{
  border-radius:18px!important;
}
.theme-choice.selected{
  background:linear-gradient(180deg,#fff,var(--theme-soft));
}
/* Mobile pro polish */
@media(max-width:1100px){
  body:not(.login-page):not(.support-page) .sidebar .brand{background:transparent;border:0;box-shadow:none;padding:4px 0 12px}
  .desktop-page-subtitle{max-width:360px}
}
@media(max-width:767.98px){
  body:not(.login-page):not(.support-page) .topbar{height:66px}
  .desktop-page-title,.desktop-page-subtitle{display:none}
  body:not(.login-page):not(.support-page) .content{padding:14px 12px 90px}
  body:not(.login-page):not(.support-page) .sidebar{background:linear-gradient(180deg,#0b1220,#111827)!important}
  body:not(.login-page):not(.support-page) .table tbody tr{box-shadow:none}
}
@media(min-width:768px){
  .mobile-page-title{display:none!important}
}


/* Desktop sidebar hide / unhide toggle */
.desktop-sidebar-toggle{
    width:100%;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.08);
    color:#e5e7eb;
    cursor:pointer;
    display:none;
    text-align:left;
}
.desktop-sidebar-toggle:hover{background:rgba(255,255,255,.16);color:#fff}
.desktop-sidebar-toggle i{font-size:22px}
@media(min-width:1100.01px){
    .desktop-sidebar-toggle{display:flex}
    .app-shell.sidebar-collapsed .sidebar{width:88px;padding:18px 10px;align-items:center}
    .app-shell.sidebar-collapsed .brand{justify-content:center;width:100%;padding-right:0}
    .app-shell.sidebar-collapsed .brand>div:last-child{display:none!important}
    .app-shell.sidebar-collapsed .brand-icon{width:50px;height:50px;border-radius:16px}
    .app-shell.sidebar-collapsed .sidebar .nav{width:100%;align-items:center}
    .app-shell.sidebar-collapsed .sidebar .nav-link,
    .app-shell.sidebar-collapsed .sidebar .desktop-sidebar-toggle{width:58px;height:58px;justify-content:center;padding:0;border-radius:18px;gap:0;position:relative}
    .app-shell.sidebar-collapsed .sidebar .nav-link span,
    .app-shell.sidebar-collapsed .sidebar .desktop-sidebar-toggle span{display:none!important}
    .app-shell.sidebar-collapsed .sidebar .nav-link i,
    .app-shell.sidebar-collapsed .sidebar .desktop-sidebar-toggle i{font-size:24px;margin:0}
    .app-shell.sidebar-collapsed .main{margin-left:88px!important}
    .app-shell.sidebar-collapsed .statusbar{left:88px!important}
    .app-shell.sidebar-collapsed .sidebar .nav-link::after,
    .app-shell.sidebar-collapsed .sidebar .desktop-sidebar-toggle::after{
        content:attr(title);
        position:absolute;
        left:72px;
        top:50%;
        transform:translateY(-50%);
        background:#0f172a;
        color:#fff;
        padding:7px 10px;
        border-radius:10px;
        font-size:12px;
        white-space:nowrap;
        opacity:0;
        pointer-events:none;
        transition:.15s ease;
        box-shadow:0 8px 18px rgba(15,23,42,.18);
        z-index:50;
    }
    .app-shell.sidebar-collapsed .sidebar .nav-link:hover::after,
    .app-shell.sidebar-collapsed .sidebar .desktop-sidebar-toggle:hover::after{opacity:1}
}
@media(max-width:1100px){.desktop-sidebar-toggle{display:none!important}}

/* Theme settings repair: restore visible gradient swatches/cards */
.theme-choice-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(150px,1fr))!important;
  gap:12px!important;
}
.theme-choice{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:left!important;
  gap:12px!important;
  min-height:92px!important;
  padding:14px!important;
  border:1px solid #dbe4ef!important;
  background:#fff!important;
  border-radius:18px!important;
  cursor:pointer!important;
}
.theme-choice .theme-swatch{
  display:block!important;
  flex:0 0 48px!important;
  width:48px!important;
  height:48px!important;
  border-radius:16px!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35), 0 8px 18px rgba(15,23,42,.14)!important;
}
.theme-choice .theme-copy{display:flex!important;flex-direction:column!important;min-width:0!important}
.theme-choice .theme-copy strong{font-size:15px!important;font-weight:900!important;text-transform:none!important;color:#0f172a!important}
.theme-choice .theme-copy small{font-size:12px!important;color:#64748b!important;margin-top:5px!important;white-space:normal!important}
.theme-choice.theme-swatch-ocean .theme-swatch{background:linear-gradient(135deg,#0d6efd,#06b6d4)!important}
.theme-choice.theme-swatch-sunset .theme-swatch{background:linear-gradient(135deg,#f97316,#ec4899)!important}
.theme-choice.theme-swatch-forest .theme-swatch{background:linear-gradient(135deg,#059669,#14b8a6)!important}
.theme-choice.theme-swatch-royal .theme-swatch{background:linear-gradient(135deg,#7c3aed,#4f46e5)!important}
.theme-choice.theme-swatch-rose .theme-swatch{background:linear-gradient(135deg,#e11d48,#ef4444)!important}
.theme-choice.selected{
  border-color:var(--theme-accent,#0d6efd)!important;
  box-shadow:0 0 0 .22rem var(--theme-ring,rgba(13,110,253,.18))!important;
  background:linear-gradient(180deg,#fff,var(--theme-soft,#eaf2ff))!important;
}
.theme-choice.selected .theme-check{opacity:1!important}
@media(max-width:991.98px){.theme-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:575.98px){.theme-choice-grid{grid-template-columns:1fr!important}}

/* Mobile camera barcode / QR scanner */
.camera-scanner-dialog{max-width:760px}
.camera-scanner-modal{border-radius:22px;overflow:hidden}
.camera-scanner-box{background:#020617;border-radius:18px;padding:12px;min-height:360px;display:flex;align-items:center;justify-content:center;overflow:hidden}
#cameraScannerReader{width:100%;max-width:640px;border-radius:14px;overflow:hidden}
#cameraScannerReader video{border-radius:14px!important}
.camera-scanner-status{border-radius:14px;padding:10px 12px;font-weight:800;border:1px solid #e2e8f0;background:#f8fafc;color:#334155}
.camera-scanner-status-success{background:#dcfce7;border-color:#bbf7d0;color:#166534}
.camera-scanner-status-danger{background:#fee2e2;border-color:#fecaca;color:#991b1b}
.camera-scanner-status-info{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
@media(max-width:575.98px){
  .camera-scanner-dialog{margin:0;max-width:100%;height:100%}
  .camera-scanner-modal{min-height:100vh;border-radius:0}
  .camera-scanner-box{min-height:58vh;border-radius:16px}
  #openCameraScannerBtn span{display:none!important}
}


/* Current Sale cart: show around 10 line items, then scroll inside the group */
.current-sale-scroll{
  max-height:560px;
  overflow-y:auto!important;
  overflow-x:auto;
  border:1px solid var(--border);
  border-radius:12px;
}
.current-sale-scroll .table{margin-bottom:0}
.current-sale-scroll thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f8fafc;
}
.current-sale-scroll::-webkit-scrollbar{width:10px;height:10px}
.current-sale-scroll::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px;border:2px solid #f8fafc}
.current-sale-scroll::-webkit-scrollbar-track{background:#f8fafc;border-radius:999px}
@media(max-width:767.98px){
  .current-sale-scroll{
    max-height:720px;
    overflow-y:auto!important;
    overflow-x:hidden;
    padding:6px;
  }
}

/* Expanded POS scan area after removing Product Search */
.pos-scan-wide .form-control{min-height:58px;font-size:1.1rem}
.pos-scan-wide .btn{min-width:190px}
@media(max-width:575.98px){
  .pos-scan-wide{display:grid!important;grid-template-columns:auto 1fr;gap:0}
  .pos-scan-wide .btn{grid-column:1 / -1;width:100%;border-radius:0 0 12px 12px;margin-top:8px;min-width:0}
  .pos-scan-wide .input-group-text{border-radius:12px 0 0 12px}
  .pos-scan-wide .form-control{border-radius:0 12px 12px 0!important;font-size:1rem}
}

/* POS keyboard shortcut hints */
.shortcut-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 8px;
    background: rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.35);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .02em;
}
kbd {
    border-radius: 6px;
    padding: 2px 6px;
    background: #0f172a;
    color: #fff;
    font-size: 11px;
}
@media (max-width: 575.98px) {
    .shortcut-key { display: none; }
}
.shortcut-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2000;
    padding: 12px 16px;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(15,23,42,.24);
    opacity: 0;
    transform: translateY(10px);
    transition: .2s ease;
}
.shortcut-toast.show {
    opacity: 1;
    transform: translateY(0);
}


/* Professional POS message / confirm modal */
.app-dialog-wrap{max-width:460px}
.app-dialog-modal{border:0;border-radius:24px;overflow:hidden;box-shadow:0 24px 50px rgba(15,23,42,.22)}
.app-dialog-topbar{height:6px;background:var(--theme-gradient, linear-gradient(135deg,#0d6efd,#06b6d4))}
.app-dialog-body{padding:24px 24px 12px;display:flex;gap:16px;align-items:flex-start}
.app-dialog-icon{width:56px;height:56px;flex:0 0 56px;border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:28px;background:#eff6ff;color:var(--theme-accent, var(--blue))}
.app-dialog-copy{min-width:0}
.app-dialog-title{font-size:22px;font-weight:900;line-height:1.15;color:#0f172a;margin-bottom:8px}
.app-dialog-message{font-size:15px;line-height:1.65;color:#475569}
.app-dialog-footer{padding:0 24px 24px;display:flex;gap:10px}
.app-dialog-footer .btn{min-width:110px;border-radius:14px;padding:.75rem 1rem}
.app-dialog-confirm{background:var(--theme-gradient, linear-gradient(135deg,#0d6efd,#06b6d4));border:0;color:#fff;box-shadow:0 10px 22px var(--theme-ring, rgba(13,110,253,.18))}
.app-dialog-confirm:hover{color:#fff;filter:brightness(.98)}
.app-dialog-cancel{border:1px solid var(--border);background:#fff}
#appDialogModal.app-dialog-success .app-dialog-icon{background:#ecfdf3;color:#16a34a}
#appDialogModal.app-dialog-success .app-dialog-topbar{background:linear-gradient(135deg,#22c55e,#16a34a)}
#appDialogModal.app-dialog-warning .app-dialog-icon{background:#fff7ed;color:#ea580c}
#appDialogModal.app-dialog-warning .app-dialog-topbar{background:linear-gradient(135deg,#f59e0b,#f97316)}
#appDialogModal.app-dialog-danger .app-dialog-icon{background:#fff1f2;color:#e11d48}
#appDialogModal.app-dialog-danger .app-dialog-topbar{background:linear-gradient(135deg,#ef4444,#e11d48)}
#appDialogModal.app-dialog-info .app-dialog-icon{background:#eff6ff;color:#2563eb}
#appDialogModal.app-dialog-info .app-dialog-topbar{background:linear-gradient(135deg,#2563eb,#06b6d4)}
@media (max-width:575.98px){
  .app-dialog-wrap{max-width:calc(100vw - 18px);margin:.75rem auto}
  .app-dialog-body{padding:20px 18px 8px}
  .app-dialog-footer{padding:0 18px 18px;flex-direction:column-reverse}
  .app-dialog-footer .btn{width:100%}
  .app-dialog-icon{width:48px;height:48px;flex-basis:48px;border-radius:16px;font-size:24px}
  .app-dialog-title{font-size:19px}
}


/* Tablet-friendly sidebar toggle placement and behavior */
.sidebar-toggle-top{margin-bottom:8px}
@media(min-width:768px){
  .desktop-sidebar-toggle{display:flex!important;align-items:center}
}
@media(min-width:768px) and (max-width:1100px){
  .sidebar .desktop-sidebar-toggle{width:56px;height:56px;justify-content:center;padding:0;border-radius:16px;font-size:0;gap:0;margin-bottom:8px}
  .sidebar .desktop-sidebar-toggle span{display:none!important}
  .sidebar .desktop-sidebar-toggle i{font-size:25px;margin:0}
  .app-shell.sidebar-collapsed .sidebar{transform:translateX(-110%);transition:transform .25s ease}
  .app-shell.sidebar-collapsed .main{margin-left:0!important}
  .app-shell.sidebar-collapsed .statusbar{left:0!important}
  .app-shell.sidebar-collapsed .menu-toggle{display:inline-flex!important}
}
