.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0 12px}.metric-card{padding:12px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:8px;min-width:0}.site-shell .metric-card h2{font-size:12px;color:var(--ui-muted);font-weight:500}.metric-card strong{font-size:24px;line-height:32px;font-weight:650;font-variant-numeric:tabular-nums;display:block;margin:4px 0}.metric-card p{font-size:12px;color:var(--ui-muted)}.console-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:550;white-space:nowrap}.console-badge.success{color:var(--ui-success);background:var(--ui-success-bg)}.console-badge.warning{color:var(--ui-warning);background:var(--ui-warning-bg)}.console-badge.danger{color:var(--ui-danger);background:var(--ui-danger-bg)}.console-badge.neutral{color:var(--ui-muted);border-color:var(--ui-line)}.console-tabs{display:flex;gap:4px;overflow:auto;border-bottom:1px solid var(--ui-line);margin-bottom:8px}.console-tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent}.console-tabs button[aria-selected=true]{border-color:var(--ui-yellow);font-weight:650}.console-panel{min-width:0}.console-panel:focus-visible{outline-offset:0}.console-chart{background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:8px;padding:12px}.console-chart svg{width:100%;height:auto;max-height:240px;display:block}.console-chart rect{fill:var(--ui-chart)}.console-chart polyline{fill:none;stroke:var(--ui-chart);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.console-chart .chart-axis{fill:none;stroke:var(--ui-muted);stroke-width:1}.console-chart table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}.console-chart th,.console-chart td{padding:8px;border-bottom:1px solid var(--ui-line);text-align:left}.console-chart td:last-child,.console-chart th:last-child{text-align:right}.chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.confirm-target{font-weight:700;margin-bottom:8px!important}.confirm-dialog>p{margin:8px 0}.confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.site-shell .danger{background:#b42318;color:#fff;border-color:#b42318}.site-shell .danger:hover{background:#912018}.state-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.console-table{border-collapse:separate;border-spacing:0;width:100%;font-variant-numeric:tabular-nums}.console-table th{position:sticky;top:0;z-index:2;background:var(--ui-surface);font-size:12px;text-align:left;height:40px;padding:0 8px;border-bottom:1px solid var(--ui-line)}.console-table th button{height:36px;min-height:36px;font-size:12px;border:0;background:transparent;padding:0;justify-content:flex-start}.console-table td{height:40px;padding:0 8px;border-bottom:1px solid var(--ui-line);font-size:13px;white-space:nowrap}.console-table .numeric{text-align:right}.console-table .table-actions{width:120px;text-align:right}.console-table td button{height:36px;min-height:36px;border:0;background:transparent;padding:0 8px}.console-table td details{position:relative;display:inline-block}.console-table td details .popover{min-width:160px}.console-table tr:has([data-row-select]:checked){background:var(--ui-selected)}.console-table .row-selection{height:36px;width:44px}.console-table .row-selection input{height:36px}.console-table .row-label{font-weight:600}.console-table .sub-label{display:none}.console-filter{display:flex;align-items:center;gap:8px;margin:4px 0}.console-filter label{display:flex;gap:8px;align-items:center;margin:0;font-size:12px}.console-filter input{width:200px}.console-filter .primary{padding:0 12px}.console-table-wrap{position:relative;max-height:calc(100dvh - 216px);overflow:auto;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-surface)}.console-table-wrap th:first-child{width:52px}.console-table-wrap td:first-child{padding:0 4px}.console-detail{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px 8px}.console-detail dt{color:var(--ui-muted)}.console-detail dd{margin:0;overflow-wrap:anywhere}.console-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0}.site-shell .console-section-heading h2{font-size:14px}.site-shell .console-section-heading button{padding:0 8px}.console-note{font-size:12px;color:var(--ui-muted)}
@media(max-width:767px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}.metric-card{padding:8px}.metric-card strong{font-size:20px;line-height:24px}.metric-card p{font-size:11px}.chart-grid,.state-grid{grid-template-columns:minmax(0,1fr)}.console-table-wrap{max-height:none;border:0;background:transparent;overflow:visible}.console-table,.console-table tbody{display:block}.console-table thead{display:none}.console-table tr{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:0 8px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:8px;margin-bottom:8px;padding:2px 4px}.console-table td{display:flex;align-items:center;border:0;min-width:0;height:44px;padding:0;font-size:12px}.console-table td:first-child{grid-column:1;grid-row:1/3;padding:0;align-items:center;justify-content:center;height:88px}.console-table .device-title{grid-column:2;grid-row:1;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.console-table .device-location{grid-column:2;grid-row:2;height:36px;color:var(--ui-muted)}.console-table .device-status{grid-column:3;grid-row:1;justify-content:flex-end}.console-table .device-heartbeat{display:none}.console-table .table-actions{grid-column:3;grid-row:2;justify-content:flex-end;width:auto;height:44px}.console-table td button{height:44px;min-height:44px}.console-table .row-selection,.console-table .row-selection input{height:44px;width:44px}.console-filter{flex-wrap:wrap}.console-filter label{width:100%;display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px}.console-filter input{width:100%}.console-filter .primary{margin-left:auto}.console-detail{grid-template-columns:80px minmax(0,1fr)}.console-chart{padding:8px}.confirm-actions button{flex:1}.console-tabs button{flex:1;font-size:12px;padding:0 8px}}
.site-shell .platform-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:8px 0 16px}.site-shell .platform-shortcuts a{display:flex;flex-direction:column;gap:4px;min-height:88px;padding:16px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow);color:var(--ui-text)}.site-shell .platform-shortcuts strong{font-size:15px;font-weight:650;color:var(--ui-link)}.site-shell .platform-shortcuts span{font-size:12px;line-height:1.5;color:var(--ui-muted)}.site-shell .platform-shortcuts a:hover{border-color:var(--ui-yellow);background:var(--ui-selected)}.site-shell .sessions-nav.account-links,.site-shell .sessions-nav.quick-links{margin:0 0 16px}.site-shell .sessions-nav.account-links a,.site-shell .sessions-nav.quick-links a{padding:0 12px;border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-surface);color:var(--ui-link);font-weight:550}.site-shell .sessions-nav.account-links a:hover,.site-shell .sessions-nav.quick-links a:hover{border-color:var(--ui-yellow);background:var(--ui-selected)}.site-shell .history-previous{margin:2px 0 0;font-size:12px;color:var(--ui-muted)}
.site-shell .reinstall-dashboard,.site-shell #reinstall-dialog{--white:var(--ui-surface);--paper:var(--ui-page);--black:var(--ui-text);--muted:var(--ui-muted);--line:var(--ui-line);--yellow:var(--ui-warning-bg);--orange:var(--ui-yellow);--orange-pressed:var(--ui-accent-hover);--error:var(--ui-danger);color:var(--ui-text)}.site-shell .reinstall-primary{color:var(--ui-on-accent)}.site-shell #reinstall-dialog .reinstall-primary{border-color:var(--ui-yellow)}.site-shell #reinstall-dialog button,.site-shell .reinstall-dashboard button{border-radius:var(--ui-radius)}.site-shell .reinstall-dashboard button{border-color:var(--ui-line);background:var(--ui-surface);color:var(--ui-link);font-weight:600}.site-shell .reinstall-dashboard button:hover{border-color:var(--ui-yellow);background:var(--ui-selected)}.site-shell #reinstall-dialog :focus-visible,.site-shell .reinstall-dashboard :focus-visible{outline-color:var(--ui-focus)}.site-shell .reinstall-dashboard .admin-topbar{min-height:44px;margin-bottom:8px;padding:0;border-bottom:0}.site-shell .admin-topbar h1{margin:0}.site-shell .admin-topbar p{margin:2px 0 0;font-size:12px;color:var(--ui-muted);overflow-wrap:anywhere}.site-shell .reinstall-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin:0 0 8px}.site-shell .reinstall-heading h2{margin:0;font-size:16px}.site-shell .reinstall-heading p{margin:0;font-size:12px;color:var(--ui-muted)}.site-shell .reinstall-list{margin:0;padding:0;list-style:none;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:var(--ui-radius)}.site-shell .reinstall-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:8px 12px;border-bottom:1px solid var(--ui-line)}.site-shell .reinstall-list li:last-child{border-bottom:0}.site-shell .reinstall-list li>div{display:flex;flex-direction:column;min-width:0}.site-shell .reinstall-list span{font-size:12px;color:var(--ui-muted);overflow-wrap:anywhere}.site-shell .reinstall-empty{margin:0;padding:24px 16px;text-align:center;background:var(--ui-surface);border:1px dashed var(--ui-line);border-radius:var(--ui-radius);color:var(--ui-muted)}.site-shell .reinstall-dashboard .notice{margin:0 0 16px;padding:12px 16px;background:var(--ui-info-bg);border-radius:var(--ui-radius)}
.site-shell .overview-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin:0 0 8px}.site-shell .overview-heading h2{margin:0;font-size:16px}.site-shell .overview-heading p{margin:0;font-size:12px;color:var(--ui-muted)}.site-shell .overview-cards{margin:0 0 16px}.site-shell .metric-card h3{margin:0 0 4px;font-size:12px;font-weight:500;color:var(--ui-muted)}.site-shell .metric-card>strong,.site-shell .metric-card a strong{display:block;font-size:24px;font-weight:650;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.site-shell .metric-card a{display:block;border-radius:6px;color:var(--ui-link)}.site-shell .metric-card a:hover strong{text-decoration:underline}.site-shell .metric-card[data-empty] p,.site-shell .metric-card .metric-note{margin:4px 0 0}.site-shell .overview-trend{margin:0 0 16px;padding:16px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:var(--ui-radius)}.site-shell .overview-trend h2{margin:0 0 8px;font-size:16px}.site-shell .overview-trend h3{margin:12px 0 4px;font-size:13px;color:var(--ui-muted)}.site-shell .trend-chart{display:block;width:100%;height:180px;color:var(--ui-chart)}.site-shell #dashboard-range{display:inline-flex;flex-wrap:wrap;gap:8px}
@media(max-width:767px){.site-shell .platform-shortcuts{grid-template-columns:minmax(0,1fr);gap:8px}.site-shell .platform-shortcuts a{min-height:72px;padding:12px}.site-shell .reinstall-list li{flex-wrap:wrap}.site-shell .metric-card>strong,.site-shell .metric-card a strong{font-size:20px}.site-shell .overview-trend{padding:12px}}
.site-shell #dashboard-refresh-status,.site-shell #dashboard-reload{margin:0 0 12px;font-size:12px;color:var(--ui-muted)}.site-shell #dashboard-reload a{color:var(--ui-link)}
.site-shell .overview-trend>p{margin:0 0 8px;font-size:12px;color:var(--ui-muted)}.site-shell .trend-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 12px}.site-shell .trend-panel{min-width:0;padding:8px 12px;background:var(--ui-page);border-radius:var(--ui-radius)}.site-shell .trend-panel h3{margin:4px 0}.site-shell .trend-table table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.site-shell .trend-table caption{text-align:left;font-size:12px;color:var(--ui-muted);padding:0 0 4px}.site-shell .trend-table th,.site-shell .trend-table td{padding:8px 12px;border-bottom:1px solid var(--ui-line);text-align:right;white-space:nowrap}.site-shell .trend-table th[scope=row],.site-shell .trend-table thead th:first-child{text-align:left}.site-shell .trend-table thead th{font-size:12px;font-weight:600;color:var(--ui-muted)}.site-shell .trend-more{margin:8px 0 0}.site-shell .trend-more a{display:inline-flex;align-items:center;min-height:44px;color:var(--ui-link);font-weight:600}
@media(max-width:1023px){.site-shell .trend-charts{grid-template-columns:minmax(0,1fr)}}
.site-shell .trend-table{overflow-x:auto}.site-shell .trend-table td,.site-shell .trend-table th{height:auto}@media(max-width:767px){.site-shell .trend-table th,.site-shell .trend-table td{padding:8px}}
@media(max-width:767px){.site-shell .sessions-nav.quick-links{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}.site-shell .sessions-nav.quick-links a{flex:none}}
.report-wrap{position:relative;max-height:calc(100dvh - 216px);overflow:auto;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-surface)}.report-table{border-collapse:separate;border-spacing:0;width:100%;font-variant-numeric:tabular-nums}.report-table th,.report-table td{height:40px;padding:0 12px;border-bottom:1px solid var(--ui-line);font-size:13px;white-space:nowrap;text-align:left}.report-table thead th{position:sticky;top:0;z-index:2;background:var(--ui-surface);font-size:12px;color:var(--ui-muted);font-weight:550}.report-table tbody th{font-weight:550}.report-table .numeric{text-align:right}.report-table .strong{font-weight:650}.report-table td.attention{color:var(--ui-warning);font-weight:650}.report-table tbody tr:hover{background:var(--ui-selected)}.report-table tfoot th,.report-table tfoot td{position:sticky;bottom:0;background:var(--ui-surface);font-weight:700;border-top:2px solid var(--ui-line);border-bottom:0}.report-quick{display:flex;gap:4px;margin:0 0 8px}.report-quick a{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border:1px solid var(--ui-line);border-radius:999px;background:var(--ui-surface);font-size:13px}.report-filters select{min-height:44px;border:1px solid var(--ui-line);background:var(--ui-surface);color:var(--ui-text);border-radius:8px;padding:0 8px;font-size:16px}.report-filters .report-check{gap:8px}.report-filters .report-check input{width:auto;min-height:0;height:20px}
@media(max-width:767px){.report-wrap{max-height:none}.report-quick{margin-top:4px}.report-filters .report-check{display:flex}}
@media print{.site-sidebar,.site-top,.bottom-nav,[data-filter-home],.report-quick,.page-actions,.report-tabs,.skip-link,.toast{display:none!important}.site-main{margin:0!important;padding:0!important}.report-wrap{max-height:none;overflow:visible;border:0}.report-table thead th,.report-table tfoot th,.report-table tfoot td{position:static}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.order-table th,.order-table td{height:48px}.order-table small{display:block;font-size:11px;line-height:14px;color:var(--ui-muted);font-weight:400}.order-table .order-id a{font-weight:650;color:var(--ui-link)}.order-table .order-time.muted{color:var(--ui-muted);font-weight:400}.order-table .order-product{max-width:240px;overflow:hidden;text-overflow:ellipsis}.order-table .order-result .console-badge+.console-badge{margin-left:4px}.order-owed{color:var(--ui-warning);font-weight:650}.order-clear{color:var(--ui-muted)}.order-pages{align-items:center;justify-content:space-between}.order-page-count{font-size:13px;color:var(--ui-muted)}
.order-heading .order-back{display:inline-flex;align-items:center;min-height:32px;font-size:13px;color:var(--ui-link)}.site-shell .order-heading .order-uuid{margin:2px 0 0;font-size:12px;color:var(--ui-muted);font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}.order-heading .order-copy-status{flex-basis:100%;margin:0;color:var(--ui-success)}.order-heading .order-copy-status:empty{display:none}
.order-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:12px;align-items:start}.order-main,.order-side{display:grid;gap:12px;min-width:0}.order-panel{min-width:0;padding:16px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:8px}.order-panel h2{margin:0 0 8px;font-size:14px}.order-panel p{margin:8px 0 0}.order-panel .report-wrap{max-height:none;margin-top:8px}.order-panel.pending{border-color:var(--ui-warning)}.order-panel .order-total{font-size:16px;font-weight:700}.order-panel .order-vend{margin:0;font-weight:650}.order-vend.vend-success{color:var(--ui-success)}.order-vend.vend-failed{color:var(--ui-danger)}.order-vend.vend-unknown{color:var(--ui-warning)}.order-vend.vend-not_vended{color:var(--ui-muted)}.order-vend-code{display:block;margin-top:2px;font-size:12px}.order-cash{margin:0}
.order-payload{margin:12px 0 0;padding:12px 16px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:8px}.order-payload summary{min-height:32px;cursor:pointer;font-weight:600}.order-payload pre{max-height:360px;overflow:auto;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1023px){.order-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:767px){.order-wrap{overflow:visible;border:0;background:none}.order-table,.order-table tbody{display:block}.order-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.order-table tr.order-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 8px;padding:12px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:8px}.order-table tr.order-row>*{height:auto;padding:0;border:0;white-space:normal;text-align:left}.order-table tr.order-row:hover{background:var(--ui-surface)}.order-table .order-time{grid-column:1/3;font-size:12px}.order-table .order-device{grid-column:3;grid-row:1;text-align:right;font-size:12px}.order-table tr.order-row td.order-device::before{display:inline;margin-right:4px}.order-table .order-id,.order-table .order-product,.order-table .order-result,.order-table .order-attention{grid-column:1/-1}.order-table .order-product{max-width:none}.order-table .order-result{display:block}.order-table td[data-label]::before{content:attr(data-label);display:block;font-size:11px;color:var(--ui-muted);font-weight:400}.order-table td.order-attention:has(.order-clear){display:none}.order-panel{padding:12px}}
/* 手機上訂單卡片、訂單明細與報表表格裡的連結至少 44px 高，手指點得到。 */
@media(max-width:767px){.order-table .order-id a,.order-table .order-resolve,.order-heading .order-back,.order-panel .order-device a,.report-table td a,.report-table tbody th a{display:inline-flex;align-items:center;min-height:44px}}
/* CLOUD-DISPLAY-1114 A2: a test-marked order stays listed, grayed. M5: the phone card is time, status, product × items and amount; 找零／退款 only when not 0, a cancelled order one gray line, the whole card opens the order. */
.order-table tr.is-test>*{color:var(--ui-muted)}
@media(max-width:767px){.order-table tr.order-row{position:relative;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:10px 12px}.order-table tr.order-row>.order-time{grid-column:1;grid-row:1;align-self:center}.order-table tr.order-row>.order-result{grid-column:2;grid-row:1;text-align:right;white-space:nowrap}.order-table tr.order-row>.order-product{grid-column:1;grid-row:2;font-weight:600;overflow:hidden;text-overflow:ellipsis}.order-table tr.order-row>.order-product small{display:inline;margin-left:4px}.order-table tr.order-row>td:nth-child(6){grid-column:2;grid-row:2;text-align:right;font-weight:700}.order-table tr.order-row>td:nth-child(6)::before{display:none}.order-table tr.order-row>td:nth-child(7),.order-table tr.order-row>td[data-zero]{display:none}.order-table tr.order-row>td:nth-child(8),.order-table tr.order-row>td:nth-child(9){grid-column:1/-1;font-size:12px;color:var(--ui-muted)}.order-table tr.order-row>td:nth-child(8)::before,.order-table tr.order-row>td:nth-child(9)::before{display:inline;margin-right:4px}.order-table tr.order-row>.order-device{grid-column:1/-1;grid-row:auto;text-align:left;color:var(--ui-muted)}.order-table[data-single-machine] tr.order-row>.order-device{display:none}.order-table tr.order-row>.order-id{position:absolute;inset:0;z-index:1;padding:0}.order-table tr.order-row>.order-id a{display:block;width:100%;height:100%;min-height:0;font-size:0;color:transparent}.order-table tr.order-row>.order-attention{position:relative;z-index:2}.order-table tr.order-row.is-cancelled{padding:6px 12px;color:var(--ui-muted)}.order-table tr.is-cancelled>.order-product,.order-table tr.is-cancelled>td.numeric{display:none}.order-table tr.order-row.is-test{opacity:.7}}
@media print{.order-wrap{border:0}.order-layout{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.order-heading .order-back,.order-payload{display:none}}
.order-device-id{overflow-wrap:anywhere}.order-device-id a{color:var(--ui-link)}
@media(max-width:767px){.order-items th,.order-items td{height:auto;padding:10px 6px;white-space:normal;vertical-align:top}.order-items thead th{padding-top:8px;padding-bottom:8px}.order-items th,.order-items td:nth-child(3),.order-items td:last-child{white-space:nowrap}}
.site-shell .merchant-machine{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;padding:16px 20px}.site-shell .merchant-machine h3{margin:0;font-size:16px}.site-shell .merchant-machine .history-previous{margin-top:4px}.site-shell .merchant-machine-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.site-shell .merchant-machine-actions form{margin:0}
@media(max-width:767px){.site-shell .merchant-machine-actions{width:100%}.site-shell .merchant-machine-actions>*{flex:1}.site-shell .merchant-machine-actions .button,.site-shell .merchant-machine-actions button{width:100%;justify-content:center}}
.order-panel .order-device a{color:var(--ui-link)}.order-tech{margin-top:12px;font-size:13px;color:var(--ui-muted)}.order-tech summary{display:flex;align-items:center;min-height:44px;cursor:pointer;color:var(--ui-link)}.order-tech .console-detail{margin-top:4px}
/* CLD-46 merchant home: one heading row per card, warning tone only for money owed, empty fleet as a single card, two columns on phones without page scroll. */
.site-shell .dashboard-status:empty{display:none}.site-shell .dashboard-status{margin:0 0 8px;font-size:12px;color:var(--ui-muted)}.site-shell .metric-card[data-tone=warning]{border-color:var(--ui-warning);background:var(--ui-warning-bg)}.site-shell .metric-card[data-tone=warning] h3,.site-shell .metric-card[data-tone=warning] strong{color:var(--ui-warning)}.site-shell .empty-fleet{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:24px;max-width:480px}.site-shell .empty-fleet h2{margin:0;font-size:18px;font-weight:650;color:var(--ui-text)}.site-shell .empty-fleet a.button.primary{display:inline-flex;color:var(--ui-on-accent)}.site-shell .trend-heading{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0 0 8px}.site-shell .trend-heading h2{margin:0;margin-right:auto}.site-shell .trend-updated{font-size:12px;color:var(--ui-muted);font-variant-numeric:tabular-nums}.site-shell .info-tip{font-size:13px;font-weight:400;color:var(--ui-muted);cursor:help}.site-shell #dashboard-range select{min-height:36px}.site-shell #dashboard .metric-grid{min-width:0}
@media(max-width:767px){.site-shell #dashboard .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-shell .empty-fleet{max-width:none;padding:16px}.site-shell .empty-fleet .primary{width:100%}}
/* 電腦版：首頁概覽卡依張數平均撐滿整列，不留空格。 */
@media(min-width:768px){.site-shell .overview-cards{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}}
/* C-117-07: the cash-claim status wraps inside its cell instead of running past the table's right edge. */
/* CLOUD-DISPLAY-1114 M6：手機上只有一台機台時日結表拿掉機台欄（桌機與訂單表不受影響）；手機上每日明細一天一張卡（日期＋燈、銷售額、機內現金），日結只留日期、燈號與明細 */
.cash-day-light{display:none}
@media(max-width:767px){.report-table[data-summary-table][data-single-machine] tr>:nth-child(2){display:none}
  .cash-days-wrap{max-height:none;overflow:visible;border:0;background:none}
  .report-table[data-cash-days],.report-table[data-cash-days] tbody,.report-table[data-cash-days] tfoot{display:block}.report-table[data-cash-days] thead{display:none}
  .report-table[data-cash-days] tr{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;padding:10px 12px;margin:0 0 8px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface)}
  .report-table[data-cash-days] th,.report-table[data-cash-days] td{display:none;height:auto;padding:0;border:0;position:static;white-space:normal}
  .report-table[data-cash-days] tr>th{display:flex;align-items:center;gap:8px;grid-column:1/-1;font-size:15px}
  .report-table[data-cash-days]:not([data-single-machine]) td[data-cash-machine]:not(:empty){display:block;grid-column:1/-1;color:var(--ui-muted)}
  .report-table[data-cash-days] td[data-label]{display:flex;flex-direction:column;text-align:left;font-size:16px}
  .report-table[data-cash-days] td[data-label]::before{content:attr(data-label);font-size:12px;font-weight:400;color:var(--ui-muted)}
  .report-table[data-cash-days] tfoot tr{background:var(--ui-selected)}.report-table[data-cash-days] tfoot th,.report-table[data-cash-days] tfoot td{background:none}
  .cash-day-light{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--ui-success)}.cash-day-light[data-cash-gap=gap]{background:var(--ui-warning)}
  .report-table[data-summary-table] tr>:nth-child(n+4):nth-child(-n+7){display:none}}
