/* Portal d'albarans · Avícola Ondara — colors de la marca: vermell #C40000 i blanc */
:root {
  --red: #C40000;
  --red-700: #9C0000;
  --red-600: #B00000;
  --red-50: #FDF1F1;
  --red-100: #F9DADA;
  --ink: #181716;
  --ink-2: #44413E;
  --muted: #85817C;
  --line: #E6E2DD;
  --line-2: #F0EDE9;
  --bg: #F5F3F0;
  --card: #FFFFFF;
  --ok: #17784A;
  --ok-bg: #E8F5EE;
  --warn: #A35F00;
  --warn-bg: #FFF5E2;
  --info: #2F5E8A;
  --info-bg: #EAF1F8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(24, 23, 22, .05), 0 4px 18px rgba(24, 23, 22, .05);
  --shadow-lg: 0 18px 60px rgba(24, 23, 22, .22);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Barlow", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--red); }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ───────── Acceso ───────── */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 520px);
}
.login-brand {
  background: var(--red);
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-brand::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -140px;
  width: 520px; height: 520px;
  background: url("img/logo-blanco.png") no-repeat left center / auto 100%;
  opacity: .07;
  transform: rotate(-12deg);
}
.login-brand img { width: min(340px, 80%); height: auto; display: block; }
.login-brand h1 {
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 46px; line-height: 1.02; margin: 0 0 14px; letter-spacing: -.5px;
}
.login-brand p { margin: 0; font-size: 17px; opacity: .88; max-width: 420px; }
.login-brand small { opacity: .7; }
.login-form {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 28px; background: var(--card);
}
.login-form form { width: 100%; max-width: 360px; }
.login-form h2 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 30px; margin: 0 0 6px; }
.login-form .lead { color: var(--muted); margin: 0 0 28px; }
.login-form .field { margin-bottom: 16px; }
.login-form .btn { width: 100%; justify-content: center; height: 48px; font-size: 16px; }
.form-error { color: var(--red); background: var(--red-50); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 0 14px; font-size: 14px; }

/* ───────── Capçalera ───────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar::before { content: ""; display: block; height: 4px; background: var(--red); }
.topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  height: 68px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand img { height: 38px; width: auto; display: block; border-radius: 3px; }
.brand span {
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px;
}
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 14px; height: 68px; margin-bottom: -1px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--red); border-bottom-color: var(--red); }
.nav a .count {
  background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav svg, .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.user { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red-50); color: var(--red);
  display: grid; place-items: center; font-weight: 700;
}
.user .who { font-weight: 600; font-size: 14px; line-height: 1.15; }
.user .who small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.demo-banner {
  background: #1d1c1a; color: #fff; text-align: center; font-size: 13px; padding: 6px;
}

/* ───────── Pàgina ───────── */
main { max-width: 1240px; margin: 0 auto; padding: 30px 28px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 {
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 34px; line-height: 1; margin: 0; letter-spacing: -.3px;
}
.page-head p { margin: 6px 0 0; color: var(--muted); }
.page-head .actions { display: flex; gap: 10px; align-items: center; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 22px 24px; }
.card h2, .section-title {
  font-family: var(--display); font-weight: 700; font-size: 19px; margin: 0 0 14px;
}
.section-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; }
.section-title .pill { font-family: var(--font); }

