/* Fechamento executivo: resultado, capacidade empregada e continuidade. */
body[data-view=gerencial] main,body[data-view=cards] main{max-width:1440px}
.closure-sheet{background:#fff;border:1px solid #dbe6e3;border-radius:20px;overflow:hidden;box-shadow:0 9px 34px #173f3910;margin-bottom:24px}
.closure-header{background:#153e46;color:#fff;padding:28px 32px;display:flex;justify-content:space-between;align-items:center;gap:24px}
.closure-header p{font-size:12px;letter-spacing:.12em;margin:0 0 8px;color:#bed4d3;font-weight:650}
.closure-header h1{font-size:30px;letter-spacing:-.8px;margin:0;font-weight:600}
.closure-date{text-align:right;min-width:130px}.closure-date strong{font-size:23px;display:block;font-weight:600;letter-spacing:-.3px}.closure-date span{font-size:13px;display:block;color:#cbdfdc;margin-top:8px}
.closure-body{padding:28px 32px}.closure-kpis{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:28px;margin-bottom:28px;align-items:center}
.closure-main{padding:20px 24px;background:#eaf7f0;border-radius:13px;color:#116a46}.closure-kpis span{display:block;font-size:15px;font-weight:600}.closure-kpis strong{display:block;font-size:42px;line-height:1.1;margin:10px 0;font-variant-numeric:tabular-nums;letter-spacing:-1.2px}.closure-main strong{font-size:60px}.closure-kpis small{font-size:13px;color:#647b77}.closure-stat{text-align:left;padding:12px 4px;color:var(--ink);background:none}.closure-stat[data-working]:hover{color:#116a46}
.closure-section{border-top:1px solid #e0e9e5;padding-top:22px;margin-top:24px}.closure-section-title{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:8px}.closure-section-title h2{font-size:18px;letter-spacing:-.3px}.closure-section-title>span{font-size:13px;color:#617974}
.closure-row{display:flex;width:100%;text-align:left;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid #edf1ef;break-inside:avoid}.closure-row:last-child{border-bottom:0}.closure-row>div:first-child{flex:1;min-width:0}.closure-row strong{font-size:16px;font-weight:650;line-height:1.5}.closure-row strong>span{font-size:14px;font-weight:400;color:#506a66}.closure-row p{font-size:13px;line-height:1.5;color:#647b77;margin:5px 0 0;overflow-wrap:anywhere}.closure-row:hover>div:first-child>strong{color:#116a46}.closure-clock{text-align:right;min-width:105px}.closure-clock strong{font-size:21px;font-variant-numeric:tabular-nums}.closure-clock small{display:block;font-size:12px;line-height:1.5;color:#647b77;max-width:170px}.closure-done,.closure-next{display:inline-block;font-size:13px;line-height:1.5;padding:6px 11px;border-radius:7px;white-space:nowrap}.closure-done{color:#116a46;background:#eaf7f0}.closure-next{color:#896122;background:#fbf3e4}.closure-empty{font-size:14px;color:#647b77;line-height:1.6;margin:14px 0 4px}.closure-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#f5f8f6;padding:17px 32px;color:#647b77;font-size:12px;line-height:1.5}
.management-panel{margin-top:24px}.management-table{min-width:660px}.management-table td,.management-table th{font-size:14px}.management-table td small{display:block;font-size:12px;color:#71857f;font-weight:400;margin-top:4px}.management-table th button{font-size:14px}.management-table .total-completed{font-size:23px}.closure-state{font-size:13px;color:#667d75}.executive-tools{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:18px;margin:16px 0}.executive-tools button{font-size:13px;color:#486c60;padding:8px 0}.closure-kpis.compact{margin:0 0 20px}.closure-kpis.compact .closure-main{padding:16px 22px}.closure-kpis.compact .closure-main strong{font-size:42px}
.export-actions{display:flex;gap:12px;flex-wrap:wrap}.export-actions>a{flex:1;min-width:180px}.pdf-control{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:10px 15px;border:1px solid #cbdad4;border-radius:8px;background:#fff;color:#185b44;font-size:14px}
.closure-export{width:1080px!important;max-width:none!important;box-shadow:none!important;border-radius:0!important}.closure-export .closure-row{pointer-events:none}.closure-export .closure-header h1{font-size:32px}.closure-export .closure-body{padding:28px 36px}
.dialog-section p,.record p,.detail-intro{font-size:14px}.record summary{font-size:13px}.record h3{font-size:16px}
@media(max-width:700px){.closure-header{padding:23px 20px;align-items:flex-start;gap:14px}.closure-header h1{font-size:24px}.closure-header p{font-size:11px;letter-spacing:.08em}.closure-date{min-width:100px}.closure-date strong{font-size:19px}.closure-date span{font-size:12px}.closure-body{padding:20px}.closure-kpis{gap:18px;grid-template-columns:1fr 1fr}.closure-main{grid-column:1/-1;padding:17px 20px}.closure-main strong{font-size:52px}.closure-kpis strong{font-size:36px}.closure-kpis span{font-size:14px}.closure-kpis small{font-size:12px}.closure-row{gap:12px;flex-wrap:wrap;align-items:flex-start}.closure-row>div:first-child{flex-basis:60%}.closure-row strong{font-size:15px}.closure-row strong>span{font-size:13px}.closure-clock{min-width:80px;flex:1}.closure-clock strong{font-size:20px}.closure-done{margin-top:-3px}.closure-footer{padding:14px 20px;gap:5px}.closure-section-title h2{font-size:17px}.closure-sheet{border-radius:15px}.executive-tools{justify-content:flex-start}}
@media(max-width:390px){.closure-header{flex-wrap:wrap}.closure-date{text-align:left;display:flex;gap:15px;align-items:center}.closure-date span{margin:0}.closure-row>div:first-child{flex-basis:100%}.closure-clock{text-align:left}.closure-row strong>span{display:block}.closure-kpis{gap:14px}}
@media print{.site-header,.toolbar,.executive-tools,.management-panel,.report-footer,dialog,#toast{display:none!important}main{padding:0!important}body{background:white}.closure-sheet{border:0;box-shadow:none;border-radius:0}.closure-row{break-inside:avoid}.closure-header,.closure-main,.closure-done{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

.evidence-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6}
.closure-row .closure-service{font-size:14px;color:#294d48;line-height:1.5;max-width:630px}.closure-prefixes{font-size:12px!important}.closure-customers{text-align:center;min-width:96px;max-width:140px;background:#f0f6f4;padding:9px 11px;border-radius:9px}.closure-customers strong{display:block;font-size:24px;color:#155e51}.closure-customers small{display:block;font-size:11px;line-height:1.35;color:#476960}.closure-customers.unknown{background:transparent}.closure-customers.unknown strong{font-size:19px;color:#91a39d}.closure-customers.unknown small{color:#7b8e87}.closure-row .closure-reason{color:#8a6023;font-weight:550}.closure-found .closure-reason{color:#246f5b}.closure-found-label{padding:7px 10px;border-radius:7px;background:#edf7f4;color:#2a705b;font-size:12px;max-width:100px;text-align:center}.closure-scope{border-top-color:#e9d8b8}.closure-found .closure-section-title h2{color:#21674f}/* Calendar keeps monthly evidence readable; notes live inside the delivery detail. */
.photo-panel{padding-bottom:20px}.photo-panel h1{font-size:29px;margin:0 0 8px}.photo-panel .panel-heading{padding:26px 28px}.photo-panel .panel-heading p{font-size:14px}.photo-month{font-size:14px;color:#58776d;display:grid;gap:8px;min-width:230px}.photo-month select{font-size:15px;padding:12px 36px 12px 14px;text-transform:capitalize}.photo-summary{display:flex;gap:40px;align-items:center;padding:24px 28px;background:#f8fbf9;border-bottom:1px solid #e5ede9}.photo-summary>strong{font-size:38px;color:#996321;min-width:95px;font-variant-numeric:tabular-nums}.photo-summary>strong span{display:block;font-size:14px;font-weight:500}.photo-summary>strong.photo-delivered{color:#147653}.photo-progress{max-width:380px;margin-left:auto;flex:1}.photo-progress>div:first-child{display:flex;gap:14px;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:14px;flex-wrap:wrap}.photo-progress span{font-size:13px;color:#647b77}.photo-progress-track{height:8px;border-radius:10px;background:#e1eae5;overflow:hidden}.photo-progress-track i{height:100%;display:block;background:#19785b;border-radius:10px}.photo-months{padding:24px 24px 0;display:grid;gap:24px}.photo-month-block{border:1px solid #dce6e1;border-radius:12px;overflow:hidden;min-width:0}.photo-month-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;background:#f7faf8;border-bottom:1px solid #dce6e1}.photo-month-heading h2{text-transform:capitalize;font-size:19px;letter-spacing:-.3px}.photo-month-heading p{font-size:13px;margin:5px 0 0;color:#647b77}.photo-month-totals{display:flex;gap:10px;flex-wrap:wrap;font-size:14px}.photo-month-totals span{color:#996321;background:#fff5e3;padding:7px 10px;border-radius:6px;white-space:nowrap}.photo-month-totals span+span{background:#e7f4ed;color:#147653}.photo-calendar{max-height:760px}.photo-calendar table{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed}.photo-calendar th,.photo-calendar td{text-align:center;padding:9px 5px;border-bottom:1px solid #edf1ef;font-size:14px}.photo-calendar th:first-child{position:sticky;left:0;z-index:1;background:#f8fbf9;width:190px;text-align:left;padding-left:18px;font-size:14px;box-shadow:2px 0 3px #204f3710}.photo-calendar thead th{position:sticky;top:0;z-index:2;background:#eef5f1;color:#5b776c;height:58px}.photo-calendar thead th b{font-size:16px;display:block}.photo-calendar thead th small{font-size:12px;text-transform:none;font-weight:500;display:block;margin-top:3px}.photo-calendar thead th:first-child{z-index:3}.photo-cell{border-radius:8px;min-height:58px;width:100%;max-width:110px;padding:7px 3px;border:1px solid transparent}.photo-cell b{display:block;font-size:21px}.photo-cell small{display:block;font-size:12px;white-space:nowrap}.photo-cell.pending{background:#fff5df;color:#98630c;border-color:#efd296}.photo-cell.delivered{background:#e7f5ed;color:#176c4c;border-color:#b6dfc8}.photo-empty{color:#a2b6ac}.photo-cell:hover{box-shadow:0 0 0 2px #3a786566}.photo-legend{display:flex;gap:22px;flex-wrap:wrap;padding:20px 28px 8px;font-size:14px;color:#647b77}.photo-legend span:first-child{color:#996321}.photo-legend span:nth-child(2){color:#18714f}.photo-calendar-note{font-size:13px;color:#647b77;margin:8px 28px}.photo-save{display:block;background:#1d6650;color:white;padding:12px 16px;border-radius:8px;font-size:14px;min-height:44px}.photo-save:disabled{opacity:.55;cursor:wait}.photo-error{margin:16px 28px;background:#fff1eb;color:#984c24;padding:15px;border-radius:8px}.photo-undated{padding:14px 28px;font-size:14px}.photo-no-reports{padding:20px;font-size:14px;color:#647b77}.photo-record p{font-size:14px}.photo-record h3{font-size:17px}.photo-record small{font-size:12px}.photo-record .tag{font-size:13px}.photo-record-actions,.photo-form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}.photo-record-actions .photo-save{margin-top:0}.photo-reopen,.photo-form-actions>button:not(.photo-save),.photo-conflict button{font-size:14px;padding:10px;border:1px solid #dce6e1;border-radius:8px;min-height:44px}.photo-delivery-form{padding-top:20px;margin-top:20px;border-top:1px solid #dce6e1}.photo-delivery-form label{font-size:14px;font-weight:650;display:block}.photo-delivery-form label span{font-weight:400;color:#647b77}.photo-delivery-form textarea{font:inherit;font-size:16px;line-height:1.5;display:block;width:100%;resize:vertical;min-height:115px;border:1px solid #bccfc5;border-radius:9px;padding:12px;margin-top:8px;color:var(--ink);background:white}.photo-delivery-form textarea:focus-visible{outline:3px solid #36a88a;outline-offset:2px}.photo-delivery-form .photo-form-help{font-size:13px;color:#647b77}.photo-save-error,.photo-conflict{font-size:14px;background:#fff5e3;border-radius:8px;padding:12px;color:#865821}.photo-saved-note{margin:16px 0;background:#f2f7f4;border-left:3px solid #33836a;padding:12px 14px;border-radius:0 8px 8px 0}.photo-saved-note strong{font-size:13px;color:#386958}.photo-saved-note p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0;color:#294d48}.photo-conflict-current{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){.photo-panel .panel-heading{padding:20px}.photo-month{width:100%;min-width:0}.photo-summary{gap:20px;flex-wrap:wrap;padding:20px}.photo-progress{margin-left:0;flex-basis:100%;max-width:none}.photo-months{padding:16px 12px 0;gap:18px}.photo-month-heading{align-items:flex-start;flex-direction:column;padding:16px}.photo-calendar th:first-child{width:170px;padding-left:10px}.photo-record-actions,.photo-form-actions{align-items:stretch}.photo-record-actions button,.photo-form-actions button{flex:1}.photo-calendar-note{margin:8px 20px}}
@media(max-width:700px){.closure-customers{min-width:83px;max-width:110px;padding:6px}.closure-customers strong{font-size:22px}.closure-row>div:first-child{flex-basis:100%}.closure-clock{flex:1}.photo-summary{gap:22px;flex-wrap:wrap;padding:20px}.photo-summary>p{width:100%;margin:0}.photo-panel .panel-heading{align-items:flex-start;gap:14px;flex-wrap:wrap}.photo-calendar th:first-child{min-width:150px;padding-left:10px}.photo-legend{padding:16px 20px}}
[hidden]{display:none!important}.photo-cell.unavailable{background:#edf1ef;color:#7e8f86}.photo-identity-note{margin:16px 0;font-size:13px;color:#647b77}
.customer-detail{background:#f2f7f4;padding:18px;border-radius:10px;margin:18px 0}.customer-detail small{font-size:12px;line-height:1.5;color:#6c8178}.customer-intervals{width:100%;font-size:12px;margin:12px 0}.customer-intervals th,.customer-intervals td{text-align:left;padding:7px;border-bottom:1px solid #dce7e0}

/* Static output groups have real height; collapsed browser details must not
   leak their text into the canvas or the printed card. */
.closure-export-group{display:block;margin-top:22px;padding-top:18px;border-top:1px solid #e0e9e5}
.closure-export-group h3{font-size:16px;line-height:1.5;margin:0 0 10px}
.closure-export .closure-row{line-height:1.5;min-height:0;height:auto;overflow:visible}
.closure-export .closure-row>div:first-child{overflow-wrap:anywhere}
.closure-export .closure-section-title{flex-wrap:wrap;line-height:1.5}
.closure-export .closure-section-title h2{line-height:1.5}
.closure-export .closure-empty{margin:14px 0;line-height:1.6}
.closure-export .closure-clock,.closure-export .closure-customers,.closure-export .closure-done,.closure-export .closure-next,.closure-export .closure-found-label{flex-shrink:0}
@media print{
 @page{size:A4 portrait;margin:12mm}
 .closure-sheet{overflow:visible}
 .closure-header,.closure-kpis{break-inside:avoid}
 .closure-section-title{break-after:avoid;flex-wrap:wrap;line-height:1.5}
 .closure-row{height:auto;line-height:1.5;break-inside:avoid;page-break-inside:avoid}
 .closure-row>div:first-child{overflow-wrap:anywhere}
 .closure-row p,.closure-clock small{line-height:1.5}
 .closure-sheet details:not([open])>:not(summary){display:none!important}
 .closure-sheet summary{line-height:1.5;break-after:avoid}
 .closure-done,.closure-next,.closure-found-label{white-space:normal}
}
/* Quantities refer to the whole OC; reports and estimates stay distinct. */
.pole-badge{display:inline-flex;align-items:center;gap:8px;max-width:100%;flex-wrap:wrap;padding:5px 9px;border-radius:6px;margin:4px 0;background:#edf5f5;color:#275663;font-size:12px;line-height:1.4}.pole-badge strong{font-size:13px!important;color:inherit!important}.pole-badge span{font-size:11px}.pole-reported{background:#e4f4ee;color:#126a4f}.pole-estimate{background:#fff4df;color:#875917}.pole-unknown{background:#f1f4f5;color:#68787d}.pole-detail{padding:15px;border:1px solid #dbe5e7;border-radius:10px;margin:18px 0}.pole-detail small{color:#586b70}.pole-summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;border:1px solid #d8e6e3;background:#f4f9f7;border-radius:10px;padding:18px 20px;margin:18px 0 24px}.pole-summary div{display:flex;flex-direction:column;gap:7px}.pole-summary strong{font-size:25px;color:#19564a}.pole-summary strong small{font-size:13px;font-weight:500}.pole-summary span,.pole-summary p{font-size:12px;color:#536e67}.pole-summary p{flex-basis:100%;margin:0}.pole-summary div:nth-child(2)>strong{color:#875917}@media print{.pole-summary,.pole-badge{break-inside:avoid}.pole-summary{padding:10px}}
