/* ============================================================
   Domino's Moira tools - the ONE stylesheet for the whole site.

   Master copy: C:\hub\public\css\style.css (the hub serves it at
   /hub-assets/css/style.css). Every app's frontend/css/style.css is an
   identical copy so each app still works on its own. Edit the master,
   then run:  node C:\hub\scripts\sync-styles.js
   (copies it to every app and checks they all match).

   Layout widths: .wrap = 480px phone-style column; .wrap.wide = 880px
   (admin pages); .wrap.xwide = 1100px (KPI).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy: #0b2545;
  --navy-deep: #071a33;
  --red: #d0111a;
  --red-deep: #a80d15;
  --ink: #1a1d21;
  --paper: #fffdfa;
  --floor: #f6f4ef;
  --line: #e4e0d6;
  --muted: #6b6f76;
  --good: #1b7a4d;
  --radius: 10px;

  /* A small, consistent shadow scale - used instead of flat borders on
     interactive surfaces so depth reads the same everywhere. */
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.05), 0 1px 1px rgba(11, 37, 69, 0.04);
  --shadow-md: 0 3px 10px rgba(11, 37, 69, 0.08), 0 1px 2px rgba(11, 37, 69, 0.05);
  --shadow-lg: 0 12px 32px rgba(11, 37, 69, 0.14), 0 2px 8px rgba(11, 37, 69, 0.06);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --warn: #a8660d;

  /* fills that stay navy in dark mode (header bands, solid navy buttons) */
  --band: #0b2545;
  --band-deep: #071a33;
  --band-light: #10305a;
  --surface: #fff;
  --red-ink: #a80d15;       /* red TEXT on a light-red tint (dark mode lightens it) */
  /* light tints (status backgrounds), one per original colour - dark mode redefines them */
  --c-fdeaea: #fdeaea; --c-fbeaea: #fbeaea; --c-fff7f6: #fff7f6; --c-f3c6c6: #f3c6c6; --c-ffb3b3: #ffb3b3; --c-eaf7ee: #eaf7ee; --c-dcf1e2: #dcf1e2; --c-bfe6cc: #bfe6cc; --c-cfe9d6: #cfe9d6; --c-f0f4fa: #f0f4fa; --c-eef4fb: #eef4fb; --c-eef3fb: #eef3fb; --c-eef3f9: #eef3f9; --c-e8edf5: #e8edf5; --c-f8f9fc: #f8f9fc; --c-dce4f0: #dce4f0; --c-d3e2f3: #d3e2f3; --c-c9d6ea: #c9d6ea; --c-fff6e0: #fff6e0; --c-fff7e8: #fff7e8; --c-fdf3e7: #fdf3e7; --c-f1dc9e: #f1dc9e; --c-f0d9b5: #f0d9b5; --c-7a5200: #7a5200; --c-8a5a13: #8a5a13; --c-faf8f3: #faf8f3; --c-ebe9e3: #ebe9e3; --c-c9c3b6: #c9c3b6; --c-c9c5bb: #c9c5bb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--floor);
  background-image: radial-gradient(circle at 50% 0%, #fbf9f4 0%, var(--floor) 55%);
  background-attachment: fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, .display-num { font-family: 'Outfit', 'Inter', sans-serif; }

/* Slim, understated scrollbars on the horizontal-scroll strips (webkit only -
   harmless no-op elsewhere) */
::-webkit-scrollbar { height: 6px; width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.wrap {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

header.bar {
  background: var(--band);
  background-image: linear-gradient(160deg, var(--band) 0%, var(--band-deep) 100%);
  color: white;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
  box-shadow: 0 2px 12px rgba(11, 37, 69, 0.18);
}

header.bar .titleblock { display: flex; align-items: center; gap: 10px; }

header.bar h1 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.1px;
}

header.bar .accent {
  color: var(--red);
  background: #fff;
  border-radius: 7px;
  padding: 4px 9px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(11, 37, 69, 0.06);
}

header.bar .icon-link {
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 13px;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  transition: background 0.15s var(--ease), transform 0.1s var(--ease);
}
header.bar .icon-link:hover { background: rgba(255,255,255,0.2); }
header.bar .icon-link:active { transform: scale(0.96); }

.header-actions { display: flex; gap: 8px; }

main {
  flex: 1;
  padding: 22px 20px 100px;
}

.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }

h2 { font-size: 17px; font-weight: 700; margin: 0 0 12px; color: var(--navy); letter-spacing: -0.1px; }
p.lead { color: var(--muted); font-size: 14px; margin: 0 0 20px; line-height: 1.5; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.big-choice {
  display: block;
  width: 100%;
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.1s;
}
.big-choice:active { transform: scale(0.99); }

.big-choice .title { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.big-choice .sub { font-size: 13px; color: var(--muted); }
.big-choice.onboarding { border-left: 4px solid var(--navy); }
.big-choice.onboarding .title { color: var(--navy); }
.big-choice.tracker { border-left: 4px solid var(--red); }
.big-choice.tracker .title { color: var(--red); }

label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 5px; font-weight: 500; }

input, select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

input:focus, select:focus, button:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.12);
}

.field { margin-bottom: 14px; }

button.primary {
  background: var(--red);
  background-image: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(208, 17, 26, 0.28), 0 1px 2px rgba(208, 17, 26, 0.2);
  transition: transform 0.1s var(--ease), box-shadow 0.15s var(--ease), opacity 0.15s var(--ease);
}
button.primary:disabled { opacity: 0.5; cursor: default; box-shadow: none; }
button.primary:hover:not(:disabled) { box-shadow: 0 5px 14px rgba(208, 17, 26, 0.32), 0 2px 4px rgba(208, 17, 26, 0.22); }
button.primary:active:not(:disabled) { transform: scale(0.99); box-shadow: 0 2px 6px rgba(208, 17, 26, 0.25); }

button.secondary {
  background: var(--paper);
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: background 0.15s var(--ease), transform 0.1s var(--ease);
}
button.secondary:hover { background: var(--c-f0f4fa); }
button.secondary:active { transform: scale(0.99); }

button.text {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-size: 13px;
  padding: 6px;
  font-family: inherit;
  transition: color 0.15s var(--ease);
}
button.text:hover { color: var(--navy); }

.error-msg {
  background: var(--c-fdeaea);
  color: var(--red-ink);
  border: 1px solid var(--c-f3c6c6);
  border-radius: var(--radius);
  padding: 11px 13px;
  font-size: 13px;
  margin-bottom: 14px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.tabs button {
  flex: 1;
  background: none;
  border: none;
  padding: 11px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.tabs button:hover { color: var(--navy); }
.tabs button.active {
  color: var(--navy);
  border-bottom-color: var(--red);
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.summary-grid .stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s var(--ease);
}
.summary-grid .stat .num { font-size: 22px; font-weight: 700; font-family: 'Outfit', sans-serif; }
.summary-grid .stat .label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.summary-grid .stat.total {
  background: var(--band);
  background-image: linear-gradient(160deg, var(--band) 0%, var(--band-deep) 100%);
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}
.summary-grid .stat.total .num { color: white; }
.summary-grid .stat.total .label { color: rgba(255,255,255,0.75); }

.delivery-row {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 14px;
}
.delivery-row .top { display: flex; justify-content: space-between; font-weight: 600; }
.delivery-row .meta { color: var(--muted); font-size: 12px; margin-top: 3px; }

.fab {
  position: sticky;
  bottom: 16px;
  align-self: center;
  width: calc(100% - 40px);
  margin: 0 20px;
}

.clock-card {
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.clock-card.active { background: var(--c-eaf7ee); border-color: var(--c-bfe6cc); }
.clock-card .status-label { font-size: 12px; color: var(--muted); }
.clock-card .status-value { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px; }
.clock-card.active .status-value { color: var(--good); }
.clock-card button {
  width: auto;
  padding: 9px 18px;
  font-size: 13px;
}

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11, 37, 69, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex; align-items: flex-end;
  z-index: 50;
  animation: fade-in 0.18s var(--ease);
}
.modal-sheet {
  background: var(--paper);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 20px 20px 0 0;
  padding: 14px 20px 24px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(11, 37, 69, 0.25);
  animation: sheet-up 0.22s var(--ease);
}
.modal-sheet::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  margin: 0 auto 16px;
}
.modal-sheet h2:first-of-type { margin-top: 0; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.bonus-preview {
  border: 1px dashed var(--navy);
  border-radius: var(--radius);
  padding: 13px;
  font-size: 14px;
  margin: 10px 0 16px;
  background: var(--c-f0f4fa);
}
.bonus-preview .total { font-size: 19px; font-weight: 700; color: var(--good); font-family: 'Outfit', sans-serif; }

.pill {
  display: inline-block;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--floor);
  color: var(--muted);
  font-weight: 600;
}
.pill.locked { background: var(--c-fdeaea); color: var(--red-ink); }

hr.divider { border: none; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- Availability-specific ---------- */

.busy-banner {
  background: var(--c-fdf3e7);
  border: 1px solid var(--c-f0d9b5);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--c-8a5a13);
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(138, 90, 19, 0.08);
}
.busy-banner strong { display: block; margin-bottom: 2px; }

.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.week-nav button {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.week-nav button:hover { background: var(--c-f0f4fa); border-color: var(--navy); }
.week-nav button:active { transform: scale(0.96); }
.week-nav .week-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}

.day-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.day-card.cant-work { background: var(--floor); box-shadow: none; }
.day-card.has-issue { border-color: var(--red); box-shadow: 0 2px 10px rgba(208, 17, 26, 0.1); }
.day-issue-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--red-ink);
  background: var(--c-fdeaea);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 8px;
}
.overnight-note {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  margin-top: 6px;
}
.day-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.day-card-header .day-name-date {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
}
.day-card-header .day-name-date .date-part {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  margin-left: 6px;
}
.cant-work-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.day-times {
  display: flex;
  align-items: center;
  gap: 10px;
}
.day-times select { flex: 1; min-width: 0; }
.day-times span { color: var(--muted); font-size: 13px; }
.day-counter {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.activity-list li { padding: 2px 0; }

.busy-period-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

/* ---------- Admin weekly overview redesign ---------- */

.insights-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}
.insight-card {
  flex: 0 0 auto;
  width: 108px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.insight-card .day-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.insight-card .day-date {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.insight-card .available-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  line-height: 1.1;
}
.insight-card .available-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.insight-card .checkpoint-line {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 1px 0;
}
.insight-card .checkpoint-line .n {
  font-weight: 600;
  color: var(--ink);
}

.driver-week-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.driver-week-row .driver-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}
.day-chip-row {
  display: flex;
  gap: 4px;
}
.day-chip {
  flex: 1;
  min-width: 0;
  border-radius: 6px;
  padding: 5px 2px;
  text-align: center;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 500;
}
.day-chip .d { font-weight: 700; display: block; }
.day-chip .t { display: block; margin-top: 1px; }
.day-chip.available { background: var(--c-eaf7ee); color: var(--good); }
.day-chip.unavailable { background: var(--c-fdeaea); color: var(--red-ink); }
.day-chip.missing { background: var(--floor); color: var(--line); }
.driver-week-comment {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}
.driver-week-missing-note {
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
}

.quick-fill-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.quick-fill-row button {
  flex: 1;
  background: var(--floor);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s var(--ease), transform 0.1s var(--ease);
}
.quick-fill-row button:hover { background: var(--c-e8edf5); }
.quick-fill-row button:active { background: var(--c-dce4f0); transform: scale(0.97); }

/* ---------- Rota grid (table) ---------- */

.rota-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  -webkit-overflow-scrolling: touch;
}

.rota-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
}

.rota-table thead th {
  background: var(--band);
  background-image: linear-gradient(160deg, var(--band) 0%, var(--band-deep) 100%);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 8px;
  text-align: center;
  white-space: nowrap;
}
.rota-table thead th.rota-corner {
  position: sticky;
  left: 0;
  z-index: 2;
}
.th-date {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  margin-top: 1px;
}

.rota-table td {
  border: 1px solid var(--line);
  padding: 0;
  text-align: center;
}

td.rota-driver-cell {
  position: sticky;
  left: 0;
  background: var(--paper);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
  border-right: 2px solid var(--line);
  z-index: 1;
}

.rota-table tbody tr:nth-child(even) td.rota-driver-cell { background: var(--floor); }

.rota-cell-btn {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 44px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s var(--ease), opacity 0.1s var(--ease);
}
.rota-cell-btn.assigned { background: var(--c-eaf7ee); color: var(--good); }
.rota-cell-btn.empty { background: var(--paper); color: var(--muted); font-weight: 400; }
.rota-cell-btn:hover { background: var(--c-f0f4fa); }
.rota-cell-btn.assigned:hover { background: var(--c-dcf1e2); }
.rota-cell-btn:active { opacity: 0.7; }

.rota-shift-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ---------- Login page ---------- */
/* Centers the login card vertically instead of leaving it flush at the top -
   applied only via the .login-main class, so nothing else is affected. */
main.login-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 70px);
}
.login-main h2 { font-size: 22px; text-align: center; }
.login-main p.lead { text-align: center; }
.login-main form.stack { margin-top: 6px; }

/* ---------- Hub homepage (portal) ---------- */

.portal-wrap {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 64px 28px 40px;
  display: flex;
  flex-direction: column;
}

.portal-header {
  text-align: center;
  margin-bottom: 44px;
}

.portal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--band);
  background-image: linear-gradient(160deg, var(--band) 0%, var(--band-deep) 100%);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(11, 37, 69, 0.18);
}

.portal-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.portal-header p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.portal-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.portal-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.portal-card:hover {
  border-color: var(--navy);
  box-shadow: 0 6px 20px rgba(11, 37, 69, 0.09);
}

