/* V138: white workspace and black closing summary, matching the driver report. */
.closing-workspace{color:#171717;min-width:0;margin-top:20px;font-size:14px;line-height:1.5}
.closing-workspace *{box-sizing:border-box}
.closing-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 22px;margin:0 0 22px;border-bottom:1px solid #deded7}
.closing-kicker{font-size:10px;font-weight:750;letter-spacing:1.5px;color:#68685e;text-transform:uppercase}
.closing-heading h2{font-size:30px;line-height:1.2;margin:8px 0;color:#171717;letter-spacing:-.6px;overflow-wrap:anywhere}
.closing-heading p,.closing-help{font-size:12px;color:#6b6b62;margin:6px 0}
.closing-heading-actions,.closing-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.closing-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:22px}
.closing-panel,.closing-history{background:#fff;border:1px solid #deded6;border-radius:15px;min-width:0;box-shadow:none;overflow:hidden}
.closing-panel>.card-body{padding:25px}
.closing-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.closing-section-head h3{font-size:20px;margin:5px 0 0;letter-spacing:-.4px;color:#171717}
.closing-unit,.closing-history-count{font-size:10px;font-weight:750;letter-spacing:.5px;background:#ffdf3a;padding:6px 9px;border-radius:6px;color:#171717;white-space:nowrap}
.closing-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:21px 0 25px}
.closing-totals>div{display:flex;flex-direction:column;gap:8px;padding:17px 15px;background:#fafaf7;border:1px solid #deded6;border-top:3px solid #171717;border-radius:11px;min-width:0}
.closing-totals>div:nth-child(2){background:#fffbe8;border-color:#e5dfb9;border-top-color:#ffdf3a}
.closing-totals span{font-size:12px;font-weight:600;color:#55554e}.closing-totals strong{font-size:34px;line-height:1.15;font-weight:750;letter-spacing:-1px;color:#171717;font-variant-numeric:tabular-nums}.closing-totals small{font-size:10px;color:#74746b}
.closing-workspace details>summary{cursor:pointer;font-size:14px;font-weight:700;color:#171717;line-height:1.5;padding:14px 0;list-style-position:inside}
.closing-workspace details>summary::marker{color:#8a791d}
.closing-report-text{border-top:1px solid #e2e2dc}.closing-report-text .closing-help{margin:0 0 14px}
.closing-message{background:#fafaf7;border:1px solid #e2e2d8;border-left:3px solid #ffdf3a;border-radius:10px;color:#31312c;padding:20px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:355px;overflow:auto;line-height:1.65;font-size:13px;margin:0 0 16px;font-family:inherit;scrollbar-width:thin}
.closing-actions .btn{min-height:42px;font-size:12px;border-radius:9px;padding:10px 15px;white-space:normal;box-shadow:none}
.closing-actions .btn-primary{background:#ffdf3a;color:#171717;border:1px solid #ffdf3a}.closing-actions .btn-soft{background:#fff;color:#171717;border:1px solid #cfcfc5}
.closing-feedback{font-size:12px;color:#5b5b50;min-height:18px;margin:10px 0}.closing-copy-fallback{width:100%;min-height:220px;max-width:100%;margin-top:12px;background:#fff;color:#171717}
.closing-materials{border-top:1px solid #e2e2dc;margin-top:8px}
.closing-summary{background:#1c1c1a;border:1px solid #1c1c1a;color:#fff;border-radius:15px;padding:25px;min-width:0}
.closing-summary .closing-kicker{color:#ffdf3a}.closing-summary h3,.closing-summary h4{color:#fff}
.closing-result h4{font-size:11px;line-height:1.5;letter-spacing:.7px;font-weight:600;color:#c2c2b5;margin:14px 0 10px}
.closing-result p{font-size:29px;line-height:1.22;letter-spacing:-.6px;font-weight:700;color:#ffdf3a;margin:0 0 25px;overflow-wrap:anywhere}
.closing-summary-figures{border-top:1px solid #45453c;padding-top:19px}.closing-summary-figures span{display:block;color:#c2c2b5;font-size:12px}.closing-summary-figures strong{display:block;color:#fff;font-size:27px;font-weight:700;margin:8px 0 4px}.closing-summary-figures small{font-size:13px;font-weight:400;color:#c2c2b5}
.closing-observations{background:#30302a;border-left:3px solid #ffdf3a;border-radius:7px;padding:13px 14px;margin:18px 0}.closing-observations h4{font-size:10px;letter-spacing:1px;color:#ffdf3a;margin:0 0 5px}.closing-observations p{font-size:12px;line-height:1.6;color:#f3f3e8;margin:0;overflow-wrap:anywhere}
.closing-dispatch{margin-top:23px}.closing-dispatch h3{font-size:14px;letter-spacing:0;margin:0 0 14px}.closing-dispatch dl{margin:0}.closing-dispatch dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-top:1px solid #45453c;padding:13px 0}.closing-dispatch dt{font-size:11px;color:#c2c2b5;max-width:45%}.closing-dispatch dd{margin:0;color:#fff;text-align:right;font-size:13px;font-weight:700;overflow-wrap:anywhere;max-width:55%}.closing-dispatch dd small{display:block;font-size:10px;font-weight:400;color:#c2c2b5;margin-top:4px;line-height:1.5}
.closing-stamp{border-top:1px solid #45453c;padding-top:15px;font-size:10px;line-height:1.7;color:#b9b9ac;margin:4px 0 0}
.closing-badge{display:inline-flex;align-items:center;padding:7px 11px;border-radius:7px;font-weight:700;font-size:11px;white-space:nowrap}.closing-neutral{background:#fff5c2;color:#695400}.closing-good{background:#edf4df;color:#3c561c}.closing-bad{background:#fff0d2;color:#78460c}
.closing-history{margin-top:22px}.closing-history>.card-header{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:21px 25px;background:#fafaf7;border-bottom:1px solid #e2e2dc}.closing-history h3{font-size:18px;letter-spacing:-.3px;margin:5px 0;color:#171717}.closing-history .card-header p{font-size:12px;color:#74746b;margin:5px 0 0}.closing-history>.card-body{padding:4px 25px 12px}.closing-history-count{background:#eeeede;color:#5b5b4e;letter-spacing:0;font-size:11px}
.closing-table-wrap{overflow-x:auto;max-width:100%;scrollbar-width:thin;margin:10px 0}.closing-table-wrap table{width:100%;border-collapse:collapse}.closing-table-wrap th,.closing-table-wrap td{padding:13px 10px;text-align:left;border-bottom:1px solid #ecece6;font-size:12px;white-space:nowrap}.closing-table-wrap thead th{font-size:10px;color:#74746b;font-weight:650;text-transform:uppercase;letter-spacing:.3px}.closing-table-wrap tbody tr:last-child td,.closing-table-wrap tbody tr:last-child th{border-bottom:0}.closing-text-good{color:#39631d;font-weight:700}.closing-text-bad{color:#925c12;font-weight:700}
.closing-notice{padding:14px 16px;border-radius:10px;background:#fff8d8;border:1px solid #e8d77f;color:#6d5a13;font-size:12px;margin:0 0 18px}.closing-error{background:#fff4cc;border-color:#d8b941;color:#4f4113}.closing-summary .closing-error{margin:18px 0 0}.closing-empty{font-size:13px;color:#74746b;padding:12px 0}
#houseContent.closing-mode #houseMetrics,#houseContent.closing-mode #houseStatus,#houseContent.closing-mode>.section-toolbar>div:first-child{display:none!important}
#houseContent.closing-mode>.section-toolbar{justify-content:flex-end;margin-bottom:0}
#houseContent.closing-mode>.section-toolbar .filters{display:grid;grid-template-columns:minmax(200px,1fr) 170px auto auto;width:100%;gap:10px}
#houseContent.closing-mode>.section-toolbar .filters input,#houseContent.closing-mode>.section-toolbar .filters select{min-width:0;width:100%;background:#fff}
body:has(#houseContent.closing-mode) .main,body:has(#houseContent.closing-mode) .main-content,body:has(#houseContent.closing-mode) .content,body:has(#houseContent.closing-mode) #appShell,body:has(#houseContent.closing-mode) .page.active,body:has(#houseContent.closing-mode) .topbar{background:#fff}
.closing-mode .house-section-tabs{background:#f3f3ef}.closing-mode .house-section-tabs button{color:#626258}.closing-mode .house-section-tabs button.active{background:#171717;color:#fff}
.closing-workspace :focus-visible{outline:3px solid #b79a00;outline-offset:3px}
@media(max-width:1100px){.closing-layout{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.closing-panel>.card-body,.closing-summary{padding:20px}.closing-totals{gap:8px}.closing-totals>div{padding:14px 10px}.closing-totals strong{font-size:29px}#houseContent.closing-mode>.section-toolbar .filters{grid-template-columns:minmax(0,1fr) 150px auto auto}}
@media(max-width:950px){.closing-layout{grid-template-columns:minmax(0,1fr)}.closing-summary{grid-row:1}.closing-dispatch dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.closing-dispatch dl>div{display:block}.closing-dispatch dt,.closing-dispatch dd{max-width:none;text-align:left}.closing-dispatch dd{margin-top:7px}.closing-result p{font-size:28px;margin-bottom:16px}}
@media(max-width:600px){.closing-workspace{margin-top:14px}.closing-heading{align-items:flex-start;flex-direction:column;gap:14px;padding-bottom:17px;margin-bottom:17px}.closing-heading h2{font-size:26px}.closing-heading-actions{width:100%;justify-content:space-between}.closing-heading-actions .btn{font-size:12px}.closing-panel>.card-body,.closing-summary{padding:18px}.closing-totals{grid-template-columns:minmax(0,1fr);gap:8px;margin:18px 0}.closing-totals>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;padding:12px 14px;border-top-width:1px;border-left:3px solid #171717}.closing-totals>div:nth-child(2){border-left-color:#ffdf3a}.closing-totals strong{grid-column:2;grid-row:1/3;font-size:28px;align-self:center}.closing-totals small{grid-column:1}.closing-message{padding:15px;font-size:12px;max-height:350px}.closing-actions .btn{flex:1}.closing-dispatch dl{display:block}.closing-dispatch dl>div{display:flex}.closing-dispatch dd{margin-top:0;max-width:55%;text-align:right}.closing-dispatch dt{max-width:45%}.closing-history>.card-header{padding:18px;align-items:flex-start}.closing-history>.card-body{padding:4px 14px 10px}#houseContent.closing-mode>.section-toolbar .filters{grid-template-columns:minmax(0,1fr) auto}#houseContent.closing-mode>.section-toolbar .filters select{grid-column:1/-1}}
