/* =====================================================================
   DineFlow — staff screens: kitchen display (kd-*), waiter panel (wt-*)
   and POS (pos-*). Shared dark top bar (st-*). Colours: base.css vars.
   ===================================================================== */

/* ---------- DineFlow logo (x-dineflow-logo) ---------- */
.df-logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.df-logo-mark { width: 54px; height: 48px; flex: none; }
.df-logo-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.df-logo-name { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--on-dark); white-space: nowrap; }
.df-logo-name em { font-style: normal; color: var(--brand); }
.df-logo-sub { font-size: 14px; color: var(--on-dark-muted); white-space: nowrap; }

/* ---------- top bar ---------- */
.staff-body { background: var(--bg); min-height: 100vh; }
.staff-body.is-dark { background: var(--dark); color: var(--on-dark); }
.st-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 22px; padding: 12px 24px; background: var(--dark); color: var(--on-dark); border-bottom: 2px solid color-mix(in srgb, var(--brand) 70%, transparent); }
.st-sep { width: 1px; height: 40px; background: var(--dark-line); }
.st-title { font-size: 30px; font-weight: 800; white-space: nowrap; }
.st-title em { font-style: normal; color: var(--brand); }
.st-title small { display: block; font-size: 15px; font-weight: 500; color: var(--on-dark-muted); }
.st-bar-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.st-clock { display: flex; align-items: center; gap: 12px; padding: 8px 18px; border-radius: var(--radius); background: var(--dark-2); }
.st-clock .icon { width: 30px; height: 30px; }
.st-clock strong { display: block; font-size: 22px; line-height: 1.1; }
.st-clock small { white-space: nowrap; display: block; font-size: 13.5px; color: var(--on-dark-muted); }
.st-filters { display: flex; gap: 8px; }
.st-filter { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: var(--radius); border: 1.5px solid var(--dark-line); background: var(--dark-2); font-weight: 700; font-size: 17px; color: var(--on-dark); }
.st-filter .icon { width: 24px; height: 24px; }
.st-filter.is-active { background: var(--grad-brand); border-color: transparent; }
.st-icon-btn { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: var(--radius); border: 1.5px solid var(--dark-line); background: var(--dark-2); color: var(--on-dark); }
.st-icon-btn .icon { width: 26px; height: 26px; }
.st-icon-btn[aria-pressed="false"] { opacity: .5; }
.st-icon-btn .count-badge { top: 2px; right: 2px; border-color: var(--dark); background: var(--danger); }
.st-user .dropdown-menu { color: var(--text); }
.dropdown-user { display: flex; flex-direction: column; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.dropdown-user small { color: var(--muted); }
.st-main { padding: 18px 22px; }
.staff-body .alert { max-width: 900px; margin: 0 auto 14px; }
.staff-body .toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translateX(-50%); padding: 12px 20px; border-radius: var(--radius-pill); background: var(--dark); color: var(--on-dark); font-weight: 600; box-shadow: var(--shadow-lg); }

/* =====================================================================
   Kitchen display
   ===================================================================== */
