/* ============================================================
   FORECAST / AI
   ============================================================ */
.forecast {
  flex: 1;
  min-height: 0;
  background: var(--kfc-bone);
  padding: 22px 26px 90px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-auto-rows: max-content;
  gap: 16px;
  align-content: start;
}
.ai-summary {
  grid-column: 1 / -1;
  border-radius: 16px;
  padding: 22px 26px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(240,165,0,0.25), transparent 50%),
    linear-gradient(135deg, var(--kfc-black) 0%, var(--kfc-charcoal) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  border: 1px solid #333;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.ai-summary::before {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,165,0,0.15) 0%, transparent 70%);
}
.ai-summary .head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.ai-summary .head .ai-mark {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--kfc-gold), var(--kfc-gold-deep));
  display: grid; place-items: center;
  box-shadow: 0 4px 0 #8a5d00;
}
.ai-summary .head .ai-mark .material-symbols-rounded {
  font-size: 36px; color: var(--kfc-black);
}
.ai-summary .head h2 {
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: 2px;
  line-height: 1;
}
.ai-summary .head h2 small {
  display: block;
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--kfc-gold);
  font-weight: 700;
  margin-top: 4px;
  text-transform: uppercase;
}
.ai-summary .ai-line {
  font-family: var(--tile);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}
.ai-summary .ai-line .hi {
  font-family: var(--hi);
  font-weight: 600;
  font-size: 22px;
  color: var(--kfc-gold);
  margin-top: 10px;
  display: block;
}
.ai-summary .row {
  margin-top: 18px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.ai-summary .row .stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  position: relative;
}
.ai-summary .row .stat .v {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: 1px;
  color: white;
  line-height: 1;
}
.ai-summary .row .stat .l {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  font-weight: 700;
  font-family: var(--tile);
}
.ai-summary .row .stat .delta {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(31,170,89,0.2);
  color: #5be089;
}

/* chart */
.fc-chart-card {
  background: white;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #e6dfd2;
  box-shadow: 0 4px 0 rgba(0,0,0,0.04);
}
.fc-chart-card h3 {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--kfc-black);
}
.fc-chart-card .sub {
  font-size: 13px; color: #777; margin-top: 4px;
  letter-spacing: 0.5px;
}
.bars { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 70px; gap: 12px; align-items: center; }
.bar-row .name {
  font-family: var(--tile);
  font-weight: 700;
  font-size: 16px;
  color: var(--kfc-black);
  letter-spacing: 0.5px;
}
.bar-row .name small {
  display: block;
  font-family: var(--hi);
  font-weight: 600;
  font-size: 13px;
  color: var(--kfc-red);
}
.bar-row .track {
  height: 28px;
  background: #f3ebde;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.bar-row .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--kfc-red) 0%, var(--kfc-red-dark) 100%);
  border-radius: 4px;
  position: relative;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px;
  color: white;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  animation: fillIn 1s var(--ease);
}
@keyframes fillIn { from { width: 0 !important; } }
.bar-row .num {
  font-family: var(--display);
  font-size: 24px;
  color: var(--kfc-black);
  text-align: right;
  letter-spacing: 0.5px;
}

.fc-suggestions {
  background: white;
  color: var(--kfc-black);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid #e6dfd2;
  box-shadow: 0 4px 0 rgba(0,0,0,0.04);
}
.fc-suggestions h3 {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 1.5px;
  color: var(--kfc-black);
  margin-bottom: 12px;
}
.suggest {
  background: #fbf6ed;
  border: 1px solid #e6dfd2;
  border-left: 4px solid var(--kfc-gold);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.suggest:last-child { margin-bottom: 0; }
.suggest .ic {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--kfc-gold);
  display: grid; place-items: center;
  color: var(--kfc-black);
}
.suggest .text { line-height: 1.2; color: var(--kfc-black); }
.suggest .text strong { font-family: var(--tile); font-weight: 700; font-size: 16px; color: var(--kfc-black); }
.suggest .text small { display: block; font-size: 12px; color: #777; margin-top: 2px; }
.suggest button {
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  font-family: var(--tile);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--kfc-red);
  color: white;
  box-shadow: 0 3px 0 var(--kfc-red-deep);
}
.suggest button.alt {
  background: white; color: var(--kfc-black);
  box-shadow: inset 0 0 0 2px var(--kfc-black);
}
.suggest.done {
  background: rgba(31,170,89,0.06);
  border-left-color: var(--state-ready);
  opacity: 0.7;
}

