/* v3.20.15 - the owners' panel on the clean dark POS skin: navy surfaces, one slate hairline, no glow, 44 px touch targets, nothing wider than the screen.
   Scoped to #ownerPanelModal; the panel's own tokens are re-pointed, its markup and behaviour are untouched. */
:root:root #ownerPanelModal.dpp-viz { --surface: #0b1324; --surface-2: #0f1a2e; --ink: #f1f5f9; --ink-2: #b6c2d4; --ink-3: #8393ab; --grid: #16223a; --line: #1e2b45; --s1: #38bdf8; background: #0b1324; background-image: none; overflow: hidden; }
:root:root #ownerPanelModal [data-role="body"] { overflow-x: hidden; overflow-y: auto; padding: 12px 12px calc(28px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; }
:root:root #ownerPanelModal [data-role="body"] > *, :root:root #ownerPanelModal .v-sec > * { min-width: 0; max-width: 100%; }
:root:root #ownerPanelModal .v-card, :root:root #ownerPanelModal .v-tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: none; overflow-x: auto; overflow-y: hidden; }
:root:root #ownerPanelModal .v-tile { padding: 10px 12px; overflow: hidden; }
:root:root #ownerPanelModal .v-h, :root:root #ownerPanelModal .v-sub, :root:root #ownerPanelModal .v-k { white-space: normal; overflow-wrap: break-word; }   /* v3.20.29: `anywhere` let a flex child shrink to one letter («حصص الشريكين» as a column) */
:root:root #ownerPanelModal .v-h { font-size: 13px; line-height: 1.6; }
:root:root #ownerPanelModal .v-sub { font-size: 11px; line-height: 1.7; }
:root:root #ownerPanelModal .v-hero { text-shadow: none; overflow-wrap: anywhere; }
:root:root #ownerPanelModal .v-head { border-bottom: 1px solid var(--line); }
:root:root #ownerPanelModal table { min-width: 100%; }
/* the header, the section tabs, the bottom bar */
:root:root #ownerPanelModal > div:first-child { background: var(--surface); border-bottom: 1px solid var(--line); min-height: 56px; padding: 6px 12px; }
:root:root #ownerPanelModal [data-role="tabs"] { border-bottom: 1px solid var(--line); background: var(--surface); }
:root:root #ownerPanelModal .v-tab { min-height: 46px; padding: 6px 14px; text-shadow: none; }
:root:root #ownerPanelModal .v-tab[aria-selected="true"]::after { background: var(--s1); box-shadow: none; }
:root:root #ownerPanelModal .v-nav { background: var(--surface); border-top: 1px solid var(--line); }
:root:root #ownerPanelModal .v-nav button { min-height: 56px; }
/* controls: one hairline, flat fills, no halo */
:root:root #ownerPanelModal .v-chip { min-height: 44px; padding: 4px 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); box-shadow: none; }
:root:root #ownerPanelModal .v-chip[aria-pressed="true"] { background: #14213a; color: #f1f5f9; border-color: #38bdf8; box-shadow: none; }
:root:root #ownerPanelModal .v-btn { min-height: 46px; padding: 8px 16px; border-radius: 14px; background: #14304a; color: #e0f2fe; border: 1px solid #1d4a6b; box-shadow: none; }
:root:root #ownerPanelModal .v-btn.alt { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
:root:root #ownerPanelModal .v-btn.danger { background: var(--surface-2); color: #fecdd3; border: 1px solid #5b2230; }
:root:root #ownerPanelModal .v-in { min-height: 46px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
:root:root #ownerPanelModal .v-in:focus { border-color: #38bdf8; box-shadow: none; background: var(--surface); }
:root:root #ownerPanelModal label.v-row { min-height: 46px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
:root:root #ownerPanelModal label.v-row:has(input:checked) { background: #12233d; border-color: #2b4a73; }
:root:root #ownerPanelModal input[type="checkbox"], :root:root #ownerPanelModal input[type="radio"] { width: 22px; height: 22px; }
/* the utility-class cards the tabs mount (Tailwind markup) lose their coloured frames and halos */
:root:root #ownerPanelModal [class*="border-amber-"], :root:root #ownerPanelModal [class*="border-emerald-"], :root:root #ownerPanelModal [class*="border-cyan-"], :root:root #ownerPanelModal [class*="border-sky-"], :root:root #ownerPanelModal [class*="border-rose-"], :root:root #ownerPanelModal [class*="border-yellow-"], :root:root #ownerPanelModal [class*="border-blue-"] { border-color: var(--line); }
:root:root #ownerPanelModal [class*="shadow-"], :root:root #ownerPanelModal button, :root:root #ownerPanelModal .glass { box-shadow: none; }
:root:root #ownerPanelModal [class*="bg-gradient-to"] { background-image: none; }
:root:root #ownerPanelModal button:not(.v-nav button), :root:root #ownerPanelModal select { min-height: 44px; }
:root:root #ownerPanelModal > div:first-child .v-btn { min-height: 44px !important; }
:root:root #ownerPanelModal button[class*="bg-gradient-to"], :root:root #ownerPanelModal button[class*="bg-amber-"], :root:root #ownerPanelModal button[class*="bg-cyan-"]:not(.v-nav button) { background: #14304a; background-image: none; color: #e0f2fe; border: 1px solid #1d4a6b; }

