
:root{font-family:Arial,Helvetica,sans-serif;color:#243449;background:#f5f7fa}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:10px 14px;background:#1762a0;color:white}button.secondary{background:#e7edf3;color:#234360}button:disabled{opacity:.5}input,select,textarea{border:1px solid #ccd6df;border-radius:7px;padding:9px;max-width:100%;background:white}textarea{min-height:76px}h1{font-size:23px;margin:0 0 8px}h2{font-size:18px;margin:0 0 14px}h3{font-size:15px}small,.muted{color:#6b7d90}.shell{display:flex;min-height:100vh}.sidebar{width:235px;background:#113b63;color:white;padding:24px 14px;flex-shrink:0}.brand{font-weight:700;font-size:19px;letter-spacing:.1px;padding:4px 10px 18px}.sidebar button{width:100%;text-align:left;background:transparent;color:#e4edf7;margin:3px 0}.sidebar button.active{background:#266a9f}.main{flex:1;min-width:0}.top{padding:18px 24px;background:white;border-bottom:1px solid #e0e6ec;display:flex;justify-content:space-between;align-items:center;gap:12px}.content{padding:24px;max-width:1450px;margin:auto}.cards{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px}.card,.panel{background:white;border:1px solid #e1e8ef;border-radius:12px;padding:18px;margin-bottom:15px}.card strong{font-size:23px;display:block;margin-top:7px}.panel{overflow:auto}.pill{font-size:11px;border-radius:12px;background:#e8eef4;padding:5px 8px;color:#385a78}.banner{padding:12px 15px;background:#fff4dd;color:#76561b;border:1px solid #f0dcac;border-radius:8px;margin-bottom:16px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.spread{justify-content:space-between}.tablewrap{overflow:auto;max-height:65vh}table{border-collapse:collapse;min-width:900px;width:100%;font-size:12px}th,td{padding:9px;border-bottom:1px solid #e8edf2;text-align:left;white-space:nowrap}th{position:sticky;top:0;background:#eef3f8;z-index:1}td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}tr:hover td{background:#f8fbfd}.section{background:#eaf1f7;font-weight:700}.formgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:12px 0}.formgrid label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#456}.formgrid label input,.formgrid label select,.formgrid label textarea{width:100%}.login{max-width:410px;margin:12vh auto;padding:32px;background:white;border:1px solid #e1e8ef;border-radius:16px}.login input{width:100%;margin:8px 0 14px}.login button{width:100%}.gantt{display:grid;grid-template-columns:240px 1fr;min-width:650px}.gantt>div{padding:10px;border-bottom:1px solid #e4ebf2}.track{background:#edf2f7;border-radius:6px;height:17px;position:relative}.bar{position:absolute;height:17px;background:#3984bd;border-radius:5px}.notice{color:#b13d2b}.tag{font-size:11px;color:#687e92}.filter{width:240px}.link{background:transparent;color:#1762a0;padding:4px;text-decoration:underline}.empty{padding:25px;color:#718394}.inlineedit{width:100px;padding:5px}.foot{font-size:11px;color:#8292a1;margin-top:25px}@media(max-width:850px){.shell{display:block}.sidebar{width:100%;padding:8px;display:flex;overflow:auto;align-items:center}.brand{font-size:15px;min-width:175px;padding:8px}.sidebar button{white-space:nowrap;width:auto}.top,.content{padding:14px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.formgrid{grid-template-columns:1fr 1fr}}@media(max-width:480px){.formgrid{grid-template-columns:1fr}.cards{gap:8px}.card{padding:12px}.card strong{font-size:18px}}

.login-logo{display:block;width:100%;max-width:330px;height:auto;margin:0 auto 18px}.nav-logo{display:block;width:100%;height:auto;background:white;border-radius:5px;padding:5px}.brand{padding:5px 4px 16px}

/* v0.4 corporate navigation: white / electric blue */
.sidebar{background:#fff;color:#063bf2;border-right:1px solid #e0e6ee}
.sidebar button{color:#083ef0;background:transparent;font-weight:600;border-radius:6px}
.sidebar button:hover{background:#eef4ff;color:#0031d4}
.sidebar button.active{background:#e7f0ff;color:#0034df;box-shadow:inset 3px 0 0 #0847ff}
.nav-logo{background:#fff}
.foot{border-top:1px solid #e1e8ef;padding-top:14px;line-height:1.7}
@media(max-width:850px){.sidebar{border-right:0;border-bottom:1px solid #e0e6ee}.sidebar button.active{box-shadow:inset 0 -3px 0 #0847ff}}

/* v0.5 regular-weight navigation and document controls */
.sidebar button{font-weight:400}
.sidebar button.active{font-weight:400}
.upload-button{display:inline-flex;align-items:center;background:#0645ef;color:#fff;padding:10px 15px;border-radius:7px;cursor:pointer;white-space:nowrap}
.upload-button:hover{background:#0034cc}
.attachment-row{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #e5ebf0;flex-wrap:wrap}
.attachment-row a{color:#0645ef;text-decoration:underline;overflow-wrap:anywhere}
.attachment-panel h2{margin-bottom:5px}

/* v0.6 phone-first navigation and touch layout */
.mobile-header,.mobile-scrim{display:none}
@media(max-width:850px){
 .shell{display:block}
 .mobile-header{height:66px;display:flex;position:sticky;top:0;z-index:40;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #dfe6ee;padding:7px 14px;gap:12px}
 .mobile-header img{display:block;width:190px;max-width:58vw;height:49px;object-fit:contain;object-position:left center}
 .mobile-menu-toggle{background:#eaf1ff;color:#073fe5;border:1px solid #d6e3ff;min-height:43px;font-weight:400}
 .sidebar{display:flex;flex-direction:column;align-items:stretch;position:fixed;z-index:51;top:0;bottom:0;left:0;width:min(300px,84vw);height:100dvh;overflow-y:auto;transform:translateX(-105%);transition:transform .2s ease;box-shadow:4px 0 20px #001b3d1c;padding:16px;background:#fff;border-right:1px solid #dfe6ee;border-bottom:0}
 .sidebar .brand{min-width:0;padding:5px 4px 16px}
 .sidebar button{width:100%;white-space:normal;min-height:46px;padding:12px;text-align:left}
 .sidebar button.active{box-shadow:inset 3px 0 0 #0847ff}
 .menu-open .sidebar{transform:translateX(0)}
 .menu-open .mobile-scrim{display:block;position:fixed;inset:0;z-index:50;background:#10264085}
 .top{padding:12px 16px;gap:8px}
 .top strong{font-size:16px}
 .top .row{gap:6px;justify-content:flex-end}
 .top .row button{padding:8px 10px}
 .content{padding:16px}
 .banner{font-size:13px;line-height:1.45;padding:10px 12px}
 .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .card{min-width:0;overflow-wrap:anywhere}
 .card strong{font-size:clamp(16px,3.4vw,22px)}
 .tablewrap{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
 .panel{max-width:100%;padding:14px}
 .gantt{min-width:640px}
 .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
 button,.upload-button{min-height:42px}
}
@media(max-width:480px){
 .mobile-header{height:61px}
 .mobile-header img{width:172px;height:43px}
 .content{padding:12px}
 .top{padding:10px 12px}
 .top .row .pill{font-size:10px}
 .cards{grid-template-columns:1fr}
 .card{padding:14px;margin-bottom:0}
 .card strong{font-size:23px}
 .formgrid{grid-template-columns:1fr}
 .login{margin:6vh 12px;padding:22px}
 h1{font-size:21px}
}

#view .tablewrap{overflow-x:auto}#view table{min-width:700px}#view .panel .row{flex-wrap:wrap}@media(max-width:720px){#view .panel{overflow:hidden}#view .tablewrap{max-width:100%}}

@media print { @page {size:A4 portrait;margin:13mm} body[data-report="Gantt Programme"],body[data-report="Cost to Complete"]{--report-landscape:1} body[data-report="Gantt Programme"] .content,body[data-report="Cost to Complete"] .content{width:100%} .sidebar,.mobile-header,.mobile-scrim,.top .row,.report-toolbar,.attachment-panel,.upload-button,button,form,.filter,.banner{display:none!important} .main,.content,.shell{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:white!important} .panel,.card{break-inside:avoid;box-shadow:none!important} table{font-size:8px!important} h1{font-size:20px!important} .tablewrap{overflow:visible!important} .foot{font-size:9px!important} }

/* v1.0 reporting and controls */
.print-report-header{display:none}.site-report .report-section{padding:8px 0;border-top:1px solid #e5ebf0}.site-report p{white-space:pre-line;line-height:1.5}.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.photo-grid figure{margin:0;break-inside:avoid}.photo-grid img{width:100%;max-height:270px;object-fit:contain;border:1px solid #dde5ed}.photo-grid figcaption{font-size:11px;color:#60778c}.report-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:16px}.report-actions label{font-size:12px}.report-toolbar a{color:#0645ef}
@media print{.print-report-header{display:flex!important;position:fixed;top:0;left:0;right:0;height:19mm;align-items:center;gap:15px;background:white;border-bottom:1px solid #d9e2ed;z-index:100}.print-report-header img{width:52mm;max-height:16mm;object-fit:contain}.print-report-header div{display:flex;flex-direction:column;gap:2px;font-size:9px}.print-report-header span{font-weight:bold;font-size:11px}.content{padding-top:22mm!important}.report-actions,.report-photo{display:none!important}.site-report{break-inside:auto!important;overflow:visible!important}.site-report .report-section{break-inside:avoid}.photo-grid img{max-height:85mm}.site-report figure{break-inside:avoid}.site-report p{font-size:10pt}body[data-report="Weekly Site Reports"][data-reportid] #saved-reports .site-report{display:none!important}body[data-report="Weekly Site Reports"][data-reportid] #saved-reports .site-report.print-selected{display:block!important}body[data-report="Weekly Site Reports"] #view>.panel{display:none!important}body[data-report="Gantt Programme"] .gantt{grid-template-columns:76mm 1fr;min-width:0!important;font-size:8px}body[data-report="Gantt Programme"] .gantt>div{padding:4px}body[data-report="Gantt Programme"] .gantt small{font-size:7px}body[data-report="Cost to Complete"] .tablewrap{max-height:none!important}body[data-report="Cost to Complete"] table{min-width:0!important;font-size:7px!important}body[data-report="Cost to Complete"] td,body[data-report="Cost to Complete"] th{white-space:normal;padding:4px}}

.hp-field{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}

.gantt-head{font-weight:700;color:#184878;background:#edf3fa}.gantt-months{display:grid;grid-template-columns:repeat(31,minmax(24px,1fr));overflow:hidden;gap:0;background:#edf3fa;font-size:9px;color:#184878}.gantt-months span{writing-mode:vertical-rl;transform:rotate(180deg);height:57px;text-align:center;border-left:1px solid #d7e1ec;padding:3px}.gantt .track{background:repeating-linear-gradient(to right,#edf2f7 0,#edf2f7 calc(100% / 31 - 1px),#d3deeb calc(100% / 31 - 1px),#d3deeb calc(100% / 31));}

/* v1.1 board reporting */
.cost-section-heading td{background:#e9f0fa!important;color:#163f71;font-weight:700;padding:11px 8px!important}.cost-subtotal td{background:#f0f5fa!important;font-weight:700;border-top:1px solid #a8bdd2}.cost-grandtotal td{background:#dfeaf8!important;font-weight:700;border-top:2px solid #275b94}.cost-description{white-space:normal;min-width:210px}.gantt-legend{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:12px;font-size:12px;color:#445d78}.gantt-legend span{display:flex;gap:6px;align-items:center}.gantt-legend i{display:inline-block;width:22px;height:7px;border-radius:2px}.legend-baseline{background:#a5b2c1}.legend-current{background:#0848ed}.gantt-v11{display:grid;grid-template-columns:minmax(230px,28%) minmax(480px,1fr) 65px;align-items:stretch;min-width:800px}.gantt-v11>div{border-bottom:1px solid #e1e9f2;padding:7px 6px;min-height:39px}.gantt-v11-head{background:#e7eff8;color:#143e6c;font-weight:700;font-size:11px}.gantt-month-header{display:flex;justify-content:space-between;padding:7px 0!important}.gantt-month-header span{font-size:9px;flex:1;text-align:center;border-left:1px solid #cad8e7}.gantt-v11-label .link{padding:0;font-size:11px;text-align:left;text-decoration:none}.gantt-v11-label small{display:block;font-size:9px}.gantt-v11-track{display:flex;align-items:center}.timeline-track{position:relative;width:100%;height:28px;background:repeating-linear-gradient(to right,#f6f9fc 0,#f6f9fc calc(100% / 30 - 1px),#dce5f0 calc(100% / 30 - 1px),#dce5f0 calc(100% / 30))}.timeline-bar{position:absolute;height:8px;border-radius:2px}.timeline-bar.baseline{top:4px;background:#a5b2c1}.timeline-bar.actual{top:16px;background:#0848ed}.gantt-v11-variance{font-size:11px;text-align:right;font-variant-numeric:tabular-nums}
@media print{
 body[data-report="Cost to Complete"] .cards{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:5mm!important}body[data-report="Cost to Complete"] .card{padding:3mm!important;margin:0!important;break-inside:avoid}body[data-report="Cost to Complete"] .card strong{font-size:13pt!important}body[data-report="Cost to Complete"] .tablewrap{overflow:visible!important}body[data-report="Cost to Complete"] .panel{overflow:visible!important;border:0!important;padding:0!important}body[data-report="Cost to Complete"] table{table-layout:fixed!important;width:100%!important;font-size:7.5pt!important;min-width:0!important}body[data-report="Cost to Complete"] th,body[data-report="Cost to Complete"] td{font-size:7.2pt!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:break-word!important;padding:2.3mm 1.2mm!important}body[data-report="Cost to Complete"] th:nth-child(1){width:6%}body[data-report="Cost to Complete"] th:nth-child(2){width:21%}body[data-report="Cost to Complete"] th:nth-child(n+3):nth-child(-n+11){width:8%}body[data-report="Cost to Complete"] th:nth-child(12),body[data-report="Cost to Complete"] td:nth-child(12){display:none!important}body[data-report="Cost to Complete"] thead{display:table-header-group!important}body[data-report="Cost to Complete"] tr{break-inside:avoid!important}body[data-report="Cost to Complete"] .cost-section-heading{break-after:avoid!important}body[data-report="Cost to Complete"] .cost-edit{display:none!important}body[data-report="Cost to Complete"] .panel{break-inside:auto!important}
 body[data-report="Gantt Programme"] .gantt-report-panel{overflow:visible!important;border:0!important;padding:0!important;break-inside:auto!important}body[data-report="Gantt Programme"] .gantt-v11{min-width:0!important;grid-template-columns:73mm 1fr 16mm!important}body[data-report="Gantt Programme"] .gantt-v11>div{padding:1.1mm!important;min-height:8mm!important;break-inside:avoid!important}body[data-report="Gantt Programme"] .gantt-v11-label .link{display:inline!important;color:#17385b!important;font-size:8pt!important;text-align:left}body[data-report="Gantt Programme"] .gantt-v11-label small{font-size:6.5pt!important}body[data-report="Gantt Programme"] .gantt-month-header span{font-size:6pt!important}body[data-report="Gantt Programme"] .gantt-v11-variance{font-size:8pt!important}body[data-report="Gantt Programme"] .gantt-edit-panel{display:none!important}body[data-report="Gantt Programme"] .gantt-legend{font-size:8pt!important}body[data-report="Gantt Programme"] .panel{break-inside:auto!important}
}

/* v1.2: nested weekly reports and A3 landscape blank reporting template */
.sidebar button.subnav{padding-left:29px;font-size:13px;color:#526b85}.sidebar button.subnav.active{color:#0034df}
.weekly-report-layout{background:#fff;border:1px solid #d8e1eb;border-radius:9px;padding:17px;margin-bottom:16px}
.weekly-report-title{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #dce5ef;padding-bottom:10px;margin-bottom:12px}.weekly-report-title strong{font-size:17px;color:#123d65}.weekly-report-title small{display:block;margin-top:4px}
.weekly-metadata{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border:1px solid #d9e2eb;margin-bottom:13px}.weekly-metadata>div{padding:8px 10px;border-right:1px solid #d9e2eb;border-bottom:1px solid #d9e2eb;min-height:53px}.weekly-metadata strong{display:block;font-size:10px;color:#55708b;text-transform:uppercase}.weekly-metadata span{display:block;font-size:12px;margin-top:5px}.weekly-metadata em{color:#8895a3;font-weight:400}
.weekly-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.weekly-box{border:1px solid #cddae6;break-inside:avoid;min-height:120px}.weekly-box h3{margin:0;background:#eef3f9;padding:8px 10px;color:#163e65;font-size:12px}.weekly-box-body{padding:10px;min-height:83px;white-space:normal;line-height:1.4;font-size:12px}.blank-indicator{color:#9aa8b5;font-style:italic}.weekly-photos{grid-column:1/-1}.weekly-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:10px}.weekly-photo-empty{height:110px;border:1px dashed #bac8d7;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#8191a1;font-size:12px}.weekly-photo-empty small{margin-top:8px}.weekly-photo-grid figure{margin:0}.weekly-photo-grid img{max-height:135px;width:100%;object-fit:contain}.weekly-photo-grid figcaption{font-size:10px}.weekly-entry-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.weekly-entry-grid label{font-size:12px;display:flex;flex-direction:column;gap:6px}.weekly-entry-grid textarea{min-height:100px}.weekly-draft{margin-top:12px}
@media(max-width:650px){.weekly-metadata{grid-template-columns:repeat(2,1fr)}.weekly-section-grid,.weekly-entry-grid{grid-template-columns:1fr}.weekly-photos{grid-column:1}.weekly-photo-grid{grid-template-columns:repeat(2,1fr)}}
@media print{@page{size:A3 landscape;margin:12mm}body[data-report="Weekly Site Reports"] .weekly-editor,body[data-report="Weekly Site Reports"] #saved-reports{display:none!important}body[data-report="Weekly Site Reports"] #weekly-print-draft{display:block!important}body[data-report="Weekly Site Reports"][data-reportid]:not([data-reportid="draft"]) #weekly-print-draft{display:none!important}body[data-report="Weekly Site Reports"][data-reportid]:not([data-reportid="draft"]) #saved-reports{display:block!important}body[data-report="Weekly Site Reports"] #saved-reports>h2,body[data-report="Weekly Site Reports"] #saved-reports>.empty{display:none!important}body[data-report="Weekly Site Reports"] #saved-reports .site-report{display:none!important}body[data-report="Weekly Site Reports"] #saved-reports .site-report.print-selected{display:block!important}body[data-report="Weekly Site Reports"] .weekly-report-layout{border:0!important;padding:0!important;overflow:visible!important}body[data-report="Weekly Site Reports"] .weekly-box{min-height:32mm!important}body[data-report="Weekly Site Reports"] .weekly-box-body{min-height:24mm!important}body[data-report="Weekly Site Reports"] .weekly-photo-empty{height:33mm!important}body[data-report="Weekly Site Reports"] .weekly-section-grid{grid-template-columns:repeat(2,1fr)!important}body[data-report="Weekly Site Reports"] .weekly-photo-grid{grid-template-columns:repeat(4,1fr)!important}body[data-report="Weekly Site Reports"] .weekly-metadata{grid-template-columns:repeat(3,1fr)!important}}

/* v1.3 weekly reporting: standard menu treatment, A4 portrait and mobile usability */
.sidebar button[data-tab="Weekly Site Reports"]{padding-left:12px;font-size:inherit;color:#083ef0}
.sidebar button[data-tab="Weekly Site Reports"].active{color:#0034df}
@media(max-width:650px){.weekly-report-title{align-items:flex-start;gap:8px;flex-wrap:wrap}.weekly-metadata{grid-template-columns:1fr 1fr}.weekly-report-layout{padding:10px}.weekly-entry-grid textarea{min-height:125px;font-size:16px}.weekly-editor input,.weekly-editor textarea{max-width:100%;font-size:16px}.weekly-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-actions{flex-direction:column;align-items:stretch}.report-actions input{max-width:100%}}
@media print{@page{size:A4 portrait;margin:12mm}body[data-report="Weekly Site Reports"] .weekly-report-layout{font-size:9pt}body[data-report="Weekly Site Reports"] .weekly-metadata{grid-template-columns:repeat(2,minmax(0,1fr))!important}body[data-report="Weekly Site Reports"] .weekly-section-grid{grid-template-columns:1fr!important;gap:5mm!important}body[data-report="Weekly Site Reports"] .weekly-box{min-height:22mm!important}body[data-report="Weekly Site Reports"] .weekly-box-body{min-height:13mm!important}body[data-report="Weekly Site Reports"] .weekly-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body[data-report="Weekly Site Reports"] .weekly-photo-empty{height:35mm!important}body[data-report="Weekly Site Reports"] .weekly-box h3{font-size:10pt}body[data-report="Weekly Site Reports"] .weekly-report-title strong{font-size:14pt}}

/* v1.4 — restore detailed A3 financial and programme reports; weekly remains A4 */
.invoice-table{min-width:1160px}.invoice-table th,.invoice-table td{vertical-align:top}.invoice-evidence{margin-top:20px;padding:16px;border:1px solid #d9e2ed;border-radius:8px}.invoice-editor-panel .formgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:850px){.invoice-editor-panel .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.invoice-editor-panel .formgrid{grid-template-columns:1fr}.invoice-register-panel .tablewrap{overflow-x:auto}.invoice-editor-panel input,.invoice-editor-panel select,.invoice-editor-panel textarea{font-size:16px;max-width:100%}}
@media print{
 @page{size:A3 landscape;margin:10mm}
 body[data-report="Weekly Site Reports"]{--report-paper:A4}
 
 body[data-report="Gantt Programme"] .gantt-v11{display:grid!important;grid-template-columns:73mm minmax(0,1fr) 16mm!important;width:100%!important}
 body[data-report="Gantt Programme"] .gantt-report-panel,body[data-report="Cost to Complete"] .cost-report-panel{display:block!important;visibility:visible!important}
 body[data-report="Gantt Programme"] .gantt-v11-track,body[data-report="Gantt Programme"] .timeline-track{display:block!important}
 body[data-report="Invoice Register"] .invoice-editor-panel{display:none!important}
 body[data-report="Invoice Register"] .invoice-table{min-width:0!important;font-size:7pt!important}
 body[data-report="Invoice Register"] .invoice-table td,body[data-report="Invoice Register"] .invoice-table th{white-space:normal!important;overflow-wrap:anywhere!important}
}

/* v1.5 report mode separation */
.cost-detail-hidden{display:none!important}
.report-mode-controls{margin:12px 0;gap:10px}
@media print { .report-mode-controls{display:none!important} .cost-detail-hidden{display:none!important} .cost-detail-panel:not(.cost-detail-hidden){display:block!important} table{font-size:9px} thead{display:table-header-group} tr{break-inside:avoid} }

/* Procurement progress dashboard */
.proc-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.proc-kpi{border:1px solid #d9e3ef;border-radius:10px;background:#fff;padding:18px;box-shadow:0 2px 6px rgba(20,53,86,.04)}.proc-kpi-title{font-size:13px;font-weight:700;color:#31516f}.proc-kpi-value{font-size:27px;font-weight:700;color:#173a5c;margin:8px 0 0}.proc-kpi-value small{font-size:14px;color:#74869b}.proc-kpi-sub{font-size:12px;color:#536d87;margin-bottom:11px}.proc-progress{height:9px;background:#e8eef5;border-radius:20px;overflow:hidden}.proc-progress span{display:block;height:100%;background:#1269c4;border-radius:20px}@media(max-width:850px){.proc-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.proc-kpi-grid{grid-template-columns:1fr}}@media print{.proc-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.proc-kpi{break-inside:avoid}}

/* v2.0 — unified document/report print standard. Matches Weekly Site Report. */
@media print {
 html,body{font-family:Arial,Helvetica,sans-serif!important;color:#25374b!important;background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .top,.mobile-header,.sidebar,.mobile-scrim,.report-toolbar,.attachment-panel,.banner,.upload-button,.report-actions,.report-mode-controls,.weekly-editor,.invoice-editor-panel,.gantt-edit-panel,form,button,input,select,textarea{display:none!important}
 .print-report-header{display:flex!important;position:relative!important;top:auto!important;left:auto!important;right:auto!important;height:auto!important;min-height:18mm!important;padding:0 0 3mm!important;margin-bottom:5mm!important;border-bottom:1px solid #d7e0e9!important;align-items:center!important;gap:5mm!important}
 .print-report-header img{width:52mm!important;height:auto!important;max-height:16mm!important;object-fit:contain!important}
 .print-report-header strong{font-size:9pt!important;letter-spacing:.25px!important;color:#294563!important}
 .print-report-header span{font-size:10pt!important;color:#173c60!important}
 .print-report-header small{font-size:8pt!important;color:#65788c!important}
 .content{padding:0!important;max-width:none!important}
 #view{margin-top:0!important}
 #view h1{font-size:16pt!important;color:#173c60!important;margin:0 0 4mm!important}
 #view h2{font-size:11pt!important;color:#173c60!important}
 #view h3{font-size:10pt!important;color:#234768!important}
 .panel,.card{border-color:#d7e0e9!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
 .card small,.muted,.tag{color:#62788c!important}
 table{border-collapse:collapse!important;max-width:100%!important}
 th{background:#f2f6fa!important;color:#173c60!important;font-weight:700!important;position:static!important}
 td,th{border-bottom:1px solid #dce5ed!important;white-space:normal!important;overflow-wrap:anywhere!important}
 .foot{margin-top:8mm!important;padding-top:3mm!important;border-top:1px solid #d7e0e9!important;color:#63788a!important;font-size:8pt!important}
 thead{display:table-header-group!important}tr{break-inside:avoid!important}
 body[data-report="Portfolio Management"] .panel,body[data-report="Project Overview"] .panel,body[data-report="Invoice Register"] .panel,body[data-report="Payment Certificates"] .panel,body[data-report="Xero Reconciliation"] .panel,body[data-report="FF&E / OS&E"] .panel{overflow:visible!important;break-inside:auto!important}
 body[data-report="Portfolio Management"] table,body[data-report="Project Overview"] table,body[data-report="Invoice Register"] table,body[data-report="Payment Certificates"] table,body[data-report="Xero Reconciliation"] table,body[data-report="FF&E / OS&E"] table{min-width:0!important;width:100%!important;font-size:7.5pt!important}
 body[data-report="FF&E / OS&E"] .proc-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body[data-report="Administration"] #view{display:none!important}
}

.sidebar button[data-tab="FF&E / OS&E"]{padding-left:12px!important;font-size:inherit!important;color:#083ef0!important;font-weight:400!important}
.sidebar button[data-tab="FF&E / OS&E"].active{color:#0034df!important}
