@font-face { font-family: Montserrat; src: url('../fonts/montserrat-400.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Montserrat; src: url('../fonts/montserrat-500.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: Montserrat; src: url('../fonts/montserrat-600.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: Montserrat; src: url('../fonts/montserrat-700.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: Montserrat; src: url('../fonts/montserrat-800.woff2') format('woff2'); font-style: normal; font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f3f6fa;
  --white: #fff;
  --ink: #12263c;
  --muted: #607289;
  --faint: #8190a2;
  --border: #e1e8ef;
  --line: #edf1f5;
  --side: #0d2238;
  --teal: #0d776e;
  --teal-dark: #095f58;
  --amber: #a26012;
  --rose: #a7364e;
  --radius: 14px;
  --shadow: 0 2px 4px rgb(15 38 61 / 3%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); background: var(--bg); font: 500 13px/1.55 Montserrat, 'Segoe UI', sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; }
:where(button, a, input, select, textarea):focus-visible { outline: 2px solid #0d9c90; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
svg { flex-shrink: 0; vertical-align: middle; }
strong { font-weight: 700; }
small { font-size: 11px; }
.startup, .loading { display: flex; min-height: 220px; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--muted); }
.startup { min-height: 100dvh; }
.spinner { width: 28px; height: 28px; border: 2px solid #d4e6e9; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.app-frame { --sidebar-width: 238px; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100dvh; }
.app-frame.sidebar-collapsed { --sidebar-width: 77px; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; z-index: 8; overflow: hidden; color: #dde9f6; background: radial-gradient(ellipse at 0 0, #1b354d 0%, transparent 45%), var(--side); }
.brand { display: flex; align-items: center; gap: 12px; text-align: left; border: 0; color: white; background: transparent; min-height: 83px; padding: 17px 20px; width: 100%; border-bottom: 1px solid rgb(211 230 249 / 11%); }
.brand-mark { width: 41px; height: 41px; flex: 0 0 41px; display: grid; place-items: center; background: #f6c17a; color: #172a41; border-radius: 12px; box-shadow: 0 3px 11px rgb(246 193 122 / 13%); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.18; white-space: nowrap; }
.brand-copy strong { font-size: 21px; font-weight: 800; letter-spacing: -.85px; }
.brand-copy strong span { color: #f6c17a; }
.brand-copy small { color: #a4bad1; font-size: 10px; margin-top: 4px; font-weight: 600; }
.sidebar nav { flex: 1; overflow: auto; padding: 22px 12px 14px; scrollbar-width: thin; scrollbar-color: #39556b transparent; }
.nav-group { margin: 0 0 22px; }
.nav-group:last-child { margin-bottom: 0; }
.nav-group > p { color: #97adc2; text-transform: uppercase; font-size: 9.5px; font-weight: 750; letter-spacing: .12em; margin: 0 0 7px 12px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 9px 12px; border: none; border-radius: 8px; background: transparent; text-align: left; color: #c3d4e5; font-size: 12px; font-weight: 650; white-space: nowrap; }
.nav-link svg { color: #a8bdd1; }
.nav-link:hover { background: #1b344a; color: #fff; }
.nav-link.nav-active { background: #1a4355; color: #f1fffd; }
.nav-link.nav-active::before { content: ''; position: absolute; inset: 9px auto 9px 0; width: 3px; border-radius: 3px; background: #50cfbd; }
.nav-link.nav-active svg { color: #69d9c6; }
.booking-count { margin-left: auto; min-width: 22px; padding: 2px 5px; border-radius: 5px; text-align: center; background: #f0d093; color: #322616; font-size: 10px; font-weight: 800; }
.sidebar-footer { min-height: 71px; border-top: 1px solid rgb(211 230 249 / 11%); display: flex; align-items: center; gap: 10px; padding: 13px 16px; }
.outlet-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px; color: #9ec5dd; background: #1b394e; }
.outlet-name { min-width: 0; flex: 1; display: grid; line-height: 1.3; gap: 3px; }
.outlet-name strong { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outlet-name small { color: #9fb5ca; font-size: 10px; }
.sidebar-footer .icon-button { background: transparent; border-color: transparent; color: #9eb4cc; width: 25px; height: 29px; }
.sidebar-footer .icon-button:hover { color: white; background: #234057; }
.sidebar-collapsed .brand { padding-inline: 18px; }
.sidebar-collapsed .nav-group { margin-bottom: 14px; }
.sidebar-collapsed :is(.brand-copy, .nav-group > p, .nav-link > span, .outlet-name, .sidebar-footer > button) { display: none; }
.sidebar-collapsed .nav-link { justify-content: center; }
.sidebar-collapsed .sidebar-footer { justify-content: center; }
.mobile-overlay { display: none; }

.workspace { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 66px; position: sticky; top: 0; z-index: 5; background: rgb(255 255 255 / 98%); border-bottom: 1px solid var(--border); padding: 0 27px; gap: 12px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-left { flex: 1; }
.topbar-right { flex-shrink: 0; }
.topbar-left .icon-button { margin-right: 4px; }
.topbar-outlet { display: flex; align-items: center; min-width: 0; max-width: 245px; gap: 8px; padding: 2px 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.topbar-outlet strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.topbar-outlet-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #f5f8fa; color: var(--muted); }
.topbar-outlet-mark img { width: 100%; height: 100%; object-fit: contain; }
.topbar-outlet-mark svg { width: 19px; height: 19px; }
.topbar-path { display: flex; align-items: center; min-width: 0; gap: 8px; padding-left: 12px; border-left: 1px solid var(--border); white-space: nowrap; }
.topbar-path svg { color: var(--faint); }
.breadcrumb-group { color: var(--muted); }
.breadcrumb-page { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.topbar-separator { height: 27px; width: 1px; background: var(--border); margin-left: 3px; }
.mode-pill { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; border-radius: 7px; padding: 7px 9px; border: 1px solid transparent; font-size: 11px; font-weight: 700; }
.mode-demo { color: #88520d; background: #fff5e7; border-color: #f3e0c3; }
.mode-demo:hover { background: #ffebce; }
.mode-live { color: #146c62; background: #eaf8f4; border-color: #d6ece5; }
.mode-live:hover { background: #dff4ec; }
.owner-avatar { width: 33px; height: 33px; flex: 0 0 33px; display: grid; place-items: center; border-radius: 50%; background: #e9effb; color: #385a95; font-weight: 800; font-size: 12px; }
.owner-label { max-width: 160px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-size: 12px; font-weight: 700; }
.content { width: 100%; max-width: 1690px; margin-inline: auto; padding: 26px 28px 38px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 21px; }
.page-heading h1 { font-size: clamp(22px, 2.25vw, 31px); line-height: 1.19; letter-spacing: -.75px; font-weight: 800; }
.page-heading p { color: var(--muted); font-size: 12px; margin-top: 6px; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; border-radius: 8px; line-height: 1.35; transition: background-color .15s, border-color .15s; }
.button { min-height: 37px; padding: 8px 12px; white-space: nowrap; }
.button-primary { background: var(--teal); border-color: var(--teal); color: white; box-shadow: 0 2px 4px rgb(5 108 97 / 15%); }
.button-primary:hover:not(:disabled) { background: var(--teal-dark); border-color: var(--teal-dark); }
.button-secondary { background: #fff; color: var(--ink); border-color: #dce5ed; }
.button-secondary:hover:not(:disabled) { background: #f2f7fa; border-color: #c5d6e0; }
.button-text { background: transparent; color: var(--teal-dark); min-height: 30px; padding: 6px 7px; }
.button-text:hover:not(:disabled) { background: #eaf6f4; }
.button-danger { background: #ad364e; color: white; }
.button-danger:hover:not(:disabled) { background: #8f2640; }
.icon-button { width: 33px; height: 33px; padding: 0; color: #60758c; background: #fff; border-color: #e4eaf0; }
.icon-button:hover:not(:disabled) { color: var(--teal-dark); background: #edf7f5; border-color: #d4e9e5; }
.table-scroll .icon-button { width: 28px; height: 28px; border-color: transparent; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 17px; }
.metric-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; min-height: 119px; display: flex; flex-direction: column; }
.metric-top { display: flex; justify-content: space-between; align-items: center; gap: 9px; min-height: 34px; }
.metric-top > span:first-child { color: var(--muted); font-weight: 700; font-size: 11.5px; }
.metric-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; }
.metric > strong { font-size: clamp(20px, 2vw, 28px); font-weight: 800; letter-spacing: -.72px; line-height: 1.25; margin: 3px 0 4px; overflow-wrap: anywhere; }
.metric > small { color: var(--muted); font-size: 10.5px; font-weight: 550; }
.tone-blue { color: #315eae; background: #eaf0ff; }
.tone-mint { color: #096e60; background: #e5f7f0; }
.tone-amber { color: #89540a; background: #fff2de; }
.tone-violet { color: #684eac; background: #f1ebfc; }
.tone-rose { color: #a7364e; background: #fcebf0; }
.tone-slate { color: #4f657a; background: #edf2f7; }

.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.panel + .panel { margin-top: 16px; }
.dashboard-panels { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(265px, 1fr); gap: 16px; margin-bottom: 17px; }
.dashboard-panels .panel + .panel { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; gap: 10px; min-height: 57px; }
.panel-head h2 { font-size: 14px; font-weight: 800; letter-spacing: -.13px; line-height: 1.35; }
.panel-head p { color: var(--muted); font-size: 11.5px; margin-top: 3px; overflow-wrap: anywhere; }
.period-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #516881; background: #f2f6fa; border: 1px solid #e9eef4; border-radius: 7px; padding: 5px 8px; font-size: 10.5px; font-weight: 650; white-space: nowrap; }
.trend-panel, .status-panel { min-height: 271px; }
.chart { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 9px; padding: 7px 19px 0 13px; }
.chart-axis { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; height: 150px; margin: 0; color: #657b90; font-size: 9px; font-weight: 600; line-height: 1; }
.chart-axis span:first-child { transform: translateY(-3px); }
.chart-axis span:last-child { transform: translateY(3px); }
.chart-plot { position: relative; display: grid; grid-template-columns: repeat(var(--bars), minmax(0, 1fr)); min-height: 176px; height: 176px; padding: 0 2px; }
.chart-grid { position: absolute; inset: 0 0 26px; border-bottom: 1px solid #dfe8f0; background-image: repeating-linear-gradient(to bottom, #e8eef4 0 1px, transparent 1px 25%); pointer-events: none; }
.chart-grid::after { content: ''; position: absolute; bottom: var(--zero); height: 1px; left: 0; right: 0; background: #dce6ee; }
.chart-column { min-width: 0; z-index: 1; }
.chart-bin { width: 100%; height: 150px; position: relative; border: 0; border-radius: 5px; background: transparent; padding: 0; display: block; }
button.chart-bin:hover, .chart-bin:hover { background: rgb(215 234 233 / 34%); }
.chart-bar { position: absolute; width: min(23%, 22px); height: var(--height); bottom: var(--bottom); border-radius: 4px 4px 1px 1px; }
.bar-sales { background: #118b7e; right: calc(50% + 2px); }
.bar-payments { background: #a1d8ce; left: calc(50% + 2px); }
.chart-x { height: 26px; display: flex; justify-content: center; align-items: center; font-size: 9px; white-space: nowrap; color: #5d7188; font-weight: 650; }
.chart-legend { display: flex; justify-content: center; gap: 15px; padding: 2px 10px 14px; font-size: 10px; color: var(--muted); font-weight: 600; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend-sales { background: #118b7e; }
.legend-payments { background: #a1d8ce; }

.status-body { display: flex; align-items: center; gap: 15px; padding: 12px 17px 16px; min-height: 160px; }
.donut { width: 120px; height: 120px; border-radius: 50%; flex: 0 0 120px; background: var(--ring); display: grid; place-items: center; }
.donut > div { width: 92px; height: 92px; background: white; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.donut strong { font-size: 26px; line-height: 1.13; letter-spacing: -.7px; font-weight: 800; }
.donut span { color: var(--muted); font-size: 9px; font-weight: 650; }
.status-key { flex: 1; min-width: 0; }
.status-key > div { display: flex; justify-content: space-between; align-items: center; gap: 5px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.status-key > div:last-child { border: 0; }
.status-key > div > span { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #4b6279; white-space: nowrap; }
.status-key strong { font-variant-numeric: tabular-nums; font-size: 12px; }
.status-dot { width: 8px; height: 8px; display: inline-block; flex: 0 0 8px; border-radius: 50%; }
.dot-blue { background: #5f8ce7; }
.dot-amber { background: #f2b964; }
.dot-mint { background: #24aa97; }
.status-footer { border-top: 1px solid var(--line); padding: 10px 16px; min-height: 48px; display: flex; align-items: center; }
.status-footer > span { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--teal-dark); font-weight: 700; }
.overdue-link { color: #8c5b18; display: flex; width: 100%; align-items: center; gap: 7px; font-size: 10.5px; }
.overdue-link > svg:last-child { margin-left: auto; }
.overdue-link:hover { color: #613808; text-decoration: underline; }

.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 11.5px; }
thead { background: #f6f8fb; color: #536a82; }
th { font-weight: 750; font-size: 10.5px; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: 17px; }
th:last-child, td:last-child { padding-right: 17px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafcfe; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { font-weight: 650; }
tfoot { background: #f6f8fb; }
tfoot td { border-top: 1px solid var(--border); border-bottom: 0; font-weight: 700; }
td small.cell-sub { display: block; margin-top: 2px; color: var(--muted); font-weight: 500; font-size: 10px; white-space: normal; }
.table-link { background: transparent; border: 0; padding: 2px 0; color: #176b75; font-size: 11.5px; font-weight: 750; text-align: left; }
.table-link:hover { text-decoration: underline; }
.report-customer-link { text-decoration: underline; text-underline-offset: 3px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 750; border-radius: 5px; padding: 4px 7px; line-height: 1.25; white-space: nowrap; width: fit-content; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.person { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; }
.person-button { border: 0; background: transparent; padding: 0; color: var(--ink); text-align: left; }
.person-button:hover { color: var(--teal-dark); }
.mini-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 8.5px; font-weight: 800; flex: 0 0 28px; }
.avatar-0 { background: #eeeafb; color: #6851a8; }
.avatar-1 { background: #e6f5ee; color: #27705f; }
.avatar-2 { background: #fbeadd; color: #99531a; }
.avatar-3 { background: #e8effc; color: #44659d; }
.avatar-4 { background: #fbeaf1; color: #9c4768; }
.more-items { font-size: 9px; padding: 2px 4px; border-radius: 4px; color: var(--muted); background: #edf1f6; }
.text-rose { color: var(--rose); font-weight: 700; }
.text-amber { color: var(--amber); font-weight: 700; }
.text-muted { color: var(--muted); }
.empty { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px; gap: 7px; }
.empty-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #eef3f8; color: #688198; }
.empty p { color: var(--muted); font-size: 11.5px; max-width: 55ch; }
.empty .button { margin-top: 5px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10.5px; padding: 8px 14px; }
.pagination > div { display: flex; align-items: center; gap: 7px; }
.pagination .icon-button { width: 28px; height: 27px; }

.tabs { display: flex; gap: 6px; align-items: center; border-bottom: 1px solid var(--border); padding: 0 13px; overflow-x: auto; scrollbar-width: thin; }
.tab { min-height: 43px; padding: 9px 10px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-weight: 700; font-size: 11px; white-space: nowrap; }
.tab:hover { color: var(--teal-dark); background: #f8fbfc; }
.tab-active { color: var(--teal-dark); border-bottom-color: #108c7e; }
.filters, .cash-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cash-filters { margin-bottom: 15px; align-items: center; }
.filter-label { display: grid; gap: 3px; font-size: 10.5px; color: var(--muted); font-weight: 700; }
input:not([type="checkbox"]), select, textarea { min-width: 0; min-height: 37px; color: var(--ink); border: 1px solid #dce5ed; background: #fff; border-radius: 7px; padding: 7px 9px; font-weight: 550; font-size: 12px; }
input::placeholder, textarea::placeholder { color: #71869b; opacity: 1; }
input:disabled, select:disabled { background: #f1f5f9; color: #667b91; }
textarea { resize: vertical; }
.filters input, .filters select, .cash-filters input { font-size: 11px; min-height: 34px; }
.search-field { display: flex; align-items: center; gap: 6px; width: min(310px, 100%); padding-left: 8px; border: 1px solid #dce5ed; border-radius: 7px; color: #627890; background: #fff; }
.search-field input { width: 100%; border: 0; padding-left: 2px; }
.search-field:focus-within { outline: 2px solid #0d9c90; outline-offset: 2px; }
.search-field input:focus { outline: 0; }
.service-search .filters { border-bottom: 0; }
.service-group > .panel-head { flex-wrap: wrap; background: #f6f8fb; border-bottom: 1px solid var(--line); }
.service-group-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.service-group-title h2 { overflow-wrap: anywhere; }
.service-group thead { background: #fff; }
.service-group-empty, .service-group-hint { padding: 13px 17px; font-size: 11.5px; }
.service-name { display: inline-flex; align-items: center; gap: 9px; }
.service-name .metric-icon { width: 28px; height: 28px; flex-basis: 28px; }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.board-column { background: #eaf0f5; border: 1px solid #e2eaf1; border-radius: var(--radius); padding: 10px; min-height: 152px; }
.board-header { display: flex; align-items: center; justify-content: space-between; padding: 5px 4px 11px; }
.board-header h2 { font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 7px; }
.board-card { background: #fff; border: 1px solid #e1e8ef; padding: 10px 11px; border-radius: 9px; margin-bottom: 8px; }
.board-card:last-child { margin-bottom: 0; }
.board-card-top, .board-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.board-card-top > span { font-size: 9px; white-space: nowrap; color: var(--muted); }
.board-card > strong { display: block; margin-top: 5px; font-size: 12px; overflow-wrap: anywhere; }
.board-card > p { font-size: 11px; color: var(--muted); margin: 2px 0 7px; }
.board-card-footer { border-top: 1px solid var(--line); padding-top: 5px; }
.board-card-footer .button { font-size: 10.5px; }
.board-empty { color: var(--muted); font-size: 11px; padding: 10px 4px; }

.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; margin-bottom: 14px; }
.segmented { display: inline-flex; padding: 3px; gap: 3px; border-radius: 8px; background: #eef3f8; }
.segmented .tab { min-height: 31px; padding: 5px 11px; border: 0; border-radius: 6px; }
.segmented .tab-active { color: var(--teal-dark); background: white; box-shadow: 0 1px 4px #173c5914; }
.report-controls { display: flex; gap: 6px; align-items: center; }
.report-controls input { min-height: 34px; font-size: 11px; max-width: 156px; }
.report-controls input[type="number"] { max-width: 100px; }
.report-customer { width: min(300px, 100%); margin-inline-end: auto; min-width: 0; }
.report-customer select { width: 100%; min-height: 34px; font-size: 11px; }
.report-customer-panel .panel-head { flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--line); }
.customer-receivables .num:last-child { color: var(--teal-dark); }
.report-trend { margin-bottom: 16px; }
.report-trend .chart-bin { cursor: default; }
.report-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10.5px; padding: 12px 2px 0; }
.report-section + .report-section { border-top: 1px solid var(--border); margin-top: 6px; }
.report-section .panel-head { min-height: 47px; padding-block: 11px; }
.settings-body { padding: 2px 16px 16px; }
.outlet-profile .panel-head { padding: 19px 24px; align-items: flex-start; }
.outlet-profile .panel-head h2 { font-size: 16px; }
.outlet-profile .panel-head button { flex-shrink: 0; }
.outlet-profile .stacked-form { padding: 0 24px 22px; gap: 16px; }
.outlet-profile-grid { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 30px; }
.outlet-logo-field, .outlet-profile-fields { display: grid; align-content: start; gap: 14px; min-width: 0; }
.outlet-profile-fields .form-grid { gap: 14px 16px; }
.outlet-profile label { font-size: 12px; color: var(--ink); }
.outlet-profile input:not([type="file"]) { min-height: 42px; }
.outlet-logo-preview { height: 158px; display: grid; place-items: center; padding: 12px; background: #f4f8fa; border: 1px dashed #c4d6e5; border-radius: 12px; }
.outlet-logo-preview img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.outlet-logo-empty { display: grid; justify-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.outlet-logo-field input { padding: 8px; font-size: 11px; }
.outlet-logo-field input::file-selector-button { margin-right: 7px; }
.outlet-logo-help, .outlet-profile-footer p { color: var(--muted); font-size: 11px; }
.outlet-logo-field .button { justify-self: start; }
.outlet-profile-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line); }
.outlet-profile-footer button { flex-shrink: 0; }
.setting-line { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.setting-line span:first-child { color: var(--muted); }
.settings-body .button { margin-top: 12px; }

.app-dialog { border: 1px solid var(--border); border-radius: 15px; padding: 0; width: min(465px, calc(100vw - 25px)); max-height: calc(100dvh - 36px); color: var(--ink); overflow: hidden; box-shadow: 0 22px 88px #071d3966; }
.app-dialog[open] { display: flex; flex-direction: column; }
.app-dialog::backdrop { background: rgb(10 25 45 / 48%); backdrop-filter: blur(2px); }
.app-dialog.dialog-wide { width: min(755px, calc(100vw - 25px)); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 15px 17px 13px; gap: 12px; border-bottom: 1px solid var(--border); }
.dialog-header h2 { font-size: 18px; line-height: 1.2; font-weight: 800; letter-spacing: -.35px; }
.dialog-header p { margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.dialog-header .icon-button { width: 31px; height: 31px; }
.dialog-form { min-height: 0; display: flex; flex-direction: column; }
.dialog-scroll { min-height: 0; overflow: auto; padding: 14px 17px; overscroll-behavior: contain; }
.dialog-footer { padding: 11px 17px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; background: #f9fbfd; }
.detail-footer { justify-content: space-between; }
.detail-footer > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stacked-form { display: flex; flex-direction: column; gap: 10px; }
.stacked-form > .button { align-self: flex-start; }
.stacked-form label { display: block; font-weight: 700; font-size: 11px; color: #4c6075; }
.stacked-form label :is(input:not([type="checkbox"]), select, textarea) { display: block; width: 100%; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.delivery-route { grid-column: 1 / -1; justify-self: start; align-self: flex-start; }
.delivery-quote output { display: flex; align-items: center; margin-top: 4px; min-height: 36px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; background: #f2f6fa; font-weight: 700; }
.form-hint { color: var(--muted); font-size: 11.5px; }
.delivery-rates-editor input { width: 100%; min-width: 70px; }
.delivery-rates-editor td { padding: 7px 9px; }
.form-section, .detail-section { display: grid; gap: 8px; min-width: 0; }
.form-section + .form-section, .detail-section + .detail-section { padding-top: 12px; border-top: 1px solid var(--line); }
.form-section h3, .detail-section h3 { font-size: 13px; font-weight: 800; }
.form-section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.form-section-head .button { min-height: 28px; font-size: 10.5px; }
.required { color: #af3b54; }
.stacked-form .check-field { display: flex; align-items: center; gap: 6px; }
.check-field input { accent-color: var(--teal); }
.invoice-choices { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.invoice-choices legend { font-weight: 750; padding: 0 4px; font-size: 11px; }
.stacked-form .invoice-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; }
.invoice-choice + .invoice-choice { border-top: 1px solid var(--line); }
.invoice-choice small { display: block; color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.invoice-order-links > :is(button, span) { display: block; }
.order-items { display: grid; gap: 6px; }
.order-line { padding: 8px; display: grid; grid-template-columns: minmax(0, 1.5fr) 92px minmax(79px, .45fr) 29px; align-items: end; gap: 7px; border-radius: 8px; border: 1px solid var(--line); background: #f8fafc; }
.order-line > .icon-button { width: 28px; height: 35px; }
.line-money { display: grid; gap: 6px; line-height: 1.1; min-height: 49px; padding: 2px 3px 5px; }
.line-money span { color: var(--muted); font-size: 10.5px; font-weight: 650; }
.line-money strong { overflow-wrap: anywhere; font-size: 11px; }
.order-totals, .inline-total { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; background: #eaf6f4; border-radius: 8px; padding: 10px 12px; color: #0b655c; }
.order-totals > span, .inline-total > span { font-size: 11px; font-weight: 700; }
.order-totals strong { font-size: 13px; padding-left: 4px; }
.form-error { border: 1px solid #efc4ce; border-radius: 7px; background: #fff2f5; color: #992e48; padding: 7px 9px; font-size: 11px; font-weight: 600; }
.inline-warning { display: flex; align-items: center; gap: 7px; background: #fff6e7; color: #805014; border: 1px solid #f0dfc1; border-radius: 7px; padding: 8px 9px; font-size: 11px; }
.catalog-warning { margin-block: 0 12px; flex-wrap: wrap; justify-content: space-between; }
.stage-change { display: flex; align-items: center; gap: 7px; }
.detail-body { display: grid; gap: 11px; }
.detail-meta { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 7px; }
.detail-meta > div { min-width: 0; background: #f5f8fc; border-radius: 8px; padding: 8px 9px; display: grid; justify-items: start; gap: 4px; align-content: start; }
.detail-meta > div > span:first-child { font-size: 10px; color: var(--muted); font-weight: 700; }
.detail-meta strong, .detail-meta .person { font-size: 11.5px; overflow-wrap: anywhere; }
.detail-meta small { color: var(--muted); font-size: 9.5px; }
.detail-note { overflow-wrap: anywhere; font-size: 11px; padding: 7px 8px; background: #fff9ef; border-radius: 6px; }
.detail-section .table-scroll { border: 1px solid var(--line); border-radius: 8px; }
.detail-section :is(th, td) { padding: 7px 8px; }
.detail-totals { display: grid; justify-self: end; width: min(240px, 100%); gap: 3px; }
.detail-totals > div { display: flex; justify-content: space-between; font-size: 11px; }
.detail-total { border-top: 1px solid var(--border); padding-top: 4px; color: var(--teal-dark); }
.timeline { display: grid; gap: 5px; list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; padding: 4px 0; border-bottom: 1px solid var(--line); }
.timeline li > span:last-child { font-size: 10.5px; color: var(--muted); }
.closing-preview { color: var(--muted); font-size: 11px; }
.closing-preview strong { color: var(--ink); }
.mode-options { display: grid; gap: 7px; }
.mode-option { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 1px solid var(--border); border-radius: 9px; background: white; color: var(--ink); padding: 9px; }
.mode-option:hover, .mode-option.mode-active { border-color: #9bd0c8; background: #f3faf8; }
.mode-option > span:nth-child(2) { flex: 1; display: grid; gap: 1px; }
.mode-option small { color: var(--muted); font-size: 10.5px; }
.mode-option > svg { color: var(--teal); }
.toast-region { position: fixed; z-index: 20; bottom: 18px; right: 18px; max-width: calc(100vw - 36px); }
.toast { display: flex; align-items: center; gap: 7px; padding: 7px 8px 7px 11px; color: #fff; font-size: 11.5px; font-weight: 650; background: #165a51; border-radius: 9px; box-shadow: 0 8px 22px #08283631; }
.toast-error { background: #9c3650; }
.toast .icon-button { background: transparent; border: 0; color: white; width: 27px; height: 27px; }

#print-area { display: none; }
@media (max-width: 1220px) {
  .content { padding-inline: 20px; }
  .topbar { padding-inline: 20px; }
  .status-body { gap: 10px; padding-inline: 11px; }
  .donut { width: 105px; height: 105px; flex-basis: 105px; }
  .donut > div { width: 80px; height: 80px; }
  .metric { padding-inline: 12px; }
}
@media (max-width: 1060px) {
  .app-frame { --sidebar-width: 210px; }
  .dashboard-panels { grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 12px; }
  .metric-grid { gap: 10px; }
  .brand { padding-inline: 13px; }
  .sidebar nav { padding-inline: 9px; }
}
@media (max-width: 900px) {
  .app-frame, .app-frame.sidebar-collapsed { display: block; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 230px; transform: translateX(-100%); visibility: hidden; transition: transform .18s ease, visibility .18s; }
  .mobile-open .sidebar { transform: translateX(0); visibility: visible; }
  .mobile-open .mobile-overlay { position: fixed; inset: 0; z-index: 7; display: block; border: 0; background: #12263c65; }
  .sidebar-collapsed :is(.brand-copy, .nav-group > p, .nav-link > span, .outlet-name, .sidebar-footer > button) { display: revert; }
  .sidebar-collapsed .nav-link { justify-content: flex-start; }
  .sidebar-collapsed .sidebar-footer { justify-content: flex-start; }
  .content { padding-top: 20px; }
}
@media (max-width: 660px) {
  .topbar { padding-inline: 12px; min-height: 56px; }
  .topbar-left, .topbar-right { gap: 6px; }
  .topbar-left .icon-button { margin-right: 0; }
  .topbar-path, .owner-label, .topbar-separator { display: none; }
  .mode-pill { font-size: 9.5px; padding: 5px 6px; gap: 4px; }
  .owner-avatar { width: 28px; height: 28px; flex-basis: 28px; font-size: 10px; }
  .content { padding: 16px 12px 25px; }
  .page-heading { margin-bottom: 13px; align-items: flex-start; }
  .page-heading h1 { font-size: 22px; }
  .page-heading p { font-size: 10.5px; }
  .heading-actions .button { font-size: 10.5px; min-height: 34px; padding-inline: 8px; }
  .metric-grid, .metric-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
  .metric { min-height: 99px; padding: 8px 10px; }
  .metric-top { min-height: 29px; }
  .metric-top > span:first-child { font-size: 10.5px; }
  .metric-icon { width: 28px; height: 28px; flex-basis: 28px; }
  .metric > strong { font-size: 20px; }
  .metric > small { font-size: 9px; }
  .dashboard-panels, .board { grid-template-columns: minmax(0, 1fr); }
  .status-panel { min-height: auto; }
  .status-body { min-height: 133px; padding-inline: 16px; }
  .status-key { max-width: 250px; margin-inline: 8px; }
  .report-toolbar { flex-wrap: wrap; }
  .report-controls { max-width: 100%; }
  .report-customer { order: 1; width: 100%; }
  .chart-x { font-size: 8px; }
  .form-grid { gap: 7px; }
  .dialog-header, .dialog-scroll, .dialog-footer { padding-inline: 11px; }
  .order-line { grid-template-columns: minmax(0, 1fr) minmax(64px, .4fr) 29px; }
  .line-money { grid-column: 1 / 3; grid-row: 2; display: flex; align-items: center; justify-content: space-between; min-height: 21px; padding: 2px; }
  .order-line > .icon-button { grid-column: 3; grid-row: 1; }
  .detail-meta { grid-template-columns: 1fr 1fr; }
  .dialog-footer .button { min-height: 33px; padding-inline: 7px; font-size: 10.5px; }
  .detail-meta > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .outlet-profile .panel-head { padding: 15px; }
  .outlet-profile .stacked-form { padding: 0 15px 15px; }
  .outlet-profile-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .outlet-logo-field { width: min(100%, 210px); }
  .outlet-profile-footer { align-items: flex-start; flex-direction: column; }
  .outlet-profile-footer p:empty { display: none; }
}
@media (max-width: 380px) {
  .page-heading { flex-wrap: wrap; }
  .heading-actions { justify-content: flex-start; }
  .topbar .owner-avatar { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  @page { margin: 11mm; }
  html, body { background: white; color: #111; font-size: 10pt; }
  #laundry-shell, .app-dialog, .toast-region, .startup { display: none !important; }
  #print-area { display: block; }
  .receipt-print { width: 74mm; max-width: 100%; margin: auto; font-size: 9pt; }
  .print-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; border-bottom: 1px solid #9aa7b6; padding-bottom: 8px; margin-bottom: 10px; }
  .print-head > div:last-child { text-align: right; }
  .print-outlet { display: flex; align-items: flex-start; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
  .print-outlet p { white-space: pre-line; }
  .print-outlet-logo { width: 15mm; height: 15mm; object-fit: contain; flex-shrink: 0; }
  .print-head h1, .print-head h2 { font-size: 13pt; line-height: 1.3; }
  .print-head p, .print-head strong { font-size: 9pt; }
  .receipt-print .print-head { display: block; text-align: center; }
  .receipt-print .print-outlet { flex-direction: column; align-items: center; gap: 4px; }
  .receipt-print .print-head > div:last-child { text-align: center; margin-top: 5px; }
  .receipt-print .print-head h1, .receipt-print .print-head h2 { font-size: 11pt; }
  .print-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); font-size: 9pt; line-height: 1.45; gap: 2px 7px; margin: 7px 0; }
  .print-meta dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
  .report-print .print-meta { grid-template-columns: auto auto; width: min(80mm, 100%); }
  .table-scroll { overflow: visible; }
  #print-area table { font-size: 8pt; white-space: normal; }
  #print-area th, #print-area td { padding: 3px 4px; }
  #print-area th { font-size: 7.5pt; }
  #print-area tr { break-inside: avoid; }
  #print-area .panel-head { padding: 5px 0; min-height: 24px; }
  #print-area .report-section { margin-top: 7px; break-inside: auto; }
  #print-area .empty { padding: 5px; min-height: 30px; }
  #print-area .empty-icon { display: none; }
  .print-note { margin-top: 9px; font-size: 8pt; }
  .receipt-footer { text-align: center; border-top: 1px dashed #a3acb5; margin-top: 8px; padding-top: 7px; font-size: 8pt; }
  .signatures { display: flex; justify-content: space-around; gap: 15px; margin-top: 14mm; break-inside: avoid; }
  .signatures > div { min-width: 35mm; text-align: center; border-top: 1px solid #9aa7b6; padding-top: 5px; }
}

.data-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.push-cron { display: grid; gap: 4px; padding: 10px; background: #f2f6fa; border-radius: 7px; }
.push-cron code { overflow-wrap: anywhere; }
.session-actions { margin: 0; }
.logout-button { min-height: 31px; padding: 5px 8px; }
@media (max-width: 660px) {
  .logout-button > span { display: none; }
}

.access-screen { display: grid; place-items: center; min-height: 100dvh; padding: 16px; }
.access-panel { width: min(480px, 100%); padding: 24px; display: grid; gap: 12px; }
.access-panel h1 { font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: -.45px; }
.access-brand { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 6px; }
.access-brand strong { font-weight: 800; }
.access-brand strong span { color: #a26012; }
.access-lead { color: var(--muted); }
.access-panel > a { justify-self: start; }
.import-success { padding: 10px; background: #e5f7f0; color: #096e60; border-radius: 8px; font-weight: 700; }

.login-screen { min-height: 100dvh; display: grid; place-items: center; padding: 10px; background: linear-gradient(#e8f2f7, #edf3f6); }
.login-card { width: min(100%, 420px); border: 1px solid #dbe6ef; border-radius: 21px; background: #fff; padding: 35px 36px 36px; box-shadow: 0 3px 18px #23486407; color: #102a42; }
.login-wordmark { color: #61b6e8; text-align: center; font-size: clamp(32px, 12vw, 50px); font-weight: 800; line-height: 1.2; letter-spacing: -2.4px; margin-bottom: 28px; white-space: nowrap; }
.login-wordmark span { color: #ff9438; }
.login-card h1 { margin: 0 0 3px; color: #084b71; font-weight: 800; font-size: 24px; letter-spacing: -.35px; }
.login-description, .login-help { margin: 0; font-size: 12px; color: #58718b; line-height: 1.52; font-weight: 500; }
.login-description { margin-bottom: 15px; }
.login-card .form-error { margin: 0 0 12px; }
.login-form { display: grid; gap: 13px; }
.login-field { display: grid; gap: 6px; font-size: 12px; font-weight: 650; }
.login-field input { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #c4d4e4; border-radius: 8px; background: #fff; }
.login-show { font-size: 12px; font-weight: 550; display: flex; align-items: center; gap: 7px; cursor: pointer; }
.login-show input { margin: 0; width: 13px; height: 13px; accent-color: #0088bd; }
.login-submit { margin-top: 30px; min-height: 36px; border: none; border-radius: 8px; background: #0086b9; color: #fff; font-size: 12px; font-weight: 750; }
.login-submit:hover { background: #006d9a; }
.login-help { margin-top: 20px; }
@media (max-width: 400px) {
  .login-card { padding-inline: 26px; }
}

.admin-layout { max-width: 1250px; padding: 28px 22px 45px; margin: auto; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-heading h1 { font-size: 26px; line-height: 1.25; margin: 6px 0 0; }
.admin-back, .admin-card a { color: #087da9; font-weight: 700; text-decoration: none; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.admin-grid-list { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.admin-card { min-width: 0; padding: 16px; display: grid; gap: 12px; }
.admin-card h2 { font-size: 16px; margin: 0; }
.admin-details { display: grid; grid-template-columns: max-content 1fr; gap: 5px 12px; margin: 0; }
.admin-details dt { color: var(--muted); }
.admin-details dd { margin: 0; font-weight: 650; }
.permission-groups { display: grid; gap: 8px; }
.permission-groups fieldset { border: 1px solid #dce6ef; border-radius: 8px; padding: 8px 9px 10px; }
.permission-groups legend { color: #355267; font-weight: 750; padding: 0 4px; }
.permission-groups .check-field { align-items: flex-start; margin: 4px 0; }
.permission-groups input { flex: 0 0 auto; }
@media (max-width: 750px) { .admin-grid, .admin-grid-list { grid-template-columns: minmax(0, 1fr); } }

.account-link { color: inherit; text-decoration: none; }
.account-link small { display: block; font-size: 10px; color: var(--muted); }
.settings-access { margin-bottom: 15px; }
.settings-access .data-actions { padding: 0 14px 14px; }
.report-catalog { margin-bottom: 12px; }
.report-catalog .tabs { border-bottom: 0; }
[data-payment-fields] { display: grid; gap: 8px; }
[data-member-box] { border: 1px solid #e3dbfb; border-radius: 10px; background: #fbfaff; padding: 10px; }
.board-card p { line-height: 1.55; }

.topbar-outlet-name { display: grid; min-width: 0; gap: 1px; }
.topbar-outlet-name small { color: var(--muted); font-size: 10px; line-height: 1.2; }
.schedule-panel-note { padding: 12px 16px; margin: 0; }
.schedule-week, .schedule-holiday-list { display: grid; gap: 8px; }
.schedule-week-row { display: grid; grid-template-columns: 67px repeat(2, minmax(0, 1fr)); align-items: center; gap: 8px; }
.schedule-week-row label, .schedule-holiday label { min-width: 0; }
.schedule-week-row input { padding-inline: 5px; }
.schedule-week-row strong { padding-top: 14px; font-size: 12px; }
.schedule-holiday { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.schedule-holiday .icon-button { align-self: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

[data-duplicate-phone]:not([hidden]) { display: block; }
[data-duplicate-phone] p { margin: 0 0 7px; }
[data-duplicate-phone] .data-actions { margin: 7px 0; }
[data-duplicate-phone] .check-field { margin-top: 7px; }

@media screen and (max-width: 720px) {
  #laundry-app { --mobile-nav-height: 69px; }
  #laundry-app .content {
    padding: 20px max(14px, env(safe-area-inset-right)) calc(var(--mobile-nav-height) + 24px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }
  #laundry-app .mobile-topbar {
    min-height: calc(65px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  }
  .mobile-topbar .topbar-outlet { max-width: none; min-height: 46px; gap: 10px; }
  .mobile-topbar .topbar-outlet-mark { width: 39px; height: 39px; flex-basis: 39px; border-radius: 11px; }
  .mobile-topbar .topbar-outlet strong { font-size: 14px; }
  .mobile-topbar .topbar-right { gap: 7px; }
  .mobile-topbar .owner-avatar { display: grid; width: 44px; height: 44px; flex-basis: 44px; font-size: 12px; text-decoration: none; }
  .mobile-booking { position: relative; width: 44px; height: 44px; border-radius: 13px; }
  .mobile-booking[aria-current="page"] { border-color: #c9e7e2; background: #e9f6f4; color: var(--teal-dark); }
  .mobile-booking .booking-count {
    position: absolute;
    inset: -4px -4px auto auto;
    min-width: 19px;
    margin: 0;
    border: 2px solid white;
    border-radius: 999px;
    background: #a23d54;
    color: white;
    font-size: 9px;
    line-height: 1.2;
  }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 6;
    min-height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    padding: 5px max(8px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    gap: 2px;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 18px rgb(17 34 56 / 5%);
  }
  .mobile-nav button {
    flex: 1 1 0;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    min-height: 54px;
    min-width: 0;
    padding: 4px 1px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
  }
  .mobile-nav button[aria-current="page"], .mobile-nav button[aria-expanded="true"] { background: #e9f6f4; color: var(--teal-dark); }
  .mobile-nav button.mobile-new-order { min-width: 64px; margin-inline: 3px; background: var(--teal); color: white; box-shadow: 0 3px 9px rgb(9 95 88 / 18%); }
  #laundry-app .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: auto;
    max-height: min(80dvh, calc(100dvh - env(safe-area-inset-top) - 12px));
    transform: translateY(100%);
    border-radius: 24px 24px 0 0;
    background: white;
    color: var(--ink);
    padding: 0 max(14px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(14px, env(safe-area-inset-left));
  }
  #laundry-app .mobile-open .sidebar { transform: translateY(0); }
  #laundry-app .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px 2px;
    align-items: start;
    overscroll-behavior: contain;
    scrollbar-color: auto;
  }
  html:has(#laundry-app .mobile-open) { overflow: hidden; }
  .mobile-menu-heading, .mobile-menu-tools { display: flex; align-items: center; gap: 7px; padding: 10px 0; }
  .mobile-menu-heading { justify-content: space-between; border-bottom: 1px solid var(--line); }
  .mobile-menu-heading h2 { font-size: 20px; font-weight: 800; }
  .mobile-menu-tools { justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); }
  .mobile-menu-tools .mode-pill { min-height: 44px; font-size: 11px; }
  #laundry-app .mobile-menu-tools .logout-button span { display: inline; }
  #laundry-app .nav-group { margin: 0; }
  #laundry-app .nav-group > p { margin: 0 0 5px 8px; color: var(--muted); }
  #laundry-app .nav-link { gap: 6px; min-height: 44px; padding: 7px; white-space: normal; color: var(--ink); font-size: 11px; }
  #laundry-app .nav-link svg { color: var(--muted); width: 17px; height: 17px; }
  #laundry-app .nav-link.nav-active, #laundry-app .nav-link:hover { color: var(--teal-dark); background: #e9f6f4; }
  #laundry-app .nav-link.nav-active svg { color: var(--teal-dark); }
  #laundry-app .nav-link.nav-active::before { display: none; }
  #laundry-app .nav-link .booking-count { margin-left: auto; }

  #laundry-app .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 11px; margin-bottom: 14px; }
  #laundry-app .page-heading h1 { font-size: 25px; overflow-wrap: anywhere; }
  #laundry-app .page-heading p { font-size: 12px; margin-top: 3px; }
  #laundry-app .heading-actions { justify-content: flex-start; flex-wrap: wrap; gap: 7px; }
  #laundry-app :is(.button, .tab) { min-height: 44px; }
  #laundry-app :is(.button, .heading-actions .button, .dialog-footer .button) { font-size: 12px; padding-inline: 10px; }
  #laundry-app .icon-button { min-width: 44px; min-height: 44px; }
  #laundry-app :is(.filters, .cash-filters, .report-controls, .report-customer, .stacked-form, .app-dialog)
    :is(input:not([type="checkbox"], [type="radio"]), select, textarea) { font-size: 16px; min-height: 44px; }
  #laundry-app .search-field { width: 100%; }
  #laundry-app .search-field input { background: transparent; }
  #laundry-app .tabs { padding-inline: 9px; gap: 4px; }
  #laundry-app .panel-head { padding-inline: 13px; }
  #laundry-app .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #laundry-app .content .dashboard-panels { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 14px; }
  #laundry-app .content .board { grid-template-columns: minmax(0, 1fr); }
  #laundry-app .pagination { padding-inline: 10px; }
  #laundry-app .toast-region { inset: auto 12px calc(var(--mobile-nav-height) + 12px + env(safe-area-inset-bottom)) 12px; max-width: none; }

  .mobile-sales {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 1px;
    min-width: 0;
    padding: 15px 66px 15px 17px;
    border-radius: 17px;
    background: linear-gradient(120deg, #352653, #523477);
    color: white;
    font-size: 13px;
    font-weight: 650;
  }
  .mobile-sales strong { font-size: clamp(25px, 7vw, 33px); font-weight: 800; overflow-wrap: anywhere; line-height: 1.2; }
  .mobile-sales small { color: #f0e8fb; font-size: 11px; margin-top: 5px; }
  .mobile-sales-icon { position: absolute; inset: 15px 15px auto auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #f0e8fb; background: rgb(255 255 255 / 13%); }
  .mobile-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-block: 8px 15px; }
  .mobile-summary .metric { min-height: 0; min-width: 0; padding: 9px 8px; }
  .mobile-summary .metric-top { display: block; min-height: 0; line-height: 1.3; }
  .mobile-summary .metric-top > .metric-icon { display: none; }
  .mobile-summary .metric > strong { margin: 4px 0 2px; }
  .mobile-summary .metric > small { font-size: 10px; line-height: 1.35; }
  .mobile-shortcuts { margin-bottom: 14px; }
  .mobile-shortcuts h2 { font-size: 14px; font-weight: 800; margin-bottom: 7px; }
  .mobile-shortcuts > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .mobile-shortcuts button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-height: 51px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    color: var(--ink);
    font-size: 11px;
    font-weight: 750;
    text-align: left;
    line-height: 1.3;
  }
  .mobile-shortcuts button:hover, button.mobile-record:hover { border-color: #b9dad5; }
  .mobile-shortcuts button > svg { color: var(--muted); }
  .mobile-shortcuts .metric-icon { width: 31px; height: 31px; }

  .mobile-records { display: grid; gap: 8px; padding: 8px; background: #f6f8fb; }
  .mobile-record {
    position: relative;
    display: grid;
    gap: 5px;
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    color: var(--ink);
    text-align: left;
    overflow-wrap: anywhere;
  }
  button.mobile-record { padding-right: 30px; }
  button.mobile-record > svg { position: absolute; inset: 13px 7px auto auto; color: var(--muted); }
  .mobile-record-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 4px 6px; }
  .mobile-record-head > :first-child { min-width: 0; flex: 1 1 116px; display: grid; line-height: 1.35; gap: 3px; }
  .mobile-record-head strong { font-size: 14px; }
  .mobile-record-code { color: var(--teal-dark); font-size: 10px; font-weight: 750; }
  .mobile-record-detail { color: var(--muted); font-size: 12px; }
  .mobile-record-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 11px; }
  .mobile-record-footer > strong { margin-inline-start: auto; }
  .mobile-invoice-orders, .mobile-invoice-action { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .mobile-invoice-orders .table-link { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; }
  .mobile-invoice-action { justify-content: flex-end; }
  .mobile-order-filters { padding: 10px 8px; align-items: center; gap: 6px; }
  .mobile-order-filters .search-field { flex: 1 1 135px; width: auto; min-width: 0; }
  .mobile-order-filters .search-field input { text-overflow: ellipsis; }
  .mobile-order-filters button[aria-expanded="true"] { border-color: #94c9c2; background: #e9f6f4; color: var(--teal-dark); }
  .mobile-order-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .mobile-order-filter-fields :is(.filter-label, input, select) { width: 100%; min-width: 0; }
  .mobile-cash-methods { padding-inline: 12px; }
  .mobile-cash-methods details, .mobile-cash-methods > p { border-top: 1px solid var(--line); }
  .mobile-cash-methods summary, .mobile-cash-methods > p, .mobile-cash-methods dl div { display: flex; align-items: center; gap: 8px; min-height: 44px; }
  .mobile-cash-methods summary { cursor: pointer; list-style: none; }
  .mobile-cash-methods summary::-webkit-details-marker { display: none; }
  .mobile-cash-methods details[open] summary svg { transform: rotate(180deg); }
  .mobile-cash-methods strong, .mobile-cash-methods dd { margin-inline-start: auto; }
  .mobile-cash-methods dl { margin: 0 0 7px; background: #f4f7fa; border-radius: 8px; padding: 5px 9px; }
  .mobile-cash-methods dl div { min-height: 27px; font-size: 11px; }

  #laundry-app .app-dialog {
    margin: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: min(94dvh, calc(100dvh - env(safe-area-inset-top) - 10px));
    border-radius: 22px 22px 0 0;
  }
  #laundry-app :is(.dialog-header, .dialog-scroll, .dialog-footer) { padding-inline: max(13px, env(safe-area-inset-left)) max(13px, env(safe-area-inset-right)); }
  #laundry-app .dialog-footer { padding-bottom: calc(9px + env(safe-area-inset-bottom)); }
  #laundry-app .order-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 7px; }
  #laundry-app .order-line label:first-child { grid-column: 1 / -1; }
  #laundry-app :is(.order-line > .icon-button, .line-money) { grid-column: auto; grid-row: auto; }
  #laundry-app .line-money { display: grid; align-content: end; min-height: 44px; overflow-wrap: anywhere; }
}
.weight-totals { display: grid; gap: 5px; }
