/* Diligence: clear stage identity, compact technical-dark controls, light PDF pages. */
#reportWorkflow button,.report-template-modal button{border:1px solid #355161;border-radius:7px;background:#14232e;color:#d5e5ee;padding:8px 10px;font:inherit;font-size:11px;font-weight:650;cursor:pointer}
#reportWorkflow button:hover,.report-template-modal button:hover{background:#1b3340;border-color:#5d899c}
#reportWorkflow button:disabled,.report-template-modal button:disabled{opacity:.45;cursor:not-allowed}
#reportWorkflow button:focus-visible,.report-template-modal button:focus-visible{outline:2px solid #4ed9f4;outline-offset:2px}
#reportWorkflow>h2{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#a3bac9;margin:0 0 5px}
#reportWorkflowStatus{font-size:11px;color:#a3bac9;margin:0 0 14px}
#reportWorkflowStatus.warning{color:#f2b84b}
.report-stage-tabs{display:flex;gap:6px;margin-bottom:10px}
#reportWorkflow .report-stage-tabs button{flex:1;min-width:0;text-align:left;font-size:11px;line-height:1.3;padding:9px 10px}
.report-stage-tabs button span{display:block;font-size:9px;letter-spacing:.1em;color:#8da7b6;margin-bottom:4px}
#reportWorkflow .report-stage-tabs [data-stage=initial][aria-pressed=true]{border-color:#4197ad;background:#123440;color:#bdeefa}
#reportWorkflow .report-stage-tabs [data-stage=final][aria-pressed=true]{border-color:#8e72c8;background:#2a2140;color:#e4d6ff}
.report-template-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#7d96a7;font-size:10px;margin-bottom:12px}
#reportWorkflow .report-template-toolbar button{padding:4px 6px;font-size:10px;background:transparent;border-color:#2b4351}
.report-template-update{border:1px solid #38556d;background:#142a39;border-radius:6px;padding:8px;margin:0 0 12px;font-size:11px;color:#bcdced;display:grid;gap:6px}
.report-review-group{--review:#4ed9f4;border:1px solid #2b3e4a;border-radius:9px;background:#0e1821;overflow:hidden;margin:0 0 14px}
[data-checklist-group=final]{--review:#b198eb}
[data-checklist-group=closing]{--review:#edb45b}
.report-review-heading{display:flex;gap:10px;align-items:flex-start;padding:12px 10px 9px;border-top:2px solid var(--review);background:#14222d}
.report-stage-number{flex:none;font-size:11px;font-weight:750;color:var(--review);font-variant-numeric:tabular-nums;padding-top:2px}
.report-review-heading h3{color:#f0f5f9;font-size:15px;line-height:1.25;letter-spacing:-.02em;margin:0}
.report-review-heading p{font-size:10px;line-height:1.5;color:#92a9b9;margin:5px 0 0}
.report-review-progress{display:flex;justify-content:space-between;padding:7px 10px;color:#9cb3c1;border-top:1px solid #253b49;border-bottom:1px solid #253b49;font-size:10px;font-variant-numeric:tabular-nums;background:#10202a}
.report-review-progress span:first-child{color:var(--review)}
.report-review-item{padding:10px;border-bottom:1px solid #233541}
.report-review-item:last-child{border-bottom:0}
.report-review-item-top{display:grid;grid-template-columns:16px minmax(0,1fr) 86px;align-items:start;gap:6px}
.report-review-number{color:#698393;font-size:9px;padding-top:5px;font-variant-numeric:tabular-nums}
.report-review-label{color:#d8e5ed;font-size:11px;line-height:1.45;padding-top:3px}
#reportWorkflow select{box-sizing:border-box;min-width:0;border:1px solid #3e5361;border-radius:6px;font-size:10px;line-height:1.4;padding:5px 3px;background:#182630;color:#bfcdda;font-weight:650;margin:0}
#reportWorkflow select[data-status=complete]{background:#15372e;border-color:#2d6a58;color:#85d6ba}
#reportWorkflow select[data-status=pending]{background:#392e1c;border-color:#695234;color:#f0c582}
#reportWorkflow select[data-status=na]{background:#1d2b37;border-color:#435968;color:#b4c6d3}
#reportWorkflow .report-review-item textarea,#reportWorkflow .report-closing-row textarea{box-sizing:border-box;width:calc(100% - 22px);margin:7px 0 0 22px;min-height:30px;padding:6px 8px;font-size:11px;line-height:1.5;resize:vertical;border:1px solid #2b414f;border-radius:5px;background:#0a131b;color:#cbdbe5}
#reportWorkflow textarea::placeholder{color:#6e899b}
#reportWorkflow textarea:focus{outline:1px solid #4ba8ba;border-color:#4ba8ba}
.report-closing-row{padding:10px;border-bottom:1px solid #233541}
.report-closing-row>div{display:grid;grid-template-columns:minmax(0,1fr) 86px 27px;gap:6px}
#reportWorkflow .report-closing-row input{box-sizing:border-box;min-width:0;font-size:11px;margin:0;padding:7px;border:1px solid #2d4554;border-radius:5px;background:#0a131b;color:#d5e5ee}
#reportWorkflow .report-closing-row button{padding:0;font-size:16px}
#reportWorkflow .report-closing-row textarea{width:100%;margin-left:0}
.report-closing-empty{font-size:11px;color:#8fa6b6;padding:8px 12px}
#reportAddClosing{margin:10px}
#reportWorkflow .report-closing-confirm{display:flex;align-items:flex-start;gap:8px;font-size:10px;line-height:1.5;font-weight:500;margin:0;padding:10px;background:#1d251f;color:#c9d5c3;border-top:1px solid #374237}
#reportWorkflow .report-closing-confirm input{width:auto;flex:none;margin:2px 0 0;accent-color:#edb45b}
#reportWorkflow details{margin:10px 0;border-top:1px solid #293e4c;padding-top:10px;color:#8ea6b6;font-size:11px}
#reportWorkflow summary{cursor:pointer;color:#b7cfdd;font-weight:650}
#reportWorkflow ul{padding-left:18px;font-size:10px;line-height:1.6;color:#9cb0bf}
#reportWorkflow #reportSendApproval{width:100%;margin:8px 0;background:#173c36;border-color:#2d7568;color:#a5e4ce;min-height:38px}
.report-send-help{margin-top:5px;line-height:1.5}
.report-history-row{display:flex;flex-wrap:wrap;gap:5px;padding:10px 0;border-bottom:1px solid #293e4c;font-size:10px}
.report-history-row>span{width:100%}
.report-approval-page,.report-checklist-page{color:#172f3f;background:#fff;padding:36px;box-sizing:border-box}
.report-approval-page h1{font-size:28px}.report-approval-page h2{font-size:22px}.report-approval-page p{line-height:1.5}
.approval-signature{margin-top:35px;padding-top:15px;border-top:1px solid #bacbd5}
.scout-report-preview-wrap .report-approval-page{display:none}
.report-checklist-page{--review:#147c91;height:auto!important;min-height:11in;overflow:visible!important;padding:36px 38px!important;color:#17323f!important}
.report-checklist-page[data-checklist-group=final]{--review:#7451aa}
.report-checklist-page[data-checklist-group=closing]{--review:#a36c1c}
.report-checklist-header{border-top:4px solid var(--review);padding-top:15px;margin-bottom:17px}
.report-checklist-brand{font-size:13px;letter-spacing:.12em;font-weight:850;color:#132a36}
.report-checklist-brand span{font-size:8px;font-weight:600;color:#778994;letter-spacing:.16em;margin-left:10px}
.report-checklist-stage{display:flex;align-items:center;justify-content:space-between;color:var(--review);font-size:9px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;margin-top:23px}
.report-checklist-stage span:last-child{color:#6c818c;font-size:8px}
.report-checklist-header h1{font-size:29px;line-height:1.1;letter-spacing:-.035em;font-weight:800;color:#142b37;margin:9px 0 10px}
.report-checklist-property{font-size:13px;font-weight:700;color:#264956;margin:0 0 6px}
.report-checklist-description{font-size:10px;line-height:1.5;color:#697f8a;margin:0 0 15px}
.report-checklist-summary{display:flex;gap:16px;align-items:center;font-size:9px;color:#526f7d;background:#f1f6f8;padding:10px 12px;border:1px solid #d6e4e9;border-radius:6px;font-weight:650;font-variant-numeric:tabular-nums}
.report-checklist-summary span:last-child{margin-left:auto;color:#456372;font-size:8px;letter-spacing:.03em}
.report-checklist-page table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:10px}
.report-checklist-page table,.report-checklist-page th,.report-checklist-page td{color:#203d4c!important;background:#fff!important}
.report-checklist-page th,.report-checklist-page td{padding:11px 10px;border-bottom:1px solid #d4e0e6;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.report-checklist-page td{line-height:1.6;white-space:pre-wrap}
.report-checklist-page th{background:#eaf2f5!important;color:#527382!important;font-size:8px;text-transform:uppercase;letter-spacing:.1em;font-weight:750}
.report-checklist-page th:first-child{width:37%}.report-checklist-page th:nth-child(2){width:16%}
.report-checklist-page .report-checklist-repeat th{background:#fff!important;color:var(--review)!important;letter-spacing:.06em;padding:6px 0 9px}
.report-checklist-page tr{break-inside:avoid}.report-checklist-page thead{display:table-header-group}
.report-checklist-row-number{color:#8b9eaa;font-size:8px;margin-right:8px;font-variant-numeric:tabular-nums}
.report-check-status{display:inline-block;border:1px solid #d5e0e5;border-radius:4px;padding:2px 6px;font-size:8px;font-weight:750;white-space:nowrap}
.report-check-status[data-status=complete]{background:#edf7f2;color:#24664e;border-color:#b9dfcf}
.report-check-status[data-status=pending]{background:#fff5e5;color:#8b5918;border-color:#e9d3ad}
.report-check-status[data-status=na]{background:#f0f4f7;color:#526b7a;border-color:#cfdce5}
.report-checklist-empty{color:#a0b0b8}
.report-checklist-footer{display:flex;justify-content:space-between;gap:12px;margin-top:18px;font-size:8px;color:#7a8e99}
/* Screen workspace: reserve only a page's width for the preview and give the
   remaining space to the editor. Print/PDF dimensions stay in v0110.css. */
@media screen{
  .scout-report-printable{margin-left:0;margin-right:0}
}
@media screen and (min-width:981px){
  .scout-report-workspace{--report-preview-width:816px;--report-preview-scale:1;grid-template-columns:calc(var(--report-preview-width) + 24px) minmax(0,1fr)}
  .scout-report-preview-wrap{padding:12px}
  .scout-report-preview-wrap .scout-report-printable{zoom:var(--report-preview-scale)}
}
/* Keep both panes usable on smaller laptops without changing page proportions. */
@media screen and (min-width:1100px) and (max-width:1279px){
  .scout-report-workspace{--report-preview-width:693.6px;--report-preview-scale:.85}
}
@media screen and (min-width:981px) and (max-width:1099px){
  .scout-report-workspace{--report-preview-width:571.2px;--report-preview-scale:.7}
}

/* Shared template editor, outside the report workspace. */
.report-template-modal{position:fixed;inset:0;z-index:2000;background:rgba(2,7,12,.78);backdrop-filter:blur(5px);display:grid;place-items:center;padding:20px;box-sizing:border-box}
.report-template-modal.hidden{display:none}
.report-template-shell{width:min(840px,100%);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;border:1px solid #395365;border-radius:12px;background:#0d1720;color:#d7e5ee;box-shadow:0 20px 70px #0008;overflow:hidden}
.report-template-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid #2b404e;background:#101f2a}
.report-template-header h2{margin:4px 0 0;font-size:21px;letter-spacing:-.025em}.report-template-header p{color:#8fa8b9;font-size:12px;margin:7px 0 0}
.report-template-modal #reportTemplateClose{font-size:22px;line-height:1;padding:4px 10px}
.report-template-body{min-height:0;overflow:auto;padding:18px 22px}
.report-template-notice{background:#11232f;border:1px solid #2d495b;border-radius:7px;padding:11px 13px;margin-bottom:18px;font-size:11px;color:#a2bece}
.report-template-notice strong{color:#c7e1ee}.report-template-notice p{font-size:11px;line-height:1.6;margin:5px 0 0}
.report-template-group{--review:#4ed9f4;margin:0 0 20px;border:1px solid #2e4554;border-radius:8px;overflow:hidden}
.report-template-group[data-checklist-group=final]{--review:#b198eb}
.report-template-group>header{display:flex;align-items:flex-start;gap:10px;background:#152630;padding:12px;border-top:2px solid var(--review)}
.report-template-group header h3{font-size:16px;color:#eef5f9;margin:0}.report-template-group header p{font-size:10px;color:#91acbd;margin:5px 0 0}.report-template-group header>span:last-child{margin-left:auto;white-space:nowrap;font-size:10px;color:var(--review)}
.report-template-item{padding:10px 12px;border-top:1px solid #253c4a}.report-template-item-top{display:flex;align-items:center;gap:8px}
.report-template-number{font-size:10px;color:#6f8ea1;font-variant-numeric:tabular-nums;flex:none}
.report-template-item input[type=text],.report-template-item input:not([type]){box-sizing:border-box;flex:1;min-width:0;background:#0a141c;color:#d4e3ed;border:1px solid #304b5b;border-radius:5px;padding:8px;font-size:12px}
.report-template-item input:focus{outline:1px solid #4ed9f4}.report-template-row-actions{display:flex;gap:4px}.report-template-row-actions button{padding:5px 9px;font-size:14px}
.report-template-rules{display:flex;flex-wrap:wrap;gap:12px;font-size:10px;color:#90acbd;margin:7px 0 0 23px}.report-template-rules label{display:flex;gap:5px;align-items:center}.report-template-rules input{accent-color:#4ed9f4}
.report-template-group>[data-template-add]{margin:10px 12px}.report-template-note{font-size:11px;line-height:1.6;color:#88a3b5}
.report-template-footer{padding:12px 22px;border-top:1px solid #2b404e;display:flex;align-items:center;gap:8px;background:#101f2a}.report-template-footer span{font-size:11px;color:#a7bfcd;margin-right:auto;line-height:1.5}
.report-template-modal #reportTemplatePublish{background:#174337;border-color:#347e67;color:#b7eed8}
@media(max-width:600px){.report-template-modal{padding:10px}.report-template-shell{max-height:calc(100dvh - 20px)}.report-template-header,.report-template-body{padding:14px}.report-template-header h2{font-size:18px}.report-template-footer{flex-wrap:wrap;padding:12px 14px}.report-template-footer span{width:100%}.report-template-item{padding:10px 8px}.report-template-row-actions button{padding:6px}.report-template-group header h3{font-size:14px}.report-template-group header>span:last-child{display:none}.report-template-item-top{flex-wrap:wrap}.report-template-item-top input{font-size:16px!important}.report-template-row-actions{margin-left:23px}.report-template-rules{margin-left:23px}}
@media print{.report-template-modal{display:none!important}.scout-report-preview-wrap .report-approval-page{display:block!important}.report-approval-page,.report-checklist-page{break-before:page;break-after:page;box-shadow:none}.report-approval-page{min-height:10in;max-height:none!important;height:auto!important}.report-checklist-page{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;break-inside:auto!important;page-break-inside:auto!important}.report-checklist-page tr{break-inside:avoid!important}}

#reportChecklistSettings{margin:0 0 8px 6px;background:#132b38;color:#b9dbe9;border:1px solid #365b70;border-radius:5px;padding:8px 11px;font:inherit;font-size:11px;cursor:pointer}
#reportChecklistSettings:hover{background:#1b3d4e}
@media(max-width:600px){#reportChecklistSettings{min-height:44px}}

@media(max-width:760px){#reportWorkflow select,#reportWorkflow .report-review-item textarea,#reportWorkflow .report-closing-row textarea,#reportWorkflow .report-closing-row input{font-size:16px;min-height:44px}.report-review-item-top{grid-template-columns:16px minmax(0,1fr) 104px}.report-review-label{font-size:12px}.report-closing-row>div{grid-template-columns:minmax(0,1fr) 104px 30px}.report-stage-tabs button{min-height:48px}}
.report-template-rules label{margin:0;line-height:1.5;font-weight:500;white-space:nowrap}
.report-template-rules input[type=checkbox]{width:auto;flex:none;margin:0;min-height:0}

.report-check-col-item{width:37%}.report-check-col-status{width:16%}.report-check-col-notes{width:47%}

.report-checklist-continued{color:#788d98;font-size:9px}.report-checklist-header{break-inside:avoid;break-after:avoid}.report-checklist-page tfoot{display:table-footer-group;break-inside:avoid}.report-checklist-page tfoot td{padding:0;border:0}.report-checklist-footer{white-space:normal;margin-top:14px;padding:0 0 5px}

/* Approved reports retain the archived PDF inside the same compact app shell. */
.scout-report-approved{min-height:0;overflow:auto;padding:16px 24px 28px;background:#0a1219;--approved-accent:#4ed9f4}
.scout-report-approved[data-report-stage=final]{--approved-accent:#b198eb}
.scout-report-approved.hidden{display:none}
.scout-report-approved .approved-report-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1060px;margin:0 auto}
.scout-report-approved button{font:inherit;font-size:11px;font-weight:650;color:#bdd0dd;background:#12212c;border:1px solid #304858;border-radius:5px;padding:8px 12px;min-height:34px;cursor:pointer}
.scout-report-approved button:hover{background:#1a303e;border-color:#527287}
.scout-report-approved button:focus-visible{outline:2px solid #4ed9f4;outline-offset:3px}
.scout-report-approved button:disabled{opacity:.4;cursor:default}
.scout-report-approved .report-stage-tabs{margin:0;max-width:700px;flex:1;gap:6px}
.scout-report-approved .report-stage-tabs button{display:flex;align-items:center;gap:8px;text-align:left;min-height:44px;border-top:1px solid #304858}
.scout-report-approved .report-stage-tabs button[data-approved-stage=initial]{--tab-accent:#4ed9f4}
.scout-report-approved .report-stage-tabs button[data-approved-stage=final]{--tab-accent:#b198eb}
.scout-report-approved .report-stage-tabs button[aria-pressed=true]{background:#182a35;border-color:var(--tab-accent);color:var(--tab-accent);box-shadow:inset 0 2px var(--tab-accent)}
.scout-report-approved .report-stage-tabs small{margin-left:auto;font-size:9px;font-weight:550;color:#93adbc}
.scout-report-approved .approved-stage-number{font-size:10px;color:var(--tab-accent);opacity:.8}
.approved-report-heading{max-width:1060px;margin:16px auto 12px;display:flex;gap:8px 12px;flex-wrap:wrap;align-items:center}
.approved-report-heading strong{font-size:14px;font-weight:650;color:#e0ebf2}
.approved-report-heading>span{font-size:10px;color:#8ea7b8;font-variant-numeric:tabular-nums}
.approved-report-heading .approved-report-seal{color:#9ce4c5;background:#14392e;border:1px solid #2b6b54;padding:3px 7px;border-radius:4px;font-size:9px;font-weight:750;letter-spacing:.05em;text-transform:uppercase}
.approved-report-heading p{flex-basis:100%;font-size:11px;color:#829aa9;margin:0;line-height:1.5}
.scout-report-approved .approval-pdf{max-width:1060px;margin:0 auto;border:1px solid #2b414f;border-radius:7px;overflow:clip;background:#111d26}
.scout-report-approved .approval-page-toolbar{position:sticky;top:-16px;z-index:2;display:flex;align-items:center;justify-content:center;gap:7px;background:#14232e;border-bottom:1px solid #2b414f;padding:8px}
.scout-report-approved #pdfPageCount{font-size:11px;color:#a6bfce;min-width:110px;text-align:center;font-variant-numeric:tabular-nums}
.scout-report-approved .approval-page-toolbar button{padding:4px 10px;font-size:18px;line-height:1;min-width:34px}
.scout-report-approved .approval-pdf-page{max-height:none;overflow:auto;padding:18px;background:#101a22}
.scout-report-approved canvas{max-width:none;box-shadow:0 4px 20px #0005}
#scoutReportModal[data-approved=true] .mobile-report-tabs{display:none}
#scoutReportModal[data-approved=true] #scoutReportSaveState{color:#9ce4c5;border-color:#2b6b54;background:#14392e}
#scoutReportModal[data-approved=true] #scoutReportPrintBtn{background:#3a1e25;color:#ffbbc5;border:1px solid #80404e;border-radius:5px}
@media(max-width:760px){
 .scout-report-approved{padding:12px 10px 20px}
 .scout-report-approved .approved-report-bar{align-items:stretch;flex-direction:column;gap:8px}
 .scout-report-approved button{min-height:44px}
 .scout-report-approved .report-stage-tabs{max-width:none;width:100%}
 .scout-report-approved .report-stage-tabs button{flex-wrap:wrap;font-size:11px;gap:4px 6px;padding:8px}
 .scout-report-approved .report-stage-tabs small{flex-basis:100%;margin:0 0 0 19px}
 .approved-report-heading{margin-top:14px}.approved-report-heading>span:last-of-type{flex-basis:100%}
 .scout-report-approved .approval-page-toolbar{top:-12px}
 .scout-report-approved .approval-pdf-page{padding:8px}
 .scout-report-approved .approval-page-toolbar button{min-width:44px}
}
.report-source-section>summary{list-style:none;cursor:pointer;margin-bottom:0;min-height:38px}
.report-source-section>summary::-webkit-details-marker{display:none}
.report-source-section>summary>div{flex:1}
.report-source-section>summary::after{content:'›';color:#8da6b5;font-size:22px;line-height:1}
.report-source-section[open]>summary{margin-bottom:10px}
.report-source-section[open]>summary::after{transform:rotate(90deg)}
.report-source-section>summary:focus-visible{outline:2px solid #4ed9f4;outline-offset:4px;border-radius:4px}
.report-source-section .report-source-upload:focus-within{outline:2px solid #4ed9f4;outline-offset:2px}