/* ============================================================
   DEVICES
   ============================================================ */
.devices {
  flex: 1; background: var(--kfc-bone);
  min-height: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.dev-alert {
  background: linear-gradient(90deg, var(--kfc-red), var(--kfc-red-dark));
  color: white;
  padding: 12px 24px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--tile);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 16px;
  border-bottom: 2px solid var(--kfc-red-deep);
  animation: alertSweep 3s ease-in-out infinite;
}
@keyframes alertSweep {
  0%, 100% { background: linear-gradient(90deg, var(--kfc-red), var(--kfc-red-dark)); }
  50% { background: linear-gradient(90deg, var(--kfc-red-dark), var(--kfc-red)); }
}
.dev-alert .ic {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: white; color: var(--kfc-red);
  display: grid; place-items: center;
  flex-shrink: 0;
}

.dev-grid {
  flex: 1;
  min-height: 0;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(178px, auto);
  gap: 14px;
  overflow-y: auto;
  align-content: start;
}
.dev-card {
  min-height: 178px;
  background: white;
  border-radius: 14px;
  border: 1px solid #e6dfd2;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}
.dev-card.offline { border-color: var(--kfc-red); }
.dev-card.offline::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--kfc-red);
}
.dev-card .head { display: flex; gap: 12px; align-items: center; }
.dev-card .ic {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--kfc-black); color: var(--kfc-gold);
  display: grid; place-items: center;
}
.dev-card.offline .ic { background: var(--kfc-red); color: white; }
.dev-card .ic .material-symbols-rounded { font-size: 32px; }
.dev-card .name {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--kfc-black);
  line-height: 1;
}
.dev-card .name small {
  display: block;
  font-size: 11px; letter-spacing: 1.5px; color: #888;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 4px;
}
.dev-card .last {
  font-family: var(--mono);
  font-size: 11px;
  color: #888;
  letter-spacing: 1px;
}
.dev-card .actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.dev-card .actions button {
  height: 48px;
  border-radius: 8px;
  background: var(--kfc-bone);
  border: 1px solid #e6dfd2;
  font-family: var(--tile);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--kfc-black);
  transition: all 0.14s var(--ease);
}
.dev-card .actions button:hover { background: var(--kfc-black); color: white; }
.dev-card .actions button .material-symbols-rounded { font-size: 18px; }

