:root {
  --ink: #142017;
  --muted: #687567;
  --line: #e2eadf;
  --paper: #fbfcf7;
  --panel: #ffffff;
  --green: #1f7a43;
  --green-dark: #155b33;
  --red: #c83b31;
  --gold: #d69c2f;
  --soft: #f0f6eb;
  --shadow: 0 24px 80px rgba(34, 48, 28, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% -10%, rgba(31, 122, 67, .14), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(200, 59, 49, .10), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 42%, #f7faf3 100%);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 234, 223, .82);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f7a43, #8abf3f);
  color: #fff;
  box-shadow: 0 14px 30px rgba(31, 122, 67, .20);
}

.brand small { display: block; color: var(--muted); font-weight: 750; }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a,
.nav button,
.btn {
  position: relative;
  overflow: hidden;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  background: #fff;
  color: #203125;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease, color .22s ease;
}

.nav a::after,
.nav button::after,
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 28%, rgba(255,255,255,.42) 45%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .55s ease;
  pointer-events: none;
}

.nav a:hover,
.nav button:hover,
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 67, .38);
  box-shadow: 0 16px 34px rgba(21, 42, 25, .12);
}

.nav a:hover::after,
.nav button:hover::after,
.btn:hover::after {
  transform: translateX(120%);
}

.nav a.active,
.btn.primary {
  border-color: var(--green);
  background: linear-gradient(135deg, #1f7a43, #145f34);
  color: #fff;
  box-shadow: 0 14px 34px rgba(31, 122, 67, .18);
}

.btn.danger { border-color: #ffd9d6; color: var(--red); }
.btn.full { width: 100%; }

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 26px;
  align-items: stretch;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.72)),
    radial-gradient(circle at 80% 30%, rgba(31,122,67,.16), transparent 32%);
  box-shadow: var(--shadow);
}

.client-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(30px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid rgba(31, 122, 67, .18);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,250,241,.86)),
    radial-gradient(circle at 88% 18%, rgba(214,156,47,.18), transparent 28%),
    radial-gradient(circle at 16% 90%, rgba(31,122,67,.16), transparent 30%);
  box-shadow: var(--shadow);
}

.client-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 330px;
  height: 330px;
  border-radius: 999px;
  border: 54px solid rgba(31, 122, 67, .06);
  pointer-events: none;
}

.client-hero h1 { font-size: clamp(38px, 5vw, 64px); }

.deadline-card {
  display: grid;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  margin-top: 22px;
  padding: 13px 16px;
  border: 1px solid rgba(31, 122, 67, .20);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 36px rgba(31, 122, 67, .08);
}

.deadline-card strong { color: var(--green-dark); }
.deadline-card span { color: var(--muted); font-size: 14px; font-weight: 750; }
.deadline-card.closed { border-color: rgba(200, 59, 49, .24); }
.deadline-card.closed strong { color: var(--red); }

.hero-btn {
  min-height: 48px;
  padding-inline: 20px;
}

.btn.ghost {
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px);
}

.dashboard-panel {
  display: grid;
  gap: 14px;
  align-content: stretch;
  position: relative;
  z-index: 1;
}

.dashboard-stat {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid rgba(226, 234, 223, .86);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 42px rgba(34, 48, 28, .07);
}

.dashboard-stat strong {
  font-size: 30px;
  line-height: 1;
}

.dashboard-stat span,
.dashboard-stat small {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-stat.accent {
  background: linear-gradient(135deg, #17351f, #1f7a43);
  color: #fff;
}

.dashboard-stat.accent span,
.dashboard-stat.accent small { color: rgba(255,255,255,.75); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { font-size: clamp(36px, 6vw, 68px); max-width: 760px; }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: 20px; }

.lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.produce-card {
  min-height: 300px;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 25% 20%, rgba(200,59,49,.95) 0 13%, transparent 14%),
    radial-gradient(circle at 60% 35%, rgba(31,122,67,.90) 0 12%, transparent 13%),
    linear-gradient(145deg, #21351f, #0f1b13);
  color: #fff;
  overflow: hidden;
}

.produce-icons { display: flex; gap: 10px; font-size: 48px; }
.produce-card p { margin: 0; color: rgba(255,255,255,.75); }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.section { margin-top: 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }

.panel,
.stat,
.table-card,
.form-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 16px 48px rgba(34, 48, 28, .06);
}

.panel { padding: 22px; }
.stat { padding: 20px; }
.stat strong { display: block; font-size: 28px; }
.stat span { color: var(--muted); font-weight: 750; }

.price-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.price-card {
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 122, 67, .28);
  box-shadow: 0 24px 54px rgba(34, 48, 28, .10);
}