.report-table td.claim-status{white-space:normal;min-width:12em;max-width:22em;line-height:1.4;padding-top:6px;padding-bottom:6px}
/* C-120-03: the time, machine, receipt and status cells wrap to two lines so the whole table fits the 1280-wide report without a sideways scroll. */
.report-table[data-claim-table] thead th,.report-table[data-claim-table] tbody th,.report-table[data-claim-table] td:nth-child(2),.report-table td.claim-order{white-space:normal;line-height:1.4;padding-top:6px;padding-bottom:6px}
.report-table[data-claim-table] th,.report-table[data-claim-table] td{padding-left:8px;padding-right:8px}
.report-table[data-claim-table] tbody th{min-width:6em;max-width:7.5em}.report-table[data-claim-table] td:nth-child(2){min-width:5em;max-width:7em}
.claim-closed{color:var(--ui-success)}.claim-closed .icon{width:16px;height:16px;vertical-align:-3px}.report-table td.claim-order{min-width:7em;max-width:10em}.report-table[data-claim-table] td.claim-status{min-width:9em;max-width:14em}
/* C-118-15: an empty report section (no 日結, no 結清) is one line instead of a tall empty card. */
.report-empty-line{margin:4px 0 12px;padding:8px 12px;border:1px dashed var(--ui-line);border-radius:var(--ui-radius);color:var(--ui-muted);font-size:14px;overflow-wrap:anywhere}.report-empty-line strong{color:var(--ui-text)}
/* M841 C1-03／C2-12 LaneState: one light per lane state on every page; 獎品 has its own orange, the word stays in title/aria-label. */
.console-badge.prize{color:#9a3412;background:#ffedd5}:root[data-theme=dark] .console-badge.prize{color:#fdba74;background:#3a2314}.console-badge.lane-state .icon{width:14px;height:14px;flex:none}a.console-badge.lane-state{text-decoration:none}a.console-badge.lane-state:hover{text-decoration:underline}
.lane-state-light{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;flex:none}.lane-state-light .icon{width:14px;height:14px}.lane-state-light.success{color:var(--ui-success);background:var(--ui-success-bg)}.lane-state-light.warning{color:var(--ui-warning);background:var(--ui-warning-bg)}.lane-state-light.danger{color:var(--ui-danger);background:var(--ui-danger-bg)}.lane-state-light.neutral{color:var(--ui-muted);background:var(--ui-skeleton)}.lane-state-light.prize{color:#9a3412;background:#ffedd5}:root[data-theme=dark] .lane-state-light.prize{color:#fdba74;background:#3a2314}
/* M841 C2-04 PresenceText: 在線 green, 離線 red, 尚未連線 grey. */
.presence-text{display:inline-flex;align-items:center;gap:6px}.presence-text .dot{width:8px;height:8px;border-radius:50%;flex:none;background:var(--ui-muted)}.presence-text[data-presence-light=online] .dot{background:var(--ui-success)}.presence-text[data-presence-light=offline] .dot{background:var(--ui-danger)}
/* M841 C1-32: a table wider than a phone shows a soft shadow on the side where more columns wait (scroll shadows, no script). */
@media(max-width:767px){.report-wrap,.replenishment-table:not(.is-cards){background:linear-gradient(to right,var(--ui-surface) 30%,transparent) left/40px 100% no-repeat local,linear-gradient(to left,var(--ui-surface) 30%,transparent) right/40px 100% no-repeat local,radial-gradient(farthest-side at 0 50%,#0f172a40,transparent) left/14px 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,#0f172a40,transparent) right/14px 100% no-repeat scroll,var(--ui-surface)}}
/* CLOUD-FORM-SAFE-1118: the note above a form whose unsaved input came back (form-draft.js), and the product save status with its 重送 button. */
.draft-notice{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 16px;padding:12px 16px;background:var(--ui-warning-bg);border:1px solid var(--ui-warning);border-radius:var(--ui-radius)}
.draft-notice p{margin:0;flex:1 1 16rem}
.draft-notice button{min-height:44px}
@media(min-width:768px){.draft-notice button{min-height:36px}}
#upload-status .save-retry{margin-inline-start:8px;min-height:44px}
@media(min-width:768px){#upload-status .save-retry{min-height:36px}}
