/* ==========================================================================
   D14 테이블원 — 원형: 3단 분할(아이콘 레일 · 테이블 맵 중심 본문 · 다크 주문 패널)
   타이포: Do Hyeon(제목·브랜드) + Pretendard(본문·수치)
   컬러: 웜 오프화이트 + 차콜 + 토마토 레드, 둥근 16px 카드
   ========================================================================== */
:root {
  --ailo-bg: #f3efe9;
  --ailo-fg: #1f2125;
  --ailo-muted: #686b71;
  --ailo-line: rgba(31, 33, 37, .1);
  --ailo-accent: #d63d27;

  --d14-char: #23262b;
  --d14-char-2: #2e3238;
  --d14-char-3: #3a3f46;
  --d14-card: #ffffff;
  --d14-cream: #faf7f2;
  --d14-tomato: #e0452d;
  --d14-tomato-soft: #fde6e1;
  /* 차트 시리즈 (라이트 표면 검증 통과: 토마토·블루·옐로) */
  --d14-s1: #e0452d;
  --d14-s2: #2a78d6;
  --d14-s3: #eda100;
  --d14-cmp: #50545b;
  --d14-grid: #ece8e2;
  --d14-axis: #cfc9c0;
  --d14-up: #0e7a2c;
  --d14-down: #c2321e;
  --d14-head: "Do Hyeon", var(--ailo-font);
  --d14-r: 16px;
  --d14-rail: 92px;
  --d14-orders: 360px;
}

body { background: var(--ailo-bg); font-size: 14px; line-height: 1.5; }

/* ===== Layout ===== */
.pos { display: grid; grid-template-columns: var(--d14-rail) minmax(0, 1fr) var(--d14-orders); grid-template-rows: 1fr auto; min-height: 100vh; }
.rail { grid-column: 1; grid-row: 1 / span 2; }
.center { grid-column: 2; grid-row: 1; }
.foot { grid-column: 2; grid-row: 2; }
.orders { grid-column: 3; grid-row: 1 / span 2; }
.center { min-width: 0; display: flex; flex-direction: column; }