.portal-card:active {
  transform: scale(0.99);
}

.portal-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--c-f0f4fa);
  color: var(--navy);
}

.portal-card-icon svg {
  width: 22px;
  height: 22px;
}

.portal-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portal-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.portal-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* What's waiting for this person in the tool (added after the page loads). */
.portal-card-badge {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--c-eef4fb);
  color: var(--navy);
}
.portal-card-badge.alert { background: var(--c-fdeaea); color: var(--red-ink); }

.portal-card-chevron {
  flex-shrink: 0;
  color: var(--line);
  transition: color 0.15s ease, transform 0.15s ease;
}

.portal-card-chevron svg {
  width: 18px;
  height: 18px;
  display: block;
}

.portal-card:hover .portal-card-chevron {
  color: var(--red);
  transform: translateX(2px);
}

.portal-footer {
  text-align: center;
  font-size: 12px;
  color: var(--line);
  margin-top: 40px;
}

/* ---------- Manage employees (hub-admin.html) ---------- */

[hidden] { display: none !important; } /* .modal-backdrop etc. set display, which would otherwise beat the hidden attribute */
.toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input, .toolbar select { flex: 1; min-width: 140px; }
.pill.level { background: var(--c-f0f4fa); color: var(--navy); }
.apps-line { color: var(--muted); font-size: 12px; margin-top: 3px; }
.app-grant { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; }
.app-grant .head { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); margin: 0; }
.app-grant .body { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.inline-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); margin: 0; }
.note { font-size: 12px; color: var(--muted); }
.warn-msg { background: var(--c-fff6e0); color: var(--c-7a5200); border: 1px solid var(--c-f1dc9e); border-radius: var(--radius); padding: 11px 13px; font-size: 13px; margin-bottom: 14px; }
.info-msg { background: var(--c-eef4fb); color: var(--navy); border: 1px solid var(--c-d3e2f3); border-radius: var(--radius); padding: 11px 13px; font-size: 13px; margin-bottom: 14px; }
/* A closed week (Availability's Friday 13:00 lockout): shown, faded, not editable. */
.is-locked { opacity: .6; pointer-events: none; }
.audit-row { border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 13px; }
.audit-row .meta { color: var(--muted); font-size: 12px; margin-top: 2px; word-break: break-word; }

/* ---------- Delivery Tracker driver page ---------- */

/* Cut-outs of the receipt shown under scanned fields, so drivers can check at a glance */
.receipt-snippet { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.receipt-snippet img { max-width: 100%; height: 28px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.check-note { margin-top: 6px; font-size: 12px; color: var(--red-ink); font-weight: 600; }
/* Streets the store has delivered to, suggested under the address box with their usual miles */
.street-suggest { margin-top: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.street-suggest button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.street-suggest button:last-child { border-bottom: 0; }
.street-suggest button:hover, .street-suggest button:focus-visible { background: var(--c-f0f4fa); }
.street-suggest .name { min-width: 0; overflow-wrap: anywhere; }
.street-suggest .mi { flex: none; font-size: 12px; color: var(--muted); }
.miles-note { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* Delivery Tracker driver: double drops + runs saved with no signal (07/10/2026) */
.trip-order + .trip-order { border-top: 1px dashed var(--line); padding-top: 14px; }
.trip-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.trip-head .trip-title { flex: 1; min-width: 0; font-size: 15px; }
.trip-head button.text { width: auto; padding: 6px 4px; }
.offline-note { margin-bottom: 14px; font-size: 14px; line-height: 1.5; border-left: 3px solid var(--warn); }
.outbox { margin-bottom: 14px; border-left: 3px solid var(--warn); }
.outbox .ob-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.outbox .ob-head button { width: auto; padding: 8px 14px; font-size: 14px; }
.outbox .ob-note { margin: 6px 0 4px; font-size: 13px; color: var(--muted); }
.outbox .ob-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.outbox .ob-item > div { min-width: 0; }
.outbox .ob-item button { width: auto; flex: none; padding: 4px; }
.outbox .ob-when { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Delivery Tracker admin: Stats tab (07/10/2026) */
.st-week { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.st-week strong { flex: 1; min-width: 0; text-align: center; font-size: 15px; }
.st-week button { width: auto; min-width: 44px; min-height: 44px; padding: 8px 14px; flex: none; }
.st-check { margin: 4px 0 16px; font-size: 13px; line-height: 1.5; }
.st-check p { margin: 0 0 6px; }
.st-check p:last-child { margin-bottom: 0; }
.st-check .warn-text { color: var(--warn); font-weight: 600; }
.pill.warn { background: var(--c-fff6e0); color: var(--warn); }
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }

/* ---------- Uniform Requests admin ---------- */

.icon-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-picker button {
  width: 40px; height: 40px; border-radius: 10px;
  border: 2px solid var(--line); background: var(--paper);
  color: var(--navy); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: inherit;
}
.icon-picker button svg { width: 20px; height: 20px; }
.icon-picker button.selected { border-color: var(--navy); background: var(--c-eef4fb); }
.item-row-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--band); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 8px; vertical-align: middle;
}
.item-row-icon svg { width: 18px; height: 18px; }

/* Order cards - one per batch of items submitted together */
.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  background: var(--paper);
}
.order-card-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.order-staff-name { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 15px; }
.order-timestamp { font-size: 11.5px; color: var(--muted); }
.order-item-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
}
.order-item-row + .order-item-row { border-top: 1px solid var(--floor); }
.order-item-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--floor); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.order-item-icon svg { width: 17px; height: 17px; }
.order-item-info { flex: 1; min-width: 0; }
.order-item-name { font-size: 13px; font-weight: 500; display: block; }
.order-item-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.order-item-actions .text { font-size: 12px; padding: 0; }
.order-notes {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); font-style: italic;
}
.status-pill { font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.status-pill.requested { background: var(--floor); color: var(--muted); }
.status-pill.ordered { background: var(--c-eef4fb); color: var(--navy); }
.status-pill.fulfilled { background: var(--c-eaf7ee); color: var(--good); }

/* ---------- Uniform Requests staff page ---------- */

.item-catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 90px; }
.item-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  background: var(--paper);
  transition: border-color .15s, background .15s;
}
.item-card.selected { border-color: var(--navy); background: var(--c-eef4fb); }
.item-card-icon {
  width: 44px; height: 44px; margin: 0 auto 8px;
  border-radius: 12px; background: var(--band); color: white;
  display: flex; align-items: center; justify-content: center;
}
.item-card-icon svg { width: 24px; height: 24px; }
.item-card-name { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.item-card select { font-size: 13px; padding: 7px 8px; margin-bottom: 10px; }
.qty-stepper { display: flex; align-items: center; justify-content: center; gap: 12px; }
.qty-stepper button {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 16px; font-weight: 600; color: var(--navy); cursor: pointer;
  line-height: 1;
}
.qty-stepper button:active { background: var(--floor); }
.qty-stepper button:disabled { opacity: 0.3; cursor: default; }
.qty-stepper .qty-value { min-width: 18px; font-weight: 700; font-size: 14px; }

.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-width: 480px; margin: 0 auto;
  background: var(--band);
  background-image: linear-gradient(160deg, var(--band) 0%, var(--band-deep) 100%);
  color: white;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.cart-bar .cart-summary { font-size: 13.5px; font-weight: 500; }
.cart-bar button {
  background: #fff; color: var(--band); border: none; border-radius: 8px;
  padding: 10px 18px; font-weight: 600; font-size: 13.5px; cursor: pointer;
}

.history-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--floor); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 8px; vertical-align: middle;
}
.history-icon svg { width: 16px; height: 16px; }

/* ---------- KPI Tracker ---------- */

.wrap.xwide { max-width: 1100px; }
/* On the extra-wide page tabs sit compactly on the left rather than stretching 1100px. */
.wrap.xwide .tabs button { flex: 0 0 auto; padding: 11px 16px; }
h2.section-title { font-size: 15px; color: var(--navy); font-weight: 700; border-bottom: 2px solid var(--red); padding-bottom: 6px; margin: 0 0 16px; }
.success-msg { background: var(--c-eaf7ee); color: var(--good); border: 1px solid var(--c-bfe6cc); border-radius: var(--radius); padding: 11px 13px; font-size: 13px; margin-bottom: 14px; }

/* ---------- Targets grid ---------- */
.targets-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
table.targets-table { border-collapse: collapse; width: 100%; min-width: 820px; }
table.targets-table th {
  background: var(--band); background-image: linear-gradient(160deg, var(--band) 0%, var(--band-deep) 100%);
  color: white; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 12.5px; padding: 9px 6px; text-align: center; white-space: nowrap;
}
table.targets-table th.metric-corner { text-align: left; padding-left: 12px; position: sticky; left: 0; z-index: 2; }
table.targets-table td { border: 1px solid var(--line); padding: 4px; text-align: center; }
table.targets-table td.metric-cell {
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 12.5px; text-align: left; padding: 8px 12px;
  white-space: nowrap; position: sticky; left: 0; background: var(--paper); border-right: 2px solid var(--line);
}
table.targets-table tr.section-row td { background: var(--floor); padding: 6px 12px; text-align: left; position: static; }
/* Section name + Paste stay pinned to the left edge while the grid scrolls
   sideways, so they're on screen on a phone too. */
