/* Dolceva admin — the same frame as the Souqna dashboard (dark side menu, white cards, sales stage), in Dolceva wine. */
@font-face { font-family: 'Fustat'; src: url('/fonts/fustat-lat.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fustat'; src: url('/fonts/fustat-ar.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #f7f4f3; --sheet: #fff; --wash: #f3eeec; --ink: #171112; --muted: #645a59; --rule: #e5dddb; --field: #d0c5c3;
  --brand: #6b1a22; --brand-deep: #2c0a0e; --brand-soft: #f8e9e9;
  --warn: #c2410c; --warn-soft: #ffe9dd; --ok: #12764a; --ok-soft: #dcf5e8; --danger: #b42318; --danger-soft: #fde7e4;
  --ui: 'Fustat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 15.5px/1.5 var(--ui); -webkit-font-smoothing: antialiased; caret-color: var(--brand); }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir='rtl'] svg.flip { transform: scaleX(-1); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boot { padding: 60px 20px; text-align: center; color: var(--muted); }
.num { font-variant-numeric: lining-nums; }
.cap { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.code { font-weight: 700; font-variant-numeric: lining-nums; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------- buttons, fields, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none;
  box-shadow: 0 1px 2px rgb(44 10 14 / .05); transition: background-color .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--field); background: var(--wash); text-decoration: none; }
.btn-primary { border-color: color-mix(in srgb, var(--brand-deep) 70%, transparent); background: linear-gradient(180deg, #7c222b, var(--brand)); color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 8px 18px -10px rgb(44 10 14 / .7); }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-danger { border-color: rgb(180 35 24 / .35); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: rgb(180 35 24 / .5); }
.btn-quiet { border-color: transparent; background: transparent; box-shadow: none; }
.btn-quiet:hover { background: var(--wash); border-color: transparent; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--rule); background: var(--sheet); }
.icon-btn:hover { background: var(--wash); }
.icon-btn[disabled] { opacity: .35; cursor: default; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; }
.hint { color: var(--muted); font-size: 13.5px; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--field); border-radius: 14px; background: var(--sheet); font-size: 16px; font-weight: 500; }
textarea.input { min-height: 84px; resize: vertical; }
.input:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input[readonly] { background: var(--wash); color: var(--muted); }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.check-row input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.err { color: var(--danger); font-size: 14px; font-weight: 600; min-height: 1.3em; }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.stack { display: grid; gap: 14px; }

.search { display: flex; gap: 8px; }
.search .box { position: relative; flex: 1 1 auto; min-width: 0; }
.search .box svg { position: absolute; inset-inline-start: 14px; top: 50%; margin-top: -9px; color: var(--muted); }
.search .box .input { padding-inline-start: 42px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--sheet);
  font-size: 15px; font-weight: 500; white-space: nowrap; transition: border-color .15s, background-color .15s; }
.chip:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--rule)); }
.chip[aria-pressed='true'], .chip[aria-current='true'] { border-color: var(--brand); background: var(--brand); color: #fff; font-weight: 600; }
.chip b { font-weight: 700; opacity: .7; }
.chip .dot { width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid var(--field); display: inline-grid; place-items: center; }
.chip[aria-pressed='true'] .dot { border-color: #fff; background: #fff; color: var(--brand); }
.chip .dot svg { width: 13px; height: 13px; stroke-width: 3; visibility: hidden; }
.chip[aria-pressed='true'] .dot svg { visibility: visible; }
/* two-way switch (7 days / 30 days) */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--wash); border: 1px solid var(--rule); }
.seg button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.seg button[aria-pressed='true'] { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px rgb(44 10 14 / .8); }
.stage .seg { background: rgb(255 255 255 / .92); border-color: transparent; color: var(--ink); }