/* ---- v3.20.16: the financial performance screen (#tab-finance): money language, one hairline, no glow ---- */
:root:root #tab-finance .glass { background: var(--surface-2, #0f1a2e); border: 1px solid #1e2b45 !important; box-shadow: none !important; }
:root:root #tab-finance .fin-time-btn { padding-inline: 4px; font-size: 11.5px; white-space: normal; line-height: 1.2; min-height: 44px !important; border: 1px solid #1e2b45 !important; background: #0f1a2e; color: #94a3b8; box-shadow: none !important; }
:root:root #tab-finance .fin-time-btn[class*="bg-cyan-500"] { background: #14304a; color: #e0f2fe; border-color: #38bdf8; }
:root:root #tab-finance select { min-height: 44px; }
:root:root #tab-finance .glass.fin-print-btn { background: #14304a; border-color: #1d4a6b !important; }
:root:root #tab-finance .fin-fault-head, :root:root #tab-finance .fin-fault-row { display: grid; grid-template-columns: minmax(64px, 1fr) 84px 84px 38px; gap: 8px; align-items: center; }
:root:root #tab-finance .fin-fault-head { padding: 0 10px 6px; border-bottom: 1px solid #1e2b45; font-size: 10.5px; font-weight: 900; color: #8393ab; }
:root:root #tab-finance .fin-fault-head span:not(:first-child), :root:root #tab-finance .fin-fault-num { text-align: start; }
:root:root #tab-finance .fin-fault-row { min-height: 44px; padding: 6px 10px; border-radius: 12px; background: #0b1324; border: 1px solid #16223a; }
:root:root #tab-finance .fin-fault-name { min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 900; overflow-wrap: anywhere; }
:root:root #tab-finance .fin-fault-num { font: 900 11px ui-monospace, monospace; white-space: nowrap; }
:root:root #tab-finance .fin-fault-num.is-profit { color: #34d399; }
:root:root #tab-finance .fin-fault-num.is-cost { color: #cbd5e1; }
:root:root #tab-finance .fin-fault-num.is-count { color: #94a3b8; }
:root:root #tab-finance #finHoucineNet, :root:root #tab-finance #finOussamaNet { font-size: 22px; white-space: nowrap; }
:root:root #tab-finance .grid.grid-cols-2.gap-3 > div { padding: 16px 12px; border-radius: 16px; background: #0b1324; }