.section-label { position: sticky; left: 12px; display: inline-flex; align-items: center; gap: 14px; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.section-label button.text { font-size: 11.5px; font-weight: 600; text-transform: none; letter-spacing: normal; padding: 0; }
table.targets-table tr.paste-row td { background: var(--paper); text-align: left; position: static; }
.paste-box { padding: 10px 4px; position: sticky; left: 0; width: min(100%, calc(100vw - 72px)); }
.paste-hint { font-size: 12px; color: var(--muted); margin: 0 0 8px; line-height: 1.4; }
.paste-box textarea {
  width: 100%; font-family: 'Courier New', monospace; font-size: 12.5px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: var(--radius); resize: vertical;
}
table.targets-table input { border: none; text-align: center; padding: 8px 4px; font-size: 13px; border-radius: 0; background: transparent; }
table.targets-table input:focus { background: var(--c-eef4fb); box-shadow: none; outline: 1px solid var(--navy); }
/* Import from DOMFD preview - highlighted cells replace a different saved figure */
table.targets-table.domfd-preview td { padding: 8px 4px; font-size: 13px; }
table.targets-table.domfd-preview td.domfd-empty { color: var(--muted); }
table.targets-table.domfd-preview td.domfd-changed { background: var(--c-fff6e0); font-weight: 600; }
.domfd-was { display: block; font-size: 10.5px; font-weight: 400; color: var(--warn); }

/* ---------- KPI: All Stores tab ---------- */
/* All-stores strip */
.ov-summary:empty { display: none; }
.ov-summary { background: var(--band); background-image: linear-gradient(160deg, var(--band) 0%, var(--band-deep) 100%); color: white; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; box-shadow: var(--shadow-md); }
.ov-summary-title { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; opacity: 0.8; margin-bottom: 10px; }
.ov-summary-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 14px 24px; }
.ov-stat-label { font-size: 12px; opacity: 0.75; }
.ov-stat-value { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; margin: 2px 0; }
.ov-summary .ov-var { font-size: 12px; }
.ov-summary .ov-var.good { color: #7fe0a8; }
.ov-summary .ov-var.bad { color: var(--c-ffb3b3); }
.ov-summary .ov-var.flat { color: rgba(255,255,255,0.7); }

/* One card per store */
.ov-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.ov-card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--store, var(--navy)); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 16px 18px 14px; min-width: 0; }
.ov-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.ov-card-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px; color: var(--navy); line-height: 1.2; }
.ov-days { display: inline-block; font-size: 12px; font-weight: 600; color: var(--good); margin-top: 3px; }
.ov-days.partial { color: var(--warn); }
.ov-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ov-card-actions button.secondary { width: auto; padding: 6px 12px; font-size: 13px; }
.ov-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ov-metric { background: var(--floor); border-radius: 8px; padding: 10px 11px; min-width: 0; }
.ov-metric-label { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.ov-metric-value { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; margin: 3px 0 2px; white-space: nowrap; }
.ov-var { display: block; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ov-var.good { color: var(--good); }
.ov-var.bad { color: var(--red-ink); }
.ov-var.flat, .ov-muted { color: var(--muted); font-weight: 400; }
.ov-card-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.ov-card-foot strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.ov-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; }
@media (max-width: 420px) {
  .ov-metrics { grid-template-columns: repeat(2, 1fr); }
  .ov-card-head { flex-direction: column; }
}
.ov-note { font-size: 12px; color: var(--muted); margin: 14px 0 34px; line-height: 1.5; }
.ov-trends-head { flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--red); padding-bottom: 6px; margin-bottom: 12px; }
.ov-range { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.ov-range select { width: auto; padding: 6px 10px; }
.ov-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ink); margin-bottom: 14px; }
.ov-key { display: inline-flex; align-items: center; gap: 7px; }
.ov-key-note { color: var(--muted); }
.ov-line-key { width: 16px; height: 3px; border-radius: 2px; }
.ov-hollow { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--muted); background: var(--surface); }
.ov-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 18px; }
.ov-chart-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px 18px 12px; min-width: 0; }
.ov-chart-title { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--navy); font-size: 15px; }
.ov-chart-sub { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.ov-chart { position: relative; }
.ov-chart svg { display: block; max-width: 100%; overflow: visible; }
.ov-chart .ov-grid { stroke: var(--c-ebe9e3); stroke-width: 1; }
.ov-chart .ov-axis { stroke: var(--c-c9c5bb); stroke-width: 1; }
.ov-chart .ov-tick { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.ov-chart .ov-end-label { font-size: 11.5px; font-weight: 600; fill: var(--ink); }
.ov-chart .ov-crosshair { stroke: var(--muted); stroke-width: 1; }
.ov-chart .ov-hit { fill: transparent; cursor: crosshair; }
.ov-chart-empty { padding: 50px 10px; text-align: center; color: var(--muted); font-size: 13px; }
.ov-tooltip { position: absolute; top: 0; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-md); padding: 8px 10px; font-size: 12px; pointer-events: none; min-width: 160px; }
.ov-tip-head { font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.ov-tip-row { display: flex; align-items: center; gap: 6px; line-height: 1.7; }
.ov-tip-row strong { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.ov-tip-row .ov-swatch { margin-right: 0; }
.ov-figures { margin-top: 6px; font-size: 12.5px; }
.ov-figures summary { cursor: pointer; color: var(--muted); }
.ov-fig-scroll { overflow-x: auto; margin-top: 6px; }
table.ov-fig-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
table.ov-fig-table th, table.ov-fig-table td { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-size: 12px; }
table.ov-fig-table th:first-child, table.ov-fig-table td:first-child { text-align: left; }

/* ---------- Daily Entry ---------- */
.shift-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 20px 22px; margin-bottom: 24px; }
.shift-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.expected-sales { background: var(--floor); border-radius: var(--radius); padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.field-section { margin-bottom: 20px; }
.field-section:last-child { margin-bottom: 0; }
.field-section-title { font-family: 'Outfit', sans-serif; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--navy); margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.field-grid { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.field-grid-full { display: block; }
.field-grid-full .field { margin-bottom: 14px; }
.field-grid-full .field:last-child { margin-bottom: 0; }
.field-grid .field { margin-bottom: 0; flex: 1 1 160px; min-width: 160px; }
.field-grid textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: 13.5px; resize: vertical; }
.checkbox-field { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); font-weight: 500; cursor: pointer; flex-basis: 100%; padding: 4px 0; }

/* ---------- Refunds: overdue + trends ---------- */

/* Pending 7+ days after being logged. */
.delivery-row.overdue { border-left: 3px solid var(--red); padding-left: 12px; background: var(--c-fff7f6); }
.summary-grid .stat.alert { border-color: var(--c-f3c6c6); background: var(--c-fdeaea); }
.summary-grid .stat.alert .num { color: var(--red-ink); }

/* One-colour horizontal bars with the value written beside each. */
.bar-list { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(84px, 30%) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.bar-label { color: var(--ink); overflow-wrap: anywhere; }
.bar-track { height: 10px; background: var(--floor); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--band); border-radius: 999px; }
.bar-value { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 7.5em; text-align: right; }
.bar-count { font-weight: 400; color: var(--muted); }
/* ---------- Phones and desktops ---------- */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img { max-width: 100%; }

/* Header buttons wrap onto a second line rather than pushing the whole page
   wider than a phone screen (which made every page slide sideways). */
header.bar { flex-wrap: wrap; gap: 10px 12px; }
.header-actions { flex-wrap: wrap; gap: 6px; }

/* Tab strips scroll sideways when they don't fit, rather than squashing
   each label onto two lines. */
.tabs { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; white-space: nowrap; padding-left: 12px; padding-right: 12px; }

/* List rows: action links wrap, and long names/addresses/emails break
   instead of running off the edge. */
.delivery-row .top { gap: 10px; }
.delivery-row .top > span:first-child, .delivery-row .meta { min-width: 0; overflow-wrap: anywhere; }
.delivery-row .row { flex-wrap: wrap; }

/* Side-by-side fields (e.g. start/end date) share the width instead of each
   insisting on the browser's minimum date-picker width. */
.row > .field { min-width: 0; }
input[type=date], input[type=time], input[type=datetime-local] { min-width: 0; }

/* Admin pages use more of a desktop screen (tables fit without scrolling);
   on a phone they're the same as before. */
.wrap.wide { max-width: 880px; }
.wrap.wide .summary-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

@media (max-width: 560px) {
  header.bar { padding: 14px 16px; }
  main { padding: 18px 16px 90px; }
  /* Long names wrap so the pinned name column doesn't fill half the rota. */
  td.rota-driver-cell { white-space: normal; min-width: 96px; max-width: 124px; }
}

/* iPhones zoom in when you tap a field with text under 16px, and stay
   zoomed in afterwards - 16px on touch screens stops that. */
@media (max-width: 760px), (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; }
}

/* Desktop: pop-ups as centred dialogs instead of sheets stuck to the bottom. */
@media (min-width: 761px) {
  .modal-backdrop { align-items: center; padding: 24px; }
  .modal-sheet { border-radius: 16px; max-height: 90vh; }
  .modal-sheet::before { display: none; }
}

/* KPI on narrow screens: the long "Week commencing ..." label gets its own
   line above Prev/Next, and the grid shows more days before scrolling. */
@media (max-width: 760px) {
  .wrap.xwide .week-nav { flex-wrap: wrap; gap: 10px; }
  .wrap.xwide .week-nav > :not(button) { order: -1; flex-basis: 100%; text-align: center; }
  table.targets-table { min-width: 640px; }
  table.targets-table td.metric-cell { padding: 8px; }
  .shift-card { padding: 16px; }
}

/* ---------- Tick boxes ---------- */
/* The general input rule above (full width, padding, border) must not reach
   tick boxes: iPhones honour it, stretching the box across the row and
   pushing its label ("Can't work") off the right-hand edge. */
input[type=checkbox], input[type=radio] {
  width: 18px; height: 18px; padding: 0; margin: 0; border: 0;
  flex-shrink: 0; accent-color: var(--navy); cursor: pointer;
}
.cant-work-toggle { white-space: nowrap; margin-bottom: 0; flex-shrink: 0; }

h1 { margin: 0; }

/* ---------- Stock Expiry (inventory app) ---------- */
.inv-status { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; font-size: 14px; box-shadow: var(--shadow-sm); }
.inv-muted { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.inv-empty { background: var(--c-eaf7ee); color: var(--good); border: 1px solid var(--c-bfe6cc); border-radius: var(--radius); padding: 18px; text-align: center; font-weight: 600; margin-bottom: 20px; }
.inv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-bottom: 22px; }
.inv-card { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); min-width: 0; margin-bottom: 12px; }
.inv-cards .inv-card { margin-bottom: 0; }
.inv-card.inv-bad { border-left-color: var(--red); }
.inv-card.inv-warn { border-left-color: var(--warn); }
.inv-card.inv-info { border-left-color: var(--navy); }
.inv-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.inv-product { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 16px; color: var(--navy); }
.inv-pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.inv-pill.inv-bad { background: var(--c-fbeaea); color: var(--red-ink); }
.inv-pill.inv-warn { background: var(--c-fff6e0); color: var(--c-7a5200); }
.inv-pill.inv-info { background: var(--c-eef3f9); color: var(--navy); }
.inv-detail { font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; color: var(--ink); }
.inv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-actions button.secondary { width: auto; padding: 8px 12px; font-size: 13px; flex: 1 1 auto; }
.inv-handled { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.inv-handled-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.inv-handled-row:last-child { border-bottom: 0; }
.inv-details { margin: 10px 0 18px; font-size: 13.5px; }
.inv-details summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.inv-details p { margin: 8px 0; line-height: 1.5; }
.inv-campaign { margin-bottom: 14px; }
.inv-camp-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.inv-camp-row select { width: auto; min-width: 200px; }
.inv-camp-dates { font-size: 13.5px; color: var(--muted); padding-bottom: 10px; }
.inv-rules { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin-bottom: 22px; }
.inv-rule { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.inv-rule:last-child { border-bottom: 0; }
.inv-rule-name { font-size: 14px; min-width: 180px; flex: 1 1 220px; }
.inv-rule-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inv-rule-view { font-size: 13.5px; color: var(--muted); }
.inv-inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.inv-inline input { width: 70px; padding: 6px 8px; }
.inv-inline select { width: auto; padding: 6px 8px; }
button.inv-small { width: auto; padding: 7px 14px; font-size: 13px; }
.inv-form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 10px 0 20px; }
.inv-form-row .field { margin: 0; flex: 1 1 160px; }
.inv-form-row button { width: auto; padding: 11px 22px; }
.inv-days { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 6px 0 12px; }
.inv-day { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--ink); cursor: pointer; }
.inv-scroll { overflow-x: auto; }
table.inv-table { border-collapse: collapse; width: 100%; font-size: 12.5px; margin-top: 8px; }
table.inv-table th, table.inv-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.inv-log { background: var(--floor); border-radius: var(--radius); padding: 10px; font-size: 12px; white-space: pre-wrap; max-height: 260px; overflow: auto; }
.inv-slack { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.inv-slack-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.inv-slack .field { margin: 8px 0; }
.inv-period { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.inv-period button.active { background: var(--band); color: white; border-color: var(--navy); }
.inv-var-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 18px; }
.inv-var-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.inv-var-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.inv-var-row:last-child { border-bottom: 0; }
.inv-var-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inv-var-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.inv-var-amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-var-over { color: var(--red-ink); }
.inv-var-under { color: var(--navy); }
.inv-var-flat { color: var(--muted); }

/* ---------- Homepage: install the app / phone notifications (js/notify.js) ---------- */
.portal-notify {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
}
.portal-notify[hidden] { display: none; }
.portal-notify-text { flex: 1 1 240px; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.portal-notify-text strong { color: var(--ink); font-size: 15px; }
.portal-notify-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.portal-notify-actions button.primary,
.portal-notify-actions button.secondary { width: auto; padding: 10px 16px; font-size: 14px; }

/* ---------- Days Off (daysoff-app: staff.html + admin.html) ---------- */
.do-week { margin-bottom: 14px; }
.do-week-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 12px; }
.do-week-title { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 16px; color: var(--navy); }
.do-status { font-size: 12.5px; font-weight: 600; color: var(--good); }
.do-status.closed { color: var(--muted); }
.do-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 10px; }
.do-day {
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
  padding: 8px 0 6px; font-family: inherit; cursor: pointer; line-height: 1.2; min-width: 0; min-height: 64px;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.1s var(--ease), box-shadow 0.15s var(--ease);
}
.do-day .dn { display: block; font-size: 12px; font-weight: 700; }
.do-day .dd { display: block; font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 600; color: var(--navy); margin-top: 2px; }
.do-day .dm { display: block; min-height: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; margin-top: 1px; }
.do-day:hover:not(:disabled) { border-color: var(--navy); }
.do-day:active:not(:disabled) { transform: scale(0.95); }
.do-day.on { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 2px 8px rgba(208, 17, 26, 0.25); }
.do-day.on .dd { color: #fff; }
.do-day:disabled { cursor: default; }
/* blocked by a manager: striped, can't be picked (one asked before the block stays red) */
.do-day.blocked:not(.on) { background: repeating-linear-gradient(135deg, var(--c-faf8f3) 0 6px, var(--c-ebe9e3) 6px 12px); color: var(--muted); border-style: dashed; }
.do-day.blocked:not(.on) .dd { color: var(--muted); }
.do-week.is-closed .do-day:not(.on) { opacity: 0.6; }
.do-note { width: 100%; margin-bottom: 10px; }
.do-note-read { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-style: italic; }
.do-actions { display: flex; align-items: center; gap: 12px; }
.do-actions button.primary { width: auto; padding: 10px 18px; font-size: 14px; }
.do-saved { font-size: 13px; color: var(--good); font-weight: 600; }
.do-guide { font-size: 12.5px; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 16px; }
.do-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 13px; }
.do-summary span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.do-grid { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.do-grid th, .do-grid td { padding: 7px 2px; text-align: center; border-bottom: 1px solid var(--line); font-size: 12px; }
.do-grid th { color: var(--muted); font-weight: 600; background: var(--c-faf8f3); }
.do-grid th .dd { display: block; font-weight: 500; font-size: 11px; }
.do-grid .do-name { text-align: left; padding-left: 10px; width: 34%; font-size: 13px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.do-grid .do-name .do-person-note { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); font-style: italic; margin-top: 2px; }
.do-grid .do-off { display: inline-block; width: 22px; height: 22px; line-height: 22px; border-radius: 6px; background: var(--c-fdeaea); color: var(--red-ink); font-weight: 700; font-size: 12px; }
.do-grid tr.do-none .do-name { color: var(--muted); font-weight: 500; }
.do-grid tfoot td { font-weight: 700; color: var(--navy); background: var(--c-faf8f3); border-bottom: none; }
.do-grid tfoot td.do-busy { color: var(--red-ink); }
.do-grid tr:last-child td { border-bottom: none; }
@media (max-width: 420px) { .do-grid .do-name { width: 30%; font-size: 12px; } .do-grid th, .do-grid td { font-size: 11px; } }
/* 19/10/2026: blocked days, status chips, auto-save, manager edits + Blocked days tab */
.do-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: -4px 0 14px; font-size: 12.5px; color: var(--muted); }
.do-legend span { display: inline-flex; align-items: center; gap: 6px; }
.do-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line); }
.do-key.off { background: var(--red); border-color: var(--red); }
.do-key.blocked { background: repeating-linear-gradient(135deg, var(--c-faf8f3) 0 3px, var(--c-ebe9e3) 3px 6px); border-style: dashed; }
.do-chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.do-chip.open { background: var(--c-eaf7ee); color: var(--good); }
.do-chip.soon { background: var(--c-fff6e0); color: var(--c-7a5200); }
.do-chip.closed { background: var(--c-ebe9e3); color: var(--muted); }
.do-reasons { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.do-reasons strong { color: var(--ink); }
.do-reasons-grid { margin-top: 10px; }
.do-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; font-size: 13px; }
.do-summary-line { color: var(--muted); }
.do-saved.bad { color: var(--red-ink); }
.do-by { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.do-small { font-size: 12.5px; }
.do-tabs { margin-bottom: 16px; }
.do-grid th.do-blocked, .do-grid td.do-blocked { background: repeating-linear-gradient(135deg, var(--c-faf8f3) 0 5px, var(--c-ebe9e3) 5px 10px); }
.do-grid .do-lock { display: block; font-size: 10px; line-height: 1.2; }
.do-grid .do-person-by { display: block; font-weight: 400; font-size: 11px; color: var(--muted); margin-top: 2px; }
.do-grid .do-gone { font-weight: 400; color: var(--muted); font-size: 11px; }
.do-cell { width: 26px; height: 26px; padding: 0; border-radius: 7px; border: 1.5px dashed var(--line); background: transparent; color: var(--red-ink); font-weight: 700; font-size: 12px; cursor: pointer; line-height: 1; transition: background 0.15s var(--ease), border-color 0.15s var(--ease); }
.do-cell:hover { border-color: var(--navy); }
.do-cell.on { background: var(--c-fdeaea); border: 1.5px solid var(--c-f3c6c6); }
.do-cell:disabled { opacity: 0.5; cursor: progress; }
@media (max-width: 420px) { .do-cell { width: 22px; height: 22px; } }
.do-block-form h3, .do-list-title { margin: 0 0 6px; font-family: 'Outfit', sans-serif; color: var(--navy); font-size: 16px; }
.do-list-title { margin: 20px 0 10px; }
.do-seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; margin: 6px 0 12px; max-width: 100%; }
.do-seg button { border: none; background: var(--paper); color: var(--muted); padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.do-seg button.active { background: var(--navy); color: #fff; }
.do-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; }
.do-form-row[hidden] { display: none; }
.do-optional { font-weight: 400; color: var(--muted); }
.do-block { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 8px; }
.do-block-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.do-block-text strong { color: var(--navy); }
.do-block button.secondary { width: auto; padding: 8px 14px; font-size: 13px; flex: none; }

/* ---------- Training (training-app, 19/10/2026): Learn / Practise / Progress / Manage ---------- */
.tr-tabs { margin-bottom: 14px; }
.tr-seg { display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.tr-seg button { flex: 1 1 0; min-width: 0; border: none; background: var(--paper); color: var(--muted); padding: 9px 6px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.tr-seg button + button { border-left: 1.5px solid var(--line); }
.tr-seg button.active { background: var(--navy); color: #fff; }
.tr-search { width: 100%; margin-bottom: 12px; }
.tr-search[hidden] { display: none; }
.tr-small { font-size: 12.5px; }
.tr-optional { font-weight: 400; color: var(--muted); }
.tr-h { margin: 16px 0 8px; font-family: 'Outfit', sans-serif; font-size: 15px; color: var(--navy); }
.tr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tr-pizza { display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; cursor: pointer; border: 1px solid var(--line); margin: 0; width: 100%; transition: border-color 0.15s var(--ease), transform 0.1s var(--ease); }
.tr-pizza:hover { border-color: var(--navy); }
.tr-pizza:active { transform: scale(0.98); }
.tr-pizza strong { font-family: 'Outfit', sans-serif; font-size: 16px; color: var(--navy); }
.tr-pizza span { font-size: 13px; color: var(--muted); }
.tr-pizza.has-img { flex-direction: row; align-items: center; gap: 12px; }
.tr-thumb { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--c-ebe9e3); }
.tr-pizza-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tr-photo { margin: 6px 0 4px; }
.tr-photo img { display: block; width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--c-ebe9e3); }
.tr-photo figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tr-back { margin-bottom: 10px; color: var(--navy); background: none; border: none; padding: 4px 0; font-weight: 600; cursor: pointer; }
.tr-detail h2 { margin: 0 0 6px; font-family: 'Outfit', sans-serif; color: var(--navy); }
.tr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.tr-chip { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.tr-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tr-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tr-steps li { counter-increment: step; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--c-faf8f3); border-left: 4px solid var(--line); }
.tr-steps li::before { content: counter(step); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.tr-steps li.k-sauce { border-left-color: var(--red); }
.tr-steps li.k-cheese { border-left-color: #e8b923; }
.tr-steps li.k-meat { border-left-color: #a0522d; }
.tr-steps li.k-veg { border-left-color: var(--good); }
.tr-step-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.tr-step-name small, .tr-row-name small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.tr-amount { flex: none; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 16px; color: var(--navy); text-align: right; }
.tr-note { margin: 12px 0 0; font-size: 13.5px; background: var(--c-fff6e0); color: var(--c-7a5200); border-radius: 10px; padding: 10px 12px; }
.tr-code { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; font-weight: 700; background: var(--c-eef3fb); color: var(--navy); border-radius: 6px; padding: 2px 7px; min-width: 34px; text-align: center; }
.tr-list { padding: 4px 14px; }
.tr-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tr-row:last-child { border-bottom: none; }
.tr-row-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tr-unit { font-size: 12px; color: var(--muted); }
.tr-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tr-size { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.tr-size strong { color: var(--navy); }
.tr-big { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 700; color: var(--red); }
.tr-quizzes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tr-quiz { display: flex; flex-direction: column; gap: 6px; }
.tr-quiz strong { font-family: 'Outfit', sans-serif; font-size: 16px; color: var(--navy); }
.tr-quiz > span { font-size: 13px; color: var(--muted); }
.tr-quiz .tr-best { font-weight: 600; color: var(--ink); }
.tr-quiz button { margin-top: auto; }
.tr-quiz.off { opacity: 0.7; }
.tr-qcard { max-width: 560px; margin: 0 auto; }
.tr-qtop { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tr-bar { height: 6px; background: var(--c-ebe9e3); border-radius: 999px; margin: 8px 0 16px; overflow: hidden; }
.tr-bar i { display: block; height: 100%; background: var(--red); border-radius: 999px; transition: width 0.3s var(--ease); }
.tr-q { font-size: 18px; line-height: 1.4; margin: 0 0 14px; color: var(--ink); }
.tr-answers { display: grid; gap: 8px; }
.tr-ans { text-align: left; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 10px; padding: 13px 14px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color 0.15s var(--ease), background 0.15s var(--ease); }
.tr-ans:hover:not(:disabled) { border-color: var(--navy); }
.tr-ans:disabled { cursor: default; }
.tr-ans.right { background: var(--c-eaf7ee); border-color: var(--good); color: var(--good); }
.tr-ans.right::after { content: ' ✓'; }
.tr-ans.wrong { background: var(--c-fdeaea); border-color: var(--red); color: var(--red-ink); }
.tr-ans.wrong::after { content: ' ✕'; }
/* Build it: tap the toppings */
.tr-hint { margin: -6px 0 12px; }
.tr-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-pick { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 10px 14px; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: border-color 0.15s var(--ease), background 0.15s var(--ease); }
.tr-pick:hover:not(:disabled) { border-color: var(--navy); }
.tr-pick.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tr-pick:disabled { cursor: default; }
.tr-pick.right { background: var(--c-eaf7ee); border-color: var(--good); color: var(--good); }
.tr-pick.right::after { content: ' ✓'; }
.tr-pick.wrong { background: var(--c-fdeaea); border-color: var(--red); color: var(--red-ink); }
.tr-pick.wrong::after { content: ' ✕'; }
.tr-pick.missed { border-style: dashed; border-color: var(--good); color: var(--good); }
.tr-pick.missed::after { content: ' – missed'; font-weight: 400; }
.tr-result { margin: 12px 0 0; font-size: 14px; font-weight: 600; border-radius: 10px; padding: 10px 12px; }
.tr-result.good { background: var(--c-eaf7ee); color: var(--good); }
.tr-result.bad { background: var(--c-fdeaea); color: var(--red-ink); }
.tr-mistakes { margin-bottom: 12px; border: 1.5px solid var(--red); }
.tr-weak { display: block; font-weight: 400; font-size: 11.5px; color: var(--red-ink); margin-top: 2px; }
.tr-qfoot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.tr-qfoot button { width: auto; padding: 10px 18px; }
.tr-qfoot button[hidden] { display: none; }
.tr-done { text-align: center; }
.tr-score { font-family: 'Outfit', sans-serif; font-size: 44px; font-weight: 700; color: var(--navy); margin: 6px 0; }
.tr-pct { display: inline-block; min-width: 44px; text-align: center; font-weight: 700; font-size: 12.5px; border-radius: 999px; padding: 3px 8px; }
.tr-pct.good { background: var(--c-eaf7ee); color: var(--good); }
.tr-pct.mid { background: var(--c-fff6e0); color: var(--c-7a5200); }
.tr-pct.low { background: var(--c-fdeaea); color: var(--red-ink); }
.tr-pct.none { color: var(--muted); }
.tr-team { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 13px; }
.tr-team th, .tr-team td { padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.tr-team th { background: var(--c-faf8f3); color: var(--muted); font-weight: 600; font-size: 12px; }
.tr-team th:first-child, .tr-team td:first-child { text-align: left; padding-left: 10px; width: 32%; overflow-wrap: anywhere; font-weight: 600; }
.tr-team tr:last-child td { border-bottom: none; }
@media (max-width: 420px) { .tr-team .tr-pct { min-width: 0; padding: 2px 5px; font-size: 11.5px; } .tr-team th { font-size: 11px; } }
.tr-form .field { margin-bottom: 10px; }
.tr-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.tr-size-edit { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tr-size-edit .tr-actions { grid-column: 1 / -1; }
.tr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tr-actions button { width: auto; padding: 10px 16px; font-size: 14px; }
.tr-actions .tr-sm, .tr-row .tr-sm { padding: 7px 12px; font-size: 13px; width: auto; flex: none; }
.tr-edit { border-bottom: 1px solid var(--line); padding: 10px 0; }
.tr-edit:last-child { border-bottom: none; }
.tr-edit summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tr-edit summary small { font-weight: 400; color: var(--muted); }
.tr-edit .tr-form { padding-top: 10px; }
.tr-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; background: var(--c-faf8f3); }
.tr-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tr-stepno { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.tr-item-btns { margin-left: auto; display: flex; gap: 4px; }
.tr-xs { width: 32px !important; height: 32px; padding: 0 !important; font-size: 14px; }
.tr-amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; margin-bottom: 6px; }
.tr-amt { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); font-weight: 600; }
.tr-amt input, .tr-item-note { width: 100%; }
.tr-add { margin: 6px 0 12px; }
.tr-add select { width: 100%; }
.tr-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 12px; }
.tr-saved { font-size: 13px; font-weight: 600; color: var(--good); }
/* ---------- "Can anyone come in?" cover call-outs (hub cover.html / cover-reply.html / homepage) ---------- */
.cv-banner { display: block; margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius); background: var(--red); background-image: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%); color: #fff; text-decoration: none; box-shadow: var(--shadow-md); }
.cv-banner strong { display: block; font-size: 15px; }
.cv-banner span { font-size: 13px; opacity: 0.9; }
.cv-send-link { display: block; margin: 14px 0 0; padding: 11px 14px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); color: var(--navy); text-decoration: none; font-size: 14px; }
.cv-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; }
.cv-muted { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.cv-sub { font-size: 15px; color: var(--navy); margin: 8px 0 4px; }
.cv-cand { display: flex; align-items: flex-start; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.cv-cand span { display: flex; flex-direction: column; gap: 1px; font-size: 14px; }
.cv-cand em { font-style: normal; font-size: 12px; color: var(--muted); }
.cv-cand small { font-size: 12px; color: var(--warn); }
.cv-cand small.ok { color: var(--good); }
.cv-cand.dim strong { color: var(--muted); }
#send { margin-top: 14px; }
.cv-call { margin-bottom: 10px; }
.cv-call.open { border-left: 4px solid var(--red); }
.cv-call-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.cv-call-head > div { display: flex; flex-direction: column; gap: 2px; }
.cv-call-head button.secondary, .cv-person button.primary { width: auto; padding: 7px 14px; font-size: 13px; }
.cv-person { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; border-top: 1px solid var(--line); }
.cv-person em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.cv-person.yes span:first-child { color: var(--good); font-weight: 600; }
.cv-person.no span:first-child { color: var(--muted); }
.cv-picked { font-size: 12.5px; font-weight: 700; color: #fff; background: var(--good); border-radius: 999px; padding: 3px 10px; }
.cv-ask { text-align: center; margin-bottom: 16px; }
.cv-store { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.cv-when { font-size: 22px; margin: 4px 0 8px; }
.cv-note { font-style: italic; color: var(--ink); margin: 6px 0 0; }
.cv-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cv-result { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 3px; }
.cv-result.good { border-color: var(--good); background: var(--c-eaf7ee); }
.cv-result.good strong { color: var(--good); }
.cv-list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cv-list-head button.text { width: auto; }
.cv-buttons.three { grid-template-columns: 1fr 1fr 1fr; }
.cv-buttons.three button { padding: 12px 6px; font-size: 14px; }
@media (max-width: 420px) { .cv-buttons.three { grid-template-columns: 1fr; } }
.cv-partial { margin-top: 12px; }
.cv-person span:first-child { display: flex; flex-direction: column; }
.cv-person.partial span:first-child { color: var(--warn); }
.cv-msg { font-size: 12.5px; font-weight: 400; color: var(--ink); font-style: italic; }
/* ---------- Upload the rota (hub rota.html) ---------- */
.ro-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; text-align: center; color: var(--navy); }
.ro-drop:hover { border-color: var(--navy); background: var(--c-f8f9fc); }
.ro-drop input { margin-top: 8px; max-width: 100%; }
.ro-ok { color: var(--good); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.ro-person { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.ro-person.unmatched { background: var(--c-fff7e8); }
.ro-who { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ro-shifts { font-size: 12.5px; color: var(--muted); }
.ro-person select { flex: 0 1 240px; }
.ro-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.ro-actions button.primary { width: auto; padding: 11px 22px; }
.ro-week { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; padding: 12px 16px; }
.ro-person.dup { background: var(--c-fdeaea); }
.ro-dup { font-size: 12.5px; color: var(--red-ink); font-weight: 600; }
.ro-view-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ro-view-head button.secondary { width: auto; padding: 6px 12px; font-size: 13px; flex-shrink: 0; }
.ro-grid .do-name { width: 27%; }
.ro-grid td { padding: 4px 2px; }
.ro-cell { width: 100%; border: 1px solid var(--c-c9d6ea); border-radius: 6px; background: var(--c-eef3fb); color: var(--navy); font-family: inherit; font-size: 11.5px; font-weight: 700; line-height: 1.15; padding: 4px 0; cursor: pointer; }
.ro-cell small { display: block; font-weight: 500; font-size: 10.5px; }
.ro-cell.empty { background: transparent; border: 1px dashed var(--line); color: var(--c-c9c3b6); font-size: 14px; padding: 6px 0; }
.ro-cell.past { opacity: 0.5; }
/* off sick - find cover (07/10/2026): asking = amber, covered = green */
.ro-cell.cover-asking { background: var(--c-fff6e0); border-color: var(--c-f1dc9e); color: var(--c-7a5200); }
.ro-cell.cover-covered { background: var(--c-eaf7ee); border-color: var(--good); color: var(--good); }
.ro-sick { width: 100%; margin: 0 0 12px; }
.cv-offsick { font-size: 12.5px; font-weight: 600; color: var(--navy); }
.ro-who-sel { display: block; margin-top: 4px; width: 100%; max-width: 170px; font-size: 11.5px; padding: 3px 4px; }
.ro-who-sel.none { border-color: var(--warn); }
.ro-add-person { width: auto; margin-top: 12px; padding: 9px 14px; font-size: 14px; }
/* ---------- Hub homepage (server.js "/"): navy header, quick actions, tile grid ---------- */
body.home-page { background: var(--floor); }
.home-top { background: var(--band); background-image: linear-gradient(160deg, var(--band-light) 0%, var(--band) 55%, var(--band-deep) 100%); color: #fff; padding: calc(14px + env(safe-area-inset-top)) 16px 44px; }
.home-top-inner { max-width: 960px; margin: 0 auto; }
.home-topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 22px; }
.home-brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0.1px; }
.home-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: #fff; color: var(--band); font-weight: 800; font-size: 17px; }
.home-mark::after { content: ''; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.home-account { display: flex; gap: 6px; }
.home-account a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.home-account a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.home-hello { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 700; margin: 0 0 4px; color: #fff; letter-spacing: -0.3px; }
.home-sub { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.home-body { max-width: 960px; margin: -26px auto 0; padding: 0 16px 36px; position: relative; }
.home-body .cv-banner { margin: 0 0 12px; }
.home-body .portal-notify { margin: 0 0 14px; box-shadow: var(--shadow-md); }
.home-body .portal-notify-text { font-size: 13px; }
.home-body .portal-notify.on { padding: 9px 14px; border-left-color: var(--good); box-shadow: var(--shadow-sm); }
/* nudge (19/10/2026): no device on the account gets notifications - card at the top, red edge */
.home-body .portal-notify.nudge { border-left-color: var(--red); }
.home-body .portal-notify.nudge .portal-notify-text strong { font-size: 16px; }
.home-body .portal-notify.on .portal-notify-text strong { font-size: 13.5px; color: var(--good); }
.home-body .portal-notify.on .portal-notify-text strong::before { content: '● '; }
.home-body .portal-notify.on .portal-notify-actions button.secondary { padding: 6px 12px; font-size: 13px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.home-actions:empty { display: none; }
.home-action { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.1s var(--ease); }
.home-action svg { width: 18px; height: 18px; flex-shrink: 0; }
.home-action:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }
.home-action:active { transform: scale(0.98); }
.home-action.primary { background: var(--red); background-image: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%); border-color: transparent; color: #fff; box-shadow: 0 3px 10px rgba(208, 17, 26, 0.25); }
.home-section { font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); font-weight: 700; margin: 0 0 10px 2px; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } .home-hello { font-size: 30px; } }
.home-tile { display: flex; flex-direction: column; gap: 5px; padding: 14px 14px 15px; min-height: 132px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.1s var(--ease); }
.home-tile:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }
.home-tile:active { transform: scale(0.98); }
.home-tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--c-eef3fb); color: var(--navy); margin-bottom: 4px; }
.home-tile-icon svg { width: 22px; height: 22px; }
.home-tile-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15.5px; line-height: 1.2; color: var(--navy); }
.home-tile-desc { font-size: 12.5px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-tile .portal-card-badge { align-self: flex-start; margin: 1px 0 0; }
.home-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.home-footer a { color: var(--navy); font-weight: 600; text-decoration: none; }
.home-body main.home-grid { padding: 0; flex: none; }
.home-tile .portal-card-badge { border-radius: 8px; line-height: 1.3; }

/* ---------- App pages in the homepage style (30/09/2026) ----------
   Every app page is .wrap > header.bar + main. The navy header becomes a
   full-width band (::before, so no page needs changing) and the page content
   a white sheet with rounded top corners that overlaps it, like the hub
   homepage. Print documents (KPI export, rota print) don't use these. */
html, body { overflow-x: clip; }
body { background: var(--floor); background-image: none; }
.wrap { background: transparent; box-shadow: none; }
header.bar {
  background: none; box-shadow: none;
  padding: calc(14px + env(safe-area-inset-top)) 16px 40px;
}
header.bar::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1;
  background: var(--band); background-image: linear-gradient(160deg, var(--band-light) 0%, var(--band) 55%, var(--band-deep) 100%);
}
header.bar h1 { font-family: 'Outfit', sans-serif; font-size: 19px; letter-spacing: -0.1px; }
header.bar .accent {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; padding: 0; border-radius: 9px; background: #fff; color: var(--band);
  font-size: 17px; box-shadow: none;
}
header.bar .accent::after { content: ''; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
header.bar .icon-link { background: rgba(255, 255, 255, 0.1); font-weight: 600; color: rgba(255, 255, 255, 0.9); }
header.bar .icon-link:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.wrap > main {
  position: relative; z-index: 6; margin-top: -26px;
  background: var(--paper); border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 16px rgba(11, 37, 69, 0.07);
}
/* laptops: the sheet is a rounded card with space below it */
@media (min-width: 760px) {
  .wrap > main { border-radius: 18px; margin-bottom: 28px; box-shadow: var(--shadow-md); }
  header.bar { padding-left: 4px; padding-right: 4px; }
}
/* floating bits stay above the content sheet */
.fab { position: sticky; z-index: 10; }
.cart-bar { z-index: 10; }

/* ---------- Noticeboard (hub notices.html + homepage #noticesBox) ---------- */
#noticesBox:empty { display: none; }
#noticesBox { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); padding: 14px 14px 6px; margin-bottom: 14px; }
#noticesBox .nt-home-card { box-shadow: none; background: var(--surface); }
.nt-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.nt-home-head .home-section { margin-bottom: 8px; }
.nt-count { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; letter-spacing: 0.3px; vertical-align: 1px; }
.nt-link { font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none; margin-left: 12px; }
.nt-home-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); }
.nt-home-card.unread { border-left: 4px solid var(--navy); }
.nt-home-card.must { border-left: 4px solid var(--red); }
.nt-home-card:hover { border-color: var(--navy); }
.nt-thumb { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--floor); }
.nt-home-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nt-home-text strong { font-family: 'Outfit', sans-serif; font-size: 15px; color: var(--navy); line-height: 1.25; }
.nt-snippet { font-size: 13px; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-home-text small { font-size: 12px; color: var(--muted); }
.nt-empty { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
#noticesBox { margin-bottom: 16px; }
.nt-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.nt-tags:empty { display: none; }
.nt-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--c-eef3fb); color: var(--navy); }
.nt-tag.must { background: var(--c-fdeaea); color: var(--red-ink); }
.nt-tag.rem { background: var(--c-fff6e0); color: var(--warn); }
.nt-tag.old { background: var(--floor); color: var(--muted); }
.nt-new-btn { width: auto; margin-bottom: 14px; padding: 11px 18px; }
.nt-card { margin-bottom: 12px; }
.nt-card.unread { border-left: 4px solid var(--navy); }
.nt-card.flash { box-shadow: 0 0 0 3px rgba(208, 17, 26, 0.35); }
.nt-title { font-family: 'Outfit', sans-serif; font-size: 18px; margin: 6px 0 2px; color: var(--navy); }
.nt-meta { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.nt-body { white-space: pre-wrap; font-size: 14.5px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.nt-images { display: grid; gap: 6px; margin-top: 10px; max-width: 560px; }
.nt-images.n2, .nt-images.n4 { grid-template-columns: 1fr 1fr; }
.nt-images.n3 { grid-template-columns: 1fr 1fr 1fr; }
.nt-images img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 10px; cursor: zoom-in; display: block; background: var(--floor); }
.nt-images.n2 img, .nt-images.n3 img, .nt-images.n4 img { aspect-ratio: 1 / 1; max-height: none; }
.nt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.nt-like { font-family: inherit; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.nt-like.on { background: var(--c-eef3fb); border-color: var(--navy); color: var(--navy); font-weight: 700; }
.nt-actions button.primary.nt-ack { width: auto; padding: 8px 18px; font-size: 14px; }
.nt-got { font-size: 13.5px; font-weight: 700; color: var(--good); }
.nt-reach { width: auto; font-size: 13px; }
.nt-manage { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.nt-manage button.text { width: auto; font-size: 13px; padding: 4px 0; }
.nt-manage button.danger { color: var(--red); }
.nt-compose { margin-bottom: 16px; }
.nt-compose textarea { width: 100%; resize: vertical; font-family: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.nt-compose .cv-form { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .nt-compose .cv-form { grid-template-columns: 1fr; } }
.nt-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 6px 0; cursor: pointer; }
.nt-stores { display: flex; flex-wrap: wrap; gap: 0 16px; }
.nt-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.nt-photos:empty { display: none; }
.nt-photo { position: relative; }
.nt-photo img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.nt-photo button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: none; background: var(--ink); color: #fff; font-size: 12px; cursor: pointer; }
.nt-add-photo { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; margin-bottom: 12px; border: 1.5px dashed var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; }
.nt-add-photo.full { display: none; }
.nt-older { width: auto; margin: 6px 0; }
.nt-group { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin: 14px 0 4px; }
.nt-reader { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.nt-lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.88); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.nt-lightbox[hidden] { display: none; }
.nt-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* KPI Stock tab (04/10/2026): food cost %, dough, drinks from ClicData */
.st-metrics { margin-bottom: 14px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.st-table th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.st-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.st-table tr.st-total td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: none; }
.st-dough td strong { font-size: 14px; }
.st-sub { font-size: 11px; color: var(--muted); font-weight: 400; line-height: 1.3; }
.st-note { font-size: 12px; color: var(--muted); margin: 4px 0 22px; }
.st-delta { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-delta.green { background: var(--c-eaf7ee); color: var(--good); }
.st-delta.amber { background: var(--c-fff6e0); color: var(--c-7a5200); }
.st-delta.red { background: var(--c-fdeaea); color: var(--red-ink); }
.st-delta.none { color: var(--muted); }
.st-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
/* KPI like-for-like hints (last week / last year under each figure) */
.cmp-var { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp-var.good { color: var(--good); }
.cmp-var.bad { color: var(--red-ink); }

/* Roles page (04/10/2026) */
.secondary-link { display: inline-block; margin: -6px 0 16px; font-size: 14px; font-weight: 600; color: var(--navy); }
.role-editor { margin-bottom: 8px; }
.role-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.role-head h2 { margin: 0; }
.role-people { font-size: 13px; color: var(--muted); white-space: nowrap; }
.perm-group { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin: 12px 0 4px; }
.perm-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.perm-row input { margin-top: 2px; flex-shrink: 0; }
.perm-row .st-sub { display: block; margin-top: 2px; }
.app-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 4px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.app-row .app-name { font-size: 14px; font-weight: 600; }
.app-row select { margin: 0; }
.app-row .roster-check { grid-column: 2; font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.role-sum { display: block; width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; cursor: pointer; color: var(--ink); font: inherit; }
.role-sum.training { margin-left: 14px; width: calc(100% - 14px); background: var(--floor); }
.role-sum-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.role-sum-perms { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

/* Rota engine (04/10/2026): publish bar, preset chips, drag / tap to place, My shifts */
.pill.ro-draft { background: var(--c-fff6e0); color: var(--c-7a5200); margin-left: 6px; }
.pill.ro-pub { background: var(--c-eaf7ee); color: var(--good); margin-left: 6px; }
.ro-pubbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--radius); font-size: 13px; margin-bottom: 12px; }
.ro-pubbar.draft { background: var(--c-fff6e0); color: var(--c-7a5200); border: 1px solid var(--c-f1dc9e); }
.ro-pubbar.live { background: var(--c-eaf7ee); color: var(--good); border: 1px solid var(--c-cfe9d6); }
.ro-pubbar button { width: auto; margin: 0; padding: 8px 16px; }
.ro-presets-head { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.ro-presets-head button { width: auto; margin: 0; }
.ro-palette { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ro-chip { display: inline-flex; flex-direction: column; align-items: flex-start; width: auto; margin: 0; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 12px; line-height: 1.25; cursor: grab; touch-action: manipulation; user-select: none; }
.ro-chip span { color: var(--muted); font-size: 11px; }
.ro-chip.picked { border-color: var(--navy); background: var(--c-eef4fb); box-shadow: 0 0 0 2px var(--navy) inset; }
.ro-ghost { position: fixed; z-index: 50; pointer-events: none; box-shadow: var(--shadow-md); opacity: .95; }
#viewGrid.placing .ro-cell { outline: 1px dashed var(--navy); }
.ro-cell.drop-target { outline: 2px solid var(--red) !important; background: var(--c-fdeaea); }
.ro-preset-form { margin: 8px 0 10px; }
.ro-preset-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ro-preset-row button { width: auto; margin: 0; }
.ms-week-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ms-week-head h2 { margin: 0; }
.ms-shift { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ms-shift:last-of-type { border-bottom: none; }
.ms-shift.today { background: var(--c-eef4fb); margin: 0 -10px; padding: 9px 10px; border-radius: 8px; font-weight: 700; }
.ms-shift.past { color: var(--muted); }
.ms-time { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ms-time small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.ms-day-card h3 { margin: 0 0 6px; font-size: 15px; }
.ms-group { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin: 8px 0 2px; }
.ms-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; }
.ms-home { display: block; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm, none); }
.ms-home-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.ms-home strong { display: block; font-size: 17px; margin: 2px 0; }
.ms-home-more { font-size: 13px; color: var(--navy); font-weight: 600; }
/* My shifts - full rota grid: days across, people down (fits a phone, no sideways scroll) */
.mr-card { padding: 10px 8px 6px; }
.mr-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 8px; }
.mr-head h3 { margin: 0; font-size: 15px; }
table.mr-grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.mr-grid col.mr-namecol { width: 27%; }
.mr-grid th, .mr-grid td { padding: 6px 1px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mr-grid thead th { font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.2; padding-bottom: 7px; }
.mr-grid thead th b { display: block; font-size: 15px; color: var(--ink); }
.mr-grid th.mr-name { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink); padding-left: 4px; overflow-wrap: break-word; line-height: 1.25; }
.mr-grid tr.mr-group th { text-align: left; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; padding: 12px 4px 4px; }
.mr-grid td { font-size: 11.5px; line-height: 1.25; }
.mr-grid td .mr-s { display: block; font-weight: 700; color: var(--ink); }
.mr-grid td .mr-e { display: block; color: var(--muted); font-weight: 400; }
.mr-grid td .mr-s + .mr-s { margin-top: 4px; }
.mr-grid td.mr-off { color: var(--line); }
.mr-grid .mr-today { background: var(--c-eef4fb); }
.mr-grid thead th.mr-today, .mr-grid thead th.mr-today b { color: var(--navy); }
.mr-grid tfoot td, .mr-grid tfoot th { border-bottom: none; font-size: 11px; color: var(--muted); padding-top: 8px; }
.mr-grid tfoot th { text-align: left; font-weight: 600; padding-left: 4px; }
/* the viewer's own row */
.mr-grid tr.mr-me th.mr-name { color: var(--navy); box-shadow: inset 3px 0 0 var(--red); }
.mr-grid tr.mr-me th.mr-name small { display: block; font-size: 10.5px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.4px; }
.mr-grid tr.mr-me td.mr-mine { background: var(--navy); }
.mr-grid tr.mr-me td.mr-mine .mr-s { color: var(--paper); }
.mr-grid tr.mr-me td.mr-mine .mr-e { color: var(--paper); opacity: 0.8; }
.mr-grid tbody td + td, .mr-grid thead th + th, .mr-grid tfoot td + td { border-left: 1px solid var(--line); }
/* hours under each name; cover / swap marks; tap a shift */
.mr-grid th.mr-name .mr-hrs { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); margin-top: 1px; }
.mr-grid td.mr-tap { cursor: pointer; }
.mr-grid td.mr-tap:hover, .mr-grid td.mr-tap:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.mr-mark { display: block; font-style: normal; font-size: 10px; font-weight: 700; line-height: 1; margin-top: 2px; }
.mr-grid td.mr-asking, .mr-key.mr-asking { background: var(--c-fff6e0); box-shadow: inset 0 0 0 1.5px var(--c-f1dc9e); }
.mr-grid td.mr-asking .mr-mark, .mr-key.mr-asking { color: var(--warn); }
.mr-grid td.mr-covered, .mr-key.mr-covered { background: var(--c-eaf7ee); box-shadow: inset 0 0 0 1.5px var(--c-bfe6cc); }
.mr-grid td.mr-covered .mr-mark, .mr-key.mr-covered { color: var(--good); }
.mr-grid td.mr-swap .mr-mark, .mr-key.mr-swap { color: var(--warn); }
.mr-grid tr.mr-me td.mr-mine .mr-mark { color: var(--paper); }
.mr-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 4px 2px; font-size: 11.5px; color: var(--muted); }
.mr-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mr-key { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; font-style: normal; font-size: 10px; font-weight: 700; border: 1px solid var(--line); }
.mr-tiphint { margin-left: auto; }
/* filters + today */
.mr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.mr-chips button { width: auto; margin: 0; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.mr-chips button.active { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.mr-todaycard { padding: 12px 14px 6px; }
.mr-todaycard .mr-head { margin: 0 0 4px; }
.mr-trow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mr-trow:last-child { border-bottom: none; }
.mr-trow small { display: block; font-size: 11.5px; color: var(--muted); }
.mr-trow em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.4px; }
.mr-trow.me strong { color: var(--navy); }
/* tap-a-shift sheet */
.mr-when { margin: 0 0 12px; font-size: 15px; }
.mr-when span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.mr-note { border-radius: 8px; padding: 9px 11px; font-size: 13.5px; margin: 0 0 10px; }
.mr-note.warn { background: var(--c-fff6e0); color: var(--warn); }
.mr-note.good { background: var(--c-eaf7ee); color: var(--good); }
.mr-sub { font-size: 13px; font-weight: 700; margin: 4px 0 6px; }
.mr-offer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 13px; margin-bottom: 7px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: 14px; }
.mr-offer:hover { border-color: var(--navy); background: var(--c-eef4fb); }
.mr-offer strong { color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mr-primary-link { display: block; text-align: center; padding: 12px 16px; border-radius: var(--radius); background: var(--navy); color: var(--paper); font-weight: 600; text-decoration: none; margin: 4px 0 8px; }
/* my week: hours + calendar */
.ms-hours { margin: -2px 0 6px; font-size: 13.5px; color: var(--muted); }
.ms-hours strong { color: var(--ink); }
.ms-cal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ms-cal > div:first-child { flex: 1 1 220px; }
.ms-cal strong { display: block; font-size: 15px; }
.ms-cal .cv-muted { display: block; font-size: 13px; margin-top: 2px; }
.ms-cal button.secondary { width: auto; padding: 9px 16px; font-size: 14px; }
.ms-cal.on { display: block; }
.ms-cal-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.ms-cal-btn { flex: 1 1 120px; width: auto; margin: 0; text-align: center; padding: 9px 10px; border-radius: var(--radius); border: 1.5px solid var(--navy); background: var(--paper); color: var(--navy); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.ms-cal-foot { margin: 6px 0 0; }
.ms-linkbtn { background: none; border: none; padding: 0; width: auto; margin: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }
@media (min-width: 700px) {
  .mr-card { padding: 14px 12px 8px; }
  .mr-grid col.mr-namecol { width: 25%; }
  .mr-grid th.mr-name { font-size: 13.5px; }
  .mr-grid td { font-size: 12.5px; }
}

/* Shift swaps (05/10/2026) - swaps.html, My shifts, homepage */
.sw-rule { background: var(--c-f0f4fa); border-radius: var(--radius); padding: 10px 12px; font-size: 13.5px; margin: 0 0 14px; }
.sw-rule.small { font-size: 12.5px; margin: 10px 0; }
.sw-shift { font-weight: 700; margin: 0 0 10px; }
.sw-pick { max-height: 42vh; overflow-y: auto; margin: 8px 0 10px; }
.sw-card { margin-bottom: 10px; border-left: 4px solid var(--line); }
.sw-card.wait { border-left-color: var(--warn); }
.sw-card.good { border-left-color: var(--good); }
.sw-card.bad { border-left-color: var(--muted); }
.sw-what { font-size: 14.5px; line-height: 1.5; margin: 4px 0; overflow-wrap: anywhere; }
.sw-arrow { display: inline-block; margin: 0 6px; color: var(--muted); font-weight: 700; }
.sw-status { font-size: 13px; font-weight: 600; margin-top: 6px; }
.sw-status.wait { color: var(--warn); }
.sw-status.good { color: var(--good); }
.sw-status.bad { color: var(--muted); }
.sw-buttons { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sw-buttons button { width: auto; flex: 1 1 120px; margin: 0; }
.sw-buttons button.text { flex: 0 0 auto; }
.sw-link { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 12px; color: var(--navy); font-weight: 700; text-decoration: none; }
.sw-link > span:last-child { margin-left: auto; font-size: 13px; font-weight: 600; }
.sw-count { background: var(--red); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 8px; }
.sw-btn, .sw-tag { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; text-decoration: none; }
.sw-btn { color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; text-align: center; }
.sw-tag { color: var(--warn); white-space: normal; }
.sw-banner { margin: 0 0 14px; }

/* Stock Expiry prep tracker (04/10/2026) */
.prep-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prep-row-main { font-size: 14px; min-width: 0; }
.prep-row-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.prep-row-actions button { width: auto; margin: 0; padding: 2px 0; font-size: 13px; }
.prep-edit, .prep-bin { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 6px; }
.prep-edit label, .prep-bin label { font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; flex: 1 1 140px; }
.prep-edit button, .prep-bin button { width: auto; margin: 0; }
.prep-life { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inv-disabled { opacity: .6; }

/* DOMFD logins (04/10/2026) */
.dm-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dm-head h2 { margin: 0; }
.dm-consent { background: var(--floor); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; line-height: 1.45; margin-bottom: 12px; }
.dm-agree { margin: 4px 0 12px; font-weight: 600; }

/* Store logins page (04/10/2026) */
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.sl-store h2 { margin: 0 0 6px; }
.sl-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.sl-main { min-width: 0; }
.sl-sub { font-size: 12.5px; margin-top: 3px; }
.sl-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.sl-actions button { width: auto; margin: 0; padding: 7px 14px; }

/* Cover stores on Manage employees (04/10/2026) */
.cs-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cs-row button { width: auto; margin: 0; }
.cs-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.cs-add select, .cs-add input { margin: 0; }
.cs-add button { grid-column: 1 / -1; margin: 0; }
.cs-hint { font-size: 12px; margin-top: 6px; }
.cs-covering { color: var(--navy); }
.cs-covering .cs-end { width: auto; margin: 0 0 0 2px; padding: 0; font-size: 12px; }

/* KPI Dough Plan suggestion (04/10/2026) */
.dp-suggest { margin-bottom: 14px; }
.dp-table-wrap { overflow-x: auto; }
.dp-table td button { width: auto; margin: 0; padding: 0; }
.dp-table th, .dp-table td { padding: 6px 3px; }

/* Stock Expiry prep sheet (04/10/2026) */
.ps-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.ps-head button { width: auto; margin: 0; }
.ps-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ps-main { min-width: 0; }
.ps-right { text-align: right; flex-shrink: 0; }
.ps-right button { width: auto; margin: 0; padding: 0; }
.ps-need { font-weight: 700; font-size: 17px; white-space: nowrap; }
.ps-enough .ps-need, .ps-enough strong { color: var(--muted); font-weight: 600; }
.ps-item { display: flex; margin: 6px 0; }
/* Prep sheet dates - display drinks etc. (12/10/2026) */
.ps-sub { margin: 18px 0 2px; font-size: 16px; }
.ps-date { margin-top: 2px; color: var(--muted); }
.ps-d-past, .ps-d-today { color: var(--red-ink) !important; font-weight: 700; }
.ps-d-tomorrow, .ps-d-soon { color: var(--warn) !important; font-weight: 600; }
.ps-right button + button { display: block; margin-left: auto; }
.ps-edit { padding: 10px 12px; margin: 6px 0 10px; border: 1px solid var(--line); border-radius: 10px; }
.ps-edit-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-edit-btns button { width: auto; margin: 0; }
@media print {
  body.ps-printing .wrap > header.bar, body.ps-printing #mainTabs, body.ps-printing #storeSelectorWrap,
  body.ps-printing #sheetChoose, body.ps-printing #sheetAdd, body.ps-printing .ps-noprint, body.ps-printing #sheetPrint,
  body.ps-printing main > section:not(#tab-sheet) { display: none !important; }
  body.ps-printing main { box-shadow: none !important; border: none !important; }
  body.ps-printing .ps-row { font-size: 14px; }
}

/* ---------- Hub: Bulk add employees (bulk-add.html) ---------- */
.bulk-box { position: static; width: 100%; padding: 0 0 12px; }
.bulk-box code { font-size: 12px; word-break: break-word; }
.bulk-actions { gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.bulk-actions button { width: auto; }
.delivery-row.bulk-bad { border-left: 3px solid var(--red); }
.bulk-err { color: var(--red-ink); font-size: 13px; margin-top: 4px; }
.bulk-help { margin-top: 20px; font-size: 14px; }
.bulk-help summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.bulk-roles { margin: 4px 0 10px; padding-left: 20px; font-size: 13.5px; line-height: 1.6; }

/* ---------- Hub: Checklists (checklists.html + homepage card, 05/10/2026) ---------- */
.ck-pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.ck-pill.done { background: var(--c-eaf7ee); color: var(--good); }
.ck-pill.late { background: var(--c-fdeaea); color: var(--red-ink); }
.ck-pill.due { background: var(--c-f0f4fa); color: var(--navy); }
/* homepage */
.ck-home { margin-bottom: 14px; }
.ck-home-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; color: var(--ink); text-decoration: none; }
.ck-home-row.overdue { border-left-color: var(--red); }
.ck-home-row.done { border-left-color: var(--good); opacity: 0.75; }
.ck-home-row span:first-child { min-width: 0; }
.ck-home-row strong { display: block; font-size: 15px; }
.ck-home-row small { display: block; font-size: 12px; color: var(--muted); }
.ck-home-setup { display: block; margin: 0 0 14px; font-weight: 600; color: var(--navy); }
/* fill in */
.ck-card { margin-bottom: 16px; }
.ck-card.done { opacity: 0.85; }
.ck-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.ck-head h2 { margin: 0; font-size: 18px; }
.ck-head small { color: var(--muted); font-size: 12.5px; }
.ck-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.ck-item input[type=checkbox] { width: 24px; height: 24px; flex-shrink: 0; margin: 0; accent-color: var(--good); }
.ck-item.ticked > span { color: var(--muted); }
.ck-who { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ck-temp { flex-wrap: wrap; justify-content: space-between; cursor: default; }
.ck-temp-label { flex: 1 1 160px; min-width: 0; }
.ck-temp-label small { display: block; font-size: 12px; color: var(--muted); }
.ck-temp-in { display: flex; align-items: center; gap: 6px; }
.ck-temp-in input { width: 76px; text-align: center; padding: 9px 6px; }
.ck-temp-in button { width: auto; margin: 0; padding: 9px 12px; }
.ck-temp-in .ck-sign { padding: 9px 10px; font-weight: 700; }
.ck-temp-val { font-weight: 700; font-size: 17px; }
.ck-temp.bad .ck-temp-label, .ck-temp.bad .ck-temp-val { color: var(--red-ink); }
.ck-temp.bad .ck-temp-in input { border-color: var(--red); background: var(--c-fdeaea); }
.ck-note-shown { flex-basis: 100%; font-size: 12.5px; color: var(--red-ink); }
.ck-note { flex-basis: 100%; margin: 4px 0 0; }
.ck-complete { margin-top: 12px; }
.ck-complete-line { margin: 12px 0 0; font-size: 13px; color: var(--good); font-weight: 600; }
.ck-empty { padding: 18px; text-align: center; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }
/* history */
.ck-history { margin-top: 18px; }
.ck-history > summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 6px 0; }
.ck-day { font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); margin: 14px 0 6px; }
.ck-hist { border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: var(--radius); background: var(--paper); margin-bottom: 6px; padding: 8px 10px; }
.ck-hist.part { border-left-color: var(--warn); }
.ck-hist.missed { border-left-color: var(--red); }
.ck-hist summary { cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 14px; }
.ck-hist summary span:first-child { font-weight: 600; }
.ck-hist-status { font-size: 12.5px; color: var(--muted); }
.ck-hist ul { margin: 8px 0 2px; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }
.ck-hist li.bad { color: var(--red-ink); }
.ck-hist li small { color: var(--muted); }
/* create & edit */
.ck-editor .inline-check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-size: 14px; }
.ck-ed-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; margin-bottom: 8px; background: var(--paper); }
.ck-ed-top { display: flex; gap: 8px; align-items: center; }
.ck-ed-top input { flex: 1; min-width: 0; }
.ck-ed-kind { width: 22px; text-align: center; flex-shrink: 0; }
.ck-ed-bottom { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 6px; }
.ck-ed-bottom label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); flex: 1 1 100px; }
.ck-ed-bottom label input { width: 100%; }
.ck-ed-move { display: flex; gap: 4px; margin-left: auto; }
.ck-ed-move button { width: auto; margin: 0; padding: 4px 10px; font-size: 16px; }
.ck-add-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }
.ck-add-row button { width: auto; margin: 0; }
.ck-remove { color: var(--red) !important; }

/* ---------- KPI: can-be-minus fields (cash short/over, till variances) ---------- */
.kpi-signed { display: flex; gap: 6px; align-items: stretch; }
.kpi-signed .kpi-sign { width: auto; margin: 0; padding: 0 12px; font-weight: 700; flex-shrink: 0; }
.kpi-signed input { flex: 1; min-width: 0; }

/* ---------- Hub: My area today (area.html + homepage card, 05/10/2026) ---------- */
.ar-home { display: block; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; color: var(--ink); text-decoration: none; }
.ar-home.red { border-left-color: var(--red); }
.ar-home.amber { border-left-color: var(--warn); }
.ar-home strong { display: block; font-size: 17px; margin: 2px 0; }
.ar-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; background: var(--band); color: #fff; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.ar-strip span { display: flex; gap: 8px; flex-wrap: wrap; }
.ar-strip b { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,0.15); }
.ar-strip b.red { background: var(--red); }
.ar-strip b.amber { background: #b7791f; }
.ar-store { margin-bottom: 14px; border-left: 4px solid var(--good); }
.ar-store.red { border-left-color: var(--red); }
.ar-store.amber { border-left-color: var(--warn); }
.ar-store.ar-off { border-left-color: var(--line); opacity: 0.75; }
.ar-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.ar-head h2 { margin: 0; font-size: 19px; }
.ar-chip { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ar-chip.red { background: var(--c-fdeaea); color: var(--red-ink); }
.ar-chip.amber { background: var(--c-fff6e0); color: var(--c-7a5200); }
.ar-chip.ok { background: var(--c-eaf7ee); color: var(--good); }
.ar-chip.off { background: var(--floor); color: var(--muted); }
.ar-issues { list-style: none; margin: 4px 0 10px; padding: 0; }
.ar-issues li { padding: 7px 10px; border-radius: var(--radius); margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.ar-issues li.red { background: var(--c-fdeaea); }
.ar-issues li.amber { background: var(--c-fff6e0); }
.ar-issues li a { color: var(--ink); text-decoration: none; display: block; }
.ar-issues li.red a::before { content: '● '; color: var(--red); }
.ar-issues li.amber a::before { content: '● '; color: var(--warn); }
.ar-rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 8px 0; font-size: 14px; }
.ar-rows dt { color: var(--muted); font-size: 12.5px; padding-top: 1px; }
.ar-rows dd { margin: 0; min-width: 0; }
.ar-rows a { color: var(--navy); }
.ar-sub { font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); margin: 12px 0 6px; }
.ar-kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ar-kpi div { background: var(--floor); border-radius: var(--radius); padding: 8px 10px; font-size: 14px; font-weight: 700; min-width: 0; }
.ar-kpi span:first-child { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.ar-vs { font-size: 12px; font-weight: 600; white-space: nowrap; }
.ar-vs.good { color: var(--good); }
.ar-vs.bad, .ar-bad { color: var(--red-ink); }
.ar-amber { color: var(--c-7a5200); }
.ar-wtd { margin: 8px 0 0; font-size: 13.5px; }
.ar-foot { font-size: 12.5px; margin-top: 4px; }
/* checklist templates: store ticks */
.ck-stores .inline-check { margin: 4px 0; }
.ck-stores small { display: block; margin-top: 4px; font-size: 12px; }
/* cover: people from nearby stores */
.cv-from { font-size: 11px; font-weight: 700; color: var(--navy); background: var(--c-f0f4fa); border-radius: 999px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; }
.cv-nearby { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 14px; }

/* Homepage "Today" card (05/10/2026) - js/today-home.js, #todayBox */
.td-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 0 0 14px; overflow: hidden; }
.td-shift { display: block; padding: 14px 16px; color: var(--ink); text-decoration: none; border-left: 4px solid var(--navy); }
.td-shift.today { border-left-color: var(--red); background: var(--c-eef4fb); }
.td-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.td-shift.today .td-label { color: var(--red); }
.td-shift strong { display: block; font-family: 'Outfit', 'Inter', sans-serif; font-size: 21px; margin: 2px 0 3px; font-variant-numeric: tabular-nums; }
.td-sub { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.td-more { color: var(--navy); font-weight: 600; white-space: nowrap; }
.td-list { border-top: 1px solid var(--line); }
.td-row { display: flex; align-items: center; gap: 10px; padding: 11px 16px; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600; border-top: 1px solid var(--line); }
.td-row:first-child { border-top: none; }
.td-row:hover { background: var(--c-f8f9fc); }
.td-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--navy); }
.td-row.red .td-dot { background: var(--red); }
.td-row.amber .td-dot { background: var(--warn); }
.td-go { margin-left: auto; color: var(--muted); font-size: 20px; line-height: 1; }
.td-clear { margin: 0; padding: 11px 16px; border-top: 1px solid var(--line); color: var(--good); font-size: 14px; font-weight: 600; }
/* Phone notification health in Manage employees (05/10/2026) */
.nf-line { font-size: 12.5px; margin-top: 4px; }
.nf-line.on { color: var(--good); }
.nf-line.bad { color: var(--red-ink); font-weight: 600; }
.nf-line.off { color: var(--muted); }
.nf-banner { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; background: var(--c-fdeaea); border: 1px solid var(--c-f3c6c6); border-radius: var(--radius); padding: 10px 12px; margin: 14px 0 4px; font-size: 13.5px; }
.nf-banner button.text { width: auto; flex: 0 0 auto; margin: 0; }
/* Notification centre (06/10/2026) - the bell on every page (js/bell.js) + inbox.html */
.hub-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
header.bar .hub-bell.icon-link { padding: 7px 10px; }
.hub-bell.on-home { color: rgba(255, 255, 255, 0.82); padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.hub-bell.on-home:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
/* homepage top bar with the bell: keep Password / Log out on one line on phones */
.home-account a { white-space: nowrap; }
@media (max-width: 420px) { .home-account { gap: 4px; } .home-account a { padding: 6px 9px; } .home-brand { min-width: 0; } }
.hub-bell.has-unread { color: #fff; }
.hub-bell-n { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--band); }
.ib-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.ib-head p { margin: 0; }
.ib-head button.text { width: auto; margin: 0; }
.ib-group { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin: 16px 0 6px; }
.ib-item { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; }
.ib-item:hover { border-color: var(--navy); }
.ib-item.unread { border-left: 4px solid var(--red); background: var(--surface); }
.ib-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; flex: 0 0 auto; background: transparent; }
.ib-item.unread .ib-dot { background: var(--red); }
.ib-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.ib-text strong { font-size: 14.5px; font-weight: 600; }
.ib-item.unread .ib-text strong { font-weight: 700; }
.ib-text span { font-size: 13.5px; color: var(--ink); opacity: 0.85; }
.ib-text small { font-size: 12px; color: var(--muted); }
.ib-empty { display: flex; flex-direction: column; gap: 6px; text-align: center; padding: 28px 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 14px; }
.ib-empty strong { color: var(--ink); }
/* ============================================================
   DARK MODE (05/10/2026) - follows the phone / computer setting.
   Colours are variables (see :root); here they're redefined. Navy FILLS
   (header bands, solid buttons) use --band and stay navy; navy TEXT uses
   --navy and turns light blue. html[data-theme=light|dark] forces one.
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --navy: #9dc1f2;          /* navy TEXT / borders go light blue */
    --red: #e5343c;
    --red-deep: #b3121a;
    --ink: #e6e8eb;
    --paper: #171c24;
    --floor: #0d1117;
    --line: #2d3440;
    --muted: #9ba4af;
    --good: #4cc38a;
    --warn: #e3a54a;
    --surface: #1f262f;
    --red-ink: #ff8f94;
    --band: #0f2a4d;
    --band-deep: #081a31;
    --band-light: #15396a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 3px 10px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
    --c-fdeaea: #3a1c20; --c-fbeaea: #3a1c20; --c-fff7f6: #3a1c20;
    --c-f3c6c6: #6e2c33; --c-ffb3b3: #6e2c33;
    --c-eaf7ee: #14301f; --c-dcf1e2: #14301f;
    --c-bfe6cc: #2b5c3d; --c-cfe9d6: #2b5c3d;
    --c-f0f4fa: #1a2638; --c-eef4fb: #1a2638; --c-eef3fb: #1a2638; --c-eef3f9: #1a2638; --c-e8edf5: #1a2638; --c-f8f9fc: #1a2638;
    --c-dce4f0: #304766; --c-d3e2f3: #304766; --c-c9d6ea: #304766;
    --c-fff6e0: #33280f; --c-fff7e8: #33280f; --c-fdf3e7: #33280f;
    --c-f1dc9e: #6b5522; --c-f0d9b5: #6b5522;
    --c-7a5200: #f0c25e; --c-8a5a13: #f0c25e;
    --c-faf8f3: #1b2129; --c-ebe9e3: #1b2129;
    --c-c9c3b6: #4a525e; --c-c9c5bb: #4a525e;
  }
  :root:not([data-theme="light"]) body { background-image: none; }
  :root:not([data-theme="light"]) input:focus, :root:not([data-theme="light"]) select:focus { box-shadow: 0 0 0 3px rgba(157, 193, 242, 0.2); }
  :root:not([data-theme="light"]) .modal-backdrop { background: rgba(0, 0, 0, 0.6); }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --navy: #9dc1f2;          /* navy TEXT / borders go light blue */
    --red: #e5343c;
    --red-deep: #b3121a;
    --ink: #e6e8eb;
    --paper: #171c24;
    --floor: #0d1117;
    --line: #2d3440;
    --muted: #9ba4af;
    --good: #4cc38a;
    --warn: #e3a54a;
    --surface: #1f262f;
    --red-ink: #ff8f94;
    --band: #0f2a4d;
    --band-deep: #081a31;
    --band-light: #15396a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 3px 10px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
    --c-fdeaea: #3a1c20; --c-fbeaea: #3a1c20; --c-fff7f6: #3a1c20;
    --c-f3c6c6: #6e2c33; --c-ffb3b3: #6e2c33;
    --c-eaf7ee: #14301f; --c-dcf1e2: #14301f;
    --c-bfe6cc: #2b5c3d; --c-cfe9d6: #2b5c3d;
    --c-f0f4fa: #1a2638; --c-eef4fb: #1a2638; --c-eef3fb: #1a2638; --c-eef3f9: #1a2638; --c-e8edf5: #1a2638; --c-f8f9fc: #1a2638;
    --c-dce4f0: #304766; --c-d3e2f3: #304766; --c-c9d6ea: #304766;
    --c-fff6e0: #33280f; --c-fff7e8: #33280f; --c-fdf3e7: #33280f;
    --c-f1dc9e: #6b5522; --c-f0d9b5: #6b5522;
    --c-7a5200: #f0c25e; --c-8a5a13: #f0c25e;
    --c-faf8f3: #1b2129; --c-ebe9e3: #1b2129;
    --c-c9c3b6: #4a525e; --c-c9c5bb: #4a525e;
}
:root[data-theme="dark"] body { background-image: none; }

/* Store settings (store-logins.html, 06/10/2026): logins, Slack channels, who gets what */
.ss-list { display: flex; flex-direction: column; gap: 14px; }
.ss-store > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ss-store > summary::-webkit-details-marker { display: none; }
.ss-store > summary::before { content: '▸'; color: var(--muted); width: 12px; }
.ss-store[open] > summary::before { content: '▾'; }
.ss-store > summary h2 { margin: 0; }
.ss-h { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 6px; }
.ss-del { color: var(--red); }
.ss-add { width: auto; margin: 6px 0 0; padding: 7px 14px; }
.ss-route { border-top: 1px solid var(--line); padding: 12px 0; }
.ss-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; min-width: 0; }
.ss-opt input[type=text], .ss-opt input[type=email] { flex: 1 1 220px; min-width: 0; margin: 0; }
.ss-opt button { width: auto; margin: 0; padding: 7px 14px; }
.ss-lab { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); width: 48px; flex-shrink: 0; }
.ss-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.ss-btns button { width: auto; margin: 0; padding: 8px 16px; }
.ss-target { margin: 10px 0 0; }
.ss-target input { max-width: 140px; }
.ss-target .cv-muted { display: block; font-size: 13px; margin-top: 2px; }
.ss-mail { max-width: 460px; }
.ss-people { flex-basis: 100%; padding-left: 62px; display: flex; flex-wrap: wrap; gap: 6px 16px; min-width: 0; }
@media (max-width: 480px) { .ss-people { padding-left: 0; } }

/* Store dashboard (dashboard.html, 08/10/2026): store managers and above.
   Chart colours: --db-s1 actual (blue), --db-s2 last year (orange) - validated
   light + dark (dataviz validator); forecast is a neutral ink tick. */
.db-page { --db-s1: #2a78d6; --db-s2: #eb6834; --db-grid: #ebe8e1; --db-fc: #52514e; }
.db-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; margin: 0 0 12px; }
.db-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.db-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.db-updated { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.db-updated button { width: auto; margin: 0; padding: 5px 12px; font-size: 12.5px; }
.db-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.db-filters select { width: auto; min-width: 140px; max-width: 100%; margin: 0; }
.db-filters label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0; }
.db-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.db-chips button { width: auto; margin: 0; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.db-chips button:hover { border-color: var(--navy); }
.db-chips button.active { background: var(--band); color: #fff; border-color: var(--band); }
.db-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-basis: 100%; }
.db-custom[hidden] { display: none; }
.db-custom input { width: auto; margin: 0; min-width: 0; }
.db-custom button { width: auto; margin: 0; padding: 8px 16px; }
.db-attn { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.db-attn.red { border-left-color: var(--red); }
.db-attn.amber { border-left-color: var(--warn); }
.db-attn h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.db-attn ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .db-attn ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.db-attn li a { display: flex; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; font-size: 14px; padding: 3px 0; }
.db-attn li a:hover span { text-decoration: underline; }
.db-attn i { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; flex-shrink: 0; }
.db-attn i.red { background: var(--c-fdeaea); color: var(--red-ink); }
.db-attn i.amber { background: var(--c-fff6e0); color: var(--c-7a5200); }
.db-ok { color: var(--good); font-weight: 600; font-size: 14px; margin: 0; }
.db-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (min-width: 760px) { .db-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.db-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow-sm); min-width: 0; }
.db-tile.hero { border-top: 3px solid var(--band); }
.db-tile-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.db-tile-value { font-size: 25px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 6px; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.db-tile-value small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.db-tile-sub { font-size: 12.5px; color: var(--muted); line-height: 1.55; font-variant-numeric: tabular-nums; }
.db-tile-sub div { display: flex; justify-content: space-between; gap: 6px; }
.db-good { color: var(--good); font-weight: 700; white-space: nowrap; }
.db-bad { color: var(--red); font-weight: 700; white-space: nowrap; }
.db-flat { color: var(--muted); font-weight: 700; white-space: nowrap; }
.db-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
@media (min-width: 860px) { .db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .db-grid .span2 { grid-column: 1 / -1; } }
.db-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); min-width: 0; margin-bottom: 14px; }
.db-grid .db-card { margin-bottom: 0; }
.db-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.db-card-head h3 { margin: 0; font-size: 16px; color: var(--ink); }
.db-card-head a, .db-card-head button.text { font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; width: auto; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; cursor: pointer; }
.db-card-head a:hover, .db-card-head button.text:hover { text-decoration: underline; }
.db-note { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.db-empty { font-size: 13.5px; color: var(--muted); padding: 10px 0; margin: 0; }
.db-rows { display: flex; flex-direction: column; }
.db-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.db-row:first-child { border-top: 0; }
.db-row > span:first-child { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.db-row > b { font-variant-numeric: tabular-nums; text-align: right; }
.db-row > small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.db-bar { height: 6px; border-radius: 3px; background: var(--db-grid); overflow: hidden; margin-top: 4px; grid-column: 1 / -1; }
.db-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--db-s1); }
.db-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.db-mini div { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.db-mini b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.db-mini span { font-size: 11.5px; color: var(--muted); }
.db-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.db-legend span { display: inline-flex; align-items: center; gap: 6px; }
.db-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.db-key.tick { height: 2px; width: 14px; border-radius: 1px; }
.db-key.dot { border-radius: 50%; width: 9px; height: 9px; }
.db-chart { position: relative; }
.db-chart svg { display: block; width: 100%; overflow: visible; }
.db-chart .hit { cursor: pointer; }
.db-tip { position: absolute; pointer-events: none; background: var(--band-deep); color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.5; box-shadow: var(--shadow-lg); white-space: nowrap; z-index: 5; font-variant-numeric: tabular-nums; }
.db-tip b { display: block; font-size: 13px; }
.db-tip[hidden] { display: none; }
.db-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.db-table th { text-align: right; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.db-table td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.db-table th:first-child, .db-table td:first-child { text-align: left; }
.db-table tbody tr { cursor: pointer; }
.db-table tbody tr:hover td { background: var(--paper); }
.db-table tr.future td { color: var(--muted); }
.db-table tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--line); }
@media (max-width: 759px) {
  .db-table thead { display: none; }
  .db-table, .db-table tbody, .db-table tfoot { display: block; }
  .db-table tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; padding: 6px 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .db-table td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 6px; text-align: right; white-space: normal; min-width: 0; }
  .db-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; font-weight: 400; }
  .db-table td:first-child { grid-column: 1 / -1; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 5px; margin-bottom: 3px; }
  .db-table td:first-child::before { content: none; }
  .db-table tfoot td { border-top: 0; }
}
.db-pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.db-pill.good { background: var(--c-eaf7ee); color: var(--good); }
.db-pill.warn { background: var(--c-fff6e0); color: var(--c-7a5200); }
.db-pill.bad { background: var(--c-fdeaea); color: var(--red-ink); }
.db-pill.none { background: var(--c-f0f4fa); color: var(--muted); }
.db-foot { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.6; }
.db-loading { opacity: 0.55; transition: opacity .15s; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .db-page { --db-s1: #3987e5; --db-s2: #d95926; --db-grid: #2d3440; --db-fc: #c3c2b7; }
}
:root[data-theme="dark"] .db-page { --db-s1: #3987e5; --db-s2: #d95926; --db-grid: #2d3440; --db-fc: #c3c2b7; }
@media print {
  .db-filters, .db-updated, .header-actions, .db-card-head a, .db-card-head button.text { display: none !important; }
  .db-tile, .db-card, .db-attn { box-shadow: none; break-inside: avoid; }
}

/* Stock Expiry "Stock counts" tab (08/10/2026): product lookup with dates */
.inv-count-search { margin: 4px 0 12px; }
.inv-count-search input { width: 100%; margin: 0; font-size: 16px; padding: 12px 14px; }
.inv-count-dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: -4px 0 14px; }
.inv-count-dates label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12.5px; color: var(--muted); }
.inv-count-dates input { width: auto; margin: 0; min-width: 0; }
.inv-count-dates button { width: auto; margin: 0; padding: 10px 20px; }
.inv-count-tools { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.inv-count-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 8px; }
.inv-count-row { display: block; width: 100%; margin: 0; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; color: var(--ink); font: inherit; cursor: pointer; box-shadow: none; }
.inv-count-row:hover { border-color: var(--navy); }
.inv-count-row.active { border-color: var(--navy); box-shadow: 0 0 0 2px var(--c-dce4f0); }
.inv-count-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.inv-count-head strong { font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; }
.inv-count-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 4px 8px; font-variant-numeric: tabular-nums; }
.inv-count-nums div { display: flex; flex-direction: column; min-width: 0; }
.inv-count-nums span { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.inv-count-nums b { font-size: 15px; }
.inv-count-nums small { font-size: 12px; font-weight: 400; color: var(--muted); }
.inv-count-warn { margin-top: 6px; font-size: 12.5px; color: var(--c-7a5200); }
.inv-var-even { color: var(--muted); }
.inv-count-detail { margin-bottom: 16px; }
.inv-count-sum { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; }
.inv-count-now { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: var(--c-fff6e0); font-size: 13.5px; }
.inv-count-now ul { margin: 4px 0 0; padding-left: 18px; }
.inv-count-h { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 6px; }
.inv-count-days { display: flex; flex-direction: column; }
.inv-count-day { padding: 8px 0; border-top: 1px solid var(--line); }

/* Stock Expiry "Will it last?" + "Food order" tabs (08/10/2026) */
.inv-pill.inv-ok { background: var(--c-eaf7ee); color: var(--good); }
.inv-last-pick { margin-left: 4px; }
.inv-last-pick input { width: auto; padding: 6px 8px; }
.inv-last-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.inv-last-row { cursor: default; }
.inv-last-row .inv-pill { white-space: normal; text-align: right; }
.inv-order-warn { background: var(--c-fff6e0); color: var(--c-7a5200); border-radius: var(--radius); padding: 10px 12px; font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; }
.inv-order-saved { margin-top: 8px; color: var(--good); font-weight: 600; font-size: 13.5px; }
.inv-order-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 10px; }
.inv-order-tools input[type=search] { flex: 1 1 220px; margin: 0; min-width: 0; }
.inv-order-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin-bottom: 80px; }
.inv-order-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.inv-order-row:last-child { border-bottom: 0; }
.inv-order-row.none { opacity: 0.6; }
.inv-order-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inv-order-main strong { font-size: 14.5px; overflow-wrap: anywhere; }
.inv-order-main .text.inv-small { width: auto; padding: 0; margin: 0; font-weight: 700; text-decoration: underline; }
.inv-order-shelf { font-size: 12.5px; color: var(--c-7a5200); }
.inv-order-qty { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.inv-order-qty button.secondary { width: 34px; height: 34px; padding: 0; margin: 0; font-size: 18px; line-height: 1; }
.inv-order-qty input { width: 52px; margin: 0; padding: 6px 4px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.inv-order-bar { position: sticky; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow-lg); margin-top: -70px; }
.inv-order-bar #orderTotal { font-weight: 700; font-variant-numeric: tabular-nums; }
.inv-order-btns { display: flex; gap: 8px; }
.inv-order-btns button { width: auto; margin: 0; padding: 9px 16px; }
@media print {
  #tab-order .inv-period, .inv-order-tools, .inv-order-bar, #mainTabs, #storeSelectorWrap, .inv-order-qty button, .inv-order-main .text.inv-small { display: none !important; }
  .inv-order-list { margin-bottom: 0; }
  .inv-order-qty input { border: 0; }
}

/* Checklists: per-task schedules - cleaning (09/10/2026) */
.ck-new-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ck-new-row button { width: auto; margin: 0; }
.ck-tag { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--c-eef3f9); color: var(--navy); vertical-align: 1px; }
.ck-tag.once { background: var(--c-fff6e0); color: var(--c-7a5200); }
.ck-when-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.ck-when-row select { width: auto; margin: 0; padding: 6px 8px; font-size: 14px; }
.ck-when-row input[type=date] { width: auto; margin: 0; padding: 6px 8px; }
.ck-days { display: flex; flex-wrap: wrap; gap: 4px; }
.ck-day-btn { width: 36px; height: 32px; margin: 0; padding: 0; border-radius: 8px; font-size: 13px; font-weight: 700; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.ck-day-btn.on { background: var(--band); border-color: var(--band); color: #fff; }
.ck-many { border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 14px; background: var(--paper); }
.ck-many label { font-size: 13px; color: var(--muted); }
.ck-many textarea { width: 100%; margin: 4px 0 0; }
.ck-many .ck-add-row { margin-bottom: 0; }
.ck-plan { margin-top: 18px; }
.ck-plan-day { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ck-plan-day:first-of-type { border-top: 0; }
.ck-plan-day > div { min-width: 0; overflow-wrap: anywhere; }
.ck-notdone { margin: 6px 0; font-size: 13px; color: var(--red-ink); }
