:root{--page: #f4f6f8;--panel: #ffffff;--text: #1f2937;--muted: #667085;--border: #d7dde5;--primary: #0f766e;--primary-dark: #0b5f59;--danger: #b42318;--success: #067647;--sidebar: #17202b;--sidebar-text: #e5edf5;--shadow: 0 12px 30px rgba(15, 23, 42, .08)}*{box-sizing:border-box}body{margin:0;color:var(--text);background:var(--page);font-family:Arial,Helvetica,sans-serif;letter-spacing:0}a{color:var(--primary);text-decoration:none}button,input,select,textarea{font:inherit}input,select,textarea{width:100%;min-height:40px;padding:9px 10px;border:1px solid var(--border);border-radius:6px;background:#fff}.input-error{border-color:var(--danger);background:#fff8f7}.field-error{color:var(--danger);font-size:12px;font-weight:700}textarea{min-height:84px;resize:vertical}label{display:grid;gap:6px;color:var(--muted);font-size:13px;font-weight:700}.auth-body,.welcome-body{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.auth-card,.welcome-panel{width:min(100%,460px);padding:28px;background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow)}.auth-card h1,.welcome-panel h1{margin:0 0 8px;font-size:28px}.auth-card p,.welcome-copy,.muted{color:var(--muted)}.welcome-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.welcome-kicker{color:var(--primary);font-size:13px;font-weight:700;text-transform:uppercase}.welcome-status{display:flex;justify-content:space-between;gap:12px;padding:12px;background:#e8f6f4;border-radius:8px}.app-body{min-height:100vh;display:grid;grid-template-columns:1fr}.app-body.sidebar-collapsed{grid-template-columns:1fr}.sidebar-backdrop{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:39;background:#0f172a6b}.app-body:not(.sidebar-collapsed) .sidebar-backdrop{display:block}.sidebar{position:fixed;top:0;left:0;z-index:40;width:280px;height:100%;padding:16px;background:var(--sidebar);color:var(--sidebar-text);overflow-y:auto;transition:transform .18s ease}.app-body.sidebar-collapsed .sidebar{transform:translate(-100%)}.brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:800;margin-bottom:14px}.brand-mark{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:8px;background:#fff}.brand-copy{display:grid;gap:2px;min-width:0}.brand-copy span:last-child{color:#e5edf5ad;font-size:12px;font-weight:700}.brand-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-status{display:grid;gap:4px;margin-bottom:14px;padding:10px 11px;border:1px solid rgba(255,255,255,.08);border-radius:8px;background:#ffffff0a}.sidebar-status span{color:#e5edf5ad;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.sidebar-status strong{overflow:hidden;color:#fff;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.sidebar-nav{display:grid;gap:14px;padding-bottom:18px}.nav-group{display:grid;gap:4px}.nav-group-label{padding:0 10px 3px;color:#e5edf57a;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.nav-link{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:40px;color:var(--sidebar-text);padding:7px 9px;border-radius:8px;font-weight:800}.nav-link:hover{background:#ffffff14}.nav-link.active{color:#fff;background:#0f766eeb;box-shadow:0 8px 18px #00000029}.nav-link.active:before{content:"";position:absolute;left:-16px;top:8px;bottom:8px;width:3px;border-radius:999px;background:#7dd3c7}.nav-mark{display:inline-grid;place-items:center;width:30px;height:28px;border-radius:7px;color:#e5edf5db;background:#ffffff14;font-size:10px;font-weight:900}.nav-link.active .nav-mark{color:#0b5f59;background:#fff}.nav-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;font-weight:900;line-height:1}.nav-badge-hidden{display:none}.app-shell{min-width:0;overflow-x:hidden}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 24px;background:#fff;border-bottom:1px solid var(--border)}.topbar-title{display:flex;align-items:center;gap:12px;min-width:0}.topbar-title>div{min-width:0}.topbar h1{margin:0;font-size:24px}.topbar p{margin:3px 0 0;color:var(--muted)}.topbar-actions{display:flex;align-items:center;gap:8px}.sidebar-toggle{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:0 0 auto;width:42px;height:42px;padding:0;border:1px solid var(--border);border-radius:6px;background:#fff;cursor:pointer}.sidebar-toggle span{display:block;width:18px;height:2px;background:var(--text);border-radius:999px}.pos-floating-menu{position:fixed;top:14px;left:14px;z-index:45;box-shadow:var(--shadow);transition:left .18s ease,right .18s ease,background .1s,border-color .1s,color .1s}.app-body:not(.sidebar-collapsed) .pos-floating-menu{left:294px}.pos-floating-notif{position:fixed;top:14px;right:14px;z-index:45}.electron-history-controls{position:fixed;top:14px;left:64px;z-index:38;display:inline-flex;overflow:hidden;border:1px solid var(--border);border-radius:7px;background:var(--panel);box-shadow:var(--shadow)}.electron-history-controls button{display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-right:1px solid var(--border);color:var(--text);background:transparent;font-size:26px;line-height:0;cursor:pointer}.electron-history-controls button span{width:38px;height:40px;display:block;padding:18px 0}.electron-history-controls button:last-child{border-right:0}.electron-history-controls button:hover{color:var(--primary-active);background:var(--hover)}.electron-history-controls button:disabled,.electron-history-controls button:disabled:hover{color:var(--muted);background:transparent;opacity:.45;cursor:not-allowed}[dir=rtl] body{direction:rtl}[dir=rtl] .electron-history-controls{right:64px;left:auto}.electron-history-controls.electron-history-inline{position:static;flex:0 0 auto;box-shadow:none}[dir=rtl] .electron-history-controls.electron-history-inline{right:auto}[dir=rtl] .pos-floating-menu{right:14px;left:auto}[dir=rtl] .app-body:not(.sidebar-collapsed) .pos-floating-menu{right:294px;left:auto}[dir=rtl] .pos-floating-notif{right:auto;left:14px}.content{padding:24px;display:grid;gap:18px}.pos-page .content{padding:14px 18px 18px 64px;gap:12px;min-height:auto}.pos-page.pos-cart-only-page .content{padding-top:68px}.pos-dine-in-unavailable{margin:-2px 0 0;padding:9px 11px;border:1px solid color-mix(in srgb,#d97706 30%,var(--border));border-radius:var(--radius-control);color:#92400e;background:color-mix(in srgb,#f59e0b 10%,var(--panel))}.pos-dine-in-unavailable a{margin-inline-start:5px;color:var(--primary);font-weight:750;text-decoration:underline}html[data-theme=dark] .pos-dine-in-unavailable{color:#fbbf24}.panel{margin-bottom:18px}.panel,.metric-card{background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow)}.panel{padding:18px;overflow-x:auto}.panel-header,.toolbar,.filter-row,.form-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.panel h2{margin:0;font-size:18px}.button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border:1px solid transparent;border-radius:6px;cursor:pointer;font-weight:700}.button-primary{color:#fff;background:var(--primary)}.button-primary:hover{background:var(--primary-dark)}.button-secondary{color:var(--text);background:#fff;border-color:var(--border)}.button-danger{color:#fff;background:var(--danger)}.button-full{width:100%}.alert{padding:12px 14px;border-radius:8px;border:1px solid}.alert-success{color:var(--success);background:#ecfdf3;border-color:#abefc6}.alert-danger{color:var(--danger);background:#fef3f2;border-color:#fecdca}.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-bottom:14px}.metric-card{padding:16px;display:grid;gap:8px}.metric-card span{color:var(--muted);font-size:13px;font-weight:700}.metric-card strong{font-size:24px}.data-table{width:100%;border-collapse:collapse;min-width:720px}.data-table th,.data-table td{padding:10px 11px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}.data-table th{color:var(--muted);font-size:12px;text-transform:uppercase}.text-right{text-align:right}.empty-cell{text-align:center;color:var(--muted);padding:24px}.actions{display:flex;align-items:center;gap:10px}.actions form{margin:0}.actions button{color:var(--danger);background:transparent;border:0;cursor:pointer;padding:0}.maintenance-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.maintenance-card{display:grid;gap:12px;padding:14px;border:1px solid var(--border);border-radius:8px;background:#fbfcfe}.maintenance-card h3{margin:0;font-size:17px}.maintenance-card p{margin:0;color:var(--muted);line-height:1.45}.products-panel{display:grid;gap:14px}.product-filter-bar{display:grid;grid-template-columns:minmax(220px,1.4fr) repeat(5,minmax(140px,1fr)) auto;gap:10px;align-items:end}.product-filter-bar .button{min-width:84px}.product-name-link{display:inline-block;max-width:320px;color:var(--text);font-weight:800;line-height:1.25}.product-cell{display:flex;align-items:center;gap:10px;min-width:0}.product-thumb{flex:0 0 auto;width:46px;height:46px;border:1px solid var(--border);border-radius:8px;object-fit:cover;background:#f8fafc}.product-thumb-empty{display:inline-grid;place-items:center;color:var(--primary-dark);background:#e8f6f4;font-size:18px;font-weight:900}.table-subtext{display:block;margin-top:3px;color:var(--muted);font-size:12px}.stock-pill,.status-pill{display:inline-flex;align-items:center;justify-content:center;min-width:72px;padding:5px 8px;border-radius:999px;font-size:12px;font-weight:800}.stock-success,.status-active{color:#067647;background:#ecfdf3}.stock-warning{color:#b54708;background:#fffaeb}.stock-danger,.status-inactive{color:var(--danger);background:#fef3f2}[data-product-results]{position:relative;min-height:180px}[data-product-results].is-loading{opacity:.55;pointer-events:none}.form-stack{display:grid;gap:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.span-2{grid-column:span 2}.checkbox{display:flex;align-items:center;gap:8px;color:var(--text)}.checkbox input{width:auto;min-height:auto}.form-group{display:grid;gap:5px;margin-bottom:14px}.form-group:last-child{margin-bottom:0}.form-label{color:var(--muted);font-size:13px;font-weight:700}.form-label .text-danger{color:var(--danger)}.is-invalid{border-color:var(--danger)!important;background:#fff8f7!important}.invalid-feedback{display:block;color:var(--danger);font-size:12px;font-weight:700}.form-check{display:flex;align-items:center;gap:8px}.form-check-input{width:16px;height:16px;min-height:16px!important;flex-shrink:0;cursor:pointer;accent-color:#16a34a;border-radius:3px}.form-check-label{font-size:14px;font-weight:500;color:var(--text);cursor:pointer}.check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.subpanel{padding:14px;border:1px solid var(--border);border-radius:8px;background:#fbfcfe}.variant-row,.line-row,.payment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-top:8px}.filter-row{justify-content:flex-start}.filter-row input{max-width:180px}.report-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:4px 0}.report-tabs a{display:inline-flex;align-items:center;min-height:38px;padding:8px 12px;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--text);font-weight:700}.report-tabs a.active{color:#fff;background:var(--primary);border-color:var(--primary)}.product-picker-select{position:absolute;width:1px;height:1px;min-height:0;opacity:0;pointer-events:none}.product-picker{position:relative;min-width:0}.product-picker-search{min-width:170px}.product-picker-menu{position:absolute;z-index:40;top:calc(100% + 4px);left:0;right:0;max-height:280px;overflow-y:auto;padding:6px;border:1px solid var(--border);border-radius:8px;background:#fff;box-shadow:var(--shadow)}.product-picker-menu button{display:grid;gap:3px;width:100%;padding:9px 10px;border:0;border-radius:6px;background:#fff;text-align:left;cursor:pointer}.product-picker-menu button:hover{background:#e8f6f4}.product-picker-menu strong{color:var(--text);line-height:1.25}.product-picker-menu span,.product-picker-empty{color:var(--muted);font-size:12px}.product-picker-empty{padding:10px}.image-upload-field{display:grid;gap:10px;padding:12px;border:1px solid var(--border);border-radius:8px;background:#fbfcfe}.image-upload-field p{margin:0;color:var(--muted);font-size:13px}.current-product-image{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.current-product-image img{width:110px;height:110px;border:1px solid var(--border);border-radius:8px;object-fit:cover;background:#fff}.product-detail-card{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start}.product-detail-image{display:grid;place-items:center;overflow:hidden;width:100%;aspect-ratio:1;border:1px solid var(--border);border-radius:8px;background:#f8fafc}.product-detail-image img{width:100%;height:100%;object-fit:cover}.product-detail-image span{color:var(--primary-dark);font-size:72px;font-weight:900}.product-detail-copy h2{margin:4px 0 8px;font-size:26px}.product-detail-copy p{margin:0 0 14px;color:var(--muted);line-height:1.5}.product-detail-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.product-detail-meta span{padding:9px 10px;border:1px solid var(--border);border-radius:8px;background:#fbfcfe;color:var(--muted);font-size:13px}.product-detail-meta strong{color:var(--text)}.item-builder{display:grid;gap:12px}.item-builder-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.item-builder-header h2{margin:0}.item-builder-header p{margin:3px 0 0;color:var(--muted);font-size:13px}.item-builder-header strong{flex:0 0 auto;min-width:78px;padding:7px 10px;border-radius:999px;color:var(--primary-dark);background:#e8f6f4;font-size:12px;text-align:center}.item-builder-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.item-builder-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;max-height:260px;overflow-y:auto;padding:2px 4px 2px 0}.item-builder-results button{display:grid;gap:5px;min-height:76px;padding:11px;border:1px solid var(--border);border-radius:8px;background:#fff;text-align:left;cursor:pointer}.item-builder-results button:hover{border-color:var(--primary);box-shadow:0 8px 18px #0f766e1a}.item-builder-results button.is-selected{border-color:#b7ddd8;background:#e8f6f4}.item-builder-results strong,.item-builder-product strong{overflow-wrap:anywhere;color:var(--text);line-height:1.25}.item-builder-results span,.item-builder-product span{color:var(--muted);font-size:12px;line-height:1.35}.item-builder-empty{grid-column:1 / -1;display:grid;place-items:center;min-height:84px;padding:14px;border:1px dashed var(--border);border-radius:8px;color:var(--muted);background:#fff;font-weight:800;text-align:center}.item-builder-lines{display:grid;gap:8px}.item-builder-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(96px,128px) minmax(116px,148px) 34px;align-items:end;gap:10px;padding:11px;border:1px solid var(--border);border-radius:8px;background:#fff}.item-builder-row:not(:has([data-field=unit_cost])){grid-template-columns:minmax(180px,1fr) minmax(96px,128px) 34px}.item-builder-product{display:grid;gap:4px;align-self:center;min-width:0}.item-builder-row label{min-width:0}.item-builder-row .remove-line{align-self:end}.pos-workspace,.pos-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(520px,1fr);gap:18px;align-items:start}.pos-products,.pos-cart{min-width:0;min-height:calc(100vh - 142px)}.pos-page .pos-products,.pos-page .pos-cart{min-height:calc(100vh - 32px)}.pos-page .pos-workspace{min-height:calc(100vh - 32px);height:100%}.pos-products{display:grid;grid-template-rows:auto auto auto minmax(0,1fr);overflow-x:visible}.pos-cart{position:sticky;top:14px;overflow:visible;padding:16px 16px 86px}.pos-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.pos-panel-header h2{margin:0;font-size:18px}.pos-panel-header p{margin:3px 0 0;color:var(--muted);font-size:13px}.section-kicker{color:var(--primary);font-size:11px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.pos-header-pro{padding-bottom:10px;border-bottom:1px solid var(--border)}.pos-rate-badge{display:inline-flex;align-items:center;min-height:34px;padding:7px 10px;border:1px solid #b7ddd8;border-radius:6px;color:var(--primary-dark);background:#e8f6f4;font-size:12px;font-weight:900;white-space:nowrap}.pos-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-bottom:12px}.pos-search-pro{margin-bottom:10px;padding:10px;border:1px solid var(--border);border-radius:8px;background:#fbfcfe}.pos-search{min-height:48px;border-color:#c9d5df;font-size:18px;font-weight:700}.pos-search:focus{outline:2px solid rgba(15,118,110,.18);border-color:var(--primary)}.category-strip{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px;padding-bottom:4px;overflow:visible;scrollbar-width:thin}.category-strip button{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;min-height:36px;padding:7px 10px 7px 12px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--text);cursor:pointer;font-weight:700}.category-strip button em{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 6px;border-radius:999px;color:var(--muted);background:#f1f5f9;font-size:11px;font-style:normal;font-weight:900}.category-strip button.active{color:#fff;background:var(--primary);border-color:var(--primary)}.category-strip button.active:hover span{color:var(--primary-active)}.category-strip button.active em{color:var(--primary-dark);background:#fff}.product-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;max-height:calc(100vh - 20px);overflow-y:auto;padding:2px 4px 4px 0}.product-tile,.product-results button{display:grid;grid-template-rows:112px minmax(44px,auto) auto 1fr;gap:8px;min-height:242px;text-align:left;padding:13px;border:1px solid var(--border);border-radius:8px;background:#fff;cursor:pointer}.product-tile[hidden],.product-results button[hidden]{display:none}.product-tile:hover,.product-results button:hover{border-color:var(--primary);box-shadow:0 8px 18px #0f766e1f}.product-tile-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.product-tile strong,.product-results strong{display:block;color:var(--text);line-height:1.25}.product-tile small,.product-results small{flex:0 0 auto;min-width:48px;padding:4px 6px;border-radius:999px;color:#067647;background:#ecfdf3;font-size:11px;font-weight:900;text-align:center}.product-tile span,.product-results span{display:block;color:var(--muted);font-size:12px}.product-tile .product-tile-top,.product-results .product-tile-top{display:flex}.product-tile-image{display:block;width:100%;height:112px;border:1px solid var(--border);border-radius:8px;object-fit:cover;background:#f8fafc}.product-tile-image-empty{display:grid;place-items:center;color:var(--primary-dark);background:#e8f6f4;font-size:34px;font-weight:900}.product-tile em,.product-results em{align-self:end;color:var(--primary-dark);font-style:normal;font-weight:800;font-size:20px}.pos-empty-state{grid-column:1 / -1;display:grid;place-items:center;min-height:180px;border:1px dashed var(--border);border-radius:8px;color:var(--muted);background:#fbfcfe;font-weight:800}.cart-table-wrap{max-height:none;overflow:visible;border:0;border-radius:0}.pos-cart-table{display:block;min-width:0}.pos-cart-table thead{display:none}.pos-cart-table tbody{display:grid;gap:10px;padding:2px}.pos-cart-table tr{display:grid;grid-template-columns:minmax(140px,1fr) 118px 78px 96px 32px;align-items:center;gap:6px;padding:12px;border:1px solid var(--border);border-radius:8px;background:#fff}.pos-cart-table td{display:grid;gap:4px;min-width:0;padding:0;border:0}.cart-line-item strong{display:block;overflow-wrap:anywhere;color:var(--text);font-size:15px;line-height:1.25}.cart-line-item small{display:block;margin-top:4px}.cart-control{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.qty-stepper{display:grid;grid-template-columns:28px minmax(46px,1fr) 28px;gap:4px}.qty-stepper button{min-height:42px;border:1px solid var(--border);border-radius:6px;background:#f8fafc;color:var(--text);cursor:pointer;font-size:18px;font-weight:900}.pos-cart-table input{min-width:0;padding:9px 10px;min-height:42px;font-weight:800}.pos-cart-table small{color:var(--muted)}.cart-line-total{display:grid;gap:4px;justify-items:end;align-self:center}.cart-line-total span{color:var(--muted);font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.cart-line-total strong{color:var(--text);font-size:16px;font-weight:900;white-space:nowrap;min-width:0}.cart-line-remove{justify-items:end;align-self:center}.cart-empty-row{grid-template-columns:1fr!important}.remove-line{width:30px;min-height:32px;padding:0;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--danger);cursor:pointer;font-weight:800}.pos-summary{position:sticky;bottom:92px;z-index:2;display:grid;gap:10px;margin:12px 0;padding:12px;border:1px solid var(--border);border-radius:8px;background:#fbfcfe}.summary-row,.cart-total{display:flex;justify-content:space-between;align-items:center;gap:12px}.summary-row{color:var(--muted);font-size:15px}.summary-row strong{color:var(--text);font-size:16px}.cart-total{padding-top:12px;border-top:1px solid var(--border);font-size:28px;font-weight:800}.pos-order-options{display:grid;grid-template-columns:minmax(130px,.65fr) minmax(220px,1.35fr);gap:10px;margin:12px 0;padding:12px;border:1px solid var(--border);border-radius:8px;background:#fff}.pos-order-options label{display:grid;gap:5px;font-weight:700;color:var(--text)}.pos-order-options select,.pos-order-options input,.pos-order-options textarea{width:100%;border:1px solid var(--border);border-radius:6px;padding:8px 10px;font:inherit;box-sizing:border-box}.pos-order-options textarea{resize:vertical;min-height:74px}.pos-payment-panel{position:sticky;bottom:76px;z-index:3;display:grid;gap:10px;margin-bottom:12px;padding:12px;border:1px solid var(--border);border-radius:8px;background:#fff}.pos-payment-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.pos-payment-header h3{margin:0;font-size:18px}.pos-payment-header p{margin:3px 0 0;color:var(--muted);font-size:12px}.pos-change-box{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pos-change-box div{display:grid;gap:6px;padding:12px;border:1px solid var(--border);border-radius:8px;background:#fbfcfe}.pos-change-box span{color:var(--muted);font-size:12px;font-weight:800}.pos-change-box strong{font-size:22px}.pos-customer-select{display:grid;gap:4px;font-size:12px;font-weight:700;color:var(--muted)}.pos-customer-select select{font-weight:400;color:var(--text)}.pos-balance-due{grid-column:1 / -1;border-color:#fca5a5!important;background:#fef2f2!important}.pos-balance-due span,.pos-balance-due strong{color:#991b1b}.pos-complete-button{position:fixed;right:10%;bottom:18px;z-index:4;width:min(520px,calc(50vw - 32px));min-height:54px;font-size:20px;box-shadow:var(--shadow)}.pos-complete-button:disabled{opacity:.5;cursor:not-allowed}.pos-workspace.pos-cart-only{grid-template-columns:minmax(0,1fr)}.pos-cart-only-page{height:100vh;height:100dvh;min-height:0;overflow:hidden}.pos-cart-only-page .app-shell,.pos-cart-only-page .content,.pos-cart-only-page #page-app,.pos-cart-only-page .pos-workspace{width:100%;height:100%;min-height:0;overflow:hidden}.pos-cart-only-page .content{display:block;padding:10px 10px 10px 64px}[dir=rtl] .pos-cart-only-page .content{padding:10px 64px 10px 10px}.pos-cart-only .pos-cart{position:relative;display:grid;grid-template-rows:minmax(0,24fr) minmax(96px,45fr) minmax(0,31fr);width:100%;height:100%;min-height:0;margin:0;padding:10px;overflow:hidden}.pos-cart-only .pos-cart-top{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.pos-cart-tabs{display:flex;flex:0 0 auto;align-items:stretch;gap:6px;min-width:0;margin:-2px -2px 8px;padding:2px 2px 6px;overflow:hidden;scrollbar-width:thin}.pos-cart-tabs-scroll{display:flex;flex:1 1 auto;align-items:stretch;gap:6px;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.pos-cart-tab,.pos-cart-tab-add{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:6px 10px;border:1px solid var(--border);border-radius:7px;color:var(--text);background:var(--panel);cursor:pointer;font-weight:800}.pos-cart-tab.active{border-color:var(--primary);color:#fff;background:var(--primary)}.pos-cart-tab em{min-width:20px;padding:2px 5px;border-radius:999px;color:var(--muted);background:var(--hover);font-size:11px;font-style:normal}.pos-cart-tab-close{display:grid;width:21px;height:21px;place-items:center;border-radius:50%;font-size:17px;line-height:1}.pos-cart-tab-close:hover{background:#0000001f}.pos-cart-tab-add{position:relative;z-index:2;width:35px;height:35px;padding:4px;border-color:var(--primary);color:#fff;background:var(--primary);font-size:24px;box-shadow:0 2px 8px #0f766e3d}.pos-cart-tab-add span{margin-bottom:2px}.pos-cart-tab-add:hover{background:var(--primary-dark)}.pos-cart-only .pos-panel-header{flex:0 0 auto;min-height:36px;margin-bottom:4px;gap:6px}.pos-cart-only .pos-panel-header .section-kicker,.pos-cart-only .pos-panel-header p{display:none}.pos-cart-only .pos-panel-header h2{font-size:16px;white-space:nowrap}.pos-cart-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.pos-cart-only .pos-cart-actions{flex-wrap:nowrap;min-width:0}.pos-cart-only .pos-cart-actions .button{min-height:32px;padding:4px 8px;white-space:nowrap;font-size:12px}.pos-cart-only-search{flex:0 0 auto;margin-bottom:3px}.pos-cart-only .pos-cart-tabs{margin-bottom:3px;padding-bottom:2px}.pos-cart-only .pos-cart-only-search{padding:5px;gap:6px}.pos-cart-only .pos-cart-only-search .pos-search,.pos-cart-only .pos-cart-only-search .button{min-height:38px}.pos-cart-table-mode .cart-table-wrap{width:100%;height:100%;min-height:72px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--border);border-radius:8px}.pos-cart-table-mode .pos-cart-table{display:table;width:100%;height:100%;min-width:900px;border-collapse:collapse}.pos-cart-table-mode .pos-cart-table thead{display:table-header-group}.pos-cart-table-mode .pos-cart-table thead th{position:sticky;top:0;z-index:2;background:var(--panel)}.pos-cart-table-mode .pos-cart-table tbody{display:table-row-group;padding:0}.pos-cart-table-mode .pos-cart-table tr{display:table-row;padding:0;border:0;border-radius:0;background:transparent}.pos-cart-table-mode .pos-cart-table th,.pos-cart-table-mode .pos-cart-table td{display:table-cell;vertical-align:middle;padding:10px 12px;border-bottom:1px solid var(--border);text-align:left}.pos-cart-table-mode .pos-cart-table th{white-space:nowrap}.pos-cart-table-mode .pos-cart-table tbody tr:last-child td{border-bottom:0}.pos-cart-table-mode .cart-line-item{min-width:210px}.pos-cart-table-mode .cart-control{min-width:120px}.pos-cart-table-mode .cart-table-value{white-space:nowrap;font-weight:800}.pos-cart-table-mode .cart-line-total,.pos-cart-table-mode .cart-line-remove{white-space:nowrap;text-align:right}.pos-cart-table-mode .cart-line-total span{display:none}.pos-cart-table-mode .cart-empty-row td{height:100%;padding-block:12px;text-align:center}.pos-cart-only .pos-summary,.pos-cart-only .pos-payment-panel{position:static}.pos-cart-only .pos-cart-checkout{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(480px,1.28fr);grid-template-rows:minmax(0,1fr);gap:8px;width:100%;height:100%;min-height:0;padding-top:5px;overflow:hidden}.pos-cart-only .pos-summary,.pos-cart-only .pos-payment-panel{height:100%;min-width:0;min-height:0;margin:0;padding:8px 10px;gap:6px}.pos-cart-only .pos-summary{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}.pos-cart-only .pos-summary>*{min-width:0}.pos-cart-only .pos-summary>label,.pos-cart-only .cart-total{grid-column:1 / -1}.pos-cart-only .cart-total{padding-top:6px;font-size:21px}.pos-cart-only .summary-row{font-size:12px;grid-column:1 / -1}.pos-cart-only .summary-row strong{font-size:13px}.pos-cart-only .pos-subtotal-row{gap:5px;font-size:10px}.pos-cart-only .pos-subtotal-row span{min-width:0}.pos-cart-only .pos-subtotal-row strong{flex:0 1 auto;min-width:0;font-size:clamp(9px,.9vw,11px);white-space:nowrap}.pos-cart-only .pos-payment-panel{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto auto minmax(32px,1fr);align-content:start}.pos-cart-only .pos-cart-delivery-options{display:grid;grid-column:1 / -1;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.pos-cart-only .pos-cart-delivery-options label{display:grid;min-width:0;gap:3px;font-size:12px;font-weight:700}.pos-cart-only .pos-cart-delivery-options input,.pos-cart-only .pos-cart-delivery-options select{width:100%;box-sizing:border-box}.pos-cart-only .pos-payment-header{grid-column:3 / 5}.pos-cart-only .payment-grid{grid-column:1 / 3}.pos-cart-only .pos-change-box{grid-column:3 / 5}.pos-cart-only .pos-payment-header p{display:none}.pos-cart-only .payment-grid{margin-top:0}.pos-cart-only .pos-change-box div{padding:7px 9px}.pos-cart-only .pos-change-box strong{font-size:17px}.pos-cart-only .pos-payment-panel input,.pos-cart-only .pos-payment-panel select,.pos-cart-only .pos-summary input{min-height:32px;padding-block:5px}.pos-cart-only .pos-complete-button{position:static;grid-column:1 / -1;right:auto;width:100%;min-height:44px;font-size:17px}.pos-cart-only .pos-checkout-action-bar{display:flex;grid-column:1 / -1;align-items:stretch;width:100%;height:100%;min-height:0}.pos-cart-only .pos-payment-panel>.pos-checkout-action-bar{align-self:end;height:100%;max-height:40px}.pos-cart-only .pos-checkout-action-bar .pos-complete-button{position:relative;inset:auto;height:100%;min-height:0;margin:0}.pos-cart-history-filters{display:grid;grid-template-columns:minmax(220px,1fr) 180px 170px;gap:8px;margin-bottom:12px}.pos-cart-history-list{display:grid;gap:8px;max-height:62vh;overflow:auto}.pos-cart-history-card{display:grid;grid-template-columns:minmax(150px,1.3fr) repeat(7,minmax(90px,1fr)) auto;align-items:center;gap:10px;padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--panel)}.pos-cart-history-card>div{display:grid;gap:3px;min-width:0}.pos-cart-history-card span,.pos-cart-history-card small{color:var(--muted);font-size:11px}.pos-cart-history-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.pos-cart-history-status{color:var(--primary)!important;text-transform:capitalize}.pos-cart-history-actions{display:flex!important;grid-auto-flow:column;gap:5px!important}.pos-search-dialog-summary{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px;color:var(--muted);font-size:13px}.pos-cart-only .pos-cart-only-search{grid-template-columns:minmax(0,1fr) auto auto}.pos-browse-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.pos-browse-summary,.pos-browse-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;color:var(--muted);font-size:13px}.pos-browse-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-height:260px;max-height:54vh;overflow-y:auto}.pos-browse-product{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;padding:8px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--panel);text-align:left;cursor:pointer}.pos-browse-product:hover{border-color:var(--primary);background:var(--hover)}.pos-browse-product>img,.pos-browse-product>.product-tile-image-empty{width:58px;height:58px;border-radius:6px;object-fit:cover}.pos-browse-product>span{display:grid;gap:4px;min-width:0}.pos-browse-product>span:last-child{justify-items:end}.pos-browse-product strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pos-browse-product small{color:var(--muted)}.pos-browse-pagination{justify-content:center}.pos-browse-pagination span{min-width:120px;text-align:center;font-weight:800}.pos-search-dialog-summary strong{color:var(--text)}.pos-search-dialog-results{display:grid;gap:8px;max-height:58vh;overflow-y:auto}.pos-search-result{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;align-items:center;gap:16px;width:100%;padding:12px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--panel);text-align:left;cursor:pointer}.pos-search-result:hover,.pos-search-result.active{border-color:var(--primary);background:var(--hover);box-shadow:0 0 0 2px #0f766e1f}.pos-search-result span:first-child{display:grid;gap:4px}.pos-search-result small,.pos-search-result-stock{color:var(--muted)}.simple-bars{display:grid;gap:10px}.simple-bars div{display:grid;grid-template-columns:80px 1fr 90px;align-items:center;gap:10px}.simple-bars strong{display:block;height:12px;background:var(--primary);border-radius:999px}.simple-bars em{color:var(--muted);font-style:normal;text-align:right}@media(max-width:980px){.sidebar{width:min(86vw,310px);max-width:310px;box-shadow:var(--shadow)}.pos-page .content{padding-left:14px;padding-top:64px;min-height:auto}.pos-workspace,.pos-grid{grid-template-columns:1fr}.pos-products,.pos-cart{min-height:auto}.pos-page .pos-workspace,.pos-page .pos-products,.pos-page .pos-cart{height:auto}.pos-cart{position:static;overflow-x:auto;padding-bottom:16px}.product-results{max-height:none}.category-strip{flex-wrap:nowrap;overflow-x:auto}.product-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.product-filter-bar .product-search,.product-filter-bar .button{grid-column:span 2}.product-detail-card{grid-template-columns:170px minmax(0,1fr)}.item-builder-row,.item-builder-row:not(:has([data-field=unit_cost])){grid-template-columns:minmax(160px,1fr) minmax(90px,120px) minmax(108px,138px) 34px;align-items:end}.item-builder-row:not(:has([data-field=unit_cost])){grid-template-columns:minmax(160px,1fr) minmax(90px,120px) 34px}.pos-order-options{grid-template-columns:1fr}}.sidebar{display:flex;flex-direction:column;overflow:hidden}.sidebar-nav{flex:1 1 auto;min-height:0;overflow-y:auto;scrollbar-gutter:stable}.sidebar-logout{flex:0 0 auto;padding-top:10px;border-top:1px solid var(--border)}.sidebar-logout-button{width:100%;border:0;background:transparent;font:inherit;text-align:start;cursor:pointer}.sidebar-logout-button:hover,.sidebar-logout-button:focus-visible{color:var(--danger);background:color-mix(in srgb,var(--danger) 10%,transparent)}[dir=rtl] .Vue-Toastification__toast--rtl .Vue-Toastification__toast-body,[dir=rtl] .Vue-Toastification__toast--rtl .Vue-Toastification__toast-component-body{direction:rtl;text-align:right}@media only screen and (min-width:601px){[dir=rtl] .Vue-Toastification__container.top-left{right:auto;left:16px;align-items:flex-start}[dir=rtl] .Vue-Toastification__container.top-left .Vue-Toastification__toast--rtl{margin-right:auto!important;margin-left:0!important}}@media(max-width:1280px)and (min-width:981px){body{zoom:.9}.product-results{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){body{zoom:.9}.topbar,.toolbar,.filter-row{align-items:stretch;flex-direction:column}.topbar-title{align-items:flex-start}.topbar-actions{display:grid;grid-template-columns:1fr 1fr}.pos-search-row,.payment-grid{grid-template-columns:1fr}.pos-panel-header,.pos-payment-header{align-items:stretch;flex-direction:column}.pos-rate-badge{justify-content:center}.product-results,.pos-change-box{grid-template-columns:1fr}.cart-line-total,.cart-line-remove{justify-items:end}.pos-summary,.pos-payment-panel,.pos-complete-button{position:static}.cart-table-wrap{max-height:none}.pos-search-dialog-summary{display:grid}.pos-search-result{grid-template-columns:minmax(0,1fr) auto}.pos-search-result-stock{display:none}.form-grid,.product-filter-bar{grid-template-columns:1fr}.product-filter-bar .product-search,.product-filter-bar .button{grid-column:span 1}.product-detail-card{grid-template-columns:1fr}.product-detail-image{max-width:260px}.item-builder-header{grid-template-columns:1fr;align-items:stretch;flex-direction:column}.item-builder-header strong{justify-self:start}.item-builder-search{grid-template-columns:minmax(0,1fr) auto}.item-builder-results{grid-template-columns:1fr;max-height:220px}.item-builder-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px;grid-template-areas:"product product product" "qty extra remove";align-items:end;gap:9px}.item-builder-row:not(:has([data-field=unit_cost])){grid-template-columns:minmax(0,1fr) 38px;grid-template-areas:"product product" "qty remove"}.item-builder-product{grid-area:product}.item-builder-qty{grid-area:qty}.item-builder-extra{grid-area:extra}.item-builder-row .remove-line{grid-area:remove;width:38px;min-height:40px}.span-2{grid-column:span 1}.content{padding:14px}}@media(max-width:420px){.panel{padding:14px}.subpanel{padding:12px}.item-builder-search{grid-template-columns:1fr}.item-builder-search .button{width:100%}.item-builder-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px;padding:10px}.item-builder-row:not(:has([data-field=unit_cost])){grid-template-columns:minmax(0,1fr) 36px}.item-builder-row .remove-line{width:36px}}.app-footer{text-align:center;padding:.75rem 1rem;font-size:.75rem;border-top:1px solid var(--border);margin-top:auto}.app-footer a{color:var(--text-muted);text-decoration:none;transition:color .15s}.app-footer a:hover{color:var(--primary)}[dir=rtl] body{text-align:right}[dir=rtl] .sidebar{left:auto;right:0}[dir=rtl].app-body.sidebar-collapsed .sidebar,[dir=rtl] .app-body.sidebar-collapsed .sidebar{transform:translate(100%)}[dir=rtl] .brand,[dir=rtl] .nav-link,[dir=rtl] .metric-card,[dir=rtl] .topbar-title,[dir=rtl] .sidebar-status,[dir=rtl] .data-table th,[dir=rtl] .data-table td,[dir=rtl] .form-stack label,[dir=rtl] .form-grid label{text-align:right}[dir=rtl] .form-actions{justify-content:flex-end}[dir=rtl] select,[dir=rtl] input[type=text],[dir=rtl] input[type=number],[dir=rtl] input[type=password],[dir=rtl] textarea{text-align:right}[dir=rtl] .pos-complete-button{right:auto;left:10%}[dir=rtl] .product-tile,[dir=rtl] .product-results button{text-align:right}[dir=rtl] .cart-line-total{justify-items:start}[dir=rtl] .cart-line-total strong{font-size:14px}:root{color-scheme:light;--page: #ffffff;--page-2: #f8fafc;--panel: #ffffff;--panel-soft: #f8fafc;--text: #0f172a;--text-secondary: #475569;--muted: #64748b;--text-muted: #64748b;--disabled: #94a3b8;--border: #e2e8f0;--border-strong: #cbd5e1;--primary: #1877f2;--primary-dark: #166fe5;--primary-active: #0e5fd6;--primary-soft: #dbeafe;--accent: #3b82f6;--info: #3b82f6;--success: #22c55e;--warning: #f59e0b;--danger: #ef4444;--processing: #8b5cf6;--offline: #64748b;--sidebar: #f8fafc;--sidebar-text: #0f172a;--header: #ffffff;--hover: #eff6ff;--selected: #dbeafe;--shadow: 0 2px 8px rgba(0, 0, 0, .05);--shadow-hover: 0 4px 12px rgba(0, 0, 0, .08);--shadow-popup: 0 10px 30px rgba(0, 0, 0, .12);--radius-card: 16px;--radius: 12px;--radius-control: 10px;--space: 8px}@media(prefers-color-scheme:dark){:root{color-scheme:dark;--page: #0f172a;--page-2: #111827;--panel: #1e293b;--panel-soft: #111827;--text: #ffffff;--text-secondary: #cbd5e1;--muted: #94a3b8;--text-muted: #94a3b8;--disabled: #64748b;--border: #334155;--border-strong: #475569;--primary-soft: rgba(37, 99, 235, .22);--sidebar: #020617;--sidebar-text: #cbd5e1;--header: #111827;--hover: #1e293b;--selected: #2563eb;--shadow: 0 2px 8px rgba(0, 0, 0, .22);--shadow-hover: 0 4px 12px rgba(0, 0, 0, .28);--shadow-popup: 0 10px 30px rgba(0, 0, 0, .38)}}html{zoom:1;background:var(--page);font-size:15px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}body{color:var(--text);background:var(--page);font-family:Inter,SF Pro Display,Segoe UI,Roboto,Arial,sans-serif;line-height:1.45}a{color:var(--primary)}a:hover{color:var(--primary-dark)}button,.button,input,select,textarea,.nav-link,.product-tile,.product-results button{transition:background-color .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease}input,select,textarea{min-height:42px;padding:10px 12px;border-color:var(--border);border-radius:var(--radius-control);background:var(--panel);color:var(--text);box-shadow:none}input::placeholder,textarea::placeholder{color:var(--disabled)}input:focus,select:focus,textarea:focus{outline:3px solid rgba(24,119,242,.16);border-color:var(--primary)}label,.form-label{color:var(--text-secondary);font-size:13px;font-weight:650}.app-body{background:var(--page)}.sidebar{width:288px;padding:18px 14px;background:var(--sidebar);color:var(--sidebar-text);border-right:1px solid var(--border);box-shadow:none}[dir=rtl] .sidebar{border-right:0;border-left:1px solid var(--border)}.brand{min-height:52px;padding:6px 8px 14px;margin-bottom:10px;color:var(--text)}.brand-mark{width:40px;height:40px;border-radius:12px;background:#fff;box-shadow:var(--shadow);overflow:hidden}.brand-mark img{display:block;width:100%;height:100%;object-fit:cover}.brand-logo-text{display:flex;align-items:baseline;gap:3px;color:var(--text);font-size:17px;line-height:1.05;direction:ltr}.brand-logo-text span{color:var(--text);font-weight:500}.brand-logo-text strong{color:#3b82f6;font-weight:800}.brand-name,.brand-copy span:last-child{color:var(--muted);font-size:12px;font-weight:600}.sidebar-status{margin:0 0 16px;padding:12px;border-color:var(--border);border-radius:var(--radius);background:var(--panel);box-shadow:none}.sidebar-status span{color:var(--muted);font-size:10px;letter-spacing:.04em}.sidebar-status strong{color:var(--text);font-size:13px}.sidebar-nav{gap:16px}.nav-group{gap:4px}.nav-group-label{color:var(--muted);font-size:11px;font-weight:750;letter-spacing:.03em}.nav-link{min-height:40px;padding:7px 8px;border-radius:var(--radius-control);color:var(--text-secondary);font-weight:650}.nav-link:hover{color:var(--text);background:var(--hover)}.nav-link.active{color:var(--primary-active);background:var(--selected);box-shadow:none}.nav-link.active:before{left:-14px;background:var(--primary)}.nav-mark{width:30px;height:28px;border-radius:9px;color:var(--primary);background:var(--primary-soft);font-size:10px;font-weight:800}.nav-link.active .nav-mark{color:#fff;background:var(--primary)}.topbar{min-height:72px;padding:16px 24px;background:#ffffffe6;border-bottom-color:var(--border);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}@media(prefers-color-scheme:dark){.topbar{background:#111827e0}}.topbar h1{color:var(--text);font-size:22px;font-weight:760;letter-spacing:0}.topbar p{color:var(--muted);font-size:13px}.content{padding:24px;gap:20px;background:var(--page)}.panel,.metric-card,.modal-dialog,.auth-card,.welcome-panel{background:var(--panel);border-color:var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow)}.panel{padding:20px}.panel h2,.panel h3,.metric-card strong{color:var(--text);letter-spacing:0}.metric-card{padding:18px}.metric-card span{color:var(--muted);font-weight:650}.metric-card strong{font-size:26px;font-weight:780}.button{min-height:42px;padding:10px 15px;border-radius:var(--radius-control);font-weight:700;box-shadow:none}.button:hover{transform:translateY(-1px)}.button:active{transform:translateY(0)}.button-primary{color:#fff;background:var(--primary);border-color:var(--primary)}.button-primary:hover{background:var(--primary-dark);border-color:var(--primary-dark)}.button-primary:active{background:var(--primary-active);border-color:var(--primary-active)}.button-secondary,.button-outline{color:var(--text);background:var(--panel);border-color:var(--border)}.button-secondary:hover,.button-outline:hover{background:var(--hover);border-color:var(--primary);color:var(--primary-active)}.button-danger{color:#fff;background:var(--danger);border-color:var(--danger)}.alert{border-radius:var(--radius);font-weight:600}.alert-success{color:#166534;background:#22c55e1a;border-color:#22c55e47}.alert-danger{color:#b91c1c;background:#ef44441a;border-color:#ef444447}.data-table{border-collapse:separate;border-spacing:0}.data-table th{position:sticky;top:0;z-index:1;background:var(--panel-soft);color:var(--muted);font-size:14px;font-weight:800;letter-spacing:.03em}.data-table th,.data-table td{border-bottom-color:var(--border)}.data-table tbody tr:hover td{background:var(--hover)}.subpanel,.maintenance-card,.image-upload-field,.product-detail-meta span,.pos-search-pro,.pos-summary,.pos-payment-panel,.pos-order-options,.pos-change-box div{background:var(--panel-soft);border-color:var(--border);border-radius:var(--radius)}.product-thumb,.product-detail-image,.product-tile-image,.current-product-image img{border-color:var(--border);border-radius:var(--radius);background:var(--panel-soft)}.product-thumb-empty,.product-detail-image span,.product-tile-image-empty{color:var(--primary);background:var(--primary-soft)}.stock-success,.status-active{color:#15803d;background:#22c55e1f}.stock-warning{color:#b45309;background:#f59e0b24}.stock-danger,.status-inactive{color:#b91c1c;background:#ef44441f}.report-tabs a,.category-strip button{border-radius:var(--radius-control);background:var(--panel);border-color:var(--border);color:var(--text-secondary)}.report-tabs a:hover,.category-strip button:hover{background:var(--hover);color:var(--primary-active)}.report-tabs a.active,.category-strip button.active{color:#fff;background:var(--primary);border-color:var(--primary)}.category-strip button.active em{color:var(--primary-active);background:#fff}.pos-page .content{padding:16px 20px 20px 72px;background:var(--page)}.pos-workspace,.pos-grid{gap:20px}.pos-products,.pos-cart{min-height:calc(100vh - 40px)}.pos-products,.pos-cart{border-radius:var(--radius-card)}.pos-header-pro{border-bottom-color:var(--border)}.section-kicker{color:var(--primary);font-weight:800;letter-spacing:.04em}.pos-rate-badge{color:var(--primary-active);background:var(--primary-soft);border-color:#1877f23d;border-radius:var(--radius-control)}.pos-search{min-height:50px;border-color:var(--border);font-size:17px}.product-results{gap:14px}.product-tile,.product-results button,.pos-cart-table tr,.item-builder-results button,.item-builder-row{background:var(--panel);border-color:var(--border);border-radius:var(--radius);box-shadow:none}.product-tile:hover,.product-results button:hover,.item-builder-results button:hover{border-color:#1877f273;box-shadow:var(--shadow-hover);transform:translateY(-1px)}.product-tile em,.product-results em{color:var(--primary);font-size:19px;font-weight:780}.product-tile small,.product-results small{color:#15803d;background:#22c55e1f}.pos-cart-table tr{padding:12px}.qty-stepper button,.remove-line{border-radius:var(--radius-control);background:var(--panel-soft);border-color:var(--border)}.qty-stepper button:hover{color:var(--primary);background:var(--hover);border-color:var(--primary)}.cart-total{color:var(--text);font-size:28px;font-weight:800}.pos-complete-button{border-radius:14px;box-shadow:var(--shadow-popup)}.auth-body,.welcome-body,.welcome-shell{background:var(--page-2)}.auth-card{border-radius:20px}.auth-card h1{color:var(--text);font-weight:800}.pin-key,.pin-dot{border-color:var(--border)}.modal-dialog,.product-picker-menu{box-shadow:var(--shadow-popup)}.app-footer{color:var(--muted);background:var(--page);border-top-color:var(--border)}@media(prefers-color-scheme:dark){.alert-success{color:#86efac}.alert-danger{color:#fca5a5}.stock-success,.status-active{color:#86efac}.stock-warning{color:#fbbf24}.stock-danger,.status-inactive{color:#fca5a5}.product-tile small,.product-results small{color:#86efac}.category-strip button.active em{color:var(--primary-active)}}@media(max-width:980px){.sidebar{width:min(88vw,320px);max-width:320px;box-shadow:var(--shadow-popup)}.pos-page .content{padding-left:16px;padding-top:70px}}@media(max-width:680px){body{zoom:1}.content{padding:16px;gap:16px}.panel{padding:16px;border-radius:14px}.topbar{align-items:stretch;padding:14px 16px}.topbar-actions{grid-template-columns:1fr 1fr}.metric-grid{grid-template-columns:1fr}.product-results{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}}html[data-theme=light],html[data-theme=system]{color-scheme:light;--page: #ffffff;--page-2: #f8fafc;--panel: #ffffff;--panel-soft: #f8fafc;--text: #0f172a;--text-secondary: #475569;--muted: #64748b;--text-muted: #64748b;--disabled: #94a3b8;--border: #e2e8f0;--border-strong: #cbd5e1;--primary: #1877f2;--primary-dark: #166fe5;--primary-active: #0e5fd6;--primary-soft: #dbeafe;--accent: #3b82f6;--info: #3b82f6;--success: #22c55e;--warning: #f59e0b;--danger: #ef4444;--processing: #8b5cf6;--offline: #64748b;--sidebar: #f8fafc;--sidebar-text: #0f172a;--header: #ffffff;--hover: #eff6ff;--selected: #dbeafe;--shadow: 0 2px 8px rgba(0, 0, 0, .05);--shadow-hover: 0 4px 12px rgba(0, 0, 0, .08);--shadow-popup: 0 10px 30px rgba(0, 0, 0, .12)}html[data-theme=dark]{color-scheme:dark;--page: #0f172a;--page-2: #111827;--panel: #1e293b;--panel-soft: #111827;--text: #ffffff;--text-secondary: #cbd5e1;--muted: #94a3b8;--text-muted: #94a3b8;--disabled: #64748b;--border: #334155;--border-strong: #475569;--primary: #1877f2;--primary-dark: #166fe5;--primary-active: #60a5fa;--primary-soft: rgba(37, 99, 235, .22);--accent: #3b82f6;--info: #3b82f6;--success: #22c55e;--warning: #f59e0b;--danger: #ef4444;--processing: #8b5cf6;--offline: #64748b;--sidebar: #020617;--sidebar-text: #cbd5e1;--header: #111827;--hover: #1e293b;--selected: #2563eb;--shadow: 0 2px 8px rgba(0, 0, 0, .22);--shadow-hover: 0 4px 12px rgba(0, 0, 0, .28);--shadow-popup: 0 10px 30px rgba(0, 0, 0, .38)}@media(prefers-color-scheme:dark){html[data-theme=system]{color-scheme:dark;--page: #0f172a;--page-2: #111827;--panel: #1e293b;--panel-soft: #111827;--text: #ffffff;--text-secondary: #cbd5e1;--muted: #94a3b8;--text-muted: #94a3b8;--disabled: #64748b;--border: #334155;--border-strong: #475569;--primary-active: #60a5fa;--primary-soft: rgba(37, 99, 235, .22);--sidebar: #020617;--sidebar-text: #cbd5e1;--header: #111827;--hover: #1e293b;--selected: #2563eb;--shadow: 0 2px 8px rgba(0, 0, 0, .22);--shadow-hover: 0 4px 12px rgba(0, 0, 0, .28);--shadow-popup: 0 10px 30px rgba(0, 0, 0, .38)}}.topbar,.sidebar-toggle,.pos-floating-menu,.button-secondary,.button-outline,.button-ghost,input,select,textarea{color:var(--text);background:var(--panel);border-color:var(--border)}.sidebar-toggle{border-radius:var(--radius-control);box-shadow:var(--shadow)}.sidebar-toggle span{background:currentColor}.sidebar-toggle:hover,.pos-floating-menu:hover,.button-secondary:hover,.button-outline:hover,.button-ghost:hover{color:var(--primary-active);background:var(--hover);border-color:#1877f26b}.nav-link:hover,.report-tabs a:hover,.category-strip button:hover,.data-table tbody tr:hover{background:var(--hover)}.topbar h1,.panel h1,.panel h2,.panel h3,.metric-card h3,.data-table th,.data-table td,.product-tile strong,.product-results strong,.cart-line-item strong,.summary-row strong,.auth-card h1,.welcome-panel h1{color:var(--text)}label,.topbar p,.muted,.table-subtext,.product-tile span,.product-results span,.cart-line-meta,.app-footer,.form-hint,small{color:var(--text-muted)}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder,html[data-theme=system] input::placeholder,html[data-theme=system] textarea::placeholder{color:var(--disabled)}[dir=rtl] .pos-floating-menu{right:auto;left:14px}[dir=rtl] .pos-floating-notif{right:14px;left:auto}@media(max-width:980px){[dir=rtl] .pos-page .content{padding-right:16px;padding-left:16px}}.button,.btn{border-color:transparent;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}.button-primary,.btn-primary,a.button-primary{color:#fff;background:#1877f2;border-color:#1877f2}.button-primary:hover,.btn-primary:hover,a.button-primary:hover{color:#fff;background:#0e5fd6;border-color:#0e5fd6;box-shadow:0 6px 16px #1877f238}.button-primary:active,.btn-primary:active,a.button-primary:active{color:#fff;background:#0b4fb3;border-color:#0b4fb3}.button-secondary,.button-outline,.button-ghost,.btn-secondary,.btn-outline{color:var(--text);background:var(--panel);border-color:var(--border)}.button-secondary:hover,.button-outline:hover,.button-ghost:hover,.btn-secondary:hover,.btn-outline:hover{color:#0e5fd6;background:#eff6ff;border-color:#60a5fa}.button-danger,.btn-danger{color:#fff;background:#ef4444;border-color:#ef4444}.button-danger:hover,.btn-danger:hover{color:#fff;background:#dc2626;border-color:#dc2626}.button:disabled,.btn:disabled,.button[disabled],.btn[disabled]{color:var(--disabled);background:var(--panel-soft);border-color:var(--border);box-shadow:none;cursor:not-allowed;opacity:.72;transform:none}html[data-theme=dark] .button-primary,html[data-theme=dark] .btn-primary,html[data-theme=dark] a.button-primary{color:#fff;background:#2563eb;border-color:#2563eb}@media(prefers-color-scheme:dark){html[data-theme=system] .button-primary,html[data-theme=system] .btn-primary,html[data-theme=system] a.button-primary{color:#fff;background:#2563eb;border-color:#2563eb}}html[data-theme=dark] .button-primary:hover,html[data-theme=dark] .btn-primary:hover,html[data-theme=dark] a.button-primary:hover{color:#020617;background:#60a5fa;border-color:#93c5fd;box-shadow:0 8px 22px #60a5fa38}html[data-theme=dark] .button-primary:active,html[data-theme=dark] .btn-primary:active,html[data-theme=dark] a.button-primary:active{color:#020617;background:#93c5fd;border-color:#bfdbfe}html[data-theme=dark] .button-secondary,html[data-theme=dark] .button-outline,html[data-theme=dark] .button-ghost,html[data-theme=dark] .btn-secondary,html[data-theme=dark] .btn-outline{color:#e2e8f0;background:#1e293b;border-color:#334155}html[data-theme=dark] .button-secondary:hover,html[data-theme=dark] .button-outline:hover,html[data-theme=dark] .button-ghost:hover,html[data-theme=dark] .btn-secondary:hover,html[data-theme=dark] .btn-outline:hover{color:#bfdbfe;background:#334155;border-color:#60a5fa}html[data-theme=dark] .button-danger:hover,html[data-theme=dark] .btn-danger:hover{color:#020617;background:#fca5a5;border-color:#fecaca}@media(prefers-color-scheme:dark){html[data-theme=system] .button-primary:hover,html[data-theme=system] .btn-primary:hover,html[data-theme=system] a.button-primary:hover{color:#020617;background:#60a5fa;border-color:#93c5fd;box-shadow:0 8px 22px #60a5fa38}html[data-theme=system] .button-primary:active,html[data-theme=system] .btn-primary:active,html[data-theme=system] a.button-primary:active{color:#020617;background:#93c5fd;border-color:#bfdbfe}html[data-theme=system] .button-secondary,html[data-theme=system] .button-outline,html[data-theme=system] .button-ghost,html[data-theme=system] .btn-secondary,html[data-theme=system] .btn-outline{color:#e2e8f0;background:#1e293b;border-color:#334155}html[data-theme=system] .button-secondary:hover,html[data-theme=system] .button-outline:hover,html[data-theme=system] .button-ghost:hover,html[data-theme=system] .btn-secondary:hover,html[data-theme=system] .btn-outline:hover{color:#bfdbfe;background:#334155;border-color:#60a5fa}html[data-theme=system] .button-danger:hover,html[data-theme=system] .btn-danger:hover{color:#020617;background:#fca5a5;border-color:#fecaca}}html[data-theme=light] .brand-logo-text span,html[data-theme=system] .brand-logo-text span{color:#0f172a}html[data-theme=light] .brand-logo-text strong,html[data-theme=system] .brand-logo-text strong{color:#3b82f6}html[data-theme=light] .nav-link.active,html[data-theme=system] .nav-link.active{color:#0e5fd6;background:#dbeafe;border:1px solid rgba(24,119,242,.18);box-shadow:inset 0 0 0 1px #1877f214}html[data-theme=light] .nav-link.active .nav-label,html[data-theme=system] .nav-link.active .nav-label{color:#0e5fd6}html[data-theme=light] .nav-link.active .nav-mark,html[data-theme=system] .nav-link.active .nav-mark{color:#fff;background:#1877f2}html[data-theme=dark] .brand-logo-text span{color:#fff}html[data-theme=dark] .brand-logo-text strong{color:#3b82f6}html[data-theme=dark] .nav-link.active{color:#fff;background:#2563eb;border:1px solid rgba(96,165,250,.32)}html[data-theme=dark] .nav-link.active .nav-label{color:#fff}html[data-theme=dark] .nav-link.active .nav-mark{color:#020617;background:#93c5fd}@media(prefers-color-scheme:dark){html[data-theme=system] .brand-logo-text span{color:#fff}html[data-theme=system] .brand-logo-text strong{color:#3b82f6}html[data-theme=system] .nav-link.active{color:#fff;background:#2563eb;border:1px solid rgba(96,165,250,.32)}html[data-theme=system] .nav-link.active .nav-label{color:#fff}html[data-theme=system] .nav-link.active .nav-mark{color:#020617;background:#93c5fd}}html[data-theme=dark] .dm-toolbar h2,html[data-theme=dark] .dm-card-body h3,html[data-theme=dark] .dm-order-id,html[data-theme=dark] .dm-order-total,html[data-theme=dark] .du-cell-name,html[data-theme=dark] .du-cell-mono,html[data-theme=dark] .du-cell-address,html[data-theme=dark] .du-modal-header h2,html[data-theme=dark] .om-header-title,html[data-theme=dark] .om-cart-name,html[data-theme=dark] .om-price-usd,html[data-theme=dark] .om-summary-total,html[data-theme=dark] .om-total,html[data-theme=dark] .om-picker-item-name,html[data-theme=dark] .eta-dialog-title{color:#f8fafc!important}html[data-theme=dark] .dm-card-body p,html[data-theme=dark] .dm-order-meta,html[data-theme=dark] .dm-order-meta span,html[data-theme=dark] .dm-order-notes,html[data-theme=dark] .du-count,html[data-theme=dark] .du-table th,html[data-theme=dark] .du-cell-muted,html[data-theme=dark] .du-empty,html[data-theme=dark] .du-modal-close,html[data-theme=dark] .du-field label,html[data-theme=dark] .om-header-sub,html[data-theme=dark] .om-empty,html[data-theme=dark] .om-cart-table th,html[data-theme=dark] .om-price-sm,html[data-theme=dark] .om-price-lbp,html[data-theme=dark] .om-item-qty,html[data-theme=dark] .om-summary-row,html[data-theme=dark] .om-lbp,html[data-theme=dark] .om-footer-lbp,html[data-theme=dark] .om-picker-lbp,html[data-theme=dark] .eta-dialog-sub,html[data-theme=dark] .eta-dialog-hint{color:#94a3b8!important}html[data-theme=dark] .dm-card,html[data-theme=dark] .dm-add-form,html[data-theme=dark] .dm-filter-btn,html[data-theme=dark] .dm-order-card,html[data-theme=dark] .dm-card-actions a,html[data-theme=dark] .dm-card-actions button,html[data-theme=dark] .dm-banner-actions a,html[data-theme=dark] .dm-banner-actions code,html[data-theme=dark] .du-search,html[data-theme=dark] .du-table-wrap,html[data-theme=dark] .du-modal,html[data-theme=dark] .du-btn-edit,html[data-theme=dark] .du-field input,html[data-theme=dark] .du-field textarea,html[data-theme=dark] .om-dialog,html[data-theme=dark] .om-loading-box,html[data-theme=dark] .eta-dialog,html[data-theme=dark] .pg-link,html[data-theme=dark] .om-qty-ctrl,html[data-theme=dark] .om-qty-btn,html[data-theme=dark] .om-disc-input,html[data-theme=dark] .om-create-notes,html[data-theme=dark] .om-create-sel,html[data-theme=dark] .om-create-input,html[data-theme=dark] .om-picker,html[data-theme=dark] .om-picker-search,html[data-theme=dark] .om-action-print,html[data-theme=dark] .eta-minutes-input{color:#e2e8f0!important;background:#1e293b!important;border-color:#334155!important}html[data-theme=dark] .dm-add-form input,html[data-theme=dark] .om-picker-search,html[data-theme=dark] .du-search,html[data-theme=dark] .du-field input,html[data-theme=dark] .du-field textarea,html[data-theme=dark] .eta-minutes-input,html[data-theme=dark] .om-disc-input,html[data-theme=dark] .om-create-notes,html[data-theme=dark] .om-create-sel,html[data-theme=dark] .om-create-input{background:#0f172a!important;border-color:#475569!important}html[data-theme=dark] .dm-card-actions a:hover,html[data-theme=dark] .dm-card-actions button:hover,html[data-theme=dark] .dm-banner-actions a:hover,html[data-theme=dark] .dm-filter-btn:hover,html[data-theme=dark] .du-row:hover,html[data-theme=dark] .du-btn-edit:hover,html[data-theme=dark] .om-qty-btn:hover:not(:disabled),html[data-theme=dark] .om-picker-item:hover,html[data-theme=dark] .om-action-print:hover,html[data-theme=dark] .pg-link:hover{color:#bfdbfe!important;background:#334155!important;border-color:#60a5fa!important}html[data-theme=dark] .dm-filter-active,html[data-theme=dark] .pg-link-active{color:#020617!important;background:#60a5fa!important;border-color:#93c5fd!important}html[data-theme=dark] .dm-banner{background:#2563eb29!important;border-color:#334155!important}html[data-theme=dark] .dm-banner-body h2{color:#bfdbfe!important}html[data-theme=dark] .dm-banner-body p{color:#93c5fd!important}html[data-theme=dark] .dm-qr-thumb{background:#0f172a!important}html[data-theme=dark] .dm-main-qr,html[data-theme=dark] .dm-table-qr{background:#fff!important}html[data-theme=dark] .dm-item-chip,html[data-theme=dark] .dm-address-chip,html[data-theme=dark] .dm-act-view,html[data-theme=dark] .du-avatar-initials{color:#cbd5e1!important;background:#334155!important;border-color:#475569!important}html[data-theme=dark] .dm-card-actions .btn-manage,html[data-theme=dark] .om-picker-item-add{color:#020617!important;background:#60a5fa!important;border-color:#93c5fd!important}html[data-theme=dark] .dm-card-actions .btn-manage:hover,html[data-theme=dark] .om-picker-item-add:hover{background:#93c5fd!important}html[data-theme=dark] .dm-act-completed,html[data-theme=dark] .om-status-completed{color:#020617!important;background:#cbd5e1!important}html[data-theme=dark] .du-table thead tr,html[data-theme=dark] .du-row,html[data-theme=dark] .du-modal-header,html[data-theme=dark] .du-modal-footer,html[data-theme=dark] .om-header,html[data-theme=dark] .om-cart-table thead tr,html[data-theme=dark] .om-cart-table td,html[data-theme=dark] .om-create-footer,html[data-theme=dark] .om-create-meta,html[data-theme=dark] .om-picker-head,html[data-theme=dark] .om-picker-item,html[data-theme=dark] .om-footer{border-color:#334155!important}@media(prefers-color-scheme:dark){html[data-theme=system] .dm-toolbar h2,html[data-theme=system] .dm-card-body h3,html[data-theme=system] .dm-order-id,html[data-theme=system] .dm-order-total,html[data-theme=system] .du-cell-name,html[data-theme=system] .du-cell-mono,html[data-theme=system] .du-cell-address,html[data-theme=system] .du-modal-header h2,html[data-theme=system] .om-header-title,html[data-theme=system] .om-cart-name,html[data-theme=system] .om-price-usd,html[data-theme=system] .om-summary-total,html[data-theme=system] .om-total,html[data-theme=system] .om-picker-item-name,html[data-theme=system] .eta-dialog-title{color:#f8fafc!important}html[data-theme=system] .dm-card-body p,html[data-theme=system] .dm-order-meta,html[data-theme=system] .dm-order-meta span,html[data-theme=system] .dm-order-notes,html[data-theme=system] .du-count,html[data-theme=system] .du-table th,html[data-theme=system] .du-cell-muted,html[data-theme=system] .du-empty,html[data-theme=system] .du-modal-close,html[data-theme=system] .du-field label,html[data-theme=system] .om-header-sub,html[data-theme=system] .om-empty,html[data-theme=system] .om-cart-table th,html[data-theme=system] .om-price-sm,html[data-theme=system] .om-price-lbp,html[data-theme=system] .om-item-qty,html[data-theme=system] .om-summary-row,html[data-theme=system] .om-lbp,html[data-theme=system] .om-footer-lbp,html[data-theme=system] .om-picker-lbp,html[data-theme=system] .eta-dialog-sub,html[data-theme=system] .eta-dialog-hint{color:#94a3b8!important}html[data-theme=system] .dm-card,html[data-theme=system] .dm-add-form,html[data-theme=system] .dm-filter-btn,html[data-theme=system] .dm-order-card,html[data-theme=system] .dm-card-actions a,html[data-theme=system] .dm-card-actions button,html[data-theme=system] .dm-banner-actions a,html[data-theme=system] .dm-banner-actions code,html[data-theme=system] .du-search,html[data-theme=system] .du-table-wrap,html[data-theme=system] .du-modal,html[data-theme=system] .du-btn-edit,html[data-theme=system] .du-field input,html[data-theme=system] .du-field textarea,html[data-theme=system] .om-dialog,html[data-theme=system] .om-loading-box,html[data-theme=system] .eta-dialog,html[data-theme=system] .pg-link,html[data-theme=system] .om-qty-ctrl,html[data-theme=system] .om-qty-btn,html[data-theme=system] .om-disc-input,html[data-theme=system] .om-create-notes,html[data-theme=system] .om-create-sel,html[data-theme=system] .om-create-input,html[data-theme=system] .om-picker,html[data-theme=system] .om-picker-search,html[data-theme=system] .om-action-print,html[data-theme=system] .eta-minutes-input{color:#e2e8f0!important;background:#1e293b!important;border-color:#334155!important}html[data-theme=system] .dm-add-form input,html[data-theme=system] .om-picker-search,html[data-theme=system] .du-search,html[data-theme=system] .du-field input,html[data-theme=system] .du-field textarea,html[data-theme=system] .eta-minutes-input,html[data-theme=system] .om-disc-input,html[data-theme=system] .om-create-notes,html[data-theme=system] .om-create-sel,html[data-theme=system] .om-create-input{background:#0f172a!important;border-color:#475569!important}html[data-theme=system] .dm-card-actions a:hover,html[data-theme=system] .dm-card-actions button:hover,html[data-theme=system] .dm-banner-actions a:hover,html[data-theme=system] .dm-filter-btn:hover,html[data-theme=system] .du-row:hover,html[data-theme=system] .du-btn-edit:hover,html[data-theme=system] .om-qty-btn:hover:not(:disabled),html[data-theme=system] .om-picker-item:hover,html[data-theme=system] .om-action-print:hover,html[data-theme=system] .pg-link:hover{color:#bfdbfe!important;background:#334155!important;border-color:#60a5fa!important}html[data-theme=system] .dm-filter-active,html[data-theme=system] .pg-link-active{color:#020617!important;background:#60a5fa!important;border-color:#93c5fd!important}html[data-theme=system] .dm-banner{background:#2563eb29!important;border-color:#334155!important}html[data-theme=system] .dm-banner-body h2{color:#bfdbfe!important}html[data-theme=system] .dm-banner-body p{color:#93c5fd!important}html[data-theme=system] .dm-qr-thumb{background:#0f172a!important}html[data-theme=system] .dm-main-qr,html[data-theme=system] .dm-table-qr{background:#fff!important}html[data-theme=system] .dm-item-chip,html[data-theme=system] .dm-address-chip,html[data-theme=system] .dm-act-view,html[data-theme=system] .du-avatar-initials{color:#cbd5e1!important;background:#334155!important;border-color:#475569!important}html[data-theme=system] .dm-card-actions .btn-manage,html[data-theme=system] .om-picker-item-add{color:#020617!important;background:#60a5fa!important;border-color:#93c5fd!important}html[data-theme=system] .dm-card-actions .btn-manage:hover,html[data-theme=system] .om-picker-item-add:hover{background:#93c5fd!important}html[data-theme=system] .dm-act-completed,html[data-theme=system] .om-status-completed{color:#020617!important;background:#cbd5e1!important}html[data-theme=system] .du-table thead tr,html[data-theme=system] .du-row,html[data-theme=system] .du-modal-header,html[data-theme=system] .du-modal-footer,html[data-theme=system] .om-header,html[data-theme=system] .om-cart-table thead tr,html[data-theme=system] .om-cart-table td,html[data-theme=system] .om-create-footer,html[data-theme=system] .om-create-meta,html[data-theme=system] .om-picker-head,html[data-theme=system] .om-picker-item,html[data-theme=system] .om-footer{border-color:#334155!important}}@media(max-width:980px){.pos-cart-only-page .content{height:100%;min-height:0;padding:8px;overflow:hidden}.pos-cart-only-page .pos-workspace{position:relative;height:100%;min-height:0;overflow:hidden}.pos-cart-only-page .pos-cart{position:relative;width:100%;height:100%;min-height:0;overflow:hidden}.pos-cart-only .pos-cart-checkout{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}.pos-cart-history-card{grid-template-columns:repeat(4,minmax(110px,1fr))}.pos-cart-history-actions{grid-column:1 / -1;justify-content:end}}@media(max-width:680px){.pos-cart-only .pos-panel-header{align-items:center;flex-direction:row}.pos-cart-only .pos-cart-checkout{grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr)}.pos-cart-only .payment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-cart-only .pos-change-box{grid-template-columns:repeat(3,minmax(0,1fr))}.pos-cart-history-filters{grid-template-columns:1fr}}@media(max-height:720px){.pos-cart-only .pos-cart{padding:6px}.pos-cart-only .pos-cart-tabs{margin-bottom:3px;padding-bottom:2px}.pos-cart-only .pos-cart-tab,.pos-cart-only .pos-cart-tab-add{min-height:30px;padding-block:3px}.pos-cart-only .pos-panel-header{margin-bottom:3px}.pos-cart-only .pos-panel-header .section-kicker,.pos-cart-only .pos-panel-header p{display:none}.pos-cart-only .pos-panel-header h2{font-size:15px}.pos-cart-only .pos-cart-actions .button{min-height:30px;padding-block:3px}.pos-cart-only .pos-cart-only-search{margin-bottom:3px;padding:4px}.pos-cart-only .pos-search,.pos-cart-only .pos-cart-only-search .button{min-height:36px}.pos-cart-only .pos-summary,.pos-cart-only .pos-payment-panel{padding:4px 6px;gap:3px}.pos-cart-only .pos-change-box div{padding:3px 5px}.pos-cart-only .pos-change-box strong{font-size:14px}.pos-cart-only .cart-total{padding-top:2px;font-size:17px}}@media(max-width:1280px){body.pos-cart-only-page{zoom:1}}[dir=rtl] body.pos-page .pos-floating-menu{right:14px;left:auto}[dir=rtl] body.pos-page:not(.sidebar-collapsed) .pos-floating-menu{right:302px;left:auto}@media(max-width:980px){[dir=rtl] .pos-cart-only-page .content{padding:8px}[dir=rtl] body.pos-page:not(.sidebar-collapsed) .pos-floating-menu{right:min(calc(min(88vw,320px) + 14px),calc(100vw - 56px))}}body.pos-page .pos-floating-menu{display:inline-flex!important;visibility:visible;opacity:1;z-index:1002}[dir=rtl] .pos-cart-table-mode .cart-remove-heading,[dir=rtl] .pos-cart-table-mode .cart-line-remove{width:52px;min-width:52px;max-width:52px;text-align:center}[dir=rtl] .pos-cart-table-mode .cart-line-remove{justify-items:center}@media(min-width:981px){body.pos-page:not(.pos-cart-only-page){height:100vh;height:100dvh;min-height:0;overflow:hidden;zoom:1}body.pos-page:not(.pos-cart-only-page) .app-shell,body.pos-page:not(.pos-cart-only-page) .content,body.pos-page:not(.pos-cart-only-page) #page-app,body.pos-page:not(.pos-cart-only-page) .pos-workspace{width:100%;height:100%;min-height:0;overflow:hidden}body.pos-page:not(.pos-cart-only-page) .content{display:block;padding:10px 10px 10px 64px}[dir=rtl] body.pos-page:not(.pos-cart-only-page) .content{padding:10px 64px 10px 10px}body.pos-page:not(.pos-cart-only-page) .pos-workspace{align-items:stretch;gap:10px}body.pos-page:not(.pos-cart-only-page) .pos-products,body.pos-page:not(.pos-cart-only-page) .pos-cart{height:100%;min-height:0;margin:0;overflow:hidden}body.pos-page:not(.pos-cart-only-page) .pos-products{grid-template-rows:auto auto auto minmax(0,1fr);padding:12px}body.pos-page:not(.pos-cart-only-page) .product-results{min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}body.pos-page:not(.pos-cart-only-page) .category-strip{max-height:82px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}body.pos-page:not(.pos-cart-only-page) .pos-cart{position:relative;top:auto;display:grid;grid-template-rows:auto minmax(160px,1fr) auto;padding:12px}body.pos-page:not(.pos-cart-only-page) .pos-cart-top{min-height:0}body.pos-page:not(.pos-cart-only-page) .cart-table-wrap{min-height:160px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}body.pos-page:not(.pos-cart-only-page) .pos-cart-table tr{grid-template-columns:minmax(120px,1fr) minmax(92px,118px) minmax(66px,78px) minmax(84px,96px) 32px;gap:4px}[dir=rtl] body.pos-page:not(.pos-cart-only-page) .pos-cart-table tr{grid-template-columns:32px minmax(120px,1fr) minmax(92px,118px) minmax(66px,78px) minmax(84px,96px)}body.pos-page:not(.pos-cart-only-page) .pos-cart-checkout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1fr) minmax(0,1.35fr);grid-template-areas:"summary order payment" "action action action";grid-template-rows:auto 40px;gap:5px;min-width:0;padding-top:5px}body.pos-page:not(.pos-cart-only-page) .pos-summary{grid-area:summary;position:static;align-self:start;gap:3px;margin:0;padding:6px}body.pos-page:not(.pos-cart-only-page) .pos-summary>*{min-width:0}body.pos-page:not(.pos-cart-only-page) .pos-summary .summary-row,body.pos-page:not(.pos-cart-only-page) .pos-summary .cart-total{display:flex;flex-direction:column;align-items:stretch;gap:1px}body.pos-page:not(.pos-cart-only-page) .pos-summary .summary-row span,body.pos-page:not(.pos-cart-only-page) .pos-summary .cart-total span{min-width:0;overflow-wrap:anywhere}body.pos-page:not(.pos-cart-only-page) .pos-summary .summary-row strong,body.pos-page:not(.pos-cart-only-page) .pos-summary .cart-total strong{display:block;max-width:100%;font-size:clamp(14px,1.35vw,20px);white-space:nowrap;text-align:end}body.pos-page:not(.pos-cart-only-page) .pos-summary .summary-row{padding-block:2px}body.pos-page:not(.pos-cart-only-page) .pos-summary .summary-row span,body.pos-page:not(.pos-cart-only-page) .pos-summary>label{font-size:11px;line-height:1.2}body.pos-page:not(.pos-cart-only-page) .pos-summary>label{display:grid;min-width:0;gap:3px}body.pos-page:not(.pos-cart-only-page) .pos-summary>label input{width:100%;min-width:0;box-sizing:border-box}body.pos-page:not(.pos-cart-only-page) .pos-order-options{grid-area:order;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;align-self:stretch;column-gap:8px;row-gap:10px;margin:0;padding:10px;font-size:12px}body.pos-page:not(.pos-cart-only-page) .pos-order-options textarea{min-height:52px;height:52px;padding:7px 9px;resize:vertical}body.pos-page:not(.pos-cart-only-page) .pos-order-options label{display:grid;align-content:start;min-width:0;gap:5px}body.pos-page:not(.pos-cart-only-page) .pos-order-options .pos-delivery-note-field{grid-column:1 / -1}body.pos-page:not(.pos-cart-only-page) .pos-order-options input,body.pos-page:not(.pos-cart-only-page) .pos-order-options select{width:100%;height:28px;min-width:0;min-height:28px;padding:2px 7px;box-sizing:border-box;font-size:12px}body.pos-page:not(.pos-cart-only-page) .pos-payment-panel{grid-area:payment;position:static;align-self:stretch;gap:4px;min-width:0;margin:0;padding:6px}body.pos-page:not(.pos-cart-only-page) .pos-payment-header p{display:none}body.pos-page:not(.pos-cart-only-page) .pos-payment-header h3{margin:0;font-size:15px;line-height:1.1}body.pos-page:not(.pos-cart-only-page) .pos-payment-header .button{min-height:26px;padding:2px 8px;border-radius:6px;font-size:11px;line-height:1.1}body.pos-page:not(.pos-cart-only-page) .pos-payment-panel input,body.pos-page:not(.pos-cart-only-page) .pos-payment-panel select,body.pos-page:not(.pos-cart-only-page) .pos-summary input,body.pos-page:not(.pos-cart-only-page) .pos-order-options select{height:28px;min-height:28px;padding:2px 7px;font-size:12px}body.pos-page:not(.pos-cart-only-page) .payment-grid{gap:4px;margin-top:2px}body.pos-page:not(.pos-cart-only-page) .payment-grid label,body.pos-page:not(.pos-cart-only-page) .pos-customer-select{min-width:0;font-size:11px;line-height:1.2}body.pos-page:not(.pos-cart-only-page) .pos-change-box div{gap:3px;padding:4px 6px}body.pos-page:not(.pos-cart-only-page) .pos-change-box strong{font-size:16px}body.pos-page:not(.pos-cart-only-page) .cart-total{padding-top:6px;font-size:18px}body.pos-page:not(.pos-cart-only-page) .cart-total strong{font-size:22px}body.pos-page:not(.pos-cart-only-page) .pos-checkout-action-bar{grid-area:action;min-width:0}body.pos-page:not(.pos-cart-only-page) .pos-complete-button{position:static;width:100%;height:34px;min-height:34px;margin:0;padding-block:4px;font-size:14px}}.sidebar-brand-row{display:flex;align-items:center;gap:8px;margin-bottom:14px}.sidebar-brand-row .brand{flex:1;min-width:0;margin-bottom:0}.language-switcher{display:inline-flex;flex:0 0 auto;overflow:hidden;padding:3px;border:1px solid rgba(255,255,255,.72);border-radius:9px;background:#fff;box-shadow:0 2px 8px #0000002e}.language-switcher a{display:grid;place-items:center;min-width:32px;height:30px;padding:0 7px;border-radius:6px;color:#334155;font-size:12px;font-weight:900;line-height:1;text-decoration:none}.language-switcher a:hover{color:#0f172a;background:#e2e8f0}.language-switcher a.active{color:#fff;background:var(--primary)}.analytics-dashboard{display:grid;gap:14px}.report-workspace-header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border)}.report-workspace-header .report-tabs{flex:1;border-bottom:0;overflow-x:auto}.report-actions{display:flex;gap:7px;flex-shrink:0}.report-filter-bar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-top:12px;padding:12px}.report-filter-bar label{display:grid;gap:4px;min-width:160px;font-size:12px;font-weight:800}.report-filter-bar input{min-height:36px}.report-page,.report-ledger{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.report-ledger{overflow:hidden}.report-table-scroll{display:block;width:100%;max-width:100%;overflow:visible}.report-ledger .data-table{width:100%;min-width:0;table-layout:fixed;font-size:clamp(8px,.68vw,11px)}.report-ledger .data-table th,.report-ledger .data-table td{min-width:0;max-width:none;padding:6px 4px;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.25}.report-ledger .data-table th{font-size:clamp(7px,.62vw,10px)}.report-ledger .data-table td:nth-child(1),.report-ledger .data-table th:nth-child(1){width:7%}.report-ledger .data-table td:nth-child(2),.report-ledger .data-table th:nth-child(2){width:8%}.report-ledger .data-table td:nth-child(3),.report-ledger .data-table th:nth-child(3),.report-ledger .data-table td:nth-child(4),.report-ledger .data-table th:nth-child(4){width:6%}.report-ledger .data-table td:nth-child(5),.report-ledger .data-table th:nth-child(5),.report-ledger .data-table td:nth-child(6),.report-ledger .data-table th:nth-child(6){width:6%}.report-ledger .data-table td:nth-child(n+9):nth-child(-n+14),.report-ledger .data-table th:nth-child(n+9):nth-child(-n+14){width:8%;text-align:end}.report-ledger .data-table td:last-child,.report-ledger .data-table th:last-child{width:5%;text-align:center}.report-ledger .data-table .button-small{width:100%;min-width:0;padding:3px 2px;font-size:9px}@media(max-width:1100px){.report-table-scroll{overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scrollbar-gutter:stable}.report-ledger .data-table{width:max-content;min-width:1250px;table-layout:auto;font-size:10px}.report-ledger .data-table th,.report-ledger .data-table td{min-width:72px;max-width:150px;padding:7px 6px;white-space:normal}.report-ledger .data-table td:nth-child(1),.report-ledger .data-table th:nth-child(1){position:sticky;inset-inline-start:0;z-index:2;background:var(--surface,#fff);box-shadow:1px 0 0 var(--border)}.report-ledger .data-table thead th:first-child{z-index:3}}@media(max-width:760px){.report-ledger{padding:12px}.report-workspace-header{align-items:stretch;flex-direction:column}.report-actions{justify-content:flex-end;padding-bottom:8px}}.button-small{min-height:28px;padding:3px 8px;font-size:11px}@media print{.sidebar,.topbar,.app-footer,.report-workspace-header,.report-filter-bar,.button{display:none!important}.content{padding:0!important;margin:0!important}.panel{box-shadow:none!important;break-inside:avoid}.report-ledger,.report-table-scroll{overflow:visible}.report-ledger .data-table{width:100%;min-width:0;font-size:8px}.report-ledger .data-table th,.report-ledger .data-table td{position:static;max-width:none;white-space:normal;padding:3px}}.analytics-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface,#fff)}.analytics-toolbar>div:first-child{display:grid;gap:2px}.analytics-toolbar span,.analytics-chart-card header p{color:var(--muted);font-size:12px;margin:0}.analytics-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.analytics-filters{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:10px;margin:0;padding:14px}.analytics-filters label{display:grid;gap:4px;min-width:0;font-size:12px;font-weight:700}.analytics-filters input,.analytics-filters select{width:100%;min-width:0;min-height:36px;box-sizing:border-box}.analytics-filters .analytics-check{display:flex;align-items:center;align-self:end;min-height:36px}.analytics-filters .analytics-check input{width:auto;min-height:0}.analytics-filter-actions{display:flex;align-items:end;justify-content:flex-end;gap:7px}.analytics-tabs{display:flex;gap:5px;overflow-x:auto;border-bottom:1px solid var(--border)}.analytics-tabs button{border:0;border-bottom:3px solid transparent;padding:9px 14px;background:transparent;color:var(--muted);font-weight:800;text-transform:capitalize;cursor:pointer;white-space:nowrap}.analytics-tabs button.active{color:var(--primary);border-bottom-color:var(--primary)}.analytics-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.analytics-kpi{display:grid;gap:7px;min-height:112px;padding:14px;border:1px solid var(--border);border-radius:12px;color:var(--text);background:var(--surface,#fff);text-decoration:none;box-shadow:var(--shadow-sm);transition:.15s ease}.analytics-kpi:hover{transform:translateY(-2px);border-color:var(--primary);box-shadow:var(--shadow)}.analytics-kpi-label{color:var(--muted);font-size:12px;font-weight:800}.analytics-kpi>strong{font-size:clamp(18px,2vw,27px);line-height:1.15;overflow-wrap:anywhere}.analytics-kpi-compare{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:auto;font-size:11px;color:var(--muted)}.analytics-kpi-compare em{padding:2px 5px;border-radius:999px;font-style:normal;font-weight:900}.analytics-kpi-compare .positive{color:#047857;background:#d1fae5}.analytics-kpi-compare .negative{color:#b91c1c;background:#fee2e2}.analytics-kpi-compare .neutral{color:var(--muted);background:var(--page)}.analytics-kpi.skeleton{border:0;background:linear-gradient(90deg,var(--page) 25%,var(--surface) 50%,var(--page) 75%);background-size:200% 100%;animation:analytics-pulse 1.1s infinite}@keyframes analytics-pulse{to{background-position:-200% 0}}.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.analytics-grid-wide{grid-template-columns:minmax(0,1.6fr) minmax(280px,.8fr)}.analytics-chart-card,.analytics-table-card,.analytics-inventory{margin:0;padding:15px;min-width:0}.analytics-chart-card header,.analytics-table-card header,.analytics-inventory header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}.analytics-chart-card h3,.analytics-table-card h3,.analytics-inventory h3{margin:0;font-size:16px}.analytics-bars{display:flex;align-items:flex-end;gap:4px;height:210px;padding-top:12px;border-bottom:1px solid var(--border);overflow-x:auto}.analytics-bar-group{display:flex;position:relative;align-items:flex-end;justify-content:center;gap:1px;flex:1;min-width:18px;height:100%}.analytics-bar{width:28%;min-height:2px;border-radius:3px 3px 0 0}.analytics-bar.gross,.analytics-legend i.gross{background:#94a3b8}.analytics-bar.net,.analytics-legend i.net{background:var(--primary)}.analytics-bar.profit,.analytics-legend i.profit{background:#10b981}.analytics-bar-group small{position:absolute;bottom:-18px;font-size:9px;color:var(--muted);white-space:nowrap}.analytics-legend{display:flex;justify-content:center;gap:14px;margin-top:24px;font-size:11px;color:var(--muted)}.analytics-legend span{display:flex;align-items:center;gap:4px}.analytics-legend i,.analytics-list i{width:8px;height:8px;border-radius:50%}.analytics-donut-layout{display:grid;grid-template-columns:150px 1fr;align-items:center;gap:16px;min-height:220px}.analytics-donut{display:grid;place-items:center;width:145px;aspect-ratio:1;border-radius:50%}.analytics-donut:before{content:"";grid-area:1/1;width:68%;aspect-ratio:1;border-radius:50%;background:var(--surface,#fff)}.analytics-donut span{grid-area:1/1;z-index:1;font-size:12px;font-weight:900;text-align:center}.analytics-list{display:grid;gap:8px}.analytics-list>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;font-size:12px}.analytics-list strong{text-align:end}.analytics-horizontal-bars{display:grid;gap:9px}.analytics-horizontal-bars a{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(100px,1fr) auto;align-items:center;gap:8px;color:var(--text);text-decoration:none;font-size:12px}.analytics-horizontal-bars i{height:8px;border-radius:99px;background:var(--page);overflow:hidden}.analytics-horizontal-bars b{display:block;height:100%;border-radius:inherit;background:var(--primary)}.analytics-category-list>div{grid-template-columns:minmax(0,1fr) auto;padding-bottom:7px;border-bottom:1px solid var(--border)}.analytics-inventory>div{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.analytics-inventory article{display:grid;gap:5px;padding:11px;border-radius:9px;background:var(--page)}.analytics-inventory article span{color:var(--muted);font-size:11px}.analytics-inventory article strong{font-size:18px}.analytics-inventory article.warning strong{color:#d97706}.analytics-inventory article.danger strong{color:#dc2626}.analytics-table-card .table-responsive{overflow:auto}.analytics-table-card table{min-width:700px}html[data-theme=dark] .analytics-toolbar,html[data-theme=dark] .analytics-kpi,html[data-theme=dark] .analytics-donut:before{background:var(--surface)}@media(max-width:1200px){.analytics-filters,.analytics-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.analytics-inventory>div{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.analytics-toolbar{align-items:flex-start;flex-direction:column}.analytics-toolbar-actions{justify-content:flex-start}.analytics-updated{width:100%}.analytics-filters,.analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-grid,.analytics-grid-wide{grid-template-columns:1fr}.analytics-donut-layout{grid-template-columns:1fr;justify-items:center}.analytics-inventory>div{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.analytics-filters,.analytics-kpis,.analytics-inventory>div{grid-template-columns:1fr}.analytics-filter-actions{grid-column:1/-1}.analytics-kpi{min-height:96px}.analytics-horizontal-bars a{grid-template-columns:minmax(90px,.8fr) minmax(70px,1fr) auto}}.sidebar [hidden]{display:none!important}.sidebar-search{position:relative;display:flex;align-items:center;margin:0 0 16px}.sidebar-search svg{position:absolute;inset-inline-start:12px;width:17px;height:17px;color:var(--muted);pointer-events:none}.sidebar-search input{width:100%;min-height:42px;padding:9px 12px 9px 38px;border:1px solid var(--border);border-radius:var(--radius-control);outline:none;color:var(--text);background:var(--panel);font:inherit;font-size:13px;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}[dir=rtl] .sidebar-search input{padding:9px 38px 9px 12px;text-align:right}.sidebar-search input::placeholder{color:var(--muted)}.sidebar-search input:hover{border-color:var(--border-strong)}.sidebar-search input:focus{border-color:var(--primary);background:var(--surface);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 16%,transparent)}.sidebar-search-empty{margin:8px 0;padding:18px 12px;border:1px dashed var(--border);border-radius:var(--radius-control);color:var(--muted);background:var(--panel);font-size:13px;text-align:center}