/* ---- v3.20.17: the cash closing screen (#tab-closing) and the closings archive sheet: flat navy cards, one hairline, no coloured frames, iPhone width without sideways scroll ---- */
:root:root #adminApp #tab-closing { padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px)) !important; overflow-x: hidden; }
:root:root #tab-closing, :root:root #tab-closing * { min-width: 0; }
:root:root #tab-closing .glass, :root:root #tab-closing [class*="rounded-2xl"], :root:root #tab-closing [class*="rounded-xl"][class*="border"] { background: #0f1a2e; border: 1px solid #1e2b45 !important; box-shadow: none !important; background-image: none; }
:root:root #tab-closing [data-kpi], :root:root #tab-closing [data-partner], :root:root #tab-closing [data-capital] { background: #0b1324; border: 1px solid #1e2b45 !important; border-radius: 14px; padding: 10px 12px; }
:root:root #tab-closing [data-kpi] > span:first-child, :root:root #tab-closing [data-partner] .text-white { white-space: normal; overflow-wrap: anywhere; }
:root:root #tab-closing [data-kpi] > span:nth-child(2) { font-size: 20px; }
:root:root #tab-closing #fcKpiDeck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:root:root #tab-closing #fcPartnerDeck { grid-template-columns: 1fr; gap: 10px; }
:root:root #tab-closing #fcPartnerDeck > * span.font-mono, :root:root #tab-closing #fcPartnerDeck > * div.font-mono { white-space: nowrap; }
:root:root #adminApp #tab-closing button, :root:root #adminApp #tab-closing input, :root:root #adminApp #tab-closing select { min-height: 44px !important; height: auto; }
:root:root #tab-closing input { background: #0b1324; border: 1px solid #1e2b45; border-radius: 14px; box-shadow: none; }
:root:root #adminApp #tab-closing button[class*="bg-gradient-to"] { background: #14304a; background-image: none; color: #e0f2fe; border: 1px solid #1d4a6b !important; min-height: 52px !important; font-size: 13px; }
:root:root #tab-closing button[class*="border-cyan-"], :root:root #tab-closing button[class*="border-amber-"], :root:root #tab-closing button[class*="border-rose-"], :root:root #tab-closing button[class*="border-emerald-"] { border-color: #1e2b45 !important; background: #0f1a2e; }
:root:root #tab-closing table { width: 100%; min-width: 540px; table-layout: auto; }   /* v3.20.29: 6 columns do not fit 350 px: the wrapper scrolls, the device name keeps its words */
:root:root #tab-closing [data-closing-devices-body] { overflow-x: auto; }
:root:root #tab-closing td, :root:root #tab-closing th { padding: 8px 6px; }
:root:root #tab-closing td.max-w-\[9rem\] { min-width: 7rem; max-width: 9rem; white-space: normal; overflow-wrap: break-word; }
:root:root #tab-closing td, :root:root #tab-closing th { min-width: 3.4rem; }
:root:root #tab-closing #fcOtherModesInfo { background: #0f1a2e; border: 1px solid #1e2b45; color: #cbd5e1; }
:root:root #closingArchiveModal [data-closing-card], :root:root [data-closing-card] { background: #0f1a2e; border: 1px solid #1e2b45; border-radius: 16px; box-shadow: none; }
:root:root [data-closing-card] .grid > div { background: #0b1324; border: 1px solid #16223a; border-radius: 12px; padding: 8px 10px; }
:root:root [data-closing-card] .grid > div > div:first-child { font-size: 10.5px; }
:root:root [data-closing-card] .grid > div > .font-mono { font-size: 14px; overflow: visible; text-overflow: clip; white-space: nowrap; }
:root:root [data-closing-card] button { min-height: 44px; border: 1px solid #1e2b45; background: #0b1324; box-shadow: none; }

/* ---- v3.20.18: losses / expenses / sealed deletions (#tab-losses): one segmented control, flat navy cards, one hairline, money first ---- */
:root:root #adminApp #tab-losses { padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px)) !important; overflow-x: hidden; }
:root:root #adminApp #tab-losses, :root:root #adminApp #tab-losses * { min-width: 0; }
:root:root #adminApp #tab-losses .ls-hub { background: #0f1a2e; border: 1px solid #1e2b45; border-radius: 18px; padding: 12px; }
:root:root #adminApp #tab-losses .ls-hub > div:first-child { border-bottom: 1px solid #1e2b45 !important; }
:root:root #adminApp #tab-losses .ls-hub-ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #14304a; color: #7dd3fc; border: 1px solid #1d4a6b; }
:root:root #adminApp #tab-losses .ls-segs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px; border-radius: 16px; background: #0b1324; border: 1px solid #1e2b45; }
:root:root #adminApp #tab-losses .ls-seg { min-height: 52px !important; padding: 6px 4px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: #94a3b8; font-size: 11.5px; font-weight: 900; line-height: 1.3; flex-wrap: wrap; text-align: center; box-shadow: none; }
:root:root #adminApp #tab-losses .ls-seg.is-on { background: #14304a; color: #e0f2fe; border-color: #1d4a6b; }
:root:root #adminApp #tab-losses .ls-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #16223a; color: #bae6fd; font: 900 10px ui-monospace, monospace; }
:root:root #adminApp #tab-losses .ls-pill { min-height: 44px !important; padding: 6px 14px; border-radius: 14px; background: #0b1324; border: 1px solid #1e2b45; color: #94a3b8; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; gap: 6px; }
:root:root #adminApp #tab-losses .ls-pill.is-on { background: #14304a; color: #e0f2fe; border-color: #1d4a6b; }
:root:root #adminApp #tab-losses .glass, :root:root #adminApp #tab-losses [data-card="loss"], :root:root #adminApp #tab-losses .ls-card { background: #0f1a2e; border: 1px solid #1e2b45 !important; box-shadow: none !important; border-radius: 16px; background-image: none; }
:root:root #adminApp #tab-losses [data-card="loss"] { padding: 12px; }
:root:root #adminApp #tab-losses input, :root:root #adminApp #tab-losses select, :root:root #adminApp #tab-losses .ls-in { min-height: 48px !important; background: #0b1324; border: 1px solid #1e2b45; border-radius: 14px; box-shadow: none; color: #f1f5f9; padding: 0 12px; width: 100%; }
:root:root #adminApp #tab-losses input:focus, :root:root #adminApp #tab-losses select:focus { border-color: #38bdf8; outline: none; }
:root:root #adminApp #tab-losses .ls-form { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
:root:root #adminApp #tab-losses .ls-form-title { font-size: 13px; font-weight: 900; color: #e2e8f0; display: flex; align-items: center; gap: 6px; }
:root:root #adminApp #tab-losses .ls-money { position: relative; }
:root:root #adminApp #tab-losses .ls-money input { padding-inline-end: 52px; font-family: ui-monospace, monospace; font-weight: 900; font-size: 16px; direction: rtl; text-align: right; }
:root:root #adminApp #tab-losses .ls-money span { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); font-weight: 900; color: #7dd3fc; pointer-events: none; }
:root:root #adminApp #tab-losses .ls-cta { min-height: 52px !important; width: 100%; border-radius: 14px; background: #14304a; color: #e0f2fe; border: 1px solid #1d4a6b; font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: none; }
:root:root #adminApp #tab-losses .ls-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
:root:root #adminApp #tab-losses .ls-title { font-size: 13.5px; font-weight: 900; color: #f1f5f9; overflow-wrap: anywhere; line-height: 1.5; }
:root:root #adminApp #tab-losses .ls-kind { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: #94a3b8; margin-inline-end: 6px; }
:root:root #adminApp #tab-losses .ls-amount { flex: none; font: 900 15px ui-monospace, monospace; color: #7dd3fc; white-space: nowrap; }
:root:root #adminApp #tab-losses #subContainerDeletionLedger .ls-amount { color: #fda4af; }
:root:root #adminApp #tab-losses .ls-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 8px; font-size: 11px; color: #94a3b8; }
:root:root #adminApp #tab-losses .ls-meta b { color: #e2e8f0; }
:root:root #adminApp #tab-losses .ls-date { font-family: ui-monospace, monospace; }
:root:root #adminApp #tab-losses .ls-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: #0b1324; border: 1px solid #16223a; font-size: 12px; color: #94a3b8; font-weight: 800; }
:root:root #adminApp #tab-losses .ls-split b { font-family: ui-monospace, monospace; white-space: nowrap; }
:root:root #adminApp #tab-losses .ls-split .is-h { color: #38bdf8; } :root:root #adminApp #tab-losses .ls-split .is-o { color: #fbbf24; }
:root:root #adminApp #tab-losses .ls-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
:root:root #adminApp #tab-losses .ls-actions button, :root:root #adminApp #tab-losses .ls-link { min-height: 44px !important; border-radius: 12px; background: #0b1324; border: 1px solid #1e2b45; color: #cbd5e1; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; }
:root:root #adminApp #tab-losses .ls-actions .is-del { color: #fda4af; }
:root:root #adminApp #tab-losses .ls-reason { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: #0b1324; border: 1px solid #16223a; color: #e2e8f0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
:root:root #adminApp #tab-losses .ls-reason span { color: #94a3b8; font-weight: 900; margin-inline-end: 6px; }
:root:root #adminApp #tab-losses .ls-lockbadge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: #0f1a2e; border: 1px solid #1e2b45; color: #cbd5e1; font-size: 12px; font-weight: 900; }
:root:root #adminApp #tab-losses .ls-empty { padding: 28px 16px; text-align: center; border-radius: 16px; background: #0f1a2e; border: 1px dashed #1e2b45; color: #8393ab; font-size: 12.5px; font-weight: 800; }
:root:root #adminApp #tab-losses [data-card="loss"] button, :root:root #adminApp #tab-losses [data-card="loss"] [class*="bg-red-"], :root:root #adminApp #tab-losses [data-card="loss"] [class*="bg-amber-"] { box-shadow: none; }
:root:root #adminApp #tab-losses [data-card="loss"] button { min-height: 44px !important; }
:root:root #adminApp #tab-losses [data-card="loss"] [class*="border-red-"], :root:root #adminApp #tab-losses [data-card="loss"] [class*="border-amber-"] { border-color: #1e2b45; }
:root:root #adminApp #tab-losses [data-card="loss"] button[class*="bg-red-600"] { background: #14304a; color: #e0f2fe; border: 1px solid #1d4a6b; }
