@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700&display=swap');
:root{--ink:#17241f;--muted:#718078;--forest:#173c30;--forest-2:#245745;--cream:#f3f5f2;--panel:#fff;--line:#dde4df;--orange:#d97534;--orange-soft:#fff1e8;--green:#24946b;--red:#c65353;--yellow:#d6a22f;--blue:#377db1;--shadow:0 10px 30px rgba(20,43,34,.08);font-family:'Noto Kufi Arabic',system-ui,sans-serif;color:var(--ink);background:var(--cream)}
*{box-sizing:border-box}body{margin:0;min-width:320px;font-size:15px;background:var(--cream)}button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.app-shell{min-height:100vh}.topbar{height:74px;padding:0 24px;background:var(--forest);color:#fff;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20}.brand{border:0;background:none;color:#fff;display:flex;align-items:center;gap:12px;text-align:right}.brand-mark{width:42px;height:42px;border:1px solid rgba(255,255,255,.35);display:grid;place-items:center;border-radius:50%;font-weight:700;letter-spacing:-1px}.brand strong{display:block;font-size:16px}.brand small{display:block;color:#bfd0c8;font-size:12px;margin-top:2px}.top-actions{display:flex;align-items:center;gap:10px}.demo-badge{background:#f6c65d;color:#4a3710;padding:6px 10px;border-radius:7px;font-size:12px;font-weight:700}.status,.user-chip{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;border-radius:9px;height:40px;display:flex;align-items:center;gap:8px;padding:0 12px}.status i{width:8px;height:8px;border-radius:50%;background:#45d99a}.status.offline i{background:#ef6b67}.status.syncing i{background:#f6c65d;animation:pulse 1s infinite}.user-chip>span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#d98750}.main-nav{height:58px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:stretch;padding:0 24px;gap:4px;position:sticky;top:74px;z-index:19;overflow-x:auto}.nav-item{min-width:max-content;border:0;background:transparent;color:#59675f;padding:0 17px;display:flex;gap:8px;align-items:center;border-bottom:3px solid transparent;font-weight:600}.nav-item span{font-size:18px}.nav-item em{font-style:normal;background:#e8ece9;min-width:22px;height:22px;padding:0 6px;display:grid;place-items:center;border-radius:11px;font-size:11px}.nav-item.active{color:var(--forest);border-bottom-color:var(--orange)}.view{display:none}.view.active{display:block}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;min-height:calc(100vh - 132px)}.catalog-panel{padding:20px 24px 32px;min-width:0}.cart-panel{background:#fff;border-right:1px solid var(--line);padding:19px;display:flex;flex-direction:column;position:sticky;top:132px;height:calc(100vh - 132px);overflow:auto}.search-row{display:grid;grid-template-columns:1fr 240px;gap:10px}.search-box,.barcode-box{height:48px;background:#fff;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;gap:10px;padding:0 13px}.search-box:focus-within,.barcode-box:focus-within{border-color:var(--forest-2);box-shadow:0 0 0 3px rgba(36,87,69,.1)}.search-box span,.barcode-box span{font-size:23px;color:var(--muted)}input{border:0;outline:0;background:transparent;width:100%;color:var(--ink)}.category-tabs{display:flex;gap:8px;overflow-x:auto;padding:16px 0 10px}.category-tabs button{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:9px;padding:9px 14px;color:#57655d;font-weight:600}.category-tabs button.active{background:var(--forest);color:#fff;border-color:var(--forest)}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:8px 0 12px}.section-heading h1,.page-header h1{font-size:24px;margin:0}.section-heading p,.page-header p{margin:4px 0 0;color:var(--muted);font-size:13px}.section-heading>span{color:var(--muted);font-size:12px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(146px,1fr));gap:11px}.product-card{min-height:118px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px;text-align:right;display:flex;flex-direction:column;justify-content:space-between;transition:.15s ease;position:relative}.product-card:hover{transform:translateY(-2px);border-color:#b5c2ba;box-shadow:var(--shadow)}.product-card:active{transform:scale(.98)}.product-card .product-icon{width:34px;height:34px;background:#edf2ef;color:var(--forest);border-radius:9px;display:grid;place-items:center;font-size:18px}.product-card.hot .product-icon{background:#fff0e6;color:#c76529}.product-card.cold .product-icon{background:#eaf4fb;color:#3077a8}.product-card.sweet .product-icon{background:#fff5dc;color:#9a6c12}.product-card.retail .product-icon{background:#eeeae5;color:#6a513e}.product-card b{font-size:14px;line-height:1.5}.product-card small{color:var(--muted);font-size:11px}.product-card strong{color:var(--forest);font-size:16px}.cart-head{display:flex;align-items:center;justify-content:space-between}.eyebrow{display:block;color:var(--orange);font-size:11px;font-weight:700;margin-bottom:3px}.cart-head h2{margin:0;font-size:20px}.icon-button{width:36px;height:36px;border-radius:8px;border:1px solid var(--line);background:#fff;font-size:22px}.icon-button.danger{color:var(--red)}.customer-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end;padding:14px 0;border-bottom:1px solid var(--line)}.customer-row label,.order-note{display:block}.customer-row label span,.order-note span{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.customer-row input,.order-note input{height:42px;border:1px solid var(--line);border-radius:8px;padding:0 10px;background:#fafbfa}.secondary-button,.primary-button,.small-button{border-radius:9px;padding:10px 14px;border:1px solid var(--line);background:#fff;color:var(--ink);font-weight:700}.primary-button{background:var(--forest);border-color:var(--forest);color:#fff}.secondary-button:hover{background:#f3f5f2}.small-button{padding:7px 10px;font-size:12px}.small-button.success{color:var(--green);border-color:#a9d8c6}.cart-items{flex:1;min-height:160px;padding:8px 0;overflow:auto}.empty-state{height:100%;min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:4px}.cart-item{padding:11px 0;border-bottom:1px solid #edf0ed;display:grid;grid-template-columns:1fr auto;gap:6px}.cart-item .item-title{font-weight:700}.cart-item .item-meta{font-size:11px;color:var(--muted);display:block;margin-top:3px}.qty-control{display:flex;align-items:center;gap:7px;margin-top:7px}.qty-control button{width:27px;height:27px;border:1px solid var(--line);background:#fff;border-radius:7px}.qty-control .remove{color:var(--red);margin-right:5px}.cart-item-price{text-align:left}.cart-item-price strong{display:block}.cart-item-price small{color:var(--muted)}.order-note{margin-top:7px}.cart-summary{padding:12px 0;border-top:1px solid var(--line)}.cart-summary>div{display:flex;align-items:center;justify-content:space-between;margin:7px 0}.cart-summary span{color:var(--muted)}.cart-summary button,.link-button{border:0;background:none;color:var(--orange);font-weight:700}.cart-summary .total{margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}.cart-summary .total span{color:var(--ink);font-weight:700}.cart-summary .total strong{font-size:24px;color:var(--forest)}.cart-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cart-actions .primary-button{grid-column:1/-1;font-size:16px;padding:13px}.page-wrap{max-width:1280px;margin:0 auto;padding:28px 24px 55px}.page-wrap.wide{max-width:1500px}.page-header{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px;gap:16px}.header-actions{display:flex;gap:8px;align-items:center}.header-actions select,.page-header>select{height:42px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:0 12px}.bar-stats,.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.bar-stats>div,.metric-grid article{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px}.bar-stats b{font-size:26px;margin-left:8px}.bar-stats span,.metric-grid span{color:var(--muted)}.metric-grid article strong{display:block;font-size:24px;margin:9px 0 3px}.metric-grid article small{color:var(--muted)}.metric-grid article.accent{background:var(--forest);color:#fff;border:0}.metric-grid article.accent span,.metric-grid article.accent small{color:#c8d8d1}.bar-board{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:14px}.bar-empty{grid-column:1/-1;text-align:center;padding:70px 20px;background:#fff;border:1px dashed #bac5bf;border-radius:14px;color:var(--muted)}.order-card{background:#fff;border:1px solid var(--line);border-top:6px solid #c8d1cc;border-radius:13px;box-shadow:0 5px 18px rgba(24,50,40,.06);overflow:hidden}.order-card.new{border-top-color:var(--orange)}.order-card.making{border-top-color:var(--blue)}.order-card.ready{border-top-color:var(--green)}.order-card.flash{animation:flash 1.1s 2}.order-card header{display:flex;justify-content:space-between;padding:14px;border-bottom:1px solid var(--line)}.order-card header h3{margin:0;font-size:18px}.order-card header small{color:var(--muted)}.elapsed{font-weight:700}.order-lines{padding:14px}.order-line{padding:7px 0}.order-line b{font-size:16px}.order-line span{display:block;color:#59685f;font-size:12px;margin-top:3px}.order-card footer{padding:12px 14px;background:#f7f8f7;display:flex;justify-content:space-between;align-items:center}.order-card footer button{border:0;background:var(--forest);color:#fff;border-radius:8px;padding:9px 13px;font-weight:700}.order-card.ready footer button{background:var(--green)}.split-grid{display:grid;grid-template-columns:2fr 1fr;gap:14px}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.panel-title h2{margin:0;font-size:17px}.panel-title>span,.panel-title>div>span{color:var(--muted);font-size:12px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:right}th,td{padding:11px 9px;border-bottom:1px solid #edf0ed;font-size:13px}th{color:var(--muted);font-weight:500}.state-pill{padding:5px 9px;border-radius:999px;font-size:11px;font-weight:700}.state-pill.matched{background:#e5f5ee;color:#167553}.details-list{margin:0}.details-list>div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #edf0ed}.details-list dt{color:var(--muted)}.details-list dd{margin:0;font-weight:700}.success-text{color:var(--green)!important}.dashboard-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:14px}.chart-panel{min-height:310px}.bar-chart{height:210px;display:flex;align-items:end;gap:10px;padding:15px 10px 0;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,#eef1ee 0,#eef1ee 1px,transparent 1px,transparent 52px)}.bar-chart i{height:var(--h);flex:1;max-width:44px;background:linear-gradient(to top,var(--forest),#4d806c);border-radius:6px 6px 0 0;margin:auto}.chart-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;padding-top:8px}.branch-list>div{display:grid;grid-template-columns:1fr auto;gap:2px;padding:10px 0;border-bottom:1px solid #edf0ed}.branch-list small{color:var(--muted)}.branch-list span{grid-row:1/3;grid-column:2;align-self:center;font-size:11px}.branch-list .ok{color:var(--green)}.branch-list .warn{color:var(--yellow)}.donut-row{display:flex;align-items:center;justify-content:space-around;padding:18px}.donut{width:120px;height:120px;border-radius:50%;background:conic-gradient(var(--orange) 0 33%,var(--blue) 33% 66%,var(--green) 66%);display:grid;place-items:center;position:relative}.donut:after{content:'';position:absolute;width:78px;height:78px;background:#fff;border-radius:50%}.donut span{z-index:1;font-size:24px;font-weight:700}.donut-row p{margin:9px}.donut-row p b{margin-right:15px}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-left:6px}.dot.new{background:var(--orange)}.dot.making{background:var(--blue)}.dot.ready{background:var(--green)}.review-list>div{padding:11px;border-right:3px solid var(--orange);background:#faf8f6;margin:8px 0}.review-list b,.review-list span{display:block}.review-list span{color:var(--muted);font-size:12px;margin-top:3px}.alerts-list{display:grid;gap:10px}.alert-card{background:#fff;border:1px solid var(--line);border-right:5px solid var(--yellow);border-radius:12px;padding:15px;display:grid;grid-template-columns:1fr auto;gap:10px}.alert-card.high{border-right-color:var(--red)}.alert-card h3{margin:0 0 4px;font-size:16px}.alert-card p{margin:0;color:var(--muted);font-size:13px}.alert-meta{display:flex;gap:15px;color:var(--muted);font-size:11px;margin-top:10px}.alert-card button{align-self:center}.upload-panel{background:#fff;border:2px dashed #bdc8c1;border-radius:15px;padding:48px 20px;text-align:center}.upload-icon{width:58px;height:58px;background:#edf2ef;color:var(--forest);border-radius:50%;display:grid;place-items:center;font-size:28px;margin:auto}.upload-panel h2{margin:14px 0 4px}.upload-panel p{color:var(--muted);margin:0 0 15px}.upload-panel small{display:block;color:var(--muted);margin-top:13px}.import-stats{display:flex;gap:30px;padding:15px 0}.import-stats span{color:var(--muted)}.import-stats b{color:var(--ink)}.notice{background:#fff8e7;color:#7a5a13;padding:12px;border-radius:8px}.modal{position:fixed;inset:0;background:rgba(9,23,17,.62);z-index:100;display:grid;place-items:center;padding:20px}.modal-card{background:#fff;border-radius:15px;padding:22px;width:min(520px,100%);max-height:92vh;overflow:auto;position:relative;box-shadow:0 30px 90px rgba(0,0,0,.3)}.modal-close{position:absolute;left:13px;top:12px;border:0;background:#f0f2f0;border-radius:50%;width:32px;height:32px;font-size:20px}.modal h2{margin:0 0 6px}.modal p{color:var(--muted)}.option-group{margin:16px 0}.option-group label{display:block;font-weight:700;margin-bottom:8px}.option-chips{display:flex;gap:7px;flex-wrap:wrap}.option-chips button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px 12px}.option-chips button.active{background:var(--forest);color:#fff;border-color:var(--forest)}.modal-actions{display:flex;gap:8px;margin-top:18px}.modal-actions button{flex:1}.payment-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.payment-methods button{border:1px solid var(--line);background:#fff;border-radius:11px;padding:15px 8px;font-weight:700}.payment-methods button.active{border-color:var(--forest);background:#edf4f0}.currency-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.currency-grid label{font-size:12px;color:var(--muted)}.currency-grid input,.currency-grid select,.modal-form input,.modal-form select{display:block;width:100%;height:43px;border:1px solid var(--line);border-radius:8px;padding:0 10px;margin-top:5px;background:#fff}.modal-form{display:grid;gap:10px}.toast{position:fixed;bottom:24px;right:24px;z-index:200;background:var(--forest);color:#fff;padding:13px 17px;border-radius:10px;box-shadow:var(--shadow)}
.printer-status{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 12px;font-size:12px}.printer-status i{width:9px;height:9px;border-radius:50%;background:var(--red)}.printer-status.pending i{background:var(--yellow)}.printer-status.online i{background:var(--green)}.printer-setup{display:grid;gap:0;margin-bottom:14px}.printer-step{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.printer-step>span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--forest);color:#fff;font-weight:700}.printer-step b,.printer-step small{display:block}.printer-step small{color:var(--muted);margin-top:3px}.printer-step a{text-decoration:none}.printer-controls{display:grid;grid-template-columns:minmax(220px,1fr) 1fr 1fr auto;gap:12px;align-items:end;padding-top:16px}.printer-controls>label>span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.printer-controls select{width:100%;height:44px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:0 10px}.check-setting{min-height:44px;display:flex!important;align-items:center;gap:9px;border:1px solid var(--line);border-radius:9px;padding:7px 10px;background:#fafbfa}.check-setting input{width:18px;height:18px;accent-color:var(--forest)}.check-setting span{margin:0!important}.check-setting b,.check-setting small{display:block}.check-setting small{font-size:10px;color:var(--muted)}.hardware-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.hardware-card{display:grid;grid-template-columns:48px 1fr auto;gap:13px;align-items:center}.hardware-card h2{margin:0 0 5px;font-size:17px}.hardware-card p{margin:0;color:var(--muted);font-size:12px}.hardware-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:11px;background:var(--orange-soft);color:var(--orange);font-size:22px}.hardware-note h2{margin-top:0}.hardware-note li{margin:7px 0;color:#526158}
@keyframes flash{50%{box-shadow:0 0 0 6px rgba(217,117,52,.22)}}@keyframes pulse{50%{opacity:.3}}
@media(max-width:1000px){.pos-layout{grid-template-columns:1fr}.cart-panel{position:relative;top:auto;height:auto;border-right:0;border-top:1px solid var(--line)}.main-nav{padding:0 10px}.nav-item{padding:0 12px}.split-grid,.dashboard-grid{grid-template-columns:1fr}.metric-grid.four{grid-template-columns:repeat(2,1fr)}.printer-controls{grid-template-columns:1fr 1fr}.hardware-grid{grid-template-columns:1fr}}
@media(max-width:650px){body{font-size:14px}.topbar{height:64px;padding:0 12px}.brand strong{font-size:14px}.brand small{font-size:10px}.brand-mark{width:36px;height:36px}.demo-badge{display:none}.user-chip b{display:none}.main-nav{top:64px;height:56px}.nav-item{font-size:12px;padding:0 10px}.nav-item span{font-size:15px}.pos-layout{min-height:calc(100vh - 120px)}.catalog-panel,.page-wrap{padding:16px 12px 35px}.search-row{grid-template-columns:1fr}.barcode-box{display:none}.product-grid{grid-template-columns:repeat(2,1fr)}.product-card{min-height:108px}.cart-panel{padding:15px}.page-header{align-items:flex-start;flex-direction:column}.page-header h1{font-size:21px}.bar-stats,.metric-grid.four{grid-template-columns:repeat(2,1fr)}.bar-stats>div,.metric-grid article{padding:12px}.metric-grid article strong{font-size:20px}.bar-board{grid-template-columns:1fr}.header-actions{width:100%;overflow-x:auto}.dashboard-grid{grid-template-columns:1fr}.alert-card{grid-template-columns:1fr}.alert-card button{justify-self:start}.currency-grid{grid-template-columns:1fr}.payment-methods{grid-template-columns:1fr}.toast{left:12px;right:12px;bottom:12px}.section-heading h1{font-size:19px}.printer-step{grid-template-columns:38px 1fr}.printer-step button,.printer-step a{grid-column:1/-1;text-align:center}.printer-controls{grid-template-columns:1fr}.hardware-card{grid-template-columns:44px 1fr}.hardware-card button{grid-column:1/-1}}
@media print{.topbar,.main-nav,.catalog-panel,.cart-actions{display:none}.cart-panel{display:block;border:0}.app-shell{background:#fff}}

.trial-signing{margin-bottom:14px;font-size:16px}.trial-signing label,.trial-signing p{font-size:14px}.trial-signing input[type=file]{height:auto;padding:10px;direction:ltr}.trial-signing button:disabled{opacity:.6;cursor:wait}

/* Compact cashier surface: product names and prices, without sales metadata. */
#categoryDescription:empty{display:none}
.product-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:8px;align-items:stretch}
.product-card{min-height:104px;padding:12px;gap:10px;justify-content:space-between}
.product-card b{display:block;font-size:14px;line-height:1.6;overflow-wrap:anywhere;font-weight:600}
.product-card strong{display:block;font-size:16px;line-height:1.3}
.section-heading h1{font-size:18px}
@media(min-width:761px) and (max-width:1280px){
  .topbar{height:60px;padding:0 16px}
  .brand-logo{width:40px;height:40px}
  .main-nav{top:60px;height:50px;padding:0 8px;gap:0}
  .nav-item{padding:0 10px;font-size:14px;min-width:0;flex-shrink:0}
  .nav-item span{font-size:15px}
  .pos-layout{grid-template-columns:minmax(0,1fr) 300px;min-height:calc(100vh - 110px)}
  .cart-panel{position:sticky;top:110px;height:calc(100vh - 110px);padding:12px;border-top:0;border-right:1px solid var(--line)}
  .catalog-panel{padding:12px}
  .search-row{grid-template-columns:minmax(0,1fr) 155px;gap:8px}
  .search-box,.barcode-box{height:42px;padding:0 9px;font-size:14px}
  .category-tabs{flex-wrap:wrap;padding:10px 0 4px;gap:6px;overflow:visible}
  .category-tabs button{padding:8px 10px;font-size:14px;min-height:40px}
  .section-heading{margin:10px 0}
  .cart-head h2{font-size:18px}
  .customer-row{padding:8px 0}
  .cart-items,.empty-state{min-height:90px}
  .cart-summary{padding:8px 0}
  .cart-summary .total strong{font-size:22px}
}
@media(max-width:760px){
  .pos-layout{grid-template-columns:1fr}
  .cart-panel{position:relative;top:auto;height:auto}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
