.construction-page { --cp-blue:#2563a6; --cp-green:#168053; }
.construction-heading,.construction-group-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:18px; }
.construction-heading h1 { margin:0 0 6px; font-size:24px; letter-spacing:-.5px; }
.construction-heading p,.construction-group-heading p { margin:0; font-size:12px; line-height:1.6; }
.construction-filters { display:grid; grid-template-columns:minmax(0,1fr) 190px; gap:18px; padding:16px 18px; border:1px solid var(--line); border-radius:12px; background:white; }
.construction-filters label { display:flex; flex-direction:column; gap:7px; font-size:12px; color:var(--muted); font-weight:600; }
.construction-filters select,.construction-filters input { width:100%; min-width:0; height:39px; color:var(--ink); background:#f8fafc; font-size:14px; font-weight:400; }
.construction-tabs { display:flex; gap:6px; overflow-x:auto; padding:4px; margin:14px 0 10px; background:#e9eef4; border-radius:10px; }
.construction-tabs button { flex:1 0 auto; justify-content:center; white-space:nowrap; border:0; border-radius:7px; padding:10px 13px; background:transparent; color:#52647a; font-size:12px; font-weight:600; }
.construction-tabs button.primary { color:#fff; background:var(--brand); box-shadow:0 2px 5px #1f3a5f22; }
.construction-source { margin:0 0 22px; font-size:11px; line-height:1.7; color:var(--muted); overflow-wrap:anywhere; }
.construction-group-heading h2 { margin:0 0 5px; font-size:19px; letter-spacing:-.3px; }
.construction-highlights { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:14px; }
.construction-progress { min-width:0; padding:20px 22px; border:1px solid #d4e3f3; border-radius:12px; background:#f0f6fd; color:var(--cp-blue); }
.construction-progress.actual { background:#eef8f3; border-color:#d0e8dc; color:var(--cp-green); }
.construction-progress .l { font-size:11px; font-weight:700; letter-spacing:.65px; }
.construction-progress-value { font-size:clamp(27px,3.4vw,40px); font-weight:700; font-variant-numeric:tabular-nums; line-height:1.2; margin:12px 0; letter-spacing:-1px; overflow-wrap:anywhere; }
.construction-meter { height:6px; border-radius:10px; background:#dbe6f1; overflow:hidden; margin-bottom:12px; }
.construction-meter i { display:block; height:100%; border-radius:inherit; background:currentColor; }
.construction-progress.actual .construction-meter { background:#d5eadf; }
.construction-progress small { display:block; font-size:12px; line-height:1.5; color:inherit; opacity:.85; }
.construction-progress.schedule { background:#fff; color:var(--brand); border-color:var(--line); }
.construction-progress.schedule.late { color:#b54732; background:#fff7f3; border-color:#f1dacf; }
.construction-progress.schedule.ahead,.construction-progress.schedule.ontime { color:var(--cp-green); background:#f5faf7; border-color:#d0e8dc; }
.construction-status { display:inline-block; font-size:11px; font-weight:600; margin:0 0 8px; padding:3px 8px; border-radius:5px; background:#00000008; }
.construction-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; border:1px solid var(--line); border-radius:12px; background:#fff; overflow:hidden; margin-bottom:16px; }
.construction-fact { padding:17px 20px; min-width:0; border-right:1px solid var(--line2); border-bottom:1px solid var(--line2); }
.construction-fact:nth-child(3n) { border-right:0; }
.construction-fact:nth-last-child(-n+3) { border-bottom:0; }
.construction-fact .l { font-size:10px; font-weight:600; letter-spacing:.65px; color:var(--muted); line-height:1.5; }
.construction-fact .v { font-size:23px; font-weight:600; font-variant-numeric:tabular-nums; color:var(--brand); margin:7px 0 5px; letter-spacing:-.5px; overflow-wrap:anywhere; }
.construction-fact .v.date { font-size:20px; }
.construction-fact small { display:block; font-size:11px; line-height:1.6; }
.construction-notice { padding:12px 16px; border:1px solid #ecdfc0; background:#fffaf0; border-radius:10px; margin-bottom:18px; font-size:12px; }
.construction-notice summary { cursor:pointer; color:#856520; font-weight:600; }
.construction-notice p { line-height:1.6; }
.construction-page .card { border-radius:12px; padding:20px 22px; box-shadow:0 2px 5px #17315404; margin-bottom:16px; }
.construction-chart h2 { margin:0; font-size:16px; }
.construction-chart > p { font-size:11px; line-height:1.6; margin:8px 0 18px; }
.construction-chart .legend { font-size:11px; }
.construction-chart svg { display:block; }
.construction-curve { position:relative; min-width:0; border-radius:8px; }
.construction-curve:focus-visible { outline:2px solid #719ac7; outline-offset:4px; }
.construction-curve svg { cursor:crosshair; user-select:none; }
.construction-curve-tooltip { position:absolute; z-index:4; pointer-events:none; width:max-content; max-width:calc(100% - 16px); padding:9px 12px; border:1px solid #d6dfe6; border-radius:11px; background:#fff; box-shadow:0 6px 20px #17315424; font-size:12px; line-height:1.5; color:var(--ink); }
.construction-tip-date { color:var(--muted); margin-bottom:2px; }
.construction-curve-tooltip .planned { color:#2b6cb0; }
.construction-curve-tooltip .actual { color:#16884a; }
.construction-chart > .muted:last-child { padding:28px 20px; text-align:center; border:1px dashed var(--line); border-radius:8px; background:#f8fafc; margin:18px 0 0; }
.construction-chart label { font-size:11px; }
@media(min-width:1400px) { .construction-facts { grid-template-columns:repeat(6,minmax(0,1fr)); } .construction-fact { border-bottom:0; padding:17px 16px; } .construction-fact:nth-child(3n) { border-right:1px solid var(--line2); } .construction-fact:last-child { border-right:0; } }
@media(max-width:1000px) { .construction-progress { padding:18px 16px; } .construction-tabs button { padding:9px 10px; } }
.construction-group-heading > .row { flex-wrap:wrap; justify-content:flex-end; }
.report-actions { position:sticky; top:0; z-index:10; display:flex; justify-content:center; gap:10px; padding:12px; background:#edf3fa; border-bottom:1px solid var(--line); }
.construction-report-page { max-width:1120px; margin:20px auto; font-family:"Segoe UI",Arial,sans-serif; font-size:13px; }
.construction-report-page h1 { font-size:19px; }
.report-project { color:var(--brand); font-size:16px; font-weight:600; }
.report-subtitle { text-align:center; font-size:15px; }
.report-source,.report-foot { color:#52647a; font-size:11px; line-height:1.6; }
.report-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid #ccd8e5; border-radius:7px; margin:14px 0; }
.report-facts > div { padding:9px 12px; border-bottom:1px solid #e3eaf1; }
.report-facts small { display:block; color:#52647a; font-size:10px; }
.report-facts strong { display:block; color:#1f3a5f; font-size:19px; margin-top:4px; }
.report-dates { font-size:11px; }
.report-chart h2 { font-size:15px; margin:8px 0; }
.report-section { margin-top:28px; }
.report-section h2 { font-size:16px; }
.construction-report-page .report-table th { background:#edf3fa; }
.construction-report-page .report-table td,.construction-report-page .report-table th { font-family:"Segoe UI",Arial,sans-serif; font-size:11px; border-color:#aebccc; }
.construction-report-page .report-table th { text-align:left; }
@media print {
  .construction-report-page { page:constructionReport; width:auto; max-width:none; margin:0; padding:0; font-size:10px; }
  .construction-report-page h1 { font-size:15px; margin:10px 0 4px; }
  .construction-report-page .report-project { font-size:12px; }
  .construction-report-page .report-subtitle { font-size:12px; margin:5px 0; }
  .construction-report-page .report-source { font-size:9px; }
  .construction-report-page .report-facts { margin:8px 0; }
  .construction-report-page .report-facts > div { padding:5px 9px; }
  .construction-report-page .report-facts strong { font-size:14px; }
  .construction-report-page .report-section { break-before:page; margin-top:0; }
  .construction-report-page .report-chart { break-inside:avoid; }
  .construction-report-page .construction-curve { outline:none; }
  .construction-report-page .construction-curve-tooltip { display:none!important; }
  .construction-report-page svg { width:100%; min-width:0!important; display:block; }
  .construction-report-page .report-section > div { overflow:visible!important; }
  .construction-report-page thead { display:table-header-group; }
  .construction-report-page tr { break-inside:avoid; }
  .construction-report-page td,.construction-report-page th { font-size:9px!important; padding:3px 4px; }
}
@media(max-width:650px) {
  .construction-heading,.construction-group-heading { align-items:flex-start; flex-direction:column; gap:12px; }
  .construction-heading h1 { font-size:22px; }
  .construction-filters { grid-template-columns:minmax(0,1fr); gap:12px; padding:14px; }
  .construction-highlights { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .construction-progress { padding:16px; }
  .construction-progress.schedule { grid-column:1/-1; display:grid; grid-template-columns:1fr auto; align-items:center; column-gap:10px; }
  .construction-progress.schedule .construction-progress-value { grid-column:2; grid-row:1/3; margin:0; font-size:28px; }
  .construction-progress.schedule small { grid-column:1/-1; }
  .construction-status { width:fit-content; margin-top:8px; }
  .construction-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .construction-fact { padding:14px; }
  .construction-fact:nth-child(3n) { border-right:1px solid var(--line2); }
  .construction-fact:nth-child(2n) { border-right:0; }
  .construction-fact:nth-last-child(-n+3) { border-bottom:1px solid var(--line2); }
  .construction-fact:nth-last-child(-n+2) { border-bottom:0; }
  .construction-fact .v { font-size:20px; }
  .construction-fact .v.date { font-size:18px; }
  .construction-page .card { padding:16px 14px; }
}

.construction-group-picker { display:flex; align-items:flex-end; gap:10px; min-width:0; }
.construction-group-picker > label { flex:1; min-width:0; }
.construction-group-picker > button { flex-shrink:0; height:39px; white-space:nowrap; }
@media(max-width:520px) { .construction-group-picker { flex-wrap:wrap; } .construction-group-picker > label { flex-basis:100%; } }

.group-plan-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; margin-top:14px; }
.group-plan-card { border:1px solid var(--line); border-radius:9px; padding:10px; min-width:0; }
.group-plan-card > a { display:block; color:var(--ink); text-decoration:none; }
.group-plan-card img { display:block; width:100%; height:130px; object-fit:contain; background:#f4f7fb; border-radius:5px; margin-bottom:9px; }
.group-plan-card strong { display:block; margin:7px 0 12px; overflow-wrap:anywhere; }
