:root{--pos-shell-bg: #e8eef7;--pos-shell-text: #0f172a;--pos-shell-accent: radial-gradient(1200px 600px at 10% -20%, rgba(14, 165, 233, .18), transparent 55%), radial-gradient(900px 500px at 90% 0%, rgba(13, 148, 136, .14), transparent 50%);--pos-panel-bg: #ffffff;--pos-panel-border: #e2e8f0;--pos-panel-shadow: rgba(15, 23, 42, .06);--pos-input-border: #cbd5e1;--pos-muted: #64748b;--pos-muted-2: #475569;--pos-status-bg: #e0f2fe;--pos-status-text: #0369a1;--pos-status-border: #7dd3fc;--pos-chip-bg: #f8fafc;--pos-chip-border: #cbd5e1;--pos-product-card-bg: linear-gradient(160deg, #f0f9ff 0%, #ecfeff 100%);--pos-product-card-border: #bae6fd;--pos-product-meta: #0369a1;--pos-product-price: #0d9488;--pos-cart-border: #e2e8f0;--pos-keypad-overlay: rgba(15, 23, 42, .45);--pos-keypad-bg: #fff;--pos-btn-bg: #ffffff;--pos-grand-total: #0f766e;--pos-primary: #0d9488;--pos-primary-hover: #0f766e;--pos-accent-blue: #2563eb;--pos-header-bg: linear-gradient(115deg, #0f766e 0%, #0e7490 38%, #1d4ed8 100%);--pos-header-text: #f8fafc;--pos-header-muted: rgba(248, 250, 252, .78);--pos-header-btn-bg: rgba(255, 255, 255, .12);--pos-header-btn-border: rgba(255, 255, 255, .28);--pos-header-btn-hover: rgba(255, 255, 255, .2);--pos-panel-head-products: #0ea5e9;--pos-panel-head-cart: #0d9488;--pos-panel-head-orders: #4f46e5}html[data-theme=dark]{--pos-shell-bg: #070a10;--pos-shell-text: #e2e8f0;--pos-shell-accent: radial-gradient(1000px 500px at 15% -10%, rgba(14, 165, 233, .12), transparent 50%), radial-gradient(800px 400px at 85% 5%, rgba(45, 212, 191, .08), transparent 45%);--pos-panel-bg: #101722;--pos-panel-border: #273449;--pos-panel-shadow: rgba(0, 0, 0, .4);--pos-input-border: #3d4f66;--pos-muted: #94a3b8;--pos-muted-2: #cbd5e1;--pos-status-bg: #0c2744;--pos-status-text: #7dd3fc;--pos-status-border: #1e4a6e;--pos-chip-bg: #151d2a;--pos-chip-border: #3d4f66;--pos-product-card-bg: linear-gradient(165deg, #0f1a28 0%, #102a32 100%);--pos-product-card-border: #1e4a6e;--pos-product-meta: #7dd3fc;--pos-product-price: #5eead4;--pos-cart-border: #273449;--pos-keypad-overlay: rgba(0, 0, 0, .65);--pos-keypad-bg: #101722;--pos-btn-bg: #151d2a;--pos-grand-total: #5eead4;--pos-primary: #14b8a6;--pos-primary-hover: #0d9488;--pos-accent-blue: #60a5fa;--pos-header-bg: linear-gradient(115deg, #042f2e 0%, #0c4a6e 42%, #1e3a8a 100%);--pos-header-text: #f1f5f9;--pos-header-muted: rgba(241, 245, 249, .75);--pos-header-btn-bg: rgba(255, 255, 255, .08);--pos-header-btn-border: rgba(255, 255, 255, .22);--pos-header-btn-hover: rgba(255, 255, 255, .14);--pos-panel-head-products: #38bdf8;--pos-panel-head-cart: #2dd4bf;--pos-panel-head-orders: #818cf8}.pos-shell{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Arial,sans-serif;background-color:var(--pos-shell-bg);background-image:var(--pos-shell-accent);background-attachment:fixed;min-height:100vh;padding:20px;color:var(--pos-shell-text);box-sizing:border-box}.pos-shell *,.pos-shell *:before,.pos-shell *:after{box-sizing:inherit}.pos-shell--auth{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px}.pos-app-header{margin:-4px -4px 20px;padding:0;border-radius:16px;background:var(--pos-header-bg);color:var(--pos-header-text);box-shadow:0 12px 40px #0d948838,0 2px 8px #0f172a14;overflow:hidden}.pos-app-header-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 20px;padding:16px 20px}.pos-app-header .topbar-brand{display:flex;align-items:center;gap:14px;min-width:0;flex:1 1 220px}.pos-app-header .topbar-brand-text{min-width:0}.pos-app-header .topbar-store{font-size:1.35rem;font-weight:800;letter-spacing:-.02em;line-height:1.15;color:var(--pos-header-text);word-break:break-word}.pos-app-header .topbar-muted{margin-top:2px;font-size:.9rem;font-weight:500;color:var(--pos-header-muted)}.topbar-logo{height:44px;width:auto;max-width:150px;object-fit:contain;border-radius:10px;border:1px solid rgba(255,255,255,.35);background:#ffffff1f;flex-shrink:0}.topbar-logo-fallback{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.85rem;letter-spacing:.06em;color:#0f766e;background:linear-gradient(145deg,#fff,#e0f2fe);border:1px solid rgba(255,255,255,.5);flex-shrink:0}.pos-app-header .topbar-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end;flex:2 1 360px}.pos-shift-pill{display:inline-flex;align-items:center;padding:6px 12px;border-radius:999px;font-size:13px;font-weight:600;border:1px solid transparent;white-space:nowrap;max-width:100%}.pos-shift-pill--open{background:#fffffff2;color:#047857;border-color:#10b98159}.pos-shift-pill--warn{background:#fef3c7f2;color:#92400e;border-color:#f59e0b73}.pos-header-message{flex:1 1 200px;min-width:0;max-width:min(420px,100%);font-size:13px;font-weight:500;background:#ffffff24!important;color:var(--pos-header-text)!important;border:1px solid rgba(255,255,255,.28)!important;word-break:break-word}.pos-app-header .touch-btn{border-color:var(--pos-header-btn-border);background:var(--pos-header-btn-bg);color:var(--pos-header-text)}.pos-app-header .touch-btn:hover:not(:disabled){background:var(--pos-header-btn-hover);border-color:#fff6}.pos-app-header .touch-btn:disabled{opacity:.45}.pos-app-header .touch-btn.primary{background:#f0fdfa;border-color:#ccfbf1;color:#0f766e;font-weight:700}.pos-app-header .touch-btn.primary:hover:not(:disabled){background:#fff}.pos-app-header .touch-btn.selected{background:#fffffff2;border-color:#fff;color:#0e7490}.topbar-menu-details{position:relative}.topbar-menu-details>summary{list-style:none}.topbar-menu-details>summary::-webkit-details-marker{display:none}.topbar-menu-summary{-webkit-user-select:none;user-select:none}.topbar-menu-panel{position:absolute;right:0;top:100%;margin-top:8px;background:var(--pos-panel-bg);border:1px solid var(--pos-panel-border);border-radius:12px;padding:14px;min-width:240px;box-shadow:0 16px 40px var(--pos-panel-shadow);z-index:50;color:var(--pos-shell-text)}.topbar-menu-panel .topbar-muted{color:var(--pos-muted)!important}.topbar-menu-user{font-weight:700;font-size:16px;margin-bottom:4px;color:var(--pos-shell-text)}.topbar-menu-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:center}.topbar-menu-actions .touch-btn{background:var(--pos-btn-bg);color:var(--pos-shell-text);border-color:var(--pos-input-border)}.topbar-menu-actions .touch-btn:hover:not(:disabled){background:var(--pos-chip-bg)}.status{background:var(--pos-status-bg);color:var(--pos-status-text);border:1px solid var(--pos-status-border);padding:10px 14px;border-radius:8px;font-size:14px}.layout{display:grid;grid-template-columns:1.55fr 1fr;gap:20px;margin-bottom:20px}.panel{background:var(--pos-panel-bg);border-radius:16px;border:1px solid var(--pos-panel-border);padding:16px;box-shadow:0 4px 24px var(--pos-panel-shadow);overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;margin:-16px -16px 14px;width:auto;border-bottom:1px solid var(--pos-panel-border);background:linear-gradient(180deg,rgba(248,250,252,.9) 0%,var(--pos-panel-bg) 100%)}html[data-theme=dark] .panel-head{background:linear-gradient(180deg,rgba(30,41,59,.5) 0%,var(--pos-panel-bg) 100%)}.panel-head--products{border-left:4px solid var(--pos-panel-head-products)}.panel-head--cart{border-left:4px solid var(--pos-panel-head-cart)}.order-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--pos-panel-border);background:var(--pos-panel-bg)}.order-tab{display:inline-flex;align-items:center;gap:6px;font-weight:600}.order-tab.selected{border-color:var(--pos-panel-head-cart);box-shadow:0 0 0 2px #14b8a640}.order-tab-badge{font-size:.72rem;font-weight:700;min-width:20px;height:20px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--pos-chip-bg);color:var(--pos-muted-2);border:1px solid var(--pos-chip-border)}.order-tab-new,.order-tab-close{min-width:36px}.panel-head--orders{border-left:4px solid var(--pos-panel-head-orders)}.panel-title{margin:0;font-size:1.1rem;font-weight:800;letter-spacing:-.02em;color:var(--pos-shell-text)}.panel-head-meta{font-size:.8rem;font-weight:700;min-width:28px;height:28px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--pos-chip-bg);color:var(--pos-muted-2);border:1px solid var(--pos-chip-border)}.login-panel{max-width:440px;width:100%;margin:0;display:flex;flex-direction:column;gap:12px;position:relative;overflow:hidden;padding-top:20px}.login-panel:before{content:"";position:absolute;top:0;left:0;right:0;height:5px;background:linear-gradient(90deg,#0d9488,#0ea5e9,#2563eb)}.login-panel--loading{text-align:center;padding:32px 24px;font-weight:600;color:var(--pos-muted-2)}.login-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.login-panel-head h1{margin:4px 0 0;font-size:1.5rem;font-weight:800;letter-spacing:-.02em}.login-kicker{margin:0;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--pos-primary)}.login-panel-tools{display:flex;gap:8px;align-items:center;flex-shrink:0}.login-panel label{display:flex;flex-direction:column;gap:8px;font-weight:600;font-size:14px}.login-panel input{border:1px solid var(--pos-input-border);border-radius:10px;padding:12px 14px;font-size:16px;background:var(--pos-panel-bg);color:var(--pos-shell-text)}.catalog-tools{margin-bottom:12px;padding-top:4px}.search-input{width:100%;border:1px solid var(--pos-input-border);border-radius:12px;padding:14px 16px;font-size:16px;margin-bottom:10px;background:var(--pos-panel-bg);color:var(--pos-shell-text);transition:border-color .15s ease,box-shadow .15s ease}.search-input:focus{outline:none;border-color:var(--pos-accent-blue);box-shadow:0 0 0 3px #2563eb26}.category-strip{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin}.catalog-content.sidebar{display:grid;grid-template-columns:180px 1fr;gap:12px}.category-sidebar{display:flex;flex-direction:column;gap:8px;max-height:68vh;overflow:auto;padding-right:6px}.category-chip{border:1px solid var(--pos-chip-border);background:var(--pos-chip-bg);border-radius:999px;padding:10px 14px;white-space:nowrap;font-size:15px;min-height:44px;cursor:pointer;transition:background .12s ease,border-color .12s ease,transform .1s ease}.category-chip:hover{border-color:var(--pos-accent-blue)}.category-chip.active{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;border-color:transparent;box-shadow:0 4px 14px #2563eb59}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:12px;max-height:68vh;overflow:auto;padding-bottom:4px}.product-card{border:1px solid var(--pos-product-card-border);background:var(--pos-product-card-bg);border-radius:14px;padding:14px;text-align:left;cursor:pointer;min-height:100px;display:flex;flex-direction:column;justify-content:space-between;gap:6px;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}.product-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px #0d948826;border-color:var(--pos-primary)}.product-card:active{transform:translateY(0)}.product-name{font-size:16px;font-weight:800;line-height:1.25}.product-card small{display:block;color:var(--pos-product-meta);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.product-card strong{color:var(--pos-product-price);font-size:18px;font-weight:800}.cart-list{max-height:44vh;overflow:auto;border:1px solid var(--pos-cart-border);border-radius:12px;background:var(--pos-chip-bg)}.cart-row{border-bottom:1px solid var(--pos-cart-border);padding:12px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;background:var(--pos-panel-bg)}.cart-row:last-child{border-bottom:none}.cart-main p{margin:4px 0 0;color:var(--pos-muted-2);font-size:14px}.qty-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.qty-controls button{min-width:44px;min-height:44px;font-size:20px}.qty-controls span{font-size:18px;min-width:28px;text-align:center}.discount-presets{display:flex;gap:6px;flex-wrap:wrap}.discount-presets button{min-height:40px;min-width:48px;font-size:14px}.discount-presets button.active{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;border-color:transparent}.summary{margin-top:12px}.summary p{margin:6px 0}.summary-row{display:flex;justify-content:space-between;gap:10px;align-items:center}.summary-row input{width:90px;border:1px solid var(--pos-input-border);border-radius:8px;padding:8px;font-size:16px;background:var(--pos-panel-bg);color:var(--pos-shell-text)}.payment-choices{display:flex;gap:8px;margin:10px 0;flex-wrap:wrap}.grand-total{font-size:22px;font-weight:800;color:var(--pos-grand-total)}.action-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.touch-btn{border:1px solid var(--pos-input-border);background:var(--pos-btn-bg);border-radius:12px;padding:10px 16px;cursor:pointer;font-size:15px;min-height:48px;font-weight:600;color:var(--pos-shell-text);transition:background .12s ease,border-color .12s ease,transform .08s ease}.touch-btn:hover:not(:disabled){background:var(--pos-chip-bg);border-color:var(--pos-muted)}.touch-btn:active:not(:disabled){transform:scale(.98)}.touch-btn.primary{background:linear-gradient(135deg,var(--pos-primary) 0%,var(--pos-primary-hover) 100%);border-color:transparent;color:#fff;box-shadow:0 4px 16px #0d948859}.touch-btn.primary:hover:not(:disabled){filter:brightness(1.05);box-shadow:0 6px 20px #0d948866}.touch-btn.compact{min-height:38px;padding:6px 12px;font-size:14px}.touch-btn.selected{background:linear-gradient(135deg,#2563eb,#1d4ed8);border-color:transparent;color:#fff}.printers{margin-bottom:16px}.printer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.printer-grid label{display:flex;flex-direction:column;gap:6px;font-size:14px}.printer-grid input{border:1px solid var(--pos-input-border);border-radius:8px;padding:10px;font-size:15px}.keypad-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--pos-keypad-overlay);display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.keypad{width:min(420px,92vw);background:var(--pos-keypad-bg);border-radius:16px;border:1px solid var(--pos-panel-border);padding:18px;box-shadow:0 24px 60px #0003}.keypad-display{border:1px solid var(--pos-input-border);border-radius:12px;padding:14px;font-size:28px;text-align:right;margin-bottom:12px;background:var(--pos-chip-bg);color:var(--pos-shell-text);font-weight:700}.keypad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.orders{margin-top:0}.orders-list{display:flex;flex-direction:column;gap:10px;max-height:32vh;overflow:auto;padding-top:4px}.order-row{border:1px solid var(--pos-panel-border);border-radius:12px;padding:12px;display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;background:var(--pos-chip-bg);transition:border-color .12s ease}.order-row:hover{border-color:var(--pos-accent-blue)}.order-row p{margin:2px 0 0;font-size:12px;color:var(--pos-muted-2)}.badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;text-transform:capitalize}.badge.sale{background:#d1fae5;color:#047857}.badge.refund{background:#fee2e2;color:#991b1b}html[data-theme=dark] .badge.sale{background:#10b98133;color:#6ee7b7}html[data-theme=dark] .badge.refund{background:#f8717126;color:#fca5a5}.muted{color:var(--pos-muted)}.pos-terminal-banner{background:linear-gradient(90deg,#f59e0b33,#fbbf2426);color:#92400e;padding:12px 20px;font-size:14px;font-weight:600;text-align:center;border-radius:12px;border:1px solid rgba(245,158,11,.35);margin-bottom:16px}html[data-theme=dark] .pos-terminal-banner{background:#b4530940;color:#fcd34d;border-color:#fbbf2440}@media (max-width: 1200px){.layout,.catalog-content.sidebar{grid-template-columns:1fr}.category-sidebar{flex-direction:row;max-height:none;overflow-x:auto;padding-right:0}.printer-grid{grid-template-columns:1fr}.orders-list{max-height:40vh}}html[dir=rtl] body,html[dir=rtl] .pos-shell{font-family:Segoe UI,Cairo,Tajawal,system-ui,sans-serif}html[dir=rtl] .product-card{text-align:right}html[dir=rtl] .keypad-display{text-align:left;direction:ltr}html[dir=rtl] .category-sidebar{padding-right:0;padding-left:6px}html[dir=rtl] .topbar-menu-panel{left:0;right:auto}html[dir=rtl] .panel-head--products,html[dir=rtl] .panel-head--cart,html[dir=rtl] .panel-head--orders{border-left:none;border-right:4px solid var(--pos-panel-head-products)}html[dir=rtl] .panel-head--cart{border-right-color:var(--pos-panel-head-cart)}html[dir=rtl] .panel-head--orders{border-right-color:var(--pos-panel-head-orders)}html[dir=rtl] .product-card strong,html[dir=rtl] .grand-total,html[dir=rtl] .summary p{unicode-bidi:plaintext}