.kd-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.kd-col { border-radius: var(--radius-lg); background: var(--dark-2); padding: 0 0 12px; min-height: 60vh; }
.kd-col-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; font-size: 30px; }
.kd-col-head .icon { width: 38px; height: 38px; }
.kd-col-head h2 { font-size: 30px; font-weight: 800; flex: 1; }
.kd-col-new .kd-col-head { background: linear-gradient(90deg, color-mix(in srgb, var(--danger) 55%, var(--dark)), var(--dark-2)); }
.kd-col-preparing .kd-col-head { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 60%, var(--dark)), var(--dark-2)); }
.kd-col-ready .kd-col-head { background: linear-gradient(90deg, color-mix(in srgb, var(--success) 60%, var(--dark)), var(--dark-2)); }
.kd-count { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 50%; font-size: 26px; font-weight: 800; }
.kd-col-new .kd-count { background: var(--danger); }
.kd-col-preparing .kd-count { background: var(--brand); }
.kd-col-ready .kd-count { background: var(--success); }
.kd-tickets { display: flex; flex-direction: column; gap: 14px; padding: 12px 12px 0; }
.kd-empty { padding: 30px 10px; text-align: center; color: var(--on-dark-muted); }
.kd-ticket { position: relative; padding: 16px 18px 16px 24px; border-radius: var(--radius); background: var(--cream); color: var(--text); box-shadow: var(--shadow); }
.kd-ticket::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 6px; border-radius: 0 4px 4px 0; }
.kd-ticket-new::before { background: var(--danger); }
.kd-ticket-preparing::before { background: var(--brand); }
.kd-ticket-ready::before { background: var(--success); }
.kd-ticket.is-late { outline: 3px solid var(--danger); box-shadow: 0 0 0 6px color-mix(in srgb, var(--danger) 25%, transparent), 0 0 30px color-mix(in srgb, var(--danger) 40%, transparent); }
.kd-ticket-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kd-code { font-size: 26px; font-weight: 800; }
.kd-where { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--brand-soft-2); font-size: 18px; font-weight: 800; }
.kd-where .icon { width: 22px; height: 22px; }
.kd-age, .kd-late { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; height: 34px; padding: 0 12px; border-radius: var(--radius-pill); font-weight: 800; font-size: 18px; }
.kd-age { background: var(--success-bg); color: var(--success); }
.kd-age.is-warm { background: var(--warning-bg); color: var(--warning); }
.kd-late { background: var(--danger); color: var(--on-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 20%, transparent); }
.kd-age .icon, .kd-late .icon { width: 20px; height: 20px; }
.kd-items-count { font-size: 18px; color: var(--text-2); margin-top: 2px; }
.kd-items { margin: 8px 0; }
.kd-items li { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; font-size: 19px; }
.kd-items li.is-done { opacity: .55; text-decoration: line-through; }
.kd-items .food-mark { margin-top: 4px; }
.kd-items strong { font-weight: 700; }
.kd-items small { display: block; font-size: 15px; color: var(--text-2); }
.kd-item-note { color: var(--danger) !important; }
.kd-qty { min-width: 32px; color: var(--text-2); }
.kd-note { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 22%, var(--white)); font-size: 17px; }
.kd-note .icon { flex: none; }
.kd-progress { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.kd-progress > .icon { width: 34px; height: 34px; color: var(--brand); }
.kd-progress-label { display: block; color: var(--brand); font-weight: 800; font-size: 18px; }
.kd-progress progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 4px; background: var(--border-strong); overflow: hidden; }
.kd-progress progress::-webkit-progress-bar { background: var(--border-strong); border-radius: 4px; }
.kd-progress progress::-webkit-progress-value { background: var(--grad-brand); border-radius: 4px; }
.kd-progress progress::-moz-progress-bar { background: var(--brand); }
.kd-progress strong { font-size: 18px; }
.kd-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 56px; margin-top: 14px; border: 0; border-radius: var(--radius); color: var(--on-brand); font-size: 22px; font-weight: 800; }
.kd-btn .icon { width: 26px; height: 26px; }
.kd-btn-start { background: var(--grad-brand); }
.kd-btn-start .icon { fill: currentColor; }
.kd-btn-ready, .kd-btn-served { background: linear-gradient(135deg, var(--success-2), var(--success)); }
.kd-btn-ready .icon { stroke-width: 3; }
.kd-stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 12px 26px; margin-top: 18px; padding: 16px 24px; border-radius: var(--radius-lg); background: var(--dark-2); font-size: 20px; }
.kd-stats span { display: inline-flex; align-items: center; gap: 10px; }
.kd-stats span + span { padding-left: 26px; border-left: 1px solid var(--dark-line); }
.kd-stats .icon { width: 28px; height: 28px; }

@media (max-width: 1100px) {
    .st-bar { flex-wrap: wrap; gap: 12px; padding: 10px 14px; }
    .st-title { font-size: 22px; }
    .kd-board { grid-template-columns: 1fr; }
    .kd-col { min-height: 0; }
}
@media (max-width: 640px) {
    .df-logo-mark { width: 40px; height: 36px; }
    .df-logo-name { font-size: 24px; }
    .st-clock { padding: 6px 10px; }
    .st-clock strong { font-size: 16px; }
    .st-filter { height: 40px; padding: 0 12px; font-size: 14px; }
    .st-icon-btn { width: 42px; height: 42px; }
    .st-main { padding: 12px; }
    .kd-col-head h2 { font-size: 22px; }
    .kd-stats { font-size: 15px; justify-content: flex-start; }
    .kd-stats span + span { border: 0; padding: 0; }
}