/* ===== Rail ===== */
.rail {
  position: sticky; top: 0; height: 100vh; background: var(--d14-char); color: #c9ccd1;
  display: flex; flex-direction: column; align-items: center; padding: 18px 10px; gap: 14px; z-index: 60; overflow-y: auto;
}
.rail__logo { width: 52px; height: 52px; border-radius: 16px; background: var(--d14-tomato); display: grid; place-items: center; color: #fff; font-family: var(--d14-head); font-size: 24px; box-shadow: 0 6px 18px rgba(224, 69, 45, .4); flex: none; }
.rail__logo:hover { color: #fff; }
.rail__close { display: none; }
.rail__nav { display: grid; gap: 4px; width: 100%; margin-top: 6px; }
.rail__nav a, .rail__set {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 14px;
  font-size: 11px; font-weight: 600; color: #a9adb3; text-align: center; transition: background .15s, color .15s;
}
.rail__nav a i, .rail__set i { font-size: 18px; }
.rail__nav a:hover, .rail__set:hover { background: var(--d14-char-2); color: #fff; }
.rail__nav a.is-active { background: #fff; color: var(--d14-char); }
.rail__nav a.is-active i { color: var(--d14-tomato); }
.rail__nav em { position: absolute; top: 6px; right: 12px; font-style: normal; font-size: 10px; min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; background: var(--d14-tomato); color: #fff; }
.rail__set { margin-top: auto; width: 100%; }
.sb-dim { display: none; }

/* ===== Top ===== */
.top { display: flex; align-items: center; gap: 14px; padding: 16px clamp(16px, 2vw, 28px); }
.top__burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--d14-char); color: #fff; flex: none; }
.top__title { margin-right: auto; min-width: 0; }
.crumb { display: flex; gap: 6px; font-size: 12px; color: var(--ailo-muted); }
.crumb li + li::before { content: "›"; margin-right: 6px; }
.crumb a:hover { color: var(--ailo-accent); }
.top h1 { font-family: var(--d14-head); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.open-pill { font-family: var(--ailo-font); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: #e2f3e6; color: var(--d14-up); white-space: nowrap; }
.open-pill i { font-size: 7px; vertical-align: middle; margin-right: 2px; }
.top__search { position: relative; width: min(280px, 24vw); }
.top__search i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--ailo-muted); font-size: 13px; }
.top__search input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--ailo-line); background: #fff; padding: 0 14px 0 38px; font-size: 13px; }
.top__search input:focus { outline: none; border-color: var(--ailo-accent); box-shadow: 0 0 0 3px rgba(214, 61, 39, .15); }
.ic-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--ailo-line); background: #fff; }
.ic-btn:hover { border-color: var(--d14-axis); }
.dot-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 9px; background: var(--d14-tomato); color: #fff; font-size: 11px; font-weight: 700; border: 2px solid var(--ailo-bg); box-sizing: content-box; }
.top__noti { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(330px, calc(100vw - 24px)); background: #fff; border-radius: var(--d14-r); box-shadow: 0 20px 50px rgba(31, 33, 37, .18); border: 1px solid var(--ailo-line); z-index: 80; padding: 8px; }
.pop__hd { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-weight: 700; }
.pop__clear { border: 0; background: none; font-size: 12px; color: var(--ailo-accent); font-weight: 600; }
.pop li { display: flex; gap: 10px; padding: 10px; border-radius: 12px; }
.pop li:hover { background: var(--d14-cream); }
.pop li.is-read { opacity: .5; }
.pop b { display: block; font-size: 13px; }
.pop small { font-size: 12px; color: var(--ailo-muted); }
.pi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #efebe5; color: var(--d14-char); flex: none; font-size: 13px; }
.pi--bill { background: var(--d14-char); color: #fff; }
.pi--late { background: var(--d14-tomato-soft); color: var(--d14-down); }
.pi--rsv { background: #e3eefc; color: #1d5fb0; }
.top__me { display: flex; align-items: center; gap: 10px; }
.av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--d14-char); color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.top__me-t { display: grid; line-height: 1.25; }
.top__me-t b { font-size: 13px; }
.top__me-t small { font-size: 11px; color: var(--ailo-muted); }

/* ===== Body ===== */
.body { padding: 0 clamp(16px, 2vw, 28px) 24px; display: grid; gap: 16px; align-content: start; flex: 1; }
.period { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: #e8e3dc; border-radius: 14px; }
.tabs button { border: 0; background: transparent; padding: 7px 18px; border-radius: 10px; font-weight: 700; font-size: 13px; color: #55585e; }
.tabs button:hover { color: var(--ailo-fg); }
.tabs button.is-on { background: var(--d14-char); color: #fff; }
.period__txt { font-size: 13px; color: var(--ailo-muted); }
.btn-line { margin-left: auto; height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--d14-axis); background: transparent; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; }
.btn-line:hover { background: #fff; }
.btn-tomato { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--ailo-accent); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; }
.btn-tomato:hover { background: #b9321f; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi { position: relative; background: var(--d14-card); border-radius: var(--d14-r); padding: 16px 16px 12px; display: grid; gap: 2px; overflow: hidden; box-shadow: 0 1px 0 rgba(31, 33, 37, .04); }
.kpi--main { background: var(--d14-char); color: #fff; }
.kpi__l { font-size: 12px; font-weight: 600; color: var(--ailo-muted); display: flex; align-items: center; gap: 6px; }
.kpi--main .kpi__l { color: #b8bcc2; }
.kpi__l i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: #f2eee8; color: var(--d14-tomato); font-size: 11px; }
.kpi--main .kpi__l i { background: var(--d14-tomato); color: #fff; }
.kpi__v { font-size: clamp(22px, 1.9vw, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__v small { font-size: 13px; font-weight: 600; color: var(--ailo-muted); margin-left: 3px; letter-spacing: 0; }
.kpi--main .kpi__v small { color: #b8bcc2; }
.kpi__d { font-size: 12px; line-height: 1.4; }
.kpi__chg { font-weight: 700; white-space: nowrap; }
.kpi__vs { color: var(--ailo-muted); white-space: nowrap; }
.kpi--main .kpi__vs { color: #a7abb1; }
.kpi__d.is-up .kpi__chg { color: var(--d14-up); }
.kpi__d.is-down .kpi__chg { color: var(--d14-down); }
.kpi__d.is-flat .kpi__chg { color: #55585e; }
.kpi--main .kpi__d.is-up .kpi__chg { color: #6ee08a; }
.kpi__sp { width: 100%; height: 30px; margin-top: 6px; }
.sp-l { stroke: #9a9ea5; }
.sp-a { fill: rgba(154, 158, 165, .12); }
.sp-d { fill: var(--d14-tomato); stroke: #fff; stroke-width: 2; }
.kpi--main .sp-l { stroke: #8c9198; } .kpi--main .sp-a { fill: rgba(255, 255, 255, .06); } .kpi--main .sp-d { stroke: var(--d14-char); }

/* Cards */
.card { background: var(--d14-card); border-radius: var(--d14-r); padding: 18px 20px 20px; min-width: 0; }
.card__hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card__hd--wrap { flex-wrap: wrap; }
.card h2 { font-family: var(--d14-head); font-weight: 400; font-size: 21px; line-height: 1.25; display: flex; align-items: center; gap: 10px; }
.card__sub { font-size: 12px; color: var(--ailo-muted); margin-top: 2px; }
.live { font-family: var(--ailo-font); font-size: 11px; font-weight: 700; color: var(--d14-down); background: var(--d14-tomato-soft); padding: 3px 8px; border-radius: 99px; }
.live i { font-size: 6px; vertical-align: middle; animation: d14-blink 1.4s infinite; }
@keyframes d14-blink { 50% { opacity: .2; } }

/* ===== Table map ===== */
.zone { display: inline-flex; border: 1px solid var(--ailo-line); border-radius: 12px; overflow: hidden; flex: none; }
.zone button { border: 0; background: #fff; padding: 6px 12px; font-size: 12px; font-weight: 700; color: #55585e; }
.zone button + button { border-left: 1px solid var(--ailo-line); }
.zone button.is-on { background: var(--d14-tomato-soft); color: var(--d14-down); }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ailo-muted); margin-bottom: 12px; }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.ms { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid; display: inline-block; }
.ms--empty { border-style: dashed; border-color: #a8a29a; background: #fff; }
.ms--seated { border-color: #c98500; background: #fff1d2; }
.ms--dining { border-color: var(--d14-tomato); background: var(--d14-tomato-soft); }
.ms--bill { border-color: var(--d14-char); background: var(--d14-char); }
.ms--rsv { border-color: #2a78d6; background: #e3eefc; }
.ms--clean { border-color: #a8a29a; background: repeating-linear-gradient(135deg, #e7e2da 0 3px, #fff 3px 6px); }

.map-scroll { overflow-x: auto; border-radius: 14px; }
.floor {
  position: relative; min-width: 700px; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); grid-template-rows: repeat(9, 50px); gap: 8px;
  padding: 14px; border-radius: 14px; background-color: var(--d14-cream);
  background-image: linear-gradient(rgba(31, 33, 37, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 33, 37, .045) 1px, transparent 1px);
  background-size: 24px 24px; border: 2px solid #e4ded5;
}
.fx { border-radius: 12px; font-size: 12px; font-weight: 700; color: #8a857e; padding: 8px 10px; display: flex; align-items: flex-start; gap: 6px; }
.fx--kitchen { grid-column: 1 / span 6; grid-row: 1 / span 2; background: repeating-linear-gradient(135deg, #ebe6de 0 8px, #e5dfd6 8px 16px); align-items: center; justify-content: center; font-size: 14px; color: #6f6a63; }
.fx--bar { grid-column: 7 / span 4; grid-row: 1; background: #3a3f46; color: #e3e5e8; align-items: center; justify-content: center; }
.fx--door { grid-column: 7 / span 4; grid-row: 9; border: 2px dashed #c9c2b8; align-items: center; justify-content: center; }
.fx--terrace { grid-column: 11 / span 4; grid-row: 1 / span 4; background: rgba(27, 175, 122, .08); border: 1.5px solid rgba(27, 175, 122, .3); margin: -6px; padding-top: 0; align-items: flex-end; justify-content: flex-end; color: #3c7d63; }
.fx--room { grid-column: 11 / span 4; grid-row: 5 / span 5; border: 1.5px solid #d3ccc2; background: rgba(255, 255, 255, .6); margin: -6px; color: #8a857e; }

.tb {
  position: relative; z-index: 1; border: 2px solid; border-radius: 12px; padding: 6px 8px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 1px; text-align: center; line-height: 1.2; transition: transform .15s var(--ailo-ease), box-shadow .15s, opacity .2s; min-width: 0; overflow: hidden;
}
.tb:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(31, 33, 37, .14); }
.tb--round { border-radius: 50%; margin: 4px; }
.tb--long { border-radius: 16px; margin: 14px 4px 0; }
.tb--stool { border-radius: 50%; margin: 6px; padding: 0; }
.tb__no { font-weight: 800; font-size: 14px; }
.tb__st { font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tb__st i { font-size: 9px; }
.tb__meta { font-size: 10.5px; opacity: .8; white-space: nowrap; }
.tb--round .tb__meta { display: none; }
.tb.is-empty { border-style: dashed; border-color: #b4aea5; background: #fff; color: #55585e; }
.tb.is-seated { border-color: #c98500; background: #fff1d2; color: #6b4a00; }
.tb.is-dining { border-color: var(--d14-tomato); background: var(--d14-tomato-soft); color: #8f2414; }
.tb.is-bill { border-color: var(--d14-char); background: var(--d14-char); color: #fff; }
.tb.is-bill::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 0 0 rgba(35, 38, 43, .5); animation: d14-ring 1.8s infinite; }
@keyframes d14-ring { 70% { box-shadow: 0 0 0 8px rgba(35, 38, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(35, 38, 43, 0); } }
.tb.is-rsv { border-color: #2a78d6; background: #e3eefc; color: #164a8a; }
.tb.is-clean { border-color: #b4aea5; background: repeating-linear-gradient(135deg, #ece7df 0 5px, #fff 5px 10px); color: #55585e; }
.tb.is-sel { outline: 3px solid var(--d14-tomato); outline-offset: 3px; }
.tb.is-bill.is-sel { outline-color: var(--d14-tomato); }
.tb.is-dim { opacity: .25; }

/* ===== Charts ===== */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ch-hour { grid-column: 1 / -1; }
.cv { position: relative; width: 100%; }
.cv--hour { height: 250px; }
.cv--menu { height: 250px; }
.lgd { display: flex; gap: 14px; font-size: 12px; color: var(--ailo-muted); flex-wrap: wrap; justify-content: flex-end; }
.lgd li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.lgd__bar { width: 10px; height: 10px; border-radius: 3px; background: var(--d14-s1); }
.lgd__line { width: 16px; height: 2px; background: var(--d14-cmp); border-radius: 2px; }

.mix { display: flex; gap: 2px; height: 28px; margin: 6px 0 14px; }
.mix__seg { display: flex; align-items: center; padding-left: 10px; font-size: 12px; font-weight: 700; border-radius: 4px; min-width: 0; white-space: nowrap; transition: flex .4s var(--ailo-ease); }
.mix-lgd { display: grid; gap: 8px; }
.mix-lgd li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.mix-lgd i { width: 12px; height: 12px; border-radius: 3px; }
.mix-lgd b { font-variant-numeric: tabular-nums; }
.mix-stat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--ailo-line); }
.mix-stat div { background: var(--d14-cream); border-radius: 12px; padding: 10px 12px; }
.mix-stat dt { font-size: 11px; color: var(--ailo-muted); font-weight: 600; }
.mix-stat dd { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }

/* ===== Reservations ===== */
.lower { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rv__tools { display: flex; gap: 8px; flex-wrap: wrap; }
.sbox { position: relative; }
.sbox i { position: absolute; left: 12px; top: 50%; translate: 0 -50%; font-size: 12px; color: var(--ailo-muted); }
.sbox input { height: 38px; width: 220px; max-width: 100%; padding: 0 12px 0 34px; border-radius: 12px; border: 1px solid var(--ailo-line); background: var(--d14-cream); font-size: 13px; }
.sbox input:focus { outline: none; border-color: var(--ailo-accent); background: #fff; }
.tscroll { overflow-x: auto; margin-inline: -20px; padding-inline: 20px; }
.tbl { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th { padding: 0; background: var(--d14-cream); font-size: 12px; color: var(--ailo-muted); text-align: left; white-space: nowrap; }
.tbl th:first-child { border-radius: 10px 0 0 10px; } .tbl th:last-child { border-radius: 0 10px 10px 0; }
.tbl th button { border: 0; background: none; width: 100%; text-align: inherit; padding: 10px 12px; font-weight: 700; color: inherit; display: flex; align-items: center; gap: 6px; }
.tbl th.num button { justify-content: flex-end; }
.tbl th button::after { content: "\f0dc"; font: var(--fa-font-solid); font-size: 10px; opacity: .4; }
.tbl th[aria-sort="ascending"] button::after { content: "\f0de"; opacity: 1; color: var(--ailo-accent); }
.tbl th[aria-sort="descending"] button::after { content: "\f0dd"; opacity: 1; color: var(--ailo-accent); }
.tbl th button:hover { color: var(--ailo-fg); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--ailo-line); white-space: nowrap; }
.tbl tbody tr:hover td { background: #fcfaf7; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.t-time { font-weight: 800; font-variant-numeric: tabular-nums; }
.t-tag { display: inline-block; padding: 2px 8px; border-radius: 8px; background: #f0ece6; font-weight: 700; font-size: 12px; }
.t-memo { color: var(--ailo-muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.t-empty { text-align: center; color: var(--ailo-muted); padding: 28px !important; }
.rs { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.rs i { font-size: 10px; }
.rs--wait { background: #e3eefc; color: #164a8a; }
.rs--seated { background: var(--d14-tomato-soft); color: #8f2414; }
.rs--done { background: #e2f3e6; color: #0e6b27; }
.rs--noshow { background: var(--d14-char); color: #fff; }
.rs--cancel { background: #efebe5; color: #5d6066; text-decoration: line-through; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.pager p { font-size: 12px; color: var(--ailo-muted); }
.pager ul { display: flex; gap: 6px; }
.pager button { min-width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ailo-line); background: #fff; font-weight: 700; font-size: 13px; }
.pager button:hover:not(:disabled) { border-color: var(--d14-axis); }
.pager button.is-on { background: var(--d14-char); color: #fff; border-color: var(--d14-char); }
.pager button:disabled { opacity: .35; cursor: not-allowed; }

/* Activity */
.feed { display: grid; }
.feed li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--ailo-line); }
.feed li:last-child { border-bottom: 0; }
.feed b { display: block; font-size: 13px; font-weight: 700; }
.feed b em { font-style: normal; color: var(--d14-down); }
.feed small { font-size: 12px; color: var(--ailo-muted); }
.feed time { font-size: 12px; color: var(--ailo-muted); font-variant-numeric: tabular-nums; }
.fi { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: #f0ece6; color: #55585e; font-size: 13px; }
.fi--pay { background: #e2f3e6; color: #0e6b27; }
.fi--kit { background: var(--d14-tomato-soft); color: #b0301c; }
.fi--rsv { background: #e3eefc; color: #1d5fb0; }
.fi--dlv { background: #fff1d2; color: #7a5600; }
.fi--warn { background: var(--d14-char); color: #fff; }

.foot { padding: 6px clamp(16px, 2vw, 28px) 22px; font-size: 12px; color: var(--ailo-muted); min-width: 0; }
.map-hint { display: none; font-size: 12px; color: var(--ailo-muted); margin: -4px 0 8px; }

/* ===== Orders panel ===== */
.orders { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--d14-char); color: #e9eaec; padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.sel { background: var(--d14-char-2); border-radius: var(--d14-r); padding: 16px; border: 1px solid rgba(255, 255, 255, .06); }
.sel__hd { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sel__no { width: 48px; height: 48px; border-radius: 14px; background: var(--d14-tomato); color: #fff; display: grid; place-items: center; font-family: var(--d14-head); font-size: 22px; flex: none; }
.sel__hd b { display: block; font-size: 14px; }
.sel__hd small { font-size: 12px; color: #a4a8ae; }
.sel__hd > div { margin-right: auto; min-width: 0; }
.chip-st { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--d14-char-3); white-space: nowrap; }
.chip-st.is-dining { background: var(--d14-tomato); color: #fff; }
.chip-st.is-bill { background: #fff; color: var(--d14-char); }
.chip-st.is-seated { background: #fab219; color: #1f2125; }
.chip-st.is-rsv { background: #2a78d6; color: #fff; }
.sel__items { display: grid; gap: 6px; font-size: 13px; }
.sel__items li { display: flex; justify-content: space-between; gap: 10px; }
.sel__items em { font-style: normal; color: #a4a8ae; }
.sel__items b { font-variant-numeric: tabular-nums; font-weight: 600; }
.sel__sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .16); }
.sel__sum span { font-size: 12px; color: #a4a8ae; }
.sel__sum strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sel__empty { font-size: 13px; color: #c3c6cb; background: rgba(255, 255, 255, .04); border-radius: 12px; padding: 14px; }
.sel__act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.btn-ghost-d { height: 38px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #fff; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn-ghost-d:hover { background: rgba(255, 255, 255, .06); }
.sel .btn-tomato { background: var(--d14-tomato); }

.orders__hd { display: grid; gap: 10px; }
.orders h2 { font-family: var(--d14-head); font-weight: 400; font-size: 22px; display: flex; align-items: center; gap: 8px; }
.orders h2 b { font-family: var(--ailo-font); font-size: 13px; min-width: 26px; height: 26px; border-radius: 13px; background: var(--d14-tomato); display: grid; place-items: center; }
.otabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: rgba(255, 255, 255, .05); padding: 4px; border-radius: 12px; }
.otabs button { border: 0; background: transparent; color: #b5b9bf; font-size: 12px; font-weight: 700; padding: 7px 0; border-radius: 9px; }
.otabs button:hover { color: #fff; }
.otabs button.is-on { background: #fff; color: var(--d14-char); }
.tickets { display: grid; gap: 10px; }
.tk { position: relative; background: #fff; color: var(--ailo-fg); border-radius: 14px; padding: 12px 14px 16px; overflow: hidden; }
.tk::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: #a8a29a; }
.tk--cook::before { background: var(--d14-tomato); }
.tk--serve::before { background: #0ca30c; }
.tk--new::before { background: #2a78d6; }
.tk__hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tk__where { font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.tk__where i { font-size: 12px; color: var(--ailo-muted); }
.tk__id { font-size: 11px; color: var(--ailo-muted); font-variant-numeric: tabular-nums; }
.tk__items { margin: 8px 0 0; font-size: 13px; display: grid; gap: 2px; }
.tk__items li::before { content: "· "; color: var(--ailo-muted); }
.tk__memo { margin-top: 6px; font-size: 12px; color: #8f2414; background: var(--d14-tomato-soft); padding: 3px 8px; border-radius: 6px; display: inline-block; }
.tk__ft { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; font-weight: 700; }
.tk__st { display: inline-flex; align-items: center; gap: 5px; color: #55585e; }
.tk__time { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.tk__time.is-ok { color: var(--d14-up); }
.tk__time.is-warn { color: #8a5a00; }
.tk__time.is-late { color: #fff; background: var(--d14-down); padding: 2px 8px; border-radius: 99px; }
.tk__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #f0ece6; }
.tk__bar i { display: block; height: 100%; }
.tk__bar.is-ok i { background: #0ca30c; } .tk__bar.is-warn i { background: #fab219; } .tk__bar.is-late i { background: var(--d14-down); }

/* ===== Responsive ===== */
@media (min-width: 1600px) {
  .lower { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
}
@media (max-width: 1439.98px) {
  :root { --d14-orders: 320px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi--main { grid-column: span 1; }
  .top__search { display: none; }
}
@media (max-width: 1199.98px) {
  .pos { grid-template-columns: var(--d14-rail) minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .rail { grid-row: 1 / span 3; }
  .foot { grid-row: 3; }
  .orders { grid-column: 2; grid-row: 2; position: static; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; padding: 20px clamp(16px, 2vw, 28px) 28px; }
  .orders__hd, .tickets { grid-column: 2; }
  .sel { grid-row: 1 / span 2; position: sticky; top: 16px; }
  .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .pos { grid-template-columns: minmax(0, 1fr); }
  .center, .orders, .foot { grid-column: 1; }
  .rail {
    position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: min(280px, 84vw); z-index: 130; align-items: stretch; padding: 18px 16px;
    translate: -100% 0; visibility: hidden; transition: translate .3s var(--ailo-ease), visibility .3s;
  }
  html.sb-open .rail { translate: 0 0; visibility: visible; box-shadow: 24px 0 60px rgba(0, 0, 0, .35); transition: translate .3s var(--ailo-ease), visibility 0s; }
  .rail__close { display: grid; place-items: center; position: absolute; top: 22px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--d14-char-2); color: #fff; }
  .rail__nav a, .rail__set { flex-direction: row; gap: 14px; padding: 12px 14px; font-size: 14px; text-align: left; }
  .rail__nav a i, .rail__set i { width: 22px; font-size: 16px; text-align: center; }
  .rail__nav em { position: static; margin-left: auto; padding: 0 6px; }
  .sb-dim { display: block; position: fixed; inset: 0; z-index: 120; background: rgba(20, 22, 25, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  html.sb-open .sb-dim { opacity: 1; visibility: visible; }
  html.sb-open body { overflow: hidden; }
  .top__burger { display: grid; place-items: center; }
  .top__me-t { display: none; }
}
@media (max-width: 767.98px) {
  .orders { display: flex; align-items: stretch; }
  .map-hint { display: block; }
  .sel { position: static; }
  .tickets { grid-template-columns: minmax(0, 1fr); }
  .charts { grid-template-columns: minmax(0, 1fr); }
  .btn-line { margin-left: 0; }
}
@media (max-width: 575.98px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi--main { grid-column: 1 / -1; }
  .kpi { padding: 14px 12px 10px; }
  .kpi__vs { display: block; }
  .top { gap: 10px; padding: 12px 14px; }
  .top h1 { font-size: 24px; gap: 8px; }
  .open-pill { font-size: 11px; }
  .crumb { display: none; }
  .body { padding-inline: 14px; }
  .card { padding: 16px 14px; }
  .card__hd { flex-wrap: wrap; }
  .tscroll { margin-inline: -14px; padding-inline: 14px; }
  .rv__tools, .sbox, .sbox input { width: 100%; }
  .lgd { justify-content: flex-start; }
  .mix-stat dd { font-size: 16px; }
  .orders { padding-inline: 14px; }
  .period__txt { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tb.is-bill::after, .live i { animation: none; }
}
