/* 55-report.css — the branded CUSTOMER report. A deliverable that goes UP the
 * chain, visually distinct from the tech cut sheet: a hero band, sectioned
 * roll-ups, cable-type bars. Prints clean on white.
 */

.report {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
}

/* ---- hero band ------------------------------------------------------- */
.report-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; padding: 26px 28px;
  background:
    radial-gradient(120% 160% at 100% 0%,
      color-mix(in srgb, var(--accent) 22%, var(--surface-2)), var(--surface-2));
  border-bottom: 1px solid var(--line);
}
.report-brand { display: flex; align-items: center; gap: 18px; }
.report-mark {
  font-family: var(--mono); font-weight: 800; font-size: 24px;
  letter-spacing: .14em; color: var(--accent);
  padding-right: 18px; border-right: 2px solid var(--line);
}
.report-project { font-size: 22px; font-weight: 800; line-height: 1.15; }
.report-customer { font-size: 13px; margin-top: 2px; }
.report-scope {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  margin-top: 6px; letter-spacing: .03em;
}
.report-overall { display: flex; align-items: center; gap: 16px; }
.report-overall-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
}
.report-overall-counts { font-size: 13px; margin-top: 2px; }

.report-generated {
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  padding: 8px 28px; border-bottom: 1px solid var(--line); background: var(--bg);
}

/* ---- sections -------------------------------------------------------- */
.report-section { padding: 20px 28px; border-bottom: 1px solid var(--line); }
.report-section:last-child { border-bottom: none; }
.report-section-head {
  margin: 0 0 14px; font-size: 13px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-dim);
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}

/* (1) by-area */
.report-area-list { display: flex; flex-direction: column; gap: 4px; }
.report-area-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 4px; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}
.report-area-row:last-child { border-bottom: none; }
.report-area-meta { flex: 1; min-width: 0; }
.report-area-name { font-weight: 700; font-size: 14px; }
.report-area-sub { font-size: 12px; }
.report-area-counts { font-family: var(--mono); font-size: 12px; white-space: nowrap; }

/* (2) by cable type */
.report-type-list { display: flex; flex-direction: column; gap: 14px; }
.report-type-row { display: flex; flex-direction: column; gap: 6px; }
.report-type-head { display: flex; align-items: center; gap: 10px; }
.report-type-swatch {
  width: 13px; height: 13px; border-radius: 3px; flex: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3) inset;
}
.report-type-name { font-weight: 600; font-size: 14px; }
.report-type-counts { font-size: 12px; margin-left: auto; }
.report-type-bar {
  height: 9px; border-radius: 999px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
}
.report-type-fill { height: 100%; border-radius: 999px; transition: width .4s ease; }

/* (3) blockers */
.report-clear { font-size: 13px; color: var(--ok); }
.report-blocker-list { display: flex; flex-direction: column; gap: 8px; }
.report-blocker-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--bad) 10%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--bad) 35%, var(--line));
}
.report-blocker-where { display: flex; align-items: center; gap: 9px; min-width: 0; }
.report-blocker-loc { font-family: var(--mono); font-size: 12.5px; }
.report-blocker-label { font-size: 12px; }
.report-blocker-notes { display: flex; gap: 6px; flex-wrap: wrap; }
.report-blocker-note {
  font-size: 11px; color: var(--bad);
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent);
}

/* ---- print: clean white deliverable --------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  .appbar, .nav-row, .breadcrumb, .no-print, .toast { display: none !important; }
  .screen { max-width: none; padding: 0; }
  .report { border: none; box-shadow: none; }
  .report-band {
    background: #fff; border-bottom: 2px solid #000;
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  .report-mark { color: #000; border-right-color: #000; }
  .report-scope { color: #333; }
  .report-section { border-bottom: 1px solid #ccc; }
  .report-section-head { color: #000; border-bottom-color: #000; }
  .report-generated { background: #fff; color: #333; }
  .report-area-name, .report-type-name, .report-blocker-loc, .muted { color: #000 !important; }
  .report-type-swatch, .report-type-fill, .report-type-bar,
  .report-blocker-row, .report-blocker-note {
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  .ring-text { fill: #000; }
  .ring-track { stroke: #ccc; }
}