.dev-scan {
  flex-shrink: 0;
  padding: 16px 24px;
  background: white;
  border-top: 1px solid #e6dfd2;
}
.scan-btn {
  width: 100%;
  height: 80px;
  border-radius: 14px;
  background: var(--kfc-black);
  color: white;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  transition: all 0.18s var(--ease);
  box-shadow: 0 6px 0 #000;
}
.scan-btn:hover { background: var(--kfc-charcoal); }
.scan-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #000; }
.radar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--kfc-gold);
  position: relative;
}
.radar::before, .radar::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--kfc-gold);
  animation: radar 1.6s var(--ease) infinite;
}
.radar::after { animation-delay: 0.8s; }
@keyframes radar {
  0%   { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

@media (max-height: 820px) and (min-width: 980px) {
  .forecast {
    padding: 16px 20px 96px;
    gap: 12px;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  }
  .ai-summary {
    padding: 16px 20px;
    border-radius: 14px;
  }
  .ai-summary .head {
    margin-bottom: 10px;
    gap: 12px;
  }
  .ai-summary .head .ai-mark {
    width: 48px;
    height: 48px;
  }
  .ai-summary .head .ai-mark .material-symbols-rounded {
    font-size: 30px;
  }
  .ai-summary .head h2 {
    font-size: 30px;
    letter-spacing: 1.5px;
  }
  .ai-summary .head h2 small {
    font-size: 10px;
    letter-spacing: 2px;
  }
  .ai-summary .ai-line {
    font-size: 22px;
    line-height: 1.22;
  }
  .ai-summary .ai-line .hi {
    font-size: 18px;
    margin-top: 6px;
  }
  .ai-summary .row {
    margin-top: 12px;
    gap: 8px;
  }
  .ai-summary .row .stat {
    border-radius: 8px;
    padding: 9px 10px;
  }
  .ai-summary .row .stat .v {
    font-size: 26px;
  }
  .ai-summary .row .stat .l {
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 4px;
  }
  .ai-summary .row .stat .delta {
    top: 8px;
    right: 8px;
  }
  .fc-chart-card,
  .fc-suggestions {
    padding: 16px 18px;
    border-radius: 14px;
  }
  .fc-chart-card h3,
  .fc-suggestions h3 {
    font-size: 23px;
    letter-spacing: 1px;
  }
  .fc-chart-card h3 .hindi-text {
    font-size: 15px !important;
  }
  .fc-chart-card .sub {
    font-size: 12px;
  }
  .bars {
    gap: 8px;
    margin-top: 12px;
  }
  .bar-row {
    grid-template-columns: 118px 1fr 48px;
    gap: 10px;
  }
  .bar-row .name {
    font-size: 14px;
  }
  .bar-row .name small {
    font-size: 11px;
  }
  .bar-row .track {
    height: 23px;
  }
  .bar-row .num {
    font-size: 20px;
  }
  .fc-suggestions > .hindi-text {
    font-size: 12px !important;
    margin-top: -6px !important;
    margin-bottom: 8px !important;
  }
  .suggest {
    margin-bottom: 8px;
    padding: 10px 12px;
    grid-template-columns: 32px minmax(0, 1fr) minmax(110px, auto);
    gap: 10px;
  }
  .suggest .ic {
    width: 32px;
    height: 32px;
    border-radius: 7px;
  }
  .suggest .ic .material-symbols-rounded {
    font-size: 22px;
  }
  .suggest .text strong {
    font-size: 14px;
  }
  .suggest .text small {
    font-size: 11px;
  }
  .suggest button {
    height: 38px;
    padding: 0 10px;
    font-size: 11px;
  }
  .devices {
    overflow: hidden;
  }
  .dev-alert {
    padding: 10px 24px;
  }
  .dev-grid {
    padding: 14px 24px;
    grid-auto-rows: minmax(170px, auto);
    gap: 12px;
  }
  .dev-card {
    min-height: 170px;
    padding: 14px;
    gap: 10px;
  }
  .dev-card .ic {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }
  .dev-card .ic .material-symbols-rounded {
    font-size: 28px;
  }
  .dev-card .name {
    font-size: 22px;
  }
  .dev-card .actions button {
    height: 40px;
  }
  .dev-scan {
    padding: 12px 24px 16px;
  }
  .scan-btn {
    height: 66px;
    font-size: 28px;
  }
}

/* ============================================================
   INVENTORY
   ============================================================ */
.inventory {
  flex: 1; background: var(--kfc-bone);
  padding: 18px 24px 90px;
  overflow-y: auto;
}
.inv-cat {
  margin-bottom: 24px;
}
.inv-cat-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.inv-cat-head .lbl-en {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--kfc-black);
}
.inv-cat-head .lbl-hi {
  font-family: var(--hi);
  font-weight: 600;
  font-size: 16px;
  color: var(--kfc-red);
}
.inv-cat-head .count-pill {
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background: white;
  border: 1px solid #e6dfd2;
}
.inv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.inv-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e6dfd2;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 3px 0 rgba(0,0,0,0.04);
}
.inv-card .photo { height: 90px; }
.inv-card .info { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.inv-card .name {
  font-family: var(--tile);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.4px;
  color: var(--kfc-black);
  line-height: 1.1;
}
.inv-card .name-hi {
  font-family: var(--hi);
  font-weight: 600;
  font-size: 13px;
  color: var(--kfc-red);
}
.inv-card .progress {
  margin-top: 4px;
  height: 10px;
  background: #f3ebde;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.inv-card .progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s var(--ease);
}
.inv-card .progress-fill.green { background: var(--state-ready); }
.inv-card .progress-fill.warn { background: var(--kfc-gold); }
.inv-card .progress-fill.red { background: var(--kfc-red); }
.inv-card .stock-row {
  display: flex; align-items: baseline; justify-content: space-between;
}
.inv-card .stock-row .num {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.5px;
}
.inv-card .stock-row .num small {
  font-size: 11px;
  color: #888;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--tile);
  font-weight: 700;
  margin-left: 4px;
}
.inv-card .stock-row .pill { font-size: 11px; padding: 0 8px; height: 22px; }
.inv-card .restock-btn {
  margin: 0 12px 12px;
  height: 44px;
  border-radius: 8px;
  background: var(--kfc-red);
  color: white;
  font-family: var(--tile);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 3px 0 var(--kfc-red-deep);
  transition: transform 0.12s var(--ease);
}
.inv-card .restock-btn:active { transform: scale(0.96); }
.inv-card .restock-btn.requested {
  background: white; color: var(--state-ready-deep);
  box-shadow: inset 0 0 0 2px var(--state-ready);
}

/* ============================================================
   SHIFT MANAGEMENT
   ============================================================ */
.shift {
  flex: 1; background: var(--kfc-bone);
  padding: 22px 26px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
}
.clock-card {
  background: var(--kfc-black);
  border-radius: 16px;
  padding: 26px;
  color: white;
  position: relative; overflow: hidden;
  height: fit-content;
  border: 1px solid #2a2a2a;
}
.clock-card::before {
  content: ''; position: absolute; right: -50px; top: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228,0,43,0.4) 0%, transparent 70%);
}
.clock-card .now {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 60px;
  letter-spacing: 2px;
  font-feature-settings: 'tnum';
  line-height: 1;
}
.clock-card .day {
  font-family: var(--tile);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--kfc-gold);
  margin-top: 6px;
}
.clock-card .actions {
  margin-top: 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.clock-btn {
  height: 88px;
  border-radius: 12px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 1.5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  transition: transform 0.14s var(--ease);
}
.clock-btn:active { transform: scale(0.97); }
.clock-btn.in { background: var(--state-ready); color: white; box-shadow: 0 5px 0 var(--state-ready-deep); }
.clock-btn.out { background: var(--kfc-red); color: white; box-shadow: 0 5px 0 var(--kfc-red-deep); }
.clock-btn small {
  font-family: var(--hi);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
}

.staff-card {
  background: white;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid #e6dfd2;
  box-shadow: 0 4px 0 rgba(0,0,0,0.04);
  color: var(--kfc-black);
}
.staff-card h3 {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  color: var(--kfc-black);
}
.staff-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  align-items: center;
  background: #fbf6ed;
  margin-bottom: 8px;
  border: 1px solid #f0e8da;
  color: var(--kfc-black);
}
.staff-row .av {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--kfc-red), var(--kfc-red-deep));
  color: white;
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.5px;
}
.staff-row .info .name {
  font-family: var(--tile);
  font-weight: 800;
  font-size: 18px;
  color: var(--kfc-black);
}
.staff-row .info .role {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #777;
  margin-top: 4px;
  font-weight: 700;
}
.staff-row .station {
  font-family: var(--tile);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--kfc-black);
  color: white;
}

