/* Management-only report. All selectors are local to report elements. */
.report-context {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:.35rem .7rem;
  margin:0 0 .65rem; color:#66594b; font-size:.875rem; line-height:1.4;
}
.report-kpis {
  display:grid; grid-template-columns:minmax(0,1.18fr) repeat(2,minmax(0,1fr));
  gap:clamp(.6rem,1.25vw,1.1rem); margin:0 0 1.3rem;
}
.report-kpi {
  position:relative; isolation:isolate; overflow:hidden; min-width:0;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  gap:.55rem; padding:clamp(1rem,1.5vw,1.45rem);
  border:1px solid #e4d8c4; border-radius:12px; background:#fff;
  color:#392e2a; box-shadow:0 2px 8px #5331170a;
}
.report-kpi.is-net {
  border-color:#713140; color:#fff8eb;
  background:linear-gradient(110deg,#50202e,#753343);
}
.report-kpi.is-net::after {
  content:""; position:absolute; z-index:-1; right:-2.9rem; bottom:-3rem;
  width:8rem; height:8rem; border:1px solid #f1ca8430; border-radius:50%;
  box-shadow:0 0 0 .35rem #f4c9740c,0 0 0 .4rem #f1ca8425,
             0 0 0 1rem #f4c97406,0 0 0 1.05rem #f1ca841c;
}
.report-kpi-label {
  display:flex; align-items:center; gap:.55rem; font-size:.94rem;
  line-height:1.3; font-weight:650; color:#594739;
}
.report-kpi-label svg {
  display:block; flex:none; width:1.7rem; height:1.7rem; padding:.33rem;
  border-radius:7px; background:#f7eedc; color:#815c29;
}
.report-kpi.is-cost .report-kpi-label svg { background:#f7e9e4; color:#934c44; }
.report-kpi.is-gross .report-kpi-label svg { background:#e7f1eb; color:#36654f; }
.report-kpi.is-net .report-kpi-label { color:#ffedc6; }
.report-kpi.is-net .report-kpi-label svg { background:#ffffff13; color:#f7d58f; }
.report-kpi-value {
  display:block; max-width:100%; overflow-wrap:anywhere; font-variant-numeric:tabular-nums;
  color:inherit; font-size:clamp(1.55rem,2.25vw,2.25rem); font-weight:700; letter-spacing:-.035em; line-height:1.12;
}
.report-kpi-detail { font-size:.84rem; line-height:1.38; color:#6e6055; }
.report-kpi.is-net .report-kpi-detail { color:#f2ddc4; }
.report-kpi.is-loss .report-kpi-value { color:#ffdcbd; }
.report-project {
  margin:0 clamp(.8rem,1.8vw,1.5rem) 1.1rem; overflow:hidden; background:white;
  border:1px solid #e6dccb; border-radius:10px; color:#342e2b;
}
.report-project-heading {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:.7rem 1rem; padding:.9rem 1rem; background:#fbf8f1; border-bottom:1px solid #e6dccb;
}
.report-project-heading h3 {
  margin:0; color:#652e39; font-size:1.05rem; line-height:1.3; letter-spacing:.018em;
}
.report-project-meta { color:#685c52; font-size:.82rem; line-height:1.5; margin:.16rem 0 0; }
.report-project-metrics {
  min-width:0; display:flex; flex-wrap:wrap; gap:.48rem 1.2rem; align-items:center;
}
.report-project-metrics > span {
  display:grid; gap:.18rem; min-width:0; line-height:1.2;
}
.report-project-metrics small { color:#695d50; font-size:.78rem; }
.report-project-metrics b { color:#47362e; font-size:.94rem; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.report-people { border-collapse:collapse; table-layout:fixed; width:100%; min-width:0; }
.report-people th,.report-people td { min-width:0; padding:.7rem 1rem; line-height:1.35; }
.report-people thead { background:#fffdf9; color:#665a4d; }
.report-people th {
  height:auto; white-space:normal; border-top:0; border-bottom:1px solid #e9e2d7; font-size:.82rem;
}
.report-people td {
  border:0; border-bottom:1px solid #eee8de; vertical-align:middle; font-size:.91rem;
}
.report-people :is(th,td):first-child { text-align:left; width:51%; }
.report-people :is(th,td):nth-child(2) { text-align:right; width:18%; }
.report-people :is(th,td):last-child { text-align:right; width:31%; }
.report-people td:nth-child(n+2) { font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.report-people td:last-child { color:#4f3233; font-weight:650; }
.report-people tbody tr:last-child td { border-bottom:0; }
.report-person { display:flex; align-items:center; gap:.65rem; text-align:left; }
.report-person > span:not(.report-avatar) { min-width:0; overflow-wrap:anywhere; }
.report-avatar {
  display:inline-grid; place-items:center; flex:none; width:1.95rem; height:1.95rem;
  border:1px solid #e7d7bd; border-radius:50%; background:#f7efdf; color:#785323;
  font-weight:700; font-size:.73rem; line-height:1;
}
.report-empty { display:block; margin:0; padding:1rem 1.2rem; text-align:center; font-size:.9rem; color:#685d52; }

@media (max-width:760px) {
  .report-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
  .report-kpi { padding:.92rem; }
  .report-kpi.is-net { grid-column:1/-1; }
  .report-kpi-value { font-size:clamp(1.23rem,4vw,1.65rem); }
  .report-kpi.is-net .report-kpi-value { font-size:1.95rem; }
  .report-project { margin-inline:.8rem; }
  .report-project-heading { padding:.85rem .75rem; }
  .report-people th,.report-people td { padding:.65rem .6rem; }
}
@media (max-width:520px) {
  .report-context { margin-bottom:.5rem; }
  .report-project { margin-inline:.55rem; border-radius:8px; }
  .report-project-metrics { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:.55rem; padding-top:.5rem; border-top:1px solid #e9dfce; }
  .report-project-metrics b { font-size:.83rem; }
  .report-people :is(th,td):first-child { width:43%; }
  .report-people :is(th,td):nth-child(2) { width:18%; }
  .report-people :is(th,td):last-child { width:39%; }
  .report-people th,.report-people td { padding:.68rem .5rem; }
  .report-people td { font-size:.88rem; }
  .report-avatar { display:none; }
}
@media (max-width:360px) {
  .report-kpis { grid-template-columns:minmax(0,1fr); }
  .report-kpi { gap:.4rem; }
  .report-kpi-value { font-size:1.45rem; }
}

.report-toolbar {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;
  gap:.8rem 1.2rem; padding:.82rem 1rem; margin-bottom:.75rem;
  background:#fffdf8; border:1px solid #e3d8c4; border-radius:10px;
}
.report-toolbar .report-context { margin:0; align-items:center; gap:.45rem .65rem; }
.report-context small { color:#685b51; font-size:.82rem; }
.report-context strong { font-size:.95rem; color:#593442; }
.report-toolbar .filter-controls { align-items:center; justify-content:flex-end; }
.report-toolbar .filter-controls label,.report-toolbar .filter-controls label > span {
  display:inline-flex; color:#695b50; font-size:.82rem;
}
.report-toolbar .filter-controls select {
  color:#47352e; height:38px; min-width:8.2rem; max-width:100%; background-color:#fff; border-color:#decfb8;
}
@media(max-width:760px) {
  .report-toolbar { padding:.75rem .85rem; }
  .report-toolbar .filter-controls { flex-wrap:wrap; justify-content:flex-start; gap:.6rem; }
}
@media(max-width:600px) {
  .report-toolbar { display:grid; gap:.65rem; }
  .report-toolbar .filter-controls { width:100%; }
  .report-toolbar .filter-controls label { min-width:0; flex:1; flex-direction:column; align-items:stretch; gap:.25rem; }
  .report-toolbar .filter-controls label[hidden] { display:none; }
  .report-toolbar .filter-controls select { min-width:0; width:100%; font-size:1rem; height:42px; }
}
