@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");
:root{
  --brand-900:#0B3B37;--brand-700:#0F766E;--brand-500:#14B8A6;--brand-50:#E9F7F5;
  --ink-900:#0F172A;--ink-700:#334155;--ink-500:#64748B;--ink-400:#94A3B8;
  --line:#E2E8F0;--line-soft:#EEF2F6;--bg:#F5F7FA;--surface:#FFFFFF;
  --ok:#059669;--ok-bg:#ECFDF5;--warn:#B45309;--warn-bg:#FFFBEB;--bad:#B91C1C;--bad-bg:#FEF2F2;
  --info:#1D4ED8;--info-bg:#EFF6FF;--mute-bg:#F1F5F9;
  --r-lg:18px;--r-md:14px;--r-sm:10px;
  --sh-2:0 10px 24px rgba(15,23,42,.18);
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:"IBM Plex Sans Arabic",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;background:#DDE4EC;color:var(--ink-900);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit;color:inherit}

/* الإطار: ملء الشاشة على الهاتف، وإطار هاتف على الشاشات الأكبر */
.stage{min-height:100%;height:100%;display:flex;align-items:center;justify-content:center}
.phone{position:relative;width:100%;height:100%;height:100dvh;background:var(--bg);display:flex;flex-direction:column;overflow:hidden}
@media (min-width:520px){
  .stage{padding:32px 16px;height:auto;min-height:100%}
  .phone{width:390px;height:844px;border:10px solid #111827;border-radius:44px;box-shadow:0 30px 60px rgba(15,23,42,.25)}
}

/* الشريط العلوي */
.appbar{background:var(--surface);padding:14px 16px 12px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px}
.appbar:empty{display:none}
.who{display:flex;align-items:center;gap:10px;min-width:0}
.who b{display:block;font-size:15px}.who small{display:block;color:var(--ink-500);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.avatar{width:40px;height:40px;border-radius:50%;background:#CDEBE6;color:var(--brand-900);display:grid;place-items:center;font-weight:700;flex-shrink:0}
.avatar.lg{width:56px;height:56px;font-size:20px}
.pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;border:0;cursor:pointer}
.pill i{width:8px;height:8px;border-radius:50%;background:currentColor}
.p-ok{background:var(--ok-bg);color:var(--ok)}.p-bad{background:#FFF1E6;color:#9A3412}.p-info{background:var(--info-bg);color:var(--info)}

/* الأشرطة التنبيهية */
.banners{display:flex;flex-direction:column;gap:8px;padding:0 16px}
.banners:empty{display:none}
.banner{margin-top:10px;padding:12px 14px;border-radius:var(--r-md);display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.45}
.banner b{display:block;font-size:14px;margin-bottom:2px}
.banner .btn-mini{margin-inline-start:auto;align-self:center;background:#fff;border:1px solid currentColor;border-radius:999px;padding:6px 12px;font-weight:600;font-size:12px;color:inherit;white-space:nowrap;cursor:pointer}
.b-offline{background:#FFF7ED;color:#9A3412;border:1px solid #FED7AA}
.b-wait{background:var(--info-bg);color:#1E40AF;border:1px solid #BFDBFE}
.b-fail{background:var(--bad-bg);color:#991B1B;border:1px solid #FECACA}
.banner-flash{margin:12px 16px 0;padding:12px 14px;border-radius:var(--r-md);display:flex;gap:10px;align-items:flex-start;font-size:13.5px;line-height:1.45}
.banner-flash.ok{background:var(--ok-bg);color:#065F46;border:1px solid #A7F3D0}
.banner-flash.err{background:var(--bad-bg);color:#991B1B;border:1px solid #FECACA}

/* منطقة المحتوى */
.screen{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:12px 16px 16px}
.screen.is-order{overflow:hidden;padding:0;gap:0}
.search-wrap{padding:12px 16px 6px}
.search{height:50px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);display:flex;align-items:center;gap:10px;padding:0 14px;color:var(--ink-400)}
.search input{flex:1;border:0;outline:0;background:transparent;font-size:15px;min-width:0;color:var(--ink-900)}
.body-list{flex:1;min-height:0;overflow-y:auto;padding:6px 16px 10px;display:flex;flex-direction:column;gap:10px}
.cart-h{display:flex;justify-content:space-between;gap:8px;font-size:13px;color:var(--ink-500);padding:4px 2px}

/* بنود الأوردر والنتائج */
.item{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:12px;display:flex;gap:10px;align-items:center}
.thumb{width:46px;height:46px;border-radius:12px;background:var(--brand-50);color:var(--brand-700);display:grid;place-items:center;font-weight:700;font-size:13px;flex-shrink:0}
.thumb.comp{background:#EEF2FF;color:#4338CA}
.info{flex:1;min-width:0}
.name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.meta{font-size:12.5px;color:var(--ink-500)}
.tag-line{display:inline-block;margin-top:4px;padding:2px 8px;border-radius:999px;font-size:11.5px;font-weight:600}
.t-ok{background:var(--ok-bg);color:var(--ok)}.t-bad{background:var(--bad-bg);color:var(--bad)}
.stepper{display:flex;align-items:center;background:var(--bg);border:1px solid var(--line);border-radius:12px;height:42px}
.stepper button{width:40px;height:42px;border:0;background:none;font-size:20px;color:var(--ink-700);cursor:pointer}
.stepper span{min-width:26px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}
.price{font-weight:700;font-variant-numeric:tabular-nums;font-size:14px;min-width:66px;text-align:left}
.add-btn{width:44px;height:44px;border-radius:12px;border:0;background:var(--brand-700);display:grid;place-items:center;cursor:pointer;flex-shrink:0}
.add-btn:disabled{background:#CBD5E1;cursor:not-allowed}
.scan-hint{font-size:12px;color:var(--ink-500)}

/* الدفع أسفل الشاشة */
.bottom{background:var(--surface);border-top:1px solid var(--line);padding:12px 16px 14px;display:flex;flex-direction:column;gap:10px;box-shadow:0 -8px 24px rgba(15,23,42,.05);max-height:62%;overflow-y:auto}
.segment{display:grid;grid-template-columns:repeat(3,1fr);background:var(--bg);border:1px solid var(--line);border-radius:var(--r-md);padding:4px}
.segment button{border:0;background:none;padding:9px 0;border-radius:10px;color:var(--ink-500);font-weight:600;font-size:14px;cursor:pointer}
.segment button.on{background:var(--surface);color:var(--brand-700);box-shadow:0 1px 3px rgba(15,23,42,.1)}
.totals{display:flex;justify-content:space-between;align-items:flex-end}
.totals small{color:var(--ink-500);font-size:13px}
.totals .big{font-size:26px;font-weight:700;font-variant-numeric:tabular-nums}
.sec{display:flex;gap:10px}

/* النماذج */
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field>label{font-size:12.5px;color:var(--ink-500);font-weight:500}
.field input,.field select{height:44px;border:1px solid #D0D7E2;border-radius:12px;padding:0 12px;background:#fff;outline:0;min-width:0;width:100%}
.field input:disabled{background:var(--mute-bg);color:var(--ink-500)}
.field input:focus,.field select:focus{border-color:var(--brand-500);box-shadow:0 0 0 3px rgba(20,184,166,.18)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.form-stack{display:flex;flex-direction:column;gap:12px}

/* الأزرار */
.cta{height:54px;border:0;border-radius:16px;background:var(--brand-700);color:#fff;font-weight:700;font-size:16px;cursor:pointer;flex:2;box-shadow:0 6px 16px rgba(15,118,110,.3)}
.cta:disabled{background:#CBD5E1;box-shadow:none;cursor:not-allowed}
.cta.sm{height:46px;font-size:15px;flex:none;width:100%}
.cta.danger{background:var(--bad);box-shadow:none}
.danger-ghost{height:50px;flex:1;border-radius:var(--r-md);border:1px solid #FECACA;background:var(--surface);color:var(--bad);font-weight:600;cursor:pointer}
.danger-ghost.wide{width:100%;flex:none}
.ghost{height:50px;flex:1;border-radius:var(--r-md);border:1px solid var(--line);background:var(--surface);color:var(--ink-700);font-weight:600;cursor:pointer}
.link{background:none;border:0;color:var(--brand-700);font-weight:600;padding:0;cursor:pointer;text-align:right}

/* الصفحات والبطاقات */
.page-head h1{margin:0;font-size:22px;letter-spacing:-.2px}
.page-head h2{margin:0;font-size:16px}
.page-head p{margin:4px 0 0;color:var(--ink-500);font-size:13px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:14px;display:flex;flex-direction:column;gap:10px}
.card h3{margin:0;font-size:15px}
.list{display:flex;flex-direction:column;gap:8px}
.inv-row{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:12px;display:flex;gap:10px;align-items:center;text-align:right;cursor:pointer}
.inv-row.static{cursor:default}
.inv-row .grow{flex:1;min-width:0}
.inv-row .end{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.inv-row .end b{font-variant-numeric:tabular-nums}
.row-line{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line-soft);font-size:14px}
.row-line:last-child{border-bottom:0}
.row-line span{min-width:0}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:10px;display:flex;flex-direction:column;gap:4px}
.kpi.wide{grid-column:1/-1}
.kpi small{color:var(--ink-500);font-size:12px}
.kpi b{font-size:15px;font-variant-numeric:tabular-nums}
.ok{color:var(--ok)}.warn{color:var(--warn)}.bad{color:var(--bad)}
.hint{font-size:12.5px;color:var(--ink-500);margin:0}
.cell-sub{color:var(--ink-500);font-size:12px}
.mono{font-variant-numeric:tabular-nums}

/* الشارات */
.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.b-ok{background:var(--ok-bg);color:var(--ok)}.b-warn{background:var(--warn-bg);color:var(--warn)}
.b-bad{background:var(--bad-bg);color:var(--bad)}.b-info{background:var(--info-bg);color:var(--info)}
.b-mute{background:var(--mute-bg);color:var(--ink-500)}

/* الحالات الفارغة */
.empty{padding:28px 16px;text-align:center;color:var(--ink-500);display:flex;flex-direction:column;align-items:center;gap:8px}
.empty .circle{width:76px;height:76px;border-radius:50%;background:var(--brand-50);color:var(--brand-700);display:grid;place-items:center}
.empty b{color:var(--ink-900);font-size:16px}

/* شريط التنقل السفلي */
.tabbar{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:var(--surface);border-top:1px solid var(--line);padding:6px 6px 14px}
.tabbar:empty{display:none}
.tabbar button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 0;color:var(--ink-500);font-size:12px;font-weight:500;cursor:pointer}
.tabbar button.on{color:var(--brand-700);font-weight:700}
.tabbar button.on svg{stroke:var(--brand-700)}

/* تسجيل الدخول */
.login{flex:1;overflow-y:auto;padding:40px 22px;display:flex;flex-direction:column;gap:18px;justify-content:center}
.brand-mark{width:64px;height:64px;border-radius:18px;background:linear-gradient(135deg,#14B8A6,#0F766E);color:#fff;display:grid;place-items:center;font-size:28px;font-weight:700;margin:0 auto}
.login h1{margin:0;text-align:center;font-size:22px}
.login>p{margin:0;text-align:center;color:var(--ink-500)}
.login-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:18px;display:flex;flex-direction:column;gap:14px}
.roles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.role{border:1px solid var(--line);background:var(--surface);border-radius:var(--r-md);padding:14px;display:flex;flex-direction:column;gap:2px;align-items:flex-start;font-weight:700;cursor:pointer}
.role small{font-weight:400;color:var(--ink-500)}
.role.on{border:2px solid var(--brand-700);background:var(--brand-50)}
.lbl{font-size:12.5px;color:var(--ink-500);font-weight:500}
.pin{height:52px;font-size:22px;letter-spacing:8px;text-align:center}

/* قائمة الصلاحيات */
.perms{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;font-size:14px}
.perms li{display:flex;gap:8px;align-items:center}

/* الإشعارات المؤقتة */
#toast{position:absolute;top:0;left:0;right:0;pointer-events:none;z-index:20}
#toast .toast{margin:12px 16px 0;background:var(--ink-900);color:#fff;border-radius:var(--r-md);padding:12px 14px;display:flex;gap:10px;align-items:center;font-size:13.5px;box-shadow:var(--sh-2)}
#toast .toast.err{background:var(--bad)}

/* ----- إضافات: التبويبات الفرعية، المرتجعات، الجرد ----- */
.grow{flex:1;min-width:0}
.subtabs{display:flex;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:4px;overflow-x:auto}
.subtabs button{flex:1;border:0;background:none;padding:8px 6px;border-radius:10px;color:var(--ink-500);font-weight:600;font-size:13px;white-space:nowrap;cursor:pointer}
.subtabs button.on{background:var(--brand-50);color:var(--brand-700)}
.link-row{width:100%;background:none;border:0;text-align:right;cursor:pointer}
.sub-h{font-size:13px;font-weight:700;color:var(--ink-700);border-top:1px dashed var(--line);padding-top:10px}
.rline{display:grid;grid-template-columns:1fr 84px;gap:6px 10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line-soft)}
.rline .chk{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--ink-500)}
.rline input[type=number]{height:40px;border:1px solid #D0D7E2;border-radius:10px;padding:0 8px;width:100%}
.preview{background:var(--mute-bg);border-radius:var(--r-md);padding:4px 12px}
.count-item{padding:10px 0;border-bottom:1px solid var(--line-soft);display:flex;flex-direction:column;gap:6px}
.ci-top{display:flex;align-items:center;gap:10px}
.ci-input{width:110px;height:42px;border:1px solid #D0D7E2;border-radius:10px;padding:0 10px;text-align:center}
.ci-bot{display:grid;grid-template-columns:1fr 130px;gap:8px}
.ci-bot select,.ci-bot input{height:38px;border:1px solid #D0D7E2;border-radius:10px;padding:0 8px;font-size:13px;min-width:0;width:100%}
.count-item .meta{font-size:12.5px;color:var(--ink-500)}

/* ----- نوافذ البيع المتعددة، الكاميرا، صف البحث ----- */
.search-wrap{display:flex;gap:8px;align-items:center}
.search-wrap .search{flex:1;min-width:0}
.search-wrap .search input{min-width:0}
.scan{width:50px;height:50px;border:0;border-radius:var(--r-md);background:var(--brand-700);display:grid;place-items:center;cursor:pointer;flex-shrink:0;box-shadow:0 4px 12px rgba(15,118,110,.3)}
.ord-bar{display:flex;gap:8px;padding:10px 16px 0;overflow-x:auto;align-items:stretch}
.ord-chip{display:flex;align-items:stretch;flex-shrink:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.ord-chip.on{border-color:var(--brand-500);box-shadow:0 0 0 2px rgba(20,184,166,.18)}
.ord-main{border:0;background:none;padding:7px 10px;text-align:right;cursor:pointer;display:flex;flex-direction:column;gap:1px;min-width:92px}
.ord-main b{font-size:13px}
.ord-main small{font-size:11px;color:var(--ink-500);white-space:nowrap}
.ord-chip.on .ord-main b{color:var(--brand-700)}
.ord-x{border:0;border-inline-start:1px solid var(--line);background:none;width:26px;font-size:16px;color:var(--ink-500);cursor:pointer}
.ord-add{flex-shrink:0;border:1px dashed var(--brand-500);background:var(--brand-50);color:var(--brand-700);border-radius:12px;padding:0 12px;display:flex;align-items:center;gap:6px;font-weight:600;font-size:13px;cursor:pointer;white-space:nowrap}
.cam-modal{position:absolute;inset:0;z-index:40;background:#0B1220;display:flex;flex-direction:column;color:#fff;padding:14px 16px 16px;gap:12px}
.cam-top{display:flex;justify-content:space-between;align-items:center}
.cam-close{width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:22px;cursor:pointer}
.cam-view{position:relative;flex:1;min-height:0;border-radius:var(--r-lg);overflow:hidden;background:#000}
.cam-view video{width:100%;height:100%;object-fit:cover}
.cam-frame{position:absolute;inset:18% 12%;border:2px solid var(--brand-500);border-radius:14px;box-shadow:0 0 0 999px rgba(0,0,0,.35)}
.cam-msg{margin:0;font-size:13px;color:#CBD5E1;text-align:center;min-height:20px}
.cam-manual{display:flex;gap:8px}
.cam-manual input{flex:1;height:44px;border-radius:12px;border:1px solid #334155;background:#111827;color:#fff;padding:0 12px;min-width:0}
.cam-manual .cta{flex:none;width:90px;height:44px;font-size:14px}

.ord-add{position:sticky;inset-inline-start:0;z-index:1}
.ord-bar{align-items:center}

/* دليل العلاجات: تصنيفات أفقية وبطاقات بشبكة عمودين */
.cat-row{display:flex;gap:8px;overflow-x:auto;padding:8px 0;scrollbar-width:none}
.cat-row::-webkit-scrollbar{display:none}
.cat-chip{flex:none;border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:12px;padding:8px 12px;font-size:13px;white-space:nowrap;cursor:pointer}
.cat-chip.on{background:var(--brand-700);color:#fff;border-color:var(--brand-700)}
.med-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:2px 0 8px}
.med-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:10px;display:flex;flex-direction:column;gap:4px;min-width:0}
.med-card.off{opacity:.6}
.med-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
.med-img{width:40px;height:40px;object-fit:cover;border-radius:10px}
.med-ph{width:40px;height:40px;border-radius:10px;background:var(--brand-50);color:var(--brand-700);display:grid;place-items:center;font-weight:700;font-size:12px;flex-shrink:0}
.med-ph.comp{background:#EEF2FF;color:#4338CA}
.med-badge{font-size:11px;font-weight:700;color:var(--brand-700);background:var(--brand-50);border:1px solid #99f6e4;border-radius:8px;padding:3px 8px;white-space:nowrap}
.med-name{font-weight:700;font-size:14px;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.med-sub{font-size:12px;color:#64748b}
.med-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:4px}
.med-price{color:var(--brand-700);font-weight:700;font-size:14px;white-space:nowrap}

/* شاشة البيع: الأعلى مضغوط (نقد/آجل، الزبون، الإجمالي)، والأسفل زر الإنهاء فقط */
.top-ctl{display:flex;align-items:center;gap:6px;padding:6px 12px;flex-wrap:wrap;margin:0}
.top-ctl .segment{display:flex;width:auto;grid-template-columns:none;padding:2px;border-radius:10px;flex:none}
.top-ctl .segment button{padding:5px 10px;font-size:12px;border-radius:8px}
.top-ctl select,.top-ctl input{height:34px;font-size:13px;padding:4px 8px;border-radius:10px;min-width:0;border:1px solid var(--line);background:var(--surface)}
.top-ctl select{flex:1 1 110px}
.top-ctl input[name=paid]{width:84px}
.top-ctl input[name=count],.top-ctl input[name=months]{width:64px}
.top-ctl input[name=firstDue]{width:130px}
.mini-total{font-weight:700;font-size:15px;white-space:nowrap;margin-inline-start:auto}
.mini-cancel{border:0;background:none;color:var(--bad);font-size:12px;font-weight:600;cursor:pointer;padding:4px}
.bottom-bar{padding:8px 12px 10px;border-top:1px solid var(--line);background:var(--surface)}
.bottom-bar .cta{width:100%;height:48px;flex:none;box-shadow:none}

/* ===== شاشة البيع: أصناف بتصنيفات وبطاقات على اليمين، والفاتورة على اليسار ===== */
.pos{display:flex;gap:12px;flex:1;min-height:0;padding:10px 12px;overflow:hidden}
.pos-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;overflow:hidden}
.pos-main .ord-bar{padding:0}
.pos-main .search-wrap{padding:0}
.pos-catalog{flex:1;min-height:0;overflow-y:auto;padding:0 0 8px;display:flex;flex-direction:column;gap:8px}
.cat-scroll{display:flex;gap:8px;overflow-x:auto;padding:2px 0 4px;scrollbar-width:none}
.cat-scroll::-webkit-scrollbar{display:none}
.cat-tile{flex:0 0 84px;display:flex;flex-direction:column;align-items:center;gap:3px;background:var(--surface);border:1.5px solid var(--line);border-radius:14px;padding:10px 6px;cursor:pointer;color:#334155}
.cat-tile b{font-size:13px}
.cat-tile small{font-size:11px;color:var(--ink-500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.cat-tile.on{border-color:var(--brand-700);background:var(--brand-50);color:var(--brand-700)}
.grid-head{display:flex;justify-content:space-between;font-size:13px;color:var(--ink-500)}
.pc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px}
.pc{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:8px;display:flex;flex-direction:column;gap:3px;min-width:0}
.pc.off{opacity:.55}
.pc-img,.pc-ph{width:100%;aspect-ratio:1/1;border-radius:10px;object-fit:cover}
.pc-ph{background:var(--brand-50);color:var(--brand-700);display:grid;place-items:center}
.pc-ph.comp{background:#EEF2FF;color:#4338CA}
.pc-name{font-size:12px;font-weight:700;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:2px}
.pc-form{font-size:11px;color:var(--ink-500)}
.pc-price{font-size:13px;font-weight:700;color:var(--brand-700)}
.pc-add{margin-top:auto;height:30px;border:0;border-radius:9px;background:var(--brand-700);color:#fff;font-size:12px;font-weight:600;cursor:pointer}
.pc-out{font-size:11px;color:var(--bad);margin-top:auto}
.checkout{width:clamp(200px,36%,300px);display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;min-height:0}
.co-head{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line);font-weight:700}
.co-lines{flex:1;min-height:0;overflow-y:auto;padding:6px 8px;display:flex;flex-direction:column;gap:6px}
.cl{border:1px solid var(--line);border-radius:12px;padding:6px 8px;display:grid;grid-template-columns:auto 1fr auto;gap:4px 6px;align-items:center}
.cl-x{width:22px;height:22px;border:0;border-radius:50%;background:#fee2e2;color:#b91c1c;cursor:pointer;line-height:1}
.cl-main{min-width:0}
.cl-name{font-size:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cl-meta{font-size:11px;color:var(--ink-500)}
.cl-sum{font-size:12px;color:var(--brand-700);font-weight:700;white-space:nowrap}
.cl-qty{grid-column:1/-1;display:flex;gap:4px;align-items:center}
.cl-qty button{height:28px;min-width:28px;border:1px solid var(--line);background:var(--surface);border-radius:8px;cursor:pointer;font-size:14px}
.cl-qty input{width:56px;height:28px;text-align:center;border:1px solid var(--line);border-radius:8px;font-size:13px;min-width:0}
.cl-qty .cl-apply{flex:1;font-size:11px;background:var(--brand-50);color:var(--brand-700);border-color:var(--brand-700);font-weight:600}
.cl-empty{color:var(--ink-500);font-size:12px;text-align:center;padding:20px 8px}
.co-form{padding:6px 8px;display:flex;flex-direction:column;gap:6px;border-top:1px solid var(--line)}
.co-form .segment{display:grid;grid-template-columns:1fr 1fr;padding:2px}
.co-form select,.co-form input{height:32px;font-size:12px;padding:2px 6px;border:1px solid var(--line);border-radius:9px;background:var(--surface);min-width:0;width:100%}
.co-totals{padding:6px 12px;font-size:12px;display:flex;flex-direction:column;gap:3px;border-top:1px solid var(--line)}
.co-totals div{display:flex;justify-content:space-between}
.co-total{font-size:15px;font-weight:700}
@media (max-width:640px){
  .pos{flex-direction:column}
  .checkout{width:auto;max-height:44%}
  .pc-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}
}

/* ===== تجاوب شاشة البيع مع كل الأجهزة، والشكل قريب من التصميم المرسل ===== */
.pos{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:12px 14px;flex:1;min-height:0;overflow:visible;align-items:start}
.pos-main{display:flex;flex-direction:column;gap:12px;min-width:0}
.pos-catalog{overflow:visible;padding:0}
.cat-tile{flex:0 0 96px;border-radius:18px;padding:12px 8px;gap:4px;background:#fff}
.cat-tile svg{color:var(--brand-700)}
.cat-tile.on{box-shadow:0 0 0 1px var(--brand-700) inset}
.pc-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px}
.pc{padding:10px;border-radius:18px;gap:6px;border:1px solid #e5e7eb;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.pc-img,.pc-ph{aspect-ratio:1/1;background:#f8fafc;border:1px solid #eef2f7}
.pc-img{object-fit:contain;padding:6px;box-sizing:border-box}
.pc-name{font-size:13px;min-height:34px}
.pc-price{font-size:14px;font-weight:700;color:var(--brand-700)}
.pc-add{height:34px;border-radius:12px;font-size:13px}
.checkout{width:auto;max-height:none;border-radius:20px;box-shadow:0 1px 3px rgba(15,23,42,.05)}
.co-head{font-size:15px}
.co-lines{min-height:120px;max-height:52vh}
.co-form{padding:10px 12px;gap:8px}
.co-form .segment{display:flex;flex-direction:column;gap:6px;background:none;border:0;padding:0}
.co-form .segment button{width:100%;height:42px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink-700,#334155);font-size:14px;font-weight:600;box-shadow:none}
.co-form .segment button.on{border-color:var(--brand-700);background:var(--brand-50);color:var(--brand-700);box-shadow:none}
.co-totals{padding:10px 12px;font-size:13px}
.co-totals .co-total{font-size:17px}
.bottom-bar{padding:10px 12px 12px}
.bottom-bar .cta{height:54px;border-radius:18px;font-size:15px}
@media (min-width:900px){
  .pos{grid-template-columns:minmax(0,1fr) 340px;height:100%}
  .pos-main{height:100%;overflow:hidden}
  .pos-catalog{flex:1;min-height:0;overflow-y:auto}
  .checkout{height:100%}
  .co-lines{max-height:none}
}
@media (min-width:600px) and (max-width:899px){
  .pos{grid-template-columns:minmax(0,1fr) 300px;height:100%}
  .pos-main{height:100%;overflow:hidden}
  .pos-catalog{flex:1;min-height:0;overflow-y:auto}
  .checkout{height:100%}
  .co-lines{max-height:none}
}
@media (max-width:599px){
  .pos{padding:10px}
  .pos-catalog{max-height:48vh;overflow-y:auto}
  .pc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .co-form .segment{flex-direction:row}
  .co-form .segment button{height:40px}
}

/* ===== مطابقة تصميم جمناي: أصناف يسار، فاتورة يمين، تجاوب مع كل الأجهزة ===== */
.pos{display:grid;grid-template-columns:minmax(0,1fr) clamp(170px,30%,250px);gap:10px;padding:10px;height:100%;min-height:0;overflow:hidden;align-items:stretch;background:#f4f6f8}
.pos-main{display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0;overflow:hidden}
.pos-top{display:flex;gap:8px;align-items:center}
.pos-top .search{flex:1;min-width:0;height:42px;border-radius:14px;padding:0 10px 0 12px;background:#fff}
.pos-top .search input{flex:1;min-width:0;border:0;background:none;font-size:14px;outline:none}
.pos-top .scan{width:30px;height:30px;border:0;background:none;color:var(--brand-700);cursor:pointer;display:grid;place-items:center;padding:0}
.pos-new{height:42px;border:0;border-radius:14px;background:var(--brand-700);color:#fff;font-size:13px;font-weight:700;padding:0 12px;white-space:nowrap;cursor:pointer}
.pos-main .ord-bar{padding:0;gap:6px}
.pos-catalog{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:0 2px 6px 0}
.grid-head{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700;color:#334155}
.grid-head span:last-child{font-weight:600;color:var(--brand-700)}
.cat-scroll{display:flex;gap:6px;overflow-x:auto;padding:2px 0 4px;scrollbar-width:none}
.cat-scroll::-webkit-scrollbar{display:none}
.cat-tile{flex:0 0 74px;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:1px solid #d9dee5;border-radius:14px;padding:8px 4px;cursor:pointer;color:var(--brand-700)}
.cat-tile b{font-size:12px;color:#1f2937}
.cat-tile small{font-size:10px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.cat-tile.on{background:#e6f5f2;border-color:var(--brand-700);box-shadow:0 0 0 1px var(--brand-700) inset}
.pc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;align-items:start}
.pc{background:#fff;border:1px solid #e3e8ee;border-radius:14px;padding:6px;display:flex;flex-direction:column;gap:3px;min-width:0;height:auto;box-sizing:border-box}
.pc.off{opacity:.55}
.pc-img,.pc-ph{display:block;width:100%;height:84px;border-radius:10px;box-sizing:border-box;flex:none}
.pc-img{object-fit:contain;background:#f8fafc}
.pc-ph{background:#e6f5f2;color:var(--brand-700);display:grid;place-items:center}
.pc-ph.comp{background:#EEF2FF;color:#4338CA}
.pc-name{font-size:12px;font-weight:700;line-height:1.3;color:#111827;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:31px}
.pc-form{font-size:11px;color:#64748b}
.pc-price{font-size:12px;font-weight:700;color:#111827}
.pc-qty{display:flex;align-items:center;gap:4px;margin-top:2px;background:#f1f3f5;border-radius:10px;padding:2px}
.pc-qty span{flex:1;text-align:center;font-size:13px;font-weight:700}
.pc-qty button{width:26px;height:26px;border:0;border-radius:8px;background:var(--brand-700);color:#fff;font-size:15px;font-weight:700;cursor:pointer;padding:0;line-height:1}
.pc-qty button:first-child{background:#fff;color:#334155;border:1px solid #d9dee5}
.pc-out{font-size:11px;color:#b91c1c;margin-top:2px}
.checkout{display:flex;flex-direction:column;background:#fff;border:1px solid #e3e8ee;border-radius:18px;overflow:hidden;min-height:0;min-width:0}
.co-head{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid #eef1f4;font-weight:700;font-size:14px}
.mini-cancel{border:0;background:none;color:#b91c1c;font-size:12px;font-weight:600;cursor:pointer;padding:2px}
.co-lines{flex:1;min-height:90px;overflow-y:auto;padding:6px 8px;display:flex;flex-direction:column;gap:6px}
.cl{border-bottom:1px solid #eef1f4;padding:6px 2px 8px;display:flex;flex-direction:column;gap:4px}
.cl-top{display:flex;align-items:center;gap:6px;min-width:0}
.cl-x{width:20px;height:20px;flex:none;border:0;border-radius:50%;background:#f1f3f5;color:#475569;cursor:pointer;line-height:1;padding:0;font-size:13px}
.cl-name{font-size:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.cl-qty{display:flex;align-items:center;gap:4px}
.cl-qty button{height:26px;min-width:26px;border:1px solid #d9dee5;background:#fff;border-radius:8px;cursor:pointer;font-size:14px;padding:0}
.cl-qty input{width:48px;height:26px;text-align:center;border:1px solid #d9dee5;border-radius:8px;font-size:12px;min-width:0;padding:0}
.cl-apply{height:24px;border:1px solid var(--brand-700);background:#e6f5f2;color:var(--brand-700);border-radius:8px;font-size:11px;font-weight:600;cursor:pointer}
.cl-bottom{display:flex;justify-content:space-between;align-items:center;gap:4px}
.cl-meta{font-size:11px;color:#64748b}
.cl-sum{font-size:12px;font-weight:700;color:var(--brand-700);background:#e6f5f2;border-radius:8px;padding:2px 6px;white-space:nowrap}
.cl-empty{color:#64748b;font-size:12px;text-align:center;padding:16px 8px}
.co-form{padding:8px;display:flex;flex-direction:column;gap:6px;border-top:1px solid #eef1f4}
.pay-opt{display:flex;align-items:center;justify-content:space-between;width:100%;height:38px;border:1px solid #d9dee5;border-radius:12px;background:#fff;padding:0 10px;font-size:13px;font-weight:600;color:#334155;cursor:pointer}
.pay-opt .sw{width:30px;height:16px;border-radius:999px;background:#cbd5e1;position:relative;flex:none}
.pay-opt .sw::after{content:"";position:absolute;top:2px;inset-inline-start:2px;width:12px;height:12px;border-radius:50%;background:#fff;transition:inset-inline-start .15s}
.pay-opt.on{border-color:var(--brand-700);background:#e6f5f2;color:var(--brand-700)}
.pay-opt.on .sw{background:var(--brand-700)}
.pay-opt.on .sw::after{inset-inline-start:16px}
.pay-opt:disabled{opacity:.5;cursor:not-allowed}
.pay-opt small{font-size:10px;color:#64748b;font-weight:500}
.co-form select,.co-form input{height:32px;font-size:12px;padding:2px 8px;border:1px solid #d9dee5;border-radius:10px;background:#fff;min-width:0;width:100%}
.co-totals{padding:8px 12px;font-size:12px;display:flex;flex-direction:column;gap:3px;border-top:1px solid #eef1f4}
.co-totals div{display:flex;justify-content:space-between;color:#334155}
.co-totals .co-total{font-size:14px;font-weight:800;color:#111827}
.bottom-bar{padding:8px;border-top:1px solid #eef1f4}
.bottom-bar .cta{width:100%;height:50px;border-radius:16px;font-size:13px;font-weight:700;line-height:1.2;box-shadow:none}
@media (max-width:420px){
  .pos{grid-template-columns:minmax(0,1fr) 150px;gap:8px;padding:8px}
  .pc-grid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr))}
  .pc-img,.pc-ph{height:70px}
  .pos-new{padding:0 8px;font-size:12px}
}
@media (min-width:900px){
  .pos{grid-template-columns:minmax(0,1fr) 300px;padding:14px;gap:14px}
  .pc-grid{grid-template-columns:repeat(auto-fill,minmax(124px,1fr))}
  .pc-img,.pc-ph{height:100px}
}

/* ===== شاشة البيع قابلة للتمرير كاملة: لا قصّ ولا تراكب ===== */
.screen.is-order{overflow-y:auto;overflow-x:hidden;display:block;-webkit-overflow-scrolling:touch}
.pos{height:auto;min-height:0;overflow:visible;align-items:start}
.pos-main{overflow:visible;height:auto}
.pos-catalog{flex:none;overflow:visible;padding-bottom:4px}
.checkout{position:sticky;top:8px;align-self:start;max-height:calc(100vh - 16px);overflow:hidden}
.co-lines{flex:none;min-height:0;max-height:none;overflow:visible}
@media (max-width:420px){
  .checkout{position:static;max-height:none}
}

/* ===== مطابقة تصميم الملف المرسل (Gemini) ===== */
.screen.is-order{overflow-y:auto;overflow-x:hidden;display:block}
.pos{display:grid;grid-template-columns:minmax(0,1fr) clamp(240px,32%,340px);gap:14px;padding:12px;height:auto;align-items:start;background:#f1f5f9}
.pos-main{display:flex;flex-direction:column;gap:10px;min-width:0;overflow:visible}
.pos-catalog{flex:none;overflow:visible;display:flex;flex-direction:column;gap:10px}
.pos-top .search{background:#fff;border:1px solid #e2e8f0;border-radius:16px;height:46px;flex:1}
.pos-new{height:46px;border-radius:16px;font-size:14px;padding:0 16px;box-shadow:0 4px 12px rgba(15,118,110,.25)}
.grid-head{font-size:14px;font-weight:800;color:#1e293b}
.grid-head span:last-child{font-weight:600;color:#475569;font-size:12px}
.cat-scroll{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:10px;gap:8px}
.cat-tile{flex:0 0 auto;min-width:78px;flex-direction:column;align-items:center;gap:6px;border-radius:14px;border:1px solid transparent;background:transparent;padding:8px 6px;color:#334155}
.cat-tile b{font-size:12px;font-weight:700;color:inherit}
.cat-tile:hover{background:#f8fafc}
.cat-tile.on{background:var(--brand-700);color:#fff;box-shadow:0 6px 14px rgba(15,118,110,.25)}
.cat-ic{width:36px;height:36px;border-radius:999px;background:#f1f5f9;display:grid;place-items:center;color:var(--brand-700)}
.cat-tile.on .cat-ic{background:rgba(255,255,255,.2);color:#fff}
.pc-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.pc{border-radius:20px;padding:10px;gap:4px;border:1px solid #e2e8f0;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.pc-media{position:relative}
.pc-img,.pc-ph{height:120px;aspect-ratio:auto;border-radius:14px;background:#f8fafc}
.pc-badge{position:absolute;top:6px;right:6px;background:rgba(255,255,255,.95);border:1px solid #e2e8f0;border-radius:8px;padding:2px 6px;font-size:10px;font-weight:800;color:#475569}
.pc-name{font-size:13px;font-weight:800;color:#0f172a;min-height:36px}
.pc-form{font-size:11px;color:#64748b}
.pc-price{font-size:14px;font-weight:800;color:#0f172a}
.pc-qty{background:#f1f5f9;border-radius:12px;padding:3px;margin-top:4px}
.pc-qty button{width:32px;height:32px;border-radius:10px;font-size:16px}
.pc-qty button:first-child{background:#fff;color:#334155;border:1px solid #e2e8f0}
.pc-qty span{font-size:14px}
.pc-out{font-size:12px;font-weight:700}
.checkout{border-radius:22px;border:1px solid #e2e8f0;box-shadow:0 4px 16px rgba(15,23,42,.06);position:sticky;top:8px;max-height:none;overflow:visible}
.co-head{padding:12px 14px;border-bottom:1px solid #f1f5f9;font-size:15px}
.co-title{display:inline-flex;align-items:center;gap:6px}
.mini-cancel{color:#e11d48;font-size:12px}
.co-lines{flex:none;min-height:220px;max-height:420px;overflow-y:auto;padding:10px;gap:10px;background:#fff}
.cl-empty{min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#64748b;text-align:center;gap:6px}
.cl-empty p{font-size:14px;font-weight:700;color:#475569;margin:0}
.cl-empty small{font-size:12px}
.cl-empty-ico{opacity:.35}
.cl2{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:10px;display:flex;flex-direction:column;gap:8px}
.cl2-row{display:flex;align-items:center;gap:8px}
.cl2-x{width:26px;height:26px;flex:none;border:0;border-radius:999px;background:#fff;color:#64748b;border:1px solid #e2e8f0;cursor:pointer;font-size:14px;padding:0;line-height:1}
.cl2-info{flex:1;min-width:0}
.cl2-name{font-size:13px;font-weight:800;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cl2-meta{font-size:11px;color:#64748b}
.cl2-step{display:flex;flex-direction:column;align-items:center;gap:3px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:3px;flex:none}
.cl2-step button{width:28px;height:24px;border:0;background:#f1f5f9;border-radius:8px;cursor:pointer;font-size:14px;font-weight:700;padding:0;color:#334155}
.cl2-step button:first-child{background:var(--brand-700);color:#fff}
.cl2-step input{width:44px;height:24px;text-align:center;border:0;font-size:13px;font-weight:800;padding:0;background:transparent}
.cl2-row2{display:flex;align-items:center;justify-content:space-between;gap:8px}
.cl2-apply{height:26px;border:1px dashed var(--brand-700);background:#fff;color:var(--brand-700);border-radius:8px;font-size:11px;font-weight:700;padding:0 8px;cursor:pointer}
.cl2-sum{font-size:13px;font-weight:800;color:#0f172a;white-space:nowrap}
.co-totals{background:#f8fafc;border-top:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9;padding:10px 14px;font-size:13px;gap:4px}
.co-totals .co-total{font-size:18px;font-weight:900;color:#0f172a;padding-top:4px}
.co-form{padding:12px 14px;gap:10px;border-top:0}
.co-lbl{font-size:12px;font-weight:700;color:#64748b;margin:0}
.pay-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pay-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:64px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;color:#334155;font-size:12px;font-weight:700;cursor:pointer;padding:4px}
.pay-card small{font-size:9px;color:#94a3b8;font-weight:600}
.pay-card.on{border-color:var(--brand-700);background:#ecfdf5;color:var(--brand-700);box-shadow:0 0 0 1px var(--brand-700) inset}
.pay-card:disabled{opacity:.5;cursor:not-allowed}
.co-form select,.co-form input{height:38px;border-radius:12px;border:1px solid #e2e8f0;font-size:13px}
.bottom-bar{padding:12px 14px 14px;border-top:0}
.bottom-bar .cta{height:54px;border-radius:18px;font-size:14px;display:flex;align-items:center;justify-content:center;gap:8px}
@media (max-width:640px){
  .pos{grid-template-columns:minmax(0,1fr);gap:12px;padding:10px}
  .checkout{position:static}
  .pc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pc-img,.pc-ph{height:104px}
}
@media (min-width:641px) and (max-width:1023px){
  .pc-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
}

/* ===== إصلاح التراكب: كل قسم يأخذ ارتفاعه الطبيعي ولا ينكمش ===== */
.pos-main{height:auto;overflow:visible;flex:none}
.pos-catalog,.pos-catalog>*{flex:0 0 auto;min-height:auto;overflow:visible}
.cat-scroll{flex:0 0 auto;display:flex;flex-wrap:nowrap;height:auto;min-height:max-content;overflow-x:auto;overflow-y:visible}
.cat-tile{flex:0 0 auto;flex-shrink:0}
.pc-grid{flex:0 0 auto;height:auto}
.grid-head{flex:0 0 auto}
.pc{flex-shrink:0}

/* الجوال: الفاتورة تأتي بعد الأصناف ولا تطفو فوقها أثناء التمرير */
@media (max-width:640px){
  .checkout{position:static !important;top:auto;max-height:none !important;overflow:visible !important}
}

/* إلغاء ارتفاع أقصى قديم كان يقصّ الأصناف ويجعلها تتراكب مع الفاتورة */
.pos-catalog{max-height:none !important;overflow:visible !important;height:auto !important}
.pos-main{max-height:none !important}

/* الإطار الموحّد: على أي شاشة تبقى الأصناف والفاتورة جنبًا إلى جنب ضمن الإطار، وعلى الهاتف الفعلي تنزل الفاتورة تحت الأصناف */
.pos{grid-template-columns:minmax(0,1fr) minmax(150px,38%)}
@media (min-width:900px){ .pos{grid-template-columns:minmax(0,1fr) minmax(150px,38%)} }

/* ===== الترتيب الجديد: الزبون في الفاتورة، المحادثة بجانب الحالة، إضافة زبون عند الآجل ===== */
.appbar-end{display:inline-flex;align-items:center;gap:4px}
.co-cust{font-weight:600;color:var(--muted,#64748b);font-size:12px}
.cust-add{display:flex;gap:6px;margin-top:6px}
.cust-add input{flex:1;min-width:0;border:1px solid #cbd5e1;border-radius:10px;padding:8px 10px;font:inherit;font-size:13px}
.cust-add button{border:0;border-radius:10px;padding:0 12px;background:#1f6f5c;color:#fff;font:600 13px system-ui;cursor:pointer}

/* ===== التنبيهات (الكاشير) ===== */
.bell{position:relative;border:0;background:none;padding:6px;cursor:pointer;color:inherit}
.bell-n{position:absolute;top:0;inset-inline-end:-2px;min-width:16px;height:16px;border-radius:999px;background:#dc2626;color:#fff;font-size:10px;line-height:16px;text-align:center;padding:0 4px}
.aw-overlay{position:fixed;inset:0;background:rgba(15,23,42,.45);display:none;align-items:center;justify-content:center;z-index:1000;padding:12px}
.aw-overlay.on{display:flex}
.aw-box{background:#fff;color:#0f172a;border-radius:16px;width:min(560px,100%);max-height:86vh;display:flex;flex-direction:column;overflow:hidden}
.aw-top{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid #e5e7eb}
.aw-body{overflow:auto;padding:4px 14px 14px}
.aw-sec{font-size:14px;margin:12px 0 6px}
.aw-t{width:100%;border-collapse:collapse;font-size:13px}
.aw-t td{padding:6px 4px;border-bottom:1px solid #f1f5f9}
