/* KDS 1920×1080 — 디자인 시안(NeCALL 통합 디자인 · KDS 보드) 그대로 */
.kds { position: absolute; inset: 0; display: flex; flex-direction: column; }
.k-hd { height: 96px; padding: 0 40px; display: flex; align-items: center; gap: 28px; background: #fff; border-bottom: 2px solid var(--line); flex: none; }
.k-hd .title { font-size: 28px; font-weight: 900; }
.k-hd .right { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 18px; }
.k-hd .clock { font-size: 42px; font-weight: 900; color: var(--blue); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.k-hd .ib { width: 56px; height: 56px; border-radius: 10px; border: 2px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; color: #444; }
.k-hd .ib .mi { font-size: 30px; }
.k-hd .conn .mi { font-size: 26px; }

.k-tabs { height: 96px; margin: 18px 40px 0; display: flex; border-radius: 6px; overflow: hidden; flex: none; }
.k-tabs button { flex: 1; min-width: 0; background: var(--blue); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 19px; border-left: 2px solid #0f3a7c; transition: background .15s; }
.k-tabs button:first-child { border-left: 0; }
.k-tabs button .mi { font-size: 28px; }
.k-tabs button b { margin-left: 4px; }
.k-tabs button.on { background: #fff; color: #1b2b4a; border: 2px solid var(--blue); border-bottom: 6px solid var(--red); }
.k-tabs button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 6px; }

.k-grid { flex: 1; margin: 18px 40px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; min-height: 0; }
.k-grid.enter { animation: enter .22s; }
.tk { background: #fff; border: 2px solid var(--line-2); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.tk.new { animation: pop .25s, flash 1s 3; }
.tk .th { height: 58px; padding: 0 16px; display: flex; align-items: center; color: #fff; background: var(--blue); flex: none; transition: background .3s; }
.tk.warn .th { background: var(--orange); } .tk.late .th { background: var(--red); }
.tk.ready .th { background: var(--ok); }
.tk .th b { font-size: 30px; letter-spacing: -1px; }
.tk .th .el { margin-left: auto; font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.tk .chips { display: flex; gap: 8px; padding: 10px 14px 0; font-size: 14px; font-weight: 700; flex-wrap: wrap; }
.tk .chips span { border-radius: 14px; padding: 2px 10px; }
.chip-src { background: #2b2b2b; color: #fff; } .chip-tbl { background: var(--blue-3); color: var(--blue); } .chip-st { background: #fdeaea; color: var(--red-2); }
.tk ul { flex: 1; list-style: none; margin: 0; padding: 10px 16px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.tk li { display: flex; flex-direction: column; }
.tk li .ln { display: flex; gap: 10px; font-size: 21px; font-weight: 700; line-height: 1.25; }
.tk li .q { color: var(--blue-2); min-width: 32px; font-variant-numeric: tabular-nums; }
.tk li .c { font-size: 15px; color: var(--muted); padding-left: 42px; }
.tk li.done .n { text-decoration: line-through; color: #9a9a9a; }
.tk li.dim { opacity: .35; }
.tk li.cooking .n::after { content: '조리중'; margin-left: 8px; font-size: 13px; color: #fff; background: var(--blue-2); border-radius: 10px; padding: 1px 8px; vertical-align: 3px; }
.tk .more { font-size: 15px; color: var(--muted); padding: 0 16px 8px; }
.tk .act { height: 66px; border-radius: 0; font-size: 23px; flex: none; }
.tk .act.start { background: var(--dark); color: #fff; }
.tk .act.done { background: var(--red); color: #fff; }
.tk .act.serve { background: var(--blue); color: #fff; }
.tk .act .mi { font-size: 28px; }
.tk.hist { opacity: .9; } .tk.hist .th { background: #8a8f98; }
.empty { grid-column: 1 / -1; grid-row: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); font-size: 26px; font-weight: 700; }
.empty .mi { font-size: 96px; color: #c4c4c4; }

.k-ft { height: 120px; margin-top: 18px; background: #e3e3e3; border-top: 2px solid #cfcfcf; display: flex; align-items: stretch; flex: none; }
.k-ft .stats { flex: 1; display: flex; align-items: center; gap: 16px; padding: 0 40px; }
.k-ft .stat { padding: 8px 26px; min-width: 130px; }
.k-ft .stat span { font-size: 15px; } .k-ft .stat b { font-size: 32px; }
.k-ft .stat b.r { color: var(--red); } .k-ft .stat b.bl { color: var(--blue-2); } .k-ft .stat b.g { color: var(--ok); }
.k-ft .pg { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; color: #444; }
.k-ft .pg button { width: 110px; height: 72px; background: var(--blue); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.k-ft .pg button:disabled { opacity: .35; }
.k-ft .pg .mi { font-size: 36px; }
.k-ft .hist { width: 340px; background: var(--dark); color: #fff; font-size: 28px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 12px; }
.k-ft .hist.on { background: var(--red); }
.k-ft .hist .mi { font-size: 34px; }

.menu { width: 520px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.menu h3 { margin: 0 0 6px; font-size: 26px; }
.menu p { margin: 0; color: var(--muted); font-size: 17px; }
.menu .btn { height: 66px; font-size: 22px; }