/* ───────── Botons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card);
  font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { border-color: #d3cec8; background: #fbfaf9; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .input:focus-visible, .seg button:focus-visible { outline: 3px solid var(--red-100); outline-offset: 1px; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 2px 10px rgba(196, 0, 0, .22); }
.btn-primary:hover { background: var(--red-600); border-color: var(--red-600); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c2a28; border-color: #2c2a28; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); border-color: transparent; }
.btn-danger { color: var(--red); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent;
  display: inline-grid; place-items: center; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--red-50); color: var(--red); }
.icon-btn svg { width: 18px; height: 18px; }

/* ───────── Camps ───────── */
.field label, .label {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px;
}
.input, select.input, textarea.input {
  width: 100%; height: 44px; padding: 0 13px;
  background: #fff; border: 1px solid #DAD5CF; border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 76px; padding: 11px 13px; resize: vertical; }
.input:hover { border-color: #c5bfb8; }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-100); }
.input.invalid { border-color: var(--red); background: var(--red-50); }
.input.num { text-align: right; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.seg {
  display: inline-flex; background: var(--line-2); border-radius: 11px; padding: 4px; gap: 4px;
}
.seg button {
  border: 0; background: transparent; height: 36px; padding: 0 16px; border-radius: 8px;
  font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: #fff; color: var(--red); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.seg.small button { height: 32px; padding: 0 12px; min-width: 38px; }

/* ───────── Combobox ───────── */
.combo { position: relative; }
.combo .input { padding-right: 38px; }
.combo .caret { position: absolute; right: 12px; top: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.combo-list {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); max-height: 340px; overflow: auto; padding: 6px;
}
.combo-item {
  padding: 9px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
}
.combo-item b { font-weight: 600; }
.combo-item small { color: var(--muted); font-size: 12.5px; text-align: right; }
.combo-item.active, .combo-item:hover { background: var(--red-50); }
.combo-item.action { color: var(--red); font-weight: 600; border-top: 1px solid var(--line-2); margin-top: 4px; justify-content: flex-start; align-items: center; gap: 8px; }
.combo-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.selected-place > svg, .alert svg, .empty svg, .rep-actions svg, .list svg { flex-shrink: 0; }
.selected-place > svg { width: 20px; height: 20px; color: var(--red); }
.list li > svg { width: 20px; height: 20px; color: var(--ok); }
.rep-actions .btn svg { width: 16px; height: 16px; }
.combo-empty { padding: 12px; color: var(--muted); font-size: 14px; }
mark { background: #FFE9A8; color: inherit; border-radius: 2px; }

/* ───────── Formulari del parte ───────── */
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.form-row { display: grid; gap: 18px; grid-template-columns: 190px auto auto; align-items: end; margin-bottom: 20px; }
.form-row-2 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 150px; align-items: end; margin-bottom: 8px; }
.selected-place {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px;
  border: 1px solid var(--red-100); background: var(--red-50); border-radius: 10px; min-height: 44px;
}
.selected-place .t { flex: 1; min-width: 0; }
.selected-place b { display: block; font-weight: 700; }
.selected-place small { color: var(--ink-2); }

.trucks { margin-top: 22px; }
.trucks-head, .truck-row {
  display: grid; align-items: center; gap: 10px;
  grid-template-columns: 34px 150px 130px 150px minmax(170px, 1fr) 74px 36px;
}
.trucks-head { padding: 0 10px 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.trucks-head .r { text-align: right; }
.truck-row { padding: 9px 10px; border-radius: 11px; border: 1px solid transparent; }
.truck-row:nth-child(odd) { background: #FAF9F7; }
.truck-row:focus-within { border-color: var(--red-100); background: #fff; box-shadow: var(--shadow); }
.truck-row .n {
  width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
}
.truck-row .input { height: 40px; }
.truck-row .plate { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.truck-row .other { margin-top: 6px; height: 36px; font-size: 14px; }
.split { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.split input { accent-color: var(--red); width: 16px; height: 16px; }
.field label.split { text-transform: none; letter-spacing: 0; font-size: 14px; display: flex; margin: 0; }
.add-truck {
  margin-top: 10px; width: 100%; height: 46px; border: 1.5px dashed #D3CDC6; border-radius: 11px;
  background: transparent; color: var(--ink-2); font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.add-truck:hover { border-color: var(--red); color: var(--red); background: var(--red-50); }
.add-truck svg { width: 18px; height: 18px; }

.summary { position: sticky; top: 100px; }
.summary .big { display: flex; gap: 12px; margin-bottom: 18px; }
.stat { flex: 1; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.05; }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.summary .meta { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; display: grid; gap: 6px; }
.summary .meta div { display: flex; justify-content: space-between; gap: 10px; }
.summary .meta span:first-child { color: var(--muted); }
.summary .btn-primary { width: 100%; justify-content: center; }
.summary .btn-ghost { width: 100%; justify-content: center; margin-top: 6px; }

.alerts { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.alert { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.35; }
.alert svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.info { background: var(--info-bg); color: var(--info); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.err { background: var(--red-50); color: var(--red); }

/* ───────── Càrregues ───────── */
.loads { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.load { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.load::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.load.clean::before { background: var(--ok); }
.load.invoiced::before { background: #B9B3AC; }
.load h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18.5px; line-height: 1.2; }
.load .client { color: var(--muted); font-size: 13px; margin-top: 3px; }
.load .figures { display: flex; gap: 20px; }
.load .figures div b { display: block; font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1; }
.load .figures div span { font-size: 12px; color: var(--muted); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.load .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.btn-net {
  background: var(--ok); border-color: var(--ok); color: #fff; height: 40px; padding: 0 18px;
  font-family: var(--display); font-weight: 800; font-style: italic; letter-spacing: .08em; font-size: 16px;
}
.btn-net:hover { background: #12643d; border-color: #12643d; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.pill.open { background: var(--red-50); color: var(--red); }
.pill.clean { background: var(--ok-bg); color: var(--ok); }
.pill.locked { background: #EEECE9; color: var(--ink-2); }
.pill.pending { background: var(--warn-bg); color: var(--warn); }
.pill.muted { background: var(--line-2); color: var(--muted); }

/* ───────── Historial ───────── */
.month-nav { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.month-nav b { min-width: 150px; text-align: center; font-weight: 700; }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .input { max-width: 300px; height: 42px; }
.day-group { margin-bottom: 22px; }
.day-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px 4px; }
.rep { padding: 0; overflow: hidden; margin-bottom: 8px; }
.rep-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto 20px; gap: 18px; align-items: center;
  padding: 14px 18px; cursor: pointer; width: 100%; border: 0; background: transparent; text-align: left;
}
.rep-head:hover { background: #FBFAF8; }
.rep-head .place b { display: block; font-weight: 700; }
.rep-head .place small { color: var(--muted); }
.rep-head .fig { text-align: right; font-size: 13px; color: var(--muted); }
.rep-head .fig b { display: block; color: var(--ink); font-size: 15px; }
.rep-head .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.rep.open .chev { transform: rotate(180deg); }
.rep-body { border-top: 1px solid var(--line-2); padding: 14px 18px 18px; }
.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini th { text-align: left; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; font-weight: 600; }
.mini td { padding: 8px; border-top: 1px solid var(--line-2); }
.mini .r { text-align: right; }
.mini .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 600; letter-spacing: .04em; }
.rep-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.notes { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); background: var(--bg); padding: 9px 12px; border-radius: 9px; }

/* ───────── Setmana ───────── */
.week-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: center;
  padding: 30px 32px; background: var(--ink); color: #fff; border: 0; position: relative; overflow: hidden;
}
.week-hero::after {
  content: ""; position: absolute; right: -40px; top: -30px; width: 260px; height: 260px;
  background: url("img/icono.png") center / contain no-repeat; opacity: .08; filter: grayscale(1) brightness(3);
}
.week-hero h2 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 30px; margin: 0 0 8px; }
.week-hero p { margin: 0; color: #CFCAC4; }
.week-hero .stats { display: flex; gap: 22px; margin-top: 18px; }
.week-hero .stats b { display: block; font-family: var(--display); font-size: 30px; line-height: 1; }
.week-hero .stats span { font-size: 12.5px; color: #A9A39C; font-weight: 600; }
.week-hero .go { position: relative; z-index: 1; display: grid; gap: 10px; }
.week-hero textarea { background: #2a2826; border-color: #3b3835; color: #fff; min-height: 64px; }
.week-hero .btn-primary { height: 52px; justify-content: center; font-size: 16px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line-2); }
.list li:first-child { border-top: 0; }
.list .when { color: var(--muted); font-size: 13px; min-width: 120px; }
.list .what { flex: 1; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }

/* ───────── Revisió ───────── */
.tabs { flex-wrap: wrap; }
.tabs .count { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; }
.bulk { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg); border-radius: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.mini input[type=checkbox] { accent-color: var(--red); width: 16px; height: 16px; }
.load .field { margin: 0; }
.load .field label, .load .field .label { margin-bottom: 5px; }

/* ───────── Buit / càrrega ───────── */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; color: #CFC9C2; margin-bottom: 10px; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.loading { display: grid; place-items: center; min-height: 40vh; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--red-100); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── Modal i avisos ───────── */
.modal-back {
  position: fixed; inset: 0; z-index: 80; background: rgba(24, 23, 22, .45);
  display: grid; place-items: center; padding: 20px; animation: fade .15s ease-out;
}
.modal { width: 100%; max-width: 460px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal-head { padding: 22px 24px 0; }
.modal-head h3 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; }
.modal-head p { margin: 6px 0 0; color: var(--ink-2); }
.modal-body { padding: 18px 24px; }
.modal-foot { padding: 0 24px 22px; display: flex; gap: 10px; justify-content: flex-end; }
.quick { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

#toasts { position: fixed; z-index: 90; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; font-weight: 600; animation: pop .2s ease-out;
}
.toast svg { width: 18px; height: 18px; color: #6EE7A8; }
.toast.err svg { color: #FF8A8A; }

/* ───────── Pantalles petites ───────── */
@media (max-width: 1080px) {
  .report-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .brand span { display: none; }
}
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 32px 24px; min-height: 0; gap: 26px; }
  .login-brand h1 { font-size: 32px; }
  .topbar-inner { padding: 0 16px; gap: 12px; height: 60px; }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); justify-content: space-around; z-index: 30; }
  .nav a { flex-direction: column; gap: 3px; height: 62px; font-size: 11.5px; padding: 0 6px; border-bottom: 0; border-top: 3px solid transparent; }
  .nav a.active { border-top-color: var(--red); }
  .user .who { display: none; }
  main { padding: 20px 16px 100px; }
  .form-row, .form-row-2 { grid-template-columns: 1fr; }
  .trucks-head { display: none; }
  .truck-row { grid-template-columns: 30px 1fr 1fr; grid-auto-rows: auto; }
  .truck-row > :nth-child(4), .truck-row > :nth-child(5) { grid-column: 2 / -1; }
  .week-hero, .two-cols { grid-template-columns: 1fr; }
  .rep-head { grid-template-columns: minmax(0, 1fr) auto 20px; }
  .rep-head .fig:not(.keep) { display: none; }
}
