/* Hallmark · pre-emit critique: P4 H4 E4 S5 R5 V4
 * Reference-led reporting workbench · studied: yes · DNA-source: user screenshots
 * Audience: single receiving agent · source: SMLOT report interaction reviewed in browser
 * Existing navigation preserved. No motion/enrichment. All rules scoped to this report.
 */
.nav-menu :is(#menu-waitreport, #menu-netreport) { border: 0; border-left: 3px solid transparent; background: transparent; }
.nav-menu :is(#menu-waitreport, #menu-netreport):is(.active, :hover) { border-left-color: var(--color-accent); background: var(--color-blue-soft); color: var(--color-heading); }
.wr-report {
  --wr-paper: #f1f9ff; --wr-white: #fff; --wr-ink: #173653; --wr-muted: #60768c;
  --wr-header: #746d94; --wr-line: #c8cbd2; --wr-accent: #4a50ed; --wr-hover: #f3f1fa;
  --wr-info: #d0edf2; --wr-info-ink: #195765; --wr-total: #fff0bb;
  --wr-green: #087d63; --wr-red: #c92e49; --wr-blue: #007e99;
  --wr-green-bg: #e7f6ed; --wr-red-bg: #ffe5e8; --wr-amber: #795600;
  --wr-focus: #1939bc; --wr-shadow: 0 8px 20px #2036550d;
  --wr-font: 'Noto Sans Thai', Arial, sans-serif;
  font-family: var(--wr-font); color: var(--wr-ink); font-size: 13px; font-weight: 400;
  background: var(--wr-paper); padding: 0; min-width: 0; max-width: 100%;
}
.wr-report *, .wr-report *::before, .wr-report *::after { box-sizing: border-box; }
.wr-report [hidden] { display: none !important; }
.wr-report button, .wr-report input, .wr-report select { font: inherit; }
.wr-report button { cursor: pointer; }
.wr-report :is(button, input, select, [tabindex]):focus-visible { outline: 2px solid var(--wr-focus); outline-offset: 2px; }
.wr-report button:disabled { cursor: not-allowed; opacity: .5; }
.wr-report button:active { filter: brightness(.94); }
.wr-filters { padding: 12px 14px; margin-bottom: 16px; border: 1px solid var(--wr-line); background: var(--wr-white); }
.wr-periods, .wr-status-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.wr-search { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.wr-search label { display: flex; flex-direction: column; gap: 4px; color: var(--wr-muted); font-size: 12px; min-width: 0; }
.wr-search input, .wr-search select { height: 36px; border: 1px solid var(--wr-line); border-radius: 3px; padding: 5px 9px; color: var(--wr-ink); background: var(--wr-white); max-width: 100%; }
.wr-market-select { flex: 1; max-width: 310px; min-width: 160px !important; }
.wr-button { padding: 7px 13px; min-height: 34px; background: var(--wr-white); color: var(--wr-accent); border: 1px solid var(--wr-accent); border-radius: 3px; white-space: nowrap; line-height: 1.35; font-weight: 500; }
.wr-button.is-active, .wr-button.is-primary { background: var(--wr-accent); color: var(--wr-white); }
.wr-button span { margin-left: 4px; font-size: 11px; }
.wr-panel { background: var(--wr-white); border-radius: 5px; padding: 18px; box-shadow: var(--wr-shadow); min-width: 0; }
.wr-info { padding: 12px 14px; margin-bottom: 14px; background: var(--wr-info); color: var(--wr-info-ink); font-size: 12px; line-height: 1.6; }
.wr-info > span { display: block; font-size: 11px; }
.wr-warning { margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--wr-amber); background: var(--wr-total); color: var(--wr-amber); font-size: 12px; line-height: 1.6; }
.wr-warning .wr-button { margin: 8px; }
.wr-breadcrumb { min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: var(--wr-accent); color: var(--wr-white); padding: 9px 14px; margin-bottom: 16px; border-radius: 2px; }
.wr-breadcrumb strong { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.wr-breadcrumb .wr-link, .wr-breadcrumb .wr-nickname { color: var(--wr-white); }
.wr-round-context { font-size: 11px; }
.wr-name-toggle { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 11px; cursor: pointer; white-space: nowrap; }
.wr-name-toggle input { accent-color: var(--wr-green); }
.wr-section-title { font-size: 14px; font-weight: 500; margin: 16px 0 9px; color: var(--wr-ink); font-style: normal; }
.wr-table-scroll { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--wr-line); overscroll-behavior-x: contain; }
.wr-table { border-collapse: collapse; width: 100%; min-width: 800px; margin: 0; color: var(--wr-ink); background: var(--wr-white); font-size: 12px; line-height: 1.45; }
.wr-table th, .wr-table td { padding: 7px 9px; border-right: 1px solid var(--wr-line); border-bottom: 1px solid var(--wr-line); vertical-align: middle; font-weight: 400; }
.wr-table th:last-child, .wr-table td:last-child { border-right: 0; }
.wr-table > thead > tr > th { background: var(--wr-header); color: var(--wr-white); text-align: center; font-weight: 600; font-size: 12px; padding: 14px 9px; white-space: nowrap; }
.wr-table > tbody > tr > th { text-align: left; }
.wr-table > tfoot > tr { background: var(--wr-total); }
.wr-table > tfoot th, .wr-table > tfoot td { font-weight: 600; padding-top: 10px; padding-bottom: 10px; }
.wr-table tr:last-child > th, .wr-table tr:last-child > td { border-bottom: 0; }
.wr-table .wr-number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wr-positive { color: var(--wr-green); }
.wr-negative { color: var(--wr-red); }
.wr-net { color: var(--wr-blue); }
.wr-waiting { color: var(--wr-amber); }
.wr-subline { display: block; font-size: 10px; line-height: 1.5; font-weight: 400; }
.wr-link { color: var(--wr-accent); background: transparent; border: 0; padding: 4px 0; min-height: 28px; text-align: left; display: inline-flex; gap: 7px; align-items: center; font-weight: 400; }
.wr-nickname { color: var(--wr-muted); font-size: 11px; }
.wr-flag { object-fit: cover; flex: 0 0 32px; }
.wr-chevron { display: inline-block; width: 10px; color: var(--wr-muted); }
.wr-table td.wr-expanded { padding: 15px; background: var(--wr-white); }
.wr-nested { font-size: 12px; min-width: 760px; }
.wr-nested > thead > tr > th { padding-top: 9px; padding-bottom: 9px; }
.wr-detail-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.wr-detail-controls p { font-size: 11px; color: var(--wr-muted); }
.wr-bills-table { min-width: 1420px; }
.wr-bills-table > thead > tr > th { padding-top: 20px; padding-bottom: 20px; }
.wr-bills-table td.wr-payout, .wr-bills-table th.wr-payout { background: var(--wr-total); }
.wr-table .wr-group-total { background: var(--wr-total); }
.wr-group-total td, .wr-group-total th { font-weight: 600; padding-top: 11px; padding-bottom: 11px; }
.wr-time { min-width: 128px; }
.wr-customer { min-width: 150px; max-width: 240px; overflow-wrap: anywhere; }
.wr-status { display: inline-block; font-size: 10px; padding: 3px 6px; border-radius: 3px; white-space: nowrap; }
.wr-status.is-settled { color: var(--wr-green); background: var(--wr-green-bg); }
.wr-status.is-waiting { color: var(--wr-amber); background: var(--wr-total); }
.wr-status.is-cancelled { color: var(--wr-muted); background: var(--wr-paper); }
.wr-cancelled-row { color: var(--wr-muted); }
.wr-bill-detail { padding: 0; }
.wr-detail-heading { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; font-size: 12px; }
.wr-detail-heading strong { font-weight: 500; }
.wr-detail-heading span { color: var(--wr-muted); }
.wr-detail-notices { color: var(--wr-muted); margin-top: 8px; font-size: 11px; line-height: 1.7; }
.wr-table .wr-closed-row { background: var(--wr-red-bg); }
.wr-table .wr-winning-row { background: var(--wr-green-bg); }
.wr-empty { text-align: center; padding: 45px 16px !important; font-size: 13px; color: var(--wr-muted); }
.wr-footnote { margin-top: 14px; font-size: 11px; color: var(--wr-muted); line-height: 1.7; }
@media (hover: hover) {
  .wr-button:not(.is-active):not(.is-primary):hover { background: var(--wr-hover); }
  .wr-link:hover { text-decoration: underline; }
  .wr-table > tbody > tr:not(.wr-group-total):hover > th { background: var(--wr-hover); }
}
@media (max-width: 768px) {
  .wr-panel { padding: 10px; }
  .wr-filters { padding: 10px; }
  .wr-search { gap: 8px; }
  .wr-search label { flex: 1 1 120px; }
  .wr-market-select { max-width: none; flex-basis: 160px; }
  .wr-button, .wr-link { min-height: 44px; }
  .wr-search input, .wr-search select { height: 44px; min-width: 0; width: 100%; }
  .wr-breadcrumb { padding: 8px 10px; }
  .wr-name-toggle { min-height: 36px; }
  .wr-info { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) { .wr-report * { scroll-behavior: auto; transition: none; } }