/* ---------- cards ---------- */
.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: 20px; }
.pad { padding: 20px; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.card-head a { font-size: 14px; font-weight: 600; white-space: nowrap; }
.empty { padding: 26px 20px; color: var(--muted); text-align: center; }
.stamp { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.4; white-space: nowrap; color: var(--muted); background: var(--wash); }
.stamp-new { color: var(--warn); background: var(--warn-soft); }
.stamp-progress { color: var(--brand); background: var(--brand-soft); }
.stamp-ok { color: var(--ok); background: var(--ok-soft); }
.stamp-bad { color: var(--danger); background: var(--danger-soft); }
.rows > * { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px solid var(--rule); }
.rows > *:first-child { border-top: 0; }

/* ---------- the frame ---------- */
.shell { display: flex; min-height: 100dvh; flex-direction: column; }
.side { color: #fff; background-color: var(--brand-deep);
  background-image: radial-gradient(140% 50% at 20% 0%, rgb(190 70 82 / .45), transparent 62%), radial-gradient(120% 40% at 80% 100%, rgb(150 46 70 / .3), transparent 60%); }
.side :focus-visible { outline-color: #fff; }
.side ::selection { background: #fff; color: var(--brand-deep); }
.side-top { display: flex; align-items: center; gap: 8px; padding: 10px 16px 0; }
.logo { margin-inline-end: auto; display: inline-flex; align-items: baseline; gap: 8px; color: #fff; font: 600 24px/1 'Cormorant Garamond', Georgia, serif; letter-spacing: .14em; text-transform: uppercase; }
.logo:hover { text-decoration: none; }
.logo small { font: 600 11px/1 var(--ui); letter-spacing: .12em; opacity: .7; }
.side-store { min-width: 0; }
.side-store .name { display: none; }
.side-store .links { display: flex; align-items: center; gap: 8px; }
.side-store a { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .1); color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.side-store a svg { width: 14px; height: 14px; }
.side-store .pill { display: none; }
.side-nav { display: flex; gap: 4px; overflow-x: auto; padding: 10px 12px 12px; scroll-padding-inline: 16px; scrollbar-width: none; }
.side-nav::-webkit-scrollbar { display: none; }
.side-link { display: flex; flex: none; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; border-radius: 14px; color: rgb(255 255 255 / .84); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color .15s, color .15s; }
.side-link:hover { background: rgb(255 255 255 / .1); color: #fff; text-decoration: none; }
.side-link[aria-current='page'] { background: #fff; color: var(--brand-deep); font-weight: 700; box-shadow: 0 8px 20px -12px rgb(0 0 0 / .6); }
.side-link .count { margin-inline-start: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgb(255 255 255 / .16); font-size: 12.5px; font-weight: 700; text-align: center; }
.side-link[aria-current='page'] .count { background: var(--brand); color: #fff; }
.side-foot { display: none; }
.side .btn-quiet { color: #fff; justify-content: flex-start; }
.side .btn-quiet:hover { background: rgb(255 255 255 / .12); }
.main { min-width: 0; flex: 1 1 auto; padding: 24px 16px 40px; }
.wrap { margin: 0 auto; width: 100%; max-width: 64rem; }
.foot-m { display: flex; gap: 8px; margin: 40px auto 0; max-width: 64rem; }
@media (min-width: 640px) { .main { padding-inline: 24px; } }
@media (min-width: 1024px) {
  .shell { flex-direction: row; }
  .side { position: sticky; top: 0; display: flex; flex-direction: column; flex: none; width: 17rem; height: 100dvh; overflow-y: auto; }
  .side-top { display: block; padding: 0; }
  .logo { margin: 22px 20px 0; }
  .side-store { margin: 18px 16px 0; padding: 16px; border-radius: 20px; border: 1px solid rgb(255 255 255 / .22); background-color: rgb(255 255 255 / .08);
    background-image: linear-gradient(180deg, rgb(255 255 255 / .15), rgb(255 255 255 / .02) 38%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .34), 0 10px 26px -18px rgb(0 0 0 / .5); }
  .side-store .name { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; }
  .side-store .links { justify-content: space-between; margin-top: 10px; }
  .side-store .pill { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--brand-deep); font-size: 12.5px; font-weight: 700; }
  .side-store a { min-height: 0; padding: 0; border: 0; background: none; }
  .side-store a:hover { text-decoration: underline; }
  .side-top .lang-m { display: none; }
  .side-nav { flex-direction: column; overflow: visible; padding: 16px 12px; }
  .side-foot { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding: 12px; border-top: 1px solid rgb(255 255 255 / .15); }
  .main { padding: 32px 40px 56px; }
  .foot-m { display: none; }
}

.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.head h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.head .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 14.5px; font-weight: 600; }
.note { margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.gap { margin-top: 16px; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.tile { position: relative; padding: 18px 20px; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.tile .cap { padding-inline-end: 38px; }
.tile .ic { position: absolute; top: 16px; inset-inline-end: 16px; width: 32px; height: 32px; border-radius: 999px; background: var(--wash); display: grid; place-items: center; color: var(--ink); }
.tile .ic svg { width: 16px; height: 16px; }
.tile b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.tile b.big { font-size: 28px; }

/* ---------- the sales stage ---------- */
.stage { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; color: #fff; padding: 24px 20px 22px; background-color: var(--brand-deep);
  background-image: linear-gradient(180deg, rgb(26 5 8 / .1), rgb(26 5 8 / .38)), url('/admin/silk-wine.jpg'), linear-gradient(160deg, #3d0f14, var(--brand-deep));
  background-size: cover; background-position: center; }
[dir='rtl'] .stage { background-image: linear-gradient(180deg, rgb(26 5 8 / .1), rgb(26 5 8 / .38)), url('/admin/silk-wine-rtl.jpg'), linear-gradient(200deg, #3d0f14, var(--brand-deep)); }
.stage :focus-visible { outline-color: #fff; }
@media (min-width: 640px) { .stage { padding: 28px 28px 26px; } }
.stage-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stage-head p { font-size: 15px; font-weight: 500; color: rgb(255 255 255 / .9); }
.stage-sum { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 10px; }
.stage-sum b { font-size: clamp(30px, 6vw, 42px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.stage-sum span { font-size: 14.5px; color: rgb(255 255 255 / .8); white-space: nowrap; }
.stage-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: #fff; font-size: 14.5px; font-weight: 600; }
.stage-foot { display: flex; justify-content: flex-end; }
.glass { border: 1px solid rgb(255 255 255 / .22); background-color: rgb(255 255 255 / .1); background-image: linear-gradient(180deg, rgb(255 255 255 / .15), rgb(255 255 255 / .02) 38%);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .34), 0 10px 26px -18px rgb(0 0 0 / .5); }
.chart { position: relative; height: 170px; margin-top: 30px; }
@media (min-width: 640px) { .chart { height: 196px; } }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart svg.glow { filter: drop-shadow(0 0 6px rgb(255 255 255 / .7)) drop-shadow(0 0 16px rgb(255 255 255 / .35)); }
.chart .halo { position: absolute; width: 160px; height: 160px; border-radius: 999px; margin: -80px; margin-inline-start: 0; inset-inline-end: 0; pointer-events: none; background: radial-gradient(closest-side, rgb(255 255 255 / .22), transparent); }
.chart .end-dot { position: absolute; inset-inline-end: 0; width: 14px; height: 14px; margin-top: -7px; margin-inline-end: -7px; border-radius: 999px; border: 3px solid #fff; background: var(--brand); box-shadow: 0 0 0 6px rgb(255 255 255 / .18), 0 0 18px rgb(255 255 255 / .8); }
.chart .end-val { position: absolute; inset-inline-end: 0; margin-inline-end: -8px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; }
.chart .mark { position: absolute; top: 0; bottom: 0; width: 1px; background: rgb(255 255 255 / .45); }
.chart .mark-dot { position: absolute; width: 12px; height: 12px; margin: -6px; border-radius: 999px; border: 2px solid #fff; background: var(--brand-deep); box-shadow: 0 0 0 5px rgb(255 255 255 / .2); }
.chart .tip { position: absolute; top: -14px; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 7px 12px; border-radius: 16px; white-space: nowrap; line-height: 1.25; pointer-events: none; }
.chart .tip small { font-size: 12px; color: rgb(255 255 255 / .8); }
.chart .tip b { font-size: 14px; font-weight: 700; }
.chart .tip b span { font-weight: 500; color: rgb(255 255 255 / .8); }
.chart .hit { position: absolute; inset: 0; z-index: 3; cursor: crosshair; touch-action: pan-y; border-radius: 12px; outline-offset: 4px; }
.chart [hidden] { display: none; }
.axis { display: flex; justify-content: space-between; margin-top: 12px; }
.axis span { display: flex; width: 0; justify-content: center; }
.axis i { font-style: normal; font-size: 12.5px; white-space: nowrap; color: rgb(255 255 255 / .7); }
.axis i.on { color: #fff; font-weight: 700; }

/* ---------- home ---------- */
.home-grid { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 1100px) { .home-grid { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } .home-grid .wide { grid-column: 1; } .home-grid .aside { grid-column: 2; grid-row: 1 / span 2; } }
.aside { display: grid; gap: 16px; }
.linkbox { padding: 12px 14px; border-radius: 12px; background: var(--wash); font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; direction: ltr; text-align: start; }
.latest > a { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 20px; color: var(--ink); border-top: 1px solid var(--rule); }
.latest > a:hover { background: var(--wash); text-decoration: none; }
.latest .who { font-size: 16px; font-weight: 600; }
.latest .end { text-align: end; display: grid; gap: 4px; justify-items: end; }
.mini { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.mini img, .thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--wash); flex: none; }

/* ---------- lists that are tables on wide screens ---------- */
.list { overflow: hidden; }
.list .lh, .list .lr { display: grid; gap: 4px 16px; align-items: center; padding: 14px 16px; }
.list .lh { display: none; color: var(--muted); font-size: 13px; font-weight: 600; padding-block: 12px; }
.list .lr { border-top: 1px solid var(--rule); color: var(--ink); }
.list .lr:first-child { border-top: 0; }
a.lr:hover { background: var(--wash); text-decoration: none; }
.list .sub { color: var(--muted); font-size: 13.5px; }
.list .end { text-align: end; }
.list .strong { font-weight: 600; font-size: 16px; }
.o-list .lr { grid-template-columns: 1fr auto; grid-template-areas: 'cust total' 'ref status' 'pay date'; }
.o-list .c-ref { grid-area: ref; color: var(--brand); font-weight: 700; } .o-list .c-date { grid-area: date; justify-self: end; } .o-list .c-cust { grid-area: cust; }
.o-list .c-area { display: none; } .o-list .c-total { grid-area: total; } .o-list .c-pay { grid-area: pay; } .o-list .c-status { grid-area: status; justify-self: end; }
.c-list .lr { grid-template-columns: 1fr auto; grid-template-areas: 'name spent' 'phone orders' 'email last'; }
.c-list .c-name { grid-area: name; } .c-list .c-phone { grid-area: phone; } .c-list .c-email { grid-area: email; } .c-list .c-orders { grid-area: orders; justify-self: end; } .c-list .c-spent { grid-area: spent; } .c-list .c-last { grid-area: last; justify-self: end; }
.k-list .lr { grid-template-columns: 1fr auto; }
.k-list .c-acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 860px) {
  .list .lh { display: grid; border-bottom: 1px solid var(--rule); }
  .list .lr:first-child { border-top: 0; }
  .list .lh + .lr { border-top: 0; }
  .o-list .lh, .o-list .lr { grid-template-columns: 5.5rem 7rem minmax(0, 1.5fr) minmax(0, 1fr) 7rem 8.5rem 8.5rem; grid-template-areas: none; }
  .o-list .lr > *, .c-list .lr > * { grid-area: auto; justify-self: stretch; }
  .o-list .c-area { display: block; } .o-list .c-total { text-align: end; }
  .c-list .lh, .c-list .lr { grid-template-columns: minmax(0, 1.3fr) 10rem minmax(0, 1.3fr) 5rem 8rem 7.5rem; grid-template-areas: none; }
  .c-list .c-orders, .c-list .c-spent { text-align: end; }
  .k-list .lh, .k-list .lr { grid-template-columns: minmax(0, 1fr) 8rem minmax(0, 1.4fr) 5rem 7rem auto; }
  .k-list .c-acts { grid-column: auto; justify-content: flex-end; }
}

/* ---------- beans ---------- */
.bean { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--rule); }
.bean:first-child { border-top: 0; }
.bean .mv { display: grid; gap: 4px; }
.bean .mv .icon-btn { width: 30px; height: 30px; }
.bean img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--wash); flex: none; }
.bean .nm { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.bean .meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 2px; font-size: 14px; color: var(--muted); }
.bean .meta b { color: var(--ink); font-weight: 600; }
.bean .acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.bean.off img, .bean.off .nm { opacity: .55; }
@media (max-width: 560px) { .bean { flex-wrap: wrap; } .bean .acts { width: 100%; justify-content: space-between; padding-inline-start: 42px; } }

/* ---------- order page ---------- */
.order-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .order-grid { grid-template-columns: minmax(0, 1fr) 19rem; align-items: start; } }
.sec { padding: 18px 20px; border-top: 1px solid var(--rule); }
.sec:first-child { border-top: 0; }
.sec.tint { background: var(--wash); border-radius: 0 0 20px 20px; }
.sec-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; }
.kv .cap { display: block; margin-bottom: 2px; }
.who-big { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 10px; }
.split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; border-block: 1px solid var(--rule); }
.split > div { padding: 12px 0; } .split > div + div { padding-inline-start: 16px; border-inline-start: 1px solid var(--rule); }
.item { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.item .grow b { display: block; font-size: 16px; font-weight: 600; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.sum-row.total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 20px; font-weight: 700; }
.steps { display: grid; gap: 10px; }
.steps hr { width: 100%; border: 0; border-top: 1px solid var(--rule); margin: 4px 0; }
.hist li { padding: 8px 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.hist li:first-child { border-top: 0; }
.hist time { display: block; color: var(--muted); font-size: 13px; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--brand); list-style: none; min-height: 32px; display: flex; align-items: center; }
details.more > summary::-webkit-details-marker { display: none; }

/* ---------- reports ---------- */
.rep-grid { margin-top: 16px; column-gap: 16px; }
.rep-grid > * { break-inside: avoid; margin-bottom: 16px; display: block; }
.rep-grid > .stack { display: grid; }
@media (min-width: 900px) { .rep-grid { columns: 2; } }
.rank { display: grid; grid-template-columns: 1.4rem auto 1fr; gap: 6px 12px; align-items: center; padding: 10px 0; }
.rank .n { color: var(--muted); font-size: 13.5px; font-weight: 600; text-align: center; }
.rank .bar { grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; }
.rank .track { flex: 1 1 auto; height: 6px; border-radius: 999px; background: var(--wash); overflow: hidden; }
.rank .track i { display: block; height: 100%; border-radius: 999px; background: #4a4144; }
.rank .bar span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.big-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.big-row b { font-size: 18px; font-weight: 700; white-space: nowrap; }
.dates { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dates .input { flex: 1 1 130px; min-width: 0; max-width: 220px; width: auto; min-height: 44px; border-radius: 999px; font-size: 15px; }

/* ---------- dialog, toast, sign in ---------- */
.dlg { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--rule); border-radius: 22px; background: var(--sheet); color: var(--ink); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .6); }
.dlg::backdrop { background: rgb(26 5 8 / .5); }
.dlg-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--sheet); border-bottom: 1px solid var(--rule); }
.dlg-head h3 { font-size: 18px; font-weight: 700; }
.dlg-body { padding: 20px; display: grid; gap: 16px; }
.line-row { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 4.6rem 36px; gap: 8px; align-items: center; }
.lines { display: grid; gap: 8px; }
.toast { position: fixed; z-index: 60; inset-inline: 0; bottom: 22px; margin: 0 auto; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.on { opacity: 1; transform: none; }
.toast.bad { background: var(--danger); }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background-color: var(--brand-deep); background-image: linear-gradient(180deg, rgb(26 5 8 / .15), rgb(26 5 8 / .5)), url('/admin/silk-wine.jpg'); background-size: cover; background-position: center; }
.login form { width: min(420px, 100%); padding: 28px 24px; display: grid; gap: 16px; border-radius: 24px; background: var(--sheet); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .7); }
.login .logo { color: var(--brand-deep); margin: 0; }
.login h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.login .lang { justify-self: start; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (prefers-reduced-transparency: reduce) { .glass { background-color: rgb(60 15 20 / .92); -webkit-backdrop-filter: none; backdrop-filter: none; } }

[dir='rtl'] .logo small { letter-spacing: 0; }
.side-link span:first-of-type { min-width: 0; }