/* =====================================================================
   Waiter panel
   ===================================================================== */
.is-waiter .st-main { max-width: 1240px; margin: 0 auto; padding: 22px 24px 30px; }
.wt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.wt-who { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 800; margin-bottom: 16px; }
.wt-who .icon { width: 34px; height: 34px; }
.wt-who em { font-style: normal; color: var(--brand); }
.wt-areas { margin-bottom: 18px; }
.wt-areas .segment { height: 54px; padding: 0 28px; font-size: 20px; min-width: 210px; }
.wt-floor {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 40px; padding: 56px 46px; border-radius: var(--radius-lg);
    background: repeating-linear-gradient(90deg, var(--floor) 0 120px, var(--floor-2) 120px 122px), var(--floor);
    box-shadow: inset 0 0 0 10px color-mix(in srgb, var(--wood) 55%, var(--floor)), var(--shadow);
}
.wt-table { position: relative; justify-self: center; display: grid; place-items: center; width: 124px; height: 104px; border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); text-align: center; transition: transform .15s; }
.wt-table:hover { transform: scale(1.04); }
.wt-table::before { content: ""; position: absolute; left: 50%; top: -16px; width: 58px; height: 12px; transform: translateX(-50%); border-radius: 6px; background: var(--wood); box-shadow: 0 120px 0 var(--wood); }
.wt-table::after { content: ""; position: absolute; top: 50%; left: -16px; width: 12px; height: 48px; transform: translateY(-50%); border-radius: 6px; background: var(--wood); box-shadow: 140px 0 0 var(--wood); }
.wt-table.is-round { width: 116px; height: 116px; border-radius: 50%; }
.wt-table.is-round::before { box-shadow: 0 132px 0 var(--wood); }
.wt-table.is-round::after { box-shadow: 132px 0 0 var(--wood); }
.wt-table-top { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.wt-table-top strong { font-size: 26px; font-weight: 800; }
.wt-table-sub { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 700; }
.wt-table-sub .icon { width: 18px; height: 18px; }
.wt-table.is-occupied { background: var(--grad-brand); color: var(--on-brand); }
.wt-table.is-bill { background: var(--purple-bg); color: var(--purple); box-shadow: 0 0 0 3px var(--purple), var(--shadow); }
.wt-table.is-attention { background: radial-gradient(circle at 50% 35%, var(--c-red), var(--danger)); color: var(--on-brand); box-shadow: 0 0 0 8px color-mix(in srgb, var(--danger) 22%, transparent), 0 0 28px color-mix(in srgb, var(--danger) 55%, transparent); animation: wt-pulse 1.6s ease-in-out infinite; }
.wt-table.is-unavailable { background: var(--muted-bg); color: var(--muted); }
.wt-table.is-selected { outline: 3px dashed var(--dark); outline-offset: 6px; }
@keyframes wt-pulse { 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--danger) 12%, transparent), 0 0 40px color-mix(in srgb, var(--danger) 45%, transparent); } }
@media (prefers-reduced-motion: reduce) { .wt-table.is-attention { animation: none; } }
.wt-side { display: flex; flex-direction: column; gap: 18px; }
.wt-alerts, .wt-details { padding: 18px; }
.wt-side-title { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.wt-side-title .icon { width: 28px; height: 28px; color: var(--danger); }
.wt-bar::before { content: ""; width: 5px; height: 26px; border-radius: 3px; background: var(--brand); }
.wt-alert { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; border-radius: var(--radius); margin-top: 10px; }
.wt-alert.is-call_waiter { background: var(--danger-bg); }
.wt-alert.is-bill { background: var(--purple-bg); }
.wt-alert-icon { width: 28px; height: 28px; color: var(--danger); }
.wt-alert.is-bill .wt-alert-icon { color: var(--purple); }
.wt-alert strong { display: block; font-size: 17px; }
.wt-alert small { display: block; font-size: 14px; color: var(--text-2); }
.wt-calm { color: var(--muted); padding: 8px 0; }
.wt-details-name { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius); background: var(--brand-soft); font-size: 26px; font-weight: 800; }
.wt-details-name .icon { width: 30px; height: 30px; color: var(--brand); }
.wt-facts div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: 17px; }
.wt-facts dt { display: flex; align-items: center; gap: 12px; }
.wt-facts dd { margin: 0; font-weight: 800; }
.wt-details-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.wt-details-actions .btn { width: 100%; height: 50px; font-size: 16px; }
.wt-foot { display: flex; align-items: center; gap: 22px; margin-top: 20px; }
.wt-legend { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; padding: 14px 20px; }
.wt-legend > strong { font-size: 20px; }
.wt-legend-item { display: flex; align-items: center; gap: 10px; }
.wt-legend-item strong { display: block; font-size: 15px; }
.wt-legend-item small { display: block; font-size: 13.5px; color: var(--text-2); }
.wt-swatch { display: grid; place-items: center; width: 40px; height: 36px; border-radius: 8px; background: var(--surface); border: 1.5px solid var(--border-strong); }
.wt-swatch.is-occupied { background: var(--grad-brand); border: 0; }
.wt-swatch.is-bill { background: var(--purple-bg); border-color: var(--purple); }
.wt-swatch.is-attention { background: var(--danger); border: 0; border-radius: 50%; color: var(--on-brand); }
.wt-swatch .icon { width: 18px; height: 18px; }
.wt-new { height: 60px; padding: 0 34px; font-size: 22px; border-radius: var(--radius); }
.wt-nav { display: none; }
.wt-order { padding: 16px; margin-bottom: 12px; }
.wt-order-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wt-order-head strong { font-size: 20px; }
.wt-order ul { margin: 10px 0; }
.wt-order li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.wt-page-title { font-size: 26px; font-weight: 800; margin-bottom: 14px; }

