/* Customer work report window (customer-report-ui.js). Colours come from the theme variables, so all themes work. */
.customer-report-dialog.task-dialog { width:min(1040px, calc(100vw - 28px)); max-height:94dvh; overflow:auto; color:var(--ink); }
.customer-report-body { padding:0 24px 24px; background:inherit; }
.customer-report-header { position:sticky; top:0; z-index:2; display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin:0 -24px 14px; padding:16px 24px 12px; background:inherit; border-bottom:1px solid var(--line); }
.customer-report-header h2 { margin:2px 0; display:flex; align-items:center; gap:10px; }
.customer-report-header small { color:var(--muted); }
.customer-report-header .eyebrow { margin:0; }
.customer-report-actions { display:flex; gap:8px; align-items:center; }
.customer-report-actions .icon-button { font-size:var(--fs-xl); }
.customer-report-controls { display:flex; flex-wrap:wrap; gap:10px 14px; align-items:flex-end; margin-bottom:16px; }
.customer-report-controls label { display:flex; flex-direction:column; gap:4px; color:var(--muted); font-size:var(--fs-sm); }
.customer-report-controls .customer-report-client { flex:1 1 260px; }
.customer-report-controls select, .customer-report-controls input { font:inherit; color:var(--ink); background:var(--surface); border:1px solid var(--line-strong, var(--line)); border-radius:8px; padding:8px 10px; }
.customer-report-presets { display:flex; flex-wrap:wrap; gap:6px; }
.customer-report-presets button { font:inherit; font-size:var(--fs-sm); padding:7px 11px; border-radius:999px; border:1px solid var(--line); background:var(--surface); color:var(--ink); cursor:pointer; }
.customer-report-presets button[aria-pressed="true"] { background:var(--button-primary-bg); border-color:transparent; color:var(--button-primary-text); }
.customer-report-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:10px; }
.customer-report-tile { display:flex; flex-direction:column; gap:2px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--surface-soft); }
.customer-report-tile strong { font-size:var(--fs-2xl); font-weight:var(--fw-bold); color:var(--ink); }
.customer-report-tile span { font-weight:var(--fw-strong); }
.customer-report-tile small { color:var(--muted); }
.customer-report-tile.is-warn { border-color:var(--danger-border, var(--line)); background:var(--danger-bg-pale, var(--surface-soft)); }
.customer-report-section { margin-top:22px; }
.customer-report-section h3, .customer-report-section > summary { margin:0 0 8px; font-size:var(--fs-lg); font-weight:var(--fw-strong); }
.customer-report-section > summary { cursor:pointer; }
.customer-report-section h4 { margin:14px 0 6px; font-size:var(--fs-md); color:var(--muted); font-weight:var(--fw-strong); }
.customer-report-hint { margin:10px 0 0; color:var(--muted); font-size:var(--fs-sm); }
.customer-report-empty { color:var(--muted); margin:6px 0; }
.customer-report-table { width:100%; border-collapse:collapse; }
.customer-report-table th, .customer-report-table td { padding:7px 8px; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; }
.customer-report-table th { color:var(--muted); font-weight:var(--fw-medium); font-size:var(--fs-sm); }
.customer-report-table .num { text-align:right; font-variant-numeric:tabular-nums; }
.customer-report-list { list-style:none; margin:0; padding:0; }
.customer-report-list li { display:flex; flex-direction:column; gap:2px; padding:8px 0; border-bottom:1px solid var(--line); }
.customer-report-list small { color:var(--muted); }
.customer-report-link { padding:0; border:0; background:none; color:var(--ink); font:inherit; font-weight:var(--fw-strong); text-align:left; cursor:pointer; }
.customer-report-link:hover, .customer-report-link:focus-visible { color:var(--button-primary-bg); text-decoration:underline; }
.customer-report-flag { font-style:normal; font-weight:var(--fw-strong); color:var(--danger-text, var(--ink)); }
.customer-report-flag.is-wait { color:var(--warning-text, var(--ink)); }
.customer-report-chart { display:flex; align-items:flex-end; gap:6px; height:170px; padding-top:6px; border-bottom:1px solid var(--line); }
.customer-report-bar { flex:1 1 0; min-width:0; height:100%; display:flex; flex-direction:column; align-items:center; gap:3px; cursor:default; }
.customer-report-bar-track { flex:1; width:min(36px, 70%); display:flex; align-items:flex-end; }
.customer-report-bar-track span { display:block; width:100%; border-radius:4px 4px 0 0; background:var(--button-primary-bg); }
.customer-report-bar:hover .customer-report-bar-track span { filter:brightness(1.15); }
.customer-report-bar b { font-size:var(--fs-sm); font-weight:var(--fw-strong); font-variant-numeric:tabular-nums; }
.customer-report-bar small { font-size:var(--fs-xs); color:var(--muted); white-space:nowrap; }
.customer-report-print-frame { position:fixed; width:0; height:0; border:0; visibility:hidden; }
/* Customer card: one summary line instead of the long list */
.customer-work-summary { margin:4px 0 8px; color:var(--muted); }
.customer-report-open { margin-bottom:8px; }
.client-stat-row[data-customer-report] { cursor:pointer; }
.client-stat-row[data-customer-report]:hover, .client-stat-row[data-customer-report]:focus-visible { background:var(--surface-soft); }
.client-report-panel .section-heading > .secondary-button { align-self:center; }
@media (max-width:640px) {
  .customer-report-body { padding:0 14px 16px; }
  .customer-report-header { margin:0 -14px 12px; padding:12px 14px; }
  .customer-report-chart { gap:3px; }
  .customer-report-table th, .customer-report-table td { padding:6px 4px; }
}
.customer-report-fee h3 small{font-weight:var(--fw-regular);color:var(--muted);font-size:var(--fs-sm)}
.customer-report-dialog .customer-report-printfee{display:inline-flex;flex-direction:row;align-items:center;gap:6px;margin:0 0 0 12px;cursor:pointer;font-size:inherit;color:inherit}
.customer-report-dialog .customer-report-printfee input{width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:var(--button-primary-bg)}
