* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgb(8 122 85 / 28%); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .48; }
.icon { display: inline-block; flex: 0 0 auto; }
.skip-link { position: fixed; z-index: 1000; top: 8px; right: 8px; padding: 10px 16px; color: white; background: var(--brand-900); border-radius: var(--radius-sm); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 0 0 auto; z-index: 50; width: var(--sidebar); padding: var(--space-5) var(--space-4); overflow-y: auto; color: #eaf1f7; background: linear-gradient(180deg, var(--brand-900), var(--brand-950)); box-shadow: -8px 0 32px rgb(7 21 37 / 8%); direction: rtl; }
.brand-block { display: flex; align-items: center; gap: 12px; padding: 0 8px 20px; border-bottom: 1px solid rgb(255 255 255 / 9%); }
.brand-logo { display: grid; width: 46px; height: 46px; place-items: center; color: var(--brand-950); font-size: 22px; font-weight: 900; background: var(--copper-500); border-radius: 15px 15px 7px 15px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 24%); }
.brand-block div { display: grid; gap: 3px; }
.brand-block strong { color: white; font-size: 17px; }
.brand-block small { color: #8ba3ba; font-size: 11px; letter-spacing: .4px; }
.mobile-close { display: none; margin-inline-start: auto; color: white; background: transparent; border: 0; }
.branch-switch { display: grid; gap: 8px; margin: 18px 4px 12px; }
.branch-switch > span { color: #8198ae; font-size: 11px; }
.branch-switch button { display: grid; gap: 3px; width: 100%; padding: 12px; text-align: right; color: #edf5f9; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 8%); border-radius: var(--radius-md); cursor: pointer; transition: background var(--motion-fast); }
.branch-switch button:hover { background: rgb(255 255 255 / 10%); }
.branch-switch small { color: #8fa7bb; font-size: 10px; }
.sidebar nav { display: grid; gap: 3px; padding: 8px 0 110px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; color: #b9c8d5; text-decoration: none; border-radius: 10px; transition: color var(--motion-fast), background var(--motion-fast), transform 100ms; }
.nav-link:hover { color: white; background: rgb(255 255 255 / 6%); }
.nav-link:active { transform: scale(.98); }
.nav-link.active { color: white; background: linear-gradient(90deg, rgb(197 123 69 / 18%), rgb(255 255 255 / 7%)); box-shadow: inset -3px 0 var(--copper-500); }
.nav-link.active .icon { color: #dfa476; }
.nav-link span { font-size: 13px; font-weight: 650; }
.nav-link b { display: grid; min-width: 21px; height: 21px; margin-inline-start: auto; place-items: center; color: var(--brand-950); font-size: 11px; background: var(--copper-500); border-radius: 99px; }
.sidebar-footer { position: absolute; inset: auto 12px 14px; display: flex; gap: 8px; padding-top: 12px; background: var(--brand-950); border-top: 1px solid rgb(255 255 255 / 8%); }
.user-card { display: flex; flex: 1; align-items: center; gap: 9px; padding: 6px; text-align: right; color: white; background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
.user-card:hover { background: rgb(255 255 255 / 6%); }
.user-card > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.user-card strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-card small { color: #879cad; font-size: 10px; }
.user-card i { margin-inline-start: auto; }
.app-content { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: minmax(180px, .65fr) minmax(260px, 1.15fr) minmax(260px, .9fr); align-items: center; gap: 24px; height: 82px; padding: 0 28px; background: rgb(247 244 238 / 88%); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.topbar-title { display: flex; align-items: center; gap: 10px; }
.topbar-title div { display: grid; gap: 2px; }
.topbar-title span { color: var(--muted); font-size: 11px; }
.topbar-title h1 { margin: 0; font-size: 18px; }
.mobile-menu { display: none; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.global-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); transition: border var(--motion-fast), box-shadow var(--motion-fast); }
.global-search:focus-within { border-color: var(--emerald-600); box-shadow: 0 0 0 3px rgb(8 122 85 / 10%); }
.global-search input { min-width: 0; flex: 1; color: var(--ink); background: transparent; border: 0; outline: 0; }
.global-search kbd { padding: 3px 6px; color: #89929a; font-size: 10px; background: #f5f3ef; border: 1px solid #ded9d1; border-radius: 5px; direction: ltr; }
.topbar-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.live-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; color: var(--emerald-700); font-size: 11px; font-weight: 700; background: var(--emerald-100); border-radius: 99px; white-space: nowrap; }
.live-chip i { width: 7px; height: 7px; background: var(--emerald-600); border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 2px rgb(8 122 85 / 25%); animation: pulse 1.8s infinite; }
.live-chip.offline { color: var(--warning-600); background: var(--warning-100); }
.live-chip.offline i { background: var(--warning-600); box-shadow: 0 0 0 2px rgb(168 103 9 / 16%); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgb(8 122 85 / 8%); } }
.icon-button { position: relative; display: inline-grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; background: white; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; transition: transform 100ms, box-shadow var(--motion-fast), border var(--motion-fast); }
.icon-button:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.icon-button:active { transform: scale(.96); }
.icon-button b { position: absolute; top: -4px; right: -4px; display: grid; min-width: 18px; height: 18px; padding: 0 4px; place-items: center; color: white; font-size: 9px; background: var(--danger-600); border: 2px solid var(--canvas); border-radius: 99px; }
.icon-button.dark { color: #a8bac9; background: rgb(255 255 255 / 5%); border-color: rgb(255 255 255 / 8%); }
.primary-button, .secondary-button, .danger-button, .danger-ghost, .text-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; font-size: 12px; font-weight: 800; border-radius: 10px; cursor: pointer; transition: transform 100ms, box-shadow var(--motion-fast), background var(--motion-fast), border var(--motion-fast); }
.primary-button { color: white; background: var(--emerald-600); border: 1px solid var(--emerald-600); box-shadow: 0 5px 12px rgb(8 122 85 / 16%); }
.primary-button:hover { background: var(--emerald-700); box-shadow: 0 8px 18px rgb(8 122 85 / 22%); }
.primary-button:active, .secondary-button:active, .danger-button:active { transform: scale(.98); }
.primary-button.compact { min-height: 38px; padding: 8px 13px; }
.secondary-button { color: var(--ink); background: white; border: 1px solid var(--line-strong); }
.secondary-button:hover { background: #fbfaf8; box-shadow: var(--shadow-sm); }
.danger-button { color: white; background: var(--danger-600); border: 1px solid var(--danger-600); }
.danger-ghost { color: var(--danger-600); background: transparent; border: 1px solid #f2c7c3; }
.text-button { min-height: 34px; padding: 6px 8px; color: var(--emerald-700); background: transparent; border: 0; }
.text-button:hover { background: var(--emerald-100); }
.full { width: 100%; }
main { max-width: 1800px; margin: 0 auto; padding: 24px 28px 48px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; animation: enter 240ms var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }
.page-heading h2 { margin: 4px 0 4px; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.4px; }
.page-heading p { max-width: 690px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.eyebrow { color: var(--copper-700); font-size: 10px; font-weight: 900; letter-spacing: .3px; }
.page-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.metrics-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card { display: flex; min-height: 110px; align-items: flex-start; gap: 13px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); animation: enter 280ms var(--ease) both; }
.metric-card:nth-child(2) { animation-delay: 30ms; }.metric-card:nth-child(3) { animation-delay: 60ms; }.metric-card:nth-child(4) { animation-delay: 90ms; }
.metric-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 12px; }
.metric-icon.emerald { color: var(--emerald-700); background: var(--emerald-100); }.metric-icon.copper { color: var(--copper-700); background: var(--copper-100); }.metric-icon.navy { color: var(--brand-800); background: #e7eef5; }.metric-icon.blue { color: var(--info-600); background: var(--info-100); }
.metric-card > div { display: grid; min-width: 0; gap: 4px; }
.metric-card small { color: var(--muted); font-size: 11px; }.metric-card strong { font-size: clamp(18px, 2vw, 25px); white-space: nowrap; }.metric-card span:last-child { color: var(--emerald-700); font-size: 10px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head > div { display: grid; gap: 2px; }.panel-head h3 { margin: 0; font-size: 15px; }.panel-head .eyebrow { font-size: 9px; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .75fr); gap: 16px; align-items: stretch; }
.floor-panel { min-width: 0; overflow: hidden; }.floor-wrap { padding: 12px 16px 10px; }.floor-stage { position: relative; min-height: 460px; overflow: hidden; background-color: #fdfcf9; background-image: linear-gradient(#eee9e1 1px, transparent 1px), linear-gradient(90deg, #eee9e1 1px, transparent 1px); background-size: 28px 28px; border: 2px solid var(--brand-800); border-radius: 8px 26px 8px 8px; direction: ltr; }
.floor-stage::after { position: absolute; inset: 36% 7% 34%; content: ''; pointer-events: none; border-top: 1px dashed #d8d2c8; border-bottom: 1px dashed #d8d2c8; }
.floor-label { position: absolute; z-index: 0; color: #9a9288; font-size: 9px; font-weight: 700; direction: rtl; }.floor-label.quiet { top: 2%; left: 4%; }.floor-label.group { top: 36%; left: 4%; }.floor-label.window { top: 68%; left: 4%; }
.floor-door { position: absolute; z-index: 2; bottom: -1px; left: 45%; padding: 5px 16px; color: var(--muted); font-size: 9px; background: white; border: 1px solid var(--brand-800); border-bottom: 0; border-radius: 8px 8px 0 0; }
.cafe-zone { position: absolute; z-index: 1; top: 38%; right: 1.3%; bottom: 10%; display: grid; width: 8%; place-content: center; justify-items: center; gap: 7px; color: var(--copper-700); background: var(--copper-100); border: 1px dashed #d8ab86; border-radius: 8px; direction: rtl; }.cafe-zone b { font-size: 8px; writing-mode: vertical-rl; }
.floor-seat { --x: 0%; --y: 0%; --w: 15%; --h: 18%; position: absolute; z-index: 3; top: var(--y); left: var(--x); display: grid; width: var(--w); height: var(--h); min-width: 58px; padding: 7px; place-content: center; color: white; background: var(--emerald-600); border: 3px solid white; border-radius: 8px; box-shadow: 0 0 0 1px rgb(7 21 37 / 13%), 0 7px 14px rgb(7 21 37 / 10%); cursor: pointer; user-select: none; touch-action: none; transition: transform var(--motion-fast), box-shadow var(--motion-fast), opacity var(--motion-fast); direction: rtl; }
.floor-seat:hover { z-index: 5; transform: translateY(-2px); box-shadow: 0 0 0 2px rgb(8 122 85 / 25%), 0 10px 20px rgb(7 21 37 / 15%); }.floor-seat:active, .floor-seat.dragging { transform: scale(.98); }.floor-seat.dragging { z-index: 10; opacity: .82; box-shadow: var(--shadow-lg); }.floor-seat.selected { box-shadow: 0 0 0 4px rgb(197 123 69 / 32%), var(--shadow-md); }
.floor-seat strong { font-size: 15px; }.floor-seat small { font-size: 8px; opacity: .82; }
.floor-seat.occupied { background: var(--copper-500); }.floor-seat.reserved { background: #d59a26; }.floor-seat.cleaning { color: var(--ink); background: #d9d4cc; }.floor-seat.maintenance { color: #67717b; background: #b9bec4; }.floor-seat.round { border-radius: 50%; }.floor-seat.long { border-radius: 8px; }
.chairs::before, .chairs::after { position: absolute; top: 28%; width: 7px; height: 44%; content: ''; background: #c8c1b8; border-radius: 2px; }.chairs::before { left: -8px; }.chairs::after { right: -8px; }
.floor-seat.long .chairs::before, .floor-seat.long .chairs::after { height: 55%; top: 23%; }
.floor-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 4px 0; direction: rtl; }.floor-legend span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }.floor-legend i { width: 10px; height: 10px; background: var(--emerald-600); border-radius: 3px; }.floor-legend i.occupied { background: var(--copper-500); }.floor-legend i.reserved { background: #d59a26; }.floor-legend i.cleaning { background: #d9d4cc; }.floor-legend i.maintenance { background: #aeb4bb; }
.live-panel { min-height: 100%; overflow: hidden; }.session-list { display: grid; max-height: 620px; overflow: auto; }.session-card { padding: 16px; border-bottom: 1px solid var(--line); }.session-card:last-child { border-bottom: 0; }.session-head { display: flex; align-items: center; gap: 9px; }.session-head > div:nth-child(2) { display: grid; gap: 2px; min-width: 0; }.session-head strong { font-size: 13px; }.session-head span { color: var(--muted); font-size: 9px; }.session-head .status-pill { margin-inline-start: auto; }.more-button { padding: 6px; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }.more-button:hover { background: var(--surface-muted); }
.avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: var(--brand-800); font-size: 12px; font-style: normal; font-weight: 900; background: #e7eef5; border-radius: 13px; }.avatar.small { width: 34px; height: 34px; font-size: 10px; border-radius: 10px; }.avatar.tiny { width: 29px; height: 29px; font-size: 9px; border-radius: 9px; }.avatar.large { width: 64px; height: 64px; font-size: 17px; border-radius: 18px; }
.status-pill { display: inline-flex; min-height: 24px; align-items: center; justify-content: center; padding: 4px 8px; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 800; background: var(--surface-muted); border: 0; border-radius: 99px; white-space: nowrap; }.status-pill.active, .status-pill.served { color: var(--emerald-700); background: var(--emerald-100); }.status-pill.paused, .status-pill.preparing, .status-pill.warning { color: var(--warning-600); background: var(--warning-100); }.status-pill.completed { color: var(--info-600); background: var(--info-100); }.status-pill.new { color: var(--danger-600); background: var(--danger-100); }.status-pill.ready { color: var(--info-600); background: var(--info-100); }
.session-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }.session-stats span { display: grid; gap: 4px; padding-inline-start: 8px; border-inline-start: 1px solid var(--line); }.session-stats span:first-child { padding: 0; border: 0; }.session-stats small { color: var(--muted); font-size: 8px; }.session-stats b { font-size: 11px; }.live-value { color: var(--emerald-700); font-variant-numeric: tabular-nums; direction: ltr; }
.session-total { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px; padding: 10px 12px; background: var(--surface-muted); border-radius: 10px; }.session-total span { color: var(--muted); font-size: 9px; }.session-total strong { color: var(--emerald-700); font-size: 15px; }.session-total button { grid-column: 2; grid-row: 1 / 3; color: var(--emerald-700); font-size: 9px; font-weight: 800; background: transparent; border: 0; cursor: pointer; }
.dashboard-bottom { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; margin-top: 16px; }.orders-list { display: grid; }.order-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 62px; padding: 10px 16px; border-bottom: 1px solid var(--line); }.order-row:last-child { border-bottom: 0; }.product-emoji { display: grid; width: 38px; height: 38px; place-items: center; font-size: 20px; background: var(--surface-muted); border-radius: 10px; }.order-row div { display: grid; gap: 2px; }.order-row strong { font-size: 11px; }.order-row small { color: var(--muted); font-size: 9px; }.order-row > b { font-size: 11px; }.order-row .status-pill { cursor: pointer; }
.timeline { display: grid; gap: 0; margin: 0; padding: 8px 16px; list-style: none; }.timeline li { position: relative; display: flex; gap: 10px; min-height: 53px; padding: 10px 0; }.timeline li:not(:last-child)::after { position: absolute; top: 26px; right: 4px; bottom: -13px; width: 1px; content: ''; background: var(--line); }.timeline li > i { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 5px; flex: 0 0 auto; background: var(--copper-500); border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px var(--copper-500); }.timeline div { display: grid; gap: 4px; }.timeline strong { font-size: 10px; font-weight: 700; line-height: 1.5; }.timeline span { color: var(--muted); font-size: 8px; }
.floor-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }.editor-canvas { overflow: hidden; }.editor-toolbar { display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); }.editor-toolbar > div { display: flex; gap: 6px; }.editor-toolbar > span { color: var(--muted); font-size: 10px; }.tool { display: grid; width: 34px; height: 34px; place-items: center; background: white; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }.tool.active { color: white; background: var(--brand-900); }.editor-canvas .floor-stage { min-height: 650px; }.editor-mode .floor-stage { background-color: #fbfaf7; background-size: 20px 20px; }.inspector { position: sticky; top: 100px; overflow: hidden; }.stack-form { display: grid; gap: 15px; padding: 18px; }.stack-form label, .reconciliation label { display: grid; gap: 7px; }.stack-form label > span, .reconciliation label span { color: var(--ink); font-size: 11px; font-weight: 800; }.stack-form label small { color: var(--muted); font-weight: 500; }.stack-form input, .stack-form select, .reconciliation input { width: 100%; min-height: 42px; padding: 9px 11px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; transition: border var(--motion-fast), box-shadow var(--motion-fast); }.stack-form input:focus, .stack-form select:focus, .reconciliation input:focus { border-color: var(--emerald-600); box-shadow: 0 0 0 3px rgb(8 122 85 / 10%); }.stack-form input:disabled, .stack-form select:disabled { color: var(--muted); background: var(--surface-muted); }.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.size-control { display: flex; align-items: center; justify-content: space-between; }.size-control > span { font-size: 11px; font-weight: 800; }.size-control div { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }.size-control button { width: 34px; height: 34px; background: var(--surface-muted); border: 0; cursor: pointer; }.size-control b { min-width: 42px; text-align: center; font-size: 11px; }.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.summary-strip { display: flex; gap: 24px; margin-bottom: 14px; padding: 12px 16px; background: white; border: 1px solid var(--line); border-radius: 12px; }.summary-strip span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }.summary-strip b { color: var(--ink); }.dot { width: 8px; height: 8px; background: #adb3ba; border-radius: 50%; }.dot.emerald { background: var(--emerald-600); }.dot.warning { background: #d59a26; }
.table-panel { overflow: hidden; }.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }.inline-search { display: flex; width: min(360px, 100%); align-items: center; gap: 8px; padding: 8px 10px; color: var(--muted); background: var(--surface-muted); border-radius: 9px; }.inline-search input { width: 100%; background: transparent; border: 0; outline: 0; }.segmented { display: flex; padding: 3px; background: var(--surface-muted); border-radius: 9px; }.segmented button { padding: 7px 12px; font-size: 10px; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }.segmented button.active { color: var(--emerald-700); background: white; box-shadow: var(--shadow-sm); }
.data-table { overflow-x: auto; }.table-row { display: grid; min-width: 900px; grid-template-columns: 1.35fr .8fr .9fr .9fr .6fr 1fr .8fr 30px; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 16px; text-align: right; background: white; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }.table-row:hover { background: #fdfcf9; }.table-row > span { color: var(--muted); font-size: 10px; }.table-row b { color: var(--ink); }.table-row.table-head { min-height: 40px; color: var(--muted); background: var(--surface-muted); cursor: default; }.person-cell { display: flex; align-items: center; gap: 9px; }.compact-table .table-row { min-width: 600px; grid-template-columns: 1.4fr 1fr 1fr .8fr; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.person-card { padding: 18px; }.person-card-head { display: flex; align-items: center; gap: 10px; }.person-card-head > div { display: grid; gap: 3px; }.person-card h3 { margin: 0; font-size: 14px; }.person-card-head div span { color: var(--muted); font-size: 10px; direction: ltr; }.membership-badge { margin-inline-start: auto; padding: 5px 8px; color: var(--copper-700); font-size: 9px; font-style: normal; font-weight: 800; background: var(--copper-100); border-radius: 99px; }.person-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; padding: 12px; background: var(--surface-muted); border-radius: 10px; }.person-facts span { display: grid; gap: 3px; padding-inline-start: 8px; border-inline-start: 1px solid var(--line); }.person-facts span:first-child { padding: 0; border: 0; }.person-facts small { color: var(--muted); font-size: 8px; }.person-facts b { font-size: 10px; }.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cafe-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(330px, .6fr); gap: 16px; align-items: start; }.category-tabs { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; }.category-tabs button { min-width: 80px; padding: 9px 14px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; }.category-tabs button.active { color: white; background: var(--brand-900); border-color: var(--brand-900); }.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.product-card { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-sm); }.product-visual { display: grid; width: 58px; height: 58px; place-items: center; font-size: 30px; background: linear-gradient(145deg, #f5eee7, #fff); border-radius: 13px; }.product-card > div { display: grid; align-content: center; gap: 2px; }.product-card small, .product-card span { color: var(--muted); font-size: 8px; }.product-card h3 { margin: 0; font-size: 13px; }.product-card > strong { grid-column: 1 / 3; color: var(--emerald-700); font-size: 13px; }.product-card button { grid-column: 1 / 3; }.kitchen-board { position: sticky; top: 100px; overflow: hidden; }
.calendar-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; margin-bottom: 16px; }.calendar-strip button { display: grid; min-height: 76px; place-content: center; gap: 7px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }.calendar-strip button.active { color: white; background: var(--brand-900); border-color: var(--brand-900); box-shadow: var(--shadow-md); }.calendar-strip span { font-size: 9px; }.calendar-strip b { font-size: 18px; }.two-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }.booking-list { display: grid; }.booking-list article { display: grid; grid-template-columns: 55px 1fr auto auto; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line); }.booking-time { color: var(--emerald-700); font-size: 13px; font-weight: 900; direction: ltr; }.booking-list article > div { display: grid; gap: 4px; }.booking-list strong { font-size: 11px; }.booking-list small { color: var(--muted); font-size: 9px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }.plan-card { position: relative; padding: 22px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 18px; }.plan-card.featured { color: white; background: var(--brand-900); border-color: var(--brand-900); box-shadow: var(--shadow-lg); }.plan-card > span { position: absolute; top: 18px; left: 18px; padding: 5px 8px; color: var(--emerald-700); font-size: 9px; background: var(--emerald-100); border-radius: 99px; }.plan-card h3 { margin: 0 0 24px; font-size: 15px; }.plan-card > strong { display: block; font-size: 42px; line-height: 1; }.plan-card > strong small { font-size: 12px; }.plan-card p { color: var(--muted); font-size: 10px; }.plan-card.featured p { color: #aebdca; }.plan-card > div { margin: 18px 0; padding: 12px; font-size: 10px; background: var(--surface-muted); border-radius: 9px; }.plan-card.featured > div { background: rgb(255 255 255 / 8%); }.plan-card.featured .secondary-button { color: white; background: rgb(255 255 255 / 7%); border-color: rgb(255 255 255 / 15%); }
.ledger { display: grid; }.ledger > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }.ledger-icon { display: grid; width: 36px; height: 36px; place-items: center; font-size: 17px; border-radius: 10px; }.ledger-icon.in { color: var(--emerald-700); background: var(--emerald-100); }.ledger-icon.out { color: var(--danger-600); background: var(--danger-100); }.ledger div div { display: grid; gap: 3px; }.ledger strong { font-size: 10px; }.ledger small { color: var(--muted); font-size: 8px; }.ledger > div > b { font-size: 11px; }.positive { color: var(--emerald-700); }.negative { color: var(--danger-600) !important; }.reconciliation { padding-bottom: 16px; }.cash-visual { display: grid; justify-items: center; gap: 6px; margin: 18px; padding: 22px; color: var(--emerald-700); background: var(--emerald-100); border-radius: 14px; }.cash-visual span { color: var(--muted); font-size: 10px; }.cash-visual strong { font-size: 26px; }.reconciliation label { margin: 16px 18px; }.reconcile-row { display: flex; justify-content: space-between; margin: 0 18px 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.reconciliation > button { width: calc(100% - 36px); margin: 0 18px; }
.inventory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }.stock-card { padding: 17px; }.stock-card.low { border-color: #ebc98f; }.stock-card > div:first-child { display: flex; justify-content: space-between; }.stock-icon { display: grid; width: 38px; height: 38px; place-items: center; color: var(--brand-800); background: #e7eef5; border-radius: 10px; }.stock-card h3 { margin: 18px 0 6px; font-size: 13px; }.stock-card > strong { display: block; font-size: 24px; }.stock-card > strong small { font-size: 10px; }.stock-card > span { color: var(--muted); font-size: 9px; }.progress { height: 6px; margin: 12px 0; overflow: hidden; background: var(--surface-muted); border-radius: 99px; }.progress i { display: block; height: 100%; background: var(--emerald-600); border-radius: inherit; }.stock-card.low .progress i { background: #d59a26; }.stock-card footer { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }.stock-card footer small { color: var(--muted); font-size: 8px; }
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 16px; }.staff-card { display: grid; justify-items: center; gap: 7px; padding: 20px; text-align: center; }.staff-card h3 { margin: 4px 0 0; font-size: 13px; }.staff-card > span { color: var(--muted); font-size: 9px; }.staff-card > div:not(.avatar) { display: grid; gap: 3px; margin: 8px 0; }.staff-card small { color: var(--muted); font-size: 8px; }.staff-card b { font-size: 10px; }.permissions-panel { overflow: hidden; }.permission-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); }.permission-grid > * { padding: 12px 16px; font-size: 10px; border-bottom: 1px solid var(--line); }.permission-grid > b { color: var(--muted); background: var(--surface-muted); }.permission-grid i { color: var(--emerald-700); font-style: normal; text-align: center; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.chart-card { min-width: 0; overflow: hidden; }.chart-card.wide { grid-column: 1 / 3; }.chart-legend { display: flex !important; grid-auto-flow: column; gap: 14px !important; }.chart-legend span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; }.chart-legend i { width: 14px; height: 3px; background: var(--emerald-600); }.chart-legend i.copper { background: var(--copper-500); }.line-chart { padding: 12px 18px 16px; }.line-chart svg { width: 100%; height: 210px; overflow: visible; }.line-chart polyline { fill: none; stroke: var(--emerald-600); stroke-width: 3; vector-effect: non-scaling-stroke; }.line-chart polyline.secondary { stroke: var(--copper-500); stroke-width: 2; }.line-chart circle { fill: white; stroke: var(--emerald-600); stroke-width: 2; vector-effect: non-scaling-stroke; }.line-chart .area { fill: url(#area); }.chart-days { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }.bars { display: flex; height: 260px; align-items: flex-end; justify-content: space-around; gap: 14px; padding: 24px 24px 16px; }.bars span { display: grid; width: 9%; height: 100%; align-items: end; justify-items: center; gap: 7px; }.bars i { width: 100%; max-width: 28px; background: linear-gradient(180deg, var(--emerald-600), #4cad8a); border-radius: 7px 7px 2px 2px; }.bars small { color: var(--muted); font-size: 8px; }.rank-list { display: grid; padding: 12px 18px; }.rank-list div { display: grid; grid-template-columns: 25px 1fr 1.3fr 35px; align-items: center; gap: 8px; min-height: 47px; }.rank-list b { color: var(--copper-700); font-size: 10px; }.rank-list span { font-size: 9px; }.rank-list i { height: 5px; overflow: hidden; background: var(--surface-muted); border-radius: 99px; }.rank-list em { display: block; height: 100%; background: var(--copper-500); }.rank-list strong { font-size: 9px; text-align: left; }.heatmap-card { padding-bottom: 16px; }.heatmap { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; padding: 18px; }.heatmap i { aspect-ratio: 1.4; background: rgb(8 122 85 / var(--o)); border-radius: 3px; }.heat-labels { display: flex; justify-content: space-between; padding: 0 18px; color: var(--muted); font-size: 8px; }
.branch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }.branch-card { overflow: hidden; }.branch-cover { display: flex; min-height: 170px; align-items: flex-start; justify-content: space-between; padding: 16px; color: white; background: linear-gradient(135deg, rgb(11 31 54 / 95%), rgb(8 122 85 / 72%)), radial-gradient(circle at 25% 20%, #c57b45, transparent 42%); }.branch-cover > span { font-size: 24px; font-weight: 900; opacity: .28; }.branch-card > div:last-child { padding: 18px; }.branch-card h3 { margin: 0 0 4px; }.branch-card p { margin: 0; color: var(--muted); font-size: 10px; }
.settings-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 16px; align-items: start; }.settings-nav { display: grid; padding: 8px; }.settings-nav button { padding: 12px; text-align: right; background: transparent; border: 0; border-radius: 9px; cursor: pointer; }.settings-nav button.active { color: var(--emerald-700); font-weight: 800; background: var(--emerald-100); }.settings-form { overflow: hidden; }.input-suffix { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 9px; }.input-suffix input { border: 0 !important; box-shadow: none !important; }.input-suffix i { padding: 0 11px; color: var(--muted); font-size: 9px; font-style: normal; white-space: nowrap; }.setting-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; background: var(--surface-muted); border-radius: 10px; }.setting-switch > div { display: grid; gap: 4px; }.setting-switch strong { font-size: 11px; }.setting-switch span { color: var(--muted); font-size: 9px; }.switch { position: relative; width: 42px; height: 24px; flex: 0 0 auto; background: #bdc3c8; border: 0; border-radius: 99px; cursor: pointer; }.switch i { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; background: white; border-radius: 50%; transition: transform var(--motion-fast); }.switch.on { background: var(--emerald-600); }.switch.on i { transform: translateX(-18px); }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; padding: 20px; place-items: center; background: rgb(7 21 37 / 54%); backdrop-filter: blur(5px); animation: fade 160ms ease; }.modal { width: min(500px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: white; border: 1px solid rgb(255 255 255 / 40%); border-radius: 20px; box-shadow: var(--shadow-lg); animation: modal-in 200ms var(--ease); }.modal.wide { width: min(940px, 100%); }.modal > header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; background: rgb(255 255 255 / 94%); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }.modal header h2 { margin: 0 0 4px; font-size: 18px; }.modal header p { margin: 0; color: var(--muted); font-size: 10px; }.modal-body { min-height: 80px; }.price-preview, .payment-total { display: flex; align-items: center; justify-content: space-between; padding: 14px; color: var(--emerald-700); background: var(--emerald-100); border-radius: 11px; }.price-preview span { display: flex; align-items: center; gap: 7px; font-size: 10px; }.price-preview strong { font-size: 16px; }.payment-total { display: grid; justify-items: center; gap: 6px; }.payment-total span { font-size: 10px; }.payment-total strong { font-size: 27px; }
@keyframes fade { from { opacity: 0; } } @keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.session-modal-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); }.session-modal-grid > section { padding: 20px; }.big-timer { display: grid; justify-items: center; gap: 6px; padding: 20px; background: var(--surface-muted); border-radius: 14px; }.big-timer small { color: var(--muted); }.big-timer strong { color: var(--brand-900); font-size: clamp(36px, 6vw, 56px); line-height: 1.1; font-variant-numeric: tabular-nums; direction: ltr; }.session-actions { display: flex; gap: 8px; margin: 12px 0; }.session-actions button { flex: 1; }.order-add { margin-top: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }.bill-item { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 9px; padding: 10px 12px; border-top: 1px solid var(--line); }.bill-item > span { font-size: 21px; }.bill-item div { display: grid; gap: 3px; }.bill-item b { font-size: 10px; }.bill-item small { color: var(--muted); font-size: 8px; }.bill-item > strong { font-size: 10px; }.bill-item > button { width: 25px; height: 25px; color: var(--danger-600); background: var(--danger-100); border: 0; border-radius: 7px; cursor: pointer; }.muted-copy { padding: 16px; color: var(--muted); font-size: 10px; }.bill-summary { display: grid; align-content: start; gap: 0; padding: 20px; background: var(--brand-900); color: white; }.bill-summary h3 { margin: 0 0 18px; }.bill-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; color: #b9c8d5; font-size: 10px; border-bottom: 1px solid rgb(255 255 255 / 9%); }.bill-summary b { color: white; }.bill-summary .bill-total { align-items: end; margin-bottom: 18px; padding: 18px 0; }.bill-total strong { color: #76d4b1; font-size: 24px; }.bill-summary .danger-button { margin-top: 12px; }.role-list { display: grid; gap: 8px; padding: 16px; }.role-list button { display: flex; align-items: center; gap: 10px; padding: 10px; text-align: right; background: white; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }.role-list button.active { border-color: var(--emerald-600); background: var(--emerald-100); }.role-list button > div { display: grid; gap: 3px; }.role-list strong { font-size: 11px; }.role-list small { color: var(--muted); font-size: 8px; }.role-list button > :last-child { margin-inline-start: auto; color: var(--emerald-700); }.notification-list { display: grid; }.notification-list article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }.notification-list article.read { opacity: .68; }.notification-list article > i { display: grid; width: 38px; height: 38px; place-items: center; color: var(--info-600); background: var(--info-100); border-radius: 10px; }.notification-list article > i.warning { color: var(--warning-600); background: var(--warning-100); }.notification-list div { display: grid; gap: 3px; }.notification-list strong { font-size: 11px; }.notification-list p { margin: 0; color: var(--muted); font-size: 9px; }.notification-list article > span { color: var(--muted); font-size: 8px; }.seat-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; }.seat-choice button { display: grid; justify-items: center; gap: 5px; padding: 14px; background: white; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }.seat-choice button:hover { color: var(--emerald-700); border-color: var(--emerald-600); background: var(--emerald-100); }.seat-choice strong { font-size: 10px; }.seat-choice small { color: var(--muted); font-size: 8px; }
.empty-state { display: grid; min-height: 180px; padding: 24px; place-content: center; justify-items: center; gap: 8px; text-align: center; }.empty-state > span { display: grid; width: 54px; height: 54px; place-items: center; color: var(--muted); background: var(--surface-muted); border-radius: 15px; }.empty-state strong { font-size: 12px; }.empty-state p { max-width: 260px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.7; }.toast { position: fixed; z-index: 200; bottom: 24px; left: 24px; display: flex; min-width: 260px; align-items: center; gap: 9px; padding: 13px 16px; color: white; font-size: 11px; font-weight: 800; background: var(--emerald-700); border-radius: 11px; box-shadow: var(--shadow-lg); animation: toast-in 200ms var(--ease); }.toast.error { background: var(--danger-600); } @keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.mobile-scrim { display: none; }
.action-select { min-height: 40px; padding: 8px 12px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; }
.action-select:focus { border-color: var(--emerald-600); box-shadow: 0 0 0 3px rgb(8 122 85 / 10%); }
.check-row { display: flex !important; align-items: center; gap: 9px !important; padding: 11px 12px; background: var(--surface-muted); border-radius: 9px; cursor: pointer; }
.check-row input { width: 18px !important; min-height: 18px !important; accent-color: var(--emerald-600); }
.profile-summary { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 12px; padding: 14px; background: var(--surface-muted); border-radius: 12px; }
.profile-summary > div { display: grid; gap: 3px; }.profile-summary strong { font-size: 12px; }.profile-summary small { color: var(--muted); font-size: 8px; }
.recent-box { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }.recent-box strong { font-size: 10px; }.recent-box span { color: var(--muted); font-size: 9px; }
.manager-list { display: grid; max-height: 58vh; overflow-y: auto; }.manager-list article { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }.manager-list article > div { display: grid; gap: 3px; }.manager-list strong { font-size: 11px; }.manager-list small { color: var(--muted); font-size: 8px; }
.modal-footer { display: flex; justify-content: flex-end; padding: 14px 18px; background: var(--surface-muted); }
.inline-alert { padding: 11px 12px; color: var(--warning-600); font-size: 10px; font-weight: 700; background: var(--warning-100); border: 1px solid #eed39f; border-radius: 9px; }
.roles-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px; }.roles-detail article { padding: 14px; background: var(--surface-muted); border-radius: 11px; }.roles-detail strong { font-size: 11px; }.roles-detail p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.backup-panel, .lock-panel, .confirm-panel { display: grid; justify-items: center; gap: 10px; padding: 28px; text-align: center; }.backup-panel > span, .lock-panel > span { display: grid; width: 64px; height: 64px; place-items: center; color: var(--emerald-700); background: var(--emerald-100); border-radius: 18px; }.backup-panel h3 { margin: 3px 0 0; font-size: 14px; }.backup-panel p, .lock-panel p, .confirm-panel p { max-width: 440px; margin: 0 0 8px; color: var(--muted); font-size: 10px; line-height: 1.8; }.confirm-panel .form-actions { width: 100%; justify-content: center; }
.integration-list { display: grid; }.integration-list article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--line); }.integration-list article > span { display: grid; width: 40px; height: 40px; place-items: center; color: var(--brand-800); background: #e7eef5; border-radius: 11px; }.integration-list article > div { display: grid; gap: 3px; }.integration-list strong { font-size: 11px; }.integration-list small { color: var(--muted); font-size: 8px; }
.editor-canvas .floor-wrap { overflow: auto; }.editor-mode .floor-stage { width: var(--floor-width); min-height: var(--floor-height); transition: width var(--motion-normal), min-height var(--motion-normal); }.floor-wrap.grid-hidden .floor-stage { background-image: none; }
.status-pill:disabled { cursor: default; opacity: 1; }
.receipt-card { margin: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.receipt-card > header { display: flex; align-items: center; gap: 10px; padding: 16px; color: white; background: var(--brand-900); }
.receipt-card > header div { display: grid; gap: 3px; }.receipt-card > header strong { font-size: 13px; }.receipt-card > header small { color: #afc0cf; font-size: 9px; }
.receipt-card > header i { margin-inline-start: auto; padding: 6px 10px; color: #8be0bf; font-size: 9px; font-style: normal; font-weight: 900; background: rgb(139 224 191 / 12%); border: 1px solid rgb(139 224 191 / 24%); border-radius: 99px; }
.receipt-meta { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); }.receipt-meta span { display: grid; gap: 4px; padding: 12px 14px; background: white; }.receipt-meta small { color: var(--muted); font-size: 8px; }.receipt-meta b { font-size: 10px; }
.receipt-lines { display: grid; padding: 12px 16px; }.receipt-lines span { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }.receipt-lines b,.receipt-lines em { font-size: 10px; font-style: normal; }.receipt-lines em { color: var(--muted); }.receipt-lines .receipt-total { margin: 5px -4px; padding: 13px 4px; color: var(--emerald-700); border-block: 2px solid var(--emerald-100); }.receipt-lines .receipt-total b,.receipt-lines .receipt-total em { color: inherit; font-size: 15px; }
.receipt-card > footer { padding: 13px 16px; color: var(--muted); font-size: 9px; text-align: center; background: var(--surface-muted); }.receipt-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 18px 18px; }

@media (max-width: 1250px) {
  :root { --sidebar: 238px; }
  .topbar { grid-template-columns: minmax(160px,.6fr) minmax(230px,1fr) auto; padding-inline: 20px; }
  main { padding-inline: 20px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-layout { grid-template-columns: 1.4fr .8fr; }
  .floor-stage { min-height: 400px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .inventory-grid, .staff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .app-shell { display: block; }
  .sidebar { width: 282px; transform: translateX(105%); transition: transform var(--motion-normal) var(--ease); box-shadow: var(--shadow-lg); }
  .sidebar.mobile-open { transform: none; }
  .mobile-close, .mobile-menu { display: grid; place-items: center; }
  .app-content { grid-column: auto; }
  .topbar { grid-template-columns: auto 1fr auto; }
  .topbar-title > div { display: none; }
  .global-search { max-width: 480px; }
  .live-chip { display: none; }
  .mobile-scrim { position: fixed; inset: 0; z-index: 40; display: block; background: rgb(7 21 37 / 45%); border: 0; }
  .dashboard-layout, .dashboard-bottom, .cafe-layout, .floor-editor-layout { grid-template-columns: 1fr; }
  .live-panel, .kitchen-board, .inspector { position: static; }
  .session-list { grid-template-columns: repeat(2, 1fr); max-height: none; }
  .session-card { border-inline-start: 1px solid var(--line); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .topbar { height: 68px; gap: 9px; padding-inline: 12px; }
  .topbar-actions .primary-button span, .global-search kbd { display: none; }
  .topbar-actions .primary-button { width: 40px; padding: 0; }
  main { padding: 16px 12px 36px; }
  .page-heading { display: grid; align-items: start; }
  .page-heading p { font-size: 11px; }
  .page-actions { width: 100%; overflow-x: auto; }
  .page-actions button { flex: 1; white-space: nowrap; }
  .metrics-grid, .metrics-grid.three, .card-grid, .product-grid, .plan-grid, .two-panel, .report-grid, .branch-grid, .settings-layout { grid-template-columns: 1fr; }
  .metric-card { min-height: 96px; }
  .floor-stage { min-height: 390px; }
  .floor-seat { min-width: 44px; border-width: 2px; }.floor-seat strong { font-size: 12px; }.floor-seat small { display: none; }
  .session-list { grid-template-columns: 1fr; }
  .dashboard-bottom { grid-template-columns: 1fr; }
  .summary-strip { gap: 12px; overflow-x: auto; }.summary-strip span { white-space: nowrap; }
  .table-tools { align-items: stretch; flex-direction: column; }.inline-search { width: 100%; }
  .calendar-strip { gap: 5px; overflow-x: auto; }.calendar-strip button { min-width: 58px; min-height: 65px; }
  .chart-card.wide { grid-column: auto; }.line-chart svg { height: 160px; }.chart-days span:nth-child(even) { display: none; }
  .settings-layout { gap: 12px; }.settings-nav { grid-auto-flow: column; overflow-x: auto; }.settings-nav button { white-space: nowrap; }
  .session-modal-grid { grid-template-columns: 1fr; }.bill-summary { min-height: 300px; }
  .modal-backdrop { padding: 8px; align-items: end; }.modal { width: 100%; max-height: calc(100vh - 16px); border-radius: 20px 20px 12px 12px; }
  .seat-choice { grid-template-columns: repeat(2, 1fr); }
  .roles-detail { grid-template-columns: 1fr; }
  .profile-summary { grid-template-columns: auto 1fr; }.profile-summary > div:last-child { grid-column: 2; }
  .manager-list article { grid-template-columns: auto 1fr auto; }.manager-list article .secondary-button { grid-column: 2 / 4; justify-self: start; }
  .toast { right: 12px; bottom: 12px; left: 12px; min-width: 0; }
}

@media (max-width: 430px) {
  .global-search { padding-inline: 9px; }.global-search input::placeholder { color: transparent; }
  .topbar-actions { gap: 5px; }.icon-button { width: 38px; height: 38px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .two-cols { grid-template-columns: 1fr; }
  .floor-wrap { padding-inline: 8px; }.floor-stage { min-height: 360px; }.cafe-zone { display: none; }
  .order-row { grid-template-columns: auto 1fr auto; }.order-row .status-pill { grid-column: 2 / 4; justify-self: start; }
  .inventory-grid, .staff-grid { grid-template-columns: 1fr; }
}

@media print {
  body > *:not(#app), .app-shell, .modal > header, .receipt-actions, .toast { display: none !important; }
  body, #app, .modal-backdrop, .modal, .modal-body { position: static !important; width: 100% !important; max-height: none !important; padding: 0 !important; overflow: visible !important; background: white !important; box-shadow: none !important; }
  .receipt-card { width: 80mm; margin: 0 auto; border: 0; box-shadow: none; }
}