.product-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 15px;
  background: #eef7e9;
  font-size: 25px;
}

.price-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(31,122,67,.10);
}

.price-card.tomato::after { background: rgba(200,59,49,.12); }
.price-card h3 { margin-bottom: 8px; }
.price { font-size: 30px; font-weight: 950; }
.unit { color: var(--muted); font-weight: 750; }
.currency-note {
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid rgba(31, 122, 67, .16);
  border-radius: 16px;
  background: #f4faf0;
  color: var(--muted);
  font-weight: 750;
}

.table-card { overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #445044; background: #f6f9f2; font-size: 13px; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6e9;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.badge.pending { background: #fff5dc; color: #8a5d00; }
.badge.accepted { background: #eaf4ff; color: #145a92; }
.badge.preparing { background: #fff1df; color: #94530d; }
.badge.loaded { background: #edf0ff; color: #3940a0; }
.badge.delivered { background: #e9f7ef; color: #19603a; }
.badge.completed { background: #e9f7ef; color: #19603a; }
.badge.cancelled { background: #ffeceb; color: #9c2f27; }

.form-card { padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

label { display: grid; gap: 7px; color: #475447; font-size: 13px; font-weight: 850; }
input, select, textarea {
  width: 100%;
  border: 1px solid #dce6d8;
  border-radius: 14px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(31, 122, 67, .72);
  box-shadow: 0 0 0 4px rgba(31, 122, 67, .10);
}
textarea { resize: vertical; }

.order-lines { display: grid; gap: 12px; }
.order-line {
  display: grid;
  grid-template-columns: 1fr 150px 120px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.order-workspace {
  display: grid;
  gap: 18px;
}

.order-head {
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,246,235,.92));
  box-shadow: 0 18px 48px rgba(34, 48, 28, .06);
}

.order-head [data-order-total] {
  min-width: 250px;
  padding: 14px 18px;
  border-radius: 18px;
  background: #142017;
  color: #fff;
  text-align: center;
  font-size: 24px;
}

.wow-order-form {
  padding: clamp(18px, 3vw, 28px);
}

.wow-order-line {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) 130px;
  padding: 18px;
  border-radius: 22px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.wow-order-line:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 67, .25);
  box-shadow: 0 16px 38px rgba(34, 48, 28, .08);
}

.order-product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-product .product-icon {
  margin: 0;
  flex: 0 0 auto;
}

.order-product-copy {
  display: grid;
  gap: 7px;
}

.order-product-copy strong {
  font-size: 20px;
}

.quality-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.quality-pill.first {
  background: #e7f7eb;
  color: #17623a;
  border: 1px solid rgba(31, 122, 67, .18);
}

.quality-pill.second {
  background: #fff2d8;
  color: #8a5800;
  border: 1px solid rgba(214, 156, 47, .28);
}

.qty-control {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 8px;
  align-items: end;
}

.qty-control label {
  gap: 5px;
}

.qty-control label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.qty-control input {
  min-height: 44px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.qty-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 950;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.qty-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(31, 122, 67, .12);
}

.line-total {
  justify-self: end;
  align-self: center;
  color: var(--ink);
  font-weight: 950;
  text-align: right;
}

.order-note {
  padding: 16px;
  border: 1px solid rgba(31, 122, 67, .16);
  border-radius: 18px;
  background: linear-gradient(135deg, #fbfdf8, #f0f7eb);
}

.order-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.order-note textarea {
  min-height: 104px;
  background: rgba(255,255,255,.88);
}

.total-box {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: #142017;
  color: #fff;
}
.total-box strong { font-size: 24px; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(115deg, rgba(8, 17, 12, .92), rgba(13, 46, 31, .72)),
    radial-gradient(circle at 18% 12%, rgba(238, 194, 93, .22), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(31, 122, 67, .24), transparent 30%),
    linear-gradient(135deg, #08110c, #183b27 54%, #d7c28b);
  overflow-x: hidden;
}
.login-card {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) 420px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .30);
}
.wow-login .login-art {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: clamp(34px, 5vw, 56px);
  background:
    linear-gradient(180deg, rgba(6, 16, 10, .16), rgba(6, 16, 10, .92)),
    linear-gradient(135deg, #102016, #225c38 58%, #ddc079);
  color: #fff;
  isolation: isolate;
}
.wow-login .login-art::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  pointer-events: none;
  z-index: -1;
}
.login-art p { max-width: 600px; color: rgba(255,255,255,.78); font-size: 17px; }
.wow-login h1 {
  max-width: 620px;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}
.login-brand {
  position: absolute;
  left: clamp(34px, 5vw, 58px);
  top: clamp(30px, 4vw, 46px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: rgba(7, 20, 12, .30);
  backdrop-filter: blur(18px);
}
.login-brand strong { display: block; font-size: 15px; line-height: 1; }
.login-brand small { display: block; margin-top: 4px; color: rgba(255,255,255,.72); font-weight: 800; }
.greenhouse-scene {
  position: absolute;
  inset: 104px 34px 245px;
  z-index: -1;
  overflow: hidden;
  border-radius: 22px;
  opacity: .55;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(255,255,255,.14) 10.4% 10.8%, transparent 11.2% 25%, rgba(255,255,255,.12) 25.4% 25.8%, transparent 26.2% 40%, rgba(255,255,255,.10) 40.4% 40.8%, transparent 41.2%),
    linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.03));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.greenhouse-scene::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 18%;
  height: 70%;
  border: 2px solid rgba(255,255,255,.36);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 82% 82% 0 0;
}
.greenhouse-scene::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 34%;
  background:
    repeating-linear-gradient(90deg, rgba(13, 76, 43, .72) 0 10px, rgba(18, 95, 51, .52) 10px 28px),
    linear-gradient(#347647, #18351f);
}
.sun {
  position: absolute;
  right: 14%;
  top: 10%;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #ffd36d;
  box-shadow: 0 0 60px rgba(255, 211, 109, .88);
}
.glass {
  position: absolute;
  top: 18%;
  bottom: 20%;
  width: 2px;
  background: rgba(255,255,255,.28);
  transform-origin: bottom;
}
.glass-one { left: 32%; transform: rotate(16deg); }
.glass-two { right: 32%; transform: rotate(-16deg); }
.vine {
  position: absolute;
  bottom: 18%;
  width: 190px;
  height: 150px;
  border-left: 5px solid rgba(28, 98, 48, .92);
  border-radius: 50%;
}
.vine-one { left: 17%; transform: rotate(-18deg); }
.vine-two { right: 18%; transform: rotate(20deg); }
.tomato-dot {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ff6459, #bd241b);
  box-shadow: 0 12px 28px rgba(95, 14, 12, .24);
}
.dot-one { left: 28%; bottom: 27%; }
.dot-two { left: 38%; bottom: 18%; width: 26px; height: 26px; }
.cucumber-shape {
  position: absolute;
  right: 25%;
  bottom: 22%;
  width: 92px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8fd36a, #1f7a43);
  transform: rotate(-18deg);
  box-shadow: 0 12px 28px rgba(11, 60, 31, .22);
}
.login-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.login-highlights span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  backdrop-filter: blur(12px);
}
.login-form {
  display: grid;
  align-content: center;
  padding: clamp(30px, 5vw, 50px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,247,.96)),
    radial-gradient(circle at 100% 0, rgba(214,156,47,.13), transparent 34%);
}
.login-form h2 { font-size: clamp(30px, 4vw, 46px); }
.login-form .muted { margin: 12px 0 22px; }
.login-form input {
  min-height: 52px;
  border-radius: 18px;
  border-color: #d8e4d2;
  box-shadow: 0 10px 28px rgba(31, 122, 67, .04);
}
.login-form input:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(31, 122, 67, .11), 0 16px 34px rgba(31, 122, 67, .10);
}
.login-form .btn {
  min-height: 56px;
  margin-top: 4px;
  box-shadow: 0 18px 42px rgba(31, 122, 67, .22);
}
.login-submit {
  font-size: 15px;
  letter-spacing: 0;
}
.login-footnote {
  display: grid;
  gap: 3px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.login-footnote strong { color: var(--ink); font-size: 15px; }
.alert { padding: 13px 15px; border-radius: 14px; margin-bottom: 14px; font-weight: 800; }
.alert.error { background: #fff0ef; color: #a43027; }
.alert.ok { background: #eef8ed; color: #19603a; }

.muted { color: var(--muted); }
.right { text-align: right; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.users-stack { display: grid; gap: 14px; }
.compact-user { padding: 18px; }
.print-title {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.print-title > div,
.driver-total {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}
.driver-table th,
.driver-table td {
  font-size: 14px;
}
.driver-table th:nth-child(5),
.driver-table td:nth-child(5) {
  width: 31%;
}
.driver-total { margin-top: 18px; }
.driver-total h3 { margin-bottom: 14px; }

.items-mini {
  width: 100%;
  min-width: 460px;
  overflow: hidden;
  border: 1px solid #dfe9db;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
}

.items-mini th,
.items-mini td {
  padding: 8px 10px;
  border-bottom: 1px solid #e7efe3;
  white-space: nowrap;
}

.items-mini th {
  background: #eef6e9;
  color: #405041;
  font-size: 11px;
}

.items-mini tr:last-child td {
  border-bottom: 0;
}

.order-note-inline {
  margin-top: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f6f9f2;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.load-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(31, 122, 67, .16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,246,235,.92)),
    radial-gradient(circle at 100% 0, rgba(31,122,67,.12), transparent 40%);
  box-shadow: 0 16px 42px rgba(34, 48, 28, .07);
}

.load-card span {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.load-card strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
}

.manager-hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(242,248,237,.88)),
    radial-gradient(circle at 88% 18%, rgba(31,122,67,.20), transparent 28%);
}

.harvest-form .section-head {
  align-items: center;
}

.date-inline {
  min-width: 210px;
}

.harvest-card {
  padding: 22px;
  border: 1px solid rgba(31, 122, 67, .16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, #fff, #f5faf1),
    radial-gradient(circle at 100% 0, rgba(31,122,67,.10), transparent 36%);
  box-shadow: 0 16px 42px rgba(34, 48, 28, .07);
}

.harvest-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.harvest-title .product-icon {
  margin: 0;
}

.load-card.waste {
  border-color: rgba(200, 59, 49, .18);
  background:
    linear-gradient(135deg, #fff, #fff5f4),
    radial-gradient(circle at 100% 0, rgba(200,59,49,.10), transparent 38%);
}

.load-card.staff {
  border-color: rgba(214, 156, 47, .24);
  background:
    linear-gradient(135deg, #fff, #fff8e8),
    radial-gradient(circle at 100% 0, rgba(214,156,47,.15), transparent 38%);
}

.load-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 960px) {
  body {
    background:
      linear-gradient(180deg, #ffffff 0%, var(--paper) 50%, #f7faf3 100%);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand small {
    font-size: 12px;
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar { display: none; }

  .nav a,
  .nav button {
    flex: 0 0 auto;
    min-height: 42px;
    white-space: nowrap;
  }

  .hero,
  .client-hero,
  .login-card,
  .grid.two,
  .grid.three,
  .grid.four,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .order-line,
  .wow-order-line { grid-template-columns: 1fr; }
  .print-title { grid-template-columns: 1fr; }
  .line-total { justify-self: start; }
  .wrap {
    width: min(100% - 24px, 720px);
    padding-top: 22px;
  }
  .client-hero {
    gap: 18px;
  }
  .dashboard-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dashboard-stat {
    padding: 16px;
    border-radius: 18px;
  }
  .dashboard-stat strong {
    font-size: 24px;
  }
  .section-head {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .section-head form,
  .section-head .actions {
    width: 100%;
  }
  .section-head input,
  .section-head button,
  .section-head .btn {
    min-height: 44px;
  }
  .section-head form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .order-product {
    align-items: flex-start;
  }
  .qty-control {
    width: 100%;
  }
  .line-total {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f6f9f2;
    text-align: left;
  }
  .total-box {
    align-items: flex-start;
    flex-direction: column;
  }
  .harvest-card,
  .load-card,
  .form-card,
  .panel,
  .stat {
    border-radius: 18px;
  }
  .wow-login .login-art { min-height: 580px; }
  .greenhouse-scene { inset: 92px 24px 220px; }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 20px, 460px);
    padding: 16px 0 48px;
  }

  .section { margin-top: 22px; }

  h1 { font-size: 34px; }
  h2 { font-size: 25px; }
  h3 { font-size: 18px; }
  .lead { font-size: 16px; }

  .actions,
  .section-head .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .btn,
  .nav a,
  .nav button {
    min-height: 44px;
  }

  input,
  select,
  textarea {
    min-height: 46px;
    font-size: 16px;
  }

  .client-hero,
  .order-head { padding: 20px; border-radius: 20px; }
  .client-hero h1 { font-size: 34px; }
  .client-hero::after { display: none; }
  .dashboard-panel {
    grid-template-columns: 1fr;
  }
  .dashboard-stat {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .dashboard-stat small {
    grid-column: 1 / -1;
  }
  .order-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .order-head [data-order-total] {
    width: 100%;
    min-width: 0;
    font-size: 20px;
  }
  .order-line,
  .wow-order-line {
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
  }
  .order-product-copy strong { font-size: 18px; }
  .product-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 23px;
  }
  .qty-control { grid-template-columns: 48px 1fr 48px; }
  .qty-btn,
  .qty-control input {
    min-height: 48px;
  }
  .form-card { padding: 18px; }
  .date-inline { min-width: 0; }
  .harvest-card { padding: 16px; }
  .load-card { padding: 18px; }
  .load-card strong { font-size: 28px; }
  .print-title > div,
  .driver-total {
    border-radius: 16px;
  }

  .table-card {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .table-card table,
  .table-card thead,
  .table-card tbody,
  .table-card tr,
  .table-card th,
  .table-card td {
    display: block;
  }

  .table-card thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .table-card tbody {
    display: grid;
    gap: 12px;
  }

  .table-card tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 32px rgba(34, 48, 28, .06);
  }

  .table-card tr.table-detail {
    margin-top: -12px;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: #f7faf3;
    box-shadow: none;
  }

  .table-card td {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .table-card td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .table-card td[colspan] {
    display: block;
    padding: 13px;
  }

  .table-card td[colspan]::before {
    content: none;
  }

  .table-card tr td:last-child {
    border-bottom: 0;
  }

  .table-card td .actions {
    width: 100%;
  }

  .table-card td select,
  .table-card td button {
    width: 100%;
  }

  .items-mini {
    display: table !important;
    min-width: 0;
    font-size: 12px;
  }

  .items-mini thead {
    position: static;
    display: table-header-group !important;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .items-mini tbody { display: table-row-group !important; }
  .items-mini tr {
    display: table-row !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .items-mini th,
  .items-mini td {
    display: table-cell !important;
    padding: 7px 6px;
    border-bottom: 1px solid #e7efe3;
    font-size: 12px;
    white-space: normal;
  }
  .items-mini td::before { content: none !important; }
  .items-mini th:nth-child(4),
  .items-mini td:nth-child(4) {
    display: none !important;
  }

  .login-art, .login-form { padding: 26px; }
  .login-page { padding: 12px; place-items: start center; }
  .login-card { border-radius: 24px; }
  .wow-login .login-form { order: 1; }
  .wow-login .login-art { order: 2; }
  .wow-login .login-art { min-height: 340px; }
  .wow-login h1 { font-size: 34px; }
  .login-brand { position: relative; left: auto; top: auto; align-self: flex-start; margin-bottom: 88px; }
  .greenhouse-scene { inset: 86px 18px 118px; opacity: .42; }
  .login-highlights {
    display: grid;
    grid-template-columns: 1fr;
  }
  .login-highlights span {
    width: 100%;
    min-height: 34px;
  }
  .login-form h2 { font-size: 30px; }
}

@media (max-width: 420px) {
  .wrap { width: calc(100% - 16px); }
  .topbar { padding-inline: 10px; }
  .brand { gap: 9px; }
  .brand small { display: none; }
  .client-hero,
  .order-head,
  .form-card {
    padding: 16px;
  }
  .client-hero h1,
  .wow-login h1 {
    font-size: 31px;
  }
  .price,
  .dashboard-stat strong {
    font-size: 24px;
  }
  .table-card td {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .login-art,
  .login-form {
    padding: 20px;
  }
  .wow-login .login-art {
    min-height: 300px;
  }
  .login-brand { margin-bottom: 72px; }
  .greenhouse-scene { inset: 78px 14px 108px; }
}

@media print {
  @page { margin: 12mm; }
  body {
    background: #fff;
    color: #111;
    font-size: 12px;
  }
  .topbar,
  .alert,
  .print-toolbar .actions,
  .nav,
  .btn {
    display: none !important;
  }
  .wrap {
    width: 100%;
    padding: 0;
  }
  .section { margin: 0; }
  .print-toolbar {
    display: block;
    margin-bottom: 10px;
  }
  .print-toolbar h2 {
    font-size: 24px;
  }
  .print-title,
  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .table-card,
  .stat,
  .panel,
  .driver-total,
  .print-title > div {
    border-color: #999;
    border-radius: 0;
    box-shadow: none;
  }
  th {
    background: #eee !important;
    color: #111;
  }
  th, td {
    padding: 7px 8px;
    border-color: #aaa;
  }
  .items-mini {
    min-width: 0;
    border-color: #999;
    border-radius: 0;
    font-size: 11px;
  }
  .items-mini th,
  .items-mini td {
    padding: 5px 6px;
    border-color: #bbb;
    white-space: normal;
  }
  .items-mini th {
    background: #f0f0f0 !important;
  }
  .order-note-inline {
    margin-top: 5px;
    padding: 0;
    background: transparent;
    color: #111;
    font-size: 11px;
  }
  .muted { color: #333; }
  .driver-total {
    page-break-inside: avoid;
  }
}
