*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Arial,sans-serif;background:#f3f6fa;color:#172033}.shell{display:grid;grid-template-columns:245px 1fr;min-height:100vh}.sidebar{background:#10243e;color:#fff;padding:22px 14px}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 22px}.brand span{display:block;color:#a9bdd4;font-size:12px}.logo{width:46px;height:46px;border-radius:12px;background:#19a66a;display:grid;place-items:center;font-weight:800}.nav{width:100%;border:0;background:transparent;color:#c9d6e5;text-align:left;padding:11px 14px;border-radius:8px;margin:2px 0;cursor:pointer}.nav.active,.nav:hover{background:#1d3a5e;color:#fff}main{padding:0 24px 40px;min-width:0}header{display:flex;justify-content:space-between;align-items:center;padding:22px 0}h1,h2,p{margin:0}header p,.panel-title p{color:#6d7a8b;margin-top:4px}.user{text-align:right}.user span{font-size:12px;color:#78889c}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.cards article,.panel{background:#fff;border:1px solid #dde5ee;border-radius:12px;box-shadow:0 2px 8px #1b31520d}.cards article{padding:18px}.cards span{display:block;color:#6e7c8f;font-size:13px}.cards strong{display:block;font-size:24px;margin-top:8px}.panel{padding:18px;margin-bottom:16px}.panel-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px}.form-grid label{font-size:12px;font-weight:600;color:#506075}.form-grid input,.form-grid select,.form-grid textarea,.filters input,.filters select,.inline-add input,.inline-add select{width:100%;margin-top:5px;padding:10px;border:1px solid #ccd7e3;border-radius:7px;background:#fff;color:#172033}.wide{grid-column:span 2}.actions{grid-column:1/-1;display:flex;justify-content:flex-end}.primary,.secondary{border:0;border-radius:7px;padding:10px 14px;cursor:pointer;font-weight:600}.primary{background:#16865a;color:#fff}.secondary{background:#edf2f7;color:#27384c}.button-row,.inline-add{display:flex;gap:8px;align-items:center}.filters{display:grid;grid-template-columns:2fr repeat(3,1fr) auto;gap:10px;margin-bottom:12px}.rows{display:flex;gap:8px;align-items:center;font-size:12px}.rows select{width:80px;margin:0}.table-wrap{overflow:auto;border:1px solid #e0e7ef;border-radius:8px}table{width:100%;border-collapse:collapse;min-width:1100px}th,td{padding:10px;border-bottom:1px solid #edf1f5;text-align:left;font-size:12px;white-space:nowrap}th{background:#f7f9fc;color:#47566a;position:sticky;top:0}td.amount{text-align:right;font-weight:700}.row-actions button{border:0;background:#edf2f7;border-radius:5px;padding:6px 8px;margin-right:4px;cursor:pointer}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:12px}.message,.import-result{padding:12px;border-radius:8px;margin-top:12px;background:#e8f7ef;color:#16603f}.error{background:#fdecec;color:#9c2525}.hidden{display:none!important}.modal{position:fixed;inset:0;background:#071525aa;display:grid;place-items:center;padding:20px;z-index:20}.modal-card{background:#fff;border-radius:12px;padding:20px;width:min(900px,96vw);max-height:90vh;overflow:auto}.import-box{display:grid;gap:12px}.check{display:flex!important;align-items:center;gap:8px}.check input{width:auto!important;margin:0!important}.account-list{margin-top:14px;border:1px solid #e0e7ef;border-radius:8px}.account-row{display:grid;grid-template-columns:2fr 1fr auto;gap:8px;padding:10px;border-bottom:1px solid #edf1f5}.account-row input,.account-row select{padding:8px;border:1px solid #ccd7e3;border-radius:6px}.account-row:last-child{border-bottom:0}@media(max-width:1000px){.shell{grid-template-columns:1fr}.sidebar{display:none}.cards{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:repeat(2,1fr)}}
input[readonly]{background:#e5e7eb;color:#6b7280;cursor:not-allowed;border-color:#d1d5db}
button.danger{background:#fff;color:#b91c1c;border:1px solid #fecaca}
button.danger:hover{background:#fef2f2}
.account-active{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:13px}
.cards{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}

input[readonly]{background:#eef1f4;color:#6b7280;cursor:not-allowed}.cards article strong{white-space:nowrap}

.payroll-days{display:grid;grid-template-columns:repeat(7,minmax(90px,1fr));gap:8px;grid-column:1/-1}.calc-preview{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,1fr);gap:8px;background:#f7f9fc;border:1px solid #e0e7ef;border-radius:8px;padding:12px}.calc-preview span{font-size:12px;color:#637287}.calc-preview strong{display:block;color:#172033;font-size:16px;margin-top:4px}.payroll-filters{grid-template-columns:2fr 1fr 1.3fr 1fr auto}@media(max-width:1000px){.payroll-days{grid-template-columns:repeat(2,1fr)}.calc-preview{grid-template-columns:repeat(2,1fr)}}
.project-payroll-controls{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto auto;gap:10px;align-items:end}.project-payroll-controls label{font-size:12px;font-weight:600;color:#506075}.project-payroll-controls input,.project-payroll-controls select{width:100%;margin-top:5px;padding:10px;border:1px solid #ccd7e3;border-radius:7px;background:#fff}.payroll-sheet{min-width:1500px}.payroll-sheet th,.payroll-sheet td{text-align:center}.payroll-sheet td:nth-child(2),.payroll-sheet th:nth-child(2){text-align:left;position:sticky;left:0;background:#fff;z-index:1}.payroll-sheet thead th:nth-child(2){background:#f7f9fc;z-index:3}.payroll-sheet tfoot th{background:#eaf3fb;font-weight:800}.sent-badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#dff5e9;color:#16603f;font-weight:700}.not-sent-badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#f1f3f5;color:#687386}.check-row{display:flex;align-items:center;gap:8px;padding-top:24px}.check-row input{width:auto!important;margin:0!important}@media(max-width:1200px){.project-payroll-controls{grid-template-columns:repeat(2,1fr)}}
.payroll-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px;padding:8px;background:#fff;border:1px solid #d8e0ea;border-radius:10px}.payroll-tab{border:1px solid #b8c4d1;background:#eef3f8;padding:10px 16px;border-radius:7px;font-weight:700;cursor:pointer}.payroll-tab.active{background:#0b6fb8;color:#fff;border-color:#0b6fb8}.compact-form{margin-bottom:18px}.compact-form .actions{align-self:end}.payslip-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:18px}.payslip-controls label{min-width:240px}.payslip-preview{background:#fff;border:1px solid #6b7280;max-width:900px;margin:auto;padding:14px;color:#111}.payslip-head{display:grid;grid-template-columns:90px 1fr 180px;align-items:center;border:2px solid #111;border-bottom:none}.payslip-logo{font-weight:800;text-align:center;padding:12px}.payslip-company{background:#39c75a;padding:12px;font-size:24px;font-weight:800}.payslip-release{background:#39c75a;padding:12px;font-weight:700}.payslip-period,.payslip-employee{border:2px solid #111;border-top:none;padding:8px}.payslip-employee{font-size:21px}.payslip-grid{display:grid;grid-template-columns:1.5fr 1fr;border:2px solid #111;border-top:none}.payslip-grid>div{padding:10px}.payslip-grid>div+div{border-left:1px solid #111}.payslip-table{width:100%;border-collapse:collapse}.payslip-table th,.payslip-table td{border-bottom:1px dotted #777;padding:5px;text-align:left}.payslip-net{background:#075d28;color:white;font-size:22px;font-weight:800;padding:14px;display:flex;justify-content:space-between}.payslip-note{text-align:center;font-size:12px;padding:12px}.muted{color:#6b7280}@media print{body *{visibility:hidden}.payslip-preview,.payslip-preview *{visibility:visible}.payslip-preview{position:absolute;left:0;top:0;width:100%;max-width:none;border:0}.sidebar,.topbar,.payroll-tabs,.panel-title,.payslip-controls{display:none!important}}

.register-filter-bar{display:grid;grid-template-columns:minmax(240px,2fr) minmax(180px,1fr) repeat(3,minmax(140px,1fr)) auto auto;gap:10px;align-items:end;margin:0 0 16px}.register-filter-bar input,.register-filter-bar select{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}.locked-history{background:#e5e7eb!important;color:#64748b!important;pointer-events:none}@media(max-width:1100px){.register-filter-bar{grid-template-columns:1fr 1fr}}

.filtered-total-banner{margin:12px 0;padding:12px 16px;border-radius:10px;background:#eef7f2;border:1px solid #cfe8d9;font-size:1rem}.filtered-total-banner strong{font-size:1.2rem;color:#17623b}.summary-filter-line{margin:0 0 14px;padding:10px 12px;background:#f4f7fa;border-radius:8px}.payroll-history-panel{margin-top:18px;padding-top:16px;border-top:1px solid #d9e1ea}.payroll-history-chart{display:flex;align-items:flex-end;gap:8px;min-height:220px;padding:20px 12px 8px;overflow-x:auto;background:#f8fafc;border:1px solid #dce4ec;border-radius:10px}.history-bar-item{min-width:54px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:190px}.history-bar{width:34px;background:#6b8fb3;border-radius:6px 6px 0 0}.history-bar-item.selected .history-bar{background:#16824b;box-shadow:0 0 0 3px rgba(22,130,75,.15)}.history-value{font-size:.68rem;writing-mode:vertical-rl;transform:rotate(180deg);max-height:75px;overflow:hidden;margin-bottom:4px}.history-bar-item small{margin-top:5px;white-space:nowrap}.project-payroll-controls select{min-width:180px}


/* v7 dashboard and attendance */
.dashboard-hero{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;margin-bottom:16px;border-radius:14px;background:linear-gradient(135deg,#10243e,#145f68);color:#fff}.dashboard-hero span{font-size:11px;letter-spacing:2px;color:#a8e6d0}.dashboard-hero h2{font-size:28px;margin:4px 0}.dashboard-hero p{color:#d7e7ef}.dashboard-kpis article{border-top:4px solid #16865a}.dashboard-grid{display:grid;grid-template-columns:3fr 1fr;gap:16px}.dashboard-wide{min-width:0}.metric-list{display:grid;gap:10px;margin-top:18px}.metric-list div{padding:14px;border-radius:10px;background:#f4f7fa}.metric-list span{display:block;color:#6e7c8f;font-size:12px}.metric-list strong{display:block;font-size:22px;margin-top:4px}.project-health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.project-health-card{border:1px solid #dbe4ed;border-radius:12px;padding:14px}.project-health-card>div:first-child{display:flex;justify-content:space-between;gap:8px;margin-bottom:12px}.project-health-card span{font-size:11px;color:#6d7a8b}.project-health-card label{display:flex;justify-content:space-between;font-size:11px;margin-top:9px}.progress{height:8px;background:#e5edf4;border-radius:99px;overflow:hidden;margin-top:4px}.progress i{display:block;height:100%;background:#22a06b}.progress.expense i{background:#e98a3a}.progress.schedule i{background:#3b82c4}.attendance-filters{display:grid;grid-template-columns:2fr repeat(3,1fr) auto;gap:10px}.attendance-filters input,.attendance-filters select,.payroll-search-line input,.attendancePage td input,.attendancePage td select{width:100%;padding:9px;border:1px solid #ccd7e3;border-radius:7px;background:#fff}.payroll-search-line{display:flex;gap:10px;margin-bottom:12px}.payroll-search-line input{max-width:520px}#attendancePage table{min-width:1200px}#attendancePage td input,#attendancePage td select{min-width:95px;padding:6px}@media(max-width:1000px){.dashboard-grid{grid-template-columns:1fr}.attendance-filters{grid-template-columns:1fr 1fr}.dashboard-hero{align-items:flex-start;gap:12px}}


/* v7.0.1 payslip layout correction */
#paytab-payslip .panel{overflow:hidden}
.payslip-preview{width:min(100%,980px);max-width:980px;margin:0 auto;padding:12px;overflow:hidden}
.payslip-head{grid-template-columns:72px minmax(0,1fr) 170px}
.payslip-company,.payslip-release{min-width:0;overflow-wrap:anywhere}
.payslip-grid{grid-template-columns:minmax(0,1.55fr) minmax(260px,.85fr);width:100%}
.payslip-grid>div{min-width:0;overflow:hidden}
.payslip-table{width:100%;min-width:0!important;table-layout:fixed}
.payslip-table th,.payslip-table td{white-space:normal;overflow-wrap:anywhere;padding:6px 5px}
.payslip-table th:last-child,.payslip-table td:last-child{text-align:right;width:34%}
.payslip-grid>div>p{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:6px;line-height:1.45;margin:3px 0;overflow-wrap:anywhere}
.payslip-grid>div>p strong{white-space:nowrap}
.payslip-net{margin-top:12px;gap:10px;align-items:center;font-size:20px}
.payslip-note{line-height:1.35}
@media(max-width:850px){
 .payslip-preview{padding:8px}
 .payslip-head{grid-template-columns:60px 1fr}
 .payslip-release{grid-column:1/-1;border-top:1px solid #111}
 .payslip-grid{grid-template-columns:1fr}
 .payslip-grid>div+div{border-left:0;border-top:1px solid #111}
}
@media print{
 @page{size:A4 portrait;margin:10mm}
 .payslip-preview{width:190mm!important;max-width:190mm!important;padding:0!important;overflow:visible!important}
 .payslip-grid{grid-template-columns:minmax(0,1.55fr) minmax(230px,.85fr)!important}
 .payslip-table{min-width:0!important}
 .payroll-history-panel{display:none!important}
}
.dashboard-actions{display:flex;align-items:end;gap:10px}.dashboard-actions label{display:grid;gap:4px;font-size:12px;font-weight:700}.dashboard-actions select{min-width:100px;padding:9px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}

.summary-grid-table th,.summary-grid-table td{border-right:1px solid #cbd5e1}.summary-grid-table th:last-child,.summary-grid-table td:last-child{border-right:0}.column-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.column-options label{padding:10px;border:1px solid #dbe3ec;border-radius:8px}.small-modal{max-width:620px}.filters button{white-space:nowrap}

.impact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:16px 0}.impact-grid article{border:1px solid var(--border,#d9e1e8);border-radius:10px;padding:14px;background:#f8fafc}.impact-grid span{display:block;font-size:12px;color:#64748b}.impact-grid strong{font-size:22px}.employee-action-buttons{display:flex;gap:10px;flex-wrap:wrap}.large-modal{width:min(1000px,95vw);max-height:90vh;overflow:auto}

.attendance-week-strip{display:grid;grid-template-columns:repeat(7,minmax(110px,1fr));gap:8px;margin:12px 0}.attendance-day{border:1px solid #d8dee8;border-radius:10px;padding:8px 10px;background:#fff;text-align:center}.attendance-day strong,.attendance-day span{display:block}.attendance-day span{font-size:12px;color:#64748b;margin-top:3px}.attendance-day.selected{outline:2px solid #2563eb;background:#eff6ff}@media(max-width:900px){.attendance-week-strip{grid-template-columns:repeat(2,minmax(130px,1fr))}}

.duplicate-group{border:1px solid var(--border,#d9e1ea);border-radius:10px;padding:12px;margin:12px 0}.duplicate-group h4{margin:0 0 8px}.duplicate-group small{font-weight:400;color:#64748b}.success-text{padding:14px;background:#e9f8ef;border-radius:8px;color:#166534}.duplicate-group table{min-width:760px}

/* v7.3.7 payroll visibility and attendance payroll-week selector */
.payroll-sheet td.positive-value{background:#fff3bf!important;color:#7a3e00;font-weight:800;box-shadow:inset 0 0 0 1px #f2c94c}
.attendance-day{cursor:pointer;font:inherit}.attendance-day:hover{border-color:#2563eb;background:#f8fbff}.attendance-day.selected{outline:3px solid #f97316;background:#fff7ed;border-color:#f97316}

/* v7.3.8 attendance saved/edit state */
#attendanceBody tr.attendance-saved-row { background:#eef1f4; color:#657180; }
#attendanceBody tr.attendance-saved-row input:disabled,
#attendanceBody tr.attendance-saved-row select:disabled { background:#e3e7eb; color:#657180; border-color:#cbd2d9; cursor:not-allowed; }

/* v7.4.0 clickable payslip history */
button.history-bar-item{appearance:none;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:4px 6px;border-radius:8px}
button.history-bar-item:hover,button.history-bar-item:focus{background:#eef5ff;outline:2px solid #8bb8ef}


/* v7.4.1 company branding and redesigned payslip */
.logo{overflow:hidden;background:#fff;border:1px solid rgba(255,255,255,.25)}.logo img{width:100%;height:100%;object-fit:cover;display:block}
.payslip-preview{max-width:1120px!important;width:min(100%,1120px)!important;border:0!important;background:transparent!important;padding:0!important}
.qpb-slip{font-family:Arial,Segoe UI,sans-serif;color:#151515;background:#fff;border:1.5px solid #19733e;border-radius:14px;padding:12px;box-shadow:0 4px 20px rgba(15,65,42,.08);overflow:hidden}
.qpb-slip-header{display:grid;grid-template-columns:135px minmax(0,1fr) 285px;align-items:center;min-height:118px;background:linear-gradient(135deg,#087535,#005c29);color:#fff;border-radius:11px;overflow:hidden}
.qpb-slip-logo{width:118px;height:118px;object-fit:cover;border-radius:50%;background:#fff;border:4px solid #e7f6ed;margin-left:10px}
.qpb-slip-brand{padding:10px 18px}.qpb-slip-brand h2{font-size:38px;line-height:1;margin:0 0 12px;font-weight:800}.qpb-slip-brand p{font-size:14px;letter-spacing:5px;color:#fff;text-align:center}
.qpb-slip-release{align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:16px 28px;border-left:1px solid rgba(255,255,255,.35)}.qpb-slip-release span{font-weight:800;font-size:13px}.qpb-slip-release strong{font-size:30px;margin-top:6px}
.qpb-slip-top{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px;margin-top:12px}.qpb-slip-identity,.qpb-slip-summary>div{border:1px solid #cdd8d1;border-radius:9px}.qpb-slip-name-row{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;padding:18px;border-bottom:1px solid #d8e0db}.qpb-slip-name-row h1{font-size:29px;align-self:center}.qpb-slip-name-row span,.qpb-slip-meta span{display:block;color:#176d3c;font-size:11px;font-weight:800;letter-spacing:.5px}.qpb-slip-name-row strong{display:block;margin:6px 0;font-size:16px}.qpb-slip-name-row small{display:block;color:#59635d}
.qpb-slip-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:0}.qpb-slip-meta div{padding:13px 15px;border-right:1px solid #d8e0db;border-bottom:1px solid #d8e0db}.qpb-slip-meta div:nth-child(3),.qpb-slip-meta div:last-child{border-right:0}.qpb-slip-meta div:nth-last-child(-n+2){border-bottom:0}.qpb-slip-meta strong{display:block;margin-top:5px;font-size:14px;overflow-wrap:anywhere}
.qpb-slip-summary{display:grid;gap:10px}.rate-row{display:flex;justify-content:space-between;padding:13px 16px;font-size:15px}.rate-row+ .rate-row{margin-top:-11px;border-top:0!important;border-radius:0 0 9px 9px!important}.earnings-card{padding:12px 16px}.earnings-card div{display:flex;justify-content:space-between;padding:6px 0}.earnings-card .gross{border-top:1px dashed #9cab9f;margin-top:5px;padding-top:11px;color:#087535;font-weight:800}.qpb-slip-net{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;background:linear-gradient(135deg,#087535,#005c29);color:#fff;font-size:23px;font-weight:800}.qpb-slip-net strong{font-size:28px}.qpb-slip-system{text-align:center;font-size:11px;font-style:italic;line-height:1.5;margin:2px 0 4px;color:#333}
.qpb-slip-main-table{margin-top:12px;border:1px solid #9eb0a4;border-radius:9px;overflow:hidden}.qpb-slip-main-table table{min-width:0!important;width:100%;table-layout:fixed}.qpb-slip-main-table th{position:static;background:#087535;color:#fff;border-right:1px solid rgba(255,255,255,.28);padding:10px 7px;text-align:center;font-size:11px}.qpb-slip-main-table td{padding:7px;border-right:1px solid #dde5e0;border-bottom:1px solid #e5ebe7;white-space:normal}.qpb-slip-main-table td:nth-child(1){width:6%}.qpb-slip-main-table td:nth-child(2){width:10%}.qpb-slip-main-table td:nth-child(3){width:9%}.qpb-slip-main-table td:nth-child(4),.qpb-slip-main-table td:nth-child(6){width:22%}.qpb-slip-main-table .totals td{background:#f2f7f4;font-weight:800}.qpb-slip-main-table .amount{text-align:right}
.qpb-slip-notes{display:grid;grid-template-columns:auto 1fr;gap:12px;min-height:44px;align-items:center;margin-top:12px;border:1px solid #b9c9bf;border-radius:8px;padding:10px 14px}.qpb-slip-notes strong{color:#087535}.qpb-slip-notes span{border-bottom:1px dotted #647269;min-height:20px}
.qpb-slip-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px}.qpb-slip-details>div{border:1px solid #9eb0a4;border-radius:8px;overflow:hidden}.qpb-slip-details h3{font-size:12px;color:#087535;padding:9px 12px;background:#f1f7f3;border-bottom:1px solid #cfdad3}.qpb-slip-details table{min-width:0!important;width:100%;table-layout:fixed}.qpb-slip-details td,.qpb-slip-details th{position:static;padding:7px 10px;white-space:normal}.qpb-slip-details .empty-detail{text-align:center;color:#6b7280;height:65px}.qpb-slip-details tfoot th{background:#f1f7f3;color:#154f30}.qpb-slip-details .amount{text-align:right}
.qpb-slip-footer{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:22px;margin-top:14px;color:#087535}.qpb-slip-footer span{border-top:1px solid #087535}.qpb-slip-footer em{font-size:11px;font-weight:700}
@media(max-width:900px){.qpb-slip-header{grid-template-columns:90px 1fr}.qpb-slip-logo{width:78px;height:78px}.qpb-slip-brand h2{font-size:25px}.qpb-slip-brand p{font-size:9px;letter-spacing:2px}.qpb-slip-release{grid-column:1/-1;border-left:0;border-top:1px solid rgba(255,255,255,.35);padding:10px 20px}.qpb-slip-top{grid-template-columns:1fr}.qpb-slip-name-row{grid-template-columns:1fr}.qpb-slip-details{grid-template-columns:1fr}.qpb-slip-main-table{overflow:auto}.qpb-slip-main-table table{min-width:800px!important}}
@media print{@page{size:A4 landscape;margin:7mm}.qpb-slip{width:283mm!important;max-width:283mm!important;min-height:190mm;border:1px solid #19733e!important;border-radius:8px!important;padding:8px!important;box-shadow:none!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.payslip-preview{width:283mm!important;max-width:283mm!important}.qpb-slip-header{min-height:91px}.qpb-slip-logo{width:88px;height:88px}.qpb-slip-brand h2{font-size:30px}.qpb-slip-release strong{font-size:24px}.qpb-slip-top{grid-template-columns:minmax(0,1fr) 255px;gap:8px;margin-top:8px}.qpb-slip-name-row{padding:11px}.qpb-slip-name-row h1{font-size:22px}.qpb-slip-meta div{padding:8px 10px}.qpb-slip-summary{gap:6px}.rate-row,.earnings-card{padding:8px 12px}.earnings-card div{padding:3px 0}.qpb-slip-net{padding:11px 15px;font-size:18px}.qpb-slip-net strong{font-size:22px}.qpb-slip-main-table{margin-top:8px}.qpb-slip-main-table td{padding:4px 6px}.qpb-slip-notes{min-height:32px;margin-top:8px;padding:6px 10px}.qpb-slip-details{margin-top:7px;gap:8px}.qpb-slip-details td,.qpb-slip-details th{padding:4px 7px}.qpb-slip-details .empty-detail{height:35px}.qpb-slip-footer{margin-top:7px}.payroll-history-panel{display:none!important}}


/* v7.4.3 compact half-letter payslip */
.payslip-preview{max-width:760px!important;width:min(100%,760px)!important}
.qpb-slip{padding:8px!important;border-radius:10px!important}
.qpb-slip-header{grid-template-columns:88px minmax(0,1fr) 185px;min-height:78px}
.qpb-slip-logo{width:72px;height:72px;margin-left:7px;border-width:2px}
.qpb-slip-brand{padding:7px 10px}.qpb-slip-brand h2{font-size:25px;margin-bottom:7px}.qpb-slip-brand p{font-size:8px;letter-spacing:2.5px}
.qpb-slip-release{padding:9px 14px}.qpb-slip-release span{font-size:9px}.qpb-slip-release strong{font-size:20px}
.qpb-slip-top{grid-template-columns:minmax(0,1fr) 205px;gap:7px;margin-top:7px}
.qpb-slip-name-row{gap:10px;padding:9px}.qpb-slip-name-row h1{font-size:19px}.qpb-slip-name-row span,.qpb-slip-meta span{font-size:8px}.qpb-slip-name-row strong{font-size:11px;margin:3px 0}.qpb-slip-name-row small{font-size:8px}
.qpb-slip-meta div{padding:6px 8px}.qpb-slip-meta strong{font-size:9px;margin-top:2px}
.qpb-slip-summary{gap:5px}.rate-row{padding:7px 9px;font-size:10px}.earnings-card{padding:6px 9px;font-size:9px}.earnings-card div{padding:2px 0}
.qpb-slip-net{padding:9px 11px;font-size:15px}.qpb-slip-net strong{font-size:18px}.qpb-slip-system{font-size:7px;line-height:1.3}
.qpb-slip-main-table{margin-top:7px}.qpb-slip-main-table th{padding:5px 4px;font-size:7px}.qpb-slip-main-table td{padding:3px 4px;font-size:7px}
.qpb-slip-notes{min-height:25px;margin-top:7px;padding:5px 8px;font-size:8px}
.qpb-slip-details{gap:7px;margin-top:6px}.qpb-slip-details h3{font-size:8px;padding:5px 7px}.qpb-slip-details td,.qpb-slip-details th{padding:3px 5px;font-size:7px}.qpb-slip-details .empty-detail{height:27px}
.qpb-slip-footer{gap:12px;margin-top:6px}.qpb-slip-footer em{font-size:7px}

@media print{
 @page{size:8.5in 5.5in landscape;margin:0.16in}
 html,body{width:8.5in!important;height:5.5in!important;margin:0!important;padding:0!important}
 .payslip-preview{width:8.16in!important;max-width:8.16in!important;margin:0 auto!important}
 .qpb-slip{width:8.16in!important;max-width:8.16in!important;min-height:5.12in!important;padding:0.06in!important;border-radius:0.06in!important;transform:none!important}
 .qpb-slip-header{grid-template-columns:0.82in minmax(0,1fr) 1.72in;min-height:0.72in}
 .qpb-slip-logo{width:0.66in;height:0.66in;margin-left:0.06in}
 .qpb-slip-brand h2{font-size:18pt}.qpb-slip-brand p{font-size:6pt;letter-spacing:1.5pt}
 .qpb-slip-release{padding:0.07in 0.12in}.qpb-slip-release span{font-size:6pt}.qpb-slip-release strong{font-size:14pt}
 .qpb-slip-top{grid-template-columns:minmax(0,1fr) 1.9in;gap:0.05in;margin-top:0.05in}
 .qpb-slip-name-row{padding:0.06in}.qpb-slip-name-row h1{font-size:13pt}.qpb-slip-name-row strong{font-size:8pt}.qpb-slip-name-row small,.qpb-slip-name-row span,.qpb-slip-meta span{font-size:5.5pt}
 .qpb-slip-meta div{padding:0.04in 0.05in}.qpb-slip-meta strong{font-size:6.5pt}
 .rate-row{padding:0.04in 0.06in;font-size:7pt}.earnings-card{padding:0.04in 0.06in;font-size:6.5pt}.qpb-slip-net{padding:0.06in 0.08in;font-size:10pt}.qpb-slip-net strong{font-size:12pt}.qpb-slip-system{font-size:5pt}
 .qpb-slip-main-table{margin-top:0.05in}.qpb-slip-main-table th{padding:0.025in;font-size:5.5pt}.qpb-slip-main-table td{padding:0.018in 0.025in;font-size:5.4pt}
 .qpb-slip-notes{min-height:0.18in;margin-top:0.04in;padding:0.03in 0.05in;font-size:5.5pt}
 .qpb-slip-details{gap:0.04in;margin-top:0.04in}.qpb-slip-details h3{font-size:5.5pt;padding:0.03in 0.05in}.qpb-slip-details td,.qpb-slip-details th{padding:0.018in 0.03in;font-size:5.2pt}.qpb-slip-details .empty-detail{height:0.2in}
 .qpb-slip-footer{margin-top:0.035in}.qpb-slip-footer em{font-size:5pt}
}


/* v7.4.4 improved payslip readability */
.qpb-slip-name-row h1{font-size:22px}
.qpb-slip-name-row span,.qpb-slip-meta span{font-size:9px}
.qpb-slip-name-row strong{font-size:12px}
.qpb-slip-name-row small{font-size:9px}
.qpb-slip-meta strong{font-size:10px}
.rate-row{font-size:11px}
.earnings-card{font-size:10px}
.qpb-slip-system{font-size:8px}
.qpb-slip-main-table th{font-size:8px}
.qpb-slip-main-table td{font-size:8px}
.qpb-slip-notes{font-size:9px}
.qpb-slip-details h3{font-size:9px}
.qpb-slip-details td,.qpb-slip-details th{font-size:8px}
.qpb-slip-footer em{font-size:8px}
@media print{
 .qpb-slip-name-row h1{font-size:14pt}
 .qpb-slip-name-row strong{font-size:8.8pt}
 .qpb-slip-name-row small,.qpb-slip-name-row span,.qpb-slip-meta span{font-size:6.2pt}
 .qpb-slip-meta strong{font-size:7.2pt}
 .rate-row{font-size:7.7pt}
 .earnings-card{font-size:7.2pt}
 .qpb-slip-system{font-size:5.8pt}
 .qpb-slip-main-table th{font-size:6.2pt}
 .qpb-slip-main-table td{font-size:6.1pt}
 .qpb-slip-notes{font-size:6.2pt}
 .qpb-slip-details h3{font-size:6.2pt}
 .qpb-slip-details td,.qpb-slip-details th{font-size:5.9pt}
 .qpb-slip-footer em{font-size:5.8pt}
}

/* v7.5.0 compact, screenshot-ready payslip with readable print text */
.qpb-payslip{max-width:700px!important;margin:0 auto!important;font-size:10px!important;line-height:1.15!important}
.qpb-slip-header{padding:8px 10px!important;min-height:70px!important}.qpb-slip-logo{width:56px!important;height:56px!important}.qpb-slip-brand h2{font-size:23px!important;line-height:1!important}.qpb-slip-brand p{font-size:7.5px!important;letter-spacing:1.8px!important}.qpb-slip-release strong{font-size:16px!important}.qpb-slip-employee h2{font-size:19px!important}.qpb-payslip table{font-size:8.8px!important}.qpb-payslip th,.qpb-payslip td{padding:2.5px 4px!important}.qpb-slip-net{padding:8px!important;font-size:17px!important}.qpb-slip-detail{min-height:32px!important}.qpb-slip-notes{padding:5px!important}.negative{color:#b42318!important;font-weight:700}.budget-status{display:inline-block;padding:3px 7px;border-radius:10px;font-weight:700;white-space:nowrap}.budget-status.over{background:#fee4e2;color:#b42318}.budget-status.under{background:#dcfae6;color:#067647}.budget-status.pending{background:#f2f4f7;color:#475467}
@media print{.qpb-payslip{width:7.6in!important;max-width:7.6in!important;font-size:9pt!important;line-height:1.12!important}.qpb-payslip table{font-size:8pt!important}.qpb-payslip th,.qpb-payslip td{padding:2px 3px!important}@page{size:letter landscape;margin:.2in}}

/* Employee workforce and status overview */
.employee-overview-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;margin:18px 0}
.employee-overview-panel{margin:0}
.employee-summary-featured{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}
.employee-summary-featured>div,.employee-breakdown-item{border:1px solid #dbe6df;background:#f8fbf9;border-radius:10px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.employee-summary-featured span,.employee-breakdown-item span{font-size:12px;color:#52645a;font-weight:700}
.employee-summary-featured strong{font-size:25px;color:#176b43}
.employee-breakdown-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:280px;overflow:auto;padding-right:3px}
.employee-breakdown-item strong{font-size:18px;color:#173f2d}
.status-breakdown .employee-breakdown-item{border-left:5px solid #7f9b8b}
.status-breakdown .status-active{border-left-color:#21a366;background:#f0fbf5}
.status-breakdown .status-in-active,.status-breakdown .status-inactive{border-left-color:#e7a117;background:#fff8e8}
.status-breakdown .status-terminated{border-left-color:#d64545;background:#fff1f1}
.status-breakdown .status-resigned,.status-breakdown .status-archived{border-left-color:#737b86;background:#f3f4f6}
.status-breakdown .status-on-leave{border-left-color:#2b7bbb;background:#eef7ff}
@media(max-width:980px){.employee-overview-grid{grid-template-columns:1fr}.employee-breakdown-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.employee-breakdown-grid,.employee-summary-featured{grid-template-columns:1fr}}
/* v7.5.6: keep the Project Directory horizontal scrollbar visible without scrolling the whole page */
#projectsPage .table-wrap{max-height:62vh;overflow:auto;scrollbar-gutter:stable both-edges}
#projectsPage .table-wrap table{margin-bottom:2px}

/* v7.6.4 safe rebuild: the active module is part of the scrollable main view. */
html, body { height: 100%; }
body { overflow: hidden; }
.shell { height: 100vh; overflow: hidden; }
main { height: 100vh; overflow: auto; min-width: 0; }
.page { min-width: max-content; padding-right: 18px; }
.page > * { min-width: 0; }
.table-wrap, .payroll-sheet-wrap { max-width: calc(100vw - 280px); overflow: auto; }
@media (max-width: 900px) { body { overflow: auto; } .shell { height: auto; overflow: visible; } main { height: auto; overflow: visible; } .page { min-width: 0; } .table-wrap, .payroll-sheet-wrap { max-width: 100vw; } }


/* v7.7.0 responsive screen-fit update */
body{overflow:auto!important}.shell{min-height:100vh;height:auto!important;overflow:visible!important}main{height:auto!important;min-width:0!important;overflow:visible!important}.page{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box}.panel,.cards,.form-grid,.filters,.project-payroll-controls,.attendance-filters,.register-filter-bar{min-width:0!important}.table-wrap,.payroll-sheet-wrap{max-width:100%!important;width:100%!important;overflow:auto!important}.table-wrap table{width:100%;min-width:900px}.project-directory-wrap{max-height:62vh;overflow:auto}.project-directory-table .sticky-project{position:sticky;left:0;z-index:3;background:#fff;min-width:190px;box-shadow:2px 0 4px rgba(0,0,0,.08)}.project-directory-table thead .sticky-project{z-index:5;background:#f2f6fa}.project-filters{grid-template-columns:minmax(180px,1.2fr) minmax(180px,1.2fr) minmax(150px,.7fr) auto auto}.qty-entry{display:grid;grid-template-columns:minmax(90px,1fr) minmax(85px,.7fr);gap:6px}.inline-check{display:flex!important;align-items:center;gap:6px;margin-top:5px;font-size:12px}.inline-check input{width:auto}.employee-summary-featured .workforce-card,.workforce-card.employee-breakdown-item{width:100%;border:1px solid #dbe6df;background:#f8fbf9;border-radius:10px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;text-align:left}.workforce-card:hover{border-color:#218c5b;background:#edf9f2}.cashflow-matrix-wrap{overflow:auto;max-height:70vh;border:1px solid #d5e0e8}.cashflow-matrix{border-collapse:collapse;min-width:1500px;width:100%;font-size:11px}.cashflow-matrix th,.cashflow-matrix td{border:1px solid #c8d7e5;padding:7px 8px;white-space:nowrap;text-align:right}.cashflow-matrix th:first-child{position:sticky;left:0;z-index:2;text-align:left;background:#fff;min-width:230px}.cashflow-matrix thead th{position:sticky;top:0;background:#176987;color:white;z-index:4}.cashflow-matrix thead th:first-child{z-index:5;background:#176987}.cashflow-matrix .section-row th{background:#eef7f1;color:#14532d;font-size:13px;text-align:left}.cashflow-matrix .total-row th,.cashflow-matrix .total-row td,.cashflow-matrix .closing-row th,.cashflow-matrix .closing-row td{background:#cfe3f5;font-weight:700}.cashflow-matrix .negative{color:#e11d48;font-weight:700}.modal{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}.modal.hidden{display:none}.gantt-modal-card{background:#fff;border-radius:14px;padding:20px;width:min(1100px,95vw);max-height:90vh;overflow:auto}.gantt-axis{display:grid;grid-template-columns:repeat(5,1fr);margin-left:190px;font-size:11px;color:#64748b}.gantt-axis span:last-child{text-align:right}.gantt-row{display:grid;grid-template-columns:180px minmax(300px,1fr) 180px;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #e5e7eb}.gantt-track{height:24px;background:repeating-linear-gradient(90deg,#f1f5f9 0,#f1f5f9 calc(25% - 1px),#cbd5e1 calc(25% - 1px),#cbd5e1 25%);position:relative;border-radius:5px}.gantt-bar{position:absolute;top:3px;height:18px;background:#218c5b;border-radius:5px}.qpb-payslip{width:min(100%,7.9in)!important;max-width:7.9in!important}.qpb-payslip table{font-size:9px!important}.qpb-payslip th,.qpb-payslip td{padding:3px 4px!important}
@media(max-width:1400px){main{padding-left:16px!important;padding-right:16px!important}.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cards{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.payroll-sheet{font-size:11px}.payroll-sheet th,.payroll-sheet td{padding:6px 5px}.register-filter-bar,.attendance-filters,.project-payroll-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}.register-filter-bar button,.attendance-filters button,.project-payroll-controls button{width:100%}}
@media(max-width:1100px){.shell{display:block}.sidebar{position:relative!important;width:100%!important;height:auto!important}.sidebar nav{display:flex;overflow:auto;gap:5px}.sidebar .nav{white-space:nowrap}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-overview-grid{grid-template-columns:1fr}.project-directory-table .sticky-project{left:0}.table-wrap table{min-width:760px}.payroll-sheet{min-width:1250px!important}}
@media(max-width:700px){main{padding:12px!important}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto!important}.project-filters{grid-template-columns:1fr}.gantt-row{grid-template-columns:1fr}.gantt-axis{margin-left:0}.gantt-row small{font-size:10px}}
@media print{@page{size:letter landscape;margin:1cm}.qpb-payslip{width:9.7in!important;max-width:9.7in!important;min-height:4.9in!important;margin:0 auto!important}.qpb-payslip table{font-size:7.5pt!important}.qpb-payslip th,.qpb-payslip td{padding:2.5px 3px!important}.qpb-slip-header{min-height:.68in!important}.qpb-slip-logo{width:.58in!important;height:.58in!important}.qpb-slip-brand h2{font-size:17pt!important}}

/* v7.7.1 usability fixes */
.sidebar{position:sticky!important;top:0;height:100vh;overflow-y:auto;align-self:start;z-index:100}
.cashflow-collapsed{display:none!important}
.name-popup-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;max-height:60vh;overflow:auto}
.name-popup-list>div{border:1px solid #dbe5ec;border-radius:8px;padding:10px;display:flex;flex-direction:column}
.name-popup-list span{font-size:12px;color:#64748b}
.account-row{grid-template-columns:minmax(150px,1.2fr) minmax(120px,.8fr) 120px 140px auto auto auto!important}
.account-balance{white-space:nowrap;color:#176b43}
.qpb-payslip{font-size:11px!important}.qpb-payslip table{font-size:9.7px!important}
@media print{@page{size:letter landscape;margin:1cm}.qpb-payslip{width:9.3in!important;max-width:9.3in!important;font-size:9pt!important}.qpb-payslip table{font-size:7.4pt!important}.qpb-slip-name-row h1{font-size:15pt!important}.qpb-slip-meta strong,.rate-row{font-size:8pt!important}}

/* v7.7.2 targeted fixes */
#cashflowPanel.cashflow-collapsed{display:none!important}
.qpb-slip-summary .rate-row{margin:0!important;border:1px solid #cdd8d1!important;border-radius:8px!important;min-height:34px;align-items:center;gap:16px}
.qpb-slip-summary .rate-row strong{white-space:nowrap;margin-left:auto}
.qpb-slip-top{grid-template-columns:minmax(0,1fr) minmax(220px,250px)!important}
.qpb-payslip{font-size:12px!important}
.qpb-payslip table{font-size:10.5px!important}
.qpb-slip-name-row h1{font-size:24px!important}
.qpb-slip-meta strong,.qpb-slip-summary .rate-row{font-size:11px!important}
@media print{.qpb-payslip{font-size:10pt!important}.qpb-payslip table{font-size:8pt!important}.qpb-slip-summary .rate-row{font-size:8.5pt!important;min-height:0!important}.qpb-slip-top{grid-template-columns:minmax(0,1fr) 2.15in!important}}


/* v7.7.4 navigation, searchable attendance/payslip, and exact half-letter print */
.sidebar .nav,.payroll-tab{text-transform:uppercase;letter-spacing:.25px}
#attendanceEmployeeSearch,#payslipEmployeeSearch{width:100%;margin-top:5px;padding:10px;border:1px solid #ccd7e3;border-radius:7px;background:#fff;color:#172033}
#attendanceAddModal .modal-card{width:min(560px,96vw)}
#attendanceAddModal label{display:block;margin-bottom:12px;font-size:12px;font-weight:600;color:#506075}
@media print{
 @page{size:8.5in 5.5in;margin:0.39in}
 .qpb-payslip{width:7.72in!important;max-width:7.72in!important;min-height:4.72in!important;margin:0 auto!important;font-size:10pt!important}
 .qpb-payslip table{font-size:8.3pt!important}
 .qpb-payslip th,.qpb-payslip td{padding:2.8px 3.5px!important}
}

.employee-search-label{position:relative}
.employee-search-results{position:absolute;z-index:1000;top:calc(100% - 2px);left:0;right:0;max-height:280px;overflow:auto;background:#fff;border:1px solid #b9c8d8;border-radius:8px;box-shadow:0 12px 28px rgba(15,35,55,.18);padding:4px}
.employee-search-option{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:2px;padding:9px 10px;border:0;background:#fff;text-align:left;border-radius:6px;cursor:pointer;color:#132238}
.employee-search-option:hover,.employee-search-option:focus{background:#e9f3fb;outline:none}
.employee-search-option small{font-size:11px;color:#64748b}
.employee-search-empty{padding:12px;color:#64748b}

.payroll-sheet thead th[id^="payrollDayHead"]{line-height:1.05;text-align:center;white-space:nowrap}.payroll-sheet thead th[id^="payrollDayHead"] span{display:block;font-weight:700}.payroll-day-date{display:block;margin-top:4px;font-size:11px;line-height:1;color:#5c6f82;font-weight:600}

/* v7.8.6 unified payroll filtration */
.project-payroll-controls.unified-payroll-filters{grid-template-columns:minmax(150px,1fr) minmax(190px,1.2fr) minmax(230px,1.3fr) minmax(220px,1.4fr) auto auto auto;align-items:end}
.unified-payroll-filters .payroll-employee-filter input{width:100%;margin-top:5px;padding:10px;border:1px solid #ccd7e3;border-radius:7px;background:#fff}
.unified-payroll-filters button{min-height:40px;white-space:nowrap}
.payroll-day-date{display:block;margin-top:3px;font-size:10px;font-weight:500;color:#61748a;line-height:1}
@media(max-width:1500px){.project-payroll-controls.unified-payroll-filters{grid-template-columns:repeat(4,minmax(170px,1fr))}.unified-payroll-filters button{width:100%}}
@media(max-width:900px){.project-payroll-controls.unified-payroll-filters{grid-template-columns:1fr 1fr}}


.system-alert-center{margin:0 0 16px;padding:14px;border:1px solid #f1c40f;background:#fffdf1;border-radius:14px;box-shadow:0 8px 20px rgba(15,23,42,.06)}
.system-alert-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.system-alert-heading>div{display:flex;gap:10px;align-items:center}.system-alert-heading strong{color:#7a5b00}.system-alert-heading span{font-size:12px;color:#64748b}
.system-alert-item{display:grid;grid-template-columns:1fr auto;gap:12px;padding:12px;background:#fff;border-left:5px solid #eab308;border-radius:10px;margin-top:8px}.system-alert-item.danger{border-left-color:#dc2626}.system-alert-item.info{border-left-color:#2563eb}.system-alert-item h3{font-size:15px;margin:0 0 4px}.system-alert-item p{margin:2px 0;color:#475569}.system-alert-solution{font-size:12px}.system-alert-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.system-alert-actions button{white-space:nowrap}
@media(max-width:800px){.system-alert-item{grid-template-columns:1fr}.system-alert-actions{justify-content:flex-start}}

.system-alert-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.system-alert-status{padding:10px 12px;border-radius:9px;margin-bottom:8px;background:#f8fafc;color:#475569;border:1px solid #e2e8f0}
.system-alert-status.checking{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.system-alert-status.clear{background:#ecfdf5;border-color:#a7f3d0;color:#166534}
.system-alert-status.warning{background:#fffbeb;border-color:#fde68a;color:#92400e}
.system-alert-status.danger{background:#fef2f2;border-color:#fecaca;color:#991b1b}

.form-note{margin:0;padding:10px 12px;border:1px solid #cfe3d6;background:#f2fbf5;border-radius:8px;font-size:.9rem;color:#28533a}.form-grid input[readonly],.form-grid select:disabled{background:#f1f3f5;color:#495057;cursor:not-allowed}

/* v7.9.1: Employee-master fields are display-only in Payroll/Attendance editing. */
input.master-locked, select.master-locked, textarea.master-locked,
input:disabled.master-locked, select:disabled.master-locked, textarea:disabled.master-locked {
  background:#e5e9ee !important;
  color:#5d6875 !important;
  border-color:#c6ced8 !important;
  cursor:not-allowed !important;
  opacity:1 !important;
  box-shadow:none !important;
}
#payrollForm input[readonly], #payrollForm select:disabled, #payrollForm input:disabled {
  background:#e5e9ee;
  color:#5d6875;
  border-color:#c6ced8;
  opacity:1;
}


/* v7.9.2 Project Management Report */
.report-filter-row{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:12px;align-items:end}.report-filter-row label{display:flex;flex-direction:column;gap:5px}.report-filter-row input{padding:10px;border:1px solid #cbd7e3;border-radius:8px}
.project-report{display:grid;gap:14px}.report-title-card{background:linear-gradient(135deg,#12354d,#176b43);color:#fff;border-radius:16px;padding:22px;display:flex;justify-content:space-between;gap:24px;align-items:center}.report-title-card span{font-size:11px;letter-spacing:2px}.report-title-card h2{font-size:28px;margin:5px 0}.report-title-card p{margin:0;color:#dbeafe}.report-status-box{min-width:190px;border-left:1px solid rgba(255,255,255,.35);padding-left:22px;display:flex;flex-direction:column}.report-status-box strong{font-size:22px;margin:5px 0}
.project-report-grid{display:grid;grid-template-columns:minmax(300px,.95fr) minmax(390px,1.15fr) minmax(390px,1.15fr);gap:14px;align-items:start}.project-report h3{margin:0 0 12px;color:#12354d}.report-info-grid{display:grid;grid-template-columns:1fr 1fr;border:1px solid #dbe5ec;border-radius:10px;overflow:hidden;margin-bottom:18px}.report-info-grid>div{padding:9px 10px;border-right:1px solid #dbe5ec;border-bottom:1px solid #dbe5ec;display:flex;flex-direction:column;gap:3px}.report-info-grid span{font-size:10px;text-transform:uppercase;color:#64748b;font-weight:700}.report-info-grid strong{font-size:13px}.report-progress{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.report-progress>div{height:14px;background:#e2e8f0;border-radius:999px;overflow:hidden}.report-progress>div span{display:block;height:100%;background:#2d936c;border-radius:999px}.report-progress strong{font-size:12px}.report-cost-table .negative{color:#c62828;background:#fff0f0}.report-financial-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.report-financial-cards article{padding:14px;background:#eef9f2;border:1px solid #bde5cb;border-radius:10px;display:flex;flex-direction:column}.report-financial-cards span,.report-billing-summary span{font-size:11px;text-transform:uppercase;color:#506075}.report-financial-cards strong{font-size:22px;color:#176b43}.report-billing-summary{display:grid;gap:8px;margin-top:12px}.report-billing-summary>div{display:flex;justify-content:space-between;padding:10px 12px;background:#f4f7fa;border-radius:8px}.report-billing-summary strong{font-size:17px;color:#176b43}
@media(max-width:1350px){.project-report-grid{grid-template-columns:1fr 1fr}.report-billing-panel{grid-column:1/-1}}@media(max-width:850px){.project-report-grid{grid-template-columns:1fr}.report-billing-panel{grid-column:auto}.report-title-card{align-items:flex-start;flex-direction:column}.report-status-box{border-left:0;border-top:1px solid rgba(255,255,255,.35);padding:12px 0 0;width:100%}}
@media print{body *{visibility:hidden!important}#projectReportView,#projectReportView *{visibility:visible!important}#projectReportView{position:absolute;left:0;top:0;width:100%;display:block!important}.project-report-grid{grid-template-columns:1fr 1fr!important}.report-billing-panel{grid-column:1/-1}.sidebar,header,.report-toolbar,.system-alert-center{display:none!important}@page{size:A4 landscape;margin:10mm}}

/* v7.9.4 project report details */
.report-phase-wrap{margin-top:14px;max-height:260px}.report-phase-table th,.report-phase-table td{padding:8px 9px}.phase-status{display:inline-block;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700;background:#e8eef4;color:#475569}.phase-status.completed{background:#dcfce7;color:#166534}.phase-status.in-progress{background:#fef3c7;color:#92400e}.report-financial-cards-four{grid-template-columns:1fr 1fr}.report-financial-cards-four article:nth-child(2) strong{color:#9a3412}.report-project-info .report-info-grid{grid-template-columns:1fr 1fr}.report-cost-panel .table-wrap,.report-billing-panel .table-wrap{max-height:330px}@media(max-width:1050px){.report-financial-cards-four{grid-template-columns:1fr}.report-project-info .report-info-grid{grid-template-columns:1fr}}

/* v7.9.7: align payroll amount fields with their transaction dates */
.payroll-component-grid{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);gap:12px 18px;align-items:end;padding:14px;border:1px solid #dce5ee;border-radius:10px;background:#f8fafc}.payroll-component-grid label{margin:0}.payroll-shared-date-note{align-self:end;min-height:42px;display:flex;align-items:center;padding:10px 12px;border:1px dashed #cbd5e1;border-radius:7px;background:#fff;color:#64748b;font-size:12px}.payroll-component-grid input{background:#fff}@media(max-width:700px){.payroll-component-grid{grid-template-columns:1fr}.payroll-shared-date-note{min-height:auto}}

/* v7.9.11 - Keep Cost Monitoring item column frozen with a compact width. */
.report-cost-panel .table-wrap{position:relative}
.report-cost-table th:first-child,
.report-cost-table td:first-child{
  position:sticky;
  left:0;
  z-index:3;
  width:150px;
  min-width:150px;
  max-width:150px;
  white-space:normal;
  overflow-wrap:anywhere;
  background:#fff;
  box-shadow:2px 0 5px rgba(15,35,55,.10);
}
.report-cost-table thead th:first-child{
  z-index:6;
  background:#f7f9fc;
}
.report-cost-table tfoot th:first-child{
  z-index:5;
  background:#f7f9fc;
}


/* v7.9.12 - Compact field-attached autocomplete dropdowns on Reports. */
.field-autocomplete{position:relative;width:100%}.field-autocomplete>input{width:100%}.field-suggestions{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:120;max-height:270px;overflow-y:auto;background:#fff;border:1px solid #cbd7e3;border-radius:9px;box-shadow:0 12px 28px rgba(15,35,55,.16);padding:5px}.field-suggestion{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:2px;padding:9px 10px;border:0;border-radius:7px;background:#fff;color:#1f2937;text-align:left;cursor:pointer}.field-suggestion:hover,.field-suggestion:focus{background:#eef6f2;outline:none}.field-suggestion strong{font-size:13px}.field-suggestion span{font-size:11px;color:#64748b}.field-suggestion-empty{padding:11px;color:#64748b;font-size:12px}.field-suggestions.hidden{display:none}

/* v7.9.16 - Consistent, unclipped, scrollable searchable dropdowns throughout the ERP. */
.smart-dropdown{position:relative;min-width:0;width:100%}
.smart-dropdown-input-wrap{position:relative;width:100%}
.smart-dropdown-input{width:100%;padding-right:34px!important}
.smart-dropdown-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:28px;height:28px;padding:0;border:0;background:transparent;color:#64748b;cursor:pointer;font-size:13px}
.smart-dropdown-menu{position:fixed;z-index:5000;max-height:283px;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #cbd7e3;border-radius:9px;box-shadow:0 12px 28px rgba(15,35,55,.20);padding:5px;min-width:180px}
.smart-dropdown-menu.hidden{display:none}
.smart-dropdown-option{display:flex;align-items:center;width:100%;min-height:39px;padding:9px 10px;border:0;border-radius:7px;background:#fff;color:#1f2937;text-align:left;cursor:pointer;white-space:normal;line-height:1.25}
.smart-dropdown-option:hover,.smart-dropdown-option:focus,.smart-dropdown-option.active{background:#eef6f2;outline:none}
.smart-dropdown-empty{padding:10px;color:#64748b;font-size:12px}
.smart-dropdown select.smart-dropdown-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}

/* Visible vertical dividers on every table in the Reports tab. */
#reportsPage table th,#reportsPage table td{border-right:1px solid #d5e0e8}
#reportsPage table th:last-child,#reportsPage table td:last-child{border-right:0}

/* v7.9.16: show roughly seven choices, then scroll; keep editable attendance status enabled while editing. */
.smart-dropdown-menu{overflow-y:auto!important;scrollbar-gutter:stable;overscroll-behavior:contain}
#attendancePage select[data-att="status"]:not(:disabled){pointer-events:auto!important;background:#fff!important;color:#172033!important;cursor:pointer!important}

.logout-link{color:#d9ecff;font-size:11px;text-decoration:none;display:inline-block;margin-top:5px}.login-page{min-height:100vh;display:grid;place-items:center;background:#eef3f8;margin:0}.login-card{width:min(390px,calc(100vw - 32px));background:#fff;border:1px solid #d7e1eb;border-radius:18px;padding:30px;box-shadow:0 18px 50px rgba(15,40,70,.14);text-align:center}.login-card img{width:96px;height:96px;object-fit:contain}.login-card form{display:grid;gap:14px;text-align:left}.login-card input{width:100%;box-sizing:border-box;margin-top:6px;padding:12px;border:1px solid #bccbd9;border-radius:8px;font-size:16px}.login-error{background:#fde8e8;color:#a32626;padding:10px;border-radius:8px;margin-bottom:14px}

.report-cost-panel .table-wrap{overflow-x:hidden}.report-cost-table{width:100%!important;table-layout:fixed}.report-cost-table th:first-child,.report-cost-table td:first-child{width:36%}.report-cost-table th:not(:first-child),.report-cost-table td:not(:first-child){width:21.33%;white-space:normal}.materials-table th:first-child,.materials-table td:first-child{position:sticky;left:0;z-index:3;background:white;min-width:190px}.materials-table thead th:first-child{z-index:5;background:#edf4f8}.materials-table tr.material-over-budget td{background:#ffe0e0!important;font-weight:700}.materials-table tr.material-purchased td{background:#e4f3ff}.login-card label small{font-weight:400;color:#64748b}


/* v7.9.19 — role-sensitive summaries and frozen key columns */
body[data-access="Data Entry"] .guest-finance-summary-hidden{display:none!important}
body[data-access="Data Entry"] .finance-summary-cards{grid-template-columns:minmax(220px,360px)}
.table-wrap table .sticky-key-col{position:sticky!important;left:0!important;z-index:4;background:#fff;box-shadow:2px 0 5px rgba(15,35,60,.12)}
.table-wrap table thead .sticky-key-col{z-index:9;background:#f7f9fc}
.table-wrap table tfoot .sticky-key-col{z-index:7;background:#eaf3fb}
.table-wrap table tr.material-over-budget .sticky-key-col{background:#ffe0e0!important}
.table-wrap table tr.material-purchased .sticky-key-col{background:#e4f3ff!important}
.table-wrap table tr.attendance-saved .sticky-key-col,.table-wrap table tr.saved-row .sticky-key-col{background:#e5e7eb!important}
@media(max-width:700px){body[data-access="Data Entry"] .finance-summary-cards{grid-template-columns:1fr}}

/* v7.9.23 compact Reports tables and clean letter-size print report. */
#reportsPage .report-cost-table,#reportsPage .report-phase-table{width:auto!important;max-width:100%;table-layout:auto!important;border-collapse:collapse}
#reportsPage .report-cost-table th,#reportsPage .report-cost-table td,#reportsPage .report-phase-table th,#reportsPage .report-phase-table td{width:auto!important;min-width:0!important;max-width:none!important;white-space:nowrap!important;padding:6px 8px!important;border:1px solid #cbd7e3!important}
#reportsPage .report-cost-table th:first-child,#reportsPage .report-cost-table td:first-child{position:static!important;width:auto!important;min-width:0!important;max-width:none!important;box-shadow:none!important;white-space:normal!important}
#reportsPage .report-cost-panel .table-wrap,#reportsPage .report-phase-wrap{overflow-x:auto;max-width:100%}
@media print{@page{size:letter landscape;margin:10mm}body{background:#fff!important}#projectReportView{width:100%!important;max-width:none!important;font-size:9pt!important;color:#111!important}#projectReportView .report-title-card{padding:10px 14px!important;border-radius:6px!important}#projectReportView .report-title-card h2{font-size:19pt!important}#projectReportView .project-report-grid{display:grid!important;grid-template-columns:.9fr 1.1fr!important;gap:8px!important}#projectReportView .panel{padding:9px!important;box-shadow:none!important;break-inside:avoid}#projectReportView .report-billing-panel{grid-column:1/-1!important}#projectReportView table{width:100%!important;table-layout:auto!important;font-size:8pt!important;border-collapse:collapse!important}#projectReportView th,#projectReportView td{padding:3px 5px!important;border:1px solid #aebdca!important;white-space:normal!important}#projectReportView .report-financial-cards article{padding:7px!important}#projectReportView .report-financial-cards strong{font-size:13pt!important}#projectReportView .table-wrap{max-height:none!important;overflow:visible!important}}

/* v7.9.26 Reports table width correction */
#reportsPage .report-cost-panel .table-wrap,
#reportsPage .report-phase-wrap{
  width:100%;
  max-width:100%;
  overflow-x:hidden!important;
  overflow-y:auto;
}
#reportsPage .report-cost-table,
#reportsPage .report-phase-table{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
}
#reportsPage .report-cost-table th,
#reportsPage .report-cost-table td,
#reportsPage .report-phase-table th,
#reportsPage .report-phase-table td{
  min-width:0!important;
  max-width:none!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  word-break:normal;
  padding:6px 8px!important;
  border:1px solid #cbd7e3!important;
  box-sizing:border-box;
}
#reportsPage .report-cost-table th:nth-child(1),
#reportsPage .report-cost-table td:nth-child(1){width:46%!important;text-align:left}
#reportsPage .report-cost-table th:nth-child(2),
#reportsPage .report-cost-table td:nth-child(2),
#reportsPage .report-cost-table th:nth-child(3),
#reportsPage .report-cost-table td:nth-child(3),
#reportsPage .report-cost-table th:nth-child(4),
#reportsPage .report-cost-table td:nth-child(4){width:18%!important}
#reportsPage .report-phase-table th:nth-child(1),
#reportsPage .report-phase-table td:nth-child(1){width:62%!important;text-align:left}
#reportsPage .report-phase-table th:nth-child(2),
#reportsPage .report-phase-table td:nth-child(2){width:14%!important}
#reportsPage .report-phase-table th:nth-child(3),
#reportsPage .report-phase-table td:nth-child(3){width:24%!important}
#reportsPage .report-cost-table .amount,
#reportsPage .report-phase-table .amount{text-align:right;white-space:nowrap!important}


/* v7.9.26 — Reports print layout: remove blank first page and fit project report cleanly. */
@media print {
  @page { size: letter landscape; margin: 8mm; }

  html, body {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    overflow: visible !important;
  }

  /* Hide the application chrome and every page except Reports without leaving layout space. */
  .sidebar,
  main > header,
  main > .page:not(#reportsPage),
  #reportsPage > *:not(#projectReportView),
  .report-toolbar,
  .system-alert-center {
    display: none !important;
  }

  .shell,
  main,
  #reportsPage,
  #projectReportView {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    overflow: visible !important;
    visibility: visible !important;
  }

  #projectReportView,
  #projectReportView * {
    visibility: visible !important;
  }

  #projectReportView {
    font-size: 8.5pt !important;
    line-height: 1.18 !important;
    color: #111 !important;
  }

  #projectReportView .report-title-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 190px !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 8px 12px !important;
    margin: 0 0 7px !important;
    min-height: 0 !important;
    border-radius: 5px !important;
    break-after: avoid-page !important;
    page-break-after: avoid !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #projectReportView .report-title-card h2 {
    margin: 2px 0 !important;
    font-size: 16pt !important;
    line-height: 1.05 !important;
  }

  #projectReportView .report-title-card p,
  #projectReportView .report-title-card span,
  #projectReportView .report-status-box small,
  #projectReportView .report-status-box span {
    font-size: 7.5pt !important;
  }

  #projectReportView .report-status-box {
    min-width: 0 !important;
    padding-left: 10px !important;
  }

  #projectReportView .report-status-box strong {
    font-size: 13pt !important;
    margin: 1px 0 !important;
  }

  #projectReportView .project-report-grid {
    display: grid !important;
    grid-template-columns: 0.9fr 1.1fr !important;
    gap: 7px !important;
    align-items: start !important;
    width: 100% !important;
  }

  #projectReportView .panel {
    min-width: 0 !important;
    padding: 7px !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 5px !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  #projectReportView .report-billing-panel {
    grid-column: 1 / -1 !important;
  }

  #projectReportView h3 {
    margin: 0 0 5px !important;
    font-size: 11pt !important;
  }

  #projectReportView .report-info-grid {
    margin-bottom: 7px !important;
  }

  #projectReportView .report-info-grid > div {
    padding: 4px 6px !important;
  }

  #projectReportView .report-info-grid span {
    font-size: 6.5pt !important;
  }

  #projectReportView .report-info-grid strong {
    font-size: 8pt !important;
  }

  #projectReportView .report-phase-wrap,
  #projectReportView .report-cost-panel .table-wrap,
  #projectReportView .report-billing-panel .table-wrap {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  #projectReportView table,
  #projectReportView .report-cost-table,
  #projectReportView .report-phase-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    font-size: 7pt !important;
  }

  #projectReportView th,
  #projectReportView td {
    padding: 2px 4px !important;
    border: 1px solid #aebdca !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    vertical-align: top !important;
  }

  #projectReportView thead {
    display: table-header-group !important;
  }

  #projectReportView tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  #projectReportView .report-financial-cards {
    gap: 5px !important;
    margin-top: 6px !important;
  }

  #projectReportView .report-financial-cards article {
    padding: 5px 7px !important;
  }

  #projectReportView .report-financial-cards span,
  #projectReportView .report-billing-summary span {
    font-size: 6.5pt !important;
  }

  #projectReportView .report-financial-cards strong,
  #projectReportView .report-billing-summary strong {
    font-size: 10pt !important;
  }

  #projectReportView .report-billing-summary {
    gap: 4px !important;
    margin-top: 5px !important;
  }

  #projectReportView .report-billing-summary > div {
    padding: 4px 6px !important;
  }
}


/* v7.9.28 — Compress Project Report to one Letter landscape page. */
@media print {
  @page { size: letter landscape; margin: 5mm; }

  #projectReportView {
    zoom: 0.74 !important;
    width: 135.135% !important; /* compensates for zoom so the printable width is fully used */
    max-width: 135.135% !important;
    transform-origin: top left !important;
    font-size: 7.8pt !important;
    line-height: 1.08 !important;
  }

  #projectReportView .report-title-card {
    padding: 5px 9px !important;
    margin-bottom: 4px !important;
    grid-template-columns: minmax(0,1fr) 155px !important;
  }
  #projectReportView .report-title-card h2 { font-size: 14pt !important; }
  #projectReportView .report-status-box strong { font-size: 11pt !important; }

  #projectReportView .project-report-grid {
    grid-template-columns: 0.88fr 1.12fr !important;
    gap: 5px !important;
  }
  #projectReportView .panel {
    padding: 5px !important;
    border-radius: 3px !important;
  }
  #projectReportView h3 {
    margin: 0 0 3px !important;
    font-size: 9pt !important;
  }
  #projectReportView .report-info-grid { margin-bottom: 4px !important; }
  #projectReportView .report-info-grid > div { padding: 2px 4px !important; }
  #projectReportView .report-info-grid span { font-size: 5.5pt !important; }
  #projectReportView .report-info-grid strong { font-size: 6.8pt !important; line-height: 1.05 !important; }

  #projectReportView table,
  #projectReportView .report-cost-table,
  #projectReportView .report-phase-table {
    font-size: 6.2pt !important;
    line-height: 1.04 !important;
  }
  #projectReportView th,
  #projectReportView td {
    padding: 1px 3px !important;
  }

  #projectReportView .report-financial-cards {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 3px !important;
    margin-top: 3px !important;
  }
  #projectReportView .report-financial-cards article { padding: 3px 4px !important; }
  #projectReportView .report-financial-cards span,
  #projectReportView .report-billing-summary span { font-size: 5.2pt !important; }
  #projectReportView .report-financial-cards strong,
  #projectReportView .report-billing-summary strong { font-size: 8pt !important; }

  #projectReportView .report-billing-panel {
    margin-top: 0 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  #projectReportView .report-billing-summary {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 3px !important;
    margin-top: 3px !important;
  }
  #projectReportView .report-billing-summary > div { padding: 3px 5px !important; }

  #projectReportView,
  #projectReportView .project-report-grid,
  #projectReportView .panel,
  #projectReportView table,
  #projectReportView tr {
    break-before: auto !important;
    break-after: auto !important;
  }
}

/* v7.9.28 — Maximize the one-page Project Report without browser double-scaling. */
@media print {
  @page { size: letter landscape; margin: 5mm; }

  #projectReportView {
    zoom: 0.94 !important;
    width: 106.383% !important;
    max-width: 106.383% !important;
    margin: 0 !important;
    transform: none !important;
    transform-origin: top left !important;
    font-size: 8.5pt !important;
    line-height: 1.12 !important;
  }

  #projectReportView .report-title-card {
    padding: 7px 11px !important;
    margin-bottom: 5px !important;
    grid-template-columns: minmax(0,1fr) 170px !important;
  }
  #projectReportView .report-title-card h2 { font-size: 16pt !important; }
  #projectReportView .report-status-box strong { font-size: 12pt !important; }

  #projectReportView .project-report-grid {
    grid-template-columns: 0.9fr 1.1fr !important;
    gap: 6px !important;
  }
  #projectReportView .panel { padding: 6px !important; }
  #projectReportView h3 { font-size: 10pt !important; margin-bottom: 4px !important; }

  #projectReportView .report-info-grid > div { padding: 3px 5px !important; }
  #projectReportView .report-info-grid span { font-size: 6.2pt !important; }
  #projectReportView .report-info-grid strong { font-size: 7.6pt !important; line-height: 1.08 !important; }

  #projectReportView table,
  #projectReportView .report-cost-table,
  #projectReportView .report-phase-table {
    font-size: 7pt !important;
    line-height: 1.08 !important;
  }
  #projectReportView th,
  #projectReportView td { padding: 1.5px 3.5px !important; }

  #projectReportView .report-financial-cards article { padding: 4px 5px !important; }
  #projectReportView .report-financial-cards span,
  #projectReportView .report-billing-summary span { font-size: 5.8pt !important; }
  #projectReportView .report-financial-cards strong,
  #projectReportView .report-billing-summary strong { font-size: 8.8pt !important; }
}


/* v7.9.29 — Keep the complete Cost Monitoring variance column inside the printed page. */
@media print {
  @page { size: letter landscape; margin: 5mm; }

  #projectReportView {
    zoom: 0.94 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  #projectReportView .project-report-grid {
    grid-template-columns: 0.88fr 1.12fr !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #projectReportView .report-cost-panel,
  #projectReportView .report-cost-panel .table-wrap,
  #projectReportView .report-cost-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  #projectReportView .report-cost-table {
    table-layout: fixed !important;
  }

  #projectReportView .report-cost-table th:nth-child(1),
  #projectReportView .report-cost-table td:nth-child(1) { width: 46% !important; }
  #projectReportView .report-cost-table th:nth-child(2),
  #projectReportView .report-cost-table td:nth-child(2) { width: 18% !important; }
  #projectReportView .report-cost-table th:nth-child(3),
  #projectReportView .report-cost-table td:nth-child(3) { width: 18% !important; }
  #projectReportView .report-cost-table th:nth-child(4),
  #projectReportView .report-cost-table td:nth-child(4) { width: 18% !important; }

  #projectReportView .report-cost-table th,
  #projectReportView .report-cost-table td {
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  #projectReportView .report-cost-table th:not(:first-child),
  #projectReportView .report-cost-table td:not(:first-child) {
    text-align: right !important;
  }
}


/* v8.0.0 — Grouped major navigation and full project Gantt workspace. */
.major-nav{display:flex;flex-direction:column;gap:5px}.nav-group{border-radius:10px;overflow:hidden}.major-nav-btn{width:100%;border:0;background:transparent;color:#dce8f4;text-align:left;padding:11px 12px;font-weight:800;letter-spacing:.04em;cursor:pointer}.major-nav-btn:hover,.nav-group.open>.major-nav-btn{background:#1e476e;color:white}.nav-submenu{display:none;padding:3px 0 6px 12px}.nav-group.open .nav-submenu{display:flex;flex-direction:column;gap:3px}.nav-submenu .nav{font-size:12px;padding:8px 10px;text-transform:uppercase}.nav-submenu .nav.active{background:#2d5b86}
.gantt-filter-row{display:grid;grid-template-columns:minmax(280px,1fr) 180px auto auto;gap:10px;align-items:end}.gantt-summary{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin-bottom:12px}.gantt-summary>div{padding:10px 12px;border:1px solid #d8e2ec;border-radius:10px;background:#f7fafc}.gantt-summary span{display:block;font-size:11px;color:#66788a;text-transform:uppercase}.gantt-summary strong{display:block;margin-top:3px}.gantt-workspace-scroll{overflow:auto;max-height:68vh;border:1px solid #d8e2ec;border-radius:10px;background:white}.gantt-grid{min-width:1200px}.gantt-grid-header,.gantt-grid-row{display:grid;grid-template-columns:300px 90px 90px 55px 130px var(--timeline-width);min-height:44px}.gantt-grid-header{position:sticky;top:0;z-index:8;background:#173c5d;color:white;font-weight:700}.gantt-grid-header>div,.gantt-grid-row>div{border-right:1px solid #d9e2eb;border-bottom:1px solid #d9e2eb;padding:7px;box-sizing:border-box}.sticky-gantt-task{position:sticky;left:0;z-index:6;background:inherit}.gantt-grid-row .sticky-gantt-task{background:white}.gantt-task-cell{display:flex;flex-direction:column}.gantt-task-link{border:0;background:none;text-align:left;font-weight:700;cursor:pointer;color:#133653;padding:0}.gantt-task-link:hover{text-decoration:underline}.gantt-wbs{display:inline-block;min-width:34px;color:#6b7c8c}.gantt-task-cell small{color:#66788a;margin-left:34px}.gantt-date-cell{font-size:12px;white-space:nowrap}.gantt-timeline-cell,.gantt-timeline-header{position:relative;padding:0!important;overflow:hidden;background:repeating-linear-gradient(to right,transparent 0,transparent calc(10% - 1px),#e9eef3 calc(10% - 1px),#e9eef3 10%)}.gantt-ticks{position:absolute;inset:0}.gantt-ticks span{position:absolute;top:2px;font-size:9px;white-space:nowrap;transform:translateX(2px);opacity:.8}.gantt-bar{position:absolute;top:12px;height:22px;border-radius:6px;background:#388f68;min-width:5px;color:white;font-size:10px;overflow:visible;box-shadow:0 1px 3px #0002}.gantt-bar>span{display:block;height:100%;background:#155d42;border-radius:6px}.gantt-bar>b{position:absolute;left:5px;top:4px;white-space:nowrap}.gantt-bar.status-delayed{background:#d9534f}.gantt-bar.status-delayed>span{background:#a52f2c}.gantt-bar.status-completed{background:#6b7885}.gantt-bar.status-completed>span{background:#34414d}.gantt-bar.type-milestone{width:18px!important;min-width:18px;transform:rotate(45deg);border-radius:2px;overflow:visible}.gantt-bar.type-milestone b{transform:rotate(-45deg);left:3px;top:3px}.gantt-empty{padding:20px}.gantt-modal-card{max-width:1200px}
@media(max-width:900px){.gantt-filter-row{grid-template-columns:1fr 1fr}.gantt-summary{grid-template-columns:1fr}.major-nav-btn{padding:9px}}
@media print{body.printing-gantt .page,body.printing-gantt header,body.printing-gantt .sidebar,body.printing-gantt #systemAlertCenter{display:none!important}body.printing-gantt #ganttPage{display:block!important}body.printing-gantt #ganttPage .gantt-toolbar .button-row,body.printing-gantt .gantt-filter-row{display:none!important}body.printing-gantt .gantt-workspace-scroll{max-height:none;overflow:visible;border:0}body.printing-gantt .gantt-grid{zoom:.72}}


/* v8.0.4 — Excel-style QPB Gantt task register */
.gantt-workspace-scroll{overflow:auto;max-height:72vh;border:1px solid #c9d8e5;border-radius:8px;background:#fff}
.gantt-list-wrap{min-width:1180px;background:#fff}
.gantt-list-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;color:#142434}
.gantt-list-table thead th{position:sticky;top:0;z-index:7;background:#e7ffc2;color:#111;font-weight:500;text-align:center;border:1px solid #c9d8e5;padding:7px 6px;white-space:nowrap}
.gantt-list-table th:nth-child(1){width:68px}.gantt-list-table th:nth-child(2){width:285px}.gantt-list-table th:nth-child(3){width:76px}.gantt-list-table th:nth-child(4){width:92px}.gantt-list-table th:nth-child(5),.gantt-list-table th:nth-child(6),.gantt-list-table th:nth-child(7),.gantt-list-table th:nth-child(8){width:105px}.gantt-list-table th:nth-child(9){width:62px}.gantt-list-table th:nth-child(10){width:54px}.gantt-list-table th:nth-child(11){width:110px}
.gantt-list-table td{height:28px;border:1px solid #c9d8e5;padding:4px 7px;vertical-align:middle;white-space:nowrap;background:#fff}
.gantt-list-table tbody tr:hover td{background:#f6fbff}
.gantt-list-table .gantt-wbs-col{position:sticky;left:0;z-index:4;background:#f5fff0;display:flex;align-items:center;gap:7px}
.gantt-list-table .gantt-name-col{position:sticky;left:68px;z-index:3;background:#fff}
.gantt-list-table thead th:first-child{left:0;z-index:10}.gantt-list-table thead th:nth-child(2){position:sticky;left:68px;z-index:10}
.gantt-name-link{border:0;background:transparent;padding:0;color:#111;text-align:left;cursor:pointer;font:inherit;white-space:nowrap}
.gantt-name-link:hover{text-decoration:underline}
.gantt-list-row.parent-task .gantt-name-link,.gantt-list-row.parent-task .gantt-wbs-col{font-weight:800}
.gantt-list-row.parent-task td{border-top:1.5px solid #7faabd}
.gantt-name-col.child-task{padding-left:20px}
.gantt-lock{font-size:10px;margin-left:5px;opacity:.65}
.gantt-row-icon{display:inline-block;flex:0 0 auto}
.gantt-row-icon.task{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:8px solid #a7e6ff}
.gantt-row-icon.task.complete{border-left-color:#36d7a6}
.gantt-row-icon.milestone{width:9px;height:9px;transform:rotate(45deg);background:#ff9800;margin-left:1px}
.gantt-row-icon.milestone.complete{background:#42cde9}
.gantt-priority{text-align:center;color:#fff;font-weight:800}.gantt-priority.priority-low{background:#ffe36c;color:#5a4d00}.gantt-priority.priority-normal{background:#ff9800}.gantt-priority.priority-high{background:#ff1f1f}.gantt-priority.priority-critical{background:#a90000}
.gantt-status{text-align:left;font-weight:500}.gantt-status.gantt-status-completed{background:#effff7}.gantt-status.gantt-status-in-progress{background:#fff7db;font-weight:700}.gantt-status.gantt-status-delayed{background:#ffe8e8;color:#b00000;font-weight:700}.gantt-status.gantt-status-on-hold{background:#f2eaff;color:#6b35a7}.gantt-status.gantt-status-not-started,.gantt-status.gantt-status-planned{background:#fff}
.gantt-list-row.milestone-row .gantt-name-col{background:#fff900}.gantt-list-row.milestone-row .gantt-wbs-col{background:#efff00}
.number-cell,.gantt-done-cell{text-align:center}.gantt-done-check{font-size:17px;color:#3c9b7b;font-weight:900}
.gantt-percent-cell{padding:2px 5px!important}.gantt-percent-track{position:relative;height:22px;background:linear-gradient(90deg,#fff 0,#e8f8fd 100%);overflow:hidden}.gantt-percent-track span{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#8be6f7,#33c4e7)}.gantt-percent-track b{position:relative;display:block;text-align:right;padding:3px 6px;color:#111;font-size:12px}
@media(max-width:1100px){.gantt-list-table{font-size:11px}.gantt-list-wrap{min-width:1080px}}
@media print{body.printing-gantt .gantt-list-wrap{min-width:0}body.printing-gantt .gantt-list-table{font-size:8px;table-layout:fixed}body.printing-gantt .gantt-workspace-scroll{overflow:visible;max-height:none}.gantt-list-table .gantt-wbs-col,.gantt-list-table .gantt-name-col,.gantt-list-table thead th{position:static}}

/* v8.0.6 Gantt task/milestone editor */
.gantt-editor-modal{width:min(1220px,97vw)!important;max-height:94vh!important;padding:18px!important}.gantt-editor-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.85fr);gap:14px}.gantt-editor-section{border:1px solid #cfd8e3;border-radius:8px;padding:14px;background:#fff}.gantt-editor-section h3{margin:0 0 12px;font-size:18px}.gantt-editor-section h4{margin:14px 0 8px;font-size:14px}.gantt-details-grid{display:grid;grid-template-columns:2fr .65fr .85fr;gap:10px}.gantt-details-grid label,.gantt-cost-grid label,.gantt-dependency-form label,.gantt-completion-row label,.gantt-notes-field{font-size:12px;font-weight:600;color:#37475b}.gantt-details-grid input,.gantt-details-grid select,.gantt-date-matrix input,.gantt-cost-grid input,.gantt-dependency-form input,.gantt-dependency-form select,.gantt-completion-row select,.gantt-notes-field textarea{width:100%;padding:8px;border:1px solid #b8c5d2;border-radius:4px;background:#fff;color:#172033}.gantt-name-field{grid-column:span 2}.gantt-date-matrix{display:grid;grid-template-columns:80px 1fr 1fr 64px 110px;gap:6px;align-items:center}.gantt-date-matrix>b{text-align:center;font-size:12px}.gantt-date-matrix>span{font-size:12px}.gantt-matrix-dash{text-align:center;color:#d22}.compact{padding:7px 9px}.gantt-completion-row{display:grid;grid-template-columns:230px auto 1fr;gap:10px;align-items:end;margin-top:12px}.gantt-completion-row small{align-self:center;color:#66788a}.gantt-cost-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.gantt-notes-field{display:block;margin-top:12px}.gantt-notes-field textarea{min-height:70px}.gantt-dependency-form{display:grid;grid-template-columns:1fr 1fr 100px;gap:10px}.gantt-dependency-form .button-row{grid-column:1/-1}.gantt-dependency-list{min-height:230px;max-height:420px;overflow:auto;border:1px solid #d5dee8;border-radius:6px;margin-top:12px;padding:8px}.gantt-dependency-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px;border-bottom:1px solid #e5ebf1}.gantt-dependency-item:last-child{border-bottom:0}.gantt-dependency-item span{display:block;font-size:11px;color:#66788a;margin-top:2px}.gantt-dependency-item button{padding:6px 8px}.gantt-editor-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.gantt-editor-modal select[data-no-smart-dropdown="1"]{appearance:auto!important;pointer-events:auto!important;opacity:1!important;position:static!important;width:100%!important;height:auto!important}.gantt-editor-modal select:disabled{background:#eef2f6;color:#66788a}.gantt-editor-modal .smart-dropdown{display:none!important}@media(max-width:900px){.gantt-editor-grid{grid-template-columns:1fr}.gantt-details-grid{grid-template-columns:1fr 1fr}.gantt-name-field{grid-column:1/-1}.gantt-date-matrix{grid-template-columns:70px 1fr 1fr 58px 90px}.gantt-completion-row{grid-template-columns:1fr}.gantt-dependency-form{grid-template-columns:1fr 1fr}}
/* v8.0.6 Gantt scheduling refinements */
.gantt-collapse-btn{border:0;background:transparent;color:#55bfe8;font-size:13px;line-height:1;padding:0;cursor:pointer;width:14px;text-align:center}
.gantt-collapse-btn:hover{color:#087ca8}
.gantt-list-table th:nth-child(n+4),.gantt-list-table td:nth-child(n+4){text-align:center}
.gantt-list-table td:nth-child(n+4){vertical-align:middle}
.gantt-list-table .gantt-percent-cell{text-align:center}

/* v8.0.7 — dual Gantt register/timeline views and manual ordering. */
.gantt-filter-row{grid-template-columns:minmax(260px,2fr) minmax(150px,.65fr) minmax(150px,.65fr) auto auto}
.gantt-legend{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:10px;padding:8px 10px;border:1px solid #d6e0e9;border-radius:7px;background:#fff}
.gantt-legend span{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700}.gantt-legend i{display:inline-block;width:34px;height:12px;border:1px solid #aac0d0}.legend-milestone{width:13px!important;height:13px!important;transform:rotate(45deg);background:#ffab00;border:0!important;margin:0 8px}.legend-progress{background:#62d0eb!important}.legend-baseline{background:#ffe59a!important}.legend-actual{background:#009ed6!important}.legend-overdue{background:#ef2b2d!important}
.gantt-list-table th:nth-child(12){width:72px}.gantt-order-col{text-align:center}.gantt-order-buttons{display:inline-flex;gap:3px;flex:0 0 auto}.gantt-order-buttons button{border:1px solid #b9c8d4;background:#f6f9fb;color:#24435f;border-radius:4px;font-size:10px;line-height:1;padding:5px 6px;cursor:pointer}.gantt-order-buttons button:hover{background:#dff2fb;border-color:#69b9dc}
.gantt-timeline-shell{display:grid;grid-template-columns:330px minmax(0,1fr);min-width:760px;background:white;border:1px solid #c9d8e5;border-radius:7px;overflow:hidden}
.gantt-timeline-task-pane{position:relative;z-index:6;background:#fff;border-right:2px solid #7999af;box-shadow:3px 0 8px #00000014}
.gantt-timeline-task-head{height:70px;box-sizing:border-box;padding:25px 10px 8px;background:#e7ffc2;border-bottom:1px solid #b8d3b0;font-weight:800;display:flex;justify-content:space-between;align-items:center}.gantt-timeline-task-head small{font-size:9px;color:#657681;font-weight:500}
.gantt-timeline-task-row{height:36px;box-sizing:border-box;border-bottom:1px solid #c9ecf2;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 6px;background:white}.gantt-timeline-task-row:nth-child(even){background:#f9fdff}.gantt-timeline-task-row.parent-task{font-weight:800;background:#e7f9ff}.gantt-timeline-task-name{display:flex;align-items:center;gap:6px;min-width:0;flex:1}.gantt-timeline-task-name.child-task{padding-left:20px}.gantt-timeline-task-name button:not(.gantt-collapse-btn){border:0;background:transparent;color:#102b3e;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font:inherit;padding:0}.gantt-timeline-task-name button:hover{text-decoration:underline}
.gantt-timeline-horizontal{overflow-x:auto;overflow-y:hidden;position:relative;background:#fff}.gantt-timeline-canvas{position:relative;min-width:100%;background:repeating-linear-gradient(to bottom,transparent 0,transparent 35px,#c9ecf2 35px,#c9ecf2 36px)}
.gantt-month-header{position:absolute;left:0;top:0;height:30px;width:100%;background:#edf6ff;border-bottom:1px solid #9db7ce}.gantt-month-header span{position:absolute;top:0;height:30px;box-sizing:border-box;border-right:1px solid #9db7ce;padding:5px 8px;color:#376ac1;font-weight:700;font-size:14px}
.gantt-time-header{position:absolute;left:0;top:30px;height:40px;width:100%;background:#e7ffc2;border-bottom:1px solid #a6d58b}.gantt-time-unit{position:absolute;top:0;height:40px;border-right:1px solid #9adbe7;box-sizing:border-box;text-align:center;color:#172b3a}.gantt-time-unit b{display:block;height:20px;padding-top:2px;font-size:10px}.gantt-time-unit small{display:block;height:20px;padding-top:2px;border-top:1px solid #bfe6bd;font-size:9px}
.gantt-grid-line{position:absolute;top:30px;bottom:0;width:1px;background:#a9e6ef;z-index:1}.gantt-today-line{position:absolute;top:30px;bottom:0;width:2px;background:#ffb000;z-index:4;box-shadow:0 0 0 1px #fff7}
.timeline-planned{position:absolute;height:20px;border:0;border-radius:2px;background:#b6eafb;color:#12313d;overflow:hidden;text-align:left;padding:0;z-index:5;cursor:pointer;box-shadow:inset 0 0 0 1px #83d3eb}.timeline-planned.summary{height:12px;margin-top:4px;background:#9fe6fa}.timeline-planned.summary:before,.timeline-planned.summary:after{content:"";position:absolute;top:0;border-top:6px solid transparent;border-bottom:6px solid transparent}.timeline-planned.summary:before{left:0;border-right:8px solid #75cde8}.timeline-planned.summary:after{right:0;border-left:8px solid #75cde8}.timeline-planned.overdue{background:#ef2b2d;color:white;box-shadow:inset 0 0 0 1px #a60000}.timeline-planned b{position:relative;z-index:2;display:block;padding:3px 5px;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-progress{position:absolute;left:0;top:0;bottom:0;background:#58cbe8;z-index:1}.timeline-planned.overdue .timeline-progress{background:#ba0010}.timeline-baseline{position:absolute;height:5px;background:#ffe59a;border:1px solid #e8c969;box-sizing:border-box;z-index:6}.timeline-actual{position:absolute;height:5px;background:#009ed6;z-index:7}.timeline-milestone{position:absolute;width:13px;height:13px;border:0;transform:rotate(45deg);z-index:8;cursor:pointer}.timeline-milestone.pending{background:#ffab00}.timeline-milestone.complete{background:#35c8e8}
.gantt-dependency-svg{position:absolute;left:0;top:0;pointer-events:none;z-index:9;overflow:visible}.gantt-dependency-path{fill:none;stroke:#1e2a30;stroke-width:1.2}.gantt-dependency-svg marker path{fill:#1e2a30}
@media(max-width:900px){.gantt-filter-row{grid-template-columns:1fr 1fr}.gantt-timeline-shell{grid-template-columns:260px minmax(0,1fr)}}
@media print{body.printing-gantt .gantt-timeline-shell{grid-template-columns:260px 1fr;overflow:visible}body.printing-gantt .gantt-timeline-horizontal{overflow:visible}body.printing-gantt .gantt-order-buttons{display:none!important}}


/* v8.0.9 — always-visible synchronized horizontal scrollbar for Gantt timeline. */
.gantt-timeline-top-scroll{
  overflow-x:scroll;
  overflow-y:hidden;
  height:18px;
  margin:0 0 4px 330px;
  position:sticky;
  top:0;
  z-index:12;
  background:#f7fafc;
  border:1px solid #c9d8e5;
  border-radius:6px;
  scrollbar-gutter:stable;
}
.gantt-timeline-horizontal{overflow-x:scroll!important;overscroll-behavior-x:contain;scrollbar-gutter:stable}
.gantt-timeline-canvas{flex:none}
@media(max-width:900px){.gantt-timeline-top-scroll{margin-left:260px}}
@media print{body.printing-gantt .gantt-timeline-top-scroll{display:none!important}}


/* v8.0.11 — reliable Gantt printing and effective duration */
@media print {
  @page { size: A3 landscape; margin: 8mm; }
  body.printing-gantt, body.printing-gantt html { background:#fff!important; }
  body.printing-gantt * { visibility:hidden!important; }
  body.printing-gantt #ganttPage, body.printing-gantt #ganttPage * { visibility:visible!important; }
  body.printing-gantt #ganttPage { display:block!important; position:absolute!important; inset:0 auto auto 0!important; width:100%!important; max-width:none!important; margin:0!important; padding:0!important; }
  body.printing-gantt #ganttPage .gantt-toolbar .button-row,
  body.printing-gantt #ganttPage .gantt-filter-row,
  body.printing-gantt #ganttPage .gantt-timeline-top-scroll,
  body.printing-gantt #ganttPage .gantt-order-buttons { display:none!important; }
  body.printing-gantt #ganttPage .panel { box-shadow:none!important; border:0!important; padding:0!important; }
  body.printing-gantt #ganttPage .gantt-workspace-scroll { max-height:none!important; overflow:visible!important; border:0!important; }
  body.printing-gantt #ganttPage .gantt-timeline-shell { display:grid!important; grid-template-columns:230px max-content!important; width:max-content!important; overflow:visible!important; transform-origin:top left; zoom:.72; }
  body.printing-gantt #ganttPage .gantt-timeline-horizontal { overflow:visible!important; width:auto!important; }
  body.printing-gantt #ganttPage .gantt-list-wrap { min-width:0!important; width:100%!important; }
  body.printing-gantt #ganttPage .gantt-list-table { width:100%!important; font-size:8pt!important; }
  body.printing-gantt #ganttPage .gantt-list-table th,
  body.printing-gantt #ganttPage .gantt-list-table td { position:static!important; }
}


/* v8.0.11 — freeze Gantt headers while scrolling vertically. */
.gantt-workspace-scroll{position:relative;}
.gantt-list-table thead th{
  position:sticky!important;
  top:0!important;
  z-index:20!important;
}
.gantt-list-table thead th:first-child,
.gantt-list-table thead th:nth-child(2){z-index:24!important;}
.gantt-timeline-task-head{
  position:sticky!important;
  top:0!important;
  z-index:32!important;
  box-shadow:0 2px 4px rgba(0,0,0,.12);
}
.gantt-month-header{
  position:sticky!important;
  top:0!important;
  z-index:30!important;
  box-shadow:0 1px 3px rgba(0,0,0,.10);
}
.gantt-time-header{
  position:sticky!important;
  top:30px!important;
  z-index:29!important;
  box-shadow:0 2px 3px rgba(0,0,0,.08);
}
.gantt-timeline-task-pane{align-self:stretch;}
@media print{
  body.printing-gantt .gantt-timeline-task-head,
  body.printing-gantt .gantt-month-header,
  body.printing-gantt .gantt-time-header{position:static!important;box-shadow:none!important;}
}


/* v8.0.12 — robust frozen headers for both Gantt views. */
#ganttWorkspace.gantt-workspace-scroll{
  position:relative!important;
  height:min(68vh,720px)!important;
  max-height:min(68vh,720px)!important;
  overflow:auto!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable both-edges;
}
#ganttWorkspace .gantt-list-wrap{overflow:visible!important;}
#ganttWorkspace .gantt-list-table{border-collapse:separate!important;border-spacing:0!important;}
#ganttWorkspace .gantt-list-table thead{position:relative;z-index:40;}
#ganttWorkspace .gantt-list-table thead th{
  position:sticky!important;
  top:0!important;
  z-index:41!important;
  box-shadow:0 2px 3px rgba(0,0,0,.12);
}
#ganttWorkspace .gantt-list-table thead th:first-child,
#ganttWorkspace .gantt-list-table thead th:nth-child(2){z-index:45!important;}
#ganttWorkspace .gantt-timeline-shell{overflow:visible!important;align-items:start;}
#ganttWorkspace .gantt-timeline-task-pane{overflow:visible!important;}
#ganttWorkspace .gantt-timeline-task-head,
#ganttWorkspace .gantt-month-header,
#ganttWorkspace .gantt-time-header{
  will-change:transform;
}
#ganttWorkspace .gantt-timeline-task-head{
  z-index:60!important;
}
#ganttWorkspace .gantt-month-header{z-index:58!important;}
#ganttWorkspace .gantt-time-header{z-index:57!important;}
@media print{
  #ganttWorkspace.gantt-workspace-scroll{height:auto!important;max-height:none!important;overflow:visible!important;}
  #ganttWorkspace .gantt-list-table thead th,
  #ganttWorkspace .gantt-timeline-task-head,
  #ganttWorkspace .gantt-month-header,
  #ganttWorkspace .gantt-time-header{transform:none!important;position:static!important;box-shadow:none!important;}
}


/* v8.0.16: Gantt task-name pane stays fixed while only timeline scrolls horizontally. */
#ganttWorkspace.gantt-workspace-scroll{
  overflow-x:hidden!important;
  overflow-y:auto!important;
  width:100%!important;
  min-width:0!important;
}
#ganttWorkspace .gantt-timeline-shell{
  display:grid!important;
  grid-template-columns:330px minmax(0,1fr)!important;
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}
#ganttWorkspace .gantt-timeline-task-pane{
  position:relative!important;
  left:0!important;
  min-width:330px!important;
  width:330px!important;
  max-width:330px!important;
  overflow:hidden!important;
  z-index:20!important;
}
#ganttWorkspace .gantt-timeline-horizontal{
  min-width:0!important;
  width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
#ganttWorkspace .gantt-timeline-top-scroll{
  margin-left:330px!important;
  width:calc(100% - 330px)!important;
  max-width:calc(100% - 330px)!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  box-sizing:border-box!important;
}
@media(max-width:900px){
  #ganttWorkspace .gantt-timeline-shell{grid-template-columns:260px minmax(0,1fr)!important;}
  #ganttWorkspace .gantt-timeline-task-pane{min-width:260px!important;width:260px!important;max-width:260px!important;}
  #ganttWorkspace .gantt-timeline-top-scroll{margin-left:260px!important;width:calc(100% - 260px)!important;max-width:calc(100% - 260px)!important;}
}


/* v8.0.16 — printable Payroll Summary by Project. */
.payroll-summary-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
@media print{
  body.printing-payroll-summary *{visibility:hidden!important;}
  body.printing-payroll-summary #payrollSummaryPrintArea,
  body.printing-payroll-summary #payrollSummaryPrintArea *{visibility:visible!important;}
  body.printing-payroll-summary #payrollSummaryPrintArea{
    display:block!important;position:absolute!important;left:0!important;top:0!important;
    width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
    border:0!important;box-shadow:none!important;background:#fff!important;color:#111!important;
  }
  body.printing-payroll-summary #payrollSummaryPrintArea .panel-title{display:flex!important;margin-bottom:8px!important;}
  body.printing-payroll-summary #payrollSummaryPrintArea .payroll-summary-actions,
  body.printing-payroll-summary #payrollSummaryPrintArea .summary-filter-line button{display:none!important;}
  body.printing-payroll-summary #payrollSummaryPrintArea .summary-filter-line{
    display:flex!important;gap:12px!important;align-items:center!important;margin:0 0 10px!important;
  }
  body.printing-payroll-summary #payrollSummaryPrintArea .summary-filter-line label{display:none!important;}
  body.printing-payroll-summary #payrollSummaryPrintArea .table-wrap{overflow:visible!important;max-height:none!important;}
  body.printing-payroll-summary #payrollSummaryPrintArea table{width:100%!important;border-collapse:collapse!important;font-size:9pt!important;}
  body.printing-payroll-summary #payrollSummaryPrintArea th,
  body.printing-payroll-summary #payrollSummaryPrintArea td{border:1px solid #8d99a6!important;padding:5px 6px!important;white-space:normal!important;}
  body.printing-payroll-summary #payrollSummaryPrintArea thead{display:table-header-group!important;}
  body.printing-payroll-summary #payrollSummaryPrintArea tfoot{display:table-footer-group!important;}
  body.printing-payroll-summary #payrollSummaryPrintArea tr{break-inside:avoid!important;}
  @page{size:letter landscape;margin:10mm;}
}


/* v8.0.19 mobile and tablet layout */
.mobile-menu-btn{display:none;border:1px solid #c8d3df;background:#fff;color:#1e2d3d;border-radius:8px;padding:8px 11px;font-size:22px;line-height:1;cursor:pointer}
.mobile-sidebar-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.38);z-index:1100}
@media(max-width:900px){
  body{overflow-x:hidden}
  .shell{display:block;min-width:0}
  .sidebar{display:block!important;visibility:visible!important;position:fixed!important;left:0;top:0;bottom:0;width:min(84vw,320px)!important;max-width:320px;z-index:1200;transform:translateX(-105%);transition:transform .22s ease;overflow-y:auto;box-shadow:0 0 24px rgba(0,0,0,.25);touch-action:pan-y}
  body.mobile-nav-open{overflow:hidden}
  body.mobile-nav-open .sidebar{display:block!important;transform:translateX(0)}
  body.mobile-nav-open .mobile-sidebar-backdrop{display:block}
  main{width:100%!important;min-width:0!important;margin:0!important}
  main>header{position:sticky;top:0;z-index:950;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:10px 12px;background:#fff;border-bottom:1px solid #d7e0e8}
  .mobile-menu-btn{display:inline-flex;align-items:center;justify-content:center}
  main>header h1{font-size:18px;margin:0}
  main>header p{font-size:11px;margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:52vw}
  main>header .user{font-size:11px;text-align:right;line-height:1.25}
  .page{padding:12px!important}
  .panel{padding:12px!important;border-radius:10px}
  .panel-title{gap:8px;align-items:flex-start;flex-wrap:wrap}
  .panel-title h2{font-size:17px}
  .button-row{display:flex;flex-wrap:wrap;gap:7px}
  button,.primary,.secondary{min-height:40px}
  input,select,textarea{font-size:16px!important;min-height:42px}
  .filters,.form-grid,.project-payroll-controls,.unified-payroll-filters,.dashboard-actions{grid-template-columns:1fr!important;display:grid!important;gap:9px!important}
  .cards,.dashboard-kpis,.finance-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .cards article{padding:12px!important;min-width:0}
  .cards article strong{font-size:18px!important;overflow-wrap:anywhere}
  .table-wrap{overflow:auto!important;-webkit-overflow-scrolling:touch;max-width:100%}
  table{font-size:12px}
  th,td{padding:8px 7px!important}
  .payroll-tabs{display:flex;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;gap:5px;padding-bottom:5px}
  .payroll-tab{flex:0 0 auto}
  .modal,.gantt-editor-modal{width:96vw!important;max-width:96vw!important;max-height:92vh!important;overflow:auto!important;padding:12px!important}
  .gantt-editor-grid,.gantt-details-grid,.gantt-date-matrix,.gantt-cost-grid,.gantt-dependency-form,.gantt-completion-row{grid-template-columns:1fr!important}
  .gantt-date-matrix>b{display:none}
  .gantt-name-field{grid-column:auto!important}
  .gantt-timeline-shell{grid-template-columns:220px minmax(0,1fr)!important}
  .gantt-timeline-top-scroll{margin-left:220px!important}
  .gantt-filter-row{grid-template-columns:1fr!important}
  .gantt-summary{grid-template-columns:1fr!important}
  .system-alert-heading{align-items:flex-start;gap:8px;flex-wrap:wrap}
  .smart-dropdown-menu{max-width:calc(100vw - 24px)!important}
}
@media(max-width:560px){
  .cards,.dashboard-kpis,.finance-summary-cards{grid-template-columns:1fr!important}
  main>header{grid-template-columns:auto minmax(0,1fr) auto}
  main>header p{max-width:44vw}
  .page{padding:8px!important}
  .panel{padding:10px!important}
  .brand{padding:14px 12px}
  .gantt-timeline-shell{grid-template-columns:180px minmax(0,1fr)!important}
  .gantt-timeline-top-scroll{margin-left:180px!important}
  .gantt-task-pane,.gantt-name-pane{min-width:180px!important;width:180px!important}
  .project-report-grid,.report-financial-cards{grid-template-columns:1fr!important}
}

/* v9.0.0 construction management command center */
.dashboard-command-grid,.dashboard-chart-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin:16px 0}.dashboard-chart-grid{grid-template-columns:1.45fr 1fr}.dashboard-chart-wide{min-width:0}.dashboard-canvas{width:100%;height:260px;display:block}.decision-center{border-top:4px solid #1677ff}.decision-count{min-width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#eaf2ff;color:#0d5fcc;font-weight:800}.decision-list{display:grid;gap:9px}.decision-item{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:13px 14px;border:1px solid #dce5ee;border-left:5px solid #f0a020;border-radius:10px;background:#fff;color:#243646;cursor:pointer}.decision-item span{display:grid;gap:4px}.decision-item small{font-weight:400;color:#657585}.decision-item.critical{border-left-color:#cf3f3f;background:#fff8f8}.decision-item.clear{border-left-color:#1b9c68;background:#f6fffb}.decision-item b{white-space:nowrap;color:#0d5fcc}.dashboard-hero{background:linear-gradient(135deg,#0d3858,#156a88);color:#fff;border-radius:16px;padding:22px}.dashboard-hero span{letter-spacing:.12em;font-weight:800}.dashboard-hero h2{margin:5px 0}.dashboard-kpis article:first-child{box-shadow:inset 0 3px 0 #1b9c68}.obligation-card{border-top:4px solid #f0a020}
@media(max-width:1000px){.dashboard-command-grid,.dashboard-chart-grid{grid-template-columns:1fr}.dashboard-canvas{height:230px}}
/* QPB CMP v1.0.0 construction modules */
.cmp-project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.cmp-project-card{border:1px solid var(--line,#dbe3ea);border-radius:14px;padding:16px;background:var(--panel,#fff);box-shadow:0 4px 14px rgba(15,61,94,.06)}.cmp-project-card>div:first-child{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.cmp-project-card>div:first-child span{font-size:12px;color:#64748b}.cmp-progress{height:9px;background:#e7edf2;border-radius:999px;margin:14px 0 7px;overflow:hidden}.cmp-progress i{display:block;height:100%;background:linear-gradient(90deg,#0f3d5e,#2a8f7b);border-radius:999px}.cmp-project-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0 0}.cmp-project-card dl div{padding:9px;background:#f7fafc;border-radius:9px}.cmp-project-card dt{font-size:11px;color:#64748b}.cmp-project-card dd{margin:3px 0 0;font-weight:700}.priority{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;text-transform:uppercase}.priority.critical{background:#fee2e2;color:#991b1b}.priority.high,.priority.urgent{background:#ffedd5;color:#9a3412}.priority.normal{background:#dbeafe;color:#1e40af}.priority.low{background:#e2e8f0;color:#475569}textarea{min-height:80px;resize:vertical}@media(max-width:720px){.cmp-project-grid{grid-template-columns:1fr}.cmp-project-card dl{grid-template-columns:1fr 1fr}.form-grid label.wide{grid-column:1/-1}}

/* QPB CMP v1.1.1 fixes */
.qpb-slip-logo{border-radius:50%!important;clip-path:circle(50%)!important;object-fit:cover!important;aspect-ratio:1/1!important}
#employeeStatus{appearance:auto!important}
@media print{
 body.printing-payslip .sidebar,body.printing-payslip main>header,body.printing-payslip main>.page:not(#payrollPage),body.printing-payslip #payrollPage>*:not(#paytab-payslip),body.printing-payslip #paytab-payslip>*:not(.panel),body.printing-payslip #paytab-payslip .panel>*:not(#payslipPreview){display:none!important}
 body.printing-payslip #payrollPage,body.printing-payslip #paytab-payslip,body.printing-payslip #paytab-payslip .panel,body.printing-payslip #payslipPreview{display:block!important;visibility:visible!important;position:static!important;width:100%!important;margin:0!important;padding:0!important}
 body.printing-payslip #payslipPreview,body.printing-payslip #payslipPreview *{visibility:visible!important}
 body.printing-payslip #reportsPage,body.printing-payslip #projectReportView{display:none!important;visibility:hidden!important}
}

/* QPB CMP v1.1.4 visual rebuild — preserves existing major tabs and sub-tab grouping */
:root{--qpb-navy:#073354;--qpb-navy-deep:#052942;--qpb-blue:#0b66dc;--qpb-bg:#f4f7fb;--qpb-line:#dfe6ee;--qpb-text:#122033;--qpb-muted:#66758a}
body{background:var(--qpb-bg);color:var(--qpb-text)}
.shell{grid-template-columns:258px minmax(0,1fr)}
.sidebar{background:linear-gradient(180deg,var(--qpb-navy-deep),var(--qpb-navy));box-shadow:8px 0 24px rgba(4,40,68,.12);border-right:0}
.brand{padding:18px 16px 16px;border-bottom:1px solid rgba(255,255,255,.15);gap:12px;align-items:center}
.brand .logo{width:76px;height:76px;min-width:76px;border-radius:50%;overflow:hidden;background:#fff;border:3px solid rgba(255,255,255,.85);box-shadow:0 5px 18px rgba(0,0,0,.18)}
.brand .logo img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%;clip-path:circle(50%)}
.brand strong{font-size:20px;letter-spacing:.01em}.brand span{font-size:10px;line-height:1.35;opacity:.82}
.major-nav{padding:8px 10px 20px}.nav-group{border-bottom:1px solid rgba(255,255,255,.12);padding:5px 0 8px}
.major-nav-btn{min-height:auto!important;padding:7px 8px 4px!important;color:rgba(255,255,255,.65)!important;font-size:10px!important;font-weight:800!important;letter-spacing:.08em!important;background:transparent!important;border:0!important;text-align:left!important;width:100%}
.nav-submenu{display:grid;gap:2px}.nav{border-radius:7px!important;padding:9px 12px!important;font-size:13px!important;color:rgba(255,255,255,.9)!important;background:transparent!important;border:0!important;text-align:left!important;transition:.15s ease}
.nav:hover{background:rgba(255,255,255,.08)!important}.nav.active{background:linear-gradient(90deg,#0870e8,#0758c8)!important;color:#fff!important;box-shadow:0 5px 14px rgba(0,76,177,.35)}
main>header{min-height:76px;padding:14px 24px;background:#fff;border-bottom:1px solid var(--qpb-line);box-shadow:0 2px 10px rgba(20,48,74,.04)}
main>header h1{font-size:22px;color:#121d2d}main>header p{color:var(--qpb-muted)}main>header .user{color:#182334;font-weight:700}main>header .user span{font-weight:400;color:var(--qpb-muted)}
.page{padding:18px 22px 28px}.panel{border:1px solid var(--qpb-line);border-radius:8px;box-shadow:0 4px 14px rgba(25,55,85,.04);background:#fff}.panel-title h2{color:#152136}
button.primary,.primary{background:#0867d9;border-color:#0867d9;border-radius:6px}button.secondary,.secondary{border-radius:6px;background:#fff;border-color:#cfd8e4;color:#26364b}
input,select,textarea{border-color:#d4dde8;border-radius:6px;background:#fff}input:focus,select:focus,textarea:focus{border-color:#0b69df;box-shadow:0 0 0 3px rgba(11,105,223,.12);outline:0}
.attendance-filters{display:grid!important;grid-template-columns:minmax(190px,1.1fr) minmax(240px,1.25fr) minmax(230px,1.25fr) minmax(160px,.8fr) auto!important;gap:12px!important;align-items:end}
.attendance-project-search{min-width:0}.attendance-project-search input{width:100%}.visually-hidden-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.attendance-week-strip{display:grid;grid-template-columns:repeat(7,minmax(90px,1fr));gap:8px;margin:16px 0}.attendance-day{position:relative;border:1px solid #d5dee9;border-radius:7px;padding:12px 8px;background:#fff;color:#182338;min-height:62px;box-shadow:none;transition:.15s ease}.attendance-day strong{font-size:13px}.attendance-day small{display:block;margin-top:5px;color:#65758a}.attendance-day:hover{border-color:#0b69df;background:#f7fbff}.attendance-day.active,.attendance-day.selected{background:linear-gradient(180deg,#0b6ee8,#075dcc)!important;color:#fff!important;border-color:#075dcc!important;box-shadow:0 6px 14px rgba(11,105,223,.25)!important;outline:0!important;transform:translateY(-1px)}.attendance-day.active small,.attendance-day.selected small{color:#fff!important}.attendance-day.active:after,.attendance-day.selected:after{content:"";position:absolute;left:50%;bottom:-7px;transform:translateX(-50%);border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #075dcc}
#attendancePage .table-wrap{border:1px solid #e0e6ee;border-radius:7px}#attendancePage table thead th{background:#f5f7fa;color:#334155;text-transform:none;letter-spacing:0;font-size:12px}#attendancePage table tbody tr:hover{background:#f8fbff}
.qpb-slip-logo,.sidebar .logo img{border-radius:50%!important;clip-path:circle(50%)!important;object-fit:cover!important}
@media(max-width:1150px){.attendance-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}.attendance-filters button{width:100%}}
@media(max-width:900px){.shell{display:block}.brand .logo{width:68px;height:68px;min-width:68px}.attendance-filters{grid-template-columns:1fr!important}.attendance-week-strip{display:flex!important;overflow-x:auto;padding:2px 2px 10px}.attendance-day{min-width:92px;flex:0 0 92px}.page{padding:12px!important}}

/* v1.1.4 corrected collapsible icon navigation */
.major-nav-btn{display:grid!important;grid-template-columns:22px 1fr 18px;align-items:center;gap:7px!important}
.major-nav-btn .nav-chevron{font-size:20px;line-height:1;text-align:center;transition:transform .18s ease}
.nav-group.open>.major-nav-btn .nav-chevron{transform:rotate(90deg)}
.nav-icon{display:inline-flex;width:20px;min-width:20px;height:20px;align-items:center;justify-content:center;font-size:15px;color:rgba(255,255,255,.92)}
.nav-submenu{display:none!important;padding:3px 0 6px 9px!important}
.nav-group.open>.nav-submenu{display:grid!important;gap:2px!important}
.nav-submenu .nav{display:flex!important;align-items:center!important;gap:8px!important}
.attendance-filters{grid-template-columns:minmax(170px,1fr) minmax(250px,1.35fr) minmax(220px,1.1fr) minmax(150px,.8fr) auto!important}
#attendanceProjectFilter{width:100%;min-height:40px}

/* QPB CMP v1.1.4 navigation refinement */
.major-nav-btn{font-family:Inter,"Segoe UI",Arial,sans-serif!important;font-size:11px!important;font-weight:700!important;letter-spacing:.055em!important;color:rgba(238,247,255,.82)!important;text-transform:none!important}
.major-nav-btn>span:nth-child(2){text-transform:uppercase}
.nav-submenu .nav{font-family:Inter,"Segoe UI",Arial,sans-serif!important;font-size:12px!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important}
.nav-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.major-nav-btn .nav-icon svg{width:18px;height:18px}
.nav-group.open>.major-nav-btn{color:#fff!important}
.nav-submenu .nav.active .nav-icon{color:#fff}
.permission-builder{border:1px solid var(--border,#d7e0e7);border-radius:12px;padding:16px;background:#f8fafc}.permission-builder h3{margin:0 0 12px}.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.permission-item{padding:9px 10px;border:1px solid #dce5ec;border-radius:8px;background:#fff}.compact{padding:6px 10px;font-size:12px}

/* v1.3.0 workflow */
.workflow-notifications{border-left:5px solid #d18b00}.workflow-notifications .panel-title{align-items:center}.workflow-notice{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-top:1px solid var(--border,#ddd)}.workflow-notice span{color:var(--muted,#666)}

/* v1.4.0 usability, pagination and mobile enhancements */
.register-pager{display:flex;gap:.35rem;justify-content:center;align-items:center;padding:.8rem;flex-wrap:wrap}.register-pager button{min-width:36px}.register-pager button.active{font-weight:800;outline:2px solid currentColor}.register-table-sticky th:nth-child(2),.register-table-sticky td:nth-child(2){position:sticky;left:0;z-index:3;background:var(--panel,#fff);box-shadow:2px 0 4px rgba(0,0,0,.08)}.register-table-sticky thead th:nth-child(2){z-index:5}.s-curve-chart{min-height:260px;overflow:auto}.s-curve-chart svg{width:100%;min-width:620px;height:260px}.s-curve-legend{display:flex;gap:1rem;font-size:.85rem;margin-bottom:.5rem}.s-curve-legend i{display:inline-block;width:24px;height:3px;vertical-align:middle;margin-right:.3rem;background:currentColor}.logo img,.brand-logo img,.sidebar-logo img,.login-logo img{object-fit:contain!important;padding:6%!important;box-sizing:border-box!important}.smart-filter-select:focus{outline:2px solid rgba(15,61,94,.25)}
@media(max-width:700px){.form-grid label,.filters label{min-width:0}.form-grid input[type=date],.form-grid select,.form-grid input,.form-grid textarea{width:100%;max-width:100%;box-sizing:border-box}.materials-report-filters{display:grid;grid-template-columns:1fr 1fr}.materials-report-filters select:first-child,.materials-report-filters button,.materials-report-filters input[placeholder]{grid-column:1/-1}.payroll-sheet-wrap{overflow-x:auto}.payroll-sheet{min-width:1150px}.payroll-sheet th:nth-child(2),.payroll-sheet td:nth-child(2){position:sticky;left:0;background:var(--panel,#fff);z-index:3;min-width:155px}.payroll-tabs{overflow-x:auto;display:flex;white-space:nowrap;scroll-snap-type:x proximity}.payroll-tab{scroll-snap-align:start;flex:0 0 auto}.project-payroll-controls{display:grid!important;grid-template-columns:1fr 1fr}.project-payroll-controls>*{min-width:0}.project-payroll-controls .payroll-employee-filter,.project-payroll-controls button{grid-column:1/-1}.register-filter-bar{display:grid!important;grid-template-columns:1fr 1fr}.register-filter-bar input,.register-filter-bar button{grid-column:1/-1}}
\n\n/* QPB CMP v1.4.1 sidebar, account balance and guest privacy refinements */\n.sidebar{padding:18px 12px;background:linear-gradient(180deg,#062b46 0%,#082f4b 48%,#06263d 100%)}\n.brand{display:grid;grid-template-columns:64px 1fr;gap:13px;align-items:center;padding:14px 12px 18px;margin:0 0 12px;border:1px solid rgba(127,205,241,.14);border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.018));box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}\n.brand .logo{width:64px;height:64px;border-radius:50%;padding:6px;background:#fff;border:3px solid rgba(72,190,229,.55);box-shadow:0 0 0 3px rgba(255,255,255,.08),0 7px 18px rgba(0,0,0,.18)}\n.brand .logo img{object-fit:contain;border-radius:50%}\n.brand strong{display:block;font-size:21px;line-height:1.05;letter-spacing:.015em}.brand span{font-size:10px;line-height:1.35;margin-top:6px;color:#b8cde0;max-width:125px}\n.major-nav{gap:7px}.nav-group{border:1px solid transparent}.nav-group.open{border-color:rgba(103,184,223,.13);background:rgba(0,0,0,.08)}\n.major-nav-btn{display:grid;grid-template-columns:28px 1fr 18px;align-items:center;gap:8px;padding:12px 11px;border-radius:10px;font-size:12px}.major-nav-btn .nav-icon{display:grid;place-items:center}.major-nav-btn .nav-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}.nav-chevron{font-size:22px;line-height:1;text-align:right;color:#a9c1d6}.major-nav-btn:hover,.nav-group.open>.major-nav-btn{background:linear-gradient(90deg,#0d527d,#0a4268);box-shadow:inset 3px 0 0 #37c4e8}.nav-submenu{padding:4px 7px 8px 13px}.nav-submenu .nav{border-left:2px solid rgba(111,179,215,.2);border-radius:0 8px 8px 0;padding:9px 10px}.nav-submenu .nav.active{background:linear-gradient(90deg,rgba(33,143,196,.45),rgba(22,89,132,.2));border-left-color:#43c8eb}\n.account-balance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.account-balance-card{border:1px solid #dbe6ef;border-radius:12px;padding:14px;background:linear-gradient(145deg,#fff,#f6fafd)}.account-balance-card span{display:block;font-size:11px;color:#6c7d8f;text-transform:uppercase;letter-spacing:.05em}.account-balance-card strong{display:block;margin-top:5px;font-size:14px}.account-balance-card b{display:block;margin-top:10px;font-size:21px;color:#0b6d9b;text-align:right}\nbody[data-username="guest"] .guest-money-hidden,body[data-username="guest"] #dashboardAccountsPanel{display:none!important}body[data-username="guest"] td.amount,body[data-username="guest"] th[data-col="amount"]{color:transparent!important;position:relative}body[data-username="guest"] td.amount::after,body[data-username="guest"] th[data-col="amount"]::after{content:'Restricted';color:#677789;position:absolute;inset:0;display:grid;place-items:center;font-weight:600}body[data-username="guest"] input[type="number"][id*="Rate"],body[data-username="guest"] input[type="number"][id*="Amount"],body[data-username="guest"] input[type="number"][id*="Cost"]{filter:blur(7px);pointer-events:none}\n@media(max-width:900px){.brand{grid-template-columns:56px 1fr}.brand .logo{width:56px;height:56px}.brand strong{font-size:19px}.account-balance-grid{grid-template-columns:1fr 1fr}}\n
/* v1.4.2.4 Database Manager */
.button-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.database-manager-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:22px;margin-top:18px}.backup-list{display:grid;gap:10px}.backup-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line,#d9e2ec);border-radius:12px;background:var(--surface,#fff)}.backup-row small{display:block;margin-top:4px;color:var(--muted,#64748b)}.compact{padding:7px 10px;font-size:12px}.database-restore-form{padding:16px;border:1px solid var(--line,#d9e2ec);border-radius:14px;background:var(--surface-soft,#f8fafc)}.database-restore-form label{display:grid;gap:6px;margin:12px 0}.database-restore-form input{width:100%}@media(max-width:850px){.database-manager-grid{grid-template-columns:1fr}.backup-row{align-items:flex-start;flex-direction:column}}

.financial-control-grid{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(420px,1.2fr);gap:24px;align-items:start}.financial-control-grid form{display:grid;gap:12px}.financial-control-grid textarea{resize:vertical}.compact-table{max-height:360px}@media(max-width:900px){.financial-control-grid{grid-template-columns:1fr}}


/* QPB CMP v1.5.3 usability fixes */
.brand{grid-template-columns:58px minmax(0,1fr)!important;padding:13px 12px 15px!important;border-radius:14px!important}
.brand .logo{width:58px!important;height:58px!important;min-width:58px!important;border-radius:13px!important;padding:7px!important;background:linear-gradient(145deg,#ffffff,#edf8fc)!important;border:1px solid rgba(120,211,238,.8)!important;box-shadow:0 7px 18px rgba(0,0,0,.16)!important;overflow:hidden!important}
.brand .logo img,.sidebar .logo img{width:100%!important;height:100%!important;object-fit:contain!important;padding:0!important;border-radius:0!important;clip-path:none!important}
.brand strong{font-size:19px!important}.brand span{font-size:10px!important;max-width:none!important}
.major-nav-btn{border:1px solid transparent!important}.major-nav-btn:hover,.nav-group.open>.major-nav-btn{border-color:rgba(91,199,235,.2)!important}
.ledger-table-viewport{max-height:460px;overflow:auto;position:relative;border:1px solid #d8e3ec;border-radius:10px}
.ledger-table-viewport thead th{position:sticky;top:0;z-index:4;background:#eef5fa;box-shadow:0 1px 0 #cbd9e3}
.ledger-table-viewport.ledger-expanded{max-height:none;overflow-x:auto;overflow-y:visible}
#transactionLedger{table-layout:auto;width:100%;min-width:980px}
#transactionLedger th,#transactionLedger td{vertical-align:top}
#transactionLedger th[data-col="date"],#transactionLedger td[data-col="date"]{white-space:nowrap}
@media(max-width:900px){.brand{grid-template-columns:52px minmax(0,1fr)!important}.brand .logo{width:52px!important;height:52px!important;min-width:52px!important}.ledger-table-viewport{max-height:430px}}


/* QPB CMP v1.5.4 — luxury sidebar and simplified beginning-balance workspace */
.sidebar{background:linear-gradient(180deg,#071d2d 0%,#09283d 48%,#061824 100%)!important;padding:20px 14px!important;border-right:1px solid rgba(214,177,92,.18)!important;box-shadow:14px 0 36px rgba(2,16,26,.22)!important}
.brand{position:relative;display:grid!important;grid-template-columns:56px 1fr!important;gap:14px!important;align-items:center!important;padding:18px 12px 21px!important;margin:0 0 15px!important;border:0!important;border-bottom:1px solid rgba(214,177,92,.26)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.brand:after{content:'';position:absolute;left:12px;bottom:-1px;width:46px;height:1px;background:linear-gradient(90deg,#d6b15c,transparent)}
.brand .logo{width:56px!important;height:56px!important;padding:0!important;border:0!important;border-radius:13px!important;background:linear-gradient(145deg,#fff,#edf7fa)!important;box-shadow:0 9px 24px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.9)!important;overflow:hidden}
.brand .logo img,.sidebar .logo img{width:100%!important;height:100%!important;object-fit:contain!important;padding:5px!important;border-radius:10px!important;clip-path:none!important;transform:scale(1.22)}
.brand strong{font-family:Georgia,'Times New Roman',serif!important;font-size:22px!important;font-weight:700!important;letter-spacing:.035em!important;color:#fff!important}.brand span{font-size:9px!important;line-height:1.45!important;letter-spacing:.085em!important;text-transform:uppercase!important;color:#91aabc!important;max-width:145px!important;margin-top:6px!important}
.major-nav{gap:5px!important}.nav-group{border:0!important;border-radius:9px!important}.major-nav-btn{min-height:48px!important;padding:12px 11px!important;border-radius:8px!important;color:#c7d6df!important;font-size:11px!important;font-weight:700!important;letter-spacing:.075em!important}.major-nav-btn .nav-icon svg{stroke:#d6b15c!important;stroke-width:1.55!important}.nav-chevron{color:#607f93!important}.major-nav-btn:hover,.nav-group.open>.major-nav-btn{background:linear-gradient(90deg,rgba(214,177,92,.13),rgba(255,255,255,.035))!important;box-shadow:inset 2px 0 0 #d6b15c!important;color:#fff!important}.nav-submenu .nav{color:#9fb3c0!important;border-left-color:rgba(214,177,92,.2)!important}.nav-submenu .nav.active{background:linear-gradient(90deg,rgba(214,177,92,.16),rgba(214,177,92,.03))!important;border-left-color:#d6b15c!important;color:#fff!important}
.beginning-balance-modal{width:min(920px,calc(100vw - 32px))!important;max-height:88vh!important;overflow:auto!important;padding:0!important;border-radius:18px!important;border:1px solid rgba(13,56,82,.14)!important;box-shadow:0 28px 80px rgba(3,24,39,.32)!important}
.balance-modal-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:26px 28px 20px;background:linear-gradient(135deg,#071f31,#0d3b57);color:#fff}.balance-modal-head h2{margin:3px 0 7px;font-family:Georgia,'Times New Roman',serif;font-size:29px}.balance-modal-head p{margin:0;color:#b9ccd8}.balance-eyebrow{font-size:10px;letter-spacing:.18em;color:#d6b15c;font-weight:800}.modal-close{border:0;background:rgba(255,255,255,.08);color:#fff;width:38px;height:38px;border-radius:50%;font-size:26px;line-height:1;cursor:pointer}.modal-close:hover{background:rgba(214,177,92,.2)}
.balance-access-note{margin:18px 28px 0;padding:11px 14px;border-radius:9px;background:#f5f8fa;color:#516578;font-size:13px;border-left:3px solid #d6b15c}.balance-add-card{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(170px,1fr) minmax(150px,.9fr) auto;gap:12px;align-items:end;margin:16px 28px 24px;padding:18px;border:1px solid #dce5eb;border-radius:13px;background:#fff;box-shadow:0 8px 24px rgba(12,47,69,.06)}.balance-field label,.beginning-balance-row label{display:block;margin-bottom:6px;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#607487}.balance-field input,.beginning-balance-row input{width:100%;height:42px;border:1px solid #cbd7df;border-radius:8px;padding:0 11px;background:#fff}.money-input{display:flex;align-items:center;border:1px solid #cbd7df;border-radius:8px;background:#fff;overflow:hidden}.money-input span{padding:0 0 0 11px;color:#536b7a;font-weight:700}.money-input input{border:0!important;border-radius:0!important;box-shadow:none!important}.balance-add-btn{height:42px!important;white-space:nowrap!important;background:linear-gradient(135deg,#0d4b6c,#0a3650)!important;border-color:#0a3650!important}.balance-list-head{display:flex;justify-content:space-between;padding:0 28px 10px}.balance-list-head h3{margin:0;color:#13283a}.balance-list-head p{margin:4px 0 0;color:#768795;font-size:13px}.beginning-balance-list{padding:0 28px 28px;display:grid;gap:10px}.beginning-balance-row{display:grid;grid-template-columns:minmax(210px,1.35fr) minmax(155px,.9fr) minmax(145px,.8fr) minmax(135px,.75fr) auto;gap:12px;align-items:end;padding:15px 16px;border:1px solid #dce5eb;border-radius:11px;background:#fff;transition:.18s ease}.beginning-balance-row:hover{border-color:#b7cbd8;box-shadow:0 8px 20px rgba(9,45,66,.07)}.balance-account-main small{display:block;margin-top:5px;color:#7e909d}.balance-current strong{display:flex;align-items:center;height:42px;font-size:16px;color:#0c587c}.balance-actions{display:flex;gap:8px;align-items:center;height:42px}.balance-actions button{height:38px}.text-danger{border:0;background:transparent;color:#a33b3b;font-weight:700;cursor:pointer;padding:6px}.archived-label{font-size:12px;color:#8a949c}.beginning-balance-row.is-inactive{opacity:.62;background:#f6f7f8}.balance-empty{padding:30px;text-align:center;border:1px dashed #cbd7df;border-radius:11px;color:#718492;background:#f9fbfc}
@media(max-width:850px){.balance-add-card{grid-template-columns:1fr 1fr}.balance-add-btn{width:100%}.beginning-balance-row{grid-template-columns:1fr 1fr}.balance-actions{grid-column:1/-1}}
@media(max-width:520px){.balance-add-card,.beginning-balance-row{grid-template-columns:1fr}.balance-modal-head{padding:22px}.balance-access-note,.balance-add-card{margin-left:16px;margin-right:16px}.balance-list-head,.beginning-balance-list{padding-left:16px;padding-right:16px}}


/* QPB CMP v1.6.0 — elite usability and functional field rebuild */
:root{--luxury-gold:#c9a65a;--luxury-gold-soft:#ead9aa;--luxury-ink:#0a1d2d;--luxury-navy:#061d2d}
.sidebar{background:radial-gradient(circle at 20% 0%,rgba(35,91,122,.34),transparent 34%),linear-gradient(180deg,#061b2a 0%,#08283d 52%,#041520 100%)!important}
.brand{grid-template-columns:72px minmax(0,1fr)!important;padding:18px 10px 22px!important;gap:15px!important}
.brand .logo{width:72px!important;height:72px!important;min-width:72px!important;border-radius:18px!important;padding:7px!important;background:linear-gradient(145deg,#fff,#eef8fb)!important;border:1px solid rgba(234,217,170,.75)!important;box-shadow:0 12px 30px rgba(0,0,0,.33),0 0 0 3px rgba(201,166,90,.09)!important}
.brand .logo img,.sidebar .logo img{transform:none!important;object-fit:contain!important;padding:0!important;border-radius:8px!important}
.brand strong{font-family:Inter,Segoe UI,Arial,sans-serif!important;font-size:21px!important;font-weight:800!important;letter-spacing:.02em!important}.brand span{text-transform:none!important;letter-spacing:.035em!important;font-size:10px!important;color:#a9c1d1!important}
.major-nav-btn:hover,.nav-group.open>.major-nav-btn{background:linear-gradient(90deg,rgba(201,166,90,.2),rgba(15,71,104,.52))!important;box-shadow:inset 3px 0 0 var(--luxury-gold)!important}.nav-submenu .nav.active{border-left-color:var(--luxury-gold)!important;background:linear-gradient(90deg,rgba(201,166,90,.18),rgba(22,89,132,.2))!important}.nav-chevron{color:#d9c38a!important}
.panel-eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:.16em;color:#9a762d;margin-bottom:5px}.premium-account-panel{border:1px solid #e3d5b4!important;box-shadow:0 16px 42px rgba(14,35,50,.08)!important;background:linear-gradient(145deg,#fff 0%,#fbfaf6 100%)!important}.account-total-badge{padding:10px 16px;border-radius:12px;background:linear-gradient(135deg,#0a3048,#09253a);color:#fff;box-shadow:0 8px 20px rgba(5,31,48,.18);font-size:20px}.account-balance-table-wrap{border:1px solid #e4e8ec;border-radius:14px;overflow:auto}.account-balance-table{min-width:760px}.account-balance-table thead th{background:linear-gradient(180deg,#0b3149,#08283d)!important;color:#fff!important;padding:13px 14px!important;border-color:rgba(255,255,255,.08)!important}.account-balance-table tbody td{padding:12px 14px!important;vertical-align:middle}.account-balance-table tbody tr:nth-child(even){background:#faf8f2}.account-balance-table tbody tr:hover{background:#f6f0df}.account-balance-table .current-balance{font-size:16px;font-weight:800;color:#0b668c;text-align:right}.account-balance-table input{min-height:40px!important;border-radius:9px!important}.account-balance-table .money-edit{max-width:160px;text-align:right}.account-balance-table .account-name{font-weight:800;color:#13283a}.account-balance-table .save-account-btn{white-space:nowrap}
.form-grid input,.form-grid select,.form-grid textarea,.filters input,.filters select,.gantt-filter-row select,.attendance-filters input,.attendance-filters select{min-height:44px;border:1px solid #cbd6df!important;border-radius:10px!important;background:#fff!important;padding:10px 12px!important;box-shadow:inset 0 1px 2px rgba(15,40,58,.03)!important;transition:border-color .18s,box-shadow .18s,transform .18s}.form-grid textarea{min-height:104px}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.filters input:focus,.filters select:focus,.gantt-filter-row select:focus,.attendance-filters input:focus,.attendance-filters select:focus{border-color:#b89345!important;box-shadow:0 0 0 3px rgba(201,166,90,.16)!important;outline:0!important}.gantt-filter-row{display:grid!important;grid-template-columns:minmax(330px,2fr) minmax(190px,1fr) minmax(190px,1fr) auto auto!important;gap:14px!important;align-items:end!important}.gantt-filter-row label{font-weight:700;color:#2d4050}.gantt-filter-row select{width:100%!important;min-width:0!important;font-size:14px!important}.gantt-toolbar{padding:24px!important}
.ledger-table-viewport,.employee-table-viewport,#attendancePage .table-wrap{max-height:520px!important;overflow:auto!important}.ledger-table-viewport table,.employee-table-viewport table,#attendancePage table{min-width:100%;border-collapse:separate;border-spacing:0}.ledger-table-viewport thead th,.employee-table-viewport thead th,#attendancePage thead th{position:sticky;top:0;z-index:8}.employee-table-viewport{border:1px solid #dde5eb;border-radius:12px}.premium-filter-grid label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;letter-spacing:.035em;color:#536678}.premium-filter-grid{grid-template-columns:minmax(180px,1fr) minmax(260px,1.35fr) minmax(240px,1.25fr) minmax(170px,.9fr) auto!important}
.budget-settings-launcher{border:1px solid #e4d7b9!important;background:linear-gradient(145deg,#fff,#fbf8ef)!important}.budget-percentage-editor{margin-top:18px;padding-top:18px;border-top:1px solid #e3d7bc}.panel-title.compact{align-items:flex-start}
@media(max-width:1100px){.gantt-filter-row,.premium-filter-grid{grid-template-columns:1fr 1fr!important}.gantt-filter-row button,.premium-filter-grid button{width:100%}}
@media(max-width:700px){.brand{grid-template-columns:60px minmax(0,1fr)!important}.brand .logo{width:60px!important;height:60px!important;min-width:60px!important}.gantt-filter-row,.premium-filter-grid{grid-template-columns:1fr!important}.account-total-badge{font-size:16px}}


/* QPB CMP v1.6.1 — compact account register and mobile photo upload */
.premium-account-panel{padding:16px 18px!important}.premium-account-panel .panel-title{margin-bottom:10px!important}.premium-account-panel .panel-title h2{font-size:21px!important;margin:2px 0!important}.premium-account-panel .panel-title p{margin:2px 0!important;font-size:13px!important}.account-total-badge{padding:7px 12px!important;font-size:17px!important;border-radius:9px!important}.account-balance-table-wrap{border-radius:10px!important}.account-balance-table thead th{padding:8px 10px!important;font-size:11px!important;letter-spacing:.02em}.account-balance-table tbody td{padding:7px 10px!important;font-size:13px!important}.account-balance-table .current-balance{font-size:14px!important}.account-balance-table input{min-height:34px!important;height:34px!important;border-radius:7px!important;padding:4px 8px!important}.account-balance-table .money-edit{max-width:135px}.account-row-actions{display:flex;gap:6px;justify-content:flex-start}.account-row-actions button{height:31px!important;min-height:31px!important;padding:4px 10px!important;font-size:12px!important}.account-balance-table tr.is-editing{background:#fff9e9!important}.balance-display{white-space:nowrap}.mobile-photo-field input[type=file]{display:block;width:100%;min-height:48px;padding:10px;border:1px dashed #9fb4c2;border-radius:10px;background:#f8fbfd}.field-help{display:block;margin-top:6px;color:#667c8b;font-size:12px;line-height:1.4}
@media(max-width:700px){.premium-account-panel{padding:12px!important}.account-balance-table{min-width:650px}.mobile-photo-field input[type=file]{font-size:16px}}


/* v1.6.2 compact cash summary and reliable mobile-photo feedback */
.account-summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 12px}
.account-summary-strip>div{padding:10px 12px;border:1px solid rgba(16,47,69,.12);border-radius:12px;background:#f8fafc;display:flex;align-items:center;justify-content:space-between;gap:10px}
.account-summary-strip span{font-size:.75rem;color:#607382;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.account-summary-strip strong{font-size:.95rem;color:#102f45;white-space:nowrap}
.account-summary-strip .primary-summary{background:linear-gradient(135deg,#0b3048,#124b69);border-color:transparent}
.account-summary-strip .primary-summary span,.account-summary-strip .primary-summary strong{color:#fff}
.account-balance-table tfoot th{position:sticky;bottom:0;background:#102f45;color:#fff;font-weight:800;border-top:2px solid #c8a85b;padding:9px 10px;z-index:2}
.mobile-photo-field input[type=file]{min-height:48px;padding:10px;background:#fff;border:1px dashed rgba(16,47,69,.35)}
@media(max-width:760px){.account-summary-strip{grid-template-columns:1fr}.account-summary-strip>div{padding:9px 11px}.mobile-photo-field input[type=file]{width:100%;font-size:16px}}

/* v1.6.3 dashboard account ordering */
.account-panel-actions{display:flex;align-items:flex-end;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.account-sort-control{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted,#64748b)}
.account-sort-control select{min-width:210px;height:36px;padding:0 34px 0 11px;border:1px solid rgba(148,163,184,.38);border-radius:9px;background:var(--surface,#fff);font-size:13px;font-weight:600;color:var(--text,#172033);box-shadow:none}
.account-sort-control select:focus{outline:none;border-color:#b58a3a;box-shadow:0 0 0 3px rgba(181,138,58,.12)}
@media(max-width:720px){.account-panel-actions{width:100%;align-items:stretch}.account-sort-control,.account-sort-control select{width:100%;min-width:0}.account-total-badge{text-align:center}}


/* Audit Center v1.7.0 */
.audit-hero{margin-bottom:18px}.audit-health-cards{grid-template-columns:repeat(6,minmax(135px,1fr))}.audit-health-cards article{min-height:105px}.audit-health-cards strong{font-size:1.5rem}.audit-legend{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.audit-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:.76rem;font-weight:800;white-space:nowrap;background:#eef2f6;color:#4b5563}.audit-pill.balanced,.audit-pill.reconciled{background:#dcfce7;color:#166534}.audit-pill.possible_match{background:#fef3c7;color:#92400e}.audit-pill.partial{background:#ffedd5;color:#9a3412}.audit-pill.missing{background:#fee2e2;color:#991b1b}.audit-pill.ignored{background:#e5e7eb;color:#374151}.audit-difference{font-weight:800;color:#b91c1c}.audit-table-wrap{max-height:560px;overflow:auto}.audit-detail-summary{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:12px;margin:0 0 16px}.audit-detail-summary>div{border:1px solid var(--border);border-radius:14px;padding:14px;background:var(--panel-soft,#f8fafc)}.audit-detail-summary span{display:block;font-size:.78rem;color:var(--muted);margin-bottom:5px}.audit-detail-summary strong{font-size:1.25rem}.audit-detail-table{max-height:620px;overflow:auto}.audit-period-actions{display:grid;grid-template-columns:minmax(260px,1fr) auto auto auto;gap:10px;align-items:end;margin-top:18px;padding-top:16px;border-top:1px solid var(--border)}.audit-period-actions label{margin:0}@media(max-width:1100px){.audit-health-cards{grid-template-columns:repeat(3,1fr)}}@media(max-width:720px){.audit-health-cards{grid-template-columns:repeat(2,1fr)}.audit-detail-summary{grid-template-columns:1fr}.audit-period-actions{grid-template-columns:1fr}.audit-period-actions button{width:100%}}

/* v1.7.1 Audit Center batch reconciliation */
.audit-batch-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:14px 0}
.audit-batch-toolbar label{min-width:210px}
.audit-batch-toolbar .audit-select-all{min-width:auto;display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--border);border-radius:10px}
.audit-batch-toolbar select{min-width:220px}
.audit-check-col{width:72px;text-align:center}
.audit-row-check,.audit-select-all input{width:18px;height:18px}
.audit-batch-toolbar .muted{min-width:82px}
@media(max-width:760px){.audit-batch-toolbar{align-items:stretch}.audit-batch-toolbar label,.audit-batch-toolbar select,.audit-batch-toolbar button{width:100%;min-width:0}}

/* v2.0.1 */
.estimator-result{margin-top:20px}.estimator-result .cards{grid-template-columns:repeat(4,minmax(0,1fr))}.form-grid small{color:var(--muted);font-size:11px}.soa-btn{background:#eef8e9!important}.workflow-item{padding:10px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:10px}@media(max-width:800px){.estimator-result .cards{grid-template-columns:1fr 1fr}}

/* v2.1 proposal builder */
.proposal-total-grid{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:12px;margin:18px 0}.proposal-total-grid span{padding:14px;border:1px solid #d9e0e7;border-radius:10px;background:#f7f9fb;display:flex;justify-content:space-between}.proposal-total-grid span:last-child{background:#eaf7e5;border-color:#96c889}.button-link{display:inline-block;padding:7px 10px;border-radius:7px;background:#eef3f7;color:#17324d;text-decoration:none}.check-label{display:flex!important;align-items:center;gap:8px;padding-top:26px}.check-label input{width:auto!important}@media(max-width:800px){.proposal-total-grid{grid-template-columns:1fr 1fr}}

.proposal-media-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:16px 0}.proposal-media-card{border:1px solid var(--border,#ddd);border-radius:14px;overflow:hidden;background:#fff}.proposal-media-card img{width:100%;height:150px;object-fit:cover;display:block}.proposal-media-card div{padding:12px;display:grid;gap:6px}.proposal-media-card small{line-height:1.4}.proposal-decision-tools,.proposal-email-panel{margin-top:24px;padding-top:16px;border-top:1px solid var(--border,#ddd)}

/* v3.1.0 Role-Based My Work Dashboard */
.my-work-panel{border-top:4px solid #0f6f8f}.my-work-counts{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.my-work-counts span{background:#eef6f8;border:1px solid #d4e8ed;border-radius:10px;padding:8px 12px}.my-work-list{display:grid;gap:10px}.work-task{display:grid;grid-template-columns:88px 1fr auto;gap:14px;align-items:center;border:1px solid #dce6ea;border-radius:14px;padding:14px;background:#fff}.work-task-priority{font-weight:800;text-transform:uppercase;font-size:11px;letter-spacing:.06em;text-align:center;padding:7px;border-radius:999px;background:#eaf2f5}.work-task.high .work-task-priority{background:#fff2d8;color:#8b5b00}.work-task.critical .work-task-priority,.work-task.overdue .work-task-priority{background:#ffe2e2;color:#a52626}.work-task-main p{margin:4px 0;color:#51636f}.work-task-main small{color:#73838d}.work-task-actions{display:flex;gap:7px}.work-empty{text-align:center;padding:35px;background:#f6fafb;border-radius:14px}.dashboardPage:not(.executive-mode) .executive-only{display:none!important}#dashboardPage:not(.executive-mode) .workflow-notifications,#dashboardPage:not(.executive-mode) .dashboard-kpis,#dashboardPage:not(.executive-mode) .dashboard-command-grid,#dashboardPage:not(.executive-mode) .dashboard-health-grid,#dashboardPage:not(.executive-mode) .dashboard-chart-grid,#dashboardPage:not(.executive-mode) .dashboard-project-table-panel{display:none!important}@media(max-width:700px){.work-task{grid-template-columns:1fr}.work-task-priority{justify-self:start}.work-task-actions{width:100%}.work-task-actions button{flex:1}}
.reconcile-status{display:flex;flex-direction:column;font-weight:700}.reconcile-status small{font-weight:400;color:#6d7d87;margin-top:3px}.reconcile-status.has-difference{color:#9a5b00}.account-row-actions{flex-wrap:wrap}.account-row-actions .reconcile-account-btn{border-color:#0f6f8f;color:#0f6f8f}

.upload-label{display:inline-block;padding:.35rem .55rem;border:1px solid #b8c7d1;border-radius:6px;cursor:pointer;background:#fff}.upload-label:hover{background:#eef6fb}

/* v3.2.0 Centers, Finance Operations and camera capture */
.action-tile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}.action-tile{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:18px;border:1px solid var(--border,#d9e0e8);border-radius:14px;background:#fff;text-align:left;cursor:pointer;font-size:24px}.action-tile strong{font-size:15px}.action-tile span{font-size:12px;color:#667085}.action-tile:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(16,24,40,.08)}.finance-two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.finance-quick-actions{margin:14px 0}.camera-box video{width:100%;max-height:420px;background:#111;border-radius:12px}.receipt-item{display:flex;justify-content:space-between;padding:10px;border-bottom:1px solid #eee}.receipt-badge{font-size:12px;padding:3px 7px;border-radius:999px;background:#eef4ff}@media(max-width:900px){.finance-two-col{grid-template-columns:1fr}}


/* v3.2.1 standard field sizing and Excel-style table filters */
:root{--qpb-field-height:42px;--qpb-field-radius:8px}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea{min-height:var(--qpb-field-height);font-size:14px;padding:9px 11px;border-radius:var(--qpb-field-radius);box-sizing:border-box}
.audit-mode-toolbar label,.audit-batch-toolbar label,.audit-period-actions label{min-width:210px}
#auditReviewMode,#auditCutoffFilter,#auditSiteFilter,#auditProjectDuration,#auditBatchAccount,#auditPeriodNotes{width:100%;min-width:210px}
#auditBatchAccount{min-width:280px}
#payslipEmployeeSearch,#payslipEmployeeFilter,#payslipSearch,#payrollPayslipEmployee,#accountSearch,#bankAccountSearch{width:100%;min-width:280px}
.audit-mode-toolbar,.audit-batch-toolbar{align-items:end;gap:12px;flex-wrap:wrap}
.qpb-filter-row th{padding:5px!important;background:#f8fafc!important;position:sticky;top:var(--qpb-table-header-height,0);z-index:2}
.qpb-column-filter{width:100%;min-width:88px;height:34px!important;min-height:34px!important;padding:5px 8px!important;font-size:12px!important;border:1px solid #cbd5e1;border-radius:6px!important;background:#fff}
.qpb-column-filter::placeholder{color:#94a3b8}
.message.warning{background:#fff7ed;border:1px solid #fdba74;color:#9a3412;padding:12px 14px;border-radius:10px;margin:10px 0}
.field-invalid{outline:3px solid rgba(220,38,38,.2)!important;border-color:#dc2626!important}
@media print{.qpb-filter-row{display:none!important}}
@media(max-width:760px){.audit-mode-toolbar label,.audit-batch-toolbar label,.audit-period-actions label,#auditBatchAccount{width:100%;min-width:0}.audit-batch-toolbar button{width:100%}.qpb-column-filter{min-width:74px}}

/* v3.3.0 */
.time-clock-camera{display:grid;place-items:center;background:#eef4f7;border:1px solid #cad8df;border-radius:12px;padding:12px;min-height:260px}.time-clock-camera video,.time-clock-camera img{max-width:100%;max-height:420px;border-radius:10px}.admin-only{display:block}body:not([data-access="Admin"]) .admin-only{display:none!important}#dropdownManagementPage select,#dropdownManagementPage input,#timeClockPage select,#timeClockPage input{min-height:42px;width:100%}

/* v3.3.2 Time Clock kiosk */
.time-clock-shell{max-width:1180px;margin:0 auto;background:linear-gradient(145deg,#0b5273,#0e7fa3);border-radius:22px;padding:20px;box-shadow:0 20px 55px rgba(8,43,61,.22)}
.time-clock-header{display:flex;justify-content:space-between;align-items:center;gap:20px;color:#fff;padding:4px 6px 18px}.time-clock-brand{display:flex;align-items:center;gap:14px}.time-clock-brand img{width:62px;height:62px;object-fit:contain;background:#fff;border-radius:50%;padding:5px}.time-clock-brand span{display:block;font-size:.78rem;letter-spacing:.13em;opacity:.88}.time-clock-brand strong{font-size:1.35rem}.time-clock-live{text-align:right}.time-clock-live strong{display:block;font-size:2.1rem;line-height:1;font-variant-numeric:tabular-nums}.time-clock-live span{font-size:.9rem;opacity:.9}.time-clock-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr);gap:18px}.time-clock-kiosk-card,.time-clock-side-card{background:#fff;border-radius:18px;padding:18px;box-shadow:0 12px 30px rgba(3,35,49,.18)}.time-clock-fields{display:grid;grid-template-columns:1.25fr .75fr;gap:12px;margin-bottom:14px}.time-clock-fields label{font-weight:700;color:#17364a}.time-clock-fields select,.time-clock-fields input{min-height:46px;width:100%;margin-top:6px;border:1px solid #b9ced8;border-radius:10px;padding:0 12px;font-size:1rem;background:#fff}.time-clock-camera-frame{position:relative;min-height:430px;background:#102733;border-radius:18px;overflow:hidden;display:grid;place-items:center}.time-clock-camera-frame video,.time-clock-camera-frame img{width:100%;height:430px;object-fit:cover}.time-clock-camera-placeholder{color:#d8eaf1;text-align:center;display:grid;gap:8px;place-items:center;padding:30px}.time-clock-camera-placeholder span{font-size:4rem}.time-clock-camera-placeholder strong{font-size:1.25rem}.face-guide{position:absolute;width:min(48%,280px);aspect-ratio:.78;border:4px solid rgba(255,255,255,.9);border-radius:48% 48% 44% 44%;box-shadow:0 0 0 999px rgba(0,0,0,.12),0 0 24px rgba(47,214,255,.8);pointer-events:none}.camera-caption{position:absolute;top:14px;left:50%;transform:translateX(-50%);background:rgba(0,0,0,.67);color:#fff;padding:8px 14px;border-radius:8px;font-size:.88rem;white-space:nowrap}.time-clock-camera-actions{display:flex;justify-content:center;gap:10px;margin:14px 0}.time-clock-main-actions{display:grid;grid-template-columns:1fr;gap:12px}.clock-action{border:0;border-radius:16px;min-height:86px;color:#fff;display:flex;align-items:center;justify-content:center;gap:15px;font-size:1.55rem;box-shadow:0 10px 20px rgba(0,0,0,.16);cursor:pointer}.clock-action span{font-size:2rem}.clock-in{background:linear-gradient(135deg,#14b8c7,#02a7d7)}.clock-out{background:linear-gradient(135deg,#ef9b2d,#e45d3a)}.clock-completed{border:1px solid #b8dfc6;background:#edf9f1;color:#11632e;border-radius:14px;padding:18px;text-align:center}.clock-completed span{font-size:2rem;display:block}.clock-completed strong,.clock-completed small{display:block}.time-clock-side-card h3{margin:0 0 14px;color:#133a50}.clock-record-row{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid #e3edf1}.clock-record-row span{color:#607786}.clock-record-row strong{text-align:right;color:#17364a}.time-clock-secondary-actions{display:grid;gap:8px;margin:18px 0}.today-clock-logs h4{margin:0 0 10px}.clock-log-item{padding:10px 0;border-bottom:1px solid #e6eef2;display:grid}.clock-log-item span{font-size:.9rem;color:#0b7594}.clock-log-item small{color:#728692}.muted{color:#718592}.time-clock-camera-actions button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:850px){.time-clock-shell{padding:12px;border-radius:14px}.time-clock-header{align-items:flex-start}.time-clock-brand strong{font-size:1.05rem}.time-clock-live strong{font-size:1.45rem}.time-clock-grid{grid-template-columns:1fr}.time-clock-fields{grid-template-columns:1fr}.time-clock-camera-frame,.time-clock-camera-frame video,.time-clock-camera-frame img{min-height:360px;height:360px}.time-clock-side-card{order:2}}
@media(max-width:520px){.time-clock-header{display:grid}.time-clock-live{text-align:left}.time-clock-camera-actions{display:grid;grid-template-columns:1fr 1fr}.time-clock-camera-actions button{width:100%}.camera-caption{font-size:.75rem;max-width:90%;white-space:normal;text-align:center}.face-guide{width:58%}}

/* QPB CMP v3.4.0 */
body.attendance-gated .sidebar,body.attendance-gated .topbar,body.attendance-gated .mobile-nav-toggle{display:none!important}body.attendance-gated .app-main{margin-left:0!important;width:100%!important}body.attendance-gated #timeClockPage{display:block!important;max-width:1180px;margin:auto}.clock-user-card{display:flex;flex-direction:column;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft)}.clock-user-card strong{font-size:1.05rem}.clock-user-card span{color:var(--muted);font-size:.88rem}.weekly-schedule-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:12px;margin:16px 0}.schedule-day-card{border:1px solid var(--border);border-radius:14px;padding:13px;background:var(--surface-soft);display:grid;gap:8px}.schedule-day-card label{display:grid;gap:4px}.schedule-day-toggle{display:flex!important;align-items:center;gap:8px}.attendance-name-link{border:0;background:none;color:var(--primary);font-weight:700;text-decoration:underline;cursor:pointer;padding:0;text-align:left}.attendance-activity-card{max-width:900px}.attendance-proof-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.attendance-proof-photo{width:100%;height:280px;object-fit:cover;border-radius:14px;border:1px solid var(--border);background:#eef2f6}.attendance-proof-photo.no-photo{display:grid;place-items:center;color:var(--muted)}.attendance-detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:18px}.attendance-detail-grid>div{padding:12px;border:1px solid var(--border);border-radius:12px;display:flex;flex-direction:column;gap:3px}.attendance-detail-grid span{font-size:.78rem;color:var(--muted)}.proposal-equipment-builder{margin:18px 0;padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--surface-soft)}@media(max-width:900px){.weekly-schedule-grid{grid-template-columns:1fr 1fr}.attendance-proof-grid,.attendance-detail-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.weekly-schedule-grid,.attendance-proof-grid,.attendance-detail-grid{grid-template-columns:1fr}.attendance-proof-photo{height:240px}}


/* QPB CMP v3.4.8 Finance Command Center */
.finance-view-buttons{flex-wrap:wrap;justify-content:flex-end}
.finance-view{min-width:0;max-width:100%;overflow:hidden}
.finance-launch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.finance-launch-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:18px;border:1px solid var(--line,#d7e0e7);border-radius:12px;background:#fff;text-align:left;cursor:pointer;min-height:110px}
.finance-launch-card strong{font-size:1rem}.finance-launch-card span{color:var(--muted,#667085);line-height:1.4}
.finance-two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;max-width:100%;min-width:0}
.finance-two-col>div{min-width:0;max-width:100%;overflow:hidden}
.finance-two-col .table-wrap{max-width:100%;overflow-x:auto}
.finance-operations-panel,.finance-operations-panel table{max-width:100%}
@media(max-width:1000px){.finance-launch-grid,.finance-two-col{grid-template-columns:1fr}.finance-view-buttons{justify-content:flex-start}}

/* v3.4.11 attendance gate layout hotfix */
body.attendance-gated .shell{
  display:block!important;
  grid-template-columns:none!important;
  width:100%!important;
  min-height:100vh!important;
}
body.attendance-gated .sidebar,
body.attendance-gated main>header,
body.attendance-gated #systemAlertCenter,
body.attendance-gated .mobile-menu-btn{
  display:none!important;
}
body.attendance-gated main{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:24px!important;
  box-sizing:border-box!important;
}
body.attendance-gated main>.page{
  display:none!important;
}
body.attendance-gated #timeClockPage{
  display:block!important;
  width:min(1180px,100%)!important;
  max-width:1180px!important;
  margin:0 auto!important;
  padding:0!important;
  box-sizing:border-box!important;
}
@media(max-width:700px){
  body.attendance-gated main{padding:12px!important}
}

/* v3.5.0 RC3 Safe stabilization */
.attendance-name-link,.link-button,.attendance-inline-link{appearance:none!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important;color:#075985!important;text-decoration:underline!important;text-underline-offset:2px!important;font:inherit!important;font-weight:700!important;cursor:pointer!important;text-align:left!important}
.project-report .report-financial-cards{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important}
#logTaskModal select[data-no-smart-dropdown="1"],#equipmentRequestModal select[data-no-smart-dropdown="1"],#equipmentTransferModal select[data-no-smart-dropdown="1"]{display:block!important;width:100%!important;position:static!important;z-index:auto!important}


/* v3.5.0 RC4 — Project Reports readable desktop layout and stable wrapping. */
#projectReportView{width:100%;max-width:100%;min-width:0;overflow:visible}
#projectReportView .project-report-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important;width:100%!important;min-width:0!important}
#projectReportView .panel{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden}
#projectReportView .report-project-info{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
#projectReportView .report-info-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%;margin-bottom:4px!important}
#projectReportView .report-info-grid>div{min-width:0!important;padding:12px 14px!important}
#projectReportView .report-info-grid strong,#projectReportView .report-info-grid span,#projectReportView .report-title-card h2,#projectReportView .report-title-card p{white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
#projectReportView .report-title-card{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(180px,240px)!important;width:100%!important;box-sizing:border-box!important}
#projectReportView .report-cost-panel .table-wrap,#projectReportView .report-billing-panel .table-wrap,#projectReportView .report-phase-wrap{max-height:none!important;overflow-x:auto!important;overflow-y:visible!important;width:100%!important}
#projectReportView table{width:100%!important;max-width:100%!important;border-collapse:collapse!important;table-layout:fixed!important}
#projectReportView th,#projectReportView td{white-space:normal!important;overflow-wrap:anywhere!important;vertical-align:middle!important;box-sizing:border-box!important}
#projectReportView .report-cost-table th:nth-child(1),#projectReportView .report-cost-table td:nth-child(1){width:40%;text-align:left!important}
#projectReportView .report-cost-table th:nth-child(n+2),#projectReportView .report-cost-table td:nth-child(n+2){width:20%;text-align:right!important;white-space:nowrap!important;font-variant-numeric:tabular-nums}
#projectReportView .report-financial-cards{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;width:100%!important}
#projectReportView .report-financial-cards article{min-width:0!important;min-height:105px!important;justify-content:space-between!important}
#projectReportView .report-financial-cards strong,#projectReportView .report-billing-summary strong{display:block;text-align:right!important;white-space:nowrap!important;font-variant-numeric:tabular-nums!important;line-height:1.15!important}
#projectReportView .report-billing-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
#projectReportView .report-billing-summary>div{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;min-height:88px!important;border:1px solid #dbe5ec!important}
#projectReportView .report-payments-table th:nth-child(1){width:16%}
#projectReportView .report-payments-table th:nth-child(2){width:28%}
#projectReportView .report-payments-table th:nth-child(3){width:18%}
#projectReportView .report-payments-table th:nth-child(4){width:20%}
#projectReportView .report-payments-table th:nth-child(5){width:18%}
#projectReportView .report-billing-panel table td:last-child,#projectReportView .report-billing-panel table th:last-child{text-align:right!important;white-space:nowrap!important;font-variant-numeric:tabular-nums}
@media(max-width:1100px){#projectReportView .report-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#projectReportView .report-financial-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){#projectReportView .report-title-card{grid-template-columns:1fr!important}#projectReportView .report-info-grid,#projectReportView .report-financial-cards,#projectReportView .report-billing-summary{grid-template-columns:1fr!important}}

/* v3.5.0 RC5 — SOA photo editor and saved-attendance row states */
.soa-photo-editor{margin-top:18px;padding-top:14px;border-top:1px solid var(--border)}
.soa-photo-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:12px 0}
.soa-photo-item{display:grid;grid-template-columns:110px 1fr;gap:10px;border:1px solid var(--border);border-radius:10px;padding:9px;background:#f8fbfd}
.soa-photo-item img{width:110px;height:92px;object-fit:cover;border-radius:7px;background:#dce6ec}
.soa-photo-item>div{display:grid;gap:6px}.soa-photo-item input{min-width:0}
.attendance-row-locked [data-att]{background:#edf1f4;color:#455b69;cursor:not-allowed}.attendance-row-locked{background:#fbfcfd}
@media(max-width:700px){.soa-photo-item{grid-template-columns:1fr}.soa-photo-item img{width:100%;height:170px}}

/* v3.5.0 RC6 — manual Amount Due Now controls */
.soa-due-editor{margin-top:16px;padding:14px;border:1px solid #9bc9a4;border-radius:10px;background:#f5fbf4}
.soa-due-editor .settings-note{margin-top:10px}
.soa-due-editor input:disabled{background:#eef1f4;color:#84909b}

/* v3.5.0 RC8 — client-facing SOA description */
.soa-client-description{margin:14px 0;padding:14px;border:1px solid var(--border);border-radius:10px;background:#f8fbfd}.soa-client-description label{display:block;font-size:12px;font-weight:600;color:#506075}.soa-client-description textarea{width:100%;margin-top:5px;padding:10px;border:1px solid #ccd7e3;border-radius:7px;background:#fff;color:#172033;resize:vertical}.soa-client-description .muted{margin-top:7px}


/* QPB CMP v3.5.0 RC9: materials viewport, payslip paper fit, action deep links */
.materials-table-wrap{max-height:510px!important;overflow:auto!important;position:relative!important}
.materials-table-wrap .materials-table thead th{position:sticky!important;top:0!important;z-index:3!important;background:#f2f6fa!important}
.materials-table-wrap .materials-table tbody tr{height:46px}
.action-filter-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 14px;margin-bottom:12px;border:1px solid #e0b04d;border-left:5px solid #d18b00;border-radius:10px;background:#fff9e8;color:#5f4700}
.action-filter-banner>div{display:flex;flex-direction:column;gap:3px}.action-filter-banner.hidden{display:none!important}
@media(max-width:700px){.action-filter-banner{align-items:stretch;flex-direction:column}.action-filter-banner button{width:100%}}

@media print{
 @page{size:8.5in 5.5in landscape;margin:.18in!important}
 html,body{width:8.5in!important;height:5.5in!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#fff!important}
 body.printing-payslip{display:block!important}
 body.printing-payslip #payslipPreview{width:8.14in!important;max-width:8.14in!important;height:5.14in!important;max-height:5.14in!important;overflow:hidden!important;margin:0 auto!important;padding:0!important}
 body.printing-payslip #payslipPreview .qpb-slip{box-sizing:border-box!important;width:8.1in!important;max-width:8.1in!important;height:auto!important;max-height:5.1in!important;margin:0 auto!important;padding:.05in!important;overflow:hidden!important;page-break-inside:avoid!important;break-inside:avoid!important;font-size:7.2pt!important;line-height:1.02!important}
 body.printing-payslip .qpb-slip-header{min-height:.5in!important;padding:.035in .06in!important}
 body.printing-payslip .qpb-slip-logo{width:.44in!important;height:.44in!important}
 body.printing-payslip .qpb-slip-brand h2{font-size:14pt!important}
 body.printing-payslip .qpb-slip-brand p{font-size:5.2pt!important}
 body.printing-payslip .qpb-slip-release strong{font-size:9.5pt!important}
 body.printing-payslip .qpb-slip-top{grid-template-columns:minmax(0,1fr) 1.85in!important;gap:.05in!important}
 body.printing-payslip .qpb-slip-name-row h1{font-size:12.5pt!important;margin:0!important}
 body.printing-payslip .qpb-slip-name-row span,body.printing-payslip .qpb-slip-name-row small,body.printing-payslip .qpb-slip-meta span{font-size:5.2pt!important}
 body.printing-payslip .qpb-slip-name-row strong,body.printing-payslip .qpb-slip-meta strong{font-size:6.3pt!important}
 body.printing-payslip .qpb-slip-meta div{padding:.025in .035in!important}
 body.printing-payslip .qpb-slip-summary .rate-row{font-size:6pt!important;min-height:0!important;padding:.025in .04in!important}
 body.printing-payslip .earnings-card{font-size:5.5pt!important;padding:.025in .04in!important}
 body.printing-payslip .qpb-slip-net{font-size:8pt!important;padding:.035in .05in!important}
 body.printing-payslip .qpb-slip-net strong{font-size:10pt!important}
 body.printing-payslip .qpb-slip-system{font-size:4.3pt!important;margin:.02in 0!important}
 body.printing-payslip .qpb-slip-main-table{margin-top:.025in!important}
 body.printing-payslip .qpb-slip-main-table th{font-size:5pt!important;padding:.012in .02in!important}
 body.printing-payslip .qpb-slip-main-table td{font-size:4.9pt!important;padding:.01in .018in!important}
 body.printing-payslip .qpb-slip-notes{font-size:5pt!important;min-height:.12in!important;margin-top:.02in!important;padding:.02in .035in!important}
 body.printing-payslip .qpb-slip-details{gap:.025in!important;margin-top:.02in!important}
 body.printing-payslip .qpb-slip-details h3{font-size:5pt!important;padding:.018in .03in!important}
 body.printing-payslip .qpb-slip-details td,body.printing-payslip .qpb-slip-details th{font-size:4.7pt!important;padding:.01in .02in!important}
 body.printing-payslip .qpb-slip-footer{margin-top:.015in!important}body.printing-payslip .qpb-slip-footer em{font-size:4.5pt!important}
}

/* RC10 Transaction Ledger integrity */
.receipt-edit-list{margin-top:.75rem;padding:.75rem;border:1px solid var(--border,#dbe3ef);border-radius:.75rem;background:#f8fafc}
.receipt-edit-item{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.45rem 0;border-bottom:1px solid #e5e7eb}
.receipt-edit-item:last-child{border-bottom:0}
#transactionLedger td[data-col="history"] a{font-weight:700;text-decoration:underline;cursor:pointer}


/* RC14: grouped per-page permissions */
.permission-group{border:1px solid var(--line,#d9dee7);border-radius:12px;padding:12px;margin:0 0 12px;min-width:0}
.permission-group legend{font-weight:700;padding:0 6px}
.permission-group-actions{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.permission-group .permission-grid{margin:0}


/* RC15: strict sidebar permission enforcement. Must remain after all nav display rules. */
[hidden]{display:none!important}
.nav-submenu .nav.hidden,
.nav-submenu .nav[hidden],
.nav-group.hidden,
.nav-group[hidden]{display:none!important}

/* RC17 header profile, quick clock and compact report Gantt */
.topbar-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.time-clock-quick-btn{white-space:nowrap;background:#0c6070;color:#fff;border:0;border-radius:10px;padding:10px 14px;font-weight:800}.logged-employee-card{display:flex;align-items:center;gap:9px}.logged-employee-card img{width:42px;height:42px;border-radius:50%;object-fit:cover;border:2px solid #d8e6e9}.logged-employee-card div{display:flex;flex-direction:column;line-height:1.15}.logged-employee-card span{font-size:12px;color:#60757a}.gantt-list-table{table-layout:auto!important}.gantt-list-table th,.gantt-list-table td{padding:8px 10px!important;height:auto!important;min-height:0!important;vertical-align:middle!important;line-height:1.25!important}.gantt-list-table .gantt-name-col{min-width:220px;max-width:420px}.gantt-list-table th:nth-child(5),.gantt-list-table th:nth-child(6),.gantt-list-table td:nth-child(5),.gantt-list-table td:nth-child(6){white-space:nowrap;width:105px}.gantt-list-wrap{overflow:auto;max-height:68vh}.project-report-gantt table td,.project-report-gantt table th{padding:7px 9px!important;height:auto!important;min-height:0!important;vertical-align:middle!important}.project-report-gantt textarea,.project-report-gantt input,.project-report-gantt select{min-height:34px!important;padding:6px 8px!important}.profile-photo-preview{width:58px;height:58px;border-radius:50%;object-fit:cover}@media(max-width:760px){.topbar-actions{gap:6px}.time-clock-quick-btn{padding:8px;font-size:12px}.logged-employee-card img{width:34px;height:34px}.logged-employee-card span{display:none}}

/* QPB CMP v3.5.0 RC20 — employee photo confirmation and directory thumbnails */
.employee-photo-field{display:flex;flex-direction:column;gap:7px}.employee-photo-preview-wrap{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #d9e5e7;border-radius:10px;background:#f8fbfb}.employee-photo-preview{width:58px;height:58px;border-radius:50%;object-fit:cover;border:2px solid #d8e6e9;background:#fff}.employee-photo-status{font-size:12px;color:#587075;line-height:1.3}.employee-photo-name{display:inline-flex;align-items:center;gap:10px;border:0;background:transparent;padding:0;color:inherit;text-align:left;cursor:pointer;font:inherit}.employee-photo-name:hover span{text-decoration:underline}.employee-list-photo{width:38px;height:38px;border-radius:50%;object-fit:cover;border:1px solid #d4e1e3;background:#fff;flex:0 0 38px}

/* QPB CMP v3.5.0 RC22 — employee directory photo visibility */
.employee-photo-name.rc22-photo-name{display:inline-flex!important;align-items:center!important;gap:10px!important;min-width:0!important;border:0!important;background:transparent!important;padding:0!important;color:inherit!important;font:inherit!important;cursor:pointer!important;text-align:left!important}.employee-list-photo.rc22-employee-photo{display:block!important;width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;border-radius:50%!important;object-fit:cover!important;border:1px solid #d4e1e3!important;background:#fff!important}.employee-photo-name.rc22-photo-name span{display:block!important;white-space:normal!important}.employee-photo-name.rc22-photo-name:hover span{text-decoration:underline}

/* RC24 sales lifecycle */
#contractsPage small,#clientsPage small,#changeOrdersPage small,#ocularStagePage small{display:block;color:#65758a;margin-top:3px}.rc24-contract-btn{margin-left:6px}.page .table-wrap td .primary,.page .table-wrap td .secondary{margin:2px;white-space:nowrap}

/* v3.5.0 RC25 — project portfolio gallery and expanded report */
.project-photo-modal-card{max-width:1100px;max-height:90vh;overflow:auto}.project-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin-top:16px}.project-photo-card,.report-gallery-panel figure{margin:0;background:#fff;border:1px solid #d9e2ea;border-radius:12px;overflow:hidden}.project-photo-card img,.report-gallery-panel img{width:100%;height:180px;object-fit:cover;background:#edf2f6}.project-photo-card>div{padding:12px;display:grid;gap:8px}.project-photo-card input[type=text],.project-photo-card input:not([type]){width:100%}.report-title-card{display:flex;align-items:center;gap:18px}.report-cover-wrap{flex:0 0 150px}.report-cover-photo{width:150px;height:110px;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,.35);background:white}.report-workforce-panel,.report-gallery-panel{grid-column:1/-1}.report-gallery-panel figure img{height:220px}.report-gallery-panel figcaption{padding:10px}.public-badge{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;background:#dff6e8;color:#176b3a;font-size:11px;font-weight:700}@media(max-width:700px){.report-title-card{align-items:flex-start;flex-wrap:wrap}.report-cover-wrap{flex-basis:100%}.report-cover-photo{width:100%;height:180px}}

/* RC26: project photo tools inside Edit Project */
.project-photo-editor{border:1px solid var(--border,#d8dee8);border-radius:12px;padding:14px;background:var(--panel-soft,#f8fafc)}
.project-photo-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.project-photo-editor-head p{margin:4px 0 0}
.project-photo-editor-upload{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.project-photo-grid.compact{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));max-height:520px;overflow:auto;padding-right:4px}
.project-photo-card.compact-card img{height:130px;object-fit:cover}
@media(max-width:700px){.project-photo-editor-head{display:block}.project-photo-editor-head button{margin-top:10px;width:100%}.project-photo-editor-upload>*{width:100%}}


/* RC27 — printable Project Report Card */
.project-report-card{gap:16px!important}.report-cover-card{min-height:210px;justify-content:flex-start!important}.report-cover-wrap{width:250px;min-width:250px;height:170px;border-radius:14px;overflow:hidden;background:#fff}.report-cover-photo{width:100%;height:100%;object-fit:cover}.report-cover-copy{flex:1}.report-cover-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:12px;color:#e6f4ef;font-size:13px}.report-story-panel{border-left:6px solid #176b43}.report-section-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.report-kicker{font-size:10px;letter-spacing:1.7px;color:#2d7a5a;font-weight:900}.report-story-text{font-size:15px;line-height:1.7;color:#334155;margin:0}.report-kpi-strip{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:10px;margin-top:16px}.report-kpi-strip article{background:#f4f8f6;border:1px solid #d5e8de;border-radius:10px;padding:12px}.report-kpi-strip span{display:block;font-size:10px;text-transform:uppercase;color:#64748b;font-weight:800}.report-kpi-strip strong{display:block;margin-top:5px;font-size:18px;color:#124d39}.report-card-grid{grid-template-columns:1fr!important}.report-highlights-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.report-timeline{display:grid;gap:8px}.report-timeline article{display:grid;grid-template-columns:100px 1fr auto;gap:10px;align-items:start;padding:10px;border-left:3px solid #2d936c;background:#f8fafc}.report-timeline time{font-size:11px;color:#64748b;font-weight:700}.report-timeline p{margin:0;line-height:1.45}.report-photo-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.report-photo-item{margin:0;border:1px solid #dbe5ec;border-radius:12px;overflow:hidden;background:#fff}.report-photo-item.cover{grid-column:span 2;grid-row:span 2}.report-photo-item img{width:100%;height:210px;object-fit:cover;display:block}.report-photo-item.cover img{height:100%;min-height:430px}.report-photo-item figcaption{padding:9px 11px;display:flex;flex-direction:column;gap:2px}.report-photo-item figcaption span{font-size:12px;color:#64748b}.report-empty-photo{text-align:center;padding:30px;background:#f8fafc;border:1px dashed #b8c7d1;border-radius:12px}.report-empty-photo img{max-width:140px}.report-print-footer{display:none}.reportWorkforceBody small,.report-workforce-panel td small{display:block;color:#64748b}.report-expense-detail-panel .table-wrap{max-height:420px}.report-financial-cards-four{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:1100px){.report-kpi-strip{grid-template-columns:repeat(3,1fr)}.report-photo-gallery{grid-template-columns:repeat(2,1fr)}.report-financial-cards-four{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:700px){.report-cover-wrap{width:100%;min-width:0}.report-kpi-strip,.report-highlights-grid,.report-photo-gallery{grid-template-columns:1fr}.report-photo-item.cover{grid-column:auto;grid-row:auto}.report-photo-item.cover img{min-height:0;height:240px}}
@media print{
 @page{size:A4 portrait;margin:11mm 10mm 13mm}
 body *{visibility:hidden!important}#projectReportView,#projectReportView *{visibility:visible!important}
 #projectReportView{position:static!important;width:100%!important;display:block!important;font-size:8.5pt!important;color:#111!important;background:#fff!important}
 #projectReportView .report-title-card{min-height:0!important;padding:10px!important;border-radius:5px!important;break-inside:avoid}
 #projectReportView .report-cover-wrap{width:145px!important;min-width:145px!important;height:95px!important}
 #projectReportView .report-title-card h2{font-size:17pt!important;margin:2px 0!important}
 #projectReportView .panel{padding:9px!important;margin:7px 0!important;box-shadow:none!important;border:1px solid #b9c7d0!important;border-radius:5px!important;break-inside:auto}
 #projectReportView .report-kpi-strip{grid-template-columns:repeat(3,1fr)!important;gap:5px!important;margin-top:7px!important}
 #projectReportView .report-kpi-strip article{padding:6px!important}
 #projectReportView .report-kpi-strip strong{font-size:11pt!important}
 #projectReportView table{width:100%!important;font-size:7.3pt!important;border-collapse:collapse!important}
 #projectReportView th,#projectReportView td{padding:3px 4px!important;border:1px solid #aebdca!important;white-space:normal!important}
 #projectReportView thead{display:table-header-group}.report-phase-wrap,.table-wrap{overflow:visible!important;max-height:none!important}
 #projectReportView .report-photo-gallery{grid-template-columns:repeat(3,1fr)!important;gap:5px!important}
 #projectReportView .report-photo-item,#projectReportView .report-photo-item.cover{grid-column:auto!important;grid-row:auto!important;break-inside:avoid}
 #projectReportView .report-photo-item img,#projectReportView .report-photo-item.cover img{height:115px!important;min-height:0!important}
 #projectReportView .report-highlights-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}
 #projectReportView .report-timeline article{grid-template-columns:65px 1fr auto!important;padding:4px!important}
 #projectReportView .report-financial-cards-four{grid-template-columns:repeat(4,1fr)!important;gap:4px!important}
 #projectReportView .report-financial-cards article{padding:5px!important}
 #projectReportView .report-financial-cards strong{font-size:9pt!important}
 .report-print-footer{display:flex!important;visibility:visible!important;justify-content:space-between;border-top:1px solid #aaa;padding-top:4px;margin-top:8px;font-size:7pt;color:#555}
 .sidebar,header,.report-toolbar,.system-alert-center{display:none!important}
}


/* RC28 — Project report and gallery interface refinement */
.project-gallery-save-row{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;gap:12px;justify-content:flex-end;margin-top:14px;padding:12px;background:rgba(255,255,255,.96);border-top:1px solid #dbe5ec;backdrop-filter:blur(8px)}
.project-gallery-save-row small{color:#64748b;margin-right:auto}.project-photo-card .button-row{justify-content:flex-end}.project-photo-card input[type=radio]{accent-color:#176b43}
#projectReportView .report-cover-card{min-height:138px!important;padding:18px 20px!important;gap:16px!important}
#projectReportView .report-cover-wrap{width:170px!important;min-width:170px!important;height:112px!important;border-radius:10px!important}
#projectReportView .report-cover-copy h2{font-size:25px!important;line-height:1.12!important;margin:5px 0!important}
#projectReportView .report-cover-copy>span{font-size:9px!important;letter-spacing:1.35px!important}
#projectReportView .report-cover-meta{margin-top:7px!important;font-size:12px!important}
#projectReportView .report-status-box{min-width:145px!important;padding:12px!important}
#projectReportView .report-status-box strong{font-size:16px!important}
#projectReportView .report-phase-wrap{max-height:300px!important;overflow:auto!important}
#projectReportView .report-phase-table{width:100%!important;table-layout:fixed!important;font-size:12px!important}
#projectReportView .report-phase-table th,#projectReportView .report-phase-table td{height:auto!important;min-height:0!important;padding:6px 8px!important;line-height:1.25!important;vertical-align:middle!important;white-space:normal!important}
#projectReportView .report-phase-table th:nth-child(1),#projectReportView .report-phase-table td:nth-child(1){width:42%!important}
#projectReportView .report-phase-table th:nth-child(2),#projectReportView .report-phase-table td:nth-child(2),#projectReportView .report-phase-table th:nth-child(3),#projectReportView .report-phase-table td:nth-child(3){width:16%!important;white-space:nowrap!important}
#projectReportView .report-phase-table th:nth-child(4),#projectReportView .report-phase-table td:nth-child(4){width:10%!important;text-align:center}
#projectReportView .report-phase-table th:nth-child(5),#projectReportView .report-phase-table td:nth-child(5){width:16%!important}
.report-daily-photo-panel{grid-column:1/-1}.report-daily-photo-timeline{display:grid;gap:20px}.daily-photo-date-group{break-inside:avoid;border-top:1px solid #dbe5ec;padding-top:14px}.daily-photo-date-group:first-child{border-top:0;padding-top:0}.daily-photo-date-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.daily-photo-date-head h4{margin:0;color:#174f3b;font-size:16px}.daily-photo-date-head span{font-size:11px;font-weight:800;color:#64748b;background:#edf4f0;border-radius:999px;padding:4px 9px}.daily-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.daily-photo-grid figure{margin:0;border:1px solid #dbe5ec;border-radius:10px;overflow:hidden;background:#fff}.daily-photo-grid img{width:100%;height:165px;object-fit:cover;display:block}.daily-photo-grid figcaption{padding:8px 9px;font-size:11px;color:#475569;line-height:1.35}
@media(max-width:900px){#projectReportView .report-cover-card{align-items:flex-start!important;flex-wrap:wrap}.daily-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#projectReportView .report-cover-wrap{width:100%!important;height:170px!important}.daily-photo-grid{grid-template-columns:1fr}.project-gallery-save-row{align-items:stretch;flex-direction:column}.project-gallery-save-row small{margin:0}}
@media print{#projectReportView .report-cover-card{min-height:105px!important;padding:10mm 8mm!important}.daily-photo-grid{grid-template-columns:repeat(3,1fr)!important}.daily-photo-grid img{height:42mm!important}.daily-photo-date-group{page-break-inside:avoid}.report-daily-photo-panel{page-break-before:auto}}


/* RC29 — compact Facebook-style project cover and photo controls */
#projectReportView.project-report-card{gap:12px!important}
#projectReportView .report-cover-card{
 position:relative!important;display:block!important;min-height:0!important;height:auto!important;
 aspect-ratio:2.63/1;max-height:300px;overflow:hidden;padding:0!important;border-radius:16px!important;
 background:linear-gradient(135deg,#11384b,#176b43)!important;
}
#projectReportView .report-cover-wrap{position:absolute;inset:0;width:100%!important;min-width:0!important;height:100%!important;border-radius:0!important;background:#17485b!important}
#projectReportView .report-cover-photo{width:100%;height:100%;object-fit:contain;background:#fff;display:block}
#projectReportView .report-cover-wrap.has-project-photo .report-cover-photo{object-fit:cover;background:transparent}
#projectReportView .report-cover-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,31,44,.86) 0%,rgba(5,31,44,.54) 52%,rgba(5,31,44,.72) 100%)}
#projectReportView .report-cover-copy{position:absolute;left:28px;right:300px;bottom:24px;z-index:2;color:#fff;min-width:0}
#projectReportView .report-cover-copy>span{font-size:9px;letter-spacing:1.7px;font-weight:800;color:#a7f3d0}
#projectReportView .report-cover-card h2{font-size:clamp(22px,3vw,38px)!important;line-height:1.02;margin:5px 0 6px!important;max-width:850px}
#projectReportView .report-cover-copy>p{font-size:14px;line-height:1.35;margin:0;color:#f1f5f9}
#projectReportView .report-cover-meta{margin-top:8px!important;gap:5px 16px!important;font-size:11px!important;color:#e2e8f0!important}
#projectReportView .report-status-box{position:absolute;right:24px;bottom:24px;z-index:2;width:245px;min-width:0!important;border-left:1px solid rgba(255,255,255,.42)!important;padding:0 0 0 18px!important;color:#fff}
#projectReportView .report-status-box small{font-size:9px;letter-spacing:1.2px}
#projectReportView .report-status-box strong{font-size:17px!important;margin:3px 0!important}
#projectReportView .report-status-box span{font-size:10px;line-height:1.35}
#projectReportView.gallery-hidden .report-gallery-panel{display:none!important}
#projectReportView.daily-photos-hidden .report-daily-photo-panel{display:none!important}
.report-toolbar #toggleReportPhotosBtn[aria-pressed="true"]{background:#12354d;color:#fff;border-color:#12354d}
@media(max-width:900px){
 #projectReportView .report-cover-card{aspect-ratio:auto;min-height:250px}
 #projectReportView .report-cover-copy{left:20px;right:20px;bottom:78px}
 #projectReportView .report-status-box{left:20px;right:20px;bottom:15px;width:auto;border-left:0!important;border-top:1px solid rgba(255,255,255,.35)!important;padding:8px 0 0!important;display:grid;grid-template-columns:auto 1fr;column-gap:12px}
 #projectReportView .report-status-box span{grid-column:2}
}
@media(max-width:600px){
 #projectReportView .report-cover-card{min-height:285px;border-radius:12px!important}
 #projectReportView .report-cover-copy{left:16px;right:16px;bottom:95px}
 #projectReportView .report-cover-card h2{font-size:24px!important}
 #projectReportView .report-cover-meta{display:grid!important}
 #projectReportView .report-status-box{left:16px;right:16px}
}
@media print{
 #projectReportView .report-cover-card{aspect-ratio:2.63/1!important;max-height:205px!important;min-height:0!important;padding:0!important;border-radius:5px!important;overflow:hidden!important}
 #projectReportView .report-cover-wrap{width:100%!important;min-width:0!important;height:100%!important}
 #projectReportView .report-cover-copy{left:14px!important;right:185px!important;bottom:12px!important}
 #projectReportView .report-cover-card h2{font-size:16pt!important;margin:2px 0!important}
 #projectReportView .report-cover-copy>p{font-size:8pt!important}
 #projectReportView .report-cover-meta{font-size:7pt!important;margin-top:4px!important}
 #projectReportView .report-status-box{right:12px!important;bottom:12px!important;width:160px!important;padding-left:10px!important}
 #projectReportView.photos-hidden .report-cover-card{min-height:85px!important;aspect-ratio:auto!important}
}

/* RC30 — Project Report multi-page print flow */
@media print {
  @page { size: A4 portrait; margin: 10mm 9mm 12mm; }

  html, body {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  .shell,
  main,
  .page,
  #projectsPage,
  #projectReportView {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  .shell {
    grid-template-columns: 1fr !important;
  }

  main {
    padding: 0 !important;
    margin: 0 !important;
  }

  body * {
    visibility: hidden !important;
  }

  #projectReportView,
  #projectReportView * {
    visibility: visible !important;
  }

  #projectReportView {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 8.6pt !important;
    line-height: 1.35 !important;
    color: #111 !important;
    background: #fff !important;
  }

  .sidebar,
  main > header,
  .report-toolbar,
  .system-alert-center,
  #systemAlertCenter,
  .project-report-controls,
  .project-report-actions,
  .no-print {
    display: none !important;
  }

  #projectReportView .project-report-grid,
  #projectReportView .report-card-grid,
  #projectReportView .report-highlights-grid {
    display: block !important;
    width: 100% !important;
  }

  #projectReportView .report-cover-card {
    page-break-after: avoid !important;
    break-after: avoid-page !important;
    page-break-inside: avoid !important;
    break-inside: avoid-page !important;
    max-height: 58mm !important;
  }

  #projectReportView .panel {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 0 6mm !important;
    padding: 4mm !important;
    border: 1px solid #b9c7d0 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  #projectReportView .report-story-panel,
  #projectReportView .report-summary-panel,
  #projectReportView .report-profile-panel,
  #projectReportView .report-financial-summary,
  #projectReportView .report-contract-panel {
    page-break-inside: avoid !important;
    break-inside: avoid-page !important;
  }

  #projectReportView .table-wrap,
  #projectReportView .report-phase-wrap,
  #projectReportView .report-expense-detail-panel .table-wrap {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 0 !important;
  }

  #projectReportView table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  #projectReportView thead {
    display: table-header-group !important;
  }

  #projectReportView tfoot {
    display: table-footer-group !important;
  }

  #projectReportView tr {
    page-break-inside: avoid !important;
    break-inside: avoid-page !important;
  }

  #projectReportView th,
  #projectReportView td {
    padding: 2.4mm 2mm !important;
    font-size: 7.6pt !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    vertical-align: top !important;
  }

  #projectReportView .report-section-heading,
  #projectReportView h2,
  #projectReportView h3,
  #projectReportView h4 {
    page-break-after: avoid !important;
    break-after: avoid-page !important;
  }

  #projectReportView .report-kpi-strip {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5mm !important;
    page-break-inside: avoid !important;
    break-inside: avoid-page !important;
  }

  #projectReportView .report-financial-cards,
  #projectReportView .report-financial-cards-four {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5mm !important;
    page-break-inside: avoid !important;
    break-inside: avoid-page !important;
  }

  #projectReportView .report-photo-gallery,
  #projectReportView .daily-photo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3mm !important;
  }

  #projectReportView .report-photo-item,
  #projectReportView .daily-photo-grid figure,
  #projectReportView .daily-photo-date-group {
    page-break-inside: avoid !important;
    break-inside: avoid-page !important;
  }

  #projectReportView .report-photo-item img,
  #projectReportView .report-photo-item.cover img,
  #projectReportView .daily-photo-grid img {
    height: 55mm !important;
    min-height: 0 !important;
    object-fit: cover !important;
  }

  #projectReportView .report-daily-photo-panel {
    page-break-before: always !important;
    break-before: page !important;
  }

  #projectReportView .report-print-footer {
    display: flex !important;
    visibility: visible !important;
    position: static !important;
    page-break-inside: avoid !important;
    break-inside: avoid-page !important;
    margin-top: 5mm !important;
  }
}

/* RC31 — Time Clock page isolation and compact Project Report print refinements */
@media print {
  #projectReportView .report-cover-copy {
    top: auto !important;
    bottom: 8mm !important;
    left: 5mm !important;
    right: 54mm !important;
    max-width: calc(100% - 59mm) !important;
    overflow: visible !important;
  }

  #projectReportView .report-cover-card h2,
  #projectReportView #reportProjectTitle {
    display: block !important;
    max-width: 100% !important;
    margin: 1mm 0 !important;
    font-size: 12.5pt !important;
    line-height: 1.12 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: auto !important;
  }

  #projectReportView .report-cover-copy > p {
    font-size: 7.3pt !important;
    line-height: 1.2 !important;
    margin: 1mm 0 0 !important;
  }

  #projectReportView .report-cover-meta {
    display: grid !important;
    gap: .6mm !important;
    margin-top: 1.2mm !important;
    font-size: 6.3pt !important;
    line-height: 1.18 !important;
  }

  #projectReportView .report-status-box {
    right: 4mm !important;
    bottom: 6mm !important;
    width: 45mm !important;
    padding-left: 3mm !important;
  }

  #projectReportView .report-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5mm !important;
    margin-top: 2mm !important;
  }

  #projectReportView .report-kpi-strip article,
  #projectReportView .report-financial-cards article,
  #projectReportView .report-financial-cards-four article,
  #projectReportView .report-billing-summary > div {
    min-height: 0 !important;
    height: auto !important;
    padding: 1.4mm 1.8mm !important;
    border-radius: 2mm !important;
  }

  #projectReportView .report-kpi-strip span,
  #projectReportView .report-financial-cards span,
  #projectReportView .report-financial-cards-four span,
  #projectReportView .report-billing-summary span {
    font-size: 5.4pt !important;
    line-height: 1.05 !important;
    margin: 0 !important;
  }

  #projectReportView .report-kpi-strip strong,
  #projectReportView .report-financial-cards strong,
  #projectReportView .report-financial-cards-four strong,
  #projectReportView .report-billing-summary strong {
    margin-top: .7mm !important;
    font-size: 8pt !important;
    line-height: 1.05 !important;
  }
}

/* RC32 — collision-proof Project Report print banner */
@media print {
  #projectReportView .report-cover-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 42mm !important;
    grid-template-rows: 1fr !important;
    align-items: end !important;
    column-gap: 5mm !important;
    height: auto !important;
    min-height: 48mm !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: 7mm 6mm 5mm !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #projectReportView .report-cover-wrap,
  #projectReportView .report-cover-shade {
    position: absolute !important;
    inset: 0 !important;
  }

  #projectReportView .report-cover-copy {
    position: relative !important;
    inset: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: end !important;
    z-index: 2 !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  #projectReportView .report-status-box {
    position: relative !important;
    inset: auto !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end !important;
    z-index: 2 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 0 0 4mm !important;
    box-sizing: border-box !important;
  }

  #projectReportView .report-cover-copy > span {
    display: block !important;
    font-size: 6.5pt !important;
    line-height: 1.2 !important;
    letter-spacing: .8pt !important;
    margin: 0 0 1.5mm !important;
  }

  #projectReportView .report-cover-card h2 {
    display: block !important;
    max-width: none !important;
    margin: 0 0 1.5mm !important;
    font-size: 13pt !important;
    line-height: 1.12 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  #projectReportView .report-cover-copy > p {
    margin: 0 0 1.5mm !important;
    font-size: 7.5pt !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  #projectReportView .report-cover-meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .8mm !important;
    margin: 0 !important;
    font-size: 6.5pt !important;
    line-height: 1.18 !important;
  }

  #projectReportView .report-cover-meta span,
  #projectReportView .report-status-box span,
  #projectReportView .report-status-box strong {
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  #projectReportView .report-status-box small {
    font-size: 6pt !important;
    line-height: 1.1 !important;
  }

  #projectReportView .report-status-box strong {
    display: block !important;
    margin: 1mm 0 !important;
    font-size: 10pt !important;
    line-height: 1.15 !important;
  }

  #projectReportView .report-status-box span {
    display: block !important;
    font-size: 6.5pt !important;
    line-height: 1.2 !important;
  }

  #projectReportView.photos-hidden .report-cover-card {
    min-height: 34mm !important;
    padding-top: 5mm !important;
  }
}

/* RC33 photo controls and resilient daily-photo rendering */
#projectReportView.gallery-hidden .report-gallery-panel{display:none!important}
#projectReportView.daily-photos-hidden .report-daily-photo-panel{display:none!important}
.daily-photo-grid figure.image-load-error{min-height:120px;display:flex;align-items:center;justify-content:center;background:#f8fafc;border:1px dashed #cbd5e1}
.daily-photo-grid figure.image-load-error::before{content:"Photo preview unavailable";font-size:12px;color:#64748b;text-align:center;padding:12px}
@media print{#projectReportView.gallery-hidden .report-gallery-panel,#projectReportView.daily-photos-hidden .report-daily-photo-panel{display:none!important}}

/* RC34 — reliable cover alignment and readable status column */
#projectReportView .report-cover-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(210px,28%)!important;
  align-items:start!important;
  column-gap:28px!important;
  padding:24px 28px!important;
  box-sizing:border-box!important;
}
#projectReportView .report-cover-wrap{position:absolute!important;inset:0!important;z-index:0!important}
#projectReportView .report-cover-copy,
#projectReportView .report-status-box{
  position:relative!important;
  inset:auto!important;
  z-index:2!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
}
#projectReportView .report-cover-copy{
  align-self:start!important;
  text-align:left!important;
}
#projectReportView .report-status-box{
  align-self:start!important;
  justify-self:stretch!important;
  text-align:right!important;
  border-left:1px solid rgba(255,255,255,.42)!important;
  padding:0 8px 0 22px!important;
}
#projectReportView .report-status-box small,
#projectReportView .report-status-box strong,
#projectReportView .report-status-box span{
  display:block!important;
  width:100%!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  white-space:normal!important;
}
#projectReportView .report-cover-card h2{
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:900px){
  #projectReportView .report-cover-card{grid-template-columns:1fr!important;row-gap:14px!important;min-height:270px!important;padding:20px!important}
  #projectReportView .report-status-box{text-align:left!important;border-left:0!important;border-top:1px solid rgba(255,255,255,.35)!important;padding:10px 0 0!important}
}
@media print{
  #projectReportView .report-cover-card{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 44mm!important;
    align-items:start!important;
    column-gap:5mm!important;
    padding:5mm 6mm!important;
    min-height:42mm!important;
    height:auto!important;
    max-height:none!important;
  }
  #projectReportView .report-cover-copy,
  #projectReportView .report-status-box{position:relative!important;inset:auto!important;align-self:start!important}
  #projectReportView .report-cover-copy{text-align:left!important}
  #projectReportView .report-status-box{
    text-align:right!important;
    width:auto!important;
    padding:0 1.5mm 0 4mm!important;
    border-left:.25mm solid rgba(255,255,255,.55)!important;
  }
  #projectReportView .report-status-box small{font-size:5.8pt!important;line-height:1.15!important}
  #projectReportView .report-status-box strong{font-size:8.5pt!important;line-height:1.15!important;margin:1mm 0!important}
  #projectReportView .report-status-box span{font-size:6.4pt!important;line-height:1.25!important}
}


/* RC35: mobile top bar and print-photo reliability */
@media (max-width:760px){
  main>header{display:grid!important;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"menu title" "actions actions";align-items:start!important;gap:10px 12px;padding:14px 0!important}
  main>header .mobile-menu-btn{grid-area:menu;align-self:center}
  main>header>div:nth-child(2){grid-area:title;min-width:0}
  main>header #pageTitle{font-size:clamp(24px,7vw,34px)!important;line-height:1.08!important;overflow-wrap:anywhere;margin:0!important}
  main>header #pageSubtitle{font-size:13px!important;line-height:1.35!important;margin-top:4px!important}
  .topbar-actions{grid-area:actions;width:100%;display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px!important;align-items:center!important;margin:0!important}
  .time-clock-quick-btn{justify-self:start;width:auto;max-width:100%;font-size:13px!important;line-height:1.15!important;padding:10px 12px!important;white-space:normal!important}
  .logged-employee-card{justify-self:end;min-width:0;max-width:58vw;align-items:center!important}
  .logged-employee-card img{width:38px!important;height:38px!important;flex:0 0 38px}
  .logged-employee-card div{min-width:0}
  .logged-employee-card strong{font-size:15px!important;line-height:1.08!important;white-space:normal!important;overflow-wrap:anywhere;text-align:left}
  .logged-employee-card span{display:block!important;font-size:11px!important}
  .logged-employee-card .logout-link{font-size:10px!important}
}
@media (max-width:420px){
  .topbar-actions{grid-template-columns:1fr!important}
  .time-clock-quick-btn{width:100%!important;text-align:center}
  .logged-employee-card{justify-self:start;max-width:100%!important}
}
@media print{
  #projectReportView img{visibility:visible!important;display:block!important;opacity:1!important;filter:none!important}
  #projectReportView .daily-photo-grid img,#projectReportView .report-photo-gallery img{object-fit:cover!important;break-inside:avoid!important;page-break-inside:avoid!important}
  #projectReportView .image-load-error{display:none!important}
}

/* RC36 — compact first printed page and balanced Project Report banner */
@media print {
  /* Hidden CMP pages must not reserve printable space. */
  body:not(.printing-payslip):not(.printing-gantt):not(.printing-payroll-summary) .page {
    display: none !important;
  }
  body:not(.printing-payslip):not(.printing-gantt):not(.printing-payroll-summary) #reportsPage {
    display: block !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }
  body:not(.printing-payslip):not(.printing-gantt):not(.printing-payroll-summary) #reportsPage > *:not(#projectReportView) {
    display: none !important;
  }
  #projectReportView {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  #projectReportView .report-cover-card {
    grid-template-columns: minmax(0, 1fr) 56mm !important;
    column-gap: 6mm !important;
    align-items: start !important;
    min-height: 39mm !important;
    max-height: 49mm !important;
    margin: 0 0 3mm !important;
    padding: 4.5mm 6mm !important;
  }
  #projectReportView .report-cover-copy {
    align-self: start !important;
    padding-top: 0 !important;
  }
  #projectReportView .report-status-box {
    align-self: start !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 2mm 0 4.5mm !important;
    text-align: right !important;
    box-sizing: border-box !important;
  }
  #projectReportView .report-status-box small {
    font-size: 5.5pt !important;
    line-height: 1.15 !important;
    letter-spacing: .35pt !important;
  }
  #projectReportView .report-status-box strong {
    font-size: 8.2pt !important;
    line-height: 1.15 !important;
    margin: .8mm 0 1mm !important;
  }
  #projectReportView .report-status-box span {
    font-size: 6.2pt !important;
    line-height: 1.3 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}

/* RC37 — remove reserved application chrome from Project Report printing */
@media print {
  @page { size: A4 portrait; margin: 5mm 8mm 10mm !important; }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
  }

  body > header,
  body > .topbar,
  body > .sidebar,
  .app-shell > header,
  .app-shell > .topbar,
  .app-shell > .sidebar,
  .app-main > header,
  main > header,
  .mobile-nav-toggle,
  .mobile-menu-btn,
  #systemAlertCenter,
  .system-alert-center {
    display: none !important;
    position: static !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .app-shell,
  .app-main,
  main,
  .main-content,
  .content,
  .page-container {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    inset: auto !important;
    transform: none !important;
  }

  #reportsPage,
  #projectReportView,
  #projectReportView.project-report,
  #projectReportView.project-report-card {
    position: static !important;
    inset: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    transform: none !important;
  }

  #projectReportView .report-cover-card {
    margin-top: 0 !important;
    break-before: auto !important;
    page-break-before: auto !important;
  }
}
/* v4.0 Website Inquiries */
#websiteInquiriesPage td small{display:block;color:#64748b;margin-top:4px;line-height:1.35}.inquiry-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}.inquiry-detail-grid article{padding:15px;border:1px solid #dbe5ec;border-radius:14px;background:#f8fbfc}.inquiry-detail-grid article.wide{grid-column:1/-1}.inquiry-detail-grid span{display:block;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#607686;margin-bottom:5px}.inquiry-detail-grid strong{font-size:1.05rem}.inquiry-detail-grid p{margin:5px 0 0;white-space:pre-wrap;color:#435866}@media(max-width:720px){.inquiry-detail-grid{grid-template-columns:1fr}.inquiry-detail-grid article.wide{grid-column:auto}}

/* v4.0.0 RC5 — Website Inquiries workspace */
.website-inquiries-page{padding-bottom:40px}.website-inquiry-hero{margin-bottom:16px;align-items:center}.website-inquiry-hero small{display:block;margin-top:8px;color:#d7eef5}.website-inquiry-cards{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:16px}.website-inquiry-cards article{min-height:96px}.website-inquiry-register{padding:20px}.website-inquiry-toolbar{display:flex;gap:12px;align-items:end;justify-content:flex-start;margin:0 0 16px}.website-inquiry-toolbar label{min-width:240px}.website-inquiry-table-wrap{max-height:560px;overflow:auto;border:1px solid #dbe5ec;border-radius:14px}.website-inquiry-table{min-width:1050px}.website-inquiry-table thead th{position:sticky;top:0;z-index:2;background:#f4f8fb}.website-inquiry-table td{vertical-align:top;padding-top:15px;padding-bottom:15px}.website-inquiry-table td small{display:block;color:#64748b;margin-top:5px;line-height:1.35}.website-inquiry-editor{margin-top:18px;scroll-margin-top:90px}.inquiry-actions{display:flex;gap:8px;flex-wrap:wrap;min-width:180px}.inquiry-status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#eef3f7;color:#24384a;font-weight:800;font-size:.75rem}.inquiry-status-new{background:#fff1c9;color:#795100}.inquiry-status-contacted{background:#e8f3ff;color:#075985}.inquiry-status-qualified{background:#dcfce7;color:#166534}.inquiry-status-converted-to-lead{background:#ede9fe;color:#5b21b6}.inquiry-status-closed-not-proceeding{background:#fee2e2;color:#991b1b}.inquiry-loading,.inquiry-empty{text-align:center!important;padding:34px!important;color:#607686}.website-inquiry-editor .panel-title{margin-bottom:16px}@media(max-width:1100px){.website-inquiry-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:720px){.website-inquiry-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.website-inquiry-register{padding:14px}.website-inquiry-toolbar{align-items:stretch;flex-direction:column}.website-inquiry-toolbar label{min-width:0}.website-inquiry-hero{align-items:flex-start}.website-inquiry-hero .primary{width:100%;margin-top:12px}}
