/* Production cache revision: 2026-09-22-r1.1 */
:root {
    color-scheme: light;
    --ink: #17241d;
    --muted: #68746d;
    --paper: #f5f7f3;
    --card: #ffffff;
    --line: #dfe5de;
    --green: #1e7145;
    --green-dark: #135334;
    --amber: #a86109;
    --red: #b83232;
    --shadow: 0 14px 40px rgba(24, 46, 32, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: var(--paper); color: var(--ink); }
button, input, select, .portal-button { font: inherit; }
.topbar { min-height: 112px; padding: 24px clamp(20px, 5vw, 72px); background: #13281d; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; }
h2 { margin-bottom: 0; letter-spacing: -.025em; }
h3 { margin-top: 28px; }
.eyebrow { margin-bottom: 6px; font-size: 11px; letter-spacing: .18em; font-weight: 800; color: #7eb694; }
main { width: min(1480px, calc(100% - 32px)); margin: 24px auto 64px; }
.control-card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.control-card { padding: 16px; display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(150px, .7fr) minmax(150px, .7fr) auto; gap: 12px; align-items: end; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
input, select { min-height: 42px; border: 1px solid #ccd6cd; border-radius: 10px; background: #fff; color: var(--ink); padding: 8px 10px; }
input:focus, select:focus { outline: 3px solid rgba(30, 113, 69, .15); border-color: var(--green); }
button, .portal-button { border: 1px solid #becbc1; border-radius: 10px; background: #fff; padding: 10px 14px; color: var(--ink); font-weight: 800; cursor: pointer; }
button:hover, .portal-button:hover { border-color: var(--green); }
.portal-button:focus-visible { outline: 3px solid rgba(30, 113, 69, .15); outline-offset: 2px; border-color: var(--green); }
button.primary { background: var(--green); border-color: var(--green); color: #fff; }
button.primary:hover { background: var(--green-dark); }
button.danger { color: var(--red); border-color: #e3b7b7; }
button.ghost { background: transparent; }
.tabs { display: flex; gap: 8px; margin: 22px 0 12px; overflow-x: auto; padding-bottom: 4px; }
.tab { white-space: nowrap; border-radius: 999px; }
.tab.active { background: #dcecdf; border-color: #b6d4be; color: var(--green-dark); }
.panel { display: none; padding: clamp(16px, 3vw, 30px); }
.panel.active { display: block; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.status-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-size: 12px; font-weight: 900; }
main .status-pill { background: #edf2ed; border-color: var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #f0f4ef; color: #4a5a50; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
tbody tr:last-child td { border-bottom: 0; }
td input[type="number"] { width: 96px; }
td input[type="checkbox"] { min-height: 18px; width: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.product-master-controls { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(150px, .65fr) minmax(220px, 1.2fr); gap: 12px; margin-bottom: 16px; }
.product-module-toggle { display: grid; place-items: center; min-width: 38px; }
.product-module-toggle input { accent-color: var(--green); }
.product-inactive { color: var(--muted); }
.message { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #e8f4ec; border: 1px solid #bad7c2; }
.message.error { background: #fff0f0; border-color: #e2b4b4; color: #7d2020; }
.preview-mode { background: #fff7df; border-color: #e5c878; color: #6f4c00; font-weight: 900; }
.preview-user { margin: 0 0 7px; color: #d9e9de; font-size: 12px; font-weight: 800; text-align: right; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .58; }

.pilot-body { min-height: 100vh; background: linear-gradient(155deg,#f5f1e5,#e7eddd); }
.pilot-topbar { position: sticky; top: 0; z-index: 5; }
.pilot-brand { display: flex; align-items: center; gap: 14px; }
.pilot-brand img { width: 62px; height: 62px; object-fit: contain; }
.pilot-brand h1 { font-size: clamp(20px,3vw,30px); }
.pilot-session { text-align: right; }
.pilot-link { display: inline-block; margin-top: 6px; color: var(--green-dark); font-size: 12px; font-weight: 900; text-decoration: none; }
.pilot-main { max-width: 850px; }
.pilot-controls { grid-template-columns: 1fr 1fr auto auto; }
.pilot-screen { display: none; }
.pilot-screen.active { display: block; }
.pilot-welcome { margin: 26px 0 18px; text-align: center; }
.pilot-welcome h2 { margin: 0; color: var(--green-dark); font-size: 27px; }
.pilot-welcome p { color: var(--muted); }
.pilot-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.pilot-choice-grid.compact { max-width: 690px; margin: 0 auto; }
.pilot-choice { min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 20px; border: 0; border-radius: 20px; background: linear-gradient(145deg,#66703c,#414b25); box-shadow: var(--shadow); color: #fff; text-align: center; text-decoration: none; }
.pilot-choice.kitchen { background: linear-gradient(145deg,#71805b,#48573e); }
.pilot-choice.external { background: #fff; color: var(--green-dark); border: 1px solid var(--line); }
.pilot-choice b { font-size: 20px; }
.pilot-choice span { max-width: 270px; font-size: 13px; line-height: 1.4; opacity: .92; }
.pilot-summary { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 20px; }
.pilot-summary article { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; display: flex; justify-content: space-between; }
.pilot-summary .attention { border-color: #e6b9b1; background: #fff4f1; }
.pilot-back { display: block; margin: 24px auto 0; background: transparent; border: 0; color: var(--green-dark); }
.pilot-group-list { display: grid; gap: 18px; }
.pilot-group { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.pilot-group header { display: flex; justify-content: space-between; margin-bottom: 14px; }
.pilot-group h3 { margin: 0 0 4px; color: var(--green-dark); }
.pilot-group header small { color: var(--muted); }
.pilot-product-list { display: grid; gap: 9px; margin-bottom: 15px; }
.pilot-product { display: grid; grid-template-columns: minmax(0,1fr) 115px; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #f8faf6; }
.pilot-product span { min-width: 0; }
.pilot-product b,.pilot-product small { display: block; }
.pilot-product small { margin-top: 4px; color: var(--muted); }
.pilot-product input { width: 100%; text-align: center; font-size: 18px; font-weight: 900; }
.production-row { grid-template-columns: minmax(0,1fr) 105px minmax(150px,210px); }
.production-actions { display: grid; gap: 7px; }
.production-actions button { width: 100%; }
.production-entry-row > .message { grid-column: 1 / -1; margin: 2px 0; padding: 8px 10px; }
.transfer-lot { grid-template-columns: minmax(0,1fr) 100px; }
.pilot-product.unavailable { opacity: .68; }
.pilot-group > .primary { width: 100%; }

/* Staff dashboard: pilot-inspired operation shell; scoped data views remain in staff.js. */
.staff-shell { max-width: 1160px; margin: 0 auto; padding: clamp(18px, 3vw, 34px) 16px 56px; }
.staff-card { background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.9); border-radius: 22px; box-shadow: 0 18px 46px rgba(47,59,26,.12); padding: clamp(20px, 3vw, 30px); }
.staff-card > h1 { margin: 0 0 5px; color: var(--green-dark); font-size: clamp(25px,3vw,32px); }
.staff-dashboard { display: grid; grid-template-columns: 178px minmax(0,1fr); gap: clamp(18px,3vw,32px); margin-top: 26px; }
.staff-nav { display: grid; align-content: start; gap: 5px; padding: 8px; border-radius: 16px; background: #f4f6ef; }
.manager-store-context { display: grid; gap: 5px; margin: 0 0 8px; padding: 8px; font-size: 12px; font-weight: 850; color: #263f28; }
.manager-store-context select { width: 100%; min-height: 42px; }
.staff-nav button, .staff-nav a { display: block; width: 100%; border: 0; border-radius: 10px; background: transparent; color: #526046; padding: 11px 12px; font-size: 12px; font-weight: 850; line-height: 1.25; text-align: left; text-decoration: none; cursor: pointer; }
.staff-nav button.active, .staff-nav button:hover, .staff-nav a:hover { background: #e1e8d7; color: #263f28; }
.staff-nav #logout { margin-top: 9px; color: #7a4238; border-top: 1px solid #d8dfd3; border-radius: 0; }
.staff-view { min-width: 0; }
.staff-view h2 { margin: 0 0 5px; color: #163f29; font-size: clamp(24px,3vw,31px); }
.staff-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.staff-action { border: 1px solid #dbe3d5; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(41,59,28,.06); padding: clamp(16px,2.4vw,22px); }
.staff-action-button { min-height: 140px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 0; background: linear-gradient(145deg,#69743d,#434e26); box-shadow: 0 13px 26px rgba(53,65,31,.16); color: #fff; text-align: center; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.staff-action-button:hover, .staff-action-button:focus-visible { border: 0; color: #fff; filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 18px 30px rgba(53,65,31,.24); }
.staff-action-button h3 { margin: 0 0 8px; color: inherit; font-size: clamp(17px,2vw,21px); letter-spacing: -.01em; }
.staff-action-button p { max-width: 260px; margin: 0; color: rgba(255,255,255,.92); font-size: 13px; line-height: 1.35; }
.staff-action-cue { margin-top: 15px; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
#morning-content { display: grid; gap: 18px; }
.morning-group { padding: 20px; background: #fff; }
.morning-group h3 { margin: 0 0 4px; color: var(--green-dark); font-size: 19px; }
.morning-group > p { margin: 0 0 15px; color: var(--muted); font-size: 13px; }
.staff-products { display: grid; gap: 9px; overflow: visible; }
.morning-labels { display: grid; grid-template-columns: minmax(0,1fr) 116px 100px 120px 76px; gap: 12px; padding: 0 12px 3px; color: #68746d; font-size: 11px; font-weight: 850; }
.morning-labels span:not(:first-child), .morning-metric { text-align: center; }
.staff-product.morning-row { display: grid; grid-template-columns: minmax(0,1fr) 116px 100px 120px 76px; gap: 12px; align-items: center; border: 1px solid #dce4d9; border-radius: 14px; background: #f8faf6; padding: 11px 12px; }
.staff-product.morning-row strong { color: #38513e; font-size: 14px; }
.morning-row input { width: 100%; min-height: 48px; border: 1px solid #c4d1c5; border-radius: 11px; background: #fff; padding: 8px; text-align: center; font-size: 18px; font-weight: 850; }
.morning-metric { color: #31523a; font-size: 15px; font-weight: 850; }
.morning-row .morning-metric:last-child { border-radius: 10px; background: #e5f0e4; padding: 11px 7px; color: #1b5631; }
.morning-recipe-link { display:grid; place-items:center; min-height:42px; border:1px solid #cbd8c5; border-radius:9px; background:#fff; color:#28563a; font-size:11px; font-weight:850; text-decoration:none; }
.morning-recipe-link:hover,.morning-recipe-link:focus-visible { background:#edf3e8; border-color:#769362; }
.morning-complete { width: 100%; margin-top: 15px; min-height: 44px; border-radius: 10px; letter-spacing: .02em; }
.staff-product { display: grid; grid-template-columns: minmax(0,1fr) minmax(96px,160px) auto; align-items: center; gap: 12px; border: 1px solid #dce4d9; border-radius: 14px; background: #f8faf6; padding: 11px 12px; }
.staff-product > strong { color: #38513e; font-size: 14px; }
.staff-product > input { width: 100%; min-height: 44px; text-align: center; font-weight: 850; }
.production-quantity-field,.ginger-receive-field { display: contents; }
.production-quantity-field > span,.ginger-receive-field > span { display: none; }
.production-quantity-field > input,.ginger-receive-field > input { width: 100%; min-width: 0; min-height: 44px; text-align: center; font-weight: 850; }
.staff-product.transfer-row { grid-template-columns: minmax(0,1fr) 110px; }
.production-labels.ginger-receipt-labels,.staff-product.ginger-receipt-row { grid-template-columns: minmax(0,1fr) 90px 130px; }
.staff-product.ginger-receipt-row > strong { min-width:0;overflow-wrap:anywhere; }
.ginger-receipt-group > button { justify-self:start;min-height:44px; }
.staff-product.treat-waste-row { grid-template-columns: minmax(0,1fr) auto; }
.treat-waste-row span { color: var(--green-dark); font-size: 13px; font-weight: 850; white-space: nowrap; }
.production-group { display:grid; gap:9px; }
.production-dessert-controls { display:grid; gap:9px; min-width:0; padding:12px; border:1px solid #dce4d9; border-radius:12px; background:#f3f7f2; }
.production-picker-title { color:#425749; font-size:12px; font-weight:700; }
.production-dessert-picker { display:grid; grid-template-columns:minmax(0,1fr) 40px 40px; align-items:center; gap:8px; min-width:0; }
.production-dessert-picker select { width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid #c4d1c5; border-radius:9px; background-color:#fff; color:#31523a; font:600 14px/1.3 var(--portal-ui-font, Inter, system-ui, sans-serif); }
.production-dessert-picker select:focus-visible { outline:2px solid #73977c; outline-offset:2px; }
.production-dessert-picker button { padding-inline:0; }
.production-dessert-picker[hidden] { display:none; }
.production-group > .secondary-link { justify-self:start; }
.production-group > h3 { margin:0 0 5px; color:var(--green-dark); }
.production-labels,.production-entry-row { display:grid; grid-template-columns:minmax(0,1fr) 90px 130px minmax(130px,180px); gap:12px; align-items:center; }
.production-labels { padding:0 12px 3px; color:#68746d; font-size:11px; font-weight:850; }
.production-labels span:not(:first-child),.production-target { text-align:center; }
.production-target { padding:11px 7px; border-radius:10px; background:#e5f0e4; color:#1b5631; font-weight:900; }
.treat-waste-row { grid-template-columns:minmax(0,1fr) auto minmax(270px,330px) !important; }
.treat-waste-controls { display:grid;grid-template-columns:repeat(var(--tw-fields,3),minmax(0,1fr));gap:6px;align-items:center;min-width:0; }
.treat-waste-controls.has-correction { grid-template-columns:repeat(var(--tw-fields,3),minmax(0,1fr)) 36px; }
.treat-waste-controls > .treat-waste-actions { display:contents; }
.treat-waste-controls input,.treat-waste-controls button { box-sizing:border-box;width:100%;min-width:0;height:44px;min-height:44px;padding:6px 3px;border-radius:9px;text-align:center;font-size:12px; }
.treat-waste-controls input { font-size:16px; }
.treat-waste-controls input::placeholder { font-size:11px; }
.treat-waste-controls .treat-waste-edit { font-size:22px;padding:0;color:var(--green-dark); }
.treat-waste-totals { display:flex;align-items:center;flex-wrap:wrap;gap:6px; }
.treat-waste-totals > small { color:var(--muted);font-size:12px; }
.treat-waste-totals > span { display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:7px;background:#edf3eb;font-size:12px;font-weight:500; }
.treat-waste-totals b { font-size:14px;font-weight:850;font-variant-numeric:tabular-nums; }
.treat-waste-corrections.admin-corrections:not([open]) { display:none; }
.treat-waste-corrections.admin-corrections > summary { display:none; }
.treat-waste-actions { display:flex; gap:7px; }
.treat-waste-corrections { grid-column:1 / -1;border-top:1px solid var(--line);padding-top:8px;color:var(--green-dark);font-size:13px; }
.treat-waste-corrections summary { cursor:pointer;font-weight:800; }
.treat-waste-correction-line { display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap; }
.treat-waste-correction-line label { min-width:110px; }
.treat-waste-correction-line input { width:88px;min-height:40px;text-align:center; }
.treat-waste-categories { display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px; }
.treat-waste-category { min-height:68px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--green-dark);font-size:15px; }
.treat-waste-category:hover,.treat-waste-category:focus-visible { background:#edf5ed;border-color:var(--green); }
.treat-waste-back { justify-self:start;min-height:40px; }
.treat-waste-heading { margin:0 0 5px;color:var(--green-dark); }
.treat-waste-row > strong { min-width:0;overflow-wrap:anywhere; }
@media (max-width: 900px) {
  .treat-waste-row { grid-template-columns:minmax(0,1fr) minmax(270px,330px) !important; }
  .treat-waste-row > strong { grid-column:1 / -1; }
  .treat-waste-row > span { min-width:0;white-space:normal;line-height:1.35; }
  .treat-waste-actions { gap:5px; }
  .treat-waste-actions button { padding-inline:9px; }
}
.staff-consumption-summary { grid-template-columns:1fr; }
.staff-consumption-summary .treat-waste-actions { align-items:center; justify-content:space-between; }
.transfer-product > h3 { margin-top:0; }
.ginger-production-link { display:grid; gap:4px; margin-bottom:4px; color:#263f28; text-decoration:none; }
.ginger-production-link strong { color:#1f5635; font-size:16px; }
.ginger-production-link span { color:#68736a; font-size:13px; }
.ginger-production-link:hover,.ginger-production-link:focus-visible { border-color:#7e9366; background:#f2f5ec; }
.recipe-dialog{width:min(620px,calc(100% - 24px));max-height:86vh;padding:0;border:0;border-radius:20px;box-shadow:0 24px 70px rgba(24,35,20,.28);color:#27301d}
.recipe-dialog::backdrop{background:rgba(28,35,26,.58);backdrop-filter:blur(3px)}
.recipe-dialog-card{padding:22px;display:grid;gap:16px}
.recipe-dialog-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.recipe-dialog-card h2{margin:.2rem 0 0}.recipe-dialog-close{width:42px;height:42px;border-radius:50%;padding:0;font-size:26px;line-height:1;background:#edf0e8;color:#27301d}
.recipe-dialog-quantity{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:800}.recipe-quantity-controls{display:flex;align-items:center;gap:6px}.recipe-quantity-controls button{width:40px;height:40px;padding:0;border:1px solid #cbd8c5;border-radius:9px;background:#fff;color:#28563a;font:inherit;font-size:1.25rem}.recipe-dialog-quantity input{width:76px;min-height:40px;text-align:center}
.recipe-dialog-container{margin:0;color:#66705f}.recipe-dialog-ingredients{list-style:none;margin:0;padding:0}.recipe-dialog-ingredients li{display:grid;grid-template-columns:1fr auto;gap:5px;padding:12px 0;border-bottom:1px solid #e5e9df}.recipe-dialog-ingredients small{grid-column:1/-1;color:#697265}
.staff-alert-action { min-height:100px; }

@media (max-width: 760px) {
  .staff-dashboard { grid-template-columns: 1fr; gap: 18px; }
  .staff-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .staff-nav #logout { margin-top: 0; border-top: 0; }
  .staff-grid { grid-template-columns: 1fr; }
  .staff-action-button { min-height: 120px; }
}
@media (max-width: 560px) {
  .staff-shell { padding-inline: 10px; }
  .staff-card { border-radius: 18px; padding: 16px; }
  .morning-labels { display: none; }
  .staff-product.morning-row { grid-template-columns: 1fr 92px; gap: 9px; }
  .morning-row input { min-height: 52px; }
  .morning-row .morning-metric { grid-row: 2; padding: 7px; border-radius: 8px; background: #edf3eb; font-size: 12px; }
  .morning-row .morning-metric::before { display: block; margin-bottom: 2px; color: #738274; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
  .morning-row .morning-metric:first-of-type::before { content: 'ΣΤΟΧΟΣ'; }
  .morning-row .morning-metric:last-child::before { content: 'ΠΑΡΑΓΩΓΗ'; }
  .morning-recipe-link { grid-column: 1 / -1; min-height:38px; }
  .staff-product { grid-template-columns: 1fr; }
  .staff-product.transfer-row { grid-template-columns: minmax(0,1fr) 92px; }
  .production-labels.ginger-receipt-labels { display:none; }
  .staff-product.ginger-receipt-row { grid-template-columns:minmax(0,1fr) 80px; }
  .ginger-receipt-row .production-target::before { content:'ΑΠΕΣΤΑΛΗΣΑΝ';display:block;color:#738274;font-size:9px; }
  .ginger-receipt-row > input { grid-column:1/-1; }
  .staff-product.treat-waste-row { grid-template-columns: 1fr; }
  .production-labels { display:none; }
  .production-entry-row { grid-template-columns:1fr 80px; }
.production-entry-row .production-target::before { content:'ΓΙΑ ΠΑΡΑΓΩΓΗ'; display:block; color:#738274; font-size:9px; }
  .production-entry-row input,.production-entry-row .production-actions { grid-column:1 / -1; }
  .treat-waste-row { grid-template-columns:minmax(0,1fr) !important; gap:8px; }
  .treat-waste-row > strong,.treat-waste-totals,.treat-waste-controls { grid-column:1 / -1; }
}

/* Notebook shell: option 3 clarity with option 4 mobile navigation. */
[hidden] { display: none !important; }
.site-logo-link { display: inline-flex; flex: 0 0 auto; align-items: center; color: inherit; text-decoration: none; }
.site-logo-link img { display: block; width: 52px; height: 46px; max-width: 52px; max-height: 46px; object-fit: contain; }
.page-brand-row { display: flex; align-items: center; gap: 15px; min-width: 0; }
.page-brand-row .eyebrow { margin-bottom: 3px; color: #667342; }
.page-brand-row h1 { line-height: 1.02; }

.pilot-body { background: #f7f7ec; }
.pilot-body .pilot-topbar { min-height: 78px; padding: 10px clamp(16px,4vw,52px); background: rgba(255,255,255,.97); color: var(--ink); border-bottom: 1px solid #dfe2d5; box-shadow: 0 5px 20px rgba(47,55,34,.06); }
.pilot-brand { color: inherit; text-decoration: none; }
.pilot-brand img { width: 76px; height: 58px; }
.pilot-brand .eyebrow { margin-bottom: 2px; color: #687645; }
.pilot-brand h1 { color: #203123; font-size: clamp(18px,2.2vw,25px); }
.pilot-session .preview-user { color: #3f4b42; }
.pilot-link { padding: 7px 10px; border: 1px solid #cfd6c8; border-radius: 9px; background: #fff; }
.staff-shell { max-width: 1240px; padding-top: 24px; }
#auth-panel { width: min(410px,100%); margin: 6vh auto 0; }
#dashboard-panel.staff-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#dashboard-panel > h1 { color: #203123; font-size: clamp(27px,3vw,38px); }
.staff-dashboard { display:grid; grid-template-columns:210px minmax(0,1fr); gap:22px; align-items:start; margin-top:18px; }
.staff-nav { position:sticky; top:14px; z-index:4; display:grid; grid-template-columns:1fr; align-items:stretch; gap:3px; overflow:visible; padding:8px; border:1px solid #d8decf; border-radius:14px; background:rgba(255,255,255,.96); box-shadow:0 6px 20px rgba(43,52,30,.06); }
.staff-nav button,.staff-nav a { display:flex; width:100%; min-width:0; min-height:40px; align-items:center; justify-content:flex-start; padding:8px 10px; border-radius:8px; color:#536050; line-height:1.2; text-align:left; white-space:normal; }
.staff-nav button.active,.staff-nav button:hover,.staff-nav a:hover { background:#eef2e8; color:#1f5635; box-shadow:inset 3px 0 #65733f; }
.staff-nav #logout { margin-top:5px; padding-inline:10px; border-top:1px solid #d8decf; }
.manager-store-context { min-width:0; margin: 0; padding: 4px 6px; }
.manager-store-context select { min-height: 38px; }
.staff-view { padding-top: 25px; }
.staff-action,.morning-group,.pilot-group { border-color: #dde1d4; border-radius: 13px; box-shadow: 0 5px 18px rgba(43,52,30,.045); }
.staff-action-button { min-height: 122px; border: 1px solid #ccd4bf; background: #fff; box-shadow: none; color: #263b28; }
.staff-action-button:hover,.staff-action-button:focus-visible { border: 1px solid #7d8b58; background: #f0f3e5; color: #1f482d; box-shadow: none; transform: translateY(-1px); }
.staff-action-button p { color: #6b7468; }
.staff-action-cue { color: #5d6e3b; }
.staff-mobile-nav,.staff-mobile-more { display: none; }
.home-section { display:grid; gap:8px; margin:0 0 24px; }
.home-section h2 { margin:0 0 5px; font-size:19px; }
.home-item { display:flex; width:100%; min-height:64px; align-items:center; justify-content:space-between; gap:18px; padding:13px 15px; border:1px solid #dce2d5; border-radius:12px; background:#fff; color:#273c2c; text-align:left; text-decoration:none; }
.home-item span { display:grid; gap:3px; }
.home-item strong { font-size:15px; }
.home-item small { color:#68736a; font-size:12px; line-height:1.35; }
.home-item b { color:#506333; font-size:11px; text-transform:uppercase; letter-spacing:.05em; }
.home-item-action:hover,.home-item-action:focus-visible { border-color:#839165; background:#f2f4ea; color:#1f4d31; }
.home-notice { border-left:4px solid #7b8755;min-height:52px;padding:8px 11px;gap:10px; }
.home-notice strong { font-size:13px;line-height:1.25; }
.home-notice small { font-size:11px;line-height:1.2; }
.notice-row { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:10px 12px;align-items:center; }
.notice-row h3 { grid-column:1;margin:0;font-size:14px;line-height:1.3; }
.notice-row p { grid-column:1;margin:0;font-size:12px;line-height:1.3; }
.notice-row small { grid-column:1;color:#68736a;font-size:11px; }
.notice-row>a,.notice-row>button { grid-column:2;grid-row:1 / span 3;align-self:center; }
.home-empty { margin:0; padding:14px 15px; border:1px dashed #d8ded2; border-radius:12px; color:#68736a; background:rgba(255,255,255,.55); }
.home-more { justify-self:start; margin-top:3px; }
.workday-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.workday-metric { display:grid; gap:5px; min-height:76px; align-content:center; padding:12px 14px; border:1px solid #dce2d5; border-radius:12px; background:#fff; }
.workday-metric small { color:#68736a; font-size:11px; }
.workday-metric strong { color:#24472f; font-size:15px; }

@media (max-width: 760px) {
  .pilot-body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .pilot-body .pilot-topbar { min-height: 66px; padding: 8px 12px; align-items: center; }
  .pilot-brand { gap: 9px; }
  .pilot-brand img { width: 55px; height: 45px; }
  .pilot-brand .eyebrow { font-size: 8px; }
  .pilot-brand h1 { font-size: 17px; }
  .pilot-session { max-width: 118px; }
  .pilot-session .preview-user { overflow: hidden; margin-bottom: 3px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .pilot-link { padding: 5px 7px; font-size: 9px; }
  .staff-shell { padding: 16px 10px 30px; }
  .staff-nav { display: none; }
  .staff-dashboard { display:block; }
  .staff-view { padding-top: 18px; }
  .staff-mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 7px 5px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #d5dacd; background: rgba(255,255,255,.98); box-shadow: 0 -7px 24px rgba(34,45,28,.1); }
  .staff-mobile-nav button,.staff-mobile-nav a { display: flex; min-width: 0; min-height: 49px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 2px; border: 0; border-radius: 9px; background: transparent; color: #596257; font-size: 9px; font-weight: 850; line-height: 1.05; text-align: center; text-decoration: none; }
  .staff-mobile-nav span { min-height: 17px; color: #526235; font-size: 17px; line-height: 1; }
  .staff-mobile-nav .active { background: #edf1e2; color: #204a30; }
  .staff-mobile-more { position: fixed; right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); left: 10px; z-index: 29; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 12px; border: 1px solid #d5dacd; border-radius: 16px; background: #fff; box-shadow: 0 -12px 36px rgba(34,45,28,.18); }
  .staff-mobile-more button,.staff-mobile-more a { min-height: 45px; padding: 9px; border: 1px solid #dfe3d7; border-radius: 10px; background: #f8f9f2; color: #314333; font-size: 12px; font-weight: 800; text-align: center; text-decoration: none; }
.staff-mobile-more .danger { color: #91392e; }
  .staff-mobile-more .mobile-manager-store-context { grid-column:1/-1; display:grid; gap:5px; margin:0; padding:4px 6px; text-align:left; }
  .staff-mobile-more .mobile-manager-store-context select { min-height:44px; margin:0; }
  .site-logo-link img { width: 58px; height: 46px; }
  .page-brand-row { gap: 10px; }
  .workday-summary { grid-template-columns:1fr; }
}

@media(max-width:680px){
  .pilot-topbar { position: static; align-items: flex-start; }
  .pilot-session { max-width: 145px; }
  .pilot-controls { grid-template-columns: 1fr 1fr; }
  .pilot-choice-grid { grid-template-columns: 1fr; }
  .pilot-choice { min-height: 110px; }
  .production-row { grid-template-columns: minmax(0,1fr) 88px; }
  .production-actions { grid-column: 1/-1; }
}
.hint, .empty { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbfcfa; }
.card.critical { border-left: 5px solid var(--red); }
.card.warning { border-left: 5px solid var(--amber); }
.card.info { border-left: 5px solid var(--green); }
.card p:last-child { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.form-grid .wide { grid-column: span 2; }
.form-grid button { align-self: end; }
.lot { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.negative { color: var(--red); font-weight: 900; }
@media (max-width: 860px) {
    .control-card, .form-grid, .product-master-controls { grid-template-columns: 1fr 1fr; }
    .topbar { align-items: flex-start; }
}
@media (max-width: 560px) {
    main { width: min(100% - 20px, 1480px); }
    .control-card, .form-grid, .product-master-controls { grid-template-columns: 1fr; }
    .form-grid .wide { grid-column: auto; }
    .topbar { padding: 20px; }
}

#transfer-content .ginger-dispatch-panel{display:block;min-width:0;padding:12px;border:1px solid #dce2d2;border-radius:12px;background:#fff}
#transfer-content .ginger-dispatch-panel>summary{cursor:pointer;font-weight:600;font-size:1rem;padding:4px 0}
#transfer-content .ginger-dispatch-panel>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
#transfer-content .ginger-dispatch-panel .transfer-product{min-width:0;padding:10px;box-shadow:none}
#transfer-content .ginger-dispatch-panel .transfer-product h3{font-size:1.1rem;margin:0 0 8px}
#transfer-content .transfer-row{display:grid;grid-template-columns:minmax(0,1fr) 76px;align-items:center;gap:8px}
#transfer-content .transfer-row strong{font-size:14px;font-weight:700;color:#38513e;overflow-wrap:anywhere}
#transfer-content .transfer-row input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;text-align:center;font-size:1rem;font-weight:850}
#transfer-content .ginger-dispatch-panel button{min-height:44px;font-size:1rem;font-weight:800;grid-column:1/-1}
@media(max-width:600px){#transfer-content .ginger-dispatch-panel>div{grid-template-columns:minmax(0,1fr)}}

/* Keep logout as the last bottom-left action, matching the Admin menu. */
@media (min-width: 761px) { .staff-nav { display: flex; flex-direction: column; min-height: calc(100vh - 200px); } }
.staff-nav #logout { margin-top: auto; min-height: 40px; padding: 8px 12px; border: 1px solid #e8c8c3; border-radius: 10px; background: #faeeec; color: #99463e; font-size: 12.5px; font-weight: 800; line-height: 1.25; text-align: left; }
.staff-nav #logout:hover { background: #f4dfdc; color: #7f302a; }
.staff-nav #logout:focus-visible { outline: 2px solid #a94d45; outline-offset: 2px; }
@media (max-width: 760px) { .staff-nav #logout { margin-top: 9px; } }

/* Staff home: balanced columns and calm, readable daily-status bubbles. */
#dash-content { grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); align-items: start; gap: 18px; }
.home-overview { display: grid; align-content: start; gap: 18px; min-width: 0; }
#dash-content .home-section { min-width: 0; margin: 0; }
#dash-content .home-section h2 { margin-bottom: 11px; }
#dash-content .workday-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
#dash-content .workday-metric { min-width: 0; min-height: 122px; align-content: center; gap: 8px; padding: 18px; border: 1px solid #c7ddcb; border-radius: 18px; background: linear-gradient(145deg,#f0f8ef,#e2f1e4); box-shadow: 0 8px 20px rgba(37,88,48,.06); }
#dash-content .workday-metric small { color: #44634b; font-size: 12px; line-height: 1.3; }
#dash-content .workday-metric strong { color: #194e2f; font-size: clamp(21px,2.1vw,29px); line-height: 1.15; font-weight: 850; overflow-wrap: anywhere; }
#dash-content .workday-metric-meal { grid-column: 1/-1; min-height: 94px; }
#dash-content .workday-metric-meal strong { font-size: clamp(17px,1.8vw,22px); }
#dash-content .workday-metric-soon { border-color: #e4ce82; background: linear-gradient(145deg,#fff9df,#fff0be); }
#dash-content .workday-metric-soon small,#dash-content .workday-metric-soon strong { color: #745116; }
#dash-content .workday-metric-soon::after { content: "Τελευταία 10 λεπτά"; color: #865b13; font-size: 11px; font-weight: 800; }
#dash-content .workday-greeting { margin: 11px 0 0; padding: 13px 16px; border: 1px solid #d4e6d1; border-radius: 16px; background: #f2f8ee; color: #476349; font-size: 13px; line-height: 1.4; }
@media (max-width: 1050px) { #dash-content { grid-template-columns: minmax(0,1fr); } #dash-content .home-overview { display: contents; } #dash-content .home-overview .home-section:first-child { order: 0; } #dash-content > .home-section { order: 1; } #dash-content .home-overview .home-section:last-child { order: 2; } }
@media (max-width: 560px) { #dash-content .workday-metric { min-height: 108px; padding: 14px; } }

/* Staff logout mirrors the approved Admin logout bubble exactly. */
.staff-nav #logout, .staff-mobile-more #mobile-logout { box-sizing: border-box; width: 100%; min-height: 40px; padding: 8px 11px 8px 41px; border: 1px solid #e8c8c3; border-radius: 10px; background: #faeeec; color: #99463e; font-size: 12.5px; font-weight: 800; line-height: 1.25; text-align: left; justify-content: flex-start; box-shadow: none; cursor: pointer; }
.staff-nav #logout { margin-top: auto; }
.staff-nav #logout:hover, .staff-mobile-more #mobile-logout:hover { background: #f4dfdc; color: #7f302a; border-color: #e8c8c3; box-shadow: none; }
.staff-nav #logout:focus-visible, .staff-mobile-more #mobile-logout:focus-visible { outline: 2px solid #a94d45; outline-offset: 2px; }

/* Soft blue break-message bubble. */
#dash-content .workday-greeting { border-color: #dbeaf4; background: #f1f7fc; color: #476275; }

/* Match the Admin sidebar footer structure, not only its button colours. */
@media (min-width: 761px) { .staff-dashboard { grid-template-columns: 248px minmax(0, 1fr); } .staff-nav { padding: 18px 13px 14px; background: #f7f7ec; } }
.staff-nav-footer { display: flex; flex-direction: column; align-items: stretch; margin-top: auto; padding: 14px 8px 2px; border-top: 1px solid #d8decf; }
.staff-nav .staff-nav-footer #logout { margin: 0; }

/* Shared portal typography: match the Admin shell and entry screens. */
:root { --portal-ui-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body, button, input, select, textarea { font-family: var(--portal-ui-font); }
body { text-rendering: optimizeLegibility; }
.staff-nav button, .staff-nav a, .staff-mobile-nav button, .staff-mobile-nav a, .staff-mobile-more button, .staff-mobile-more a { font-weight: 700; letter-spacing: -.012em; }

/* Mobile operations: one category card with compact, clearly separated product rows. */
@media (max-width: 560px) {
  #morning-content, #production-content { gap: 10px; }
  #morning-content .staff-action, #production-content .production-group, #production-receipt-content > .ginger-receipt-group { padding: 12px; }
  #morning-content h3, #production-content h3, #production-receipt-content h3 { margin: 0 0 8px; font-size: 17px; }
  #morning-content .staff-products, #production-content .production-group, #production-receipt-content .ginger-receipt-group { gap: 0; }
  .morning-labels, .production-labels, .production-labels.ginger-receipt-labels { display: grid; gap: 4px; padding: 0 5px 6px; border-bottom: 1px solid #dce4d9; font-size: 9px; line-height: 1.15; }
  .morning-labels { grid-template-columns: minmax(0,1fr) 62px 42px 48px 45px; }
  .production-labels { grid-template-columns: minmax(0,1fr) 52px 64px; }
  .production-labels span:last-child { display: none; }
  .production-labels.ginger-receipt-labels { grid-template-columns: minmax(0,1fr) 52px 64px; }
  .production-labels.ginger-receipt-labels span:last-child { display: block; }
  .production-labels.ginger-receipt-labels span:nth-child(2) { font-size: 0; }
  .production-labels.ginger-receipt-labels span:nth-child(2)::after { content: 'Στάλθηκαν'; font-size: 9px; }
  .staff-product.morning-row, .staff-product.production-entry-row, .staff-product.ginger-receipt-row { min-width: 0; gap: 4px; padding: 6px 5px; border: 0; border-bottom: 1px solid #e3e9df; border-radius: 0; background: #fff; box-shadow: none; }
  .staff-product.morning-row { grid-template-columns: minmax(0,1fr) 62px 42px 48px 45px; }
  .staff-product.morning-row > strong, .staff-product.production-entry-row > strong, .staff-product.ginger-receipt-row > strong { min-width: 0; overflow-wrap: anywhere; line-height: 1.2; font-size: 13px; }
  .morning-row input, .staff-product.production-entry-row > input, .staff-product.ginger-receipt-row > input { box-sizing: border-box; grid-column: auto; width: 100%; min-width: 0; min-height: 40px; padding: 5px 2px; border-radius: 7px; font-size: 16px; }
  .morning-row .morning-metric { grid-row: auto; padding: 0; border-radius: 0; background: none; color: #31523a; font-size: 13px; text-align: center; }
  .morning-row .morning-metric::before, .morning-row .morning-metric:first-of-type::before, .morning-row .morning-metric:last-child::before { content: none; }
  .morning-row .morning-metric + .morning-metric { padding: 7px 3px; border-radius: 7px; background: #e1f0df; color: #174e2c; font-weight: 900; }
  .morning-recipe-link { grid-column: auto; min-height: 40px; padding: 2px; border-radius: 7px; font-size: 10px; }
  .morning-complete { margin-top: 10px; min-height: 40px; font-size: 12px; }
  .production-labels, .production-labels.ginger-receipt-labels { display: none; }
  .staff-product.production-entry-row { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .production-entry-row > strong, .ginger-receipt-row > strong { grid-column: 1 / -1; }
  .production-entry-row .production-target, .ginger-receipt-row .production-target { padding: 0; border-radius: 0; background: none; font-size: 13px; }
  .production-entry-row .production-target::before, .ginger-receipt-row .production-target::before { display: block; margin-bottom: 2px; color: #738274; font-size: 8px; line-height: 1; }
  .production-entry-row .production-target::before { content: 'ΓΙΑ ΠΑΡ.'; }
  .ginger-receipt-row .production-target::before { content: 'ΣΤΑΛΘΗΚΑΝ'; }
  .production-quantity-field, .ginger-receive-field { display: grid; gap: 2px; min-width: 0; }
  .production-quantity-field > span, .ginger-receive-field > span { display: block; color: #738274; font-size: 8px; line-height: 1; font-weight: 850; text-transform: uppercase; white-space: nowrap; }
  .production-quantity-field > input, .ginger-receive-field > input { box-sizing: border-box; min-height: 36px; padding: 3px 2px; border-radius: 7px; font-size: 15px; }
  .production-quantity-field input::placeholder, .ginger-receive-field input::placeholder { color: transparent; }
  .production-entry-row .production-actions { display: grid; grid-column:3 / -1; gap:7px; }
  .production-entry-row .production-actions button { width: 100%; min-width: 0; min-height: 36px; padding: 3px 2px; font-size: 10px; line-height: 1.1; white-space: normal; align-self: end; }
  .staff-product.ginger-receipt-row { grid-template-columns: minmax(0,1fr) 72px; }
  .ginger-receipt-group > button { margin-top: 10px; font-size: 12px; }
}
@media (max-width: 440px) {
  .morning-labels { display: none; }
  .staff-product.morning-row { grid-template-columns: minmax(54px,1.25fr) repeat(3,minmax(0,1fr)); }
  .morning-row > strong { grid-column: 1 / -1; }
  .morning-row input { grid-column: 1; justify-self: start; max-width: 62px; }
  .morning-row .morning-metric::before { display: block; margin-bottom: 2px; color: #738274; font-size: 8px; line-height: 1; }
  .morning-row .morning-metric:nth-of-type(1)::before { content: 'ΣΤΟΧΟΣ'; }
  .morning-row .morning-metric:nth-of-type(2)::before { content: 'ΠΑΡΑΓ.'; }
  .morning-recipe-link { grid-column: 4; }
}

/* One selected store applies to the staff workspace and its separate pages. */
.staff-global-store{display:flex;align-items:center;gap:12px;width:max-content;max-width:100%;margin:8px 0 14px;font-size:12px;font-weight:700}
.staff-global-store[hidden]{display:none!important}
.staff-global-store label{display:flex;align-items:center;gap:10px}
.staff-global-store select{width:auto;min-width:145px;max-width:100%;min-height:36px;padding:6px 30px 6px 10px;font-size:13px}
.staff-global-store p,#store-context-message{margin:0;font-size:12px;color:#a43f32}

@media(max-width:900px){.staff-mobile-nav [data-view="morning"],.staff-mobile-nav [data-view="production"]{overflow-wrap:normal;white-space:normal;font-size:9px!important;line-height:1.15!important;min-height:62px!important}}

.dismissible-notification{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;border:1px solid #dce2d5;border-radius:12px;background:#fff;padding-right:12px}
.dismissible-notification[hidden]{display:none}
.dismissible-notification>.home-item,.dismissible-notification>.notice-row{min-width:0;border:0!important;box-shadow:none!important;background:transparent!important}
.dismissible-notification.notification-with-actions{grid-template-columns:minmax(0,1fr);padding:0;border-left:4px solid var(--control-green,#315e44)}
.notification-with-actions .notification-actions{flex:0 0 auto;justify-content:flex-end}
.notification-dismiss{justify-self:end;white-space:nowrap}
.notices-toolbar{display:grid;gap:12px;margin-bottom:18px;padding:16px;border:1px solid #dce2d5;border-radius:12px;background:#fff}
.notices-toolbar .hint{margin:0}
.notices-filter-line,.notices-bulk-line,.notices-bulk-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.notices-filter-line,.notices-bulk-line{justify-content:space-between}
.notices-category{display:grid;gap:4px;font-size:12px;min-width:210px}
.notices-category select{margin:0;min-height:38px}
.notices-select{display:inline-flex;align-items:center;gap:8px;font-size:13px}
.notices-select input,.notice-choice input{width:18px;height:18px;min-height:18px;margin:0;accent-color:var(--control-green,#315e44)}
.notice-row.notice-selectable{grid-template-columns:20px minmax(0,1fr) auto;gap:12px}
.notice-choice{display:grid;place-items:center;align-self:start;min-width:44px;min-height:44px;margin:-12px;cursor:pointer}
.notice-copy{min-width:0;display:grid;gap:4px}
.notification-actions{display:flex;align-items:center;gap:8px}
.notice-read .notice-copy h3{font-weight:600;color:#58685d}
.notice-active-issues{display:grid;gap:8px;margin-top:16px}
.notice-active-issues>h3{margin:0 0 4px;font-size:15px}
@media(max-width:600px){
 .dismissible-notification{grid-template-columns:minmax(0,1fr);gap:0;padding:0 0 10px}
 .notification-dismiss{margin-right:12px}
 .notices-toolbar{padding:12px}
 .notices-filter-line,.notices-bulk-line{align-items:stretch}
 .notices-category,.notices-bulk-actions{width:100%}
 .notices-bulk-actions>*{flex:1 1 160px}
 .notice-row.notice-selectable{grid-template-columns:20px minmax(0,1fr)}
 .notice-selectable .notification-actions{grid-column:2}
 .dismissible-notification>.home-notice{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:12px}
 .notification-with-actions .notification-dismiss{margin:0}
}

/* Compact entry lists, with alternating portal colors for easier scanning. */
.staff-product { padding: 7px 10px; border-radius: 10px; }
.staff-product.morning-row { padding: 7px 10px; border-radius: 10px; }
.staff-products { gap: 5px; }
.staff-product:nth-child(odd of .staff-product) { background: #fff; }
.staff-product:nth-child(even of .staff-product) { background: #edf3eb; }
@media (min-width: 561px) {
  .morning-row input { min-height: 40px; padding: 5px 8px; }
  .morning-row .morning-metric:last-child { padding: 7px; }
}
@media (max-width: 560px) {
  .staff-product.morning-row, .staff-product.production-entry-row, .staff-product.ginger-receipt-row { padding: 5px; border-radius: 0; }
}

/* Actionable order tasks remain prominent until the assigned step is complete. */
.order-important{grid-template-columns:minmax(0,1fr);padding:0;border-left:4px solid #b42318!important;border-color:#e7b4ad;background:#fff2f0}
.order-important strong,.order-important h3{color:#a61b12;font-weight:850}
.order-important .home-item small,.order-important .notice-copy p{color:#8b241c;font-weight:650}
.order-important .home-item:hover,.order-important .home-item:focus-visible{color:#a61b12;background:#ffe5e1!important}

/* Staff home: tasks and updates first, then operational and workday context. */
#dash-content.home-dashboard{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:start;gap:20px}
#dash-content.home-dashboard>.portal-panel{margin:0;min-width:0;align-content:start}
#dash-content.home-dashboard .home-section h2{font-size:1rem;margin:0 0 8px}
#dash-content.home-dashboard .home-empty{margin:0;padding:8px 0;color:var(--muted);font-size:13px;line-height:1.5}
#dash-content.home-dashboard .home-more{justify-self:start}
#dash-content.home-dashboard.home-dashboard-no-workday>.home-actions{grid-column:1/-1}
#dash-content.home-dashboard .workday-metric{min-height:84px;padding:14px;border-radius:12px;box-shadow:none}
#dash-content.home-dashboard .workday-metric strong{font-size:22px;font-weight:700}
#dash-content.home-dashboard .workday-metric-meal strong{font-size:17px;line-height:1.35}
@media(max-width:1050px){#dash-content.home-dashboard{grid-template-columns:minmax(0,1fr);gap:16px}#dash-content.home-dashboard>.portal-panel{order:0;grid-column:auto}}

.kitchen-entry .morning-labels,.kitchen-entry .morning-row{grid-template-columns:minmax(0,1fr) 116px}
.kitchen-entry .production-labels,.kitchen-entry .production-entry-row{grid-template-columns:minmax(0,1fr) 130px minmax(130px,180px)}
@media(max-width:600px){.kitchen-entry .production-entry-row{grid-template-columns:minmax(0,1fr) minmax(130px,180px)}.kitchen-entry .production-entry-row>strong{grid-column:1/-1}}

@media(max-width:600px){.kitchen-entry .production-entry-row .production-actions{grid-column:2;grid-row:2}.kitchen-entry .production-entry-row .production-quantity-field{grid-column:1;grid-row:2;align-self:start}}

/* Morning counts: aligned stock and production rows. */
.morning-locations .morning-labels,.morning-locations .staff-product.morning-row,.kitchen-entry.morning-locations .morning-row{grid-template-columns:minmax(120px,1fr) minmax(240px,300px)}
.morning-location-fields,.morning-production-fields{font-family:var(--portal-ui-font,Inter,system-ui,sans-serif);display:grid;grid-template-columns:1fr 1fr .8fr;gap:8px;min-width:0}
.morning-location-fields label,.morning-location-total,.morning-planning-field{display:grid;gap:4px;min-width:0;margin:0;text-align:center;font-size:12px;line-height:1.25;color:#425749}
.morning-locations .morning-location-fields input{font-family:inherit;box-sizing:border-box;width:100%;max-width:none;min-width:0;min-height:44px;font-size:18px;margin:0;padding:6px;grid-column:auto;border-radius:8px}
.morning-location-total output,.morning-planning-field output{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;border-radius:8px;background:#e5f0e4;color:#1b5631;font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}
.morning-locations .morning-row>strong{font-size:16px;line-height:1.3;font-weight:800}
.morning-production-fields{grid-column:2;align-items:end}
.morning-planning-field:nth-child(2) output{background:#e1f0df;color:#174e2c;font-size:22px;font-weight:850}
.morning-production-fields .morning-recipe-link{grid-column:3;justify-self:stretch;box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;padding:6px 2px;font-size:12px;border-radius:8px;white-space:normal;overflow-wrap:normal}
@media(max-width:1100px){
 .morning-locations .morning-labels{display:none}
 .morning-locations .staff-product.morning-row,.kitchen-entry.morning-locations .morning-row{grid-template-columns:minmax(0,1fr);gap:10px;padding:12px;border-radius:10px}
 .morning-locations .morning-row>strong,.morning-location-fields,.morning-production-fields{grid-column:1/-1}
}

.production-soup-family{border:1px solid #dce4da;border-radius:8px;padding:10px;margin:10px 0;background:#fff}.production-soup-family h4{margin:0 0 8px;font-size:15px}.production-soup-family .production-entry-row{margin:0;border-radius:0}

.ginger-batch-fields{display:grid;gap:8px;margin-top:10px}
.ginger-batch-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(75px,1fr) auto;gap:8px;align-items:end}
.ginger-batch-row label{display:grid;gap:4px;font-size:12px}
.ginger-batch-row :is(select,input){width:100%;min-width:0}
@media(max-width:540px){.ginger-batch-row{grid-template-columns:minmax(0,2fr) minmax(70px,1fr)}.ginger-batch-row button{grid-column:1/-1;justify-self:end}}
