/* The owner's space: a phone app look, same white, cream and ink as her shop. From 900 px wide (computer, tablet held
   sideways) it becomes a desk: a menu on the right, wide pages, the bookings as a table. */
body.admin-mode .top, body.admin-mode .foot, body.admin-mode .skip { display: none !important; }
body.admin-mode { background: var(--cream); }
.adm { max-width: 520px; min-height: 100svh; margin: 0 auto; background: var(--paper); position: relative; }
@media (min-width: 560px) { .adm { box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(60, 40, 20, .35); } }
.adm svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.adm-top {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: 12px 16px; background: rgba(251, 248, 243, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.adm-top .logo { font-size: 26px; justify-self: start; }
.adm-top h1 { font-family: var(--kufi); font-size: 20px; text-align: center; }
.adm-top .icon-btn, .adm-top > span { justify-self: end; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); }
.adm-back { justify-self: start; text-decoration: none; color: var(--mute); font-size: 15px; }
.adm-main { padding: 16px 16px 110px; }

.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 25; width: min(520px, 100%);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.tabbar a { display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--mute); font-size: 12px; padding: 4px 0; }
.tabbar a.on { color: var(--ink); font-weight: 600; }
.tabbar a.plus svg { width: 26px; height: 26px; padding: 12px; box-sizing: content-box; border-radius: 50%; background: var(--ink); color: #fff; margin-top: -26px; box-shadow: 0 10px 24px -8px rgba(27, 24, 25, .5); }

/* lock */
.adm.lock { display: grid; place-items: center; padding: 24px; }
.lock-in { display: grid; gap: 14px; text-align: center; max-width: 340px; }
.lock-in .logo { font-size: 56px; }
.lock-in h1 { font-family: var(--kufi); font-size: 28px; }
.lock-in p { color: var(--mute); margin: 0; }

/* today */
.hello { margin: 0 0 12px; color: var(--mute); }
.sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.sum a { display: grid; gap: 0; padding: 12px 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; text-align: center; }
.sum b { font-family: var(--kufi); font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sum span { font-size: 12px; color: var(--mute); line-height: 1.3; }
.asec { margin-top: 22px; }
.asec h2 { font-family: var(--kufi); font-size: 19px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.asec h2 i { font-style: normal; font-family: var(--sans); font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; border-radius: 999px; padding: 0 8px; line-height: 20px; }
.muted.small { font-size: 13px; }

.arow { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px; margin-bottom: 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.arow img { width: 48px; height: 62px; object-fit: cover; object-position: top; border-radius: 999px 999px 6px 6px; background: var(--cream); }
.arow-t { display: grid; min-width: 0; line-height: 1.45; }
.arow-t b { font-weight: 600; }
.arow-t span, .arow-t small { color: var(--mute); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
.arow-a { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.arow.fit { grid-template-columns: 52px 1fr auto; cursor: default; }
.arow .time { font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }
.warn { color: var(--taken); font-style: normal; }
.ok { color: var(--free); }

.stg { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.st-pending { background: var(--prep-bg); color: var(--prep); }
.st-confirmed { background: #ece6fb; color: #5a43a8; }
.st-out { background: var(--taken-bg); color: var(--taken); }
.st-returned { background: #e4eef8; color: #2d5f8f; }
.st-cleaned { background: var(--free-bg); color: var(--free); }
.st-cancelled { background: #eee; color: #777; }

/* bookings */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; }
.seg button, .seg label span { display: block; border: 0; background: none; padding: 8px 4px; border-radius: 10px; cursor: pointer; color: var(--mute); font-weight: 500; text-align: center; }
.seg button.on, .seg input:checked + span { background: var(--ink); color: #fff; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.search { width: 100%; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--card); font-size: 16px; margin-bottom: 8px; }
.day-h { font-family: var(--kufi); font-size: 17px; margin: 18px 0 8px; color: var(--mute); }
.empty-note { text-align: center; padding: 30px 0; }

.bk-head { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.bk-head img { width: 74px; height: 98px; object-fit: cover; object-position: top; border-radius: 999px 999px 8px 8px; background: var(--cream); }
.bk-head div { display: grid; gap: 2px; justify-items: start; }
.bk-head b { font-family: var(--kufi); font-size: 22px; }
.bk-head span { color: var(--mute); }
.track { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; counter-reset: s; }
.track li { position: relative; text-align: center; font-size: 12.5px; color: var(--mute); padding-top: 18px; }
.track li::before { content: ""; position: absolute; top: 4px; inset-inline: 0; height: 4px; border-radius: 999px; background: var(--line); }
.track li.on { color: var(--ink); font-weight: 600; }
.track li.on::before { background: var(--ink); }
.primary-act { margin-bottom: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; }
.card h3 { font-family: var(--kufi); font-size: 18px; margin-bottom: 8px; }
.client { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.money { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 6px 0; }
.money dt { color: var(--mute); }
.money dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.money dd.big { font-family: var(--kufi); font-size: 22px; }
.btn-row.two { grid-template-columns: 1fr 1fr; }
.desk-paper { padding: 10px 0; border-top: 1px solid var(--line); }
.desk-paper:first-of-type { border-top: 0; }
.desk-paper .field { margin-bottom: 8px; }
.desk-tune { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.tune-step { display: inline-flex; align-items: center; gap: 5px; }
.tune-step > span { font-size: 13px; color: var(--mute); }
.tune-step b { min-width: 2.8em; text-align: center; font-variant-numeric: tabular-nums; }
.tune-step .btn.small { flex: none; width: 34px; min-width: 0; height: 34px; min-height: 0; padding: 0; font-size: 17px; line-height: 1; }
.desk-tune > [data-try] { margin-inline-start: auto; }
.card textarea, .sheet textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--paper); font: inherit; resize: vertical; }
.logl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.logl span { color: var(--mute); margin-inline-end: 8px; font-variant-numeric: tabular-nums; }
.btn.danger { background: var(--taken); }
.btn.danger-t { color: var(--taken); }

/* new booking */
.stepper { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stepper li { text-align: center; font-size: 12.5px; padding: 6px 0; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--mute); }
.stepper li.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.stepper li.done { color: var(--ink); }
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pick-d { display: grid; gap: 2px; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); cursor: pointer; text-align: center; }
.pick-d img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; object-position: top; border-radius: 999px 999px 8px 8px; }
.pick-d b { font-size: 13px; font-weight: 600; line-height: 1.3; }
.pick-d small { color: var(--mute); font-size: 11.5px; }
.pick-d.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.chosen { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.chosen img { width: 46px; height: 60px; object-fit: cover; object-position: top; border-radius: 999px 999px 6px 6px; }
.chosen b { font-family: var(--kufi); font-size: 20px; }
.size.wide { min-width: 0; padding: 0 14px; }
.avail { padding: 12px 14px; border-radius: 14px; margin: 4px 0 8px; }
.avail.yes { background: var(--free-bg); color: var(--free); }
.avail.no { background: var(--taken-bg); color: var(--taken); }
.recap { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--cream); margin-top: 8px; }
.recap img { width: 46px; height: 60px; object-fit: cover; object-position: top; border-radius: 999px 999px 6px 6px; }
.recap div { display: grid; line-height: 1.5; }
.recap span { color: var(--mute); font-size: 14px; }

/* dresses */
.tool { display: flex; gap: 8px; align-items: center; }
.tool .search { margin: 0; }
.tool .btn { white-space: nowrap; min-height: 46px; }
.legend-s { display: flex; gap: 14px; font-size: 12.5px; color: var(--mute); margin: 10px 0; }
.legend-s span { display: flex; align-items: center; gap: 5px; }
.legend-s i, .z { border-radius: 999px; }
.legend-s i { width: 9px; height: 9px; }
.free { --c: var(--free); --b: var(--free-bg); }
.out { --c: var(--taken); --b: var(--taken-bg); }
.clean { --c: #2d5f8f; --b: #e4eef8; }
.legend-s i { background: var(--c); }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.dcard { display: grid; gap: 2px; text-decoration: none; }
.dimg { position: relative; aspect-ratio: 5 / 7; border-radius: 999px 999px 10px 10px; overflow: hidden; background: var(--cream); display: grid; place-items: center; }
.dimg img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dimg .hid, .dimg .r360 { position: absolute; bottom: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; }
.dimg .hid { inset-inline-start: 8px; background: var(--ink); color: #fff; }
.dimg .r360 { inset-inline-end: 8px; background: #fff; }
.dcard b { font-weight: 600; margin-top: 6px; }
.dcard small { color: var(--mute); font-size: 12.5px; }
.zs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.z { font-size: 12px; padding: 0 7px; line-height: 20px; background: var(--b); color: var(--c); font-variant-numeric: tabular-nums; }
.dphoto { display: grid; justify-items: center; gap: 8px; margin-bottom: 14px; }
.dimg.big { width: min(220px, 60vw); }
.btn.file { cursor: pointer; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.stats b { display: block; font-family: var(--kufi); font-size: 22px; }
.stats span { font-size: 12px; color: var(--mute); line-height: 1.35; display: block; }
.colrow { display: flex; gap: 8px; }
.colrow input[type=color] { width: 50px; padding: 4px; flex: none; }
.switch { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 8px 0; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); cursor: pointer; font-weight: 500; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); }

/* bottom sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(27, 24, 25, .4); display: grid; align-items: end; justify-items: center; }
.sheet { width: min(520px, 100%); max-height: 88svh; overflow: auto; background: var(--paper); border-radius: 24px 24px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); }
.sheet-grip { width: 44px; height: 5px; border-radius: 999px; background: var(--line-strong); margin: 0 auto 10px; }
.sheet h2 { font-family: var(--kufi); font-size: 22px; margin-bottom: 8px; }
.sheet .seg.two-way { grid-auto-columns: 1fr; }
.sheet .seg label { position: relative; }

/* forms inside the phone column must never push it wider */
.adm .two > *, .adm .field { min-width: 0; }
.adm .field input, .adm .field select { min-width: 0; }
.colrow > input { flex: 1 1 0; min-width: 0; }

/* login and first password */
.lock-in .field { text-align: start; }
.lock-in .check { justify-content: center; }
.lock-in .small { font-size: 13px; }

/* messages sit above the tab bar, not on it */
body.admin-mode .toast { bottom: calc(112px + env(safe-area-inset-bottom)); border-radius: 14px; text-align: center; white-space: pre-line; line-height: 1.55; width: max-content; }

/* a button followed by a card in the settings needs air */
.adm-main > .btn + .card { margin-top: 18px; }

/* ID card photos: two tiles that open the camera */
.idph { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 6px; }
.idshot-wrap { display: grid; gap: 4px; justify-items: center; min-width: 0; }
.idshot { display: grid; gap: 4px; justify-items: center; width: 100%; cursor: pointer; }
.idshot > span, .idshot img { width: 100%; aspect-ratio: 1.58; border-radius: 12px; background: var(--paper); object-fit: cover; }
.idshot > span { display: grid; place-content: center; justify-items: center; gap: 4px; border: 1.5px dashed var(--line-strong); color: var(--mute); font-weight: 500; }
.idshot img { border: 1px solid var(--line-strong); }
.idshot svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.idshot small { color: var(--mute); font-size: 12.5px; }
.idview { font-size: 12.5px; color: var(--ink); }

/* several dresses for one girl */
.asec.items { margin-bottom: 10px; }
.asec .more { width: 100%; margin-top: 2px; }
.arow.item .arow-a { align-self: center; }
.price-in { width: 96px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); padding: 0 8px; text-align: center; font-size: 16px; background: var(--card); }
.card.group h3 { margin-bottom: 6px; }

/* bookings filters */
.fchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.fchip { border: 1px solid var(--ink); background: var(--card); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.when-list { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; }
.when-list a { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 10px; background: var(--paper); }
.when-list span { color: var(--mute); font-size: 13.5px; }

/* money page */
.top-icons { display: flex; gap: 2px; }
.seg.per { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }
/* the clients' sorts: one row when the words are short, a second row when they are not (French) */
.seg.sorts { display: flex; flex-wrap: wrap; }
.seg.sorts button { flex: 1 1 auto; }
/* the shop's own .kpis (a framed strip) must not leak in here */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 16px; background: none; border: 0; border-radius: 0; overflow: visible; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 2px; align-content: start; min-width: 0; }
.kpi span { color: var(--mute); font-size: 13px; }
.kpi b { font-family: var(--kufi); font-size: 22px; line-height: 1.25; }
.kpi small { color: var(--mute); font-size: 12px; line-height: 1.4; }
.kpi.main { grid-column: 1 / -1; background: var(--ink); color: #fff; border-color: var(--ink); }
.kpi.main span, .kpi.main small { color: rgba(255, 255, 255, .75); }
.kpi.main b { font-size: 30px; }
.kpi.neg b { color: var(--taken); }
.money-row .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.money-row .amt.out { color: var(--taken); }
.bar { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; margin: 6px 0; font-size: 14px; }
.bar .track { height: 8px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.bar .fill { height: 100%; background: var(--ink); border-radius: 999px; }
.cash-today { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.cash-today b { font-family: var(--kufi); font-size: 18px; margin-inline-start: auto; }
.cash-today span { color: var(--mute); }
.arow.money-row { grid-template-columns: 1fr auto; }
.money-row .arow-a { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.money-row .arow-a .btn { width: 34px; height: 34px; padding: 0; min-width: 0; }

/* workers */
.staff-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.staff-row > div:first-child { display: grid; gap: 2px; }
.staff-row small { color: var(--mute); font-size: 12.5px; }
.staff-row .arow-a { display: flex; gap: 6px; flex-direction: row; }
.staff-link { background: var(--cream); border-radius: 12px; padding: 10px 12px; margin: 6px 0 10px; display: grid; gap: 8px; font-size: 14px; }
.staff-link p { margin: 0; }
.staff-link input { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); padding: 0 10px; font-size: 12.5px; background: var(--card); }

/* client book */
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); font-family: var(--kufi); font-size: 20px; color: var(--ink); }
.avatar.big { width: 64px; height: 64px; font-size: 30px; flex: none; }
.arow.client-row { text-decoration: none; color: var(--ink); }
.ctag { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; vertical-align: middle; margin-inline-start: 4px; }
.ctag.gold { background: #f5ecd3; color: #8a6514; }
.ctag.red { background: var(--taken-bg); color: var(--taken); }
.client-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.client-head h2 { font-family: var(--kufi); font-size: 22px; margin: 0; }
.client-head p { margin: 2px 0 0; font-weight: 600; }
.warn-card { border-color: var(--taken); }
.warn-card a { color: var(--taken); }
.client-hint { display: grid; gap: 3px; background: var(--cream); border-radius: 12px; padding: 10px 12px; margin: -6px 0 12px; font-size: 14px; }
.client-hint.new { color: var(--mute); }
.client-hint .warn { color: var(--taken); }
.client-hint a { color: var(--ink); font-weight: 600; font-size: 13px; }

/* ---------- wide screens: computer, tablet held sideways ---------- */
.wide-only { display: none; }
.btable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 14.5px; }
.btable th { text-align: start; font-weight: 600; color: var(--mute); font-size: 13px; padding: 10px 12px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.btable td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.btable tbody tr { cursor: pointer; }
.btable tbody tr:hover td { background: var(--paper); }
.btable tbody tr:last-child td { border-bottom: 0; }
.bt-dress { display: flex; align-items: center; gap: 8px; }
.bt-dress img { width: 30px; height: 40px; object-fit: cover; border-radius: 15px 15px 5px 5px; }
.btable .bt-day, .nw { white-space: nowrap; }
.set-me { margin-top: 18px; }
/* settings: the list of sections, then one section; on a phone one of the two, on a computer side by side */
.set-list { padding: 4px 0; overflow: hidden; }
.set-list a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.set-list a:first-child { border-top: 0; }
.set-list a > svg { flex: none; }
.set-list a > span { display: grid; gap: 1px; min-width: 0; }
.set-list a b { font-size: 16px; font-weight: 700; }
.set-list a small { font-size: 12.5px; color: var(--mute); }
.set-list a::after { content: ""; width: 8px; height: 8px; margin-inline-start: auto; flex: none; border-left: 2px solid var(--line-strong); border-bottom: 2px solid var(--line-strong); transform: rotate(45deg); } /* ‹ : into the section */
[dir="ltr"] .set-list a::after { transform: rotate(-135deg); } /* › in French and English */
.set-page.home .set-pane, .set-page:not(.home) .set-side { display: none; }
.set-side .btn.logout { margin-top: 6px; }
.save-state { margin: 0 2px 10px; font-size: 13px; color: var(--mute); }
.save-state.ok { color: #2f7a4a; }
.save-state.err { color: var(--taken); font-weight: 600; }
@media (min-width: 900px) {
  .adm-main.set-page { display: grid; grid-template-columns: 270px minmax(0, 680px); gap: 0 24px; align-items: start; }
  .set-page .set-pane, .set-page .set-side { display: block !important; }
  .set-side { position: sticky; top: 84px; }
  .set-list a::after { display: none; }
  .set-list a { border-radius: 12px; margin: 2px 6px; border-top: 0; padding: 10px 12px; }
  .set-list a:hover { background: var(--paper); }
  .set-list a.on { background: var(--ink); color: #fff; }
  .set-list a.on small { color: rgba(255, 255, 255, .7); }
}
.late-box { background: var(--taken-bg); border-radius: 14px; padding: 10px 12px 2px; margin-bottom: 12px; }
.late-box .warn { margin: 0 0 8px; font-weight: 600; }
/* one row of day counts; a button that cannot act looks it */
.sizes.n-days { flex-wrap: nowrap; gap: 6px; }
.sizes.n-days .size { flex: 1; min-width: 0; padding-inline: 0; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
/* log out: red, with the power sign */
.btn.logout { background: var(--taken); border-color: var(--taken); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; width: 100%; }
.btn.logout svg { width: 20px; height: 20px; stroke-width: 2; }
/* a worker's own page opens with her name */
.me-name { margin: 2px 0 14px; font-size: 22px; font-weight: 700; color: var(--ink); }
.kpis.one { grid-template-columns: 1fr; }
/* the computer app without internet: a pill on top of the window */
.offline-bar { position: fixed; z-index: 85; top: 10px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 8px 16px; border: 0; border-radius: 999px; background: #8a6514; color: #fff; font: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 10px 26px -12px rgba(27, 24, 25, .55); cursor: pointer; }
.offline-bar.warn { background: var(--taken); }
.add-new { display: block; width: 100%; text-align: center; margin-bottom: 12px; text-decoration: none; }
/* a blocked girl */
.ctag.ban { background: var(--taken); color: #fff; }
.ban-card { border-color: var(--taken); background: var(--taken-bg); }
.ban-card h3 { color: var(--taken); }
.client-hint .ban-line { color: #fff; background: var(--taken); border-radius: 8px; padding: 4px 8px; }
.btn.danger { background: var(--taken); border-color: var(--taken); color: #fff; }
.client-acts { margin-top: 18px; }
/* a new version is out: one tap reloads */
.update-bar { position: fixed; z-index: 80; inset-inline: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); max-width: 520px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 14px 34px -14px rgba(27, 24, 25, .6); }
.update-bar .btn { background: #fff; color: var(--ink); border-color: #fff; min-width: 84px; }
body.has-update.admin-mode .toast { bottom: calc(168px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .update-bar { bottom: 22px; }
  body.has-update.admin-mode .toast { bottom: 90px; }
}
/* a tile on today jumps to its list: stop below the sticky header, and show where it landed */
#late, #pickups, #returns, #cards { scroll-margin-top: 84px; }
.flash .asec { animation: flash 1.4s ease-out; border-radius: 16px; }
@keyframes flash { 0%, 30% { background: var(--cream); box-shadow: 0 0 0 8px var(--cream); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }
@media (prefers-reduced-motion: reduce) { .flash .asec { animation: none; } }
@media (min-width: 900px) {
  body.admin-mode { background: var(--paper); }
  .adm { max-width: none; display: grid; grid-template-columns: 236px minmax(0, 1fr); box-shadow: none !important; }
  .adm.lock { grid-template-columns: 1fr; }
  .side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100svh; overflow: auto; padding: 22px 14px; background: var(--card); border-inline-end: 1px solid var(--line); }
  .side .logo { font-size: 36px; padding: 0 10px; text-decoration: none; }
  .side-who { color: var(--mute); font-size: 13px; padding: 0 10px; }
  .side nav { display: grid; gap: 2px; margin-top: 14px; }
  .side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--mute); text-decoration: none; font-weight: 500; }
  .side nav a:hover { background: var(--paper); color: var(--ink); }
  .side nav a.on { background: var(--ink); color: #fff; }
  .tabbar { display: none; }
  .adm-top { padding: 14px 28px; }
  .adm-top > .logo, .adm-top .top-icons { visibility: hidden; }
  .adm-main { padding: 22px 28px 60px; width: 100%; max-width: 1240px; margin: 0 auto; }
  .adm-main.narrow { max-width: 720px; }
  body.admin-mode .toast { bottom: 22px; }
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 22px; padding-bottom: 22px; }
  .phone-only { display: none; }
  .wide-only { display: block; }
  /* today: the lists side by side */
  .sum { max-width: 760px; }
  .cash-today { max-width: 760px; }
  /* the lists stack in columns that fill up (no gap under a short one) */
  .today-grid { columns: 3 340px; column-gap: 22px; }
  .today-grid > * { break-inside: avoid; }
  .today-grid .asec { display: inline-block; width: 100%; margin: 0 0 26px; }
  /* an appointment's three buttons, two by line */
  .today-grid .arow.fit .arow-a { display: grid; grid-template-columns: auto auto; gap: 6px; }
  .today-grid .arow.fit .arow-a > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* pages in two columns: a booking, her client page, the settings */
  .adm-main.pg-cols { columns: 2 380px; column-gap: 22px; }
  .adm-main.pg-cols > * { break-inside: avoid; }
  .adm-main.pg-cols > .bk-head, .adm-main.pg-cols > .track, .adm-main.pg-cols > .primary-act, .adm-main.pg-cols > .client-head, .adm-main.pg-cols > .kpis, .adm-main.pg-cols > .hello { column-span: all; }
  .adm-main.pg-cols > .track, .adm-main.pg-cols > .primary-act { max-width: 760px; }
  .adm-main.pg-cols > .card, .adm-main.pg-cols > section { display: inline-block; width: 100%; }
  .adm-main.pg-cols > .set-me { margin-top: 0; }
  /* the money page: the figures across the top, then the lists two by two */
  .adm-main.pg-money { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; align-items: start; }
  .pg-money > :not(.asec) { grid-column: 1 / -1; }
  .pg-money .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pg-money > .seg.per { grid-template-columns: repeat(6, 1fr); max-width: 760px; width: 100%; }
  .pg-money > .two { max-width: 760px; }
  .push-ask { max-width: 760px; }
  /* lists in a grid */
  .dgrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 14px; }
  .pick { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  #clist { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0 12px; }
  .fchips, .adm-main > .seg, .adm-main > .tool, .adm-main > .search, .adm-main > .add-new { max-width: 760px; }
}
/* a tablet held sideways, a small laptop: a slimmer menu, and the table drops "came from" */
@media (min-width: 900px) and (max-width: 1199px) {
  .adm { grid-template-columns: 200px minmax(0, 1fr); }
  .adm-main { padding-inline: 20px; }
  .btable .bt-src { display: none; }
}

/* changing a booking */
.primary-act.btn-row { margin-top: 0; }
.lock-note { margin: -6px 0 14px; }
.adm-main.pg-cols > .lock-note { column-span: all; }
.sheet .chosen .btn { margin-inline-start: auto; }
.sheet .pick { max-height: 50svh; overflow-y: auto; padding: 2px; }
.mates { margin: 4px 0 10px; }
.mates .arow-t .ok { color: var(--free); font-weight: 600; }
.mates .arow-t .warn { color: var(--taken); }

/* the menu: beside the page from 900 px; on a phone it slides in from the side (☰) over the dimmed page */
.side { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 70; width: min(300px, 84vw); display: flex; flex-direction: column; gap: 4px; overflow: auto;
  padding: calc(20px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom)); background: var(--card); box-shadow: 0 0 60px -10px rgba(27, 24, 25, .45);
  transform: translateX(105%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s; }
[dir="ltr"] .side { transform: translateX(-105%); }
.adm.menu-open .side { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.side-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(27, 24, 25, .4); opacity: 0; pointer-events: none; transition: opacity .25s; }
.adm.menu-open .side-scrim { opacity: 1; pointer-events: auto; }
.side .logo { font-size: 36px; padding: 0 10px; text-decoration: none; }
.side-who { color: var(--mute); font-size: 13px; padding: 0 10px; }
.side nav { display: grid; gap: 2px; margin-top: 14px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; color: var(--mute); text-decoration: none; font-weight: 500; }
.side nav a:hover { background: var(--paper); color: var(--ink); }
.side nav a.on { background: var(--ink); color: #fff; }
.side-out { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 0; border-radius: 12px; background: none; color: var(--taken); font: inherit; font-weight: 500; cursor: pointer; text-align: start; }
.side-out:hover { background: var(--taken-bg); }
@media (prefers-reduced-motion: reduce) { .side, .adm.menu-open .side, .side-scrim { transition: none; } }
/* the top bar: back (every page but today), the title, the menu */
.adm-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 8px; margin-inline-start: -8px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.adm-back span { display: none; }
[dir="rtl"] .adm-back svg, [dir="rtl"] .sheet-back svg { transform: scaleX(-1); }
.top-end { justify-self: end; display: flex; align-items: center; gap: 2px; }
.menu-btn { border: 0; background: none; cursor: pointer; }
.adm-back:hover, .sheet-back:hover { background: var(--cream); }
@media (min-width: 900px) {
  .side { position: sticky; top: 0; height: 100svh; width: auto; z-index: auto; transform: none; visibility: visible; transition: none; box-shadow: none; padding: 22px 14px; border-inline-end: 1px solid var(--line); }
  [dir="ltr"] .side { transform: none; }
  .side-scrim, .menu-btn { display: none; }
  .adm-back { color: var(--mute); }
  .adm-back span { display: inline; }
}
/* the sheets: a back arrow beside the title */
.sheet-head { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.sheet .sheet-head h2 { margin: 0; }
.sheet-back { display: grid; place-items: center; flex: none; width: 38px; height: 38px; margin-inline-start: -8px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.sheet-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* an order handed over: what she takes */
.take-list { display: grid; gap: 0; margin: 4px 0 6px; }
.check.take { margin: 6px 0; }
.check.take img { width: 40px; height: 54px; object-fit: cover; object-position: top; border-radius: 999px 999px 6px 6px; flex: none; }
.check.take span { display: grid; gap: 2px; }
.check.take small { color: var(--mute); font-weight: 400; }
.check.take:has(input:not(:checked)) { opacity: .55; }
.check.take:has(input:not(:checked)) b { text-decoration: line-through; }

/* settings: her shop's photo for her site's home */
.front-pick { display: grid; place-items: center; min-height: 120px; border-radius: 16px; background: var(--paper); border: 1px dashed var(--line-strong); overflow: hidden; margin-bottom: 10px; text-align: center; padding: 8px; }
.front-pick img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; display: block; }
.side-brand { margin: 6px 12px 0; color: var(--mute); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.side-brand img { width: 12px; height: auto; opacity: .8; }
.desk-shop { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 4px; }
