﻿body { background: var(--md-canvas); color: var(--md-ink); }
.kds-shell { min-height: 100dvh; padding-bottom: 72px; }
.kds-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px clamp(14px, 3vw, 38px);
  color: #f8faf7; background: #000000;
  box-shadow: 0 4px 16px rgba(19, 42, 37, .12);
}
.kds-brand { display: flex; align-items: center; gap: 11px; min-width: 0; color: inherit; }
.kds-mark { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid rgba(234,245,232,.28); border-radius: 14px; background: rgba(255,255,255,.08); font-size: 22px; }
.kds-brand__name { display: block; font-size: 15px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.kds-brand__hint { display: inline-block; margin-top: 4px; padding: 2px 7px; border: 1px dashed #d5ab7d; border-radius: 999px; color: #f0d0a8; font-size: 10px; line-height: 1.2; }
.kds-module { display: flex; align-items: center; gap: 9px; margin-left: auto; color: #d8e8df; font-size: 13px; font-weight: 700; }
.kds-module__dot { width: 8px; height: 8px; border-radius: 50%; background: #72d5a3; box-shadow: 0 0 0 4px rgba(114,213,163,.13); }
.kds-info-btn { color: var(--md-ink); }
.kds-nav { display: flex; gap: 5px; overflow-x: auto; padding: 9px clamp(14px, 3vw, 38px); background: var(--md-surface); border-bottom: 1px solid var(--md-border); scrollbar-width: none; }
.kds-nav::-webkit-scrollbar { display: none; }
.kds-nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 14px; }
.kds-main { width: min(1440px, 100%); margin: 0 auto; padding: 25px clamp(14px, 3vw, 38px) 40px; }
.kds-crumb { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--md-muted); font-size: 12px; }
.kds-hero { align-items: flex-end; margin-bottom: 20px; }
.kds-eyebrow { margin: 0 0 6px; }
.kds-hero h1 { margin: 0; color: var(--md-ink); font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; }
.kds-hero p { margin: 7px 0 0; color: var(--md-muted); font-size: 14px; }
.kds-hero__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.kds-card__title { margin: 0; font-size: 16px; font-weight: 800; }
.kds-board { min-width: 0; }
.kds-column { min-width: 0; overflow: hidden; }
.kds-column__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--md-muted); }
.kds-column[data-state="preparazione"] .kds-column__dot { background: var(--md-warning); }
.kds-column[data-state="pronte"] .kds-column__dot { background: var(--md-success); }
.kds-count { min-width: 25px; justify-content: center; font-variant-numeric: tabular-nums; }
.kds-column__list { display: grid; gap: 10px; min-height: 110px; padding: 10px; }
.kds-qty { display: inline-flex; min-width: 28px; justify-content: center; padding-inline: 6px; border-radius: 5px; font-size: 11px; font-variant-numeric: tabular-nums; }
.kds-qty::before { display: none; }
.kds-empty { margin: 0; }
.kds-detail-grid { grid-template-columns: minmax(0,1.1fr) minmax(270px,.9fr); align-items: start; }
.kds-detail-lines { display: grid; gap: 9px; }
.kds-detail-line { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 9px 10px; border: 1px solid var(--md-border); border-radius: 12px; background: var(--md-surface); }
.kds-detail-line__name { flex: 1; font-size: 14px; font-weight: 750; }
.kds-detail-line.is-ready .kds-detail-line__name { color: #71807b; text-decoration: line-through; }
.kds-meta-list { display: grid; gap: 10px; margin: 0; }
.kds-meta-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--md-border); font-size: 13px; }
.kds-meta-row:last-child { padding-bottom: 0; border: 0; }
.kds-meta-row dt { color: var(--md-muted); }
.kds-meta-row dd { margin: 0; font-weight: 750; text-align: right; }
.kds-summary-grid { margin-bottom: 16px; }
.kds-summary { display: grid; gap: 5px; }
.kds-history { display: grid; gap: 9px; }
.kds-history__row { display: grid; grid-template-columns: 90px minmax(0,1fr) auto auto; align-items: center; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--md-border); border-radius: 8px; background: #fff; }
.kds-history__time { color: var(--md-muted); font-size: 12px; font-weight: 750; }
.kds-history__name { font-size: 13px; font-weight: 800; }
.kds-history__sub { margin-top: 2px; }
.kds-channel { display: inline-flex; align-items: center; }
.kds-demo-note { width: 100%; max-width: none; margin-top: 16px; }
.kds-mobile-select { display: none; }
@media (max-width: 850px) {
  .kds-board { grid-template-columns: 1fr; }
  .kds-column__list { min-height: auto; }
  .kds-mobile-select { display: grid; gap: 0; margin-bottom: 11px; }
  .kds-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kds-top { gap: 8px; padding: 9px 12px; }
  .kds-mark { width: 36px; height: 36px; border-radius: 12px; font-size: 18px; }
  .kds-brand { gap: 8px; }
  .kds-brand__name { font-size: 13px; }
  .kds-brand__hint { margin-top: 3px; font-size: 9px; }
  .kds-module { gap: 6px; font-size: 11px; }
  .kds-nav { padding: 7px 10px; }
.kds-nav a { padding-inline: 10px; }
  .kds-main { padding: 18px 12px 28px; }
  .kds-hero { display: block; }
  .kds-hero__actions { margin-top: 13px; }
  .kds-summary-grid { grid-template-columns: 1fr; gap: 8px; }
  .kds-history__row { grid-template-columns: 58px minmax(0,1fr) auto; gap: 8px; padding: 14px; }
  .kds-history__row .kds-channel { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* Touch targets consistenti sulle viste cucina, anche su smartphone e tablet. */
.kds-nav a,.kds-mobile-select button { min-height: 44px; }

@media (max-width: 600px) { .kds-module { display: none; } .kds-brand__name { white-space: normal; } }

/* Coda cucina: meno riepiloghi, piÃ¹ spazio al lavoro e all'ordine selezionato. */
.kds-main { padding-top: 17px; }
.kds-hero { align-items: center; margin-bottom: 15px; }
.kds-hero h1 { font-size: clamp(25px, 2.6vw, 32px); letter-spacing: -.035em; }
.kds-hero p { margin-top: 5px; font-size: 14px; }
.kds-work-context { flex: none; max-width: 310px; padding: 9px 13px; border: 1px solid var(--md-border); border-left: 3px solid var(--md-focus); border-radius: 8px; background: var(--md-surface); }
.kds-work-context[hidden] { display: none; }
.kds-work-context span, .kds-work-context strong { display: block; }
.kds-work-context span { color: var(--md-muted); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.kds-work-context strong { margin-top: 3px; color: var(--md-ink); font-size: 14px; line-height: 1.35; }
.kds-board { gap: 12px; }
.kds-column__list { gap: 8px; padding: 9px; }
.kds-demo-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.kds-demo-note strong { color: var(--md-ink); }
@media (max-width: 850px) {
  .kds-hero { margin-bottom: 12px; }
}
@media (max-width: 600px) {
  .kds-main { padding-top: 15px; }
  .kds-hero { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; }
  .kds-work-context { max-width: 100%; }
  .kds-demo-note { align-items: flex-start; flex-direction: column; gap: 7px; }
}
