/* Μαγική Σοδειά: design system
   Παλέτα: 72AC81, 95BB77, C0DD8E, F6E88B, F9B862, F49065
   Κανόνας: τα χρώματα της παλέτας είναι επιφάνειες/γεμίσματα. Το κείμενο φοράει πάντα
   σκούρο μελάνι (ink) ώστε να διαβάζεται. Η κατάσταση δεν δηλώνεται ποτέ μόνο με χρώμα. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-greek-wght-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Παλέτα */
  --green: #72AC81;
  --sage: #95BB77;
  --lime: #C0DD8E;
  --butter: #F6E88B;
  --apricot: #F9B862;
  --coral: #F49065;

  /* Επιφάνειες και μελάνια */
  --bg: #F1F2EE;
  --surface: #FFFFFF;
  --surface-2: #F7F8F4;
  --surface-3: #EEF1E9;
  --line: #E3E7DC;
  --line-strong: #D3D9CB;
  --ink: #1F2A22;
  --ink-2: #4E5A51;
  --muted: #7C877E;
  --edge: #DFE4D7;

  /* Ενέργειες */
  --primary: var(--green);
  --primary-hover: #67A176;
  --primary-ink: var(--ink);
  --focus: #3F7A50;

  /* Κατάσταση: απαλό φόντο + σκούρο κείμενο + έντονη κουκκίδα */
  --st-new-bg: #FBF4C4;      --st-new-ink: #6B5A12;      --st-new-dot: #E9CF3E;
  --st-packing-bg: #FDE3BF;  --st-packing-ink: #8A4B12;  --st-packing-dot: var(--apricot);
  --st-ready-bg: #DDEFD6;    --st-ready-ink: #2F6B3F;    --st-ready-dot: var(--green);
  --st-shipped-bg: #ECEEEA;  --st-shipped-ink: #4A5650;  --st-shipped-dot: #A5AEA6;
  --st-cancelled-bg: #FCDCD3; --st-cancelled-ink: #9A3A26; --st-cancelled-dot: var(--coral);

  --r-xl: 24px; --r-lg: 18px; --r-md: 14px; --r-sm: 10px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(31, 42, 34, .05), 0 12px 28px -18px rgba(31, 42, 34, .28);
  --shadow-edge: 0 4px 0 var(--edge);
  --shadow-float: 0 18px 40px -16px rgba(31, 42, 34, .35);
  --sidebar: 256px;
  --tabbar: 76px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.5; font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.icon { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }

/* Δομή εφαρμογής */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--surface);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 16px; z-index: 30;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; border: 2px solid var(--surface); }
.sidebar-foot { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; }
.brand-mark { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -.01em; line-height: 1.15; }
.brand-name small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-md);
  color: var(--ink-2); font-weight: 600; transition: background .15s, color .15s;
}
@media (hover: hover) { .nav a:hover { background: var(--surface-2); color: var(--ink); } }
.nav a.active { background: var(--lime); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(31,42,34,.08); }
.nav a .count { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--butter); color: var(--ink); padding: 1px 8px; border-radius: var(--r-pill); }
.sidebar-cta { margin: 18px 4px 0; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; padding: 6px 8px; }
.user-chip .avatar { width: 34px; height: 34px; font-size: 13px; }
.user-chip b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { color: var(--muted); font-size: 12px; }

.main { margin-left: var(--sidebar); padding: 28px 36px 48px; }
.container { max-width: 1120px; margin: 0 auto; }

.appbar { display: none; }
.tabbar { display: none; }

/* Επικεφαλίδα σελίδας */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
@media (hover: hover) { .back:hover { color: var(--ink); } }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
h2.section { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin: 30px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
h2.section a { font-size: 14px; font-weight: 700; color: #3F7A50; }

/* Κουμπιά */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 1px rgba(31,42,34,.04), 0 3px 8px -4px rgba(31,42,34,.14);
  transition: transform .28s cubic-bezier(.2,.9,.25,1.15), box-shadow .28s cubic-bezier(.2,.8,.2,1), background-color .2s ease, border-color .2s ease, color .2s ease;
  will-change: transform;
}
.btn .icon { transition: transform .28s cubic-bezier(.2,.9,.25,1.2); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); border-color: var(--ink-2); box-shadow: 0 2px 4px rgba(31,42,34,.06), 0 14px 26px -12px rgba(31,42,34,.32); } }
@media (hover: hover) { .btn:hover svg:has(use[href="#i-arrow-right"]) { transform: translateX(3px); } }
@media (hover: hover) { .btn:hover svg:has(use[href="#i-plus"]) { transform: rotate(90deg); } }
@media (hover: hover) { .btn:hover svg:has(use[href="#i-arrow-left"]) { transform: translateX(-3px); } }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; box-shadow: 0 1px 2px rgba(31,42,34,.12); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px rgba(63,122,80,.55); }