@media (max-width: 1100px) {
    .wt-layout { grid-template-columns: 1fr; }
    .wt-floor { gap: 46px 24px; padding: 40px 24px; }
}
@media (max-width: 640px) {
    .is-waiter .st-bar .st-clock, .is-waiter .st-sep { display: none; }
    .is-waiter .st-main { padding: 12px 12px calc(var(--bottom-nav-h) + 24px); }
    .wt-who { font-size: 19px; gap: 8px; margin-bottom: 10px; }
    .wt-who .icon { width: 22px; height: 22px; }
    .wt-areas { flex-wrap: nowrap; gap: 6px; }
    .wt-areas .segment { min-width: 0; flex: 1; height: 42px; padding: 0 8px; font-size: 14px; }
    .wt-areas .segment .icon { width: 18px; height: 18px; }
    .wt-floor { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 14px; padding: 26px 14px; box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--wood) 55%, var(--floor)); }
    .wt-table, .wt-table.is-round { width: 78px; height: 72px; }
    .wt-table.is-round { height: 78px; }
    .wt-table::before { width: 40px; height: 9px; top: -12px; box-shadow: 0 84px 0 var(--wood); }
    .wt-table::after { width: 9px; height: 34px; left: -12px; box-shadow: 93px 0 0 var(--wood); }
    .wt-table.is-round::before { box-shadow: 0 90px 0 var(--wood); }
    .wt-table.is-round::after { box-shadow: 90px 0 0 var(--wood); }
    .wt-table-top strong { font-size: 17px; }
    .wt-table-sub { font-size: 12px; }
    .wt-table-sub .icon { width: 13px; height: 13px; }
    .wt-side-title { font-size: 18px; }
    .wt-alert strong { font-size: 14px; }
    .wt-foot { flex-direction: column; align-items: stretch; }
    .wt-legend { display: none; }
    .wt-new { height: 52px; font-size: 19px; }
    .wt-nav { display: grid; }
}

/* =====================================================================
   POS · Counter Billing
   ===================================================================== */
