/* "Menaxho produktet" (menaxho.html), on top of style.css: the shop's own page for adding,
   changing and removing products. Same tokens, buttons and fields as the site. */

.adm-page { background: var(--bg-alt); padding-bottom: 0; }
.adm-header { border-color: var(--line); }
.adm-site-link { min-height: 42px; padding-inline: 12px; color: var(--ink); font-size: 0.9rem; }
.adm-logout { display: none; }
.is-signed-in .adm-logout { display: grid; }
@media (max-width: 599px) {
  .adm-site-link { width: 44px; padding: 0; }
  .adm-site-link span, .adm-hide-sm { display: none; }
}

/* ── sign in, and the "not set up" notes ─────────────────────────────────── */

.adm-gate { display: grid; place-items: center; min-height: calc(100svh - var(--header-h)); padding-block: 40px; }
.adm-card { display: grid; justify-items: start; gap: 14px; width: min(100%, 440px); padding: 32px 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.adm-card h1 { font-size: 1.6rem; font-weight: 600; }
.adm-card .lead { margin: 0; font-size: 0.98rem; }
.adm-card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--red-soft); color: var(--red); }
.adm-card-icon .icon { width: 26px; height: 26px; }
.adm-form { display: grid; gap: 14px; width: 100%; margin-top: 4px; }
.field .adm-pin { font-size: 1.25rem; letter-spacing: 0.3em; }
.form-error:empty { display: none; }

/* ── page head: title, where it saves, save status ───────────────────────── */