/* Κύριο: γέμισμα με ελαφριά διαβάθμιση, εσωτερική λάμψη, "βάση" και σκιά αιώρησης */
.btn-primary {
  background: linear-gradient(180deg, #82BA8F 0%, #72AC81 52%, #69A378 100%); border-color: #67A176; color: var(--primary-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(31,42,34,.08), 0 3px 0 #5C9469, 0 10px 18px -10px rgba(63,122,80,.65);
}
@media (hover: hover) { .btn-primary:hover {
  border-color: #5F9A6E; background: linear-gradient(180deg, #8AC197 0%, #76B085 52%, #6BA67A 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(31,42,34,.08), 0 5px 0 #5C9469, 0 20px 30px -14px rgba(63,122,80,.7);
} }
.btn-primary:active { transform: translateY(3px) scale(.99); box-shadow: inset 0 2px 4px rgba(31,42,34,.18), 0 0 0 #5C9469, 0 4px 8px -6px rgba(63,122,80,.5); }
.btn-accent {
  background: linear-gradient(180deg, #FBC67C 0%, #F9B862 55%, #F4AC50 100%); border-color: #F2A947; color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #D9963F, 0 10px 18px -10px rgba(217,150,63,.75);
}
@media (hover: hover) { .btn-accent:hover { border-color: #E89E3E; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 5px 0 #D9963F, 0 20px 30px -14px rgba(217,150,63,.8); } }
.btn-accent:active { transform: translateY(3px) scale(.99); box-shadow: inset 0 2px 4px rgba(31,42,34,.16), 0 0 0 #D9963F; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); box-shadow: none; }
@media (hover: hover) { .btn-ghost:hover { background: var(--surface-3); border-color: transparent; color: var(--ink); box-shadow: 0 8px 18px -12px rgba(31,42,34,.35); } }
.btn-soft { background: var(--surface-3); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 6px -4px rgba(31,42,34,.2); }
@media (hover: hover) { .btn-soft:hover { background: var(--lime); border-color: transparent; } }
.btn-danger { background: transparent; border-color: transparent; color: #9A3A26; box-shadow: none; }
@media (hover: hover) { .btn-danger:hover { background: var(--st-cancelled-bg); border-color: transparent; } }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; box-shadow: none !important; transform: none !important; filter: saturate(.6); }
.btn[disabled] .icon { transform: none !important; }

/* Κυματάκι στο πάτημα (ripple) */
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .22; transform: scale(0); animation: ripple .6s cubic-bezier(.2,.8,.2,1) forwards; z-index: -1; }
.btn-primary .ripple, .btn-accent .ripple { background: #fff; opacity: .45; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13.5px; }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* Κάρτες */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-edge); padding: 22px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-head h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.card-head .muted { font-size: 13px; }
.card-flush { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-dash { grid-template-columns: 1.15fr .85fr; align-items: start; }

/* Hero (αρχική) */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 28px; color: var(--ink);
  background: var(--green); box-shadow: 0 5px 0 #5C9469; margin-bottom: 18px; min-height: 196px;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 420px; height: 300px; transform: rotate(-24deg);
  background: repeating-linear-gradient(90deg, var(--butter) 0 34px, var(--lime) 34px 68px, var(--sage) 68px 102px, transparent 102px 118px);
  opacity: .9; border-radius: 28px;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: rgba(31,42,34,.7); }
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.hero p { margin: 0 0 20px; color: rgba(31,42,34,.78); font-weight: 600; max-width: 46ch; }
.hero .actions .btn:not(.btn-accent) { background: rgba(255,255,255,.9); border-color: transparent; }
.hero-stats { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.hero-stat { background: rgba(255,255,255,.88); border-radius: var(--r-md); padding: 10px 14px; min-width: 120px; }
.hero-stat b { font-size: 24px; font-weight: 800; display: block; line-height: 1.1; }
.hero-stat span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

/* Πλακίδια κατάστασης */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { position: relative; border-radius: var(--r-lg); padding: 18px 18px 16px; color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: transform .3s cubic-bezier(.2,.9,.25,1.15), filter .3s; }
@media (hover: hover) { .tile:hover { transform: translateY(-4px); filter: drop-shadow(0 14px 16px rgba(31,42,34,.16)); } }
.tile:active { transform: translateY(0) scale(.98); }
.tile .tile-tab { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); width: 34px; height: 18px; border-radius: var(--r-pill); background: var(--surface); border: 2px solid rgba(31,42,34,.12); }
.tile .tile-top { display: flex; align-items: center; justify-content: space-between; }
.tile .tile-icon { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.65); display: flex; align-items: center; justify-content: center; }
.tile b { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.tile span { font-weight: 700; font-size: 14px; }
.tile.t-new { background: var(--butter); box-shadow: 0 4px 0 #E2CF6B; }
.tile.t-packing { background: var(--apricot); box-shadow: 0 4px 0 #DE9A45; }
.tile.t-ready { background: var(--lime); box-shadow: 0 4px 0 #A6C576; }

/* Δακτύλιος */
.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut { width: 148px; height: 148px; flex-shrink: 0; position: relative; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 5.5; }
.donut .track { stroke: var(--surface-3); }
.donut .seg-new { stroke: var(--butter); }
.donut .seg-packing { stroke: var(--apricot); }
.donut .seg-ready { stroke: var(--green); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center b { font-size: 30px; font-weight: 800; line-height: 1; }
.donut-center span { font-size: 12px; color: var(--muted); font-weight: 600; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.legend li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.legend .sw { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.legend b { margin-left: auto; font-weight: 800; }
.sw-new { background: var(--butter); box-shadow: inset 0 0 0 1px rgba(31,42,34,.15); }
.sw-packing { background: var(--apricot); }
.sw-ready { background: var(--green); }

/* Μπάρες (μία σειρά, ένα χρώμα) */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.bar-row .bar-label { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar-value { font-weight: 800; font-size: 14px; }
.bar-track { grid-column: 1 / -1; height: 12px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 0 6px 6px 0; background: var(--green); min-width: 6px; }

/* Λίστες γραμμών */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-edge); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); transition: background .12s; }
.row:first-child { border-top: 0; }
@media (hover: hover) { a.row:hover, .row.hoverable:hover { background: var(--surface-2); } }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-main strong { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main small { color: var(--muted); font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.row-side .amount { font-weight: 800; font-size: 14.5px; }
.row .chev { color: var(--line-strong); }
.order-no { font-weight: 800; color: var(--ink-2); font-size: 13px; background: var(--surface-3); border-radius: 8px; padding: 2px 7px; margin-right: 6px; }
.meta-dot::before { content: "·"; margin: 0 6px; color: var(--line-strong); }

/* Avatar */
.avatar { width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; color: var(--ink); background: var(--lime); }
.avatar.t-butcher { background: #FBD3C1; }
.avatar.t-minimarket { background: var(--butter); }
.avatar.t-deli { background: var(--lime); }
.avatar.t-other { background: var(--surface-3); }
.avatar-xl { width: 68px; height: 68px; border-radius: 22px; font-size: 24px; }

/* Ετικέτες κατάστασης */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge.st-new { background: var(--st-new-bg); color: var(--st-new-ink); }
.badge.st-new::before { background: var(--st-new-dot); }
.badge.st-packing { background: var(--st-packing-bg); color: var(--st-packing-ink); }
.badge.st-packing::before { background: var(--st-packing-dot); }
.badge.st-ready { background: var(--st-ready-bg); color: var(--st-ready-ink); }
.badge.st-ready::before { background: var(--st-ready-dot); }
.badge.st-shipped { background: var(--st-shipped-bg); color: var(--st-shipped-ink); }
.badge.st-shipped::before { background: var(--st-shipped-dot); }
.badge.st-cancelled { background: var(--st-cancelled-bg); color: var(--st-cancelled-ink); }
.badge.st-cancelled::before { background: var(--st-cancelled-dot); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-3); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.chip-late { background: var(--st-cancelled-bg); color: #9A3A26; }
.chip-vegan { background: #E4F1D6; color: #2F6B3F; }

/* Επιλογή κατάστασης (χρωματιστό χάπι) */
.status-form { margin: 0; }
.status-select { width: auto; min-height: 34px; padding: 5px 30px 5px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; border: 1px solid transparent; background-position: right 10px center; cursor: pointer; }
.status-select.st-new { background-color: var(--st-new-bg); color: var(--st-new-ink); }
.status-select.st-packing { background-color: var(--st-packing-bg); color: var(--st-packing-ink); }
.status-select.st-ready { background-color: var(--st-ready-bg); color: var(--st-ready-ink); }
.status-select.st-shipped { background-color: var(--st-shipped-bg); color: var(--st-shipped-ink); }
.status-select.st-cancelled { background-color: var(--st-cancelled-bg); color: var(--st-cancelled-ink); }
@media (hover: hover) { .status-select:hover { border-color: rgba(31,42,34,.25); } }

/* Φόρμες */
label, .label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea {
  font: inherit; font-size: 15px; width: 100%; padding: 12px 14px; min-height: 46px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .15s, background .15s, box-shadow .15s;
}
textarea { min-height: 90px; resize: vertical; }
@media (hover: hover) { input:hover, select:hover, textarea:hover { border-color: var(--line-strong); } }
input:focus, select:focus, textarea:focus { outline: none; background: var(--surface); border-color: var(--green); box-shadow: 0 0 0 4px rgba(114, 172, 129, .22); }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--green); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234E5A51' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .span2 { grid-column: 1 / -1; }
.field.check { display: flex; align-items: center; gap: 10px; }
.field.check label { margin: 0; }
.field .error { color: #9A3A26; font-weight: 600; font-size: 13px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.form-section-title { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); grid-column: 1 / -1; margin-top: 6px; }

.search { position: relative; flex: 1 1 280px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 44px; background: var(--surface); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar select { width: auto; min-width: 190px; background-color: var(--surface); }
.date-input { width: auto; background: var(--surface); }

/* Segmented tabs */
.segmented { display: flex; gap: 6px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; width: max-content; max-width: 100%; }
.segmented::-webkit-scrollbar { display: none; }
.segmented a { transition: background-color .2s, color .2s, transform .2s cubic-bezier(.2,.9,.25,1.3); padding: 8px 16px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
@media (hover: hover) { .segmented a:hover { background: var(--surface-2); color: var(--ink); } }
.segmented a.active { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -8px rgba(31,42,34,.6); }
.segmented a:active { transform: scale(.96); }
.segmented .n { font-size: 12px; opacity: .75; }

/* Πίνακες */
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 12px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 800; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 0; }
.table .code { color: var(--muted); font-weight: 600; font-size: 13px; }
.table tr.packed td:not(.num) { color: var(--muted); }
.check-ok { color: #3F7A50; }

/* Φόρμα παραγγελίας */
.customer-card { display: flex; align-items: center; gap: 14px; }
.customer-card .row-main strong { font-size: 17px; }
.product-tools { position: sticky; top: 12px; z-index: 5; margin-bottom: 14px; }
.product-group { margin-bottom: 16px; padding: 8px 8px 8px; }
.product-group-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 8px; }
.product-group-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.product-group-head .dot { width: 10px; height: 10px; border-radius: 4px; background: var(--green); }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); transition: background .12s; }
.product-row + .product-row { border-top: 1px solid var(--line); }
.product-row.has-qty { background: #F2F8EC; }
.product-row.has-qty + .product-row { border-top-color: transparent; }
.product-row.hidden { display: none; }
.p-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.p-info strong { font-weight: 700; }
.p-info small { color: var(--muted); font-size: 13px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: var(--r-pill); flex-shrink: 0; }
.stepper input { width: 54px; min-height: 36px; padding: 6px 2px; text-align: center; font-weight: 800; font-size: 16px; border: 0; background: transparent; border-radius: var(--r-pill); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; background: var(--surface); }
.step { position: relative; overflow: hidden; isolation: isolate; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); font-size: 20px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(31,42,34,.14), 0 4px 10px -6px rgba(31,42,34,.35); transition: transform .25s cubic-bezier(.2,.9,.25,1.3), box-shadow .25s, background-color .15s; }
@media (hover: hover) { .step:hover { background: var(--lime); transform: translateY(-1px) scale(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 4px rgba(31,42,34,.12), 0 10px 16px -8px rgba(31,42,34,.4); } }
.step:active { transform: scale(.9); transition-duration: .07s; box-shadow: inset 0 2px 3px rgba(31,42,34,.18); }
.has-qty .stepper { background: var(--lime); }

.summary-bar {
  position: sticky; bottom: 16px; z-index: 20; margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 14px 14px 14px 22px; box-shadow: var(--shadow-float);
}
.summary-bar .sum-main { display: flex; flex-direction: column; min-width: 0; }
.summary-bar .sum-main b { font-size: 18px; font-weight: 800; }
.summary-bar .sum-main small { color: #C9D2CB; font-size: 13px; font-weight: 600; }
.summary-bar .sum-boxes { display: inline-flex; align-items: center; gap: 6px; }
.summary-bar .btn-primary { box-shadow: none; }

/* Λεπτομέρεια παραγγελίας: χρονολόγιο */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tl-step { display: flex; flex-direction: column; gap: 8px; }
.tl-bar { height: 8px; border-radius: var(--r-pill); background: var(--surface-3); }
.tl-step.done .tl-bar { background: var(--green); }
.tl-step.current .tl-bar { background: linear-gradient(90deg, var(--green) 50%, var(--surface-3) 50%); }
.tl-step b { font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.tl-step small { color: var(--muted); font-size: 12.5px; }
.tl-step.done b, .tl-step.current b { color: var(--ink); }
.tl-step:not(.done):not(.current) b { color: var(--muted); }
.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.info-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 4px; border-top: 1px solid var(--line); }
.info-item:nth-child(-n+2) { border-top: 0; }
.info-item .ii-icon { width: 36px; height: 36px; border-radius: 12px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; color: var(--ink-2); flex-shrink: 0; }
.info-item .ii-label { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.info-item .ii-value { font-weight: 700; }
.info-item .ii-value a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.boxes-hero { display: flex; align-items: center; gap: 16px; }
.boxes-hero .big { width: 64px; height: 64px; border-radius: 20px; background: var(--butter); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; box-shadow: 0 4px 0 #E2CF6B; flex-shrink: 0; }
.danger-zone { display: flex; justify-content: flex-end; margin-top: 14px; }

/* Πακετάρισμα */
.pack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
.pack-grid > .card { margin-top: 0; }
.pack-card { padding: 0; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.pack-card .pack-head { padding: 18px 20px 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pack-card .pack-head strong { font-size: 16px; font-weight: 800; display: block; }
.pack-card .pack-head small { color: var(--muted); font-weight: 600; }
.progress { display: flex; align-items: center; gap: 10px; padding: 0 20px 14px; }
.progress .track { flex: 1; height: 10px; background: var(--surface-3); border-radius: var(--r-pill); overflow: hidden; }
.progress .fill { height: 100%; background: var(--apricot); border-radius: var(--r-pill); transition: width .25s ease; }
.pack-card.all-packed .progress .fill { background: var(--green); }
.progress small { font-weight: 800; font-size: 13px; min-width: 44px; text-align: right; }
.note { margin: 0 20px 12px; background: var(--st-new-bg); color: var(--st-new-ink); border-radius: var(--r-md); padding: 10px 12px; font-weight: 600; font-size: 14px; display: flex; gap: 8px; }
.pack-lines { list-style: none; margin: 0; padding: 0 10px 8px; }
.pack-toggle { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 10px; min-height: 56px; background: none; border: 0; border-radius: var(--r-md); cursor: pointer; text-align: left; font: inherit; color: inherit; }
@media (hover: hover) { .pack-toggle:hover { background: var(--surface-2); } }
.pack-lines li + li .pack-toggle { border-top: 1px solid var(--line); border-radius: 0; }
.pack-toggle .box { width: 28px; height: 28px; border: 2px solid var(--line-strong); border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--surface); transition: background .15s, border-color .15s; }
.pack-toggle .box svg { opacity: 0; color: var(--ink); transition: opacity .15s; }
.pack-toggle .qty { font-weight: 800; font-size: 20px; min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.pack-toggle .pname { display: flex; flex-direction: column; min-width: 0; font-weight: 700; }
.pack-toggle .pname small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.pack-lines li.done .box { background: var(--green); border-color: var(--green); }
.pack-lines li.done .box svg { opacity: 1; }
.pack-lines li.done .qty, .pack-lines li.done .pname > span { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.box-block { background: var(--surface-2); border-top: 1px solid var(--line); padding: 16px 20px 18px; transition: background .2s; }
.pack-card.all-packed { border-color: #B9D9A5; box-shadow: 0 4px 0 #B9D9A5; }
.pack-card.all-packed .box-block { background: #EEF7E6; }
.box-suggest { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.box-suggest .bs-icon { width: 34px; height: 34px; border-radius: 11px; background: var(--butter); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.box-suggest small { display: block; color: var(--muted); font-weight: 600; }
.ready-form { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.boxes-label { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; color: var(--ink); font-weight: 700; }
.override-note { flex-basis: 100%; color: #8A4B12; font-weight: 700; font-size: 13px; }
.pack-actions { display: flex; gap: 8px; }

/* Φόρτωση */
.scan-card { margin-bottom: 16px; }
.scan-row { display: flex; gap: 10px; flex-wrap: wrap; }
.scan-input { flex: 1 1 320px; }
.scan-input input { font-size: 18px; font-weight: 700; min-height: 54px; background: var(--surface-2); letter-spacing: .02em; }
.scan-feedback { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2); font-weight: 700; transition: background .2s, color .2s; }
.scan-feedback.is-ok { background: var(--st-ready-bg); color: var(--st-ready-ink); }
.scan-feedback.is-done { background: var(--green); color: var(--ink); }
.scan-feedback.is-warn { background: var(--st-new-bg); color: var(--st-new-ink); }
.scan-feedback.is-error { background: var(--st-cancelled-bg); color: var(--st-cancelled-ink); }
.camera-view { width: 100%; max-height: 300px; margin-top: 12px; border-radius: var(--r-md); background: #000; object-fit: cover; }
.box-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.box-chip { transition: transform .22s cubic-bezier(.2,.9,.25,1.3), box-shadow .22s, background-color .2s; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px 4px 8px; border-radius: var(--r-pill); border: 1.5px dashed var(--line-strong); background: var(--surface); font: inherit; font-weight: 800; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.box-chip .icon { opacity: .25; }
@media (hover: hover) { .box-chip:hover { transform: translateY(-1px); box-shadow: 0 8px 14px -10px rgba(31,42,34,.4); } }
.box-chip:active { transform: scale(.95); }
.box-chip.loaded { background: var(--green); border: 1.5px solid var(--green); color: var(--ink); }
.box-chip.loaded .icon { opacity: 1; }
.box-chip.flash { animation: chip-flash .6s ease; }
@keyframes chip-flash { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }
.load-row { align-items: flex-start; transition: opacity .35s, transform .35s; }
.load-row.leaving { opacity: 0; transform: translateX(24px); }
@media (hover: hover) { .load-row .row-main strong a:hover { text-decoration: underline; } }
.load-row .row-main small { white-space: normal; }
.doc-ok { color: #2F6B3F; font-weight: 700; }
.doc-pending { color: #8A4B12; font-weight: 700; }

/* Παραγωγή */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-edge); padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.kpi .kpi-icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kpi b { font-size: 26px; font-weight: 800; display: block; line-height: 1.1; }
.kpi span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.kpi b span { font-size: inherit; color: inherit; font-weight: inherit; }
.prod-group + .prod-group { margin-top: 16px; }
.prod-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(120px, 1fr) 64px; gap: 16px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); }
.prod-row:first-of-type { border-top: 0; }
.prod-row .p-name { min-width: 0; }
.prod-row .p-name strong { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-row .p-name small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.prod-row .bar-track { grid-column: auto; }
.prod-row .p-total { text-align: right; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }

/* Μηνύματα (toast) */
.messages { position: fixed; top: 18px; right: 18px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.msg { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--r-md); background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--shadow-float); animation: toast-in .25s ease, toast-out .35s ease 4.6s forwards; }
.msg .icon { color: var(--lime); margin-top: 1px; }
.msg-error .icon { color: var(--coral); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); visibility: hidden; } }

.empty { text-align: center; padding: 42px 20px; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-xl); }
.empty .icon { margin: 0 auto 10px; width: 34px; height: 34px; color: var(--sage); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* Σύνδεση */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-art { position: relative; overflow: hidden; background: var(--green); padding: 48px; display: flex; flex-direction: column; justify-content: flex-start; gap: 72px; color: var(--ink); }
.login-art .brand-mark { width: 54px; height: 54px; background: rgba(255,255,255,.85); border-radius: 50%; padding: 3px; }
.login-logo { width: 132px; height: auto; display: block; margin: 0 0 18px -6px; }
.login-art::before { content: ""; position: absolute; left: -10%; bottom: -42%; width: 140%; height: 82%; transform: rotate(-28deg);
  background: repeating-linear-gradient(90deg, var(--butter) 0 70px, var(--lime) 70px 140px, var(--sage) 140px 210px, var(--apricot) 210px 222px, transparent 222px 250px); opacity: .95; }
.login-art > * { position: relative; }
.login-art .brand-name { font-size: 20px; }
.login-art h2 { font-size: 40px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin: 0; max-width: 12ch; }
.login-art p { font-weight: 600; color: rgba(31,42,34,.78); max-width: 34ch; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--bg); }
.login-card { width: 100%; max-width: 400px; }
.login-card h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.02em; }
.login-card form { display: grid; gap: 16px; margin-top: 22px; }
.alert { padding: 12px 14px; border-radius: var(--r-md); background: var(--st-cancelled-bg); color: #9A3A26; font-weight: 700; font-size: 14px; }

/* Εκτύπωση */
.print-page { background: #fff; font-size: 14px; }
.print-sheet { max-width: 780px; margin: 0 auto; padding: 28px; }
.print-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 16px; }
.print-head h1 { margin: 0; font-size: 24px; }
.print-head .right { text-align: right; }
.print-cust { margin-bottom: 16px; line-height: 1.6; }
.print-table { border: 1px solid #999; border-radius: 0; }
.print-table th, .print-table td { border-bottom: 1px solid #bbb; padding: 9px 10px; }
.print-table .chk { width: 36px; text-align: center; font-size: 18px; }
.print-boxes { margin-top: 14px; padding: 12px 14px; border: 1px solid #999; display: flex; justify-content: space-between; }
.print-sign { display: flex; justify-content: space-between; margin-top: 36px; gap: 16px; }

/* Φύλλο εκτύπωσης λίστας παραγωγής: συμπαγές, χωρίς κάρτες, ώστε να χωράει σε ένα A4 */
.print-only { display: none; }
@media print {
  .page-production .page-head, .page-production .kpis, .page-production .prod-group .card-head .muted, .page-production .bar-track, .page-production .empty .icon { display: none !important; }
  .page-production .print-only { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px solid #000; padding-bottom: 2mm; margin-bottom: 3mm; font-size: 10pt; }
  .page-production .print-only h1 { font-size: 14pt; margin: 0; }
  .page-production .prod-group { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; margin: 0 0 2mm !important; }
  .page-production .prod-group .card-head { margin: 0; padding: 0 0 .4mm; border-bottom: 1px solid #000; break-after: avoid; }
  .page-production .prod-group .card-head h3 { font-size: 9pt; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
  .page-production .prod-row { display: grid; grid-template-columns: 1fr 16mm; gap: 3mm; align-items: baseline; padding: .35mm 0; border-top: 0; border-bottom: .2mm solid #c8c8c8; font-size: 8.5pt; line-height: 1.15; break-inside: avoid; }
  .page-production .prod-row .p-name { display: flex; gap: 2mm; align-items: baseline; }
  .page-production .prod-row .p-name strong { font-size: 8.5pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-production .prod-row .p-name small { font-size: 7pt; color: #444; white-space: nowrap; }
  .page-production .prod-row .p-total { font-size: 9.5pt; }
  .page-production .main { padding: 0 !important; }
  .page-production .container { max-width: none; }
}
@page { margin: 10mm; }

@media print {
  .no-print, .sidebar, .appbar, .tabbar, .messages { display: none !important; }
  body { background: #fff; }
  .main { margin: 0; padding: 0; }
  .card, .list, .kpi { box-shadow: none; border-color: #bbb; }
}

/* Tablet */
@media (max-width: 1180px) {
  .main { padding: 24px 24px 48px; }
  .grid-dash { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: 1fr; }
}

/* Κινητό */
@media (max-width: 900px) {
  body { font-size: 15px; }
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 14px 16px calc(var(--tabbar) + 32px + env(safe-area-inset-bottom)); }
  .appbar {
    display: flex; position: sticky; top: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: rgba(241, 242, 238, .86);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(227,231,220,.8);
  }
  .appbar .brand { padding: 0; gap: 10px; }
  .appbar .brand-mark { width: 38px; height: 38px; }
  .appbar .brand-name { font-size: 15px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom)); height: 66px; background: var(--surface); border: 1px solid var(--line);
    border-radius: 24px; box-shadow: var(--shadow-float); z-index: 50; padding: 0 4px;
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 66px; font-size: 11px; font-weight: 700; color: var(--muted); }
  .tabbar a .icon { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--ink); }
  .tabbar a.active .ic-wrap { background: var(--lime); }
  .tabbar .ic-wrap { width: 44px; height: 28px; border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; transition: background .15s; }
  .tabbar a.fab { justify-content: flex-start; }
  .tabbar a.fab .ic-wrap { width: 58px; height: 58px; border-radius: 20px; background: linear-gradient(180deg, #FBC67C, #F4AC50); color: var(--ink); margin-top: -22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 0 #D9963F, var(--shadow-float); transition: transform .25s cubic-bezier(.2,.9,.25,1.3), box-shadow .25s; }
  .tabbar a.fab:active .ic-wrap { transform: translateY(3px) scale(.96); box-shadow: inset 0 2px 4px rgba(31,42,34,.15), 0 1px 0 #D9963F; }
  .tabbar a .ic-wrap { transition: background-color .2s, transform .2s cubic-bezier(.2,.9,.25,1.3); }
  .tabbar a:active .ic-wrap { transform: scale(.92); }
  .tabbar a.fab .icon { width: 26px; height: 26px; stroke-width: 2.4; }

  .page-head { margin-bottom: 16px; align-items: flex-start; }
  .page-head h1 { font-size: 24px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .card { padding: 18px; border-radius: 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 22px; min-height: 0; }
  .hero::after { width: 300px; height: 220px; right: -120px; top: -60px; opacity: .55; }
  .hero h1 { font-size: 25px; }
  .hero .actions .btn { flex: 1 1 140px; }
  .hero-stat { flex: 1; min-width: 0; }
  .tiles { gap: 10px; }
  .tile { padding: 14px 12px 12px; }
  .tile b { font-size: 26px; }
  .tile span { font-size: 12.5px; }
  .tile .tile-icon { width: 32px; height: 32px; }
  .donut-wrap { gap: 16px; }
  .donut { width: 120px; height: 120px; }
  .row { padding: 13px 14px; gap: 12px; }
  .row .chev { display: none; }
  .row-side .amount { font-size: 13.5px; }
  .avatar { width: 40px; height: 40px; border-radius: 13px; }
  .toolbar select { flex: 1; min-width: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { position: sticky; bottom: calc(var(--tabbar) + 18px); }
  .form-actions .btn { flex: 1; }
  .info-list { grid-template-columns: 1fr; }
  .info-item:nth-child(2) { border-top: 1px solid var(--line); }
  .timeline b { font-size: 12px; }
  .timeline small { display: none; }
  .summary-bar { padding: 12px 12px 12px 18px; border-radius: 20px; }
  .summary-bar .btn { padding: 10px 16px; }
  .summary-bar .btn .label-long { display: none; }
  .product-tools { top: 66px; }
  .product-row { padding: 10px 6px; }
  .stepper input { width: 46px; }
  .table th, .table td { padding: 12px 12px; }
  .table .hide-sm { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpis .kpi:first-child { grid-column: 1 / -1; }
  .kpi { padding: 14px; }
  .prod-row { grid-template-columns: minmax(0, 1fr) 56px; gap: 6px 12px; }
  .prod-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .hide-sm { display: none !important; }
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 250px; padding: 28px 22px; }
  .login-art h2 { font-size: 30px; }
  .login-art p { display: none; }
  .login-panel { padding: 24px 18px 40px; align-items: flex-start; }
  .messages { top: auto; bottom: calc(var(--tabbar) + 26px); left: 16px; right: 16px; max-width: none; }
  .card.pack-card, .card.card-flush { padding: 0; }
  .summary-bar { bottom: calc(var(--tabbar) + 34px); }
  .login-art { gap: 28px; }
  .login-art::before { left: 20%; bottom: -55%; width: 120%; height: 100%; opacity: .55; }
  .row-main strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
  .row-main small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .row .avatar { width: 36px; height: 36px; font-size: 13px; border-radius: 12px; align-self: flex-start; }
  .row-order .avatar { display: none; }
  .row-side .badge { font-size: 11.5px; padding: 3px 9px 3px 7px; }
  .customer-card .actions { width: 100%; flex-wrap: nowrap; }
  .customer-card .actions .btn { padding-left: 12px; padding-right: 12px; }
  .customer-card .actions .btn:not(.btn-icon) { flex: 1; }
  .page-head .actions.desktop-only, .desktop-only { display: none !important; }
}
@media (max-width: 380px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
