:root {
  font-family: Pretendard, "Malgun Gothic", sans-serif;
  color: #202d28;
  background: #f7f6ef;
  --page: #f7f6ef;
  --pine: #123f34;
  --pine-hover: #0d332a;
  --pine-light: #edf4ed;
  --ink: #202d28;
  --quiet: #5a6a61;
  --line: #e0e5dc;
  --white: #fff;
  --lime: #d8f186;
  --amber: #835d14;
  --amber-soft: #fcf1d9;
  --red: #a33f30;
  --red-soft: #fdf0ed;
  --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #7d9941; outline-offset: 3px; }
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.65; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.symbols { position: absolute; overflow: hidden; width: 0; height: 0; }
h1, h2, h3, p { margin: 0; }
.shell { min-height: 100dvh; display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.sidebar { background: var(--pine); color: #fff; display: flex; flex-direction: column; gap: 28px; padding: 30px 19px 18px; position: sticky; top: 0; height: 100dvh; overflow: auto; }
.brand { display: inline-flex; align-items: center; margin: 0 7px; gap: 10px; font-size: 23px; letter-spacing: -.065em; font-weight: 800; }
.brand-icon { display: grid; place-content: center; width: 37px; height: 37px; border-radius: 10px; color: var(--pine); background: var(--lime); }
.brand-icon svg { width: 23px; height: 23px; stroke-width: 1.9; }
.store-block { display: flex; align-items: center; gap: 11px; min-height: 63px; margin-top: 10px; padding: 12px 13px; border: 1px solid #4a695e; border-radius: 13px; }
.store-block p { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.store-block small { display: block; margin-top: 5px; color: #b8ccc3; font-size: 12px; }
.store-dot, .connection i, .table-state i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #b8df70; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav button, .logout { display: flex; align-items: center; gap: 12px; width: 100%; background: transparent; color: #d3e2db; border: 0; border-radius: 10px; padding: 11px 12px; min-height: 45px; text-align: left; font-size: 15px; font-weight: 650; }
.sidebar nav button:hover, .logout:hover { background: #ffffff13; }
.sidebar nav button[aria-current=page] { background: #d8f186; color: #183b2e; font-weight: 750; }
.sidebar nav button:focus-visible, .sidebar a:focus-visible, .sidebar .logout:focus-visible { outline-color: #c9e787; }
.sidebar-footer { display: grid; align-content: end; gap: 4px; min-height: 35px; margin-top: auto; }
.mode-chip { display: inline-flex; align-items: center; margin: 0 10px 6px; color: #dcefc0; font-size: 13px; font-weight: 600; }
.logout { font-size: 13px; }
.main-shell { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 65px; padding: 0 clamp(20px, 3vw, 46px); border-bottom: 1px solid #e5e8dd; background: #fdfdf8; }
.page-label { font-size: 14px; font-weight: 700; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.connection { display: flex; align-items: center; gap: 7px; color: #46594f; font-size: 13px; white-space: nowrap; }
.connection i { background: #98a49d; }
.connection[data-state=online] i { background: #529168; }
.connection[data-state=error] i { background: #ad5949; }
.icon-button { display: inline-grid; place-content: center; width: 43px; height: 43px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--white); color: var(--ink); }
.icon-button:hover { background: var(--pine-light); }
.mobile-menu { display: none; }
.content { margin: 0 auto; max-width: 1530px; padding: 34px clamp(20px, 3vw, 46px) 44px; }
.overview-heading, .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 21px; }
.overview-heading h1 { font-weight: 800; font-size: clamp(29px, 3.3vw, 41px); letter-spacing: -.065em; }
.overview-heading p { margin-top: 6px; color: var(--quiet); font-size: 14px; line-height: 1.5; }
.date-label { color: var(--quiet); font-size: 14px; font-weight: 650; white-space: nowrap; padding-bottom: 4px; }
.table-page-actions { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 8px 14px; }
.table-page-actions .button { min-height: 40px; }
.section-heading h2 { font-size: 22px; letter-spacing: -.045em; font-weight: 800; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.metric { min-width: 0; display: flex; align-items: start; gap: 13px; padding: 19px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; }
.metric > div { min-width: 0; }
.metric-icon { width: 35px; height: 35px; border-radius: 10px; display: grid; place-content: center; color: var(--pine); background: var(--pine-light); }
.metric-icon.amber { background: var(--amber-soft); color: var(--amber); }
.metric-icon svg { width: 18px; height: 18px; }
.metric span:not(.metric-icon) { display: block; font-size: 13px; color: var(--quiet); font-weight: 650; line-height: 1.4; }
.metric strong { display: block; margin-top: 6px; font-size: clamp(21px, 2.2vw, 30px); line-height: 1.1; font-weight: 800; letter-spacing: -.055em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dashboard { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel-padding { padding: clamp(16px, 2vw, 24px); }
.panel-heading { display: flex; gap: 12px; justify-content: space-between; align-items: start; margin-bottom: 16px; }
.panel-heading h2 { font-size: 21px; letter-spacing: -.04em; font-weight: 800; line-height: 1.25; }
.panel-heading p { color: var(--quiet); margin-top: 5px; font-size: 13px; line-height: 1.4; }
.panel-actions { display: inline-flex; gap: 8px; align-items: start; flex-wrap: wrap; }
.floor-heading { align-items: start; margin-bottom: 12px; }
.floor-controls { display: flex; flex: 0 0 auto; justify-content: end; align-items: center; flex-wrap: wrap; gap: 5px; }
.floor-heading .button, .floor-filters .button { min-height: 40px; }
.floor-filters { gap: 5px; }
.floor-filters .button[aria-pressed=true] { border-color: #8aa893; background: var(--pine-light); color: var(--pine); }
.floor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(108px, auto); gap: clamp(4px, .75vw, 9px); padding: clamp(5px, .8vw, 10px); border: 1px solid #e4e9dd; border-radius: 13px; background: #f3f5ec; }
.floor-grid.is-editing { grid-auto-rows: minmax(71px, auto); border-color: #9cb3a0; background: #edf3e9; }
.floor-cell { min-width: 0; border: 1px dashed #acbdaa; border-radius: 9px; padding: 4px; background: transparent; color: #536c5c; font-size: 11px; font-weight: 690; }
.floor-cell[aria-disabled=true] { cursor: default; background: #f5f8f1; }
.floor-cell:not(.floor-space):not([aria-disabled=true]):hover { border-color: var(--pine); background: #e1edd9; }
.floor-space { border-color: #e1e8db; }
.table-card { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; text-align: left; background: var(--white); color: var(--ink); border: 1px solid #d9e1d6; border-radius: 9px; padding: 8px 7px; }
.table-card:hover { border-color: #5c8373; }
.table-card[aria-pressed=true] { background: #e9f4e3; border-color: #376454; box-shadow: inset 0 0 0 1px #376454; }
.is-editing .table-card { justify-content: center; text-align: center; }
.is-editing .table-card[aria-pressed=true] { background: var(--pine); color: #fff; }
.table-name { font-size: 14px; line-height: 1.25; font-weight: 780; letter-spacing: -.035em; word-break: keep-all; overflow-wrap: anywhere; }
.table-state { display: inline-flex; align-items: center; gap: 4px; color: #557065; font-size: 11px; font-weight: 730; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
.table-state i { width: 6px; height: 6px; flex-basis: 6px; background: #aabbb1; }
.table-state.active { color: #285d46; }
.table-state.active i { background: #4d945b; }
.table-state.wait { color: var(--amber); }
.table-state.wait i { background: #d7a43a; }
.table-card-sales { display: grid; gap: 2px; margin-top: auto; padding-top: 4px; font-size: 11px; line-height: 1.2; color: var(--quiet); overflow-wrap: anywhere; }
.table-card-sales strong { color: var(--pine); font-size: clamp(13px, 1.3vw, 20px); font-weight: 780; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.table-card .call-count { font-size: 11px; overflow-wrap: anywhere; }
.floor-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.floor-actions > div { display: flex; gap: 6px; margin-inline-start: auto; }
.floor-warning { margin-bottom: 10px; }
.floor-warning .button { margin-top: 7px; }
.floor-empty { margin-top: 10px; color: var(--quiet); font-size: 13px; }
.method-breakdown { display: flex; flex-wrap: wrap; gap: 5px 11px; margin: 7px 0 0; font-size: 11px; line-height: 1.35; }
.method-breakdown > div { display: flex; flex-wrap: wrap; column-gap: 4px; min-width: 0; }
.method-breakdown dt { color: var(--quiet); }
.method-breakdown dd { margin: 0; color: var(--ink); font-weight: 730; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail { overflow-wrap: anywhere; }
.detail .panel-heading { margin-bottom: 14px; }
.detail-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 1px solid #e4ebdd; background: #f5f8f1; border-radius: 13px; padding: 14px; }
.detail-summary span { display: block; color: var(--quiet); font-size: 13px; font-weight: 650; }
.detail-summary strong { display: block; margin-top: 5px; font-size: 23px; letter-spacing: -.06em; font-weight: 800; font-variant-numeric: tabular-nums; }
.detail-summary > div:last-child { text-align: right; }
.detail-day-sales { margin-top: 12px; padding: 0 3px; }
.detail-day-sales h3 { color: var(--quiet); font-size: 13px; font-weight: 700; }
.detail-day-sales .method-breakdown { font-size: 13px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 2px; }
.detail-actions .button { flex: 1 1 auto; }
@media (min-width: 941px) and (max-width: 1400px) and (max-height: 900px) and (orientation: landscape) {
  .content:has(.floor-panel) { padding-block: 20px 28px; }
  .content:has(.floor-panel) .overview-heading { margin-bottom: 13px; }
  .content:has(.floor-panel) .overview-heading h1 { font-size: 32px; }
  .content:has(.floor-panel) .metrics { gap: 10px; margin-bottom: 13px; }
  .content:has(.floor-panel) .metric { gap: 9px; padding: 11px 13px; }
  .content:has(.floor-panel) .metric strong { margin-top: 4px; }
  .content:has(.floor-panel) .metric .method-breakdown { margin-top: 4px; }
  .content:has(.floor-panel) .service-panel { padding: 7px 12px; margin-bottom: 11px; }
  .floor-panel, .detail { padding: 14px; }
  .floor-heading .button { min-height: 36px; }
  .floor-grid { grid-auto-rows: minmax(91px, auto); }
  .floor-grid .table-card { gap: 3px; padding: 7px 6px; }
}
.orders-heading { font-size: 15px; font-weight: 800; margin-top: 20px; }
.order-card { border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; padding: 13px; }
.order-header { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 6px; }
.order-header strong { font-size: 14px; }
.order-items { list-style: none; padding: 0; margin: 9px 0; }
.order-items li { display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: 10px; padding: 4px 0; font-size: 13px; }
.order-items li small { display: block; margin-top: 4px; color: var(--quiet); }
.order-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.order-time { display: inline-block; color: var(--quiet); margin-top: 5px; font-size: 12px; }
.is-muted { color: var(--quiet); }
.empty { display: grid; justify-items: center; text-align: center; gap: 7px; padding: 30px 12px; color: var(--quiet); font-size: 14px; line-height: 1.5; }
.empty svg { width: 28px; height: 28px; }
.empty strong { color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; min-height: 43px; white-space: nowrap; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); font-size: 14px; font-weight: 700; letter-spacing: -.025em; }
.button:hover { border-color: #7f9f8d; background: var(--pine-light); }
.button.primary { border-color: var(--pine); background: var(--pine); color: #fff; }
.button.primary:hover { background: var(--pine-hover); }
.button.destructive { color: var(--red); }
.button.destructive:hover { background: var(--red-soft); border-color: #d0aaa3; }
.button.compact { min-height: 36px; font-size: 12px; padding: 6px 10px; }
.button svg { width: 16px; height: 16px; }
.pill { align-self: start; display: inline-flex; align-items: center; background: #eef2eb; color: #4c6254; border-radius: 100px; padding: 4px 8px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.pill.green { color: #305c3e; background: #e9f2e5; }
.pill.amber { color: var(--amber); background: var(--amber-soft); }
.pill.red { color: var(--red); background: var(--red-soft); }
.read-list { width: 100%; border-collapse: collapse; text-align: left; }
.read-list th, .read-list td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.read-list th { padding-top: 5px; border: 0; color: var(--quiet); font-size: 12px; font-weight: 700; }
.read-list td.amount { font-weight: 780; white-space: nowrap; }
.read-list td > small { display: block; margin-top: 3px; color: var(--quiet); font-size: 12px; overflow-wrap: anywhere; }
.read-list td:last-child, .read-list th:last-child { text-align: right; }
.read-list td:last-child .button + .button { margin-left: 3px; }
.sales-scroll { overflow-x: auto; }
.form { display: grid; gap: 13px; }
.form fieldset { display: grid; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
label.label { display: grid; gap: 6px; font-size: 14px; font-weight: 730; }
input, select, textarea { width: 100%; border: 1px solid #cbd6ce; border-radius: 9px; padding: 10px 11px; background: #fff; color: var(--ink); min-height: 44px; }
textarea { resize: vertical; min-height: 75px; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--pine); }
.form-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.form-help { font-size: 13px; color: var(--quiet); line-height: 1.55; }
.form-error, .warning { padding: 10px 12px; border-radius: 10px; color: var(--red); background: var(--red-soft); font-size: 13px; line-height: 1.5; }
.warning { color: var(--amber); background: var(--amber-soft); }
.device-response { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 18px; margin-bottom:16px; padding:12px 16px; background:var(--white); border:1px solid var(--line); border-radius:12px; }
.device-response p,.device-time { margin:4px 0 0; color:var(--quiet); font-size:13px; line-height:1.45; }
.device-response.attention { background:var(--amber-soft); border-color:#d8bf87; }
.device-response.attention strong { color:var(--amber); }
.device-time { display:block; }
.device-cache-hint { display:none; }
.counter-offline .device-cache-hint { display:block; }
.dialog { width: min(565px, calc(100% - 30px)); max-height: calc(100dvh - 40px); max-width: none; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); }
.dialog::backdrop { background: #172b23a0; }
.dialog-content { padding: clamp(15px, 3vw, 24px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.dialog-heading h2 { font-size: 23px; line-height: 1.3; font-weight: 800; letter-spacing: -.05em; }
.dialog-heading .icon-button { width: 40px; height: 40px; }
.order-form-line { display: grid; grid-template-columns: minmax(135px, 1.9fr) minmax(56px, .6fr) 43px; gap: 7px; align-items: end; border-top: 1px solid var(--line); padding: 12px 0 5px; }
.order-form-line .line-note { grid-column: 1 / -1; }
.order-form-line .icon-button { margin-bottom: 1px; }
.order-total { font-weight: 800; text-align: right; font-size: 18px; }
.code-display { padding: 18px; margin: 12px 0; background: var(--pine-light); color: var(--pine); border-radius: 12px; text-align: center; font-size: clamp(27px, 8vw, 43px); font-weight: 800; letter-spacing: .14em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.toast { position: fixed; width: max-content; max-width: calc(100% - 28px); bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10; padding: 12px 16px; border-radius: 11px; color: #fff; background: #193e33; box-shadow: 0 5px 22px #192f2540; font-size: 14px; line-height: 1.4; }
.loading, .error-state { display: grid; gap: 10px; justify-items: center; align-content: center; min-height: 260px; padding: 20px; color: var(--quiet); text-align: center; line-height: 1.45; }
.error-state strong { color: var(--ink); }
.login { margin: min(9vh, 85px) auto; padding: clamp(24px, 4vw, 38px); max-width: 476px; }
.login h1 { font-size: 32px; letter-spacing: -.065em; margin-bottom: 8px; }
.login p { margin-bottom: 17px; }
.login .demo-link { display: block; text-align: center; text-decoration: underline; text-underline-offset: 3px; color: var(--pine); font-weight: 730; margin-top: 20px; padding: 8px; }
.login .login-button { width: 100%; }
.menu-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.menu-row:first-child { border-top: 0; }
.menu-row > div:first-child { flex: 1 1 auto; min-width: 0; }
.menu-row strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.menu-row small { display: inline-block; font-size: 12px; color: var(--quiet); margin-top: 4px; overflow-wrap: anywhere; }
.pair-buttons { display: flex; justify-content: end; gap: 5px; flex-wrap: wrap; }
.outstanding-note { margin-top: 12px; }
.sidebar-overlay { display: none; }
@media (max-width: 1175px) {
  .shell { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding-inline: 14px; }
}
@media (max-width: 940px) {
  .shell { grid-template-columns: 70px minmax(0, 1fr); }
  .sidebar { align-items: center; padding: 21px 10px; gap: 23px; }
  .brand { margin: 0; }
  .brand > span:last-child, .store-block, .sidebar nav button span, .mode-chip { display: none; }
  .sidebar nav button { justify-content: center; padding: 11px; }
  .logout { justify-content: center; padding: 0 3px; font-size: 12px; }
}
@media (max-width: 820px) {
  .dashboard { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 710px) {
  .shell { display: block; }
  .sidebar { align-items: stretch; width: min(277px, 82vw); height: 100dvh; top: 0; left: 0; position: fixed; z-index: 21; transform: translateX(-105%); transition: transform .16s ease; padding: 23px 15px; visibility: hidden; }
  .sidebar-open .sidebar { transform: translateX(0); visibility: visible; }
  .sidebar .brand { margin-left: 5px; }
  .sidebar .brand > span:last-child, .sidebar nav button span, .sidebar .mode-chip { display: inline-flex; }
  .sidebar .store-block { display: flex; }
  .sidebar nav button, .logout { justify-content: start; padding-left: 12px; }
  .sidebar-overlay { display: block; z-index: 20; position: fixed; inset: 0; background: #182b22a0; border: 0; }
  .mobile-menu { display: inline-grid; }
  .topbar { height: 58px; padding-inline: 15px; justify-content: start; }
  .content { padding: 22px 14px 32px; }
  .top-actions { gap: 8px; }
  .overview-heading { align-items: start; }
  .date-label { display: none; }
  .metric { padding: 12px; gap: 8px; display: grid; }
  .metric-icon { width: 29px; height: 29px; }
}
@media (max-width: 480px) {
  .floor-panel { padding: 12px 8px; }
  .floor-heading, .floor-actions, .floor-empty { margin-inline: 3px; }
  .floor-heading { display: grid; gap: 7px; }
  .floor-controls { justify-content: start; }
  .floor-grid { grid-auto-rows: minmax(98px, auto); }
  .table-card { padding-inline: 5px; }
  .table-name { font-size: 12px; }
  .table-card-sales { font-size: 10px; }
  .table-state { font-size: 10px; }
  .table-state i { width: 5px; height: 5px; flex-basis: 5px; }
  .method-breakdown { column-gap: 6px; }
  .metric strong { font-size: 20px; }
  .metrics { gap: 6px; margin-bottom: 15px; }
  .metric { padding: 10px 7px; }
  .metric span:not(.metric-icon) { font-size: 11px; }
  .device-table th:nth-child(2), .device-table td:nth-child(2) { display: none; }
  .read-list td, .read-list th { padding-inline: 5px; }
  .read-list td { font-size: 13px; }
  .pair-buttons { display: grid; justify-items: end; }
  .compact { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.kitchen-link { text-decoration: none; flex: none; white-space: nowrap; }
.kitchen-link svg { width: 14px; height: 14px; }
.form .check-label { display: flex; align-items: center; align-self: start; gap: 8px; }
.form .check-label [type=checkbox] { appearance: auto; inline-size: 18px; block-size: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--pine); }
.print-area { display: none; }
@media (max-width: 520px) {
  .top-actions .kitchen-link { padding: 7px 9px; }
  .top-actions .kitchen-link svg { display: none; }
}
@media print {
  @page { margin: 4mm; }
  body { background: #fff; color: #000; }
  body > :not(.print-area) { display: none !important; }
  .print-area { display: block; width: 100%; max-width: 72mm; margin: 0 auto; }
  .printed-slip { font-size: 10pt; line-height: 1.35; }
  .printed-slip header { text-align: center; margin-bottom: 3mm; }
  .printed-slip header p { margin: 0; font-weight: 600; }
  .printed-slip h1 { margin: 1mm 0 0; font-size: 17pt; }
  .printed-slip dl, .printed-totals { margin: 0; padding: 2.5mm 0; border-block: 1px dashed #555; }
  .printed-slip dl div, .printed-totals div { display: flex; justify-content: space-between; gap: 2mm; }
  .printed-slip dd { margin: 0; text-align: right; }
  .printed-slip table { width: 100%; border-collapse: collapse; margin: 1mm 0 2mm; }
  .printed-slip th, .printed-slip td { padding: 1mm 0; text-align: left; }
  .printed-slip th:nth-child(n+2), .printed-slip td:nth-child(n+2) { padding-left: 1mm; text-align: right; white-space: nowrap; }
  .printed-slip tr { break-inside: avoid; }
  .printed-slip footer { margin-top: 3mm; text-align: center; font-size: 8pt; }
}

.form label:not(.check-label) { display: grid; gap: 6px; font-size: 14px; font-weight: 720; }
.form label small { display: inline; }
.order-pills { display: flex; flex-wrap: wrap; justify-content: end; gap: 4px; }
.orders-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.orders-heading h3 { margin: 0; font-size: 15px; }
.orders-heading span { color: var(--quiet); font-size: 12px; }



.sidebar nav .workspace-link { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 11px 12px; border-radius: 10px; color: #d3e2db; font-size: 15px; font-weight: 650; }
.sidebar nav .workspace-link:hover { background: #ffffff13; }
@media (min-width: 711px) and (max-width: 940px) {
  .sidebar nav .workspace-link { justify-content: center; padding: 11px; }
  .sidebar nav .workspace-link span { display: none; }
}


.service-panel { padding: 12px 15px; margin-bottom: 16px; min-width: 0; }
.service-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.service-heading h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.service-heading h2 svg { color: var(--pine); }
.service-heading p { color: var(--quiet); font-size: 13px; font-weight: 640; }
.service-list { display: grid; gap: 7px; margin: 9px 0 0; padding: 0; list-style: none; }
.service-list li { display: flex; justify-content: space-between; align-items: center; gap: 7px; min-width: 0; padding: 6px 7px; border: 1px solid #e7e5d9; border-radius: 10px; background: #fbfaf3; }
.service-list li > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; min-width: 0; }
.service-list li > button { flex: none; min-height: 40px; }
.service-list strong { font-size: 14px; }
.service-list time { color: var(--quiet); font-size: 12px; }
.service-table-link { border-color: transparent; background: transparent; color: var(--pine); max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.call-count { flex: 0 0 auto; color: var(--amber); font-weight: 760; }


.sale-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.sale-switch .button[aria-pressed=true] { background: var(--pine); border-color: var(--pine); color: var(--white); }
.sale-switch .deposits-link { margin-inline-start: auto; }
.closing-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 14px; padding: 12px 14px; margin-bottom: 17px; }
.closing-date-controls { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; gap: 6px; }
.closing-date-controls > label { color: var(--quiet); font-size: 13px; font-weight: 650; margin-left: 2px; }
.closing-date-controls input { width: auto; max-width: 100%; min-height: 39px; padding: 5px 8px; font-size: 14px; }
.closing-methods, .closing-review { margin-bottom: 16px; }
.closing-error { margin-bottom: 17px; }
.daily-list td:last-child, .daily-list th:last-child { text-align: right; }
.daily-list tbody th { border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.daily-list th:first-child, .daily-list td:first-child { white-space: nowrap; }
.daily-list td { overflow-wrap: anywhere; }
.closing-entries .daily-list { min-width: 465px; }
.closing-methods .daily-list td { text-align: right; white-space: nowrap; }
.closing-methods .daily-list th:not(:first-child) { text-align: right; }
.closing-review-details { display: grid; gap: 8px; margin: 14px 0; }
.closing-review-details div { display: grid; grid-template-columns: minmax(119px, 1fr) 2fr; align-items: baseline; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.closing-review-details dt { color: var(--quiet); font-size: 13px; }
.closing-review-details dd { margin: 0; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.review-actions { margin-top: 12px; display: flex; justify-content: flex-end; }
@media (max-width: 480px) {
  .closing-date-controls { gap: 5px; }
  .closing-date-controls label { flex: 0 0 100%; order: -1; }
  .closing-review-details div { grid-template-columns: minmax(106px, 1fr) 1.7fr; }
  .closing-toolbar .button { min-height: 42px; }
}
@media print { .printed-item-note { display: block; font-size: 8pt; margin-block-start: .5mm; overflow-wrap: anywhere; } }


@media (max-width: 560px) {
  .closing-entries .daily-list { display: block; min-width: 0; }
  .closing-entries .daily-list thead { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .closing-entries .daily-list tbody { display: block; }
  .closing-entries .daily-list tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 5px 8px; align-items: start; padding-block: 10px; border-top: 1px solid var(--line); }
  .closing-entries .daily-list td { padding: 0; border: 0; font-size: 13px; white-space: normal; }
  .closing-entries .daily-list .daily-table { grid-area: 1 / 1; font-weight: 700; }
  .closing-entries .daily-list .daily-at { grid-area: 2 / 1; font-weight: 650; }
  .closing-entries .daily-list .daily-kind { grid-area: 1 / 2; }
  .closing-entries .daily-list .daily-method { grid-area: 2 / 2; }
  .closing-entries .daily-list .daily-amount { grid-area: 1 / 3 / span 2; white-space: nowrap; font-weight: 780; }
  .closing-entries .daily-list td small { font-weight: 450; }
}