/* ============================================================
   WASTE LOG
   ============================================================ */
.waste {
  flex: 1; background: var(--kfc-bone);
  padding: 22px 26px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-content: start;
}
.waste-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-content: start;
}
.waste-tile {
  background: white;
  border-radius: 12px;
  border: 1px solid #e6dfd2;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.14s var(--ease);
  box-shadow: 0 3px 0 rgba(0,0,0,0.04);
}
.waste-tile:hover { transform: translateY(-2px); }
.waste-tile.selected {
  border-color: var(--kfc-red);
  box-shadow: 0 3px 0 var(--kfc-red-deep), 0 0 0 3px rgba(228,0,43,0.15);
}
.waste-tile .photo { height: 80px; }
.waste-tile .label {
  padding: 8px 10px;
  font-family: var(--tile);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-align: center;
  line-height: 1.1;
}
.waste-tile .label small {
  display: block;
  font-family: var(--hi);
  font-weight: 600;
  font-size: 12px;
  color: var(--kfc-red);
  margin-top: 2px;
}

.waste-panel {
  background: white;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #e6dfd2;
  box-shadow: 0 4px 0 rgba(0,0,0,0.05);
  position: sticky; top: 0;
  height: fit-content;
}
.waste-panel h3 {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--kfc-black);
}
.waste-panel .selected-name {
  font-family: var(--tile);
  font-weight: 700;
  font-size: 20px;
  margin-top: 12px;
  padding: 14px;
  background: var(--kfc-bone);
  border-radius: 10px;
  text-align: center;
  border: 1px dashed #c8bca0;
}
.qty-stepper {
  display: grid; grid-template-columns: 80px 1fr 80px;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
}
.qty-stepper button {
  height: 80px;
  border-radius: 12px;
  background: var(--kfc-black);
  color: white;
  display: grid; place-items: center;
  transition: transform 0.12s var(--ease);
  box-shadow: 0 4px 0 #000;
}
.qty-stepper button:active { transform: translateY(2px); box-shadow: 0 2px 0 #000; }
.qty-stepper button .material-symbols-rounded { font-size: 40px; }
.qty-stepper .num {
  font-family: var(--display);
  font-size: 64px;
  text-align: center;
  letter-spacing: 1px;
  line-height: 1;
}
.qty-stepper .num small { display: block; font-size: 14px; letter-spacing: 2px; color: #888; font-family: var(--tile); margin-top: 4px; }

.reason-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.reason-row .reason {
  height: 60px;
  border-radius: 10px;
  border: 2px solid #e6dfd2;
  background: white;
  font-family: var(--tile);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--kfc-black);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
}
.reason-row .reason small { font-family: var(--hi); font-weight: 500; font-size: 11px; color: var(--kfc-red); letter-spacing: 0; text-transform: none; }
.reason-row .reason.active { background: var(--kfc-black); color: white; border-color: var(--kfc-black); }
.reason-row .reason.active small { color: var(--kfc-gold); }

.log-btn {
  width: 100%;
  height: 80px;
  margin-top: 16px;
  border-radius: 12px;
  background: var(--kfc-red);
  color: white;
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 1.5px;
  box-shadow: 0 5px 0 var(--kfc-red-deep);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: transform 0.12s var(--ease);
}
.log-btn:disabled { background: #999; box-shadow: 0 5px 0 #666; cursor: not-allowed; }
.log-btn:not(:disabled):active { transform: translateY(2px); box-shadow: 0 3px 0 var(--kfc-red-deep); }

/* ============================================================
   TEMPERATURE LOG
   ============================================================ */
.temp {
  flex: 1; background: var(--kfc-bone);
  padding: 22px 26px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-content: start;
}
.temp-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e6dfd2;
  box-shadow: 0 4px 0 rgba(0,0,0,0.04);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  color: var(--kfc-black);
}
.temp-card.alert { border-color: var(--kfc-red); }
.temp-card .name {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: 1.5px;
  line-height: 1;
}
.temp-card .name-hi { font-family: var(--hi); font-weight: 600; font-size: 16px; color: var(--kfc-red); margin-top: 4px; }
.temp-card .range { font-size: 13px; color: #888; margin-top: 8px; font-family: var(--mono); letter-spacing: 1px; }
.temp-card .reading {
  font-family: var(--display);
  font-size: 88px;
  letter-spacing: 1px;
  line-height: 0.9;
  color: var(--state-ready-deep);
}
.temp-card.alert .reading { color: var(--kfc-red); }
.temp-card .reading small { font-size: 22px; color: #888; letter-spacing: 1px; }
.temp-card .actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 6px; }
.temp-card .actions button {
  height: 56px;
  border-radius: 10px;
  background: var(--kfc-bone);
  border: 1px solid #e6dfd2;
  color: var(--kfc-black);
  font-family: var(--tile);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.temp-card .actions button.log { background: var(--kfc-black); color: white; border-color: var(--kfc-black); }

/* ============================================================
   KDS WALL DISPLAY
   ============================================================ */
.kds {
  flex: 1; background: #050505;
  padding: 18px 22px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-content: start;
}
.kds-card {
  background: var(--kfc-charcoal);
  border-radius: 12px;
  padding: 14px 16px;
  border-left: 8px solid var(--state-ready);
  color: white;
  box-shadow: 0 4px 0 rgba(0,0,0,0.4);
}
.kds-card.warn { border-left-color: var(--kfc-gold); }
.kds-card.urgent {
  border-left-color: var(--kfc-red);
  background: linear-gradient(135deg, var(--kfc-charcoal), #2a0009);
  animation: kdsBlink 1.4s ease-in-out infinite;
}
@keyframes kdsBlink {
  0%, 100% { box-shadow: 0 4px 0 rgba(0,0,0,0.4); }
  50% { box-shadow: 0 4px 0 rgba(0,0,0,0.4), 0 0 0 4px rgba(228,0,43,0.4); }
}
.kds-card .head { display: flex; align-items: baseline; justify-content: space-between; }
.kds-card .head .num { font-family: var(--display); font-size: 32px; letter-spacing: 1.5px; }
.kds-card .head .clock {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 22px;
  font-feature-settings: 'tnum';
  color: var(--kfc-gold);
}
.kds-card.urgent .head .clock { color: white; }
.kds-card ul { list-style: none; margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,0.18); display: flex; flex-direction: column; gap: 4px; }
.kds-card ul li { font-family: var(--tile); font-weight: 600; font-size: 16px; letter-spacing: 0.3px; }
.kds-card ul li strong { color: var(--kfc-gold); margin-right: 8px; font-family: var(--mono); font-weight: 700; }
.kds-card .src {
  margin-top: 8px;
  display: inline-block;
  font-family: var(--tile);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  text-transform: uppercase;
}
