
:root{--bg:#f4f6fb;--panel:#fff;--text:#152033;--muted:#6b7280;--border:#e5e7eb;--brand:#0f766e;--brand2:#115e59;--danger:#dc2626;--warn:#f59e0b;--dark:#111827;--soft:#eef7f6}*{box-sizing:border-box}html{direction:rtl}body{margin:0;font-family:"Cairo","Tahoma",Arial,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}.app{display:flex;min-height:100vh}.sidebar{width:280px;background:#0f172a;color:#e5e7eb;position:fixed;right:0;top:0;bottom:0;overflow:auto;padding:16px 12px;z-index:20}.brand{display:flex;align-items:center;gap:10px;padding:10px 12px 18px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:12px}.brand-icon{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#14b8a6,#22c55e);display:grid;place-items:center;font-weight:800;color:#fff}.brand-title{font-size:17px;font-weight:800}.brand-sub{font-size:12px;color:#94a3b8}.side-group{margin:10px 0}.side-title{font-size:12px;color:#94a3b8;padding:8px 12px}.side-link{display:flex;align-items:center;gap:9px;padding:11px 12px;border-radius:12px;margin:3px 0;color:#e5e7eb;font-size:14px}.side-link:hover,.side-link.active{background:rgba(20,184,166,.18);color:#fff}.main{margin-right:280px;width:calc(100% - 280px);min-height:100vh}.topbar{height:68px;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:10}.menu-toggle{display:none;border:0;background:#0f172a;color:#fff;border-radius:10px;padding:9px 12px}.content{padding:22px}.page-title{font-size:23px;font-weight:900;margin:0 0 5px}.page-subtitle{margin:0;color:var(--muted);font-size:13px}.grid{display:grid;gap:16px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:18px}.card{background:var(--panel);border:1px solid var(--border);border-radius:18px;box-shadow:0 8px 24px rgba(15,23,42,.05);padding:18px}.stat-number{font-size:26px;font-weight:900;margin-top:8px}.muted{color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:12px;padding:10px 14px;font-weight:800;cursor:pointer}.btn-primary{background:var(--brand);color:white}.btn-dark{background:#0f172a;color:white}.btn-light{background:#f3f4f6;color:#111827}.btn-danger{background:var(--danger);color:#fff}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:separate;border-spacing:0 8px}.data-table th{font-size:12px;color:#6b7280;text-align:right;padding:0 12px}.data-table td{background:#fff;padding:13px 12px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.data-table td:first-child{border-radius:0 12px 12px 0;border-right:1px solid var(--border)}.data-table td:last-child{border-radius:12px 0 0 12px;border-left:1px solid var(--border)}.badge{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:800;background:#eef2ff;color:#3730a3}.badge.green{background:#dcfce7;color:#166534}.badge.orange{background:#ffedd5;color:#9a3412}.badge.red{background:#fee2e2;color:#991b1b}.filters{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.input,.select{border:1px solid var(--border);border-radius:12px;background:#fff;padding:11px 12px;min-height:42px}.pos-shell{display:grid;grid-template-columns:240px minmax(0,1fr) 360px;gap:14px;height:calc(100vh - 110px)}.pos-panel{background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden;display:flex;flex-direction:column}.pos-panel-head{padding:14px;border-bottom:1px solid var(--border);font-weight:900;display:flex;align-items:center;justify-content:space-between}.category-list{padding:10px;overflow:auto}.cat-btn{width:100%;text-align:right;margin-bottom:8px;padding:14px 12px;border:1px solid var(--border);background:#f8fafc;border-radius:13px;font-weight:800;cursor:pointer}.cat-btn.active{background:var(--soft);border-color:#99f6e4;color:#115e59}.products-grid{padding:12px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:10px}.product-card{min-height:105px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(180deg,#fff,#f8fafc);padding:12px;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between}.product-card:hover{border-color:#5eead4;box-shadow:0 8px 20px rgba(20,184,166,.12)}.product-name{font-weight:900}.product-price{font-size:13px;color:#0f766e;font-weight:900}.cart{padding:12px;overflow:auto;flex:1}.cart-line{display:grid;grid-template-columns:1fr 64px 78px;gap:8px;align-items:center;border-bottom:1px dashed var(--border);padding:10px 0}.cart-total{border-top:1px solid var(--border);padding:14px;background:#f8fafc}.tot-row{display:flex;justify-content:space-between;margin:7px 0}.tot-row.final{font-size:20px;font-weight:900}.pay-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top right,#ccfbf1,transparent 30%),#0f172a}.login-card{width:min(460px,92vw);background:#fff;border-radius:24px;padding:28px;box-shadow:0 25px 80px rgba(0,0,0,.25)}.login-card h1{margin:0 0 8px}.form-row{margin-bottom:14px}.form-row label{display:block;font-weight:800;margin-bottom:6px}.form-control{width:100%;border:1px solid var(--border);border-radius:14px;padding:13px}.error{background:#fee2e2;color:#991b1b;padding:10px;border-radius:12px;margin-bottom:12px}@media(max-width:1100px){.pos-shell{grid-template-columns:180px 1fr}.pos-shell .pos-panel:last-child{grid-column:1/-1;height:320px}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:850px){.sidebar{transform:translateX(100%);transition:.2s}.sidebar.open{transform:translateX(0)}.main{margin-right:0;width:100%}.menu-toggle{display:block}.content{padding:14px}.stats{grid-template-columns:1fr}.pos-shell{height:auto;grid-template-columns:1fr}.pos-panel{min-height:260px}.products-grid{grid-template-columns:repeat(2,1fr)}}
.pos-toolbar{margin-bottom:14px;padding:12px}.form-inline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.form-inline label{font-weight:900}.input.small{width:96px;min-width:96px}.enhanced-pos{height:calc(100vh - 190px)}.cart-line.full{grid-template-columns:1fr 96px 75px 30px}.cart-line small{display:block;color:var(--muted);font-size:11px}.qty-box{display:flex;align-items:center;justify-content:center;gap:4px}.qty-box button,.mini-danger{border:0;border-radius:8px;background:#e5e7eb;min-width:26px;height:26px;font-weight:900;cursor:pointer}.mini-danger{background:#fee2e2;color:#991b1b}.active-pay{outline:2px solid #14b8a6;background:#ccfbf1!important}.msg{font-weight:800}.msg.ok{color:#166534}.error-text{color:#991b1b}.open-orders{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.action-grid{display:flex;gap:6px;flex-wrap:wrap}.kitchen-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.kitchen-ticket{border:1px solid var(--border);border-radius:16px;background:#fff;padding:14px}.kitchen-ticket h3{margin:0 0 6px}.status-open{background:#eef2ff;color:#3730a3}.status-sent_to_kitchen,.status-sent{background:#ffedd5;color:#9a3412}.status-preparing{background:#fef9c3;color:#854d0e}.status-ready{background:#dcfce7;color:#166534}.status-paid{background:#dbeafe;color:#1d4ed8}@media(max-width:850px){.enhanced-pos{height:auto}.form-inline>*{width:100%}.input.small{width:100%}}
.side-group.collapsible .side-title{width:100%;display:flex;align-items:center;justify-content:space-between;border:0;background:transparent;color:#94a3b8;cursor:pointer;font-family:inherit}.side-group.closed .side-items{display:none}.fullscreen-body{background:#eef2f7}.fullscreen-topbar{height:58px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:40}.fullscreen-content{padding:14px}.fullscreen-actions{display:flex;gap:8px}.pos-launch{position:fixed;inset:0;background:rgba(15,23,42,.72);z-index:100;display:grid;place-items:center;border-radius:0}.pos-launch.hide{display:none}.pos-launch h2{color:#fff;text-align:center}.order-type-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px}.start-type{background:#fff;border:0;border-radius:22px;padding:26px;font-family:inherit;font-size:22px;font-weight:900;cursor:pointer;box-shadow:0 25px 80px rgba(0,0,0,.25)}.start-type small{font-size:13px;color:#6b7280}.context-box{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.hide{display:none!important}.fullscreen-pos{height:calc(100vh - 185px)}.product-card.with-image{min-height:150px}.product-card.with-image img{width:100%;height:72px;object-fit:cover;border-radius:12px;margin-bottom:8px}.product-img-placeholder{height:72px;border-radius:12px;background:#f1f5f9;display:grid;place-items:center;font-size:28px;margin-bottom:8px}.product-img-placeholder.mini{width:44px;height:44px;margin:0}.thumb{width:52px;height:52px;object-fit:cover;border-radius:12px}.note-modal,.table-picker-modal{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:120;display:grid;place-items:center}.modal-card{width:min(520px,94vw);background:#fff;border-radius:20px;padding:16px;box-shadow:0 25px 80px rgba(0,0,0,.28)}.modal-card.wide{width:min(900px,94vw)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.note-options{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.note-chip{border:1px solid var(--border);border-radius:999px;padding:8px 12px;background:#f8fafc;font-weight:800}.item-note{color:#9a3412;font-weight:800}.item-note.big{font-size:17px;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:10px}.tables-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:10px}.table-choice{min-height:88px;border:1px solid var(--border);border-radius:16px;background:#f8fafc;font-weight:900;cursor:pointer}.table-choice small{display:block;color:#6b7280}.table-choice.busy{background:#fee2e2}.table-choice.free{background:#dcfce7}.kitchen-tabs{display:flex;gap:8px;flex-wrap:wrap}.open-in-fullscreen{display:inline-flex}.tot-row strong{min-width:75px;text-align:left}@media(max-width:900px){.order-type-grid{grid-template-columns:1fr}.fullscreen-pos{height:auto}.start-type{font-size:18px}.context-box{width:100%}.context-box>*{width:100%}}
.badge.danger{background:#fee2e2;color:#991b1b}.side-group .side-title span{transition:.2s}.side-group.closed .side-title span{transform:rotate(90deg)}
.size-options h4,.modifier-options h4,.note-options h4{margin:10px 0 8px;font-size:14px;color:#0f172a}.size-chip-wrap,.modifier-chip-wrap{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.size-chip,.modifier-chip{border:1px solid var(--border);border-radius:999px;padding:8px 12px;background:#f8fafc;font-weight:800;cursor:pointer}.size-chip:has(input:checked),.modifier-chip:has(input:checked),.note-chip:has(input:checked){background:#ccfbf1;border-color:#14b8a6;color:#115e59}.modifier-group{border:1px solid #eef2f7;border-radius:14px;padding:10px;margin-bottom:8px;background:#fbfdff}.item-modifier{color:#0f766e;font-weight:800}.receipt-preview{font-family:Tahoma,Arial,sans-serif;max-width:320px}.receipt-table{width:100%;border-collapse:collapse}.receipt-table th,.receipt-table td{border-bottom:1px dashed #999;padding:4px 0;font-size:12px}.receipt-total-line{display:flex;justify-content:space-between;padding:3px 0}.receipt-final{font-size:18px;font-weight:900;border-top:2px solid #111;margin-top:6px;padding-top:6px}

/* V16 Warshaty-inspired stabilization */
.form-page,.purchase-page{max-width:1180px;margin:0 auto;display:flex;flex-direction:column;gap:14px}.form-hero,.purchase-hero{border-radius:20px;padding:18px 22px;background:linear-gradient(135deg,#172554,#0891b2);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 14px 30px rgba(15,23,42,.12)}.form-hero h2,.purchase-hero h2{margin:0;font-size:24px;font-weight:900}.form-hero p,.purchase-hero p{margin:4px 0 0;color:#dbeafe}.form-actions,.form-footer{display:flex;gap:8px;justify-content:flex-end;align-items:center}.form-section h3{margin:0 0 14px;font-size:18px;font-weight:900;color:#0f172a}.form-grid{display:grid;gap:12px}.form-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.form-grid.cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.size-block{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:14px;margin-bottom:12px}.recipe-lines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.recipe-line{display:grid;grid-template-columns:1.5fr .7fr;gap:8px}.chips-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.check-chip{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px;font-weight:700}.check-cell{display:flex;align-items:end}.dynamic-row{display:grid;gap:8px;align-items:end;margin-bottom:8px}.phone-row{grid-template-columns:1fr 1fr auto}.address-row{grid-template-columns:1fr 2fr 1fr 1fr auto}.purchase-card{max-width:1120px;margin-inline:auto}.purchase-search-box{background:#f8fafc;border:1px solid #dbeafe;border-radius:16px;padding:12px;margin-bottom:12px}.purchase-table{display:flex;flex-direction:column;gap:8px}.purchase-line{display:grid;grid-template-columns:1.55fr 1.25fr .7fr .8fr .75fr .75fr .75fr auto;gap:8px;align-items:center}.purchase-line.purchase-head{font-weight:900;color:#334155;background:#f8fafc;border-radius:12px;padding:10px}.purchase-line:not(.purchase-head){background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:8px}.pagination svg,.data-table svg{width:20px!important;height:20px!important}.pagination{display:flex;gap:6px;align-items:center;justify-content:center;margin-top:14px}.pagination a,.pagination span{max-width:34px;max-height:34px;overflow:hidden}.cat-image-empty{width:48px;height:48px;border-radius:12px;background:#f1f5f9;display:inline-flex;align-items:center;justify-content:center}.pos-shell.enhanced-pos{grid-template-columns:220px minmax(500px,1fr) 370px;gap:12px;height:calc(100vh - 220px);min-height:620px}.fullscreen-body .pos-shell.enhanced-pos{height:calc(100vh - 185px)}.pos-panel{min-height:0}.cart{max-height:none;overflow:auto}.cart-line.full{grid-template-columns:1fr auto auto auto auto;gap:8px;align-items:center}.cart-note-btn{padding:6px 8px;font-size:12px}.pos-categories .cat-btn{min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center}.pos-categories .cat-btn img{width:42px;height:42px;object-fit:cover;border-radius:12px}.cat-thumb{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#f1f5f9}.product-card.with-image{min-height:132px}.product-card.with-image img,.product-img-placeholder{height:64px!important}.product-card .product-name{font-size:13px;line-height:1.2}.products-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}.note-modal{z-index:9999}.modal-card.wide{width:min(94vw,1000px)}
@media(max-width:1100px){.form-grid.cols-4,.form-grid.cols-5,.form-grid.cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-shell.enhanced-pos{grid-template-columns:180px 1fr 330px}.purchase-line{grid-template-columns:1fr 1fr}.purchase-line.purchase-head{display:none}.address-row{grid-template-columns:1fr}.phone-row{grid-template-columns:1fr}.recipe-lines{grid-template-columns:1fr}}

/* V17 hard UX rebuild: Warshaty-like admin + professional POS */
.w-5,.h-5,.pagination svg,.data-table svg,nav svg{width:16px!important;height:16px!important;max-width:16px!important;max-height:16px!important}.war-card{background:#fff;border:1px solid #dbe4f0;border-radius:18px;padding:18px;box-shadow:0 10px 25px rgba(15,23,42,.05)}.war-hero{max-width:1180px}.tight-grid label{font-size:12px;color:#334155;font-weight:900;margin-bottom:5px;display:block}.tight-grid .input,.tight-grid .select{height:42px}.size-block-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;background:#eef6ff;border-radius:12px;padding:10px}.section-head.mini h4{margin:0}.recipe-box{margin-top:12px;border-top:1px dashed #cbd5e1;padding-top:12px}.recipe-lines{display:flex!important;flex-direction:column;gap:8px}.recipe-line{display:grid!important;grid-template-columns:1fr 130px 34px;gap:8px;align-items:center}.product-form-v17 .hide{display:none!important}.form-grid.cols-4.tight-grid{grid-template-columns:repeat(4,minmax(0,1fr))}

.pos-v17{height:calc(100vh - 12px);padding:10px;background:#edf3f8;display:flex;flex-direction:column;gap:10px;overflow:hidden}.fullscreen-content{padding:0!important}.fullscreen-topbar{display:none!important}.pos-v17-top{background:#fff;border:1px solid #d9e3ef;border-radius:18px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 10px 22px rgba(15,23,42,.05)}.pos-v17-top strong{font-size:20px;color:#0f172a}.pos-v17-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pos-v17-context{background:#fff;border:1px solid #d9e3ef;border-radius:18px;padding:12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.pos-v17-context>label{font-size:18px;font-weight:900;color:#0f172a}.pos-v17-grid{flex:1;min-height:0;display:grid;grid-template-columns:210px minmax(520px,1fr) 430px;gap:10px;direction:rtl}.pos-v17-categories,.pos-v17-products,.pos-v17-cart{background:#fff;border:1px solid #d9e3ef;border-radius:18px;padding:12px;min-height:0;overflow:auto}.pos-v17-categories{display:flex;flex-direction:column;gap:8px}.pos-v17-categories .cat-btn{width:100%;min-height:78px;border:1px solid #dbe4f0;background:#f8fafc;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:8px;flex-direction:column;cursor:pointer;font-family:inherit;font-weight:900}.pos-v17-categories .cat-btn.active{background:#e6fffb;border-color:#14b8a6;color:#0f766e}.pos-v17-categories .cat-btn img{width:40px;height:40px;object-fit:cover;border-radius:12px}.pos-products-head,.cart-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.pos-products-head h3,.cart-title h3{font-size:20px;margin:0}.pos-products-head .input{max-width:240px}.v17-products{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(145px,1fr))!important;gap:10px!important;align-content:start}.v17-product{background:#fff;border:1px solid #dbe4f0;border-radius:16px;min-height:150px;padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;font-family:inherit;box-shadow:0 8px 18px rgba(15,23,42,.035)}.v17-product:hover{border-color:#14b8a6;transform:translateY(-1px)}.v17-product img,.v17-product .product-img-placeholder{width:100%;height:76px!important;border-radius:14px;object-fit:cover;background:#eef2f7;display:grid;place-items:center;font-size:28px}.v17-product .product-name{font-size:13px;font-weight:900;color:#0f172a;text-align:center;line-height:1.25}.v17-product .product-price{font-size:13px;color:#0f766e}.pos-v17-cart{display:flex;flex-direction:column}.pos-v17-cart .cart{flex:1;min-height:220px;border:1px solid #e2e8f0;border-radius:14px;padding:8px;background:#fbfdff;overflow:auto}.pos-v17-cart .cart-line.full{grid-template-columns:1fr auto auto auto auto!important;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px;margin-bottom:8px}.pos-v17-cart .cart-line strong:first-child{font-size:15px}.cart-note-btn{background:#fef3c7!important;color:#92400e!important;border:0!important}.v17-total{border-top:1px solid #e2e8f0;margin-top:10px;padding-top:10px}.v17-total .btn{width:100%;margin-top:7px}.pay-grid{display:grid!important;grid-template-columns:repeat(2,1fr);gap:7px;margin:8px 0}.tot-row.final{background:#0f172a;color:#fff;border-radius:12px;padding:10px;font-size:20px}.delivery-modal-card{width:min(980px,95vw)!important;border-radius:22px}.delivery-modal-card .modal-head{background:linear-gradient(135deg,#172554,#0891b2);color:#fff;margin:-16px -16px 18px;padding:16px;border-radius:22px 22px 0 0}.delivery-modal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.delivery-modal-grid .full{grid-column:1/-1}.order-start-card{width:min(850px,94vw);text-align:center}.pos-launch{background:rgba(15,23,42,.72)!important}.start-type{display:flex;flex-direction:column;align-items:center;gap:8px}.start-type small{display:block}.context-box .input,.context-box .select{min-width:160px}.side-group.closed .side-items{display:none!important}.side-group.open .side-items{display:block!important}.side-title span{transition:.2s}.side-group.closed .side-title span{transform:rotate(90deg)}
@media(max-width:1200px){.pos-v17-grid{grid-template-columns:170px 1fr 360px}.v17-products{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))!important}.form-grid.cols-4.tight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.delivery-modal-grid{grid-template-columns:1fr 1fr}}
@media(max-width:850px){.pos-v17{height:auto;overflow:auto}.pos-v17-grid{grid-template-columns:1fr}.pos-v17-categories{max-height:260px}.pos-v17-cart{min-height:520px}.delivery-modal-grid{grid-template-columns:1fr}.pos-v17-context>*{width:100%}}
.purchase-v17{max-width:1180px;margin:0 auto;display:flex;flex-direction:column;gap:14px}.purchase-title-bar{background:linear-gradient(135deg,#172554,#0891b2);color:#fff;border-radius:20px;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 14px 30px rgba(15,23,42,.12)}.purchase-title-bar h2{margin:0;font-size:26px}.purchase-title-bar p{margin:4px 0 0;color:#dbeafe}.purchase-title-bar>div:last-child{display:flex;gap:8px}.purchase-grid-head,.purchase-row-v17{display:grid;grid-template-columns:1.6fr 1.25fr .7fr .75fr .65fr .65fr .7fr 34px;gap:8px;align-items:center}.purchase-grid-head{font-weight:900;color:#475569;padding:10px;background:#f8fafc;border-radius:12px}.purchase-lines-v17{display:flex;flex-direction:column;gap:8px}.purchase-row-v17{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:8px}.purchase-row-v17 .line-total{text-align:center;background:#f8fafc;border-radius:10px;padding:10px 4px}.purchase-bottom-grid{display:grid;grid-template-columns:1fr 380px;gap:14px}.purchase-totals-box .tot-row{font-size:15px}@media(max-width:1100px){.purchase-grid-head{display:none}.purchase-row-v17{grid-template-columns:1fr 1fr}.purchase-bottom-grid{grid-template-columns:1fr}.purchase-title-bar{flex-direction:column;align-items:flex-start}}

/* V18 UI correction */
.side-group.collapsible .side-items{display:none}.side-group.collapsible.open .side-items{display:block}.side-group.collapsible.open .side-title{color:#dbeafe}.success-card{margin-bottom:12px;color:#166534;font-weight:900;border-right:5px solid #16a34a}.list-toolbar{margin-bottom:14px;display:flex;justify-content:space-between;align-items:center;gap:12px}.warshaty-page{background:#eef6ff;padding:14px;border-radius:22px}.war-gradient-title{background:linear-gradient(135deg,#0f2a5f,#08a1c0);color:#fff;border-radius:22px;padding:18px 22px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 16px 35px rgba(15,23,42,.15);margin-bottom:14px}.war-gradient-title h2{margin:0;font-size:28px}.war-gradient-title p{margin:4px 0 0;color:#dbeafe}.form-actions{display:flex;gap:8px;align-items:center}.form-grid.cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.purchase-v18{max-width:1240px;margin:0 auto}.purchase-lines-v18{display:flex;flex-direction:column;gap:8px}.purchase-row-v18{display:grid;grid-template-columns:1.7fr 1.25fr .75fr .75fr .65fr .65fr .75fr 36px;gap:8px;align-items:center;background:#fff;border:1px solid #dbe4f0;border-radius:14px;padding:8px}.purchase-row-v18 .line-total{background:#f8fafc;border-radius:10px;padding:10px;text-align:center}.purchase-v18 .purchase-grid-head{grid-template-columns:1.7fr 1.25fr .75fr .75fr .65fr .65fr .75fr 36px}.payment-method-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin-top:12px}.payment-method-card{border:1px solid #dbe4f0;background:#f8fafc;border-radius:14px;padding:16px;font-weight:900;font-family:inherit;cursor:pointer}.payment-method-card.active-pay{background:#ccfbf1!important;border-color:#14b8a6!important}.payment-summary{display:flex;align-items:center;justify-content:space-between;background:#0f172a;color:#fff;border-radius:14px;padding:14px 16px;font-size:18px;font-weight:900}.gradient-head{background:linear-gradient(135deg,#0f2a5f,#08a1c0)!important;color:#fff!important}.customer-search-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;margin-top:10px;max-height:170px;overflow:auto}.customer-result{border:1px solid #dbe4f0;background:#f8fafc;border-radius:12px;padding:10px;text-align:right;cursor:pointer;font-family:inherit}.customer-result strong,.customer-result small,.customer-result span{display:block}.customer-result:hover{border-color:#14b8a6;background:#ecfeff}.search-inline{display:flex;gap:8px}.v18-delivery-grid{margin-top:12px}.cart-line-info{min-width:0}.pos-v17-cart{min-width:420px}.pos-v17-cart .cart{min-height:300px}.pos-v17-cart .cart-line.full{grid-template-columns:minmax(120px,1fr) auto auto auto auto!important}.product-form-v17 .war-card{max-width:1180px;margin-left:auto;margin-right:auto}.product-form-v17 .form-grid.cols-4.tight-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.product-form-v17 .size-block{border:1px solid #dbe4f0;border-radius:16px;background:#fbfdff;padding:12px;margin-bottom:12px}.product-form-v17 .recipe-line{grid-template-columns:minmax(220px,1fr) 160px 34px!important}.product-form-v17 [data-kind-panel].hide,.product-form-v17 [data-product-field].hide,.product-form-v17 .hide{display:none!important}
@media(max-width:1200px){.form-grid.cols-5,.product-form-v17 .form-grid.cols-4.tight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-row-v18,.purchase-v18 .purchase-grid-head{grid-template-columns:1fr 1fr}.purchase-grid-head{display:none}.pos-v17-grid{grid-template-columns:190px minmax(420px,1fr) 380px}.pos-v17-cart{min-width:360px}.war-gradient-title{flex-direction:column;align-items:flex-start}}
@media(max-width:900px){.form-grid.cols-5,.product-form-v17 .form-grid.cols-4.tight-grid{grid-template-columns:1fr}.purchase-row-v18{grid-template-columns:1fr}.pos-v17-cart{min-width:0}.search-inline{flex-direction:column}}

/* V19 POS bottom totals + wider cart */
.pos-ready-notice{position:fixed;top:14px;left:50%;transform:translateX(-50%);z-index:250;background:#0f766e;color:#fff;border-radius:16px;padding:14px 24px;font-weight:900;box-shadow:0 18px 45px rgba(15,23,42,.25)}
.pos-v17{padding-bottom:0!important}.pos-v17-grid{grid-template-columns:210px minmax(520px,1fr) 460px!important}.pos-v17-cart .cart{min-height:0!important;height:100%;font-size:15px}.pos-v19-bottom{background:#fff;border:1px solid #d9e3ef;border-radius:18px;padding:10px;box-shadow:0 -8px 22px rgba(15,23,42,.06)}
.bottom-total{border:0!important;margin:0!important;padding:0!important;background:transparent!important;display:grid;grid-template-columns:repeat(7,minmax(110px,1fr));gap:8px;align-items:center}.bottom-total .tot-row{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:9px 11px;margin:0!important;min-height:48px}.bottom-total .tot-row.final{background:#0f172a!important;color:#fff!important;font-size:18px}.bottom-total .btn{width:100%;height:48px;margin:0!important}.bottom-total #pos-message{grid-column:1/-1;min-height:22px;font-weight:900}
.table-choice strong{display:block;margin-top:4px;color:#0f766e}.table-choice.busy strong{color:#9a3412}
@media(max-width:1300px){.bottom-total{grid-template-columns:repeat(4,minmax(110px,1fr))}.pos-v17-grid{grid-template-columns:170px minmax(420px,1fr) 390px!important}}
@media(max-width:900px){.bottom-total{grid-template-columns:1fr}.pos-v17-grid{grid-template-columns:1fr!important}.pos-v19-bottom{position:static}}

/* V19 Kitchen grouped cards */
.kitchen-filter-bar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center}.type-tabs .btn{min-width:100px}.kitchen-order-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:14px}.kitchen-order-card{background:#ffedd5;border:1px solid #fed7aa;border-radius:20px;padding:14px;box-shadow:0 12px 28px rgba(15,23,42,.06)}.kitchen-order-card.status-preparing{background:#fef9c3}.kitchen-order-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.kitchen-order-head h3{margin:0;color:#9a3412;font-size:20px}.kitchen-items-list{display:grid;gap:8px;margin:12px 0}.kitchen-item-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;background:rgba(255,255,255,.65);border:1px solid rgba(255,255,255,.85);border-radius:12px;padding:9px}.kitchen-item-row .full{grid-column:1/-1}.kitchen-actions .btn{flex:1}

/* V19 delivery order cards */
.delivery-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}.delivery-order-card{background:#fff;border:1px solid #dbe4f0;border-radius:18px;padding:14px;box-shadow:0 10px 24px rgba(15,23,42,.05)}.delivery-order-card .head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;border-bottom:1px solid #eef2f7;padding-bottom:10px;margin-bottom:10px}.delivery-order-card h3{margin:0;color:#0f172a}.delivery-order-card .meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.delivery-order-card .meta div{background:#f8fafc;border-radius:12px;padding:8px}.delivery-order-card form{display:grid;gap:8px}.delivery-order-card .form-row-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}

/* V20 hall modal + separated input screens */
.hall-picker-card{width:min(980px,96vw)!important;padding:0!important;overflow:hidden}.hall-picker-card .modal-head{padding:16px 18px;margin:0}.hall-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;padding:16px}.hall-table-choice{min-height:122px;border:1px solid #22c55e;background:#f0fdf4;border-radius:18px;padding:12px;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;font-family:inherit;font-weight:900;cursor:pointer}.hall-table-choice.busy{background:#fee2e2;border-color:#fca5a5}.hall-table-choice.reserved{background:#dbeafe;border-color:#93c5fd}.hall-table-choice.merged{background:#ede9fe;border-color:#c4b5fd}.hall-table-choice strong{font-size:17px}.hall-table-choice b{color:#0f766e}.hall-table-choice.busy b{color:#991b1b}.hall-table-choice em{font-style:normal;color:#64748b;font-size:12px}.hall-status{border-radius:999px;background:#dcfce7;color:#166534;padding:4px 10px;font-size:12px}.hall-table-choice.busy .hall-status{background:#fecaca;color:#991b1b}.hall-order{font-size:12px;color:#334155}.war-page-narrow{max-width:980px;margin:0 auto}.war-header-card{background:linear-gradient(135deg,#0f2a5f,#08a1c0);color:#fff;border-radius:22px;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.war-header-card h2{margin:0;font-size:26px}.war-header-card p{margin:5px 0 0;color:#dbeafe}.form-grid{display:grid;gap:12px}.form-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid .full{grid-column:1/-1}.form-footer{display:flex;gap:8px;justify-content:flex-start;margin-top:12px}.bottom-total #delivery-fee-bottom{width:100%;min-width:95px;text-align:left}.data-table form{display:inline-flex;margin:0}.side-group.collapsible:not(.open) .side-items{display:none!important}.side-group.collapsible.open .side-items{display:block!important}@media(max-width:900px){.form-grid.cols-2{grid-template-columns:1fr}.hall-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* V21 polish */
.alert{border-radius:16px;padding:14px 18px;margin:0 0 16px;font-weight:800}.alert.success{background:#ecfdf5;border:1px solid #22c55e;color:#166534}.alert.error{background:#fef2f2;border:1px solid #ef4444;color:#991b1b}.grid.two{grid-template-columns:1fr 1fr}.form-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid .full{grid-column:1/-1}.login-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 15%,rgba(45,212,191,.35),transparent 25%),radial-gradient(circle at 80% 20%,rgba(14,165,233,.22),transparent 28%),linear-gradient(135deg,#07111f 0%,#0f172a 55%,#062c33 100%);padding:24px}.login-card{width:min(540px,96vw);background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.65);box-shadow:0 30px 90px rgba(0,0,0,.35);border-radius:32px;padding:42px}.login-card h1{font-size:34px;margin:0 0 8px;font-weight:900;color:#0f172a}.login-card:before{content:'🍽️';display:grid;place-items:center;width:72px;height:72px;border-radius:24px;background:linear-gradient(135deg,#0f766e,#06b6d4);color:#fff;font-size:34px;margin:-78px auto 22px;box-shadow:0 18px 40px rgba(15,118,110,.35)}.form-row label,.login-card label{display:block;font-weight:900;margin:12px 0 6px}.form-control{width:100%;height:48px;border:1px solid var(--border);border-radius:14px;padding:0 14px;font-family:inherit}.data-table input.input{min-width:120px}.side-group.collapsible .side-items{display:none}.side-group.collapsible.open .side-items{display:block}.side-title{width:100%;background:transparent;border:0;color:#94a3b8;text-align:right;cursor:pointer;display:flex;justify-content:space-between}.side-group.open .side-title span{transform:rotate(180deg)}
@media(max-width:900px){.grid.two,.form-grid.cols-3{grid-template-columns:1fr}.login-card{padding:34px 22px}.login-card h1{font-size:28px}}
/* V22 finishing pass */
.success-card{border-right:4px solid #16a34a;color:#166534;font-weight:800;background:#f0fdf4}.error-card{border-right:4px solid #dc2626;color:#991b1b;font-weight:800;background:#fef2f2}.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.compact-edit-table .input,.compact-edit-table .select{min-width:100px}.action-grid{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.kitchen-printer-map{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:10px}.kitchen-printer-map .map-row{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px;display:grid;grid-template-columns:150px 1fr;gap:10px;align-items:center}.print-map-card{border-top:5px solid #0f766e}.pos-v17{height:calc(100vh - 20px);display:flex;flex-direction:column;gap:10px}.pos-v17-grid{display:grid;grid-template-columns:220px minmax(520px,1fr) 390px;gap:12px;min-height:0;flex:1}.pos-v17-cart{order:3;min-width:360px}.pos-v17-products{min-width:0}.pos-v17-categories{overflow:auto}.products-grid.v17-products{grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:12px}.v17-product{min-height:150px}.v17-product img,.v17-product .product-img-placeholder{height:72px;border-radius:14px;object-fit:cover;background:#eef2f7}.cart{max-height:none;overflow:auto}.cart-line.full{grid-template-columns:1fr auto 70px auto auto}.pos-v19-bottom{position:sticky;bottom:0;background:#eef3f9;border:1px solid #dbe6f3;border-radius:18px;padding:10px;z-index:20}.bottom-total{display:grid;grid-template-columns:repeat(7,1fr) repeat(4,145px);gap:8px;align-items:end}.bottom-total .tot-row{background:white;border:1px solid #e2e8f0;border-radius:12px;padding:8px}.bottom-total .tot-row.final{background:#0f172a;color:white}.bottom-total .btn{height:44px}.hall-picker-card{max-width:900px}.hall-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px}.hall-table-choice{border:1px solid #bbf7d0;background:#dcfce7;border-radius:18px;padding:14px;text-align:center;display:flex;flex-direction:column;gap:4px;cursor:pointer}.hall-table-choice.busy{background:#fee2e2;border-color:#fecaca}.hall-table-choice.reserved{background:#dbeafe;border-color:#bfdbfe}.hall-table-choice.merged{background:#ede9fe;border-color:#ddd6fe}.hall-status{font-size:12px;border-radius:999px;background:rgba(255,255,255,.75);padding:4px 8px}.delivery-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:14px}.delivery-order-card{background:white;border:1px solid #e2e8f0;border-radius:18px;padding:14px;box-shadow:0 8px 22px rgba(15,23,42,.06)}.delivery-order-card .head{display:flex;justify-content:space-between;gap:10px}.delivery-order-card .meta{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0}.form-row-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.kitchen-order-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:14px}.kitchen-order-card{background:#fff7ed;border:1px solid #fed7aa;border-radius:18px;padding:14px}.kitchen-order-card.type-dine_in{background:#ecfdf5}.kitchen-order-card.type-delivery,.kitchen-order-card.type-delivery_company{background:#eff6ff}.kitchen-order-head{display:flex;justify-content:space-between;gap:10px}.kitchen-item-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;padding:8px 0;border-bottom:1px dashed rgba(0,0,0,.08)}.kitchen-item-row .full{grid-column:1/-1}.kitchen-actions{margin-top:10px}.data-table input.input,.data-table select.select{height:38px;padding:6px 8px}
@media(max-width:1100px){.pos-v17-grid{grid-template-columns:160px 1fr}.pos-v17-cart{grid-column:1/-1;order:1}.bottom-total{grid-template-columns:repeat(2,1fr)}.kitchen-printer-map{grid-template-columns:1fr}.form-row-grid{grid-template-columns:repeat(2,1fr)}}

/* V23 tablet POS redesign based on restaurant tablet references */
.pos-tablet-dark{background:#111827;color:#e5e7eb;overflow:hidden}.pos-tablet-dark .fullscreen-topbar{height:54px;background:#0b1220;color:#e5e7eb;border:0;box-shadow:none}.pos-tablet-dark .fullscreen-topbar .muted{color:#94a3b8}.pos-tablet-dark .fullscreen-content{padding:0;background:#111827}.pos-tablet-dark .pos-v17{height:calc(100vh - 54px);gap:0;background:#151922;color:#e5e7eb}.pos-tablet-dark .pos-v17-top{background:#21202a;border:0;border-bottom:1px solid #32323c;border-radius:0;padding:10px 14px;display:flex;align-items:center;justify-content:space-between}.pos-tablet-dark .pos-v17-actions .btn,.pos-tablet-dark .fullscreen-actions .btn{border-radius:6px;height:36px;padding:7px 12px}.pos-tablet-dark .pos-v17-context{background:#24242e;border:0;border-bottom:1px solid #363642;border-radius:0;padding:9px 14px}.pos-tablet-dark .pos-v17-grid{grid-template-columns:220px minmax(640px,1fr) 380px;gap:0;flex:1;border-top:1px solid #202632;background:#171b24}.pos-tablet-dark .pos-v17-categories{order:1;background:#202633;border:0;border-left:1px solid #333a48;border-radius:0;padding:10px}.pos-tablet-dark .pos-v17-categories h3,.pos-tablet-dark .pos-v17-products h3,.pos-tablet-dark .pos-v17-cart h3{color:#fff;margin:0 0 10px}.pos-tablet-dark .cat-list{gap:8px}.pos-tablet-dark .cat-btn{background:#2b3342;border:1px solid #3a4354;color:#e5e7eb;border-radius:6px;min-height:50px}.pos-tablet-dark .cat-btn.active{background:#0ea5e9;color:#fff;border-color:#38bdf8}.pos-tablet-dark .cat-btn img{width:38px;height:38px;object-fit:cover;border-radius:7px}.pos-tablet-dark .pos-v17-products{order:2;background:#161a22;border:0;border-radius:0;padding:12px}.pos-tablet-dark .product-search-row .input{height:38px;background:#0f172a;color:#e5e7eb;border-color:#334155}.pos-tablet-dark .products-grid.v17-products{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;align-content:start}.pos-tablet-dark .v17-product{background:#242936;border:1px solid #343d4f;color:#fff;border-radius:7px;min-height:140px;padding:8px;box-shadow:none}.pos-tablet-dark .v17-product:hover{border-color:#38bdf8;transform:translateY(-1px)}.pos-tablet-dark .v17-product img,.pos-tablet-dark .v17-product .product-img-placeholder{width:100%;height:76px;background:#111827;border-radius:6px;object-fit:cover;color:#d1d5db;font-size:34px}.pos-tablet-dark .v17-product strong{font-size:14px;line-height:1.2;color:#fff}.pos-tablet-dark .v17-product b{color:#22c55e;font-size:14px}.pos-tablet-dark .v17-product small{color:#94a3b8}.pos-tablet-dark .pos-v17-cart{order:3;background:#1f2430;border:0;border-right:1px solid #333a48;border-radius:0;padding:10px;min-width:360px}.pos-tablet-dark .cart-title{border-bottom:1px solid #343d4f;padding-bottom:10px}.pos-tablet-dark .cart{background:#181d27;border:1px solid #303849;border-radius:6px;padding:8px;min-height:270px}.pos-tablet-dark .cart-line.full{background:#232a37;border:1px solid #364154;border-radius:6px;color:#fff;grid-template-columns:1fr auto 70px auto auto}.pos-tablet-dark .cart-line-info small{color:#94a3b8}.pos-tablet-dark .qty-box button{background:#111827;color:#fff;border:1px solid #334155}.pos-tablet-dark .pos-v19-bottom{position:sticky;bottom:0;border-radius:0;background:#202633;border:0;border-top:1px solid #343d4f;padding:8px}.pos-tablet-dark .bottom-total{grid-template-columns:repeat(7,minmax(90px,1fr)) repeat(4,130px);gap:6px}.pos-tablet-dark .bottom-total .tot-row{background:#151b25;border-color:#334155;color:#e5e7eb;border-radius:6px}.pos-tablet-dark .bottom-total .tot-row.final{background:#0b1220;color:#fff}.pos-tablet-dark .bottom-total .input{background:#0f172a;color:#fff;border-color:#334155;height:36px}.pos-tablet-dark .btn-primary{background:#0f766e;color:#fff}.pos-tablet-dark .btn-dark{background:#020617;color:#fff}.pos-tablet-dark .btn-light{background:#2b3342;color:#e5e7eb;border:1px solid #394455}.pos-tablet-dark .note-modal,.pos-tablet-dark .table-picker-modal{background:rgba(2,6,23,.72)}.pos-tablet-dark .modal-card{background:#1f2430;color:#e5e7eb;border:1px solid #3b4558}.pos-tablet-dark .gradient-head{background:linear-gradient(135deg,#0f172a,#0f766e);color:#fff}.pos-tablet-dark .hall-table-choice{background:#153322;border-color:#1f7a45;color:#fff}.pos-tablet-dark .hall-table-choice.busy{background:#3a1d22;border-color:#ef4444}.pos-tablet-dark .hall-table-choice b{color:#22c55e}.pos-tablet-dark .payment-method-card{background:#111827;border-color:#334155;color:#e5e7eb}.pos-tablet-dark .payment-method-card.active-pay{background:#0f766e;color:#fff}.pos-tablet-dark .input,.pos-tablet-dark .select{background:#101827;color:#e5e7eb;border-color:#334155}.pos-tablet-dark .muted{color:#94a3b8}.pos-tablet-dark .pos-ready-notice{background:#052e16;color:#dcfce7;border-color:#22c55e}.pos-tablet-dark .product-img-placeholder{display:grid;place-items:center}
@media(max-width:1200px){.pos-tablet-dark .pos-v17-grid{grid-template-columns:170px 1fr 330px}.pos-tablet-dark .bottom-total{grid-template-columns:repeat(4,1fr)}}
@media(max-width:900px){.pos-tablet-dark{overflow:auto}.pos-tablet-dark .pos-v17{height:auto}.pos-tablet-dark .pos-v17-grid{grid-template-columns:1fr}.pos-tablet-dark .pos-v17-categories,.pos-tablet-dark .pos-v17-cart,.pos-tablet-dark .pos-v17-products{border:0}.pos-tablet-dark .pos-v19-bottom{position:static}.pos-tablet-dark .bottom-total{grid-template-columns:1fr 1fr}.pos-tablet-dark .products-grid.v17-products{grid-template-columns:repeat(2,1fr)}}

/* V23 Warshaty purchase cleanup */
.purchase-v18{max-width:1120px;margin:0 auto}.purchase-grid-head,.purchase-row-v18{display:grid;grid-template-columns:1.5fr 1.1fr .75fr .75fr .65fr .65fr .75fr 54px;gap:8px;align-items:center}.purchase-grid-head{font-weight:900;background:#f1f5f9;border-radius:14px;padding:12px;margin-top:10px}.purchase-row-v18{background:#fff;border:1px solid #dbeafe;border-radius:14px;padding:10px;margin-top:8px}.purchase-row-v18 .input,.purchase-row-v18 .select{min-width:0}.purchase-totals-box .tot-row{display:flex;justify-content:space-between;border-bottom:1px solid #e5e7eb;padding:10px 0}.purchase-totals-box .tot-row.final{font-size:20px;color:#0f766e}.purchase-bottom-grid{display:grid;grid-template-columns:1fr 380px;gap:14px}.war-page{max-width:1280px;margin:0 auto}.compact-edit-table td{vertical-align:middle}.compact-edit-table select[multiple]{min-height:82px}
@media(max-width:900px){.purchase-grid-head{display:none}.purchase-row-v18{grid-template-columns:1fr}.purchase-bottom-grid{grid-template-columns:1fr}}

/* V25 Warshaty-style login + finance polish */
.war-login-body{min-height:100vh;margin:0;font-family:"Cairo",Tahoma,Arial,sans-serif;background:linear-gradient(135deg,#07111f 0%,#0f172a 55%,#0f766e 100%);color:#fff;display:grid;place-items:center;overflow:hidden}.war-login-shell{width:min(1180px,94vw);display:grid;grid-template-columns:1.25fr 460px;gap:28px;align-items:center}.war-login-hero{padding:36px;border-radius:32px;background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.02));border:1px solid rgba(255,255,255,.12);box-shadow:0 30px 90px rgba(0,0,0,.28)}.brand-big{display:flex;gap:14px;align-items:center;margin-bottom:34px}.brand-big span{width:62px;height:62px;border-radius:20px;background:linear-gradient(135deg,#14b8a6,#22c55e);display:grid;place-items:center;font-size:28px;font-weight:900}.brand-big strong{font-size:24px}.brand-big small{display:block;color:#cbd5e1}.war-login-hero h1{font-size:42px;line-height:1.35;margin:0 0 14px;font-weight:900}.war-login-hero p{font-size:17px;color:#cbd5e1;line-height:1.9;max-width:760px}.login-features{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.login-features span{background:rgba(20,184,166,.16);border:1px solid rgba(45,212,191,.35);border-radius:999px;padding:8px 13px;font-weight:800;color:#d1fae5}.war-login-card{background:#fff;color:#0f172a;border-radius:30px;padding:30px;box-shadow:0 30px 100px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.35)}.login-card-head{text-align:center;margin-bottom:22px}.login-card-head strong{font-size:30px;font-weight:900}.login-card-head small{display:block;color:#64748b;margin-top:8px}.login-main-btn{width:100%;height:52px;margin-top:10px;font-size:15px}.success-card{border-color:#86efac;background:#f0fdf4;color:#166534}.error-card{border-color:#fecaca;background:#fef2f2;color:#991b1b}
@media(max-width:900px){.war-login-shell{grid-template-columns:1fr}.war-login-hero{display:none}.war-login-card{width:min(460px,94vw);margin:auto}}

/* ================= V28 hardening: Warshaty/Tablet restaurant rebuild polish ================= */
:root{--war-navy:#0b1220;--war-navy2:#111827;--war-card:#ffffff;--war-line:#dbe5f0;--war-accent:#0f766e;--war-accent2:#0891b2;--war-soft:#f4f7fb}
.card,.war-card{border-radius:20px;border:1px solid var(--war-line);box-shadow:0 14px 34px rgba(15,23,42,.06)}
.input,.select,.form-control{height:44px;border-color:#d7e2ef;box-shadow:inset 0 1px 0 rgba(255,255,255,.8);font-weight:700}
textarea.input{height:auto;min-height:84px}.btn{border-radius:10px;min-height:42px}.btn-primary{background:#0f766e}.btn-dark{background:#07111f}.btn-light{background:#f1f5f9;color:#0f172a}
.form-grid.tight-grid{gap:14px}.list-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.action-grid{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.side-group.collapsible:not(.open) .side-items{display:none}.side-group.collapsible.open .side-items{display:block}.side-title{cursor:pointer}.side-link.active{background:linear-gradient(135deg,rgba(15,118,110,.95),rgba(8,145,178,.65));font-weight:900}

/* POS exact tablet style */
.pos-tablet-dark{background:#070b14!important;color:#eef2ff!important;overflow:hidden}.pos-tablet-dark .fullscreen-topbar{background:#0b1220!important;color:#eef2ff;border-bottom:1px solid #263244}.pos-tablet-dark .fullscreen-content{padding:0!important;background:#0b1220!important}.pos-tablet-dark .pos-v17{display:grid;grid-template-rows:auto auto 1fr auto;height:calc(100vh - 58px);background:#111722;color:#eef2ff}.pos-tablet-dark .pos-v17-top{background:#1d1d28!important;border-bottom:1px solid #303544!important;border-radius:0!important;margin:0!important;min-height:58px}.pos-tablet-dark .pos-v17-context{background:#20212b!important;border-bottom:1px solid #343a49!important;border-radius:0!important;margin:0!important;min-height:58px}.pos-tablet-dark .pos-v17-grid{height:auto;min-height:0;display:grid!important;grid-template-columns:220px minmax(0,1fr) 390px!important;gap:0!important;margin:0!important;background:#121923;border:0!important}.pos-tablet-dark .pos-v17-categories{order:1;background:#202838;border-left:1px solid #334155;border-radius:0!important;padding:10px;overflow:auto}.pos-tablet-dark .pos-v17-products{order:2;background:#141a25;border-radius:0!important;padding:12px;overflow:auto}.pos-tablet-dark .pos-v17-cart{order:3;background:#19212e;border-right:1px solid #334155;border-radius:0!important;padding:10px;min-width:0;display:flex;flex-direction:column;overflow:hidden}.pos-tablet-dark .pos-panel-head,.pos-tablet-dark .cart-title,.pos-tablet-dark .pos-products-head{color:#f8fafc;border-color:#334155}.pos-tablet-dark .cart{flex:1;min-height:0;overflow:auto;background:#111827;border:1px solid #334155;border-radius:10px;padding:10px}.pos-tablet-dark .cat-btn{background:#2a3445!important;border:1px solid #41516a!important;color:#fff!important;border-radius:8px!important;min-height:58px;display:flex;align-items:center;justify-content:center;gap:8px}.pos-tablet-dark .cat-btn.active{background:#0ea5e9!important;border-color:#38bdf8!important;color:#fff!important}.pos-tablet-dark .cat-btn img{width:44px;height:44px;object-fit:cover;border-radius:8px}.pos-tablet-dark .products-grid.v17-products{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))!important;gap:10px!important;padding:0!important;align-content:start}.pos-tablet-dark .v17-product{min-height:142px;background:#242b3a!important;border:1px solid #3b465a!important;border-radius:8px!important;color:#fff!important;box-shadow:none!important}.pos-tablet-dark .v17-product img,.pos-tablet-dark .product-img-placeholder{height:74px!important;width:100%;object-fit:cover;border-radius:7px!important;background:#101827!important;color:#e2e8f0!important}.pos-tablet-dark .product-name{color:#fff;font-weight:900}.pos-tablet-dark .product-price{color:#d1fae5!important}.pos-tablet-dark .muted{color:#9ca3af!important}.pos-tablet-dark .cart-line.full{grid-template-columns:1fr auto 70px auto auto!important;background:#202938;border:1px solid #3b465a;border-radius:8px;margin-bottom:8px;padding:10px}.pos-tablet-dark .cart-line-info strong{color:#fff}.pos-tablet-dark .cart-note-btn{background:#fef3c7!important;color:#92400e!important;border:0!important}.pos-tablet-dark .pos-v19-bottom{position:relative!important;bottom:auto!important;background:#202838!important;border-radius:0!important;border:0!important;border-top:1px solid #334155!important;margin:0!important;padding:8px!important}.pos-tablet-dark .bottom-total{display:grid!important;grid-template-columns:repeat(8,minmax(100px,1fr)) repeat(4,135px)!important;gap:7px!important}.pos-tablet-dark .bottom-total .tot-row{background:#121a27!important;border:1px solid #38465d!important;color:#e5e7eb!important;border-radius:8px!important;padding:7px 9px!important;min-height:44px}.pos-tablet-dark .bottom-total .tot-row.final{background:#050816!important;color:#fff!important;font-size:18px}.pos-tablet-dark .input,.pos-tablet-dark .select{background:#101827!important;border-color:#334155!important;color:#e5e7eb!important}.pos-tablet-dark .modal-card{background:#202733!important;color:#eef2ff!important;border:1px solid #44536a!important}.pos-tablet-dark .modal-card .card{background:#151e2b!important;color:#eef2ff!important;border-color:#38465d!important}.pos-tablet-dark .gradient-head{background:linear-gradient(135deg,#0f172a,#0f766e)!important;color:#fff!important;margin:-16px -16px 14px;padding:12px 16px;border-radius:20px 20px 0 0}.pos-tablet-dark .payment-method-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.pos-tablet-dark .payment-method-card{height:54px;border-radius:10px;background:#111827;color:#fff;border:1px solid #40506a;font-weight:900}.pos-tablet-dark .payment-method-card.active-pay{background:#0f766e;border-color:#14b8a6}.pos-tablet-dark .hall-picker-card{max-width:980px}.pos-tablet-dark .hall-picker-grid{grid-template-columns:repeat(4,minmax(145px,1fr));gap:12px}.pos-tablet-dark .hall-table-choice{min-height:92px;border-radius:12px}.pos-tablet-dark .customer-result{background:#101827;color:#fff;border:1px solid #334155;border-radius:10px;padding:10px;margin:5px;display:inline-flex;gap:8px;align-items:center}
.pos-ready-notice{position:fixed;top:70px;left:18px;right:18px;background:#dcfce7;color:#14532d;border:1px solid #86efac;border-radius:14px;padding:14px;font-weight:900;z-index:150;text-align:center}

/* Purchase invoice rebuilt rows */
.purchase-v18{max-width:1280px;margin:0 auto}.purchase-grid-head,.purchase-row-v18{display:grid!important;grid-template-columns:minmax(230px,1.4fr) minmax(190px,1fr) 110px 120px 100px 100px 110px 58px!important;gap:8px;align-items:center}.purchase-grid-head{padding:12px 10px;background:#f8fafc;border-radius:12px;font-weight:900;color:#334155}.purchase-row-v18{background:#fff;border:1px solid #dbe5f0;border-radius:14px;padding:8px;margin-top:8px}.purchase-row-v18 .input,.purchase-row-v18 .select{width:100%;min-width:0}.purchase-lines-card{overflow:hidden}.purchase-lines-v18{max-height:430px;overflow:auto;padding-left:6px}.purchase-bottom-grid{display:grid;grid-template-columns:1fr 360px;gap:14px;margin-top:14px}.purchase-totals-box{position:sticky;bottom:12px;align-self:start}.purchase-totals-box .final{background:#0f172a;color:#fff;border-radius:12px;padding:12px}

/* Delivery cards and kitchen */
.delivery-cards-grid{grid-template-columns:repeat(auto-fill,minmax(460px,1fr))!important}.delivery-order-card{border-radius:20px}.delivery-order-card .head h3{font-size:20px;margin:0}.delivery-order-card .form-row-grid{grid-template-columns:repeat(3,1fr)!important}.kitchen-filter-bar{display:flex;justify-content:space-between;gap:12px;align-items:center}.kitchen-order-card{min-height:230px;border-radius:22px}.kitchen-order-head h3{font-size:20px;margin:0 0 4px}.kitchen-item-row strong{font-size:17px}.kitchen-actions{grid-template-columns:repeat(3,1fr)}

/* Better login */
.war-login-body{background:radial-gradient(circle at 70% 10%,rgba(20,184,166,.35),transparent 28%),linear-gradient(135deg,#050816,#0b1220 58%,#0f766e)!important}.war-login-card{width:100%;border-radius:34px}.war-login-hero{min-height:430px;display:flex;flex-direction:column;justify-content:center}.login-main-btn{background:linear-gradient(135deg,#0f766e,#0891b2)}

@media(max-width:1250px){.pos-tablet-dark .pos-v17-grid{grid-template-columns:180px minmax(0,1fr) 330px!important}.pos-tablet-dark .bottom-total{grid-template-columns:repeat(4,1fr)!important}.purchase-grid-head,.purchase-row-v18{grid-template-columns:1fr 1fr 100px 110px!important}.purchase-grid-head span:nth-child(n+5){display:none}.purchase-row-v18>*:nth-child(n+5){grid-column:auto}.purchase-bottom-grid{grid-template-columns:1fr}}
@media(max-width:900px){.pos-tablet-dark{overflow:auto}.pos-tablet-dark .pos-v17{height:auto}.pos-tablet-dark .pos-v17-grid{grid-template-columns:1fr!important}.pos-tablet-dark .pos-v17-categories,.pos-tablet-dark .pos-v17-products,.pos-tablet-dark .pos-v17-cart{order:initial;border:0}.pos-tablet-dark .products-grid.v17-products{grid-template-columns:repeat(2,1fr)!important}.delivery-cards-grid{grid-template-columns:1fr!important}.delivery-order-card .meta,.delivery-order-card .form-row-grid{grid-template-columns:1fr!important}.kitchen-filter-bar{display:block}.war-login-shell{grid-template-columns:1fr}.war-login-hero{display:none}}


/* ================= V29 urgent fix: POS must be LIGHT, not dark ================= */
body.pos-tablet-light{background:#eef4fb!important;color:#0f172a!important;overflow:hidden}
.pos-tablet-light .fullscreen-topbar{background:#ffffff!important;color:#0f172a!important;border-bottom:1px solid #dbe5f0!important;box-shadow:0 4px 18px rgba(15,23,42,.04)}
.pos-tablet-light .fullscreen-content{padding:0!important;background:#eef4fb!important}
.pos-tablet-light .pos-v17{display:grid;grid-template-rows:auto auto 1fr auto;height:calc(100vh - 58px);background:#eef4fb!important;color:#0f172a!important}
.pos-tablet-light .pos-v17-top{background:#fff!important;border:1px solid #dbe5f0!important;border-radius:18px!important;margin:10px!important;min-height:58px;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.pos-tablet-light .pos-v17-context{background:#fff!important;border:1px solid #dbe5f0!important;border-radius:18px!important;margin:0 10px 10px!important;min-height:58px;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.pos-tablet-light .pos-v17-grid{height:auto;min-height:0;display:grid!important;grid-template-columns:230px minmax(0,1fr) 410px!important;gap:10px!important;margin:0 10px!important;background:transparent!important;border:0!important}
.pos-tablet-light .pos-v17-categories{order:1;background:#fff!important;border:1px solid #dbe5f0;border-radius:18px!important;padding:10px;overflow:auto;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.pos-tablet-light .pos-v17-products{order:2;background:#fff!important;border:1px solid #dbe5f0;border-radius:18px!important;padding:12px;overflow:auto;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.pos-tablet-light .pos-v17-cart{order:3;background:#fff!important;border:1px solid #dbe5f0;border-radius:18px!important;padding:10px;min-width:0;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.04)}
.pos-tablet-light .pos-panel-head,.pos-tablet-light .cart-title,.pos-tablet-light .pos-products-head{color:#0f172a;border-color:#e2e8f0}.pos-tablet-light .cart{flex:1;min-height:0;overflow:auto;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:10px}.pos-tablet-light .cat-btn{background:#f8fafc!important;border:1px solid #dbe5f0!important;color:#0f172a!important;border-radius:14px!important;min-height:74px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:none!important}.pos-tablet-light .cat-btn.active{background:#e6fffb!important;border-color:#14b8a6!important;color:#0f172a!important}.pos-tablet-light .cat-btn img{width:52px;height:52px;object-fit:cover;border-radius:10px}.pos-tablet-light .products-grid.v17-products{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))!important;gap:12px!important;padding:0!important;align-content:start}.pos-tablet-light .v17-product{min-height:155px;background:#fff!important;border:1px solid #dbe5f0!important;border-radius:16px!important;color:#0f172a!important;box-shadow:0 10px 24px rgba(15,23,42,.05)!important}.pos-tablet-light .v17-product:hover{border-color:#14b8a6!important;transform:translateY(-1px)}.pos-tablet-light .v17-product img,.pos-tablet-light .product-img-placeholder{height:82px!important;width:100%;object-fit:cover;border-radius:12px!important;background:#edf2f7!important;color:#0f172a!important}.pos-tablet-light .product-name{color:#0f172a;font-weight:900}.pos-tablet-light .product-price{color:#0f766e!important}.pos-tablet-light .muted{color:#64748b!important}.pos-tablet-light .cart-line.full{grid-template-columns:1fr auto 70px auto auto!important;background:#fff;border:1px solid #dbe5f0;border-radius:12px;margin-bottom:8px;padding:10px}.pos-tablet-light .cart-line-info strong{color:#0f172a}.pos-tablet-light .cart-note-btn{background:#fef3c7!important;color:#92400e!important;border:0!important}.pos-tablet-light .pos-v19-bottom{position:relative!important;bottom:auto!important;background:#fff!important;border-radius:18px!important;border:1px solid #dbe5f0!important;margin:10px!important;padding:8px!important;box-shadow:0 -8px 24px rgba(15,23,42,.06)}.pos-tablet-light .bottom-total{display:grid!important;grid-template-columns:repeat(8,minmax(100px,1fr)) repeat(4,135px)!important;gap:7px!important}.pos-tablet-light .bottom-total .tot-row{background:#f8fafc!important;border:1px solid #dbe5f0!important;color:#0f172a!important;border-radius:10px!important;padding:7px 9px!important;min-height:44px}.pos-tablet-light .bottom-total .tot-row.final{background:#0f172a!important;color:#fff!important;font-size:18px}.pos-tablet-light .input,.pos-tablet-light .select{background:#fff!important;border-color:#cbd5e1!important;color:#0f172a!important}.pos-tablet-light .modal-card{background:#fff!important;color:#0f172a!important;border:1px solid #cbd5e1!important}.pos-tablet-light .modal-card .card{background:#f8fafc!important;color:#0f172a!important;border-color:#dbe5f0!important}.pos-tablet-light .gradient-head{background:linear-gradient(135deg,#0f766e,#0891b2)!important;color:#fff!important;margin:-16px -16px 14px;padding:12px 16px;border-radius:20px 20px 0 0}.pos-tablet-light .payment-method-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.pos-tablet-light .payment-method-card{height:54px;border-radius:10px;background:#f8fafc;color:#0f172a;border:1px solid #cbd5e1;font-weight:900}.pos-tablet-light .payment-method-card.active-pay{background:#0f766e;color:#fff;border-color:#14b8a6}.pos-tablet-light .hall-picker-card{max-width:980px}.pos-tablet-light .hall-picker-grid{grid-template-columns:repeat(4,minmax(145px,1fr));gap:12px}.pos-tablet-light .hall-table-choice{min-height:92px;border-radius:12px}.pos-tablet-light .customer-result{background:#fff;color:#0f172a;border:1px solid #cbd5e1;border-radius:10px;padding:10px;margin:5px;display:inline-flex;gap:8px;align-items:center}
@media(max-width:1250px){.pos-tablet-light .pos-v17-grid{grid-template-columns:190px minmax(0,1fr) 340px!important}.pos-tablet-light .bottom-total{grid-template-columns:repeat(4,1fr)!important}}
@media(max-width:900px){.pos-tablet-light{overflow:auto}.pos-tablet-light .pos-v17{height:auto}.pos-tablet-light .pos-v17-grid{grid-template-columns:1fr!important}.pos-tablet-light .pos-v17-categories,.pos-tablet-light .pos-v17-products,.pos-tablet-light .pos-v17-cart{order:initial;border:1px solid #dbe5f0}.pos-tablet-light .products-grid.v17-products{grid-template-columns:repeat(2,1fr)!important}}

/* V30 POS footer fix: totals row + action row, light theme */
.pos-tablet-light .pos-bottom-two-rows,
.pos-bottom-two-rows{display:grid!important;grid-template-rows:auto auto;gap:8px!important;padding:10px 12px!important;overflow:visible!important}
.pos-tablet-light .pos-bottom-two-rows .bottom-totals-row,
.pos-bottom-two-rows .bottom-totals-row{display:grid!important;grid-template-columns:repeat(10,minmax(105px,1fr))!important;gap:8px!important;align-items:stretch!important;width:100%}
.pos-tablet-light .pos-bottom-two-rows .bottom-actions-row,
.pos-bottom-two-rows .bottom-actions-row{display:grid!important;grid-template-columns:repeat(4,minmax(150px,1fr)) minmax(220px,2fr)!important;gap:8px!important;align-items:center!important;width:100%}
.pos-tablet-light .pos-bottom-two-rows .tot-row,
.pos-bottom-two-rows .tot-row{min-height:48px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;white-space:nowrap!important;overflow:hidden!important}
.pos-tablet-light .pos-bottom-two-rows .tot-row .input,
.pos-bottom-two-rows .tot-row .input{height:34px!important;max-width:92px!important;text-align:center!important}
.pos-tablet-light .pos-bottom-two-rows .tot-row select.input,
.pos-bottom-two-rows .tot-row select.input{max-width:130px!important}
.pos-tablet-light .pos-bottom-two-rows .btn,
.pos-bottom-two-rows .btn{height:48px!important;margin:0!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important}
.pos-tablet-light .pos-bottom-two-rows #pos-message,
.pos-bottom-two-rows #pos-message{min-height:48px!important;display:flex!important;align-items:center!important;padding:0 10px!important;border-radius:12px!important;background:#f8fafc!important;border:1px solid #dbe5f0!important}
@media(max-width:1450px){.pos-tablet-light .pos-bottom-two-rows .bottom-totals-row,.pos-bottom-two-rows .bottom-totals-row{grid-template-columns:repeat(5,minmax(110px,1fr))!important}.pos-tablet-light .pos-bottom-two-rows .bottom-actions-row,.pos-bottom-two-rows .bottom-actions-row{grid-template-columns:repeat(2,1fr)!important}.pos-tablet-light .pos-bottom-two-rows #pos-message,.pos-bottom-two-rows #pos-message{grid-column:1/-1!important}}
@media(max-width:760px){.pos-tablet-light .pos-bottom-two-rows .bottom-totals-row,.pos-bottom-two-rows .bottom-totals-row,.pos-tablet-light .pos-bottom-two-rows .bottom-actions-row,.pos-bottom-two-rows .bottom-actions-row{grid-template-columns:1fr!important}}

/* V30 separated administration pages */
.admin-split-layout{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:14px;align-items:start}.admin-form-card{position:sticky;top:12px}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.row-actions form{display:inline-flex;margin:0}.setting-key{direction:ltr;text-align:left;font-family:monospace}.small-muted{font-size:12px;color:#64748b}.war-card-title{font-size:22px;font-weight:900;margin:0 0 14px;color:#0f172a}@media(max-width:1050px){.admin-split-layout{grid-template-columns:1fr}.admin-form-card{position:static}}


/* ================= V31 final UI stabilization =================
   POS stays LIGHT, footer is two actual rows, payment modal is responsive,
   images never leave a broken icon, and admin forms/tables are usable. */
body.fullscreen-body.pos-tablet-light,
body.fullscreen-body.pos-tablet-light *{scrollbar-color:#94a3b8 #e2e8f0}
body.fullscreen-body.pos-tablet-light{background:#edf3f9!important;color:#102033!important;overflow:hidden!important}
body.fullscreen-body.pos-tablet-light .pos-v17,
body.fullscreen-body.pos-tablet-light .pos-v17 *:not(.btn-primary):not(.btn-dark):not(.mini-danger){color:#102033}
body.fullscreen-body.pos-tablet-light .pos-v17{background:#edf3f9!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;height:calc(100vh - 58px)!important;min-height:0!important;overflow:hidden!important}
body.fullscreen-body.pos-tablet-light .pos-v17-top,
body.fullscreen-body.pos-tablet-light .pos-v17-context{background:#fff!important;border-color:#d8e2ee!important;color:#102033!important}
body.fullscreen-body.pos-tablet-light .pos-v17-grid{min-height:0!important;overflow:hidden!important;grid-template-columns:210px minmax(0,1fr) 360px!important}
body.fullscreen-body.pos-tablet-light .pos-v17-categories,
body.fullscreen-body.pos-tablet-light .pos-v17-products,
body.fullscreen-body.pos-tablet-light .pos-v17-cart{background:#fff!important;color:#102033!important;border:1px solid #d8e2ee!important;min-height:0!important;overflow:auto!important}
body.fullscreen-body.pos-tablet-light .cart{background:#f8fafc!important;color:#102033!important}
body.fullscreen-body.pos-tablet-light .product-card,
body.fullscreen-body.pos-tablet-light .cat-btn{background:#fff!important;color:#102033!important;border-color:#d8e2ee!important}
body.fullscreen-body.pos-tablet-light .cat-btn.active{background:#e6fbf8!important;border-color:#16a89d!important}
body.fullscreen-body.pos-tablet-light .product-img-placeholder,
body.fullscreen-body.pos-tablet-light .cat-thumb{background:#eef3f8!important;color:#0f172a!important}
body.fullscreen-body.pos-tablet-light .pos-v19-bottom.pos-bottom-two-rows{background:#fff!important;border-top:1px solid #d8e2ee!important;border-radius:0!important;margin:0!important;padding:8px 10px!important;display:grid!important;grid-template-rows:auto auto!important;gap:8px!important;min-height:122px!important;max-height:170px!important;overflow:hidden!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .bottom-totals-row{display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:7px!important;border:0!important;background:transparent!important;padding:0!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .bottom-actions-row{display:grid!important;grid-template-columns:repeat(4,minmax(130px,1fr)) minmax(180px,1.4fr)!important;gap:8px!important;align-items:stretch!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row{margin:0!important;min-width:0!important;min-height:50px!important;background:#f8fafc!important;border:1px solid #d8e2ee!important;border-radius:12px!important;padding:6px 8px!important;display:grid!important;grid-template-columns:auto minmax(44px,1fr)!important;align-items:center!important;gap:6px!important;overflow:hidden!important;white-space:nowrap!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row span{font-weight:900!important;overflow:hidden;text-overflow:ellipsis}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row strong{font-weight:900!important;text-align:left!important;direction:ltr!important;overflow:hidden;text-overflow:ellipsis}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row input,
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row select{width:100%!important;min-width:0!important;max-width:none!important;height:34px!important;min-height:34px!important;padding:5px 7px!important;text-align:center!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row.final{background:#0f172a!important;color:#fff!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row.final span,
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row.final strong{color:#fff!important}
body.fullscreen-body.pos-tablet-light .bottom-actions-row .btn{height:48px!important;width:100%!important;margin:0!important;border-radius:12px!important;font-size:14px!important}
body.fullscreen-body.pos-tablet-light #pos-message{background:#f8fafc!important;border:1px solid #d8e2ee!important;border-radius:12px!important;min-height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:900!important;overflow:hidden!important}
body.fullscreen-body.pos-tablet-light .note-modal .modal-card,
body.fullscreen-body.pos-tablet-light .table-picker-modal .modal-card{background:#fff!important;color:#102033!important;border:1px solid #cbd5e1!important;max-height:92vh!important;overflow:auto!important}
body.fullscreen-body.pos-tablet-light #payment-modal .war-modal-card{width:min(560px,94vw)!important;max-width:560px!important;overflow:visible!important}
body.fullscreen-body.pos-tablet-light #payment-modal .form-grid,
body.fullscreen-body.pos-tablet-light #payment-modal .tight-grid{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
body.fullscreen-body.pos-tablet-light #payment-modal .payment-method-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
body.fullscreen-body.pos-tablet-light #payment-modal .payment-method-card{min-height:52px!important;white-space:normal!important;line-height:1.3!important}
body.fullscreen-body.pos-tablet-light #payment-modal input{width:100%!important;max-width:100%!important}
.img-fallback{height:82px;border-radius:12px;background:#eef3f8;display:grid;place-items:center;font-size:28px;color:#0f172a;font-weight:900;width:100%}
.cat-btn .img-fallback{height:44px;width:44px;font-size:18px}
.admin-split-layout .data-table input,.admin-split-layout .data-table select{width:100%;min-width:90px}.admin-split-layout .data-table td{vertical-align:middle}.admin-split-layout .row-actions{justify-content:center}.card .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card .form-grid .full{grid-column:1/-1}.form-footer{margin-top:14px;display:flex;gap:8px;justify-content:flex-start}
@media(max-width:1500px){body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .bottom-totals-row{grid-template-columns:repeat(5,minmax(0,1fr))!important}body.fullscreen-body.pos-tablet-light .pos-v19-bottom.pos-bottom-two-rows{max-height:220px!important}}
@media(max-width:1150px){body.fullscreen-body.pos-tablet-light .pos-v17-grid{grid-template-columns:170px minmax(0,1fr) 310px!important}body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .bottom-actions-row{grid-template-columns:repeat(2,1fr)!important}body.fullscreen-body.pos-tablet-light #pos-message{grid-column:1/-1!important}}
@media(max-width:760px){body.fullscreen-body.pos-tablet-light{overflow:auto!important}body.fullscreen-body.pos-tablet-light .pos-v17{height:auto!important;overflow:visible!important}body.fullscreen-body.pos-tablet-light .pos-v17-grid{grid-template-columns:1fr!important;overflow:visible!important}body.fullscreen-body.pos-tablet-light .pos-v17-cart{min-height:300px!important}body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .bottom-totals-row,body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .bottom-actions-row{grid-template-columns:1fr!important}body.fullscreen-body.pos-tablet-light .pos-v19-bottom.pos-bottom-two-rows{max-height:none!important}.card .form-grid{grid-template-columns:1fr!important}body.fullscreen-body.pos-tablet-light #payment-modal .payment-method-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* ================= V32 باقي الشاشات + تثبيت POS الفاتح ================= */
body.fullscreen-body.pos-tablet-light{background:#eef4fb!important;color:#0f172a!important;overflow:hidden!important}
body.fullscreen-body.pos-tablet-light .pos-v17{background:#eef4fb!important;color:#0f172a!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;height:100vh!important;gap:10px!important;padding:8px!important;overflow:hidden!important}
body.fullscreen-body.pos-tablet-light .pos-v17-top,
body.fullscreen-body.pos-tablet-light .pos-v17-context,
body.fullscreen-body.pos-tablet-light .pos-v17-categories,
body.fullscreen-body.pos-tablet-light .pos-v17-products,
body.fullscreen-body.pos-tablet-light .pos-v17-cart{background:#fff!important;color:#0f172a!important;border:1px solid #dbe5f0!important;border-radius:16px!important;box-shadow:0 8px 22px rgba(15,23,42,.045)!important}
body.fullscreen-body.pos-tablet-light .pos-v17-grid{display:grid!important;grid-template-columns:220px minmax(0,1fr) 390px!important;gap:10px!important;min-height:0!important;overflow:hidden!important;background:transparent!important}
body.fullscreen-body.pos-tablet-light .pos-v17-categories,
body.fullscreen-body.pos-tablet-light .pos-v17-products,
body.fullscreen-body.pos-tablet-light .pos-v17-cart{min-height:0!important;overflow:auto!important}
body.fullscreen-body.pos-tablet-light .products-grid.v17-products{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;gap:10px!important;align-content:start!important}
body.fullscreen-body.pos-tablet-light .v17-product,
body.fullscreen-body.pos-tablet-light .cat-btn{background:#f8fafc!important;color:#0f172a!important;border:1px solid #dbe5f0!important}
body.fullscreen-body.pos-tablet-light .v17-product .product-name,
body.fullscreen-body.pos-tablet-light .cart-title h3,
body.fullscreen-body.pos-tablet-light .pos-products-head h3,
body.fullscreen-body.pos-tablet-light .pos-v17-top strong{color:#0f172a!important}
body.fullscreen-body.pos-tablet-light .v17-product .product-price{color:#0f766e!important}
body.fullscreen-body.pos-tablet-light .pos-v19-bottom.pos-bottom-two-rows{background:#fff!important;border:1px solid #dbe5f0!important;border-radius:16px!important;padding:8px!important;display:grid!important;grid-template-rows:auto auto!important;gap:8px!important;min-height:128px!important;max-height:230px!important;overflow:hidden!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .bottom-totals-row{display:grid!important;grid-template-columns:repeat(10,minmax(92px,1fr))!important;gap:7px!important;background:transparent!important;border:0!important;padding:0!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .bottom-actions-row{display:grid!important;grid-template-columns:repeat(4,minmax(130px,1fr)) minmax(180px,1.5fr)!important;gap:8px!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row{margin:0!important;display:grid!important;grid-template-columns:auto minmax(42px,1fr)!important;gap:6px!important;align-items:center!important;min-height:48px!important;background:#f8fafc!important;border:1px solid #dbe5f0!important;border-radius:12px!important;padding:6px 8px!important;overflow:hidden!important;white-space:nowrap!important;color:#0f172a!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row input,
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row select{width:100%!important;min-width:0!important;height:34px!important;min-height:34px!important;padding:4px 6px!important;text-align:center!important;color:#0f172a!important;background:#fff!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row.final{background:#0f172a!important;color:#fff!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row.final *{color:#fff!important}
body.fullscreen-body.pos-tablet-light .bottom-actions-row .btn{width:100%!important;height:46px!important;margin:0!important}
body.fullscreen-body.pos-tablet-light #payment-modal .modal-card{width:min(560px,94vw)!important;max-height:92vh!important;overflow:auto!important}
body.fullscreen-body.pos-tablet-light #payment-modal .form-grid{grid-template-columns:1fr!important}
body.fullscreen-body.pos-tablet-light #payment-modal .payment-method-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.admin-edit-table .group-row td{background:#f1f5f9!important}.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.war-page .card{margin-bottom:14px}.compact-edit-table input,.compact-edit-table select{width:100%;min-width:80px}.compact-edit-table td{vertical-align:middle}.row-actions,.action-grid{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.row-actions form,.action-grid form{margin:0}.admin-split-layout{display:grid;grid-template-columns:380px minmax(0,1fr);gap:16px;align-items:start}.admin-form-card{position:sticky;top:82px}.form-grid.cols-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid.cols-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.form-grid .full{grid-column:1/-1}.error-card{margin-bottom:12px;color:#991b1b;font-weight:900;border-right:5px solid #dc2626}@media(max-width:1500px){body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .bottom-totals-row{grid-template-columns:repeat(5,minmax(100px,1fr))!important}body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .bottom-actions-row{grid-template-columns:repeat(2,1fr)!important}body.fullscreen-body.pos-tablet-light #pos-message{grid-column:1/-1!important}}@media(max-width:980px){.admin-split-layout{grid-template-columns:1fr}.admin-form-card{position:static}.form-grid.cols-2,.form-grid.cols-3{grid-template-columns:1fr!important}body.fullscreen-body.pos-tablet-light{overflow:auto!important}body.fullscreen-body.pos-tablet-light .pos-v17{height:auto!important;overflow:visible!important}body.fullscreen-body.pos-tablet-light .pos-v17-grid{grid-template-columns:1fr!important;overflow:visible!important}body.fullscreen-body.pos-tablet-light .pos-v19-bottom.pos-bottom-two-rows{max-height:none!important}body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .bottom-totals-row,body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .bottom-actions-row{grid-template-columns:1fr!important}body.fullscreen-body.pos-tablet-light #payment-modal .payment-method-grid{grid-template-columns:repeat(2,1fr)!important}}

/* V33 dashboard + image visibility fixes */
.dashboard-pro{max-width:1440px;margin:0 auto;padding:8px}.dash-hero{background:linear-gradient(135deg,#0f2a5f,#0891b2);color:#fff;border-radius:24px;padding:24px;display:flex;justify-content:space-between;align-items:center;gap:18px;box-shadow:0 18px 36px rgba(15,23,42,.16);margin-bottom:16px}.dash-hero h2{font-size:34px;margin:6px 0}.dash-hero p{margin:0;color:#dbeafe}.dash-kicker{display:inline-block;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:6px 12px;font-weight:900}.dash-actions{display:flex;gap:8px;flex-wrap:wrap}.dash-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.dash-stat-card{background:#fff;border:1px solid #dbe5f0;border-radius:20px;padding:18px;box-shadow:0 10px 28px rgba(15,23,42,.055);min-height:122px}.dash-stat-card span{display:block;color:#64748b;font-weight:900}.dash-stat-card strong{display:block;font-size:34px;margin:10px 0 4px;color:#0f172a}.dash-stat-card small{color:#94a3b8}.dash-stat-card.primary{background:linear-gradient(135deg,#0f172a,#0f766e);color:#fff}.dash-stat-card.primary span,.dash-stat-card.primary small,.dash-stat-card.primary strong{color:#fff}.dash-stat-card.warn{border-color:#fed7aa;background:#fff7ed}.dash-main-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px;margin-bottom:16px}.dash-main-grid.bottom{grid-template-columns:1fr 1fr}.dash-card{padding:18px}.dash-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.dash-section-head h3{margin:0;font-size:22px}.dash-section-head span,.dash-section-head a{color:#64748b;font-weight:900}.dash-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.dash-shortcuts a{display:flex;align-items:center;justify-content:center;min-height:70px;background:#f8fafc;border:1px solid #dbe5f0;border-radius:16px;text-decoration:none;color:#0f172a;font-weight:900}.dash-shortcuts a:hover{border-color:#14b8a6;background:#ecfeff}.type-progress-list,.dash-orders-list,.top-products-list{display:flex;flex-direction:column;gap:8px}.type-progress-row,.dash-order-item,.top-product-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px}.type-progress-row small,.dash-order-item small{display:block;color:#64748b;margin-top:3px}.type-progress-row b,.top-product-row b{color:#0f766e}.empty-state{border:1px dashed #cbd5e1;background:#f8fafc;border-radius:16px;padding:20px;text-align:center;color:#64748b;font-weight:900}.cat-btn img,.product-card img{display:block;background:#eef2f7}.cat-thumb,.product-img-placeholder{flex-shrink:0}.pos-v17 .product-card img[src=''],.pos-v17 .cat-btn img[src='']{display:none!important}
@media(max-width:1100px){.dash-stat-grid{grid-template-columns:repeat(2,1fr)}.dash-main-grid,.dash-main-grid.bottom{grid-template-columns:1fr}.dash-shortcuts{grid-template-columns:repeat(2,1fr)}.dash-hero{flex-direction:column;align-items:flex-start}}
@media(max-width:650px){.dash-stat-grid,.dash-shortcuts{grid-template-columns:1fr}.dash-hero h2{font-size:26px}.type-progress-row,.dash-order-item,.top-product-row{grid-template-columns:1fr}}

/* ================= V34 تنفيذ ملاحظات أحمد: POS فاتح + فوتر سطرين + مودال طاولات عملي + شاشات منفصلة ================= */
body.fullscreen-body.pos-tablet-light .pos-v17{height:100vh!important;grid-template-rows:auto auto minmax(0,1fr) 154px!important;background:#eef4fb!important;color:#0f172a!important}
body.fullscreen-body.pos-tablet-light .pos-v19-bottom.pos-bottom-two-rows{display:grid!important;grid-template-rows:66px 58px!important;gap:8px!important;height:154px!important;min-height:154px!important;max-height:154px!important;background:#fff!important;border:1px solid #d7e3ef!important;border-radius:16px!important;padding:8px!important;overflow:hidden!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .bottom-totals-row{display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:8px!important;height:66px!important;overflow:hidden!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row{height:58px!important;min-height:58px!important;padding:7px 9px!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:18px 30px!important;align-items:center!important;text-align:center!important;white-space:nowrap!important;background:#f8fafc!important;border:1px solid #d7e3ef!important;border-radius:12px!important;overflow:hidden!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row span{font-size:13px!important;line-height:1!important;text-align:center!important;color:#0f172a!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row strong{font-size:14px!important;line-height:1!important;text-align:center!important;color:#0f172a!important;direction:ltr!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row input,body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row select{height:30px!important;min-height:30px!important;width:100%!important;font-size:13px!important;padding:3px 6px!important;text-align:center!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .tot-row.final{background:#0f172a!important;color:#fff!important}.pos-bottom-two-rows .tot-row.final span,.pos-bottom-two-rows .tot-row.final strong{color:#fff!important}
body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .bottom-actions-row{display:grid!important;grid-template-columns:repeat(4,minmax(150px,1fr)) minmax(220px,1.4fr)!important;gap:8px!important;height:58px!important;align-items:stretch!important}
body.fullscreen-body.pos-tablet-light .bottom-actions-row .btn,body.fullscreen-body.pos-tablet-light #pos-message{height:50px!important;min-height:50px!important;margin:0!important;border-radius:12px!important}
body.fullscreen-body.pos-tablet-light .product-card img{width:100%!important;height:82px!important;object-fit:cover!important;border-radius:12px!important;background:#eef4fb!important}.product-img-placeholder{width:100%;height:82px;border-radius:12px;background:#eef4fb;display:grid;place-items:center;font-size:34px}.cat-btn img{width:52px!important;height:52px!important;object-fit:cover!important;border-radius:12px!important;background:#eef4fb!important}.cat-thumb{width:52px;height:52px;border-radius:12px;background:#eef4fb;display:grid;place-items:center;font-size:22px}
.hall-picker-card{width:min(980px,94vw)!important;max-width:980px!important}.hall-picker-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:10px 0 14px;background:#f8fafc;border:1px solid #dbe5f0;border-radius:14px;padding:10px 12px}.hall-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.hall-table-choice{border:1px solid #86efac;background:#dcfce7;border-radius:16px;min-height:170px;padding:12px;display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;color:#0f172a}.hall-table-choice.busy{background:#fee2e2;border-color:#fca5a5}.hall-table-choice.merged{background:#ede9fe;border-color:#c4b5fd}.hall-table-choice.reserved{background:#dbeafe;border-color:#93c5fd}.hall-status{background:#fff;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:900}.hall-order{font-weight:900;color:#0f172a;font-size:12px}.btn-sm{padding:6px 9px!important;border-radius:9px!important;font-size:12px!important}.table-op-form{display:grid;grid-template-columns:1fr auto;gap:5px;width:100%;align-items:center}.table-op-form .select{height:32px;min-height:32px;padding:3px 6px;font-size:12px}.split-form{grid-template-columns:1fr}.split-items-list{max-height:72px;overflow:auto;background:#fff;border:1px dashed #cbd5e1;border-radius:10px;padding:6px;text-align:right;font-size:12px}.split-items-list label{display:block;margin-bottom:3px}
.war-form-page{display:flex;justify-content:center}.war-form-wide{width:min(980px,100%)}.filters-card{margin-bottom:14px}.hr-tabs{margin-bottom:14px;display:flex;gap:8px;flex-wrap:wrap}.perm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.perm-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:10px}.perm-box strong{display:block;margin-bottom:8px}.perm-box label{display:block;margin:7px 0}.role-edit-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px;margin-bottom:12px}.role-edit-head{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center}.role-perms{margin-bottom:16px}
@media(max-width:1500px){body.fullscreen-body.pos-tablet-light .pos-bottom-two-rows .bottom-totals-row{grid-template-columns:repeat(5,minmax(0,1fr))!important;height:132px!important}body.fullscreen-body.pos-tablet-light .pos-v17{grid-template-rows:auto auto minmax(0,1fr) 220px!important}body.fullscreen-body.pos-tablet-light .pos-v19-bottom.pos-bottom-two-rows{grid-template-rows:132px 58px!important;height:220px!important;min-height:220px!important;max-height:220px!important}.hall-picker-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.hall-picker-grid{grid-template-columns:repeat(2,1fr)}.perm-grid{grid-template-columns:1fr}.role-edit-head{grid-template-columns:1fr}.admin-split-layout{grid-template-columns:1fr!important}.admin-form-card{position:static!important}}
@media(max-width:650px){.hall-picker-grid{grid-template-columns:1fr}body.fullscreen-body.pos-tablet-light .pos-v19-bottom.pos-bottom-two-rows{height:auto!important;max-height:none!important}.pos-bottom-two-rows .bottom-totals-row,.pos-bottom-two-rows .bottom-actions-row{grid-template-columns:1fr!important;height:auto!important}}

/* V35: POS hall/table control screen enlarged */
.table-picker-modal{position:fixed!important;inset:0!important;background:rgba(15,23,42,.55)!important;z-index:9999!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important}.table-picker-modal.hide{display:none!important}.table-picker-modal .hall-picker-card{width:min(1420px,96vw)!important;max-width:1420px!important;height:min(840px,92vh)!important;display:flex!important;flex-direction:column!important;padding:0!important;overflow:hidden!important}.table-picker-modal .modal-head{flex:0 0 auto!important}.hall-picker-toolbar{flex:0 0 auto!important;margin:0!important;border-radius:0!important;border-width:0 0 1px 0!important;padding:13px 18px!important}.hall-picker-grid{flex:1 1 auto!important;overflow:auto!important;padding:18px!important;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;gap:14px!important;align-content:start!important}.hall-table-choice{min-height:235px!important;padding:16px!important;justify-content:center!important}.hall-table-choice strong{font-size:20px!important}.hall-table-choice b{font-size:17px!important;color:#0f766e!important}.hall-table-choice.busy b{color:#b91c1c!important}.hall-table-choice .btn{width:100%;justify-content:center}.table-op-form{grid-template-columns:1fr 52px!important}.split-form{grid-template-columns:1fr!important}.split-items-list{max-height:95px!important}.small-check{display:block;font-size:11px;margin-top:4px}.soft-sep{border:0;border-top:1px solid #e2e8f0;margin:18px 0}.settings-panel{padding:26px!important}.form-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.receipt-preview table th,.receipt-preview table td{vertical-align:top}
@media(max-width:900px){.table-picker-modal{padding:8px!important}.table-picker-modal .hall-picker-card{width:98vw!important;height:94vh!important}.hall-picker-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))!important;padding:10px!important}.hall-table-choice{min-height:190px!important}.form-grid.cols-3{grid-template-columns:1fr}.settings-panel{padding:16px!important}}

/* ================= V37 CafeFlow Light UI final unification ================= */
:root{--cf-blue:#0b7ed8;--cf-blue2:#0e9bd7;--cf-green:#0f9f83;--cf-green2:#0f766e;--cf-orange:#f59e0b;--cf-red:#ef4444;--cf-bg:#f4f8fc;--cf-card:#ffffff;--cf-line:#dce8f3;--cf-text:#111827;--cf-muted:#64748b;--cf-soft:#eef8ff}
body:not(.fullscreen-body){background:var(--cf-bg)!important;color:var(--cf-text)!important}.app{background:var(--cf-bg)!important}.sidebar{background:#fff!important;color:#0f172a!important;border-left:1px solid #dce8f3!important;box-shadow:-10px 0 28px rgba(15,23,42,.055)!important}.brand{border-bottom:1px solid #e5eef7!important}.brand-icon{background:linear-gradient(135deg,#05a6c9,#0f9f83)!important;color:white!important}.brand-title{color:#0f172a!important}.brand-sub,.side-title{color:#64748b!important}.side-group.collapsible .side-title{color:#64748b!important;font-weight:900!important}.side-link{color:#223044!important;background:transparent!important;border:1px solid transparent!important}.side-link:hover,.side-link.active{background:#e9f7ff!important;color:#075985!important;border-color:#bce7ff!important}.topbar,.fullscreen-topbar{background:#fff!important;border-bottom:1px solid #dce8f3!important;color:#0f172a!important}.content{padding:22px 26px!important}.page-title{color:#0f172a!important}.page-subtitle,.muted{color:var(--cf-muted)!important}.card,.filters-card,.admin-form-card,.war-form-wide,.pos-panel,.dash-card{background:#fff!important;border:1px solid #dce8f3!important;border-radius:22px!important;box-shadow:0 10px 32px rgba(15,23,42,.055)!important}.btn{border-radius:12px!important;font-weight:900!important}.btn-primary{background:linear-gradient(135deg,#0f9f83,#0b7ed8)!important;color:#fff!important}.btn-dark{background:#0f172a!important;color:#fff!important}.btn-light{background:#f3f7fb!important;color:#0f172a!important;border:1px solid #dce8f3!important}.btn-danger{background:#ef4444!important;color:#fff!important}.input,.select,.form-control{background:#fff!important;color:#0f172a!important;border:1px solid #d3e2f0!important;border-radius:12px!important;box-shadow:none!important}.input:focus,.select:focus,.form-control:focus{outline:2px solid rgba(14,155,215,.18)!important;border-color:#0e9bd7!important}.data-table{border-collapse:separate!important;border-spacing:0 10px!important}.data-table th{color:#64748b!important;font-weight:900!important}.data-table td{background:#fff!important;border-color:#dce8f3!important}.badge{background:#eef2ff!important;color:#3730a3!important}.badge.green{background:#dcfce7!important;color:#166534!important}.badge.orange{background:#fff7ed!important;color:#9a3412!important}.badge.red{background:#fee2e2!important;color:#991b1b!important}.war-card-title,.dash-section-head h3,.page-title{font-weight:900!important}.dash-hero{background:linear-gradient(135deg,#0879c8,#05a6c9)!important;border-radius:26px!important;box-shadow:0 20px 42px rgba(11,126,216,.18)!important}.dash-stat-card{border-radius:20px!important}.dash-stat-card.primary{background:linear-gradient(135deg,#0b7ed8,#0f9f83)!important}.dash-shortcuts a{background:#f7fbff!important;border-color:#dce8f3!important}.type-progress-row,.dash-order-item,.top-product-row{background:#f8fbff!important;border-color:#dce8f3!important}.admin-split-layout{display:grid!important;grid-template-columns:minmax(360px,420px) minmax(0,1fr)!important;gap:18px!important;align-items:start!important}.admin-form-card{position:sticky!important;top:86px!important}.form-grid{gap:14px!important}.form-footer{display:flex!important;gap:10px!important;justify-content:flex-start!important;align-items:center!important;margin-top:14px!important}.row-actions,.action-grid{gap:8px!important}.compact-edit-table input,.compact-edit-table select,.data-table input,.data-table select{max-width:100%!important;min-width:0!important}.table-wrap{overflow:auto!important}.main{background:var(--cf-bg)!important}

/* POS must stay LIGHT and CafeFlow-like */
body.fullscreen-body.pos-tablet-light{background:#f3f8fc!important;color:#0f172a!important;overflow:hidden!important}body.fullscreen-body.pos-tablet-light .fullscreen-topbar{display:none!important}body.fullscreen-body.pos-tablet-light .fullscreen-content{padding:8px!important;height:100vh!important;overflow:hidden!important;background:#f3f8fc!important}body.fullscreen-body.pos-tablet-light .pos-v17{height:100%!important;display:grid!important;grid-template-rows:64px 64px minmax(0,1fr) 132px!important;gap:8px!important;background:#f3f8fc!important;color:#0f172a!important;padding:0!important}body.fullscreen-body.pos-tablet-light .pos-v17-top,body.fullscreen-body.pos-tablet-light .pos-v17-context,body.fullscreen-body.pos-tablet-light .pos-v17-categories,body.fullscreen-body.pos-tablet-light .pos-v17-products,body.fullscreen-body.pos-tablet-light .pos-v17-cart,body.fullscreen-body.pos-tablet-light .pos-v19-bottom{background:#fff!important;color:#0f172a!important;border:1px solid #d5e4f2!important;border-radius:18px!important;box-shadow:0 8px 22px rgba(15,23,42,.045)!important}body.fullscreen-body.pos-tablet-light .pos-v17-grid{display:grid!important;grid-template-columns:220px minmax(0,1fr) 360px!important;gap:8px!important;min-height:0!important;overflow:hidden!important;background:transparent!important}body.fullscreen-body.pos-tablet-light .pos-v17-products,body.fullscreen-body.pos-tablet-light .pos-v17-categories,body.fullscreen-body.pos-tablet-light .pos-v17-cart{overflow:auto!important;min-height:0!important}body.fullscreen-body.pos-tablet-light .pos-v17-top{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:10px 16px!important}body.fullscreen-body.pos-tablet-light .pos-v17-context{display:flex!important;align-items:center!important;gap:10px!important;padding:10px 16px!important;overflow:auto!important;white-space:nowrap!important}body.fullscreen-body.pos-tablet-light .pos-v17-context label{font-weight:900!important;font-size:20px!important}body.fullscreen-body.pos-tablet-light .cat-btn{background:#fff!important;color:#0f172a!important;border:1px solid #d5e4f2!important;border-radius:16px!important;min-height:76px!important;text-align:center!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:6px!important}body.fullscreen-body.pos-tablet-light .cat-btn.active{background:#e9fbff!important;border-color:#0e9bd7!important;color:#075985!important}body.fullscreen-body.pos-tablet-light .products-grid.v17-products{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(135px,1fr))!important;gap:12px!important;align-content:start!important;padding:14px!important}body.fullscreen-body.pos-tablet-light .product-card.v17-product{background:#fff!important;color:#0f172a!important;border:1px solid #d5e4f2!important;border-radius:18px!important;min-height:170px!important;padding:10px!important;box-shadow:0 8px 20px rgba(15,23,42,.04)!important}body.fullscreen-body.pos-tablet-light .product-card.v17-product:hover{border-color:#0e9bd7!important;box-shadow:0 12px 26px rgba(14,155,215,.14)!important}body.fullscreen-body.pos-tablet-light .product-card img{height:82px!important;width:100%!important;object-fit:cover!important;border-radius:14px!important;background:#eef4fb!important}body.fullscreen-body.pos-tablet-light .product-img-placeholder{height:82px!important;border-radius:14px!important;background:#eef4fb!important;color:#0f172a!important;display:grid!important;place-items:center!important;font-size:30px!important}body.fullscreen-body.pos-tablet-light .product-name{font-size:14px!important;font-weight:900!important;color:#0f172a!important;margin-top:5px!important}body.fullscreen-body.pos-tablet-light .product-price{font-size:15px!important;color:#0f766e!important;font-weight:900!important}body.fullscreen-body.pos-tablet-light .cart-line{background:#f8fbff!important;border:1px solid #dce8f3!important;border-radius:14px!important;margin-bottom:8px!important;padding:10px!important}body.fullscreen-body.pos-tablet-light .pos-v19-bottom.pos-bottom-two-rows{display:grid!important;grid-template-rows:58px 54px!important;gap:8px!important;padding:8px!important;min-height:132px!important;max-height:132px!important;overflow:hidden!important;border-radius:18px!important;background:#fff!important}body.fullscreen-body.pos-tablet-light .bottom-totals-row{display:grid!important;grid-template-columns:1.25fr repeat(8,1fr) 1.25fr!important;gap:8px!important;background:transparent!important;border:0!important;padding:0!important}body.fullscreen-body.pos-tablet-light .bottom-actions-row{display:grid!important;grid-template-columns:1.3fr 1fr 1fr 1fr 1.55fr!important;gap:8px!important}body.fullscreen-body.pos-tablet-light .bottom-totals-row .tot-row{background:#f7fbff!important;border:1px solid #d5e4f2!important;border-radius:13px!important;margin:0!important;padding:6px 8px!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:6px!important;align-items:center!important;min-width:0!important;height:58px!important;color:#0f172a!important;overflow:hidden!important;white-space:nowrap!important}body.fullscreen-body.pos-tablet-light .bottom-totals-row .tot-row.final{background:#0f172a!important;color:#fff!important}body.fullscreen-body.pos-tablet-light .bottom-totals-row .tot-row.final *{color:#fff!important}body.fullscreen-body.pos-tablet-light .bottom-totals-row input,body.fullscreen-body.pos-tablet-light .bottom-totals-row select{height:34px!important;min-height:34px!important;width:100%!important;min-width:0!important;padding:4px 6px!important;text-align:center!important}body.fullscreen-body.pos-tablet-light .bottom-actions-row .btn,body.fullscreen-body.pos-tablet-light #pos-message{width:100%!important;height:48px!important;margin:0!important}body.fullscreen-body.pos-tablet-light #pos-message{display:flex!important;align-items:center!important;justify-content:center!important;background:#f8fbff!important;border:1px solid #dce8f3!important;border-radius:13px!important;font-weight:900!important}body.fullscreen-body.pos-tablet-light .note-modal .modal-card,body.fullscreen-body.pos-tablet-light .table-picker-modal .modal-card{background:#fff!important;color:#0f172a!important;border:1px solid #d5e4f2!important;border-radius:22px!important}body.fullscreen-body.pos-tablet-light .modal-head.gradient-head{background:linear-gradient(135deg,#0f9f83,#0e9bd7)!important;color:#fff!important;border-radius:18px 18px 0 0!important;margin:-16px -16px 16px!important;padding:12px 16px!important}.payment-method-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(130px,1fr))!important;gap:10px!important}.payment-method-card{background:#f8fbff!important;border:1px solid #d5e4f2!important;border-radius:14px!important;min-height:52px!important;font-weight:900!important;color:#0f172a!important}.payment-method-card.active-pay,.payment-method-card:hover{background:#e9fbff!important;border-color:#0e9bd7!important;color:#075985!important}.payment-summary{background:#0f172a!important;color:#fff!important;border-radius:14px!important;padding:14px 16px!important;display:flex!important;justify-content:space-between!important;font-size:20px!important;font-weight:900!important}.table-picker-modal .hall-picker-card{width:min(1500px,98vw)!important;height:min(900px,96vh)!important}.hall-picker-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important;gap:14px!important}.hall-table-choice{min-height:270px!important;border-radius:20px!important}.hall-table-choice.free{background:#dcfce7!important;border-color:#86efac!important}.hall-table-choice.busy{background:#fee2e2!important;border-color:#fca5a5!important}.hall-table-choice strong{font-size:21px!important}.hall-table-choice b{font-size:18px!important}.table-op-form{display:grid!important;grid-template-columns:1fr auto!important;gap:6px!important;width:100%!important}.split-form{grid-template-columns:1fr!important}.split-items-list{background:#fff!important;border:1px dashed #d5e4f2!important;border-radius:12px!important;max-height:96px!important;overflow:auto!important;padding:6px!important}.category-list::-webkit-scrollbar,.products-grid::-webkit-scrollbar,.pos-v17-cart::-webkit-scrollbar,.hall-picker-grid::-webkit-scrollbar{width:10px;height:10px}.category-list::-webkit-scrollbar-thumb,.products-grid::-webkit-scrollbar-thumb,.pos-v17-cart::-webkit-scrollbar-thumb,.hall-picker-grid::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}
@media(max-width:1500px){body.fullscreen-body.pos-tablet-light .pos-v17-grid{grid-template-columns:190px minmax(0,1fr) 330px!important}body.fullscreen-body.pos-tablet-light .bottom-totals-row{grid-template-columns:repeat(5,minmax(0,1fr))!important}body.fullscreen-body.pos-tablet-light .pos-v17{grid-template-rows:64px 64px minmax(0,1fr) 198px!important}body.fullscreen-body.pos-tablet-light .pos-v19-bottom.pos-bottom-two-rows{grid-template-rows:116px 58px!important;min-height:198px!important;max-height:198px!important}}@media(max-width:980px){.admin-split-layout{grid-template-columns:1fr!important}.admin-form-card{position:static!important}body.fullscreen-body.pos-tablet-light{overflow:auto!important}body.fullscreen-body.pos-tablet-light .fullscreen-content{height:auto!important;overflow:visible!important}body.fullscreen-body.pos-tablet-light .pos-v17{height:auto!important;grid-template-rows:auto auto auto auto!important}body.fullscreen-body.pos-tablet-light .pos-v17-grid{grid-template-columns:1fr!important;overflow:visible!important}body.fullscreen-body.pos-tablet-light .bottom-totals-row,body.fullscreen-body.pos-tablet-light .bottom-actions-row{grid-template-columns:1fr!important}body.fullscreen-body.pos-tablet-light .pos-v19-bottom.pos-bottom-two-rows{max-height:none!important;min-height:0!important;grid-template-rows:auto auto!important}.dash-stat-grid,.dash-main-grid,.dash-main-grid.bottom{grid-template-columns:1fr!important}.dash-shortcuts{grid-template-columns:1fr 1fr!important}}

/* V38 CafeFlow polish */
.brand-logo-img{width:46px;height:46px;border-radius:14px;object-fit:contain;background:#fff;padding:5px;border:1px solid rgba(255,255,255,.18)}
.logo-preview-box{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#f8fafc;border:1px dashed #dbe5f0;border-radius:16px;padding:12px;min-height:92px}.logo-preview-box img{max-width:150px;max-height:76px;object-fit:contain;background:#fff;border-radius:12px;padding:6px}.empty-logo{width:100%;text-align:center;color:#64748b;font-weight:800}.small-check{display:block;margin-top:6px;font-size:12px;color:#64748b}
.dash-hero{background:linear-gradient(135deg,#ffffff,#e9fbff);border:1px solid #d5e4f2;border-radius:24px;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 18px 40px rgba(15,23,42,.06);margin-bottom:18px}.dash-hero h2{font-size:32px;margin:4px 0;color:#0f172a}.dash-kicker{display:inline-flex;background:#e0f2fe;color:#075985;border-radius:999px;padding:5px 12px;font-weight:900}.dash-actions{display:flex;gap:10px;flex-wrap:wrap}.dash-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.dash-stat-card{background:#fff;border:1px solid #d5e4f2;border-radius:20px;padding:18px;box-shadow:0 14px 30px rgba(15,23,42,.05);position:relative;overflow:hidden}.dash-stat-card:before{content:"";position:absolute;inset:auto 0 0 auto;width:70px;height:70px;background:#e9fbff;border-radius:999px;transform:translate(30%,30%)}.dash-stat-card span{display:block;color:#64748b;font-weight:800}.dash-stat-card strong{display:block;font-size:28px;margin:8px 0;color:#0f172a}.dash-stat-card small{color:#64748b}.dash-stat-card.primary{background:linear-gradient(135deg,#0f766e,#0ea5e9);color:#fff}.dash-stat-card.primary span,.dash-stat-card.primary strong,.dash-stat-card.primary small{color:#fff}.dash-stat-card.warn strong{color:#b45309}.dash-main-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.dash-card{min-height:240px}.dash-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.dash-section-head h3{margin:0;font-size:20px}.dash-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.dash-shortcuts a{background:#f8fbff;border:1px solid #d5e4f2;border-radius:16px;padding:16px;text-align:center;font-weight:900}.dash-shortcuts a:hover{background:#e9fbff;border-color:#0ea5e9}.type-progress-row,.dash-order-item,.top-product-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;border:1px solid #e2e8f0;border-radius:14px;padding:11px;margin-bottom:8px;background:#fff}.type-progress-row{grid-template-columns:1fr auto}.type-progress-row small,.dash-order-item small{display:block;color:#64748b}.top-product-row span{color:#64748b}.empty-state{border:1px dashed #cbd5e1;border-radius:16px;padding:18px;text-align:center;color:#64748b;font-weight:800;background:#f8fafc}
body.fullscreen-body.pos-tablet-light{background:#f3f8fc!important;color:#0f172a!important}.pos-tablet-light .pos-v17{background:#f3f8fc!important;color:#0f172a!important}.pos-tablet-light .pos-v17 *{color:inherit}.pos-tablet-light .pos-v17-top,.pos-tablet-light .pos-v17-context,.pos-tablet-light .pos-v17-categories,.pos-tablet-light .pos-v17-products,.pos-tablet-light .pos-v17-cart,.pos-tablet-light .pos-v19-bottom{background:#fff!important;color:#0f172a!important;border:1px solid #d5e4f2!important}.pos-tablet-light .product-card.v17-product,.pos-tablet-light .cat-btn{background:#fff!important;color:#0f172a!important}.pos-tablet-light .product-card.v17-product .muted,.pos-tablet-light .cat-btn small{color:#64748b!important}.pos-tablet-light .product-price{color:#0f766e!important}.pos-tablet-light .bottom-totals-row{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}.pos-tablet-light .bottom-actions-row{display:grid!important;grid-template-columns:1.4fr 1.2fr 1.2fr 1fr 1.6fr!important;gap:8px!important}.pos-tablet-light .pos-v19-bottom.pos-bottom-two-rows{display:grid!important;grid-template-rows:auto auto!important;gap:8px!important;padding:8px!important}.pos-tablet-light .bottom-totals-row .tot-row{min-width:0!important;height:54px!important;display:grid!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:8px!important;background:#f8fbff!important;border:1px solid #d5e4f2!important;border-radius:14px!important;padding:6px 10px!important;margin:0!important;overflow:hidden!important}.pos-tablet-light .bottom-totals-row input,.pos-tablet-light .bottom-totals-row select{width:100%!important;min-width:0!important;height:34px!important;text-align:center!important}.pos-tablet-light .bottom-totals-row .final{background:#0f172a!important;color:#fff!important}.pos-tablet-light .bottom-actions-row .btn,.pos-tablet-light #pos-message{height:48px!important;width:100%!important}.table-picker-modal .hall-picker-card{width:min(1500px,98vw)!important;height:min(920px,96vh)!important;overflow:hidden;display:flex;flex-direction:column}.hall-picker-grid{overflow:auto;flex:1;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.hall-picker-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#f8fbff;border:1px solid #d5e4f2;border-radius:14px;padding:10px 14px;margin-bottom:12px}.hall-table-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px;min-height:245px}.hall-table-choice form{width:100%}.hall-table-choice .btn{width:100%}.table-op-form{display:grid;grid-template-columns:1fr auto;gap:6px}.split-items-list{width:100%;max-height:95px;overflow:auto;background:#fff;border:1px dashed #cbd5e1;border-radius:12px;padding:6px}.split-items-list label{display:block;font-size:12px}.admin-split-layout{display:grid;grid-template-columns:minmax(360px,430px) minmax(0,1fr);gap:16px;align-items:start}.admin-form-card{position:sticky;top:90px}.form-grid{display:grid;gap:12px}.form-grid.cols-2{grid-template-columns:1fr 1fr}.form-grid.cols-3{grid-template-columns:repeat(3,1fr)}.form-grid .full{grid-column:1/-1}.war-header-card{background:linear-gradient(135deg,#0f376d,#0ea5e9);color:#fff;border-radius:24px;padding:22px 26px;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 18px 40px rgba(15,23,42,.12)}.war-header-card h2{margin:0 0 6px;font-size:28px}.war-header-card p{margin:0;color:#dff6ff}.war-page-narrow{max-width:1180px;margin:auto}.war-form-page{max-width:980px;margin:auto}.war-form-wide{padding:26px}.war-card-title{margin-top:0;font-size:23px}.row-actions{display:flex;gap:8px;flex-wrap:wrap}.form-footer{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:14px}.soft-sep{border:0;border-top:1px solid #e2e8f0;margin:20px 0}.compact-edit-table .input,.compact-edit-table .select{min-width:110px}.perm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.perm-box{background:#f8fbff;border:1px solid #d5e4f2;border-radius:16px;padding:12px}.perm-box strong{display:block;margin-bottom:8px}.perm-box label{display:block;margin:6px 0}.role-edit-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:14px;margin-bottom:14px}.role-edit-head{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;margin-bottom:10px}.print-agent-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}.print-step{background:#f8fbff;border:1px solid #d5e4f2;border-radius:16px;padding:14px}.print-step b{display:block;font-size:18px;margin-bottom:5px}.print-step code{direction:ltr;display:inline-block;background:#0f172a;color:#fff;border-radius:8px;padding:3px 6px;font-size:12px}
@media(max-width:1200px){.dash-stat-grid{grid-template-columns:repeat(2,1fr)}.dash-main-grid{grid-template-columns:1fr}.print-agent-steps{grid-template-columns:1fr 1fr}.pos-tablet-light .bottom-actions-row{grid-template-columns:1fr 1fr!important}}@media(max-width:760px){.dash-stat-grid,.dash-shortcuts,.print-agent-steps,.form-grid.cols-2,.form-grid.cols-3{grid-template-columns:1fr!important}.war-header-card{display:block}.admin-split-layout{grid-template-columns:1fr}.admin-form-card{position:static}.role-edit-head{grid-template-columns:1fr}.pos-tablet-light .bottom-totals-row,.pos-tablet-light .bottom-actions-row{grid-template-columns:1fr!important}.hall-picker-grid{grid-template-columns:1fr!important}.table-picker-modal .hall-picker-card{height:96vh!important}}

/* ================= V40 CafePro table control from POS ================= */
.table-picker-modal .hall-pro-card{
  width:min(1540px,98vw)!important;height:min(930px,96vh)!important;max-width:1540px!important;background:#fff!important;border:1px solid #d6e3ef!important;border-radius:18px!important;overflow:hidden!important;box-shadow:0 28px 70px rgba(15,23,42,.30)!important;display:flex!important;flex-direction:column!important;padding:0!important;color:#0f172a!important;
}
.table-picker-modal .hall-pro-head{height:54px!important;min-height:54px!important;padding:0 16px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;background:linear-gradient(135deg,#0f9f83,#0b7ed8)!important;color:#fff!important;border-radius:0!important}
.hall-pro-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:16px 20px!important;background:#fff!important;border-bottom:1px solid #e2e8f0!important;flex:0 0 auto!important}
.hall-pro-toolbar h3{margin:0 0 5px!important;font-size:22px!important;color:#0f172a!important}.hall-pro-toolbar p{margin:0!important;color:#64748b!important;font-weight:800!important}.hall-filter-pills{display:flex!important;gap:8px!important;flex-wrap:wrap!important;align-items:center!important}.hall-filter-pills button{border:1px solid #d6e3ef!important;background:#f8fafc!important;color:#0f172a!important;border-radius:14px!important;padding:10px 14px!important;font-weight:900!important;cursor:pointer!important}.hall-filter-pills button.active{background:#0b7ed8!important;color:#fff!important;border-color:#0b7ed8!important}.hall-filter-pills b{display:inline-grid!important;place-items:center!important;min-width:26px!important;height:22px!important;border-radius:999px!important;background:rgba(255,255,255,.65)!important;color:#075985!important;margin-inline-start:6px!important}
.hall-pro-grid{flex:1 1 auto!important;overflow:auto!important;padding:20px!important;background:#f8fbff!important;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(185px,1fr))!important;gap:14px!important;align-content:start!important}.hall-pro-table{position:relative!important;min-height:205px!important;border-radius:18px!important;padding:14px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important;text-align:center!important;border:1px solid #d6e3ef!important;background:#fff!important;box-shadow:0 8px 18px rgba(15,23,42,.035)!important;color:#0f172a!important}.hall-pro-table.is-free{background:#effdf5!important;border-color:#86efac!important}.hall-pro-table.is-busy{background:#fff7ed!important;border-color:#fed7aa!important}.hall-pro-status{position:absolute!important;top:12px!important;right:12px!important;border-radius:999px!important;padding:5px 10px!important;font-size:12px!important;font-weight:900!important;background:#fff!important;color:#0f172a!important}.hall-pro-status.free{color:#15803d!important}.hall-pro-status.busy{color:#c2410c!important}.hall-pro-status span{margin-inline-end:4px!important}.hall-pro-number{font-size:26px!important;font-weight:950!important;color:#0f172a!important;line-height:1.15!important}.hall-pro-seats{color:#475569!important;font-weight:900!important}.hall-pro-empty-icon{font-size:34px!important;color:#0f766e!important;line-height:1!important}.hall-pro-timer{font-size:12px!important;color:#0f172a!important;font-weight:900!important;direction:ltr!important}.hall-pro-total{font-size:20px!important;font-weight:950!important;color:#0f766e!important;direction:ltr!important}.is-busy .hall-pro-total{color:#b91c1c!important}.hall-pro-items{font-size:12px!important;color:#64748b!important;font-weight:900!important}.hall-pro-primary{width:100%!important;border:0!important;border-radius:13px!important;min-height:42px!important;padding:9px 10px!important;background:linear-gradient(135deg,#0f9f83,#0b7ed8)!important;color:#fff!important;font-weight:950!important;cursor:pointer!important}.hall-pro-actions{width:100%!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:7px!important;margin-top:4px!important}.hall-action{border:1px solid #d6e3ef!important;background:#fff!important;border-radius:12px!important;padding:9px 6px!important;font-weight:950!important;cursor:pointer!important;color:#0f172a!important}.hall-action.transfer{color:#075985!important}.hall-action.merge{color:#7c3aed!important}.hall-action.split{color:#b45309!important}
.hall-op-card{width:min(520px,94vw)!important;background:#fff!important;color:#0f172a!important;border-radius:18px!important;overflow:hidden!important;padding:0!important}.hall-op-body{padding:18px!important;display:grid!important;gap:10px!important}.hall-op-body label{font-weight:950!important;color:#0f172a!important}.hall-op-summary{background:#f8fbff!important;border:1px solid #d6e3ef!important;border-radius:14px!important;padding:12px!important;display:grid!important;gap:4px!important}.hall-op-summary strong{font-size:20px!important;color:#0f172a!important}.hall-op-summary span{color:#64748b!important;font-weight:800!important}.split-picker-list{max-height:270px!important;overflow:auto!important;border:1px solid #d6e3ef!important;border-radius:14px!important;background:#f8fafc!important;padding:8px!important;display:grid!important;gap:6px!important}.split-pick{display:grid!important;grid-template-columns:auto 1fr auto!important;gap:8px!important;align-items:center!important;background:#fff!important;border:1px solid #e2e8f0!important;border-radius:12px!important;padding:9px!important}.split-pick b{direction:ltr!important;color:#0f766e!important}.hall-op-card .form-footer{padding:0 18px 18px!important;margin:0!important}.hall-op-card .btn{width:100%!important;min-height:44px!important}
@media(max-width:900px){.table-picker-modal .hall-pro-card{width:98vw!important;height:96vh!important}.hall-pro-toolbar{display:grid!important;grid-template-columns:1fr!important}.hall-filter-pills{display:grid!important;grid-template-columns:repeat(2,1fr)!important}.hall-pro-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:10px!important}.hall-pro-table{min-height:190px!important}.hall-pro-number{font-size:22px!important}.hall-pro-actions{grid-template-columns:1fr!important}}
@media(max-width:480px){.hall-pro-grid{grid-template-columns:1fr!important}.hall-filter-pills{grid-template-columns:1fr!important}.table-picker-modal{padding:4px!important}.hall-pro-toolbar h3{font-size:18px!important}}

/* ================= V41 CafePro unified light polish + fullscreen table manager ================= */
body{background:#f4f8fb;color:#0f172a}.content{background:#f4f8fb}.sidebar{background:#ffffff!important;color:#0f172a!important;border-inline-start:1px solid #e5edf5;box-shadow:-10px 0 30px rgba(15,23,42,.04)}.brand-title,.side-title,.side-link{color:#0f172a!important}.brand-sub,.muted{color:#64748b!important}.side-link{background:transparent!important;border:1px solid transparent}.side-link.active{background:linear-gradient(135deg,#0f9f83,#0b7ed8)!important;color:#fff!important;border-color:transparent}.side-link:hover{background:#eef7ff!important}.topbar{background:#fff!important;border-bottom:1px solid #e5edf5}.card,.filter-card,.form-card,.table-card{background:#fff;border:1px solid #dbe7f1;border-radius:22px;box-shadow:0 18px 40px rgba(15,23,42,.05)}.btn-primary{background:linear-gradient(135deg,#0f9f83,#0b7ed8)!important;border:0!important}.btn-dark{background:#0f172a!important}.btn-light{background:#f8fafc!important;border:1px solid #dbe7f1!important;color:#0f172a!important}.input,.select,select,input,textarea{border:1px solid #cfe0ef!important;border-radius:12px!important;background:#fff!important;color:#0f172a!important;min-height:42px}.data-table th{background:#f8fbff;color:#475569}.data-table td,.data-table th{border-bottom:1px solid #edf2f7}.war-header-card,.dash-hero{background:linear-gradient(135deg,#0f376d,#0ea5e9)!important;color:#fff!important}.war-header-card p,.dash-hero p{color:#dff6ff!important}.dashboard-pro{max-width:1400px;margin:auto}.dash-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px;margin:16px 0}.dash-stat-card{background:#fff;border:1px solid #dbe7f1;border-radius:20px;padding:18px;box-shadow:0 12px 28px rgba(15,23,42,.05)}.dash-stat-card span{color:#64748b;font-weight:800}.dash-stat-card strong{display:block;font-size:30px;margin-top:10px}.dash-stat-card small{color:#94a3b8}.dash-stat-card.primary{border-color:#7dd3fc;background:#f0f9ff}.dash-stat-card.warn{border-color:#fed7aa;background:#fff7ed}.dash-main-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.dash-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.dash-shortcuts a{background:#f8fbff;border:1px solid #dbe7f1;border-radius:16px;padding:16px;text-align:center;color:#0f172a;font-weight:900;text-decoration:none}.dash-shortcuts a:hover{background:#e0f2fe}.dash-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.dash-section-head h3{margin:0}.type-progress-row,.dash-order-item,.top-product-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:12px;border:1px solid #edf2f7;border-radius:14px;margin-bottom:8px;background:#fbfdff}.type-progress-row small,.dash-order-item small{display:block;color:#64748b}.empty-state{padding:18px;text-align:center;color:#64748b;background:#f8fbff;border-radius:16px}

/* POS stays light regardless of app theme */
.pos-v17,.pos-v17 *{color:#0f172a}.pos-v17{background:#eef6fb!important}.pos-v17-top,.pos-v17-context,.pos-v17-categories,.pos-v17-products,.pos-v17-cart,.pos-v19-bottom{background:#fff!important;border-color:#dbe7f1!important}.pos-v17 .product-card,.pos-v17 .cat-btn{background:#fff!important;border:1px solid #dbe7f1!important;color:#0f172a!important}.pos-v17 .cat-btn.active{background:#e6fbf4!important;border-color:#0f9f83!important}.pos-v17 .product-img-placeholder{background:#eef4fb!important;color:#0f172a!important}.pos-v17 .cart{background:#f8fbff!important}.pos-v17 .tot-row{background:#fff!important;border:1px solid #dbe7f1!important}.pos-bottom-two-rows{display:grid!important;grid-template-rows:auto auto!important;gap:10px!important;padding:12px!important}.pos-bottom-two-rows .bottom-totals-row{display:grid!important;grid-template-columns:repeat(9,minmax(110px,1fr))!important;gap:8px!important}.pos-bottom-two-rows .bottom-actions-row{display:grid!important;grid-template-columns:2fr 1.2fr 1.2fr 1.2fr!important;gap:8px!important}.pos-bottom-two-rows .btn{min-height:48px!important;font-weight:900!important}.pos-bottom-two-rows .tot-row{min-height:52px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:8px 10px!important;border-radius:12px!important}.pos-bottom-two-rows .input,.pos-bottom-two-rows .select{min-width:90px!important;max-width:140px!important}

.table-picker-modal{position:fixed!important;inset:0!important;z-index:9999!important;background:rgba(15,23,42,.42)!important;padding:14px!important;display:flex!important;align-items:center!important;justify-content:center!important}.table-picker-modal.hide{display:none!important}.table-picker-modal .hall-pro-card{width:calc(100vw - 24px)!important;height:calc(100vh - 24px)!important;max-width:none!important;max-height:none!important;border-radius:18px!important;background:#fff!important}.hall-pro-workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:0;background:#f8fbff;border-top:1px solid #e2e8f0}.hall-pro-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;gap:12px!important;padding:18px!important}.hall-pro-table{min-height:170px!important;border-radius:18px!important;cursor:pointer;transition:.18s ease}.hall-pro-table:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(15,23,42,.10)!important}.hall-pro-table.is-selected{outline:4px solid rgba(14,165,233,.22)!important;border-color:#0284c7!important}.hall-pro-icon{font-size:28px;line-height:1}.hall-side-panel{background:#fff;border-right:1px solid #e2e8f0;padding:18px;overflow:auto}.hall-side-empty{height:100%;display:flex;flex-direction:column;justify-content:center;text-align:center;gap:10px;color:#64748b}.hall-side-empty b{font-size:22px;color:#0f172a}.hall-side-title{display:flex;gap:12px;align-items:center;background:#f8fbff;border:1px solid #dbe7f1;border-radius:18px;padding:14px;margin-bottom:12px}.hall-side-title b{font-size:24px}.hall-side-title small{display:block;color:#64748b;font-weight:800}.dot{width:12px;height:12px;border-radius:99px;background:#22c55e}.dot.orange{background:#f97316}.hall-side-total{background:#0f172a;color:#fff;border-radius:18px;padding:16px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between}.hall-side-total span,.hall-side-total strong{color:#fff!important}.hall-side-total strong{font-size:24px}.hall-side-items{display:grid;gap:8px;max-height:270px;overflow:auto;margin-bottom:12px}.hall-side-items div{display:flex;justify-content:space-between;gap:8px;background:#f8fbff;border:1px solid #e2e8f0;border-radius:12px;padding:10px}.hall-side-open{width:100%;border:0;border-radius:14px;min-height:46px;background:linear-gradient(135deg,#0f9f83,#0b7ed8);color:#fff!important;font-weight:950;margin-bottom:12px}.hall-side-actions{display:grid;gap:10px}.hall-side-actions button{min-height:50px;border:1px solid #dbe7f1;border-radius:14px;background:#fff;font-weight:950;font-size:17px;cursor:pointer}.hall-side-actions button:nth-child(1){color:#075985}.hall-side-actions button:nth-child(2){color:#7c3aed}.hall-side-actions button:nth-child(3){color:#b45309}.hall-op-card{box-shadow:0 26px 70px rgba(15,23,42,.28)!important}.hall-op-card .modal-head,.table-picker-modal .hall-pro-head{background:linear-gradient(135deg,#0f9f83,#0b7ed8)!important;color:#fff!important}.hall-op-card .modal-head strong,.table-picker-modal .hall-pro-head strong{color:#fff!important}

@media(max-width:1100px){.dash-stat-grid{grid-template-columns:repeat(2,1fr)}.dash-main-grid{grid-template-columns:1fr}.dash-shortcuts{grid-template-columns:repeat(2,1fr)}.hall-pro-workspace{grid-template-columns:1fr}.hall-side-panel{border-right:0;border-top:1px solid #e2e8f0;min-height:260px}.pos-bottom-two-rows .bottom-totals-row{grid-template-columns:repeat(3,1fr)!important}.pos-bottom-two-rows .bottom-actions-row{grid-template-columns:1fr 1fr!important}}@media(max-width:640px){.dash-stat-grid,.dash-shortcuts{grid-template-columns:1fr}.hall-filter-pills{grid-template-columns:1fr 1fr!important}.hall-pro-grid{grid-template-columns:1fr!important}.pos-bottom-two-rows .bottom-totals-row,.pos-bottom-two-rows .bottom-actions-row{grid-template-columns:1fr!important}}
/* V42 CafePro light login + online ordering */
.war-login-body{font-family:Cairo,Tahoma,sans-serif;background:#eef4fb;min-height:100vh;margin:0;display:grid;place-items:center;color:#0f172a;overflow:hidden}
.war-login-shell{width:min(1220px,94vw);display:grid;grid-template-columns:420px 1fr;gap:28px;align-items:center;direction:rtl}
.war-login-card,.war-login-hero{background:rgba(255,255,255,.92);border:1px solid #dbeafe;border-radius:28px;box-shadow:0 28px 75px rgba(15,23,42,.12);padding:34px;min-height:360px}
.war-login-card{order:2}.war-login-hero{order:1;background:linear-gradient(145deg,#ffffff,#f8fbff);position:relative;overflow:hidden}
.war-login-hero:before{content:"";position:absolute;inset:auto -90px -130px auto;width:320px;height:320px;border-radius:50%;background:linear-gradient(135deg,#0ea5e9,#14b8a6);opacity:.14}
.brand-big{display:flex;gap:14px;align-items:center;margin-bottom:22px}.brand-big span{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#14b8a6,#0ea5e9);color:#fff;font-size:28px;font-weight:900}.brand-big strong{font-size:23px}.brand-big small,.war-login-hero p,.login-card-head small{color:#94a3b8}
.war-login-hero h1{font-size:42px;line-height:1.25;margin:22px 0;color:#0f172a}.login-features{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}.login-features span{padding:10px 16px;border:1px solid #99f6e4;background:#ecfeff;border-radius:999px;color:#0f766e;font-weight:800}.login-card-head strong{display:block;font-size:34px;text-align:center;margin-bottom:10px}.war-login-card .form-row{margin:18px 0}.war-login-card label{font-weight:900}.war-login-card .form-control{width:100%;height:48px;border:1px solid #cfe0ef;border-radius:14px;padding:0 16px;font-family:inherit;font-weight:700}.login-main-btn{width:100%;height:52px;background:linear-gradient(135deg,#14b8a6,#0b84db)!important;border:0!important;border-radius:14px!important;font-weight:900!important}
@media(max-width:900px){.war-login-shell{grid-template-columns:1fr}.war-login-hero{display:none}.war-login-card{order:1}}
.online-store-body{font-family:Cairo,Tahoma,sans-serif;background:#f3f7fb;margin:0;color:#0f172a}.store-hero{min-height:420px;background:linear-gradient(rgba(5,14,30,.62),rgba(5,14,30,.62)),url('/media/restaurant-bg.jpg');background-size:cover;background-position:center;display:flex;flex-direction:column;color:#fff}.store-nav{display:flex;justify-content:space-between;align-items:center;padding:22px 5vw}.store-brand{display:flex;gap:12px;align-items:center}.store-brand span{width:54px;height:54px;border-radius:18px;background:#fff;color:#0f766e;display:grid;place-items:center;font-size:26px}.store-brand b{font-size:24px}.store-brand small{display:block;color:#dbeafe}.store-cta,.store-form button{background:linear-gradient(135deg,#14b8a6,#0b84db);color:#fff;text-decoration:none;border:0;border-radius:14px;padding:13px 24px;font-weight:900;cursor:pointer}.store-hero-content{padding:45px 5vw;max-width:850px}.store-kicker{background:rgba(255,255,255,.15);padding:8px 14px;border-radius:999px}.store-hero h1{font-size:52px;line-height:1.2;margin:20px 0}.store-hero p{font-size:20px;color:#e2e8f0}.store-layout{display:grid;grid-template-columns:190px 1fr 360px;gap:22px;padding:28px 5vw;align-items:start}.store-cats,.store-cart,.store-products{background:#fff;border:1px solid #dbeafe;border-radius:24px;box-shadow:0 18px 40px rgba(15,23,42,.06);padding:18px}.store-cat{display:block;width:100%;border:1px solid #dbeafe;background:#fff;border-radius:14px;padding:14px;margin-bottom:10px;font-family:inherit;font-weight:900;cursor:pointer;text-align:right}.store-cat.active{background:#0b84db;color:#fff}.store-section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.store-section-title input,.store-form input,.store-form select,.store-form textarea{border:1px solid #cfe0ef;border-radius:14px;padding:12px 14px;font-family:inherit;font-weight:700}.store-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px}.store-product{border:1px solid #dbeafe;border-radius:20px;padding:14px;background:#fff;text-align:center}.store-product-img{height:130px;border-radius:16px;background:#eef4fb;display:grid;place-items:center;overflow:hidden}.store-product-img img{width:100%;height:100%;object-fit:cover}.store-product-img span{font-size:42px}.store-product h3{margin:12px 0 4px}.store-product p{color:#64748b;margin:0 0 10px}.store-product-foot{display:flex;align-items:center;justify-content:space-between}.store-product-foot button{width:36px;height:36px;border:0;border-radius:50%;background:#0b84db;color:#fff;font-size:22px;cursor:pointer}.online-lines{min-height:80px}.online-line{display:grid;grid-template-columns:1fr auto 32px 32px;gap:8px;align-items:center;border:1px solid #e5eef8;border-radius:14px;padding:10px;margin-bottom:8px}.online-line button{border:0;border-radius:10px;background:#eef4fb;font-weight:900}.store-total{display:flex;justify-content:space-between;background:#0f172a;color:#fff;border-radius:14px;padding:16px;margin:14px 0;font-size:18px;font-weight:900}.store-form{display:grid;gap:10px}.store-form textarea{min-height:70px}.online-msg{margin-top:12px;font-weight:900;color:#0f766e}@media(max-width:1100px){.store-layout{grid-template-columns:1fr}.store-cats{display:flex;overflow:auto;gap:8px}.store-cat{white-space:nowrap;margin:0}.store-hero h1{font-size:34px}}
.hall-card-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px}.hall-card-actions button{border:1px solid #cfe0ef;background:#fff;border-radius:10px;padding:8px 4px;font-family:inherit;font-weight:900;cursor:pointer;color:#0f172a}.hall-card-actions button:hover{background:#e0f2fe;border-color:#38bdf8}.table-picker-modal .hall-pro-card{width:min(1360px,96vw)!important;max-width:96vw!important;height:min(850px,92vh);overflow:auto}.hall-pro-workspace{grid-template-columns:1fr 330px}.hall-pro-table{min-height:210px}.hall-pro-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important}@media(max-width:700px){.table-picker-modal .hall-pro-card{width:96vw!important;height:92vh}.hall-pro-workspace{grid-template-columns:1fr}.hall-side-panel{order:-1}.hall-card-actions{grid-template-columns:1fr}.hall-pro-grid{grid-template-columns:1fr!important}}

/* V43 Arabic Barab-style customer online ordering */
.barab-store-body{font-family:Cairo,Tahoma,Arial,sans-serif;background:#f3f7fb;margin:0;color:#0f172a;direction:rtl}.barab-header{height:78px;background:#fff;display:flex;align-items:center;gap:30px;justify-content:space-between;padding:0 5vw;position:sticky;top:0;z-index:50;box-shadow:0 2px 16px rgba(15,23,42,.06)}.barab-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#0f172a}.barab-brand img{width:58px;height:58px;object-fit:contain}.barab-brand span{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,#14b8a6,#0b84db);color:#fff;font-size:27px}.barab-brand b{font-size:22px}.barab-brand small{display:block;color:#64748b;font-weight:800}.barab-nav{display:flex;align-items:center;gap:22px}.barab-nav a,.barab-account a{color:#0f172a;text-decoration:none;font-weight:900}.barab-nav a:hover{color:#0b84db}.barab-account{display:flex;gap:10px;align-items:center}.barab-account button{border:0;border-radius:10px;background:#eef4fb;padding:9px 14px;font-family:inherit;font-weight:900;cursor:pointer}.store-alert{margin:16px 5vw 0;border-radius:16px;padding:14px 18px;font-weight:900}.store-alert.success{background:#dcfce7;border:1px solid #22c55e;color:#166534}.store-alert.danger{background:#fee2e2;border:1px solid #ef4444;color:#991b1b}.barab-hero{min-height:520px;background:linear-gradient(90deg,rgba(7,17,31,.78),rgba(7,17,31,.45)),var(--hero);background-size:cover;background-position:center;display:flex;align-items:center;padding:30px 6vw;color:#fff;position:relative;overflow:hidden}.barab-hero:after{content:"";position:absolute;inset:auto -90px -160px auto;width:430px;height:430px;border-radius:50%;background:rgba(255,255,255,.08)}.barab-hero-card{max-width:650px;position:relative;z-index:2}.barab-hero-card span{display:inline-flex;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:9px 16px;font-weight:900}.barab-hero-card h1{font-size:62px;line-height:1.13;margin:22px 0 14px;color:#fff}.barab-hero-card p{font-size:21px;line-height:1.9;color:#e2e8f0;margin:0 0 28px}.barab-hero-card a,.store-cta{display:inline-flex;background:linear-gradient(135deg,#f97316,#0ea5e9);color:#fff;text-decoration:none;border-radius:16px;padding:15px 28px;font-weight:950}.barab-info-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:24px 5vw}.barab-info-row div{background:#fff;border:1px solid #dbeafe;border-radius:22px;padding:22px;box-shadow:0 14px 35px rgba(15,23,42,.05)}.barab-info-row b{display:block;font-size:20px;margin-bottom:8px}.barab-info-row span{color:#64748b;font-weight:800}.barab-order-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:24px;padding:0 5vw 36px}.barab-cart,.barab-menu-panel,.account-card{background:#fff;border:1px solid #dbeafe;border-radius:28px;box-shadow:0 18px 45px rgba(15,23,42,.06);padding:22px}.barab-cart{position:sticky;top:96px;align-self:start}.barab-cart h2,.barab-menu-panel h2,.account-card h2{font-size:28px;margin:0 0 16px}.store-breakdown{display:grid;gap:8px;margin:12px 0}.store-breakdown div{display:flex;align-items:center;justify-content:space-between;border:1px solid #e2e8f0;background:#f8fbff;border-radius:14px;padding:12px 14px;font-weight:900}.store-breakdown .muted{opacity:.65}.store-total{display:flex;justify-content:space-between;align-items:center;background:#0f172a;color:#fff;border-radius:16px;padding:18px;margin:14px 0;font-weight:950;font-size:20px}.store-total *{color:#fff}.store-form{display:grid;gap:10px}.store-form input,.store-form select,.store-form textarea,.account-card input,.store-section-title input{width:100%;box-sizing:border-box;border:1px solid #cfe0ef;border-radius:15px;padding:13px 15px;font-family:inherit;font-weight:800;background:#fff}.store-form textarea{min-height:76px}.store-form button,.account-card button{border:0;background:linear-gradient(135deg,#14b8a6,#0b84db);color:#fff;border-radius:15px;min-height:48px;font-family:inherit;font-weight:950;cursor:pointer}.online-msg{font-weight:950;color:#0f766e;margin-top:12px;line-height:1.8}.online-msg a{color:#0b84db}.online-lines{min-height:80px}.online-line{display:grid;grid-template-columns:1fr auto 34px 34px;gap:8px;align-items:center;border:1px solid #e5eef8;border-radius:14px;padding:10px;margin-bottom:8px;background:#f8fbff}.online-line button{border:0;border-radius:10px;background:#e0f2fe;font-weight:950;cursor:pointer}.store-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.barab-cats{display:flex;gap:10px;overflow:auto;padding:4px 0 18px}.barab-cats .store-cat{white-space:nowrap;width:auto;margin:0;border:1px solid #dbeafe;background:#fff;border-radius:999px;padding:11px 18px;font-family:inherit;font-weight:950;cursor:pointer}.barab-cats .store-cat.active{background:#0b84db;color:#fff}.store-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:18px}.store-product{border:1px solid #dbeafe;border-radius:22px;padding:14px;background:#fff;text-align:center;transition:.16s}.store-product:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(15,23,42,.08)}.store-product-img{height:135px;border-radius:18px;background:#eef4fb;display:grid;place-items:center;overflow:hidden}.store-product-img img{width:100%;height:100%;object-fit:cover}.store-product-img span{font-size:46px}.store-product h3{margin:12px 0 4px;font-size:19px}.store-product p{color:#64748b;margin:0 0 10px;font-weight:800}.store-product-foot{display:flex;align-items:center;justify-content:space-between}.store-product-foot b{color:#0f766e;font-size:18px}.store-product-foot button{width:38px;height:38px;border:0;border-radius:50%;background:#0b84db;color:#fff;font-size:24px;cursor:pointer}.barab-account-zone{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:0 5vw 48px}.account-card form{display:grid;gap:10px}.account-card.wide{grid-column:1/-1}.track-list{display:grid;gap:10px}.track-list a{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;text-decoration:none;color:#0f172a;border:1px solid #dbeafe;border-radius:15px;padding:14px;background:#f8fbff}.track-list small{background:#dcfce7;color:#166534;border-radius:999px;padding:7px 12px;font-weight:950}.track-page{max-width:900px;margin:40px auto;background:#fff;border:1px solid #dbeafe;border-radius:28px;padding:28px;box-shadow:0 18px 45px rgba(15,23,42,.06)}.track-page h1{font-size:36px}.track-card{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;background:#f8fbff;border:1px solid #e2e8f0;border-radius:18px;padding:16px}.track-steps{display:grid;gap:12px;margin:24px 0}.track-steps div{display:flex;align-items:center;gap:12px;border:1px solid #e2e8f0;background:#fff;border-radius:18px;padding:16px;color:#64748b}.track-steps div.done{background:#ecfdf5;border-color:#22c55e;color:#166534}.track-steps i{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e2e8f0;font-style:normal;font-weight:950}.track-steps .done i{background:#22c55e;color:#fff}.track-items{display:grid;gap:8px}.track-items div{display:flex;justify-content:space-between;border:1px solid #e2e8f0;border-radius:14px;padding:12px;background:#f8fbff}@media(max-width:1000px){.barab-header{height:auto;flex-wrap:wrap;padding:14px 4vw}.barab-nav{order:3;width:100%;overflow:auto}.barab-hero-card h1{font-size:38px}.barab-info-row,.barab-order-layout,.barab-account-zone{grid-template-columns:1fr}.barab-cart{position:static}.track-card{grid-template-columns:1fr}.store-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.barab-hero{min-height:420px}.store-grid{grid-template-columns:1fr}.track-list a{grid-template-columns:1fr}.barab-info-row,.barab-order-layout,.barab-account-zone{padding-left:14px;padding-right:14px}}
.login-brand-logo{width:58px;height:58px;object-fit:contain;border-radius:18px;background:#fff;padding:4px;border:1px solid #dbeafe}

/* V44 Barab exact-style online store integration */
.barab-live-store{direction:rtl;text-align:right;background:#fff;color:#111827;font-family:'Cairo','Tahoma',Arial,sans-serif;overflow-x:hidden}.barab-live-store .store-header-ar{direction:rtl;background:#fff;box-shadow:0 8px 25px rgba(0,0,0,.06);position:sticky;top:0;z-index:1000}.store-logo-wrap{display:flex;align-items:center;gap:12px}.store-logo-wrap img,.footer-logo img{max-height:64px;width:auto;object-fit:contain}.store-logo-wrap span{font-size:22px;font-weight:900;color:#07142c}.store-header-ar .main-menu>ul>li>a{font-family:'Cairo','Tahoma';font-weight:800}.store-header-ar .header-button{gap:10px}.store-header-ar .icon-btn{position:relative}.store-header-ar .icon-btn .badge{position:absolute;top:-7px;right:-7px;background:#e31837;color:#fff;border-radius:999px;min-width:22px;height:22px;display:flex;align-items:center;justify-content:center;font-size:12px}.store-alert{width:min(1200px,calc(100% - 32px));margin:16px auto;padding:16px 22px;border-radius:18px;font-weight:900}.store-alert.success{background:#e9fff3;color:#087448;border:1px solid #5ae198}.store-alert.danger{background:#fff0f0;color:#b42318;border:1px solid #ffb3b3}.store-hero-ar{min-height:760px;direction:ltr}.store-hero-ar .hero-inner{direction:rtl}.store-hero-ar .hero-title{font-family:'Cairo','Tahoma';font-weight:950;line-height:1.25;text-align:center;color:#101828;text-transform:none}.store-hero-ar .hero-text{font-size:21px;max-width:780px;margin:16px auto 28px;text-align:center;color:#344054;font-weight:700}.store-hero-ar .sub-title{font-family:'Cairo','Tahoma';font-weight:900}.store-hero-ar .th-btn{font-family:'Cairo','Tahoma';font-weight:900}.store-category-section .category-card{width:100%;border:0;background:#fff;text-align:center;min-height:230px;cursor:pointer;transition:.2s}.store-category-section .category-card.active,.store-category-section .category-card:hover{transform:translateY(-5px);box-shadow:0 15px 40px rgba(239,81,36,.16)}.store-category-section .category-card .box-title{font-family:'Cairo','Tahoma';font-size:20px;font-weight:950}.store-order-section{background:#fff7ef;padding-bottom:90px}.store-menu-toolbar{background:#fff;border-radius:22px;padding:16px;margin-bottom:24px;box-shadow:0 12px 28px rgba(0,0,0,.06)}.store-menu-toolbar input{width:100%;height:58px;border:1px solid #ffd2bd;border-radius:16px;padding:0 18px;font-weight:800;outline:none}.store-product-card{height:100%;background:#fff;border:1px solid #ffe0d0;border-radius:28px;padding:16px;box-shadow:0 12px 28px rgba(8,20,45,.07);transition:.2s}.store-product-card:hover{transform:translateY(-6px);box-shadow:0 18px 45px rgba(239,81,36,.16)}.store-product-card .product-img{height:210px;border-radius:24px;background:#fff3ed;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:14px}.store-product-card .product-img img{width:100%;height:100%;object-fit:cover}.store-product-card .product-content{text-align:center;padding:0}.store-product-card .product-title{font-family:'Cairo','Tahoma';font-weight:950;font-size:22px;line-height:1.4;min-height:58px}.store-product-card .product-tag{display:inline-flex;background:#fff0e8;color:#ef5124;padding:6px 13px;border-radius:999px;font-weight:900;margin-bottom:8px}.store-product-card .price{display:block;color:#07142c;font-size:24px;font-weight:950;margin-bottom:14px}.store-product-card .th-btn{border-radius:16px;font-family:'Cairo','Tahoma';font-weight:950;padding:14px 18px}.store-cart-panel{position:sticky;top:110px;background:#fff;border-radius:30px;padding:24px;box-shadow:0 20px 55px rgba(8,20,45,.12);border:1px solid #ffe0d0}.store-cart-panel .widget_title{font-family:'Cairo','Tahoma';font-weight:950;margin-bottom:18px}.online-lines{display:flex;flex-direction:column;gap:10px;max-height:330px;overflow:auto;padding-left:4px}.online-line{display:grid;grid-template-columns:1fr auto 38px 38px;align-items:center;gap:8px;border:1px solid #ffe0d0;background:#fffaf7;border-radius:18px;padding:10px}.online-line b{font-weight:950;color:#07142c}.online-line small{display:block;color:#98a2b3;font-weight:800}.online-line span{font-weight:900;color:#ef5124}.online-line button{height:34px;border:0;border-radius:10px;background:#07142c;color:#fff;font-weight:950}.store-breakdown{margin:18px 0;border-top:1px dashed #ffd2bd;border-bottom:1px dashed #ffd2bd;padding:12px 0}.store-breakdown>div,.store-total{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;font-weight:900}.store-breakdown b,.store-total b{color:#ef5124}.store-total{background:#07142c;color:#fff;border-radius:18px;padding:16px 18px;margin-bottom:16px;font-size:20px}.store-total b{color:#fff}.store-form{display:flex;flex-direction:column;gap:10px}.store-form input,.store-form select,.store-form textarea,.account-card input{height:52px;border:1px solid #ffd2bd;border-radius:15px;padding:0 15px;background:#fff;font-weight:800;outline:none}.store-form textarea{height:84px;padding-top:14px;resize:vertical}.store-form .th-btn{border-radius:16px;font-weight:950}.online-msg{margin-top:12px;font-weight:900;color:#087448;line-height:1.8}.muted{color:#98a2b3!important}.store-about{background:#fff}.store-about .about-img img{width:100%;border-radius:36px;box-shadow:0 22px 55px rgba(8,20,45,.12)}.store-info-cards{display:grid;gap:12px}.store-info-cards>div{background:#fff7ef;border:1px solid #ffe0d0;border-radius:20px;padding:16px}.store-info-cards b{display:block;color:#ef5124;font-size:16px;margin-bottom:7px}.store-info-cards span{font-weight:900;color:#07142c}.account-card{background:#fff;border:1px solid #ffe0d0;border-radius:28px;box-shadow:0 18px 45px rgba(8,20,45,.08);padding:26px}.account-card h3{font-family:'Cairo','Tahoma';font-weight:950;margin-bottom:18px}.account-card form{display:flex;flex-direction:column;gap:12px}.track-list{display:grid;gap:12px}.track-list a{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;background:#fff7ef;border:1px solid #ffe0d0;border-radius:18px;padding:14px;color:#07142c}.track-list b{font-weight:950}.track-list span{color:#ef5124;font-weight:950}.track-list small{background:#e9fff3;color:#087448;border-radius:999px;padding:7px 12px;font-weight:900}.barab-live-store .footer-wrapper{padding:50px 0;background-size:cover;background-position:center}.barab-live-store .footer-title{font-family:'Cairo','Tahoma';font-weight:950;color:#fff}.track-page.barab-track-page{min-height:100vh;background:#fff7ef}.track-hero{position:relative;background:#07142c;color:#fff;padding:85px 0;overflow:hidden}.track-hero:before{content:"";position:absolute;inset:0;background:url('/assets/barab/img/bg/breadcumb-bg.jpg') center/cover;opacity:.28}.track-hero .container{position:relative;z-index:1}.track-hero h1{font-family:'Cairo','Tahoma';font-weight:950;color:#fff}.track-card-theme{background:#fff;border-radius:28px;box-shadow:0 18px 45px rgba(8,20,45,.10);padding:24px;margin-top:-35px;position:relative;z-index:2}.track-steps-theme{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:25px 0}.track-steps-theme>div{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:18px;text-align:center;font-weight:950}.track-steps-theme>div i{width:38px;height:38px;border-radius:50%;background:#e5e7eb;display:inline-flex;align-items:center;justify-content:center;margin-bottom:10px;font-style:normal}.track-steps-theme>div.done{border-color:#22c55e;background:#f0fff6}.track-steps-theme>div.done i{background:#22c55e;color:#fff}.track-items-theme{display:grid;gap:10px}.track-items-theme>div{display:flex;justify-content:space-between;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px;font-weight:900}@media(max-width:991px){.store-hero-ar{min-height:640px}.store-hero-ar .hero-title{font-size:44px}.store-cart-panel{position:relative;top:auto}.track-steps-theme{grid-template-columns:1fr 1fr}.track-list a{grid-template-columns:1fr}}@media(max-width:575px){.store-hero-ar .hero-title{font-size:34px}.store-hero-ar .hero-text{font-size:16px}.store-product-card .product-img{height:160px}.online-line{grid-template-columns:1fr auto 34px 34px}.track-steps-theme{grid-template-columns:1fr}.store-logo-wrap span{font-size:16px}}

/* V44 login restaurant theme */
.war-login-body{min-height:100vh;margin:0;background:#111827 url('/assets/barab/img/bg/breadcumb-bg.jpg') center/cover no-repeat;position:relative}.war-login-body:before{content:"";position:fixed;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(1px)}.war-login-shell{position:relative;z-index:1;min-height:100vh;display:flex;align-items:center;justify-content:center;gap:34px;padding:32px;direction:rtl}.war-login-card,.war-login-hero{background:rgba(255,255,255,.92);border-radius:28px;box-shadow:0 25px 80px rgba(0,0,0,.35);padding:38px}.war-login-card{width:min(440px,100%)}.war-login-hero{width:min(560px,100%);min-height:420px;display:flex;flex-direction:column;justify-content:center}.brand-big{display:flex;align-items:center;gap:14px;margin-bottom:24px}.brand-big span{width:74px;height:74px;border-radius:18px;background:linear-gradient(135deg,#f97316,#f59e0b);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:950;font-size:28px}.brand-big img.login-brand-logo{width:92px;height:92px;object-fit:contain;border-radius:18px;background:#fff;padding:6px}.brand-big strong{font-size:26px;font-weight:950;color:#07142c}.brand-big small{display:block;color:#667085;font-weight:800}.war-login-hero h1{font-size:43px;line-height:1.25;font-weight:950;color:#07142c;margin-bottom:16px}.war-login-hero p{font-size:17px;line-height:2;color:#667085;font-weight:800}.login-features{display:flex;flex-wrap:wrap;gap:8px}.login-features span{background:#fff3ed;color:#ef5124;border:1px solid #ffd2bd;border-radius:999px;padding:8px 13px;font-weight:900}.login-card-head strong{display:block;font-size:34px;font-weight:950;color:#07142c;text-align:center}.login-card-head small{display:block;text-align:center;color:#667085;font-weight:800;margin:8px 0 24px}.war-login-card .form-row{margin-bottom:16px}.war-login-card label{font-weight:950;color:#07142c;margin-bottom:7px;display:block}.war-login-card .form-control{height:58px;border-radius:16px;border:1px solid #d8e2ee;font-weight:800}.login-main-btn{height:58px;border-radius:16px;background:linear-gradient(135deg,#f97316,#ef5124);border:0;font-weight:950}.login-main-btn:hover{background:linear-gradient(135deg,#ef5124,#07142c)}@media(max-width:991px){.war-login-shell{flex-direction:column}.war-login-hero h1{font-size:34px}}

/* ================= V46 CafePro closing fixes ================= */
.hall-top-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.hall-top-actions button{border:1px solid #cfe0ef;background:#fff;border-radius:14px;padding:10px 16px;font-family:inherit;font-weight:950;cursor:pointer;color:#0f172a;min-height:44px;box-shadow:0 8px 18px rgba(15,23,42,.05)}
.hall-top-actions button:nth-child(1){color:#075985}.hall-top-actions button:nth-child(2){color:#7c3aed}.hall-top-actions button:nth-child(3){color:#b45309}
.table-picker-modal{padding:0!important;background:rgba(15,23,42,.52)!important;align-items:stretch!important;justify-content:stretch!important}
.table-picker-modal .hall-pro-card{width:100vw!important;height:100vh!important;max-width:100vw!important;max-height:100vh!important;border-radius:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
.table-picker-modal .hall-pro-head{min-height:54px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:10px 18px!important;flex:0 0 auto!important}
.table-picker-modal .hall-pro-subbar{display:grid!important;grid-template-columns:1fr auto auto!important;gap:14px!important;align-items:center!important;padding:12px 18px!important;background:#fff!important;border-bottom:1px solid #e2e8f0!important;flex:0 0 auto!important}
.table-picker-modal .hall-pro-workspace{flex:1 1 auto!important;min-height:0!important;overflow:hidden!important}
.table-picker-modal .hall-pro-grid{overflow:auto!important;align-content:start!important;padding:20px!important;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important}
.table-picker-modal .hall-pro-table{min-height:205px!important}
.table-picker-modal .hall-side-panel{overflow:auto!important}
@media(max-width:900px){.table-picker-modal .hall-pro-card{height:100vh!important}.table-picker-modal .hall-pro-subbar{grid-template-columns:1fr!important}.hall-top-actions{display:grid;grid-template-columns:repeat(3,1fr)}.hall-top-actions button{padding:9px 6px}.table-picker-modal .hall-pro-workspace{grid-template-columns:1fr!important;overflow:auto!important}.table-picker-modal .hall-side-panel{order:-1;min-height:210px}.table-picker-modal .hall-pro-grid{grid-template-columns:repeat(2,minmax(140px,1fr))!important;padding:12px!important}.table-picker-modal .hall-pro-table{min-height:170px!important}}

/* force POS fullscreen to stay light and readable */
body.pos-tablet-light .pos-v17, body.pos-tablet-light .pos-v17 *{scrollbar-color:#94a3b8 #eef4fb}
body.pos-tablet-light .pos-v19-bottom .bottom-totals-row{display:grid!important;grid-template-columns:repeat(8,minmax(125px,1fr))!important;gap:8px!important;overflow-x:auto!important;padding-bottom:2px!important}
body.pos-tablet-light .pos-v19-bottom .bottom-actions-row{display:grid!important;grid-template-columns:1.2fr 1fr 1fr 1fr!important;gap:8px!important;margin-top:8px!important}
body.pos-tablet-light .pos-v19-bottom .bottom-actions-row .btn{min-height:48px!important;font-weight:950!important}
@media(max-width:1100px){body.pos-tablet-light .pos-v19-bottom .bottom-totals-row{grid-template-columns:repeat(4,minmax(145px,1fr))!important}body.pos-tablet-light .pos-v19-bottom .bottom-actions-row{grid-template-columns:1fr 1fr!important}}
@media(max-width:640px){body.pos-tablet-light .pos-v19-bottom .bottom-totals-row,body.pos-tablet-light .pos-v19-bottom .bottom-actions-row{grid-template-columns:1fr!important}}

/* better fallback images instead of broken empty icon */
.product-img-placeholder,.img-fallback{background:#edf2f7 url('/assets/barab/img/category/category_1-1.png') center/60% no-repeat!important;color:transparent!important;min-height:82px!important}
.cat-img-fallback,.cat-thumb{background:#f1f8ff!important;color:#0f172a!important;border-radius:12px!important;display:grid!important;place-items:center!important}

/* store Arabic Barab polish */
.barab-live-store{font-family:Cairo,Tahoma,Arial,sans-serif!important;background:#f5f8fc!important;color:#0f172a!important}
.barab-live-store .main-menu a,.barab-live-store .store-cat,.barab-live-store .th-btn{font-family:Cairo,Tahoma,Arial,sans-serif!important;font-weight:900!important}
.barab-live-store .online-cart-panel,.barab-live-store .store-product-card,.barab-live-store .store-side-cats{border-radius:24px!important;box-shadow:0 18px 45px rgba(15,23,42,.08)!important;border:1px solid #dbe7f1!important;background:#fff!important}
.barab-live-store .store-product-card img{object-fit:cover!important;background:#eef4fb!important}
.barab-live-store .online-line{display:grid!important;grid-template-columns:1fr auto auto auto!important;gap:8px!important;align-items:center!important;border-bottom:1px solid #edf2f7!important;padding:8px 0!important}
.barab-live-store .online-line button{border:0;border-radius:999px;width:28px;height:28px;background:#0b84d8;color:#fff;font-weight:900}

/* V47 final polish: CafePro light layout, fullscreen hall operations, dashboard, settings previews */
body:has(.pos-v17){background:#eef5fb!important}.pos-v17{background:#eef5fb!important;color:#07142c!important}.pos-v17-top,.pos-v17-context,.pos-v17-grid,.pos-v19-bottom{background:#fff!important;border-color:#dbe7f2!important;box-shadow:0 12px 30px rgba(15,23,42,.06)!important}.pos-v17-products,.pos-v17-cart,.pos-v17-categories{background:#fff!important}.pos-v17 .product-card,.pos-v17 .cat-btn{background:#fff!important;border:1px solid #d9e8f5!important;color:#07142c!important}.pos-v17 .product-card img,.store-product-card img{object-fit:cover!important;background:#eef4fb!important}.pos-v17 .product-img-placeholder,.img-fallback{background:#eef4fb!important;color:#07142c!important;display:grid!important;place-items:center!important;border-radius:14px!important;font-size:30px!important}.pos-bottom-two-rows{display:grid!important;grid-template-rows:auto auto!important;gap:8px!important;padding:10px 14px!important}.pos-bottom-two-rows .bottom-totals-row{display:grid!important;grid-template-columns:repeat(10,minmax(110px,1fr))!important;gap:8px!important;overflow-x:auto!important;align-items:stretch!important}.pos-bottom-two-rows .tot-row{background:#f8fbff!important;border:1px solid #dbe7f2!important;border-radius:14px!important;margin:0!important;padding:10px!important;min-height:54px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}.pos-bottom-two-rows .tot-row.final{background:#07142c!important;color:#fff!important}.pos-bottom-two-rows .tot-row.final *{color:#fff!important}.pos-bottom-two-rows .bottom-actions-row{display:grid!important;grid-template-columns:2fr 2fr 1.6fr 1.4fr 3fr!important;gap:8px!important}.pos-bottom-two-rows .bottom-actions-row .btn{min-height:50px!important}.table-picker-modal{position:fixed!important;inset:0!important;z-index:9999!important;background:rgba(7,20,44,.55)!important;backdrop-filter:blur(2px)!important}.table-picker-modal .hall-pro-card{width:100vw!important;height:100vh!important;max-width:100vw!important;max-height:100vh!important;margin:0!important;border-radius:0!important;display:flex!important;flex-direction:column!important;background:#f6f9fc!important;overflow:hidden!important}.table-picker-modal .hall-pro-toolbar{display:grid!important;grid-template-columns:1fr auto!important;gap:16px!important;padding:14px 22px!important;background:#fff!important;border-bottom:1px solid #dbe7f2!important;align-items:center!important;flex:0 0 auto!important}.table-picker-modal .hall-filter-pills{display:grid!important;grid-template-columns:repeat(5,auto)!important;gap:8px!important}.table-picker-modal .hall-filter-pills button{border:1px solid #dbe7f2!important;background:#fff!important;border-radius:999px!important;padding:10px 14px!important;font-weight:900!important}.table-picker-modal .hall-filter-pills button.active{background:#0b84db!important;color:#fff!important;border-color:#0b84db!important}.table-picker-modal .hall-pro-workspace{flex:1 1 auto!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) 360px!important;overflow:hidden!important}.table-picker-modal .hall-pro-grid{height:100%!important;overflow:auto!important;padding:22px!important;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;gap:14px!important;align-content:start!important}.table-picker-modal .hall-pro-table{background:#e9fff1!important;border:1px solid #7ee4a5!important;border-radius:18px!important;min-height:190px!important;padding:14px!important;text-align:center!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important}.table-picker-modal .hall-pro-table.is-busy{background:#ffe3e3!important;border-color:#ff9f9f!important}.table-picker-modal .hall-pro-number{font-size:24px!important;font-weight:950!important;color:#07142c!important}.table-picker-modal .hall-pro-total{font-size:18px!important;font-weight:950!important;color:#0f766e!important}.table-picker-modal .hall-pro-primary,.table-picker-modal .hall-side-open{background:linear-gradient(135deg,#10a38b,#0b84db)!important;color:#fff!important;border:0!important;border-radius:12px!important;min-height:42px!important;width:100%!important;font-weight:950!important}.table-picker-modal .hall-card-actions{grid-template-columns:repeat(3,1fr)!important;width:100%!important}.table-picker-modal .hall-card-actions button,.table-picker-modal .hall-side-actions button{border-radius:12px!important;background:#fff!important;border:1px solid #dbe7f2!important;font-weight:950!important}.table-picker-modal .hall-side-panel{background:#fff!important;border-right:1px solid #dbe7f2!important;padding:18px!important;overflow:auto!important}.table-picker-modal .hall-side-title,.table-picker-modal .hall-side-total,.table-picker-modal .hall-side-items div{box-shadow:none!important}.dashboard-pro{max-width:1380px;margin:auto}.dash-hero{background:linear-gradient(135deg,#0f766e,#0b84db)!important;color:#fff!important;border-radius:28px!important;padding:28px!important;box-shadow:0 20px 50px rgba(15,118,110,.18)!important}.dash-hero *{color:#fff}.dash-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}.dash-stat-card{background:#fff;border:1px solid #dbe7f2;border-radius:22px;padding:20px;box-shadow:0 12px 30px rgba(15,23,42,.06)}.dash-stat-card strong{font-size:30px;color:#07142c}.dash-main-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dash-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.dash-shortcuts a{background:#f8fbff;border:1px solid #dbe7f2;border-radius:16px;padding:16px;text-align:center;font-weight:950}.dash-order-item,.top-product-row,.type-progress-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;border-bottom:1px solid #eef2f7;padding:12px 0}.logo-preview-box{background:#f8fbff;border:1px dashed #cfe0ef;border-radius:18px;min-height:120px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:12px}.logo-preview-box img{max-width:160px;max-height:110px;object-fit:contain}.logo-preview-box.wide-img img{max-width:100%;width:100%;height:110px;object-fit:cover;border-radius:12px}.small-check{font-size:12px;color:#64748b;font-weight:800}.store-hero .hero-title,.store-hero h1{font-weight:950!important}.store-cart-panel{position:sticky!important;top:16px!important}
@media(max-width:1100px){.dash-stat-grid{grid-template-columns:repeat(2,1fr)!important}.dash-main-grid{grid-template-columns:1fr!important}.dash-shortcuts{grid-template-columns:repeat(2,1fr)!important}.table-picker-modal .hall-pro-workspace{grid-template-columns:1fr!important;overflow:auto!important}.table-picker-modal .hall-side-panel{order:-1;min-height:230px}.pos-bottom-two-rows .bottom-totals-row{grid-template-columns:repeat(5,minmax(120px,1fr))!important}.pos-bottom-two-rows .bottom-actions-row{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:640px){.dash-stat-grid,.dash-shortcuts{grid-template-columns:1fr!important}.table-picker-modal .hall-filter-pills{grid-template-columns:repeat(2,1fr)!important}.table-picker-modal .hall-pro-grid{grid-template-columns:1fr!important}.pos-bottom-two-rows .bottom-totals-row,.pos-bottom-two-rows .bottom-actions-row{grid-template-columns:1fr!important}.pos-v17-grid{grid-template-columns:1fr!important;height:auto!important}.pos-v17-categories{order:1}.pos-v17-products{order:2}.pos-v17-cart{order:3}}

/* V48 closing stage shared UI helpers */
.page-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin:0 0 14px;flex-wrap:wrap}.actions-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ws-form label{font-weight:800;margin-bottom:6px;display:block}.ws-form .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-bottom:16px}.stat-card span{display:block;color:#64748b;font-weight:800}.stat-card strong{display:block;font-size:26px;margin-top:8px}.btn-danger{background:#dc2626!important;color:#fff!important}.app .sidebar{background:#fff!important;color:#0f172a!important;border-left:1px solid #e2e8f0;box-shadow:-10px 0 30px rgba(15,23,42,.06)}.app .brand{border-bottom:1px solid #e2e8f0}.app .brand-title{color:#0f172a}.app .brand-sub,.app .side-title{color:#64748b}.app .side-link{color:#0f172a}.app .side-link:hover,.app .side-link.active{background:#e6fbf4;color:#0f766e}.topbar{box-shadow:0 8px 24px rgba(15,23,42,.04)}
@media(max-width:760px){.ws-form .form-grid{grid-template-columns:1fr}.page-actions{justify-content:stretch}.page-actions .btn{width:100%}.actions-row .btn,.actions-row form{width:100%}.actions-row form .btn{width:100%}}

/* V49 closing fixes */
.online-alert-box{padding:14px 18px;border:1px solid #f59e0b;background:#fffbeb;color:#92400e;border-radius:18px;margin:12px 0;font-weight:800}.online-alert-box.hide{display:none}.stat-pill{padding:12px 18px;border-radius:999px;background:#e0f2fe;color:#075985;font-weight:900}.stat-pill.danger{background:#fee2e2;color:#991b1b}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.check{display:flex;align-items:center;gap:8px}.page-hero.cafe-hero{background:linear-gradient(135deg,#0f766e,#0284c7);color:#fff;border-radius:24px;padding:22px 28px;margin-bottom:18px;display:flex;justify-content:space-between;align-items:center;gap:18px}.page-hero.cafe-hero p{color:#e0f2fe;margin:6px 0 0}.form-card{max-width:1100px;margin:auto}.form-grid.cols-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .full{grid-column:1/-1}.filter-bar{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center}.online-orders-hero{position:relative}.delivery-company-hint{font-size:12px;color:#0f766e;font-weight:800}.product-price{transition:.2s ease}.hall-picker-modal.full-hall .modal-card,.hall-modal-card{width:min(96vw,1420px);max-width:1420px;height:min(92vh,920px);overflow:auto}.hall-pro-top-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.hall-pro-top-actions button{border:1px solid #dbeafe;background:#fff;color:#0f172a;border-radius:12px;padding:10px 14px;font-weight:900}.hall-pro-top-actions button.primary{background:linear-gradient(135deg,#0f766e,#0284c7);color:#fff;border:0}
@media(max-width:800px){.form-grid.cols-2,.filter-bar{grid-template-columns:1fr}.page-hero.cafe-hero{align-items:stretch;flex-direction:column}.page-hero.cafe-hero .btn{width:100%}}

/* V50 closing polish: CafePro light layout, fullscreen hall operations, clean admin inputs */
:root{--eg-blue:#0b84d8;--eg-teal:#12a99c;--eg-ink:#0f172a;--eg-muted:#64748b;--eg-border:#dbe8f4;--eg-bg:#f3f8fd;}
body{background:var(--eg-bg)!important;color:var(--eg-ink)!important}
.sidebar{background:#fff!important;border-left:1px solid var(--eg-border)!important;box-shadow:-10px 0 30px rgba(15,23,42,.04)!important;color:var(--eg-ink)!important}
.brand{border-bottom:1px solid #e8f0f8!important}.brand-title{color:var(--eg-ink)!important;font-weight:950!important}.brand-sub{color:var(--eg-muted)!important}.brand-logo-img{object-fit:contain!important;background:#f1f7fc!important;border-radius:12px!important}
.side-title{color:#516176!important;background:#fff!important}.side-link{color:#334155!important;border:1px solid transparent!important}.side-link.active,.side-link:hover{background:linear-gradient(135deg,var(--eg-teal),var(--eg-blue))!important;color:#fff!important;box-shadow:0 8px 16px rgba(14,132,216,.14)!important}.side-link.active *{color:#fff!important}
.topbar{background:#fff!important;border-bottom:1px solid var(--eg-border)!important;box-shadow:0 5px 24px rgba(15,23,42,.035)!important}.content{background:var(--eg-bg)!important}.card,.war-header-card,.settings-panel,.store-cart-panel,.modal-card{border:1px solid var(--eg-border)!important;box-shadow:0 16px 38px rgba(15,23,42,.06)!important}.input,.select,select,input,textarea{border:1px solid #cfe0ef!important;border-radius:12px!important;background:#fff!important;color:var(--eg-ink)!important;font-family:Cairo,Tahoma,sans-serif!important}.input:focus,.select:focus,input:focus,select:focus,textarea:focus{outline:3px solid rgba(14,132,216,.14)!important;border-color:#0b84d8!important}.btn-primary,.th-btn{background:linear-gradient(135deg,var(--eg-teal),var(--eg-blue))!important;color:#fff!important;border:0!important}.btn-dark{background:#07142c!important;color:#fff!important}.btn-light{background:#f5f9fd!important;color:#0f172a!important;border:1px solid var(--eg-border)!important}
.pos-shell,.pos-v19-shell{background:#f6fbff!important;color:#0f172a!important}.pos-v19-shell .pos-header,.pos-v19-shell .pos-context-bar,.pos-v19-shell .pos-v19-bottom{background:#fff!important;border-color:var(--eg-border)!important}.pos-main-grid,.pos-products,.pos-cart,.pos-cats,.product-card,.cat-btn{background:#fff!important;border-color:var(--eg-border)!important;color:#0f172a!important}.product-img,.cat-icon{background:#eef5fb!important}.cart-total .tot-row{background:#f8fbff!important;border:1px solid var(--eg-border)!important;border-radius:14px!important}.cart-total .tot-row.final{background:#07142c!important;color:#fff!important}.cart-total .tot-row.final span,.cart-total .tot-row.final strong{color:#fff!important}.bottom-actions-row{display:grid!important;grid-template-columns:repeat(4,minmax(160px,1fr)) minmax(220px,1.4fr)!important;gap:10px!important;align-items:stretch!important}.bottom-actions-row .btn{min-height:52px!important}.bottom-totals-row{display:grid!important;grid-template-columns:repeat(10,minmax(120px,1fr))!important;gap:8px!important;margin-bottom:8px!important}.pos-v19-bottom{display:block!important}.pos-v19-bottom .msg{min-height:52px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:14px!important;background:#eef8f5!important;color:#047857!important;font-weight:900!important}
.table-picker-modal{padding:10px!important;align-items:stretch!important}.table-picker-modal .hall-pro-card{width:calc(100vw - 20px)!important;height:calc(100vh - 20px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}.hall-full-toolbar{display:grid!important;grid-template-columns:minmax(240px,1fr) auto auto!important;gap:12px!important;align-items:center!important;padding:14px 18px!important;background:#fff!important;border-bottom:1px solid var(--eg-border)!important}.hall-toolbar-title h3{margin:0!important;font-size:22px!important;color:#0f172a!important}.hall-toolbar-title p{margin:4px 0 0!important;color:#64748b!important;font-weight:800!important}.hall-main-actions{display:grid!important;grid-template-columns:repeat(3,110px)!important;gap:8px!important}.hall-main-actions button{border:0!important;border-radius:14px!important;min-height:46px!important;background:linear-gradient(135deg,#12a99c,#0b84d8)!important;color:#fff!important;font-weight:950!important;cursor:pointer!important}.hall-filter-pills{display:flex!important;flex-wrap:wrap!important;gap:7px!important}.hall-filter-pills button{border:1px solid var(--eg-border)!important;border-radius:999px!important;background:#f8fbff!important;color:#0f172a!important;font-weight:900!important;padding:9px 13px!important}.hall-filter-pills button.active{background:#0b84d8!important;color:#fff!important}.hall-pro-workspace{grid-template-columns:minmax(0,1fr) 360px!important;flex:1!important;min-height:0!important}.hall-pro-grid{overflow:auto!important;align-content:start!important}.hall-pro-table{background:#eefdf3!important;border:1px solid #95e7b5!important;color:#0f172a!important}.hall-pro-table.is-busy{background:#fff0ef!important;border-color:#ffc2bd!important}.hall-pro-primary{background:linear-gradient(135deg,#12a99c,#0b84d8)!important;color:#fff!important;border:0!important}.hall-card-actions{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:5px!important;margin-top:8px!important}.hall-card-actions button{border:1px solid var(--eg-border)!important;background:#fff!important;border-radius:10px!important;min-height:34px!important;font-weight:900!important;color:#0f172a!important}.hall-side-panel{background:#fff!important}.hall-side-actions{grid-template-columns:1fr!important}.hall-side-actions button{background:#f8fbff!important}.hall-side-open{background:linear-gradient(135deg,#12a99c,#0b84d8)!important}
.delivery-modal-card{width:min(920px,96vw)!important}.v18-delivery-grid{grid-template-columns:repeat(3,minmax(180px,1fr))!important;gap:14px!important}.delivery-search-row{background:#f8fbff!important;border:1px solid var(--eg-border)!important;border-radius:18px!important;padding:14px!important;margin:14px!important}.search-inline{display:flex!important;gap:10px!important}.search-inline .input{flex:1!important}
.war-page-narrow{max-width:1180px!important;margin-inline:auto!important}.form-grid{align-items:end!important}.form-grid>div{min-width:0!important}.data-table input,.data-table select{min-height:42px!important}.data-table td,.data-table th{vertical-align:middle!important}.logo-preview-box img{max-width:100%!important;object-fit:contain!important}
@media(max-width:900px){.bottom-totals-row{grid-template-columns:repeat(2,minmax(120px,1fr))!important}.bottom-actions-row{grid-template-columns:1fr 1fr!important}.hall-full-toolbar{grid-template-columns:1fr!important}.hall-main-actions{grid-template-columns:repeat(3,1fr)!important}.hall-pro-workspace{grid-template-columns:1fr!important}.hall-side-panel{min-height:220px!important;border-top:1px solid var(--eg-border)!important}.v18-delivery-grid{grid-template-columns:1fr!important}.search-inline{flex-direction:column!important}.table-picker-modal .hall-pro-card{height:calc(100vh - 12px)!important;width:calc(100vw - 12px)!important}}
/* V51 polish */
.hero-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.online-alert-box{margin:14px 0;padding:14px 18px;border:1px solid #f59e0b;background:#fffbeb;color:#92400e;border-radius:16px;font-weight:900;box-shadow:0 8px 22px rgba(245,158,11,.12)}.online-alert-box.hide{display:none}.supplier-statement{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.supplier-statement .mini-stat{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:13px}.supplier-statement .mini-stat span{display:block;color:#64748b;font-size:12px}.supplier-statement .mini-stat b{display:block;font-size:20px;margin-top:5px;color:#0f172a}@media(max-width:900px){.supplier-statement{grid-template-columns:1fr 1fr}.hero-actions{width:100%}.hero-actions .btn,.hero-actions .stat-pill{flex:1}.data-table td,.data-table th{white-space:nowrap}.sidebar .brand{align-items:flex-start}.brand-title{line-height:1.45}}

/* V52 CafePro admin closing polish */
:root{--cp-primary:#0f73ff;--cp-accent:#17c6a3;--cp-bg:#f3f7fb;--cp-card:#fff;--cp-border:#e4edf6;--cp-text:#14213d;--cp-muted:#6b7b90;--cp-danger:#ef4444;--cp-soft:#f8fbff}
body{background:var(--cp-bg)!important;color:var(--cp-text)}
.sidebar{background:#fff!important;border-inline-start:1px solid var(--cp-border);box-shadow:-8px 0 24px rgba(15,35,70,.04)}
.brand{background:linear-gradient(135deg,#f8fbff,#edf7ff);border:1px solid var(--cp-border);border-radius:22px;margin:12px;padding:14px}.brand-title{font-size:17px;font-weight:900}.brand-sub{color:var(--cp-muted);font-size:12px}.side-title{background:#fff;border:1px solid transparent;border-radius:14px;color:#20344d;font-weight:900}.side-title:hover{background:#f4f9ff;border-color:var(--cp-border)}.side-link{border-radius:14px;margin:3px 8px;color:#42566f}.side-link.active{background:linear-gradient(135deg,var(--cp-primary),#1ec3ff);color:#fff;box-shadow:0 8px 18px rgba(15,115,255,.20)}
.topbar{background:#fff;border:1px solid var(--cp-border);border-radius:22px;margin:14px;padding:14px 18px;box-shadow:0 10px 25px rgba(31,58,94,.06)}.content{padding:0 14px 24px}.card,.war-card,.admin-form-card{background:#fff;border:1px solid var(--cp-border);border-radius:22px;box-shadow:0 10px 24px rgba(31,58,94,.05);padding:18px}.card h2,.card h3,.war-card h2,.war-card h3{color:#102a43;margin-top:0}.muted{color:var(--cp-muted)}
.btn{border-radius:14px;font-weight:900;padding:10px 16px;border:0;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn-primary{background:linear-gradient(135deg,var(--cp-primary),#1ec3ff);color:#fff}.btn-light{background:#eef5fd;color:#18364f}.btn-dark{background:#0f2438;color:#fff}.btn-danger,.mini-danger{background:#fee2e2!important;color:#991b1b!important}.btn-success{background:linear-gradient(135deg,#13b981,#22c55e);color:#fff}.input,.select,textarea.input{border:1px solid #dbe7f3;background:#fff;border-radius:14px;padding:11px 12px;min-height:44px;width:100%;box-sizing:border-box;outline:none}.input:focus,.select:focus{border-color:var(--cp-primary);box-shadow:0 0 0 3px rgba(15,115,255,.12)}label{font-weight:800;color:#314761;margin-bottom:6px;display:block}.form-grid{display:grid;gap:14px}.form-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.form-grid.cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.full{grid-column:1/-1}.form-footer,.row-actions,.form-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.page-hero,.war-header-card,.form-hero,.war-gradient-title{display:flex;justify-content:space-between;align-items:center;gap:14px;background:linear-gradient(135deg,#fff,#f0f8ff);border:1px solid var(--cp-border);border-radius:24px;padding:18px;margin-bottom:16px;box-shadow:0 12px 26px rgba(31,58,94,.05)}.page-hero h1,.page-hero h2,.war-header-card h2,.war-gradient-title h2{margin:0 0 4px;color:#102a43;font-weight:900}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.stat-card{background:#fff;border:1px solid var(--cp-border);border-radius:22px;padding:16px;box-shadow:0 8px 20px rgba(31,58,94,.05)}.stat-card strong{display:block;font-size:26px;color:#0f73ff}.stat-card span{color:var(--cp-muted);font-weight:800}.admin-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.filter-bar{display:flex;gap:8px;flex-wrap:wrap}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:separate;border-spacing:0 8px}.data-table th{background:#f2f7fd;color:#33506b;padding:12px;font-weight:900;text-align:right;white-space:nowrap}.data-table td{background:#fff;border-top:1px solid var(--cp-border);border-bottom:1px solid var(--cp-border);padding:12px;vertical-align:middle}.data-table tr td:first-child{border-inline-start:1px solid var(--cp-border);border-radius:0 16px 16px 0}.data-table tr td:last-child{border-inline-end:1px solid var(--cp-border);border-radius:16px 0 0 16px}.badge{display:inline-flex;align-items:center;gap:4px;background:#edf6ff;color:#0f5fbf;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900}.badge.green{background:#dcfce7;color:#166534}.badge.red{background:#fee2e2;color:#991b1b}.badge.orange{background:#ffedd5;color:#9a3412}.action-grid{display:flex;gap:6px;flex-wrap:wrap}.thumb-img{width:58px;height:58px;border-radius:16px;object-fit:cover;background:#eef4fb;border:1px solid #e4edf6}.form-layout-side{display:grid;grid-template-columns:1fr 320px;gap:16px}.side-help{position:sticky;top:16px;align-self:start}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.section-head h3,.section-head h4{margin:0}.empty-state{text-align:center;padding:30px;background:#f8fbff;border:1px dashed #cbdff3;border-radius:20px;color:#64748b;font-weight:800}.admin-split-layout{display:grid;grid-template-columns:380px 1fr;gap:16px}.perm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.perm-box{background:#f8fbff;border:1px solid #dbe7f3;border-radius:18px;padding:12px}.perm-box label{display:flex;gap:8px;align-items:center;font-weight:700;margin:7px 0}.role-edit-card{border:1px solid var(--cp-border);border-radius:18px;padding:14px;margin-bottom:12px;background:#fbfdff}.role-edit-head{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center}.purchase-grid-head,.purchase-row-v18{display:grid;grid-template-columns:2fr 1.4fr .8fr .8fr .7fr .7fr .8fr 46px;gap:8px;align-items:center}.purchase-grid-head{font-weight:900;color:#33506b;background:#f2f7fd;border-radius:14px;padding:10px}.purchase-row-v18{background:#fff;border:1px solid var(--cp-border);border-radius:16px;padding:8px;margin-top:8px}.purchase-bottom-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin-top:16px}.tot-row{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed #dbe7f3;padding:9px 0}.tot-row.final{font-size:18px;font-weight:900;color:#0f73ff;border-bottom:0}.product-type-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}.product-type-tabs label{background:#f8fbff;border:1px solid #dbe7f3;border-radius:18px;padding:12px;text-align:center;cursor:pointer}.product-type-tabs label:has(input:checked){background:#eaf5ff;border-color:#0f73ff;color:#0f73ff}.recipe-line{display:grid;grid-template-columns:1fr 150px 46px;gap:8px;margin-bottom:8px}.size-block{background:#fbfdff;border:1px solid var(--cp-border);border-radius:20px;padding:14px;margin-bottom:12px}.size-block-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.form-card-title{font-weight:900;color:#102a43;margin:0 0 12px}.sidebar .side-group.closed .side-items{display:none}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,1fr)}.form-grid.cols-4,.form-grid.cols-5{grid-template-columns:repeat(2,1fr)}.admin-split-layout,.form-layout-side,.purchase-bottom-grid{grid-template-columns:1fr}.perm-grid{grid-template-columns:repeat(2,1fr)}.purchase-grid-head{display:none}.purchase-row-v18{grid-template-columns:1fr 1fr}.purchase-row-v18 strong,.purchase-row-v18 button{grid-column:auto}}
@media(max-width:720px){.form-grid.cols-2,.form-grid.cols-3,.form-grid.cols-4,.stats-grid,.perm-grid{grid-template-columns:1fr}.page-hero,.war-header-card,.war-gradient-title{display:block}.form-actions,.row-actions,.admin-toolbar{justify-content:flex-start}.purchase-row-v18{grid-template-columns:1fr}.role-edit-head{grid-template-columns:1fr}.card{padding:14px}}

/* ================= V55.1 POS layout recovery: bigger basket without breaking fullscreen ================= */
body:has(.pos-v17) .pos-v17{
    gap:8px!important;
    overflow:hidden!important;
}
body:has(.pos-v17) .pos-v17-top,
body:has(.pos-v17) .pos-v17-context{
    flex:0 0 auto!important;
}
body:has(.pos-v17) .pos-v17-grid{
    grid-template-columns:200px minmax(560px,1fr) minmax(420px,470px)!important;
    gap:12px!important;
    min-width:0!important;
    overflow:hidden!important;
}
body:has(.pos-v17) .pos-v17-categories,
body:has(.pos-v17) .pos-v17-products,
body:has(.pos-v17) .pos-v17-cart{
    min-width:0!important;
}
body:has(.pos-v17) .pos-v17-categories,
body:has(.pos-v17) .pos-v17-products{
    overflow-y:auto!important;
    overflow-x:hidden!important;
}
body:has(.pos-v17) .pos-v17-cart{
    min-width:0!important;
    width:auto!important;
    padding:10px!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-title{
    min-height:40px!important;
    margin-bottom:8px!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-title h3{
    font-size:22px!important;
    font-weight:950!important;
}
body:has(.pos-v17) .cart-title-badges{
    display:flex!important;
    gap:6px!important;
    align-items:center!important;
    flex-wrap:wrap!important;
}
body:has(.pos-v17) #cart-lines-count{
    background:#eef5ff!important;
    color:#0f5fbf!important;
}
body:has(.pos-v17) .pos-v17-cart .cart{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    padding:8px!important;
    border-radius:16px!important;
    background:#fbfdff!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-line.full{
    width:100%!important;
    box-sizing:border-box!important;
    grid-template-columns:minmax(0,1fr) 92px 76px 70px 30px!important;
    gap:6px!important;
    min-height:66px!important;
    padding:8px!important;
    margin-bottom:8px!important;
    border-radius:14px!important;
    align-items:center!important;
    overflow:hidden!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-line-info{
    min-width:0!important;
    overflow:hidden!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-line-info strong{
    font-size:15px!important;
    line-height:1.35!important;
    display:block!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-line-info small{
    font-size:11px!important;
    line-height:1.35!important;
}
body:has(.pos-v17) .pos-v17-cart .qty-box{
    width:92px!important;
    height:34px!important;
    display:grid!important;
    grid-template-columns:28px minmax(22px,1fr) 28px!important;
    gap:4px!important;
    align-items:center!important;
    justify-items:center!important;
    background:#f1f5f9!important;
    border:1px solid #dbe7f3!important;
    border-radius:11px!important;
    padding:2px!important;
}
body:has(.pos-v17) .pos-v17-cart .qty-box button,
body:has(.pos-v17) .pos-v17-cart .mini-danger{
    min-width:28px!important;
    width:28px!important;
    height:28px!important;
    border-radius:9px!important;
    font-size:15px!important;
    padding:0!important;
}
body:has(.pos-v17) .pos-v17-cart .qty-box span{
    font-size:15px!important;
    font-weight:950!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-note-btn{
    min-height:34px!important;
    padding:6px 5px!important;
    border-radius:10px!important;
    font-size:12px!important;
    white-space:nowrap!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-line.full > strong{
    font-size:14px!important;
    text-align:center!important;
    white-space:nowrap!important;
    color:#0f766e!important;
}
body:has(.pos-v17) .empty-cart{
    min-height:150px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:1px dashed #cbdff3!important;
    border-radius:16px!important;
    background:#f8fbff!important;
    font-weight:900!important;
}
@media(max-width:1500px){
    body:has(.pos-v17) .pos-v17-grid{grid-template-columns:180px minmax(470px,1fr) minmax(390px,430px)!important}
    body:has(.pos-v17) .pos-v17-cart .cart-line.full{grid-template-columns:minmax(0,1fr) 88px 70px 64px 28px!important}
}
@media(max-width:1200px){
    body:has(.pos-v17) .pos-v17-grid{grid-template-columns:150px minmax(380px,1fr) minmax(350px,390px)!important}
    body:has(.pos-v17) .pos-v17-cart .cart-line.full{grid-template-columns:minmax(0,1fr) 84px 66px 58px 28px!important;gap:5px!important}
    body:has(.pos-v17) .pos-v17-cart .cart-line-info strong{font-size:14px!important}
    body:has(.pos-v17) .pos-v17-cart .cart-note-btn{font-size:11px!important}
}
@media(max-width:900px){
    body:has(.pos-v17) .pos-v17{height:auto!important;overflow:auto!important}
    body:has(.pos-v17) .pos-v17-grid{grid-template-columns:1fr!important;height:auto!important;overflow:visible!important}
    body:has(.pos-v17) .pos-v17-cart{min-width:0!important;min-height:520px!important;order:3}
    body:has(.pos-v17) .pos-v17-cart .cart-line.full{grid-template-columns:1fr 92px 70px 64px 30px!important;text-align:right!important}
}
@media(max-width:640px){
    body:has(.pos-v17) .pos-v17-cart .cart-line.full{grid-template-columns:1fr!important}
    body:has(.pos-v17) .pos-v17-cart .qty-box{justify-self:start!important}
}

/* ================= V55.4 POS basket row fix =================
   المطلوب: اسم المنتج في سطر واضح، وأسفله أزرار + / - / ملاحظة / حذف في سطر واحد. */
body:has(.pos-v17) .pos-v17-grid{
    grid-template-columns:200px minmax(560px,1fr) minmax(420px,470px)!important;
}
body:has(.pos-v17) .pos-v17-cart .cart{
    overflow-y:auto!important;
    overflow-x:hidden!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-line.full.pos-cart-line-stacked{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-areas:none!important;
    gap:6px!important;
    width:100%!important;
    min-height:96px!important;
    padding:10px!important;
    margin-bottom:8px!important;
    border:1px solid #dbe7f3!important;
    border-radius:14px!important;
    background:#fbfdff!important;
    overflow:hidden!important;
    align-items:stretch!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-line-name-row{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    min-width:0!important;
    width:100%!important;
    direction:rtl!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-product-title{
    display:block!important;
    flex:1 1 auto!important;
    min-width:0!important;
    font-size:15px!important;
    line-height:1.45!important;
    font-weight:950!important;
    color:#07142c!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    text-align:right!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-line-price{
    flex:0 0 auto!important;
    font-size:14px!important;
    font-weight:950!important;
    color:#0f766e!important;
    white-space:nowrap!important;
    text-align:left!important;
}
body:has(.pos-v17) .pos-v17-cart .pos-cart-line-stacked .cart-line-info{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:5px!important;
    min-width:0!important;
    overflow:hidden!important;
    color:#64748b!important;
}
body:has(.pos-v17) .pos-v17-cart .pos-cart-line-stacked .cart-line-info small{
    display:inline-flex!important;
    max-width:100%!important;
    font-size:10.5px!important;
    line-height:1.3!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-line-actions-row{
    display:grid!important;
    grid-template-columns:92px minmax(70px,1fr) 32px!important;
    gap:7px!important;
    align-items:center!important;
    width:100%!important;
    min-width:0!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-line-actions-row .qty-box{
    width:92px!important;
    height:34px!important;
    display:grid!important;
    grid-template-columns:28px 1fr 28px!important;
    gap:4px!important;
    align-items:center!important;
    justify-items:center!important;
    background:#f1f5f9!important;
    border:1px solid #dbe7f3!important;
    border-radius:11px!important;
    padding:2px!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-line-actions-row .qty-box button,
body:has(.pos-v17) .pos-v17-cart .cart-line-actions-row .mini-danger{
    min-width:28px!important;
    width:28px!important;
    height:28px!important;
    border-radius:9px!important;
    padding:0!important;
    font-size:15px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-line-actions-row .qty-box span{
    font-size:15px!important;
    font-weight:950!important;
    color:#07142c!important;
}
body:has(.pos-v17) .pos-v17-cart .cart-line-actions-row .cart-note-btn{
    width:100%!important;
    min-height:34px!important;
    padding:6px 8px!important;
    border-radius:10px!important;
    font-size:12px!important;
    white-space:nowrap!important;
}
@media(max-width:1500px){
    body:has(.pos-v17) .pos-v17-grid{grid-template-columns:180px minmax(470px,1fr) minmax(390px,430px)!important}
    body:has(.pos-v17) .pos-v17-cart .cart-line-actions-row{grid-template-columns:88px minmax(64px,1fr) 30px!important;gap:6px!important}
    body:has(.pos-v17) .pos-v17-cart .cart-line-actions-row .qty-box{width:88px!important;grid-template-columns:27px 1fr 27px!important}
}
@media(max-width:1200px){
    body:has(.pos-v17) .pos-v17-grid{grid-template-columns:150px minmax(380px,1fr) minmax(350px,390px)!important}
    body:has(.pos-v17) .pos-v17-cart .cart-product-title{font-size:14px!important}
    body:has(.pos-v17) .pos-v17-cart .cart-line-actions-row{grid-template-columns:84px minmax(58px,1fr) 28px!important;gap:5px!important}
    body:has(.pos-v17) .pos-v17-cart .cart-line-actions-row .qty-box{width:84px!important;grid-template-columns:26px 1fr 26px!important}
    body:has(.pos-v17) .pos-v17-cart .cart-line-actions-row .cart-note-btn{font-size:11px!important;padding-inline:5px!important}
}
@media(max-width:900px){
    body:has(.pos-v17) .pos-v17-grid{grid-template-columns:1fr!important;height:auto!important;overflow:visible!important}
    body:has(.pos-v17) .pos-v17-cart{min-height:520px!important;order:3}
}

/* V56 reports / roles / print refinements */
.report-hub-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.report-hub-card{display:flex;flex-direction:column;gap:8px;min-height:145px;border:1px solid #d9e8f7;border-radius:20px;background:#fff;padding:18px;text-decoration:none;color:#0f172a;box-shadow:0 10px 28px rgba(15,23,42,.04)}.report-hub-card:hover{border-color:#0ea5e9;transform:translateY(-2px)}.report-icon{width:48px;height:48px;border-radius:16px;background:#edf7ff;display:grid;place-items:center;font-size:24px}.report-hub-card strong{font-size:18px}.report-hub-card small{color:#64748b;line-height:1.7}.roles-layout{display:grid;grid-template-columns:420px minmax(0,1fr);gap:18px;align-items:start}.role-create-card{position:sticky;top:16px}.roles-perm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}.roles-perm-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));max-height:520px;overflow:auto;padding-left:4px}.role-perm-box{border:1px solid #d9e8f7;border-radius:16px;background:#f8fbff;padding:12px}.role-perm-box strong{display:block;margin-bottom:8px;color:#0f172a}.role-perm-box label{display:flex;align-items:flex-start;gap:8px;padding:6px 0;color:#334155;line-height:1.5}.role-perm-box input{margin-top:4px}.role-panel{padding:0;overflow:hidden}.role-panel summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;background:linear-gradient(90deg,#f8fbff,#fff)}.role-panel summary small{display:block;color:#64748b;margin-top:4px}.role-edit-form{padding:16px 18px}.role-admin-toggle{display:flex;align-items:center;gap:8px;font-weight:800}.role-actions{display:flex;align-items:end;justify-content:flex-end}.role-delete-form{padding:0 18px 16px}.shift-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:12px 0}.shift-stat{background:#f8fbff;border:1px solid #d9e8f7;border-radius:14px;padding:12px}.shift-stat small{display:block;color:#64748b;font-weight:800}.shift-stat strong{display:block;margin-top:6px;font-size:18px;color:#0f172a}.shift-stat.danger{background:#fff1f2;border-color:#fecdd3}.shift-stat.danger strong{color:#be123c}.shift-stat.warn{background:#fff7ed;border-color:#fed7aa}.shift-stat.warn strong{color:#c2410c}.shift-stat.ok{background:#ecfdf5;border-color:#bbf7d0}.shift-stat.ok strong{color:#047857}@media(max-width:1300px){.report-hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.roles-layout{grid-template-columns:1fr}.role-create-card{position:static}.roles-perm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shift-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.report-hub-grid,.roles-perm-grid,.roles-perm-grid.compact{grid-template-columns:1fr}.shift-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{body{background:#fff!important}.sidebar,.topbar,.no-print,.menu-toggle{display:none!important}.app{display:block}.main{margin:0!important;width:100%!important}.content{padding:0!important}.card,.war-header-card{box-shadow:none!important;border:1px solid #d0d7e2!important;page-break-inside:avoid}.data-table th,.data-table td{font-size:11px;padding:6px}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{border:1px solid #d0d7e2}.btn{display:none!important}}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.finance-warning{border-color:#fbbf24!important;background:#fffbeb!important;color:#92400e!important}.finance-ok{border-color:#86efac!important;background:#f0fdf4!important;color:#166534!important}

/* V58 unified report actions */
.report-toolbar{display:flex;gap:8px;align-items:center;justify-content:flex-start;flex-wrap:wrap;margin:0 0 14px;padding:10px;background:#f8fbff;border:1px solid #dbeafe;border-radius:14px}
.report-toolbar .btn{white-space:nowrap}
@media print{.report-toolbar,.no-print{display:none!important}}
