/* Delevo admin — light SaaS dashboard (RTL for Arabic, LTR for English). Builds on ../shared/base.css tokens. */
:root {
  --sb-w: 244px;
  --tb-h: 60px;
  --surface: #FFFFFF;
  --hover: #F6F9F7;
  --ring: 0 0 0 3px rgba(31, 160, 107, .14);
}
body.adm { background: #F5F7F6; font-size: 14px; color: var(--ink); }
.adm .lat { font-family: var(--font-lat); }
.adm h1 { font-size: 22px; font-weight: 700; }
.adm h2 { font-size: 19px; font-weight: 700; }
.adm h3 { font-size: 15px; font-weight: 700; }
.adm h4 { font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.adm .btn { border-radius: 10px; }
.adm .btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.adm .btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.adm .btn-primary { box-shadow: 0 1px 2px rgba(16, 40, 30, .15), inset 0 1px 0 rgba(255,255,255,.14); }
.adm .btn-outline { border: 1px solid var(--line); }
.adm .btn-outline:hover { background: var(--hover); }
.adm .btn-danger:hover { background: #FECACA; }
.adm .btn-dark:hover { background: #22352c; }
.adm .card { border-radius: 14px; border: 1px solid #E6ECE9; box-shadow: 0 1px 2px rgba(16, 40, 30, .04); }
.adm .input, .adm .select, .adm .textarea { height: 38px; border-radius: 9px; border-width: 1px; font-size: 14px; padding: 0 11px; background-color: #fff; }
.adm .textarea { height: auto; min-height: 64px; padding: 9px 11px; }
.adm .input.sm, .adm .select.sm { height: 34px; font-size: 13px; }
.adm .select.xs { height: 30px; font-size: 12.5px; padding: 0 8px; border-radius: 8px; min-width: 120px; }
.adm .input:focus, .adm .select:focus, .adm .textarea:focus { box-shadow: var(--ring); }
.adm .input.big { height: 44px; font-size: 18px; font-weight: 700; }
.adm .input.color { padding: 3px; width: 100%; cursor: pointer; }
.adm .input.upper { text-transform: uppercase; }
.adm .is-bad { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .14) !important; }
.adm .field > span { font-size: 12.5px; margin-bottom: 5px; color: var(--mute); font-weight: 600; }
.adm .select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2366766F' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 10px center; padding-inline-start: 11px; padding-inline-end: 28px; }
[dir="ltr"] .adm .select { background-position: right 10px center; }
.adm .select.xs { padding-inline-start: 8px; }
.adm .switch.sm { transform: scale(.85); }
.adm .chip.xs { height: 22px; padding: 0 8px; font-size: 11.5px; }
.adm .empty { padding: 44px 20px; }
.adm .empty b { display: block; color: var(--ink-2); margin-bottom: 2px; }
.icon-btn.sm { width: 32px; height: 32px; font-size: 14px; }
.icon-btn.xs { width: 26px; height: 26px; font-size: 10px; border-radius: 7px; }
.icon-btn:disabled { opacity: .35; pointer-events: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; flex: none; }
.link { color: var(--brand-d); font-weight: 600; text-align: start; }
.link:hover { text-decoration: underline; }
.nowrap { white-space: nowrap; }
.brand-t { color: var(--brand-d); }
.danger-t { color: var(--danger); }
.warn-t { color: #B45309; }
.vsep { width: 1px; height: 22px; background: var(--line); }
.code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; background: var(--line-2); padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand-l); color: var(--brand-d); font-weight: 700; font-size: 12px; font-family: var(--font-lat); flex: none; }
.thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; background: var(--line-2); }
.thumb.lg { width: 48px; height: 48px; border-radius: 10px; }
.stars { color: #F59E0B; letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.stars i { color: #E2E8E4; font-style: normal; }
.pbar { flex: 1; height: 6px; border-radius: 99px; background: #EDF1EF; overflow: hidden; min-width: 50px; }
.pbar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .4s; }

/* ---------------- shell ---------------- */
.shell { min-height: 100vh; }
.sidebar { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: var(--sb-w); background: #FBFCFB; border-inline-end: 1px solid #E6ECE9; display: flex; flex-direction: column; z-index: 40; }
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 16px 18px; height: var(--tb-h); border-bottom: 1px solid #EEF2EF; }
.sb-brand img { width: 32px; height: 32px; border-radius: 9px; object-fit: contain; }
.sb-brand b { display: block; font-size: 17px; line-height: 1.1; }
.sb-brand small { color: var(--mute); font-size: 11.5px; }
.sb-nav { flex: 1; overflow-y: auto; padding: 10px 10px; }
.sb-group { color: var(--mute-2); font-weight: 700; padding: 14px 10px 6px; letter-spacing: .02em; }
.sb-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: 14px; margin-bottom: 1px; transition: background .12s, color .12s; }
.sb-link svg { color: var(--mute); flex: none; }
.sb-link:hover { background: #EFF4F1; color: var(--ink); }
.sb-link.on { background: var(--brand-l); color: var(--brand-dd); font-weight: 700; }
.sb-link.on svg { color: var(--brand-d); }
.sb-badge { font-size: 11px; font-weight: 700; background: #E9EFEC; color: var(--ink-2); padding: 1px 7px; border-radius: 99px; }
.sb-link.on .sb-badge { background: #fff; color: var(--brand-d); }
.sb-foot { border-top: 1px solid #EEF2EF; padding: 12px 10px 14px; }
.sb-foot-t { color: var(--mute-2); font-weight: 700; padding: 0 10px 6px; }
.sb-app { display: block; padding: 6px 10px; border-radius: 8px; font-size: 13px; color: var(--ink-2); }
.sb-app:hover { background: #EFF4F1; }
.sb-app::after { content: ' ↗'; color: var(--mute-2); font-size: 11px; }
.sb-scrim { display: none; }

.main-col { margin-inline-start: var(--sb-w); min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--tb-h); background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid #E6ECE9; display: flex; align-items: center; gap: 10px; padding: 0 20px; }
.tb-menu { display: none; }
.gsearch { position: relative; width: min(440px, 44vw); }
.gsearch input { width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #F6F8F7; padding-block: 0; padding-inline: 38px 34px; outline: none; font-size: 13.5px; transition: background .15s, box-shadow .15s, border .15s; }
.gsearch input:focus { background: #fff; border-color: var(--brand); box-shadow: var(--ring); }
.gs-ic { position: absolute; top: 11px; inset-inline-start: 12px; color: var(--mute); pointer-events: none; }
.gsearch kbd { position: absolute; top: 9px; inset-inline-end: 9px; font-size: 11px; border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; color: var(--mute); background: #fff; line-height: 18px; }
.gsearch input:focus ~ kbd { display: none; }
.gs-results { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-3); max-height: 420px; overflow-y: auto; padding: 6px; z-index: 50; }
.gs-i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: start; }
.gs-i.on, .gs-i:hover { background: var(--brand-ll); }
.gs-i b { display: block; font-size: 13.5px; }
.gs-i small { color: var(--mute); font-size: 12px; }
.gs-ic { font-size: 16px; }
.gs-i .gs-ic { position: static; }
.gs-empty { padding: 18px; text-align: center; color: var(--mute); font-size: 13px; }
.tb-apps { display: flex; gap: 6px; }
.tb-reset { color: var(--ink-2); }
.lang-sw { flex-wrap: nowrap; }
.lang-sw button { height: 26px; padding: 0 10px; font-family: var(--font-lat); font-size: 12px; letter-spacing: .02em; }
.bell-wrap { position: relative; }
.bell-wrap .badge-dot { top: 2px; inset-inline-end: 0; }
.bell-pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: 380px; max-width: calc(100vw - 24px); box-shadow: var(--sh-3); z-index: 60; overflow: hidden; }
.bp-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.bp-list { max-height: 440px; overflow-y: auto; padding: 6px; }
.bp-item { display: flex; gap: 10px; width: 100%; text-align: start; padding: 9px 10px; border-radius: 9px; align-items: flex-start; }
.bp-item:hover { background: var(--hover); }
.bp-item.unread { background: var(--brand-ll); }
.bp-item.unread b::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-inline-start: 6px; vertical-align: middle; }
.bp-ic { width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; }
.bp-item b { display: block; font-size: 13px; }
.bp-item small { display: block; color: var(--mute); font-size: 12px; }
.bp-item em { font-style: normal; }

.main { padding: 22px 24px 60px; max-width: 1480px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 2px; }
.page-h p { margin-top: 4px; font-size: 13.5px; }

/* ---------------- KPIs & panels ---------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpis-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-l { color: var(--mute); font-size: 12.5px; font-weight: 600; }
.kpi-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--line-2); display: grid; place-items: center; font-size: 15px; }
.kpi-v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-family: var(--font-lat); }
.kpi-v small { font-size: 14px; font-weight: 600; }
.kpi-s { font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 6px; min-height: 18px; }
.kpi-brand { background: linear-gradient(160deg, #F1FAF5, #fff 60%); border-color: #CBEBDA; }
.kpi-brand .kpi-ic { background: var(--brand-l); }
.grid { display: grid; gap: 16px; }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.panel { padding: 16px 18px; }
.panel-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-h p { margin-top: 2px; }
.panel-big { font-size: 20px; font-weight: 700; }
.sub-h { margin-bottom: 10px; }

/* charts */
.chart { width: 100%; height: 220px; display: block; overflow: visible; }
.ch-grid { stroke: #EEF2EF; stroke-width: 1; }
.ch-lbl { font-family: var(--font-lat); font-size: 11px; fill: #94A39C; }
.ch-pt:hover circle:last-of-type { r: 5; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hb-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 44px; align-items: center; gap: 10px; }
.hb-lbl { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.hb-lbl small { font-weight: 500; }
.hb-track { height: 10px; background: #F0F4F2; border-radius: 99px; overflow: hidden; }
.hb-fill { height: 100%; border-radius: 99px; transition: width .5s; }
.hb-val { font-weight: 700; font-size: 13px; text-align: end; }
.donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.dn-c { font-size: 26px; font-weight: 700; fill: var(--ink); }
.dn-s { font-size: 11px; fill: #94A39C; font-family: var(--font); }
.dn-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 160px; flex: 1; }
.dn-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; }

/* pipeline */
.pipe { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.pipe-i { text-align: start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #FBFCFB; display: flex; flex-direction: column; gap: 4px; transition: border .15s, background .15s; }
.pipe-i:hover { border-color: var(--c); background: #fff; }
.pipe-n { font-size: 22px; font-weight: 700; color: var(--c); line-height: 1.1; }
.pipe-l { font-size: 12px; color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe-b { height: 4px; border-radius: 9px; background: #EEF2EF; overflow: hidden; }
.pipe-b i { display: block; height: 100%; background: var(--c); }

/* alerts / feed */
.alerts { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; }
.alert { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); }
.alert b { display: block; font-size: 13px; }
.alert small { display: block; color: var(--mute); font-size: 12px; }
.al-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #fff; flex: none; }
.a-warn { background: #FFFBEB; border-color: #FDE68A; }
.a-info { background: #F0F7FF; border-color: #CFE0FB; }
.a-danger { background: #FEF2F2; border-color: #FECACA; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line-2); }
.feed li:last-child { border-bottom: 0; }
.feed li b { display: block; font-size: 13px; }
.feed li small { display: block; font-size: 12px; }
.feed li.unread b::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-inline-end: 6px; vertical-align: middle; }
.feed-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--line-2); display: grid; place-items: center; flex: none; }
.feed.compact li { padding: 6px 0; }
.feed.compact .feed-ic { width: 26px; height: 26px; font-size: 13px; }

/* ---------------- toolbar, tables ---------------- */
.toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
.toolbar .select { width: auto; min-width: 130px; }
.tb-search { flex: 1 1 220px; max-width: 320px; }
.seg { display: inline-flex; background: #F0F4F2; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { height: 28px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 40, 30, .12); }
.status-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.ss { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ss i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ss b { font-weight: 700; color: var(--mute); }
.ss.on { border-color: var(--c, var(--ink)); box-shadow: inset 0 0 0 1px var(--c, var(--ink)); color: var(--ink); }
.date-nav { display: flex; align-items: center; gap: 6px; }
.date-nav .input { width: 150px; }
.bulk { display: flex; align-items: center; gap: 8px; padding: 10px 14px; flex-wrap: wrap; background: #F1FAF5; border-color: #BFE3D0; position: sticky; top: calc(var(--tb-h) + 8px); z-index: 20; box-shadow: var(--sh-2); }
.bulk .select { width: auto; min-width: 180px; }

.tbl-wrap { overflow: auto; max-height: calc(100vh - 230px); border-radius: 14px; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { position: sticky; top: 0; z-index: 2; background: #F8FAF9; text-align: start; font-size: 12px; font-weight: 700; color: var(--mute); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #F0F3F1; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #FAFCFB; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.sel td { background: #F1FAF5; }
.tbl tr.hl td { background: #FEF9C3 !important; transition: background .6s; }
.tbl tr.row-off td { opacity: .55; }
.tbl tr.row-bad td { background: #FFF8F8; }
.tbl .cb { width: 34px; }
.tbl input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.tbl.plain th { position: static; background: transparent; padding: 8px 6px; }
.tbl.plain td { padding: 8px 6px; }
.meal-cell { min-width: 210px; max-width: 300px; }
.w80 { width: 80px; }
.w120 { width: 120px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { font-size: 10.5px; font-weight: 600; background: #F0F4F2; color: var(--ink-2); padding: 1px 7px; border-radius: 99px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mg { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--brand-d); background: var(--brand-ll); padding: 2px 7px; border-radius: 6px; margin: 1px; }
.mg.low { color: var(--danger); background: #FEF2F2; }
.margin-box { min-height: 38px; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 9px; background: #FBFCFB; display: flex; flex-direction: column; gap: 4px; justify-content: center; font-size: 13px; }

/* dispatch view */
.ops-body { display: flex; flex-direction: column; gap: 14px; }
.dispatch { overflow: hidden; }
.dp-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.dp-h p { margin-top: 2px; }
.dp-prog { display: flex; align-items: center; gap: 8px; width: 170px; }
.dish-sum { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; background: #FBFCFB; border-bottom: 1px solid var(--line-2); }
.dispatch .tbl-wrap { max-height: none; border-radius: 0; }

/* ---------------- drawer ---------------- */
#drawer-root .drawer-ov { position: fixed; inset: 0; background: rgba(20, 35, 28, .28); z-index: 70; animation: fadeIn .2s; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(640px, 100vw); background: #fff; z-index: 71; display: flex; flex-direction: column; box-shadow: 20px 0 60px -20px rgba(16, 40, 30, .3); }
[dir="ltr"] .drawer { box-shadow: -20px 0 60px -20px rgba(16, 40, 30, .3); }
.drawer.anim { animation: drawerIn .26s cubic-bezier(.2, .8, .2, 1); }
#drawer-root.closing .drawer { animation: drawerOut .2s forwards; }
#drawer-root.closing .drawer-ov { animation: fadeOut .2s forwards; }
/* The drawer sits on the inline-end side: left in RTL, right in LTR — slide in from that edge. */
@keyframes drawerIn { from { transform: translateX(-100%); } }
@keyframes drawerOut { to { transform: translateX(-100%); } }
@keyframes drawerInLtr { from { transform: translateX(100%); } }
@keyframes drawerOutLtr { to { transform: translateX(100%); } }
[dir="ltr"] .drawer.anim { animation-name: drawerInLtr; }
[dir="ltr"] #drawer-root.closing .drawer { animation-name: drawerOutLtr; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.drawer-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.drawer-h p { margin-top: 2px; }
.drawer-b { flex: 1; overflow-y: auto; padding: 18px 20px 30px; display: flex; flex-direction: column; gap: 18px; }
.drawer-f { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line-2); background: #FBFCFB; }
.dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.dgrid > div { background: #fff; padding: 10px 12px; }
.dgrid small { display: block; color: var(--mute); font-size: 11.5px; font-weight: 600; }
.dgrid b { font-size: 13.5px; }
.dsec h4 { margin-bottom: 8px; }
.dsec .pbar { margin-top: 6px; }
.price-lines { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.price-lines > div { display: flex; justify-content: space-between; gap: 10px; }
.pl-total { border-top: 1px dashed var(--line); padding-top: 8px; font-size: 14.5px; }
.note-i { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-bottom: 8px; }
.note-i.cust { background: var(--brand-ll); border-color: #CBEBDA; }
.note-i small { display: block; color: var(--mute); font-size: 11px; }
.days { display: flex; flex-direction: column; gap: 8px; }
.day { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; }
.day-today { border-color: #9ED9BD; box-shadow: 0 0 0 3px rgba(31, 160, 107, .08); }
.day-off { background: #FAFAFA; opacity: .7; }
.day-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.day-h b { font-size: 13.5px; }
.ds { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line-2); flex-wrap: wrap; }
.ds:first-of-type { border-top: 0; }
.ds-slot { width: 58px; font-size: 12.5px; color: var(--mute); font-weight: 600; flex: none; }
.ds-meal { display: flex; align-items: center; gap: 8px; min-width: 160px; font-size: 13px; }
.ds-meal .row { flex: 1; min-width: 0; }
.ds-sel { width: 100%; max-width: 100%; flex-basis: 100%; }
.addr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; padding: 6px 0; }
.mini-list { display: flex; flex-direction: column; gap: 6px; }
.mini { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 13px; flex-wrap: wrap; }
.mini:hover { border-color: #9ED9BD; background: var(--brand-ll); }
.olist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.olist li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.olist li:last-child { border-bottom: 0; }
.olist li.cmt { background: #FAFCFB; font-size: 12.5px; color: var(--ink-2); padding-inline-start: 24px; font-style: italic; }

/* toggle chips */
.tchip { position: relative; cursor: pointer; }
.tchip input { position: absolute; opacity: 0; pointer-events: none; }
.tchip span { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: all .12s; user-select: none; }
.tchip:hover span { border-color: #B9C8C0; }
.tchip input:checked + span { background: var(--brand-l); border-color: var(--brand); color: var(--brand-dd); }
.tchip.bad input:checked + span, .tchip input[data-change="cust-allergy"]:checked + span { background: #FEF3C7; border-color: #F59E0B; color: #92400E; }
.tchip input:focus-visible + span { box-shadow: var(--ring); }

/* ---------------- modal ---------------- */
.modal-ov { position: fixed; inset: 0; background: rgba(20, 35, 28, .36); z-index: 90; display: grid; place-items: center; padding: 20px; animation: fadeIn .18s; }
.modal-ov.out { animation: fadeOut .18s forwards; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); background: #fff; border-radius: 16px; box-shadow: var(--sh-3); display: flex; flex-direction: column; animation: modalIn .22s cubic-bezier(.2, .9, .3, 1.1); }
.modal.wide { width: min(920px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.modal-b { padding: 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-f { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line-2); background: #FBFCFB; border-radius: 0 0 16px 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.trio { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px 12px; background: #FCFDFC; }
.trio-l { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; color: var(--ink-2); }
.trio-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trio .field > span { font-size: 11px; }
.sw-row { gap: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.suffix { position: relative; }
.suffix span { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 10px; color: var(--mute); font-size: 12.5px; pointer-events: none; font-family: var(--font-lat); }
.suffix .input { padding-inline-end: 34px; }

/* image picker */
.imgpick { display: flex; gap: 14px; align-items: flex-start; }
.ip-prev { width: 150px; height: 150px; border-radius: 12px; overflow: hidden; background: var(--line-2) repeating-linear-gradient(45deg, transparent 0 8px, rgba(0,0,0,.02) 8px 16px); flex: none; border: 1px solid var(--line-2); }
.ip-prev img { width: 100%; height: 100%; object-fit: cover; }
.ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; margin-top: 10px; max-height: 128px; overflow-y: auto; padding: 2px; }
.ip-i { aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.ip-i img { width: 100%; height: 100%; object-fit: cover; }
.ip-i.on { border-color: var(--brand); box-shadow: var(--ring); }
.ip-i:hover { border-color: #9ED9BD; }

/* ---------------- restaurants ---------------- */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.rcard { overflow: hidden; display: flex; flex-direction: column; border-top: 3px solid var(--rc); }
.rcard.off { background: #FBFBFB; }
.rcard.off .rc-stats, .rcard.off .rc-h h3 { opacity: .6; }
.rc-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.rc-h .avatar { width: 40px; height: 40px; font-size: 14px; border-radius: 11px; }
.rc-off { margin: 0 16px 8px; font-size: 12px; font-weight: 700; color: #92400E; background: #FEF3C7; padding: 5px 10px; border-radius: 8px; }
.rc-contact { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 16px 12px; color: var(--ink-2); }
.rc-contact .ellipsis { max-width: 100%; }
.rc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.rc-stats > div { padding: 10px 14px; border-inline-start: 1px solid var(--line-2); }
.rc-stats > div:nth-child(3n + 1) { border-inline-start: 0; }
.rc-stats > div:nth-child(n + 4) { border-top: 1px solid var(--line-2); }
.rc-stats small { display: block; color: var(--mute); font-size: 11px; font-weight: 600; }
.rc-stats b { font-size: 14px; }
.rc-f { display: flex; align-items: center; gap: 6px; padding: 10px 14px; margin-top: auto; }

/* ---------------- plans ---------------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.plan-card { border-top: 3px solid var(--pc); display: flex; flex-direction: column; gap: 12px; }
.plan-card .panel-h { margin-bottom: 0; }
.plan-ic { width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--pc) 12%, white); display: grid; place-items: center; font-size: 20px; }
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: start; }
.mx-h th { position: static; background: #F1FAF5; color: var(--ink); font-size: 13px; text-align: start !important; border-top: 1px solid var(--line); }

/* ---------------- marketing ---------------- */
.bn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.bn-item { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #fff; }
.bn-item.off .bn-prev { filter: grayscale(.8); opacity: .6; }
.bn-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
.bn-prev { position: relative; height: 140px; background: var(--bc); overflow: hidden; border-radius: 0; }
.bn-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn-shade { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bc) 30%, transparent) 0%, color-mix(in srgb, var(--bc) 92%, transparent) 70%); }
.bn-prev.ltr .bn-shade { background: linear-gradient(270deg, color-mix(in srgb, var(--bc) 30%, transparent) 0%, color-mix(in srgb, var(--bc) 92%, transparent) 70%); }
.bn-txt { position: absolute; inset: 0; padding: 16px 18px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; max-width: 78%; }
.bn-txt[dir="rtl"] { right: 0; left: auto; }
.bn-txt[dir="ltr"] { left: 0; right: auto; font-family: var(--font-lat); }
.bn-txt b { font-size: 17px; line-height: 1.25; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.bn-txt small { font-size: 12.5px; opacity: .92; margin-top: 3px; }
.bn-edit { display: flex; gap: 16px; align-items: flex-start; }
.bn-live { width: 290px; flex: none; position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; }
.bn-live .bn-prev { border-radius: 14px; }
.bc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.bc-phone { background: linear-gradient(180deg, #E9F3EE, #F5F8F6); border-radius: 22px; padding: 18px 14px; border: 1px solid var(--line-2); }
.bcp-notif { display: flex; gap: 10px; background: rgba(255,255,255,.95); border-radius: 16px; padding: 10px 12px; box-shadow: var(--sh-2); align-items: flex-start; }
.bcp-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-l); display: grid; place-items: center; flex: none; }
.bcp-notif b { display: block; font-size: 13px; }
.bcp-notif small { display: block; color: var(--mute); font-size: 12px; }

/* ---------------- reviews ---------------- */
.rev-big { text-align: center; padding: 6px 0 14px; }
.rev-big .num { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.rev-big .stars { font-size: 18px; }
.rev-dist { display: flex; flex-direction: column; gap: 6px; }
.rd-row { display: grid; grid-template-columns: 30px 1fr 34px; gap: 8px; align-items: center; font-size: 12.5px; }
.rd-row b { text-align: end; }

/* ---------------- responsive ---------------- */
@media (max-width: 1280px) {
  .pipe { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tb-apps { display: none; }
}
@media (max-width: 1100px) {
  .g-2-1, .g-1-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .sidebar { transform: translateX(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); box-shadow: none; width: 270px; }
  [dir="ltr"] .sidebar { transform: translateX(-100%); }
  [dir="ltr"] body.nav-open .sidebar { transform: none; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--sh-3); }
  body.nav-open .sb-scrim { display: block; position: fixed; inset: 0; background: rgba(20, 35, 28, .3); z-index: 35; }
  .main-col { margin-inline-start: 0; }
  .tb-menu { display: inline-grid; }
  .tb-reset span { display: none; }
  .g-1-1 { grid-template-columns: minmax(0, 1fr); }
  .main { padding: 16px 16px 50px; }
  .bc-grid { grid-template-columns: minmax(0, 1fr); }
  .bn-edit { flex-direction: column; }
  .bn-live { width: 100%; position: static; }
}
@media (max-width: 700px) {
  .topbar { padding: 0 12px; gap: 8px; }
  .gsearch { width: auto; flex: 1; }
  .gsearch kbd { display: none; }
  .topbar > .grow { display: none; }
  .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2, .grid3, .trio-g { grid-template-columns: minmax(0, 1fr); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .imgpick { flex-direction: column; }
  .ip-prev { width: 100%; height: 160px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-v { font-size: 20px; }
  .rgrid { grid-template-columns: minmax(0, 1fr); }
  .tb-search { max-width: none; }
  .toolbar .select { flex: 1 1 140px; }
  .modal-ov { padding: 0; place-items: end stretch; }
  .modal { max-height: 92vh; border-radius: 16px 16px 0 0; width: 100% !important; }
  .page-h h1 { font-size: 19px; }
}
