/* V33 — final completion rules + engineering project report */
:root{--ty-navy:#1b2845;--ty-orange:#ef8f2f;--ty-green:#27935b}
.tab.tab-done{background:linear-gradient(0deg,#edf8f1,#fff)!important;border-color:#bfe3cd!important;color:#176d43!important}
.tab.tab-partial{background:linear-gradient(0deg,#f6fbf8,#fff)!important;border-color:#d5e7dc!important}
.tab:after{background:var(--ty-green)!important}
.project-report{margin-top:2px}
.report-hero{border:1px solid #e3e4df;border-radius:14px;background:linear-gradient(145deg,#fff,#fbfaf7);padding:14px;border-right:4px solid var(--ty-orange)}
.report-hero-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.report-hero h3{margin:0;color:var(--ty-navy);font-size:15px}.report-hero p{margin:3px 0 0;color:#7c8287;font-size:8px}.report-code{text-align:left}.report-code small{display:block;color:#999;font-size:6.8px}.report-code b{display:block;color:#9b5d10;font-size:8px}
.report-status{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.report-chip{border-radius:99px;padding:4px 7px;font-size:6.8px;border:1px solid #e1e3df;background:#fff}.report-chip.good{border-color:#c9e4d3;background:#f0faf4;color:#1b7047}.report-chip.warn{border-color:#efd9b5;background:#fff9ef;color:#83550f}
.report-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0}.report-actions button{min-height:41px}.report-actions .report-primary{background:var(--ty-orange);color:#fff;border-color:var(--ty-orange)}.report-actions .report-dark{background:var(--ty-navy);color:#fff;border-color:var(--ty-navy)}
.report-section{border:1px solid #e8e8e3;border-radius:12px;background:#fff;margin:9px 0;overflow:hidden}.report-section-head{display:flex;align-items:center;gap:8px;padding:9px 10px;background:#fbfbf9;border-bottom:1px solid #eeeeea}.report-section-head i{width:25px;height:25px;border-radius:8px;background:#fff0d8;color:#9c5c0b;display:grid;place-items:center;font-style:normal;font-size:9px;font-weight:700}.report-section-head h4{margin:0;color:var(--ty-navy);font-size:10px}.report-section-head span{margin-right:auto;color:#92979a;font-size:6.8px}
.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0}.report-item{padding:9px 10px;border-left:1px solid #efefeb;border-bottom:1px solid #efefeb}.report-item:nth-child(3n){border-left:0}.report-item small{display:block;color:#93989b;font-size:6.6px}.report-item b{display:block;color:#2f353a;font-size:9px;margin-top:2px;line-height:1.65}.report-text{padding:10px;color:#525a5e;font-size:8px;line-height:1.95}.report-text strong{color:var(--ty-navy)}
.report-decision{padding:10px}.decision-card{padding:9px 10px;border-radius:10px;margin:6px 0;font-size:8px;line-height:1.85}.decision-card.good{background:#eff9f3;border:1px solid #cce7d6;color:#1e7049}.decision-card.warn{background:#fff8ec;border:1px solid #efd5a9;color:#835610}.decision-card.info{background:#f5f8fb;border:1px solid #dce5ed;color:#49606f}
.pool-auto-note{margin:8px 0;padding:8px 10px;border-radius:9px;background:#f1faf4;border:1px solid #cae5d4;color:#246f49;font-size:7.6px;line-height:1.8}
.report-missing{padding:10px;background:#fff8f5;border-top:1px solid #efd8d1;color:#934437;font-size:7.6px;line-height:1.8}
.report-footer-note{text-align:center;color:#9a9ea1;font-size:6.7px;margin:11px 0}
body.report-printing .site-head,body.report-printing .workflow,body.report-printing .guide-drawer,body.report-printing .footer,body.report-printing .brandfoot,body.report-printing .section-title,body.report-printing #farmerVerdict,body.report-printing #summaryCards,body.report-printing #missingSummary,body.report-printing #nextActions,body.report-printing #refreshSummaryBtn,body.report-printing #jsonBtn,body.report-printing #csvBtn{display:none!important}
body.report-printing main{max-width:none!important;padding:0!important}
body.report-printing #p9>.card{box-shadow:none!important;border:0!important;margin:0!important;padding:0!important}
@media print{
 body{background:#fff!important}.site-head,.workflow,.guide-drawer,.footer,.brandfoot,.section-title,#farmerVerdict,#summaryCards,#missingSummary,#nextActions,#refreshSummaryBtn,#jsonBtn,#csvBtn{display:none!important}
 main{max-width:none!important;padding:0!important}.panel{display:none!important}#p9{display:block!important}#p9>.card{border:0!important;box-shadow:none!important;padding:0!important}.project-report{display:block!important}
 .report-actions{display:none!important}.report-section{break-inside:avoid}.report-hero{break-inside:avoid}
}
@media(max-width:600px){.report-grid{grid-template-columns:1fr 1fr}.report-item:nth-child(3n){border-left:1px solid #efefeb}.report-item:nth-child(2n){border-left:0}.report-actions{grid-template-columns:1fr}.report-hero-top{display:block}.report-code{text-align:right;margin-top:7px}}