.is-pos { background: var(--dark); }
.is-pos .st-main { padding: 16px 18px; }
.pos-who, .pos-shift { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; white-space: nowrap; }
.pos-who .icon { width: 24px; height: 24px; }
.pos-shift { padding-left: 16px; border-left: 1px solid var(--dark-line); }
.pos-shift::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--success-2); }
.pos { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pos .card { border-radius: var(--radius-lg); background: var(--cream); color: var(--text); }
.pos-menu { padding: 16px; }
.pos-search .input { height: 54px; border-radius: var(--radius); font-size: 17px; padding-left: 50px; padding-right: 50px; }
.pos-search > .icon { left: 16px; width: 24px; height: 24px; }
.pos-search > .pos-search-scan { left: auto; right: 16px; }
.pos-cats { display: flex; gap: 10px; margin: 14px 0; overflow-x: auto; scrollbar-width: none; }
.pos-cat { flex: 0 0 auto; min-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); font-size: 15px; font-weight: 600; color: var(--text); }
.pos-cat .icon { width: 30px; height: 30px; color: var(--brand); stroke-width: 1.5; }
.pos-cat.is-active { background: var(--grad-brand); color: var(--on-brand); border-color: transparent; }
.pos-cat.is-active .icon { color: var(--on-brand); }
.pos-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-height: calc(100vh - 290px); overflow-y: auto; padding: 2px; }
.pos-dish { display: flex; flex-direction: column; gap: 4px; padding: 0 0 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-align: left; color: var(--text); overflow: hidden; box-shadow: var(--shadow-sm); }
.pos-dish:hover { box-shadow: var(--shadow); }
.pos-dish-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.pos-dish-media img { width: 100%; height: 100%; object-fit: cover; }
.pos-badge { position: absolute; top: 8px; left: -24px; padding: 3px 28px; transform: rotate(-20deg); background: var(--grad-brand); color: var(--on-brand); font-size: 12px; font-weight: 700; }
.pos-dish-mark { position: absolute; top: 6px; right: 6px; }
.pos-dish-name { padding: 0 10px; font-size: 16px; font-weight: 700; line-height: 1.2; min-height: 2.4em; }
.pos-dish-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.pos-dish-foot strong { font-size: 20px; }
.pos-plus { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--grad-brand); color: var(--on-brand); }
.pos-plus .icon { width: 20px; height: 20px; stroke-width: 2.6; }
.pos-order { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pos-types .segment { flex: 1; height: 50px; font-size: 18px; }
.pos-who-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pos-who-row .input, .pos-who-row .select { height: 48px; font-size: 16px; font-weight: 600; }
.pos-extra { display: grid; gap: 10px; }
.pos-order-head { display: flex; align-items: center; justify-content: space-between; }
.pos-order-head h2 { font-size: 22px; font-weight: 800; }
.pos-order-head small { font-size: 16px; font-weight: 500; }
.pos-clear { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--danger); font-weight: 600; }
.pos-lines { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; }
.pos-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.pos-line-name { font-size: 16px; font-weight: 700; line-height: 1.2; }
.pos-line-name small { display: block; font-weight: 500; font-size: 13px; color: var(--text-2); }
.pos-line .qty { flex: none; }
.pos-line-unit { width: 56px; text-align: right; color: var(--text-2); }
.pos-line-total { width: 64px; text-align: right; font-size: 17px; }
.pos-remove { display: grid; place-items: center; width: 28px; height: 28px; border: 0; background: none; color: var(--muted); }
.pos-remove .icon { width: 18px; height: 18px; }
.pos-empty { padding: 20px 0; text-align: center; color: var(--muted); }
.pos-adjust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pos-adjust-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: var(--radius); border: 1px solid var(--brand-line); background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 16px; }
.pos-coupon-tag { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--success); color: var(--on-brand); font-size: 13px; }
.pos-totals div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 17px; }
.pos-totals dt { display: inline-flex; align-items: center; gap: 6px; }
.pos-totals dd { margin: 0; font-weight: 600; }
.pos-totals .is-discount, .pos-totals .is-discount dd { color: var(--success); font-weight: 700; }
.pos-totals .is-discount dt { color: var(--text); }
.pos-payable { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 12px 16px; border-radius: var(--radius); background: var(--brand-soft-2); font-size: 22px; font-weight: 800; }
.pos-payable strong { font-size: 28px; }
.pos-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pos-act { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 10px 6px; border-radius: var(--radius); border: 1.5px solid var(--brand-line); background: var(--surface); color: var(--text); }
.pos-act .icon { width: 26px; height: 26px; color: var(--brand); }
.pos-act strong { font-size: 19px; }
.pos-act small { font-size: 13px; color: var(--text-2); }
.pos-pay-row { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 0.62fr)); gap: 10px; }
.pos-pay { display: flex; align-items: center; justify-content: center; gap: 12px; height: 70px; border: 0; border-radius: var(--radius); background: linear-gradient(135deg, var(--success-2), var(--success)); color: var(--on-brand); font-size: 26px; font-weight: 800; box-shadow: 0 8px 20px color-mix(in srgb, var(--success) 30%, transparent); }
.pos-pay .icon { width: 32px; height: 32px; }
.pos-method { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--surface); font-weight: 700; font-size: 16px; cursor: pointer; }
.pos-method input { position: absolute; opacity: 0; }
.pos-method .icon { width: 28px; height: 28px; color: var(--success); }
.pos-method:has(input:checked) { border-color: var(--success); background: var(--success-bg); }
.pos-held-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pos-held-row small { display: block; color: var(--muted); }
.pos-opt-title { font-size: 18px; font-weight: 800; }