.adm-head { padding-block: 26px 22px; background: #fff; }
.adm-head-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.adm-head .lead { max-width: 640px; margin: 6px 0 0; font-size: 0.95rem; }
.adm-status { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--green-dark); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.adm-status .icon { width: 16px; height: 16px; }
.adm-status[data-state="saving"] { color: var(--muted); }
.adm-status[data-state="error"] { border-color: var(--red); background: var(--red-soft); color: var(--red-strong); }

/* ── notes, toolbar, tabs ─────────────────────────────────────────────────── */

.adm-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; padding: 12px 14px 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 0.9rem; line-height: 1.5; }
.adm-note > .icon { color: var(--red); }
.adm-note > span { flex: 1 1 240px; }
.adm-note--warn { border-color: #f0d48a; background: #fff8e6; }
.adm-note--warn > .icon { color: #8a5a00; }
.adm-note-btn { min-height: 40px; padding: 6px 14px; font-size: 0.88rem; }

.adm-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.adm-toolbar .search-field { flex: 1 1 260px; }
.adm-toolbar-btns { display: flex; gap: 10px; }
.adm-toolbar .btn { min-height: 52px; }
.adm-toolbar .btn--outline { background: #fff; }
@media (max-width: 599px) {
  .adm-toolbar-btns { width: 100%; }
  .adm-toolbar-btns .btn--red { flex: 1; }
  .adm-toolbar .btn--outline { width: 52px; padding: 0; }
}
.adm-page .tabs { background: #fff; }
.adm-page .tab[aria-pressed="true"] { background: var(--bg-alt); box-shadow: none; }
/* "Të gjitha" carries the whole count here, so the row needs a little less padding to fit on one line. */
@media (min-width: 720px) { .adm-page .tabs .tab { padding-inline: 9px; } }

/* ── the product rows ─────────────────────────────────────────────────────── */

.adm-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.adm-list .empty-state { background: #fff; }
.adm-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb main price" "thumb tools tools";
  gap: 2px 12px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.adm-row:hover { border-color: #dadada; box-shadow: var(--shadow-sm); }
.adm-thumb { grid-area: thumb; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--bg-alt); }
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-main { grid-area: main; display: grid; gap: 2px; justify-items: start; min-width: 0; }
.adm-name { padding: 0; border: 0; background: none; color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.3; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.adm-name:hover { color: var(--red-strong); text-decoration: underline; text-underline-offset: 3px; }
.adm-en { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.adm-meta { color: var(--muted); font-size: 0.8rem; }
.adm-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.adm-tag { padding: 1px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; line-height: 1.6; letter-spacing: 0.02em; }
.adm-tag--off { background: var(--red); color: #fff; }
.adm-tag--new { background: var(--green); color: #fff; text-transform: uppercase; }
.adm-tag--sample { background: rgb(28 29 31 / 82%); color: #fff; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; }
.adm-tag--hidden { background: var(--line); color: var(--ink); }
.adm-tag--ended { background: #fff1d6; color: #7a4b00; }
.adm-tag--problem { background: var(--red-soft); color: var(--red-strong); }
.adm-price { grid-area: price; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; white-space: nowrap; }
.adm-price ins { color: var(--ink); font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.adm-price:has(del) ins { color: var(--red); }
.adm-price del { color: var(--muted); font-size: 0.8rem; }
.adm-actions { grid-area: tools; display: flex; justify-content: flex-end; gap: 2px; margin-right: -4px; }
.adm-actions .icon-btn { color: var(--muted); }
.adm-actions .icon-btn:hover { color: var(--ink); }
.adm-actions .adm-del:hover { background: var(--red-soft); color: var(--red-strong); }
.adm-row.is-off .adm-thumb, .adm-row.is-off .adm-name, .adm-row.is-off .adm-price { opacity: 0.5; }
.adm-row.is-flash { animation: adm-flash 1.8s var(--ease-out); }
@keyframes adm-flash { from { border-color: var(--green); box-shadow: 0 0 0 4px rgb(71 115 31 / 28%); } }
@media (min-width: 720px) {
  .adm-row { grid-template-columns: 84px minmax(0, 1fr) 112px auto; grid-template-areas: "thumb main price tools"; gap: 18px; align-items: center; padding: 10px 12px; }
  .adm-actions { margin: 0; }
}

/* ── add / edit dialog ────────────────────────────────────────────────────── */

.adm-sheet {
  width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 24px 24px 0 0;
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / 30%); overflow: hidden;
}
.adm-sheet[open] { display: flex; flex-direction: column; animation: sheet-up 0.45s var(--ease-out); }
.adm-sheet::backdrop { background: rgb(18 18 20 / 55%); backdrop-filter: blur(3px); }
.adm-sheet[open]::backdrop { animation: backdrop-in 0.35s ease-out; }
.adm-sheet-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--line); }
.adm-sheet-head h2 { font-size: 1.25rem; }
.adm-sheet-head .sheet-close { position: static; background: var(--bg-alt); box-shadow: none; }
.adm-sheet-body { display: grid; flex: 1; gap: 24px; min-height: 0; padding: 18px 22px 22px; overflow: auto; overscroll-behavior: contain; }
.adm-sheet-foot { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.adm-sheet-foot .adm-del { margin-right: auto; padding-inline: 12px; color: var(--red-strong); }
.adm-sheet-foot .adm-del:hover { background: var(--red-soft); color: var(--red-strong); }
@media (max-width: 479px) {
  .adm-sheet-foot .adm-del { width: 48px; padding: 0; }
  .adm-sheet-foot .adm-del span { display: none; }
  .adm-sheet-foot .btn:not(.adm-del) { flex: 1; }
}

.adm-fields { display: grid; gap: 16px; }
.adm-field { display: grid; align-content: start; gap: 6px; }
.adm-field > label { font-size: 0.9rem; font-weight: 600; }
.adm-opt { margin-left: 6px; color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.adm-field input:not([type="checkbox"]), .adm-field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #d5d7da; border-radius: 12px; background: #fff; font-size: 1rem; }
.adm-field input:focus, .adm-field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgb(71 115 31 / 18%); }
.adm-field [aria-invalid] { border-color: #c62828 !important; }
.adm-field [aria-invalid]:focus { box-shadow: 0 0 0 3px rgb(198 40 40 / 16%); }
.adm-field input.adm-money { font-variant-numeric: tabular-nums; }
.adm-hint { color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.adm-error { color: #a4241a; font-size: 0.84rem; font-weight: 600; }
.adm-checks { display: flex; flex-wrap: wrap; gap: 0 24px; }
.adm-form-error { margin-top: 14px; }
@media (min-width: 560px) {
  .adm-fields { grid-template-columns: 1fr 1fr; gap: 16px 18px; }
  .adm-field--wide { grid-column: 1 / -1; }
}

.adm-preview { display: grid; align-content: start; gap: 10px; }
.adm-preview-title { color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.adm-preview-card { width: min(100%, 250px); }
.adm-preview-card .p-card { border-color: transparent; box-shadow: var(--shadow); }
.adm-preview-empty { display: grid; place-items: center; min-height: 250px; padding: 20px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 0.9rem; text-align: center; }
.adm-preview-note { width: min(100%, 250px); padding: 8px 12px; border-radius: 10px; background: #fff1d6; color: #7a4b00; font-size: 0.84rem; font-weight: 600; line-height: 1.45; }

@media (min-width: 900px) {
  .adm-sheet { width: min(1000px, calc(100% - 48px)); max-height: calc(100dvh - 48px); margin: auto; border-radius: 24px; }
  .adm-sheet[open] { animation: sheet-in 0.4s var(--ease-out); }
  .adm-sheet-body { grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; padding: 24px 28px 28px; }
  .adm-sheet-head { padding-left: 28px; }
  .adm-sheet-foot { padding-inline: 28px; }
  .adm-preview { position: sticky; top: 0; align-self: start; }
}

/* ── import a CSV file ────────────────────────────────────────────────────── */

.adm-import { gap: 16px; align-content: start; }
.adm-import-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-alt); font-size: 0.9rem; }
.adm-import-file .icon { flex: none; color: var(--green); }
.adm-import-name { display: flex; flex-wrap: wrap; gap: 0 10px; min-width: 0; }
.adm-import-name strong { min-width: 0; overflow-wrap: anywhere; }
.adm-import-name span { color: var(--muted); }
.adm-import-msg { line-height: 1.6; }
.adm-modes { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.adm-modes legend { margin-bottom: 10px; padding: 0; font-size: 0.9rem; font-weight: 600; }
.adm-mode {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1.5px solid #d5d7da; border-radius: 14px; background: #fff;
  cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.adm-mode:hover { border-color: #b9bcc0; }
.adm-mode:has(:checked) { border-color: var(--green); background: var(--green-50); box-shadow: 0 0 0 3px rgb(71 115 31 / 14%); }
.adm-mode input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.adm-mode-text { display: grid; gap: 4px; min-width: 0; }
.adm-mode-hint { color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.adm-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-mode .adm-counts { margin-top: 4px; }
.adm-mode .adm-counts:empty { display: none; }
.adm-chip { padding: 1px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.8rem; font-weight: 600; line-height: 1.6; font-variant-numeric: tabular-nums; }
.adm-chip--new { border-color: transparent; background: var(--green); color: #fff; }
.adm-chip--changed { border-color: transparent; background: #e3edf9; color: #1d4e89; }
.adm-chip--removed { border-color: transparent; background: var(--red-soft); color: var(--red-strong); }
.adm-import-notes { display: grid; gap: 12px; }
.adm-import-notes:empty, .adm-import .form-error:empty { display: none; }
.adm-import-notes .adm-note { margin: 0; }
.adm-issue { padding: 12px 14px 12px 16px; border: 1px solid #f0d48a; border-radius: 14px; background: #fff8e6; font-size: 0.86rem; line-height: 1.5; }
.adm-issue-title { color: #6b4300; font-weight: 700; }
.adm-issue ul { margin: 6px 0 0; padding-left: 18px; }
.adm-issue li + li { margin-top: 2px; }
.adm-issue-more { margin-top: 4px; color: var(--muted); }
.adm-import-line { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.adm-import-line .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.adm-sheet-foot .adm-foot-start { margin-right: auto; padding-inline: 12px; }
.adm-sheet-foot [data-import-go] { white-space: nowrap; }
@media (max-width: 479px) {
  .adm-sheet--narrow .adm-sheet-foot .btn--outline { flex: none; }
}
@media (min-width: 900px) {
  .adm-sheet--narrow { width: min(620px, calc(100% - 48px)); }
  .adm-sheet--narrow .adm-sheet-body { grid-template-columns: none; gap: 16px; }
}

.adm-empty-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.adm-empty-btns .btn--outline { background: #fff; }

/* A file dragged over the page: a cover, and a dashed frame with the message. */
.is-dropping::before, .is-dropping::after { position: fixed; z-index: 95; pointer-events: none; animation: backdrop-in 0.2s ease-out; }
.is-dropping::before { content: ""; inset: 0; background: rgb(246 246 244 / 96%); }
.is-dropping::after {
  content: attr(data-drop); inset: 12px; display: grid; place-items: center; padding: 24px; border: 3px dashed var(--green);
  border-radius: 24px; background: rgb(238 245 232 / 90%); color: var(--green-dark); font-size: 1.3rem; font-weight: 700; text-align: center;
}

/* ── toast with undo ──────────────────────────────────────────────────────── */

.adm-toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 14px;
  max-width: calc(100% - 24px); min-height: 48px; padding: 6px 6px 6px 18px; border-radius: 14px; background: var(--ink); color: #fff;
  font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow); opacity: 0; translate: -50% 20px; pointer-events: none;
  transition: opacity 0.2s ease, translate 0.3s var(--ease-out);
}
.adm-toast.is-on { opacity: 1; translate: -50% 0; pointer-events: auto; }
.adm-toast:not(:has(button)) { padding-right: 18px; }
.adm-toast-btn { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: rgb(255 255 255 / 14%); color: #fff; font-weight: 600; white-space: nowrap; cursor: pointer; }
.adm-toast-btn:hover { background: rgb(255 255 255 / 24%); }
.adm-toast-btn .icon { width: 18px; height: 18px; }

/* ── the links between the owner's pages (Orders / Products) ─────────────── */

.adm-nav { display: flex; gap: 4px; margin-inline: 12px auto; padding: 4px; border-radius: 999px; background: var(--bg-alt); }
.adm-nav[hidden] { display: none; }
.adm-nav-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 0.88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.adm-nav-link:hover { color: var(--ink); }
.adm-nav-link[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
/* On a phone the links get their own row under the logo, so the header never runs wider than the screen. */
@media (max-width: 599px) {
  .adm-header:has(.adm-nav:not([hidden])) .header-inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-block: 7px 10px; row-gap: 6px; }
  .adm-nav { order: 3; width: 100%; margin: 0; }
  .adm-nav-link { flex: 1; justify-content: center; }
}

/* ── orders screen (porosite.html) and driver's page (shoferi.html) ──────── */

.ord-head-side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.adm-bell { min-height: 42px; padding-inline: 16px; border-color: var(--red); background: var(--red); color: #fff; font-size: 0.9rem; }
.adm-bell.is-on { border-color: var(--line); background: #fff; color: var(--green-dark); }
@media (prefers-reduced-motion: no-preference) { .adm-bell:not(.is-on) { animation: bell-nudge 2.4s ease-in-out infinite; } }
@keyframes bell-nudge { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgb(196 35 34 / 0%); } 80% { box-shadow: 0 0 0 7px rgb(196 35 34 / 22%); } }
.ord-bell-note[hidden] { display: none; }

.ord-group { margin-top: 22px; }
.ord-group:first-child { margin-top: 0; }
.ord-group-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 1rem; font-weight: 600; }
.ord-group--new .ord-group-title .tab-n { background: var(--red); color: #fff; }
.ord-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .ord-list:not(.drv-list) { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } }
.ord-card { display: grid; align-content: start; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.ord-card:hover { box-shadow: var(--shadow-sm); }
.ord-card--new { border-left-color: var(--red); background: #fffafa; }
.ord-card--accepted { border-left-color: #d69a1f; }
.ord-card--ready, .ord-card--onway { border-left-color: var(--green); }
.ord-card--rejected, .ord-card--cancelled { opacity: 0.75; }
@media (prefers-reduced-motion: no-preference) { .ord-card--new { animation: ord-new 2s ease-in-out infinite; } }
@keyframes ord-new { 50% { box-shadow: 0 0 0 4px rgb(196 35 34 / 14%); } }
.ord-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ord-code { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.ord-time { color: var(--muted); font-size: 0.82rem; }
.ord-total { margin-left: auto; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.ord-name { justify-self: start; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1.08rem; font-weight: 600; text-align: left; cursor: pointer; }
.ord-name:hover { text-decoration: underline; }
.ord-where { display: flex; align-items: flex-start; gap: 8px; font-size: 0.92rem; overflow-wrap: anywhere; }
.ord-where .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--green-dark); }
.ord-meta { color: var(--muted); font-size: 0.84rem; }
.ord-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ord-actions .btn { min-height: 46px; }
.ord-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.ord-pill--new { background: var(--red); color: #fff; }
.ord-pill--accepted { background: #fff3dc; color: #7a4a00; }
.ord-pill--ready, .ord-pill--onway { background: var(--green-50); color: var(--green-dark); }
.ord-pill--delivered { background: var(--green); color: #fff; }
.ord-pill--rejected, .ord-pill--cancelled { background: var(--red-soft); color: var(--red-strong); }

/* one order, in full */
.ord-sheet .adm-sheet-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ord-body { gap: 0; padding-top: 4px; }
.ord-section { display: grid; gap: 10px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.ord-section:last-child { border-bottom: 0; }
.ord-section h3 { color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.ord-big { display: flex; align-items: flex-start; gap: 8px; font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.ord-big .icon { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--green-dark); }
.ord-section > .btn { justify-self: start; }
.ord-phone { margin-top: -6px; font-variant-numeric: tabular-nums; }
.ord-note { padding: 10px 12px; border-radius: 10px; background: #fff8e6; }
.ord-lines { display: grid; margin: 0; padding: 0; list-style: none; }
.ord-line { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ord-line-qty { font-weight: 700; font-variant-numeric: tabular-nums; }
.ord-line-name { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.ord-line-name > span:not(.co-tag) { color: var(--muted); font-size: 0.82rem; }
.ord-line-price { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ord-line.is-missing .ord-line-name strong { color: var(--muted); text-decoration: line-through; }
.ord-weigh { width: 120px; min-height: 44px; padding: 8px 12px; border: 1.5px solid #e0b75a; border-radius: 10px; background: #fffaf0; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.ord-weigh:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgb(71 115 31 / 18%); }
.ord-miss { min-height: 40px; font-size: 0.84rem; }
.ord-miss[aria-pressed="true"] { color: var(--green-dark); }
@media (min-width: 560px) {
  .ord-line { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .ord-line-price { grid-column: auto; justify-content: flex-end; }
}
.ord-pay { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ord-pay .icon { width: 20px; height: 20px; color: var(--green-dark); }
.ord-history { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 0.88rem; }
.ord-history li { display: flex; gap: 12px; }
.ord-history time { min-width: 44px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ord-reject { margin-inline: -22px; padding-inline: 22px; background: var(--red-soft); }

/* the driver's cards: bigger, for a phone held in one hand */
.drv-card { gap: 10px; padding: 16px; cursor: default; }
.drv-name { font-size: 1.2rem; font-weight: 600; }
.drv-address { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 1.05rem; overflow-wrap: anywhere; }
.drv-address .icon { width: 20px; height: 20px; flex: none; color: var(--red); }
.drv-note { padding: 10px 12px; border-radius: 10px; background: #fff8e6; font-size: 0.92rem; }
.drv-collect { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-alt); }
.drv-collect strong { color: var(--red-strong); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.drv-collect span { color: var(--muted); font-size: 0.86rem; }
.drv-collect span:first-child { width: 100%; color: var(--ink); font-weight: 600; }
.drv-links .btn { flex: 1; }
.drv-items summary { color: var(--muted); font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.drv-items ul { display: grid; gap: 4px; margin: 8px 0 0; padding-left: 18px; font-size: 0.92rem; }
.drv-actions .btn--lg { flex: 1; }
.drv-ask { width: 100%; font-weight: 600; }
.drv-done { margin-top: 22px; }
.drv-done summary { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 600; cursor: pointer; }

/* fletushka.html: the flyer maker */
.fly { padding-block: 24px 48px; }
.fly-title { font-size: 1.6rem; font-weight: 600; }
.fly-lead { margin: 4px 0 20px; max-width: 60ch; }
.fly-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 860px) { .fly-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); } }
.fly-controls { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.fly-controls legend { margin-bottom: 8px; font-weight: 600; }
.fly-deals { width: 100%; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.fly-deals .fine { margin: 0 0 8px; }
.fly-deals ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.fly-deal { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 6px; border-radius: 10px; cursor: pointer; }
.fly-deal:hover { background: var(--bg-alt); }
.fly-deal input { width: 20px; height: 20px; flex: none; accent-color: var(--green); }
.fly-deal input:disabled + .fly-deal-name { color: var(--muted); }
.fly-deal-name { flex: 1; min-width: 0; }
.fly-deal-price { font-weight: 600; color: var(--red-strong); white-space: nowrap; }
.fly-warn { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fff4e5; color: #7a4100; font-weight: 600; font-size: 0.9rem; }
@media (min-width: 860px) { .fly-preview { position: sticky; top: 90px; } }
.fly-canvas { display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto; border-radius: 12px; box-shadow: var(--shadow); background: #f7f5f0; }