@media (max-width: 1100px) {
    .pos { grid-template-columns: 1fr; }
    .pos-grid { max-height: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .is-pos .st-main { padding: 10px; }
    .pos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .pos-dish-name { font-size: 13px; }
    .pos-dish-foot strong { font-size: 15px; }
    .pos-cat { min-width: 70px; font-size: 12px; padding: 8px; }
    .pos-pay-row { grid-template-columns: 1fr 1fr 1fr; }
    .pos-pay { grid-column: 1 / -1; height: 56px; font-size: 22px; }
    .pos-method { height: 56px; }
    .pos-line-unit { display: none; }
}

/* =====================================================================
   Staff sign-in (layouts/auth)
   ===================================================================== */
.auth-body { background: var(--bg); }
.au { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.au-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 30px; padding: 40px; background: var(--grad-dark); color: var(--on-dark); }
.au-panel-copy { position: relative; z-index: 1; max-width: 440px; }
.au-panel-title { font-size: 38px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.au-panel-text { margin-top: 12px; color: var(--on-dark-muted); font-size: 17px; }
.au-features { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.au-features li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
.au-features .icon { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--dark-2); color: var(--brand-2); }
.au-panel-img { position: absolute; right: -10%; bottom: -6%; width: 80%; opacity: .5; -webkit-mask-image: radial-gradient(circle at 60% 60%, var(--black) 30%, transparent 70%); mask-image: radial-gradient(circle at 60% 60%, var(--black) 30%, transparent 70%); }
.au-form-side { display: grid; place-items: center; padding: 30px 20px; }
.au-card { width: 100%; max-width: 440px; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.au-brand { margin-bottom: 18px; }
.auth-title { font-size: 28px; font-weight: 800; }
.auth-sub { color: var(--text-2); margin-bottom: 16px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-row { font-size: 14px; }
.auth-recovery { margin-top: 12px; font-size: 14px; }
.auth-switch { margin-top: 14px; text-align: center; font-size: 14px; }
.demo-logins { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border-strong); display: flex; flex-direction: column; gap: 8px; }
.demo-logins-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.demo-logins-note { margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.demo-login { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.demo-login-icon { width: 36px; height: 36px; }
.demo-login-icon .icon { width: 20px; height: 20px; }
.demo-login-body { flex: 1; min-width: 0; font-size: 12.5px; }
.demo-login-role { font-weight: 700; font-size: 13.5px; }
.demo-login-line span { color: var(--muted); }
@media (max-width: 900px) {
    .au { grid-template-columns: 1fr; }
    .au-panel { display: none; }
    .au-card { padding: 22px 18px; box-shadow: var(--shadow); }
}
