.closeout-banner{padding:22px 24px;background:#edf7f0;border:1px solid #cce4d4;border-radius:12px;margin-bottom:24px;color:#285b3b}.closeout-banner>div{display:flex;align-items:flex-start;gap:12px}.closeout-banner p{margin-top:6px;font-size:.86rem;line-height:1.6;color:#497457}.closeout-banner dl{display:grid;grid-template-columns:1fr 2fr;gap:20px;margin:20px 0 0;padding-top:17px;border-top:1px solid #cce4d4}.closeout-banner dt{font-size:.77rem;margin-bottom:6px}.closeout-banner dd{font-size:.9rem;margin:0;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.project-history{margin-top:22px}.history-item{padding:16px 0;border-bottom:1px solid var(--line)}.history-item:first-child{padding-top:0}.history-item:last-child{border-bottom:0;padding-bottom:0}.history-item>div{display:flex;justify-content:space-between;gap:18px}.history-item strong{font-size:.88rem}.history-item small{color:var(--muted);font-size:.78rem}.history-item p{margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere}.review-checks{gap:0}.review-check{display:flex;align-items:flex-start;gap:12px;padding:12px 0;cursor:pointer;font-size:.88rem!important;font-weight:400!important;line-height:1.6}.review-check input{width:21px;height:21px;min-height:21px;flex-shrink:0;margin:3px 0 0;accent-color:var(--blue)}.closeout-review{gap:15px;padding:18px;background:var(--bg);border:1px solid var(--line);border-radius:9px}.form-error{padding:13px 16px;background:#fff0f0;color:#a43c3c;border:1px solid #eac9c9;border-radius:8px;margin-bottom:18px;font-size:.86rem;line-height:1.6}.form-error[hidden]{display:none}.field.full.review-checks{display:flex;flex-direction:column}.note.field.full{display:block;margin:0}.button:disabled{opacity:.6}.heading-actions{flex-wrap:wrap}.detail-pairs dd,.record-card p{overflow-wrap:anywhere;white-space:pre-wrap}.project-history .panel-header{flex-wrap:wrap}@media(max-width:760px){.closeout-banner{padding:19px}.closeout-banner dl{grid-template-columns:1fr;gap:16px}.history-item>div{flex-direction:column;gap:5px}.project-history .panel-header .button{width:100%}.closeout-review .summary-line{font-size:.81rem}.project-title-line{flex-wrap:wrap}.project-heading .heading-actions .button{flex:1 1 140px}.filter-tabs .filter-tab{font-size:.77rem;padding:8px}.detail-pairs{grid-template-columns:1fr 1fr}}

.vendor-contact-details{margin-top:16px;display:flex;flex-direction:column;gap:10px}.contact-link{color:var(--blue);font-size:.9rem;overflow-wrap:anywhere;min-height:32px;display:flex;align-items:center}.contact-link:hover{text-decoration:underline}.contact-label{font-size:.75rem;color:var(--muted)}.vendor-shortcuts{grid-template-columns:1fr 1fr}@media(max-width:760px){.vendor-shortcuts{grid-template-columns:1fr}.contact-link{min-height:44px}}

.button.danger{color:#b32626;border-color:#e7bcbc}.estimate-editor{max-width:960px}.estimate-editor textarea{min-height:140px}.bottom-nav{grid-template-columns:repeat(5,1fr)}@media(max-width:700px){.bottom-link{font-size:10px;min-width:0}.heading-actions{flex-wrap:wrap}.estimate-editor .panel-body{padding:20px}.material-bottom{flex-wrap:wrap;gap:8px}}

.estimate-building{margin-top:28px}.estimate-building .panel-header{padding:16px 0}.estimate-input-line{background:#f5f7fa;border:1px solid var(--line);border-radius:12px;padding:18px;margin:12px 0}.estimate-line-footer{display:flex;justify-content:space-between;align-items:center;margin-top:14px}.estimate-summary{margin:24px 0;padding:18px;border:1px solid var(--line);border-radius:12px}.estimate-summary .demo-form-note{margin-bottom:0}@media(max-width:700px){.estimate-input-line .form-grid{grid-template-columns:1fr}.estimate-building .panel-header{gap:10px}.estimate-input-line{padding:14px}}

.estimate-status-control{display:flex;align-items:center;gap:10px;font-size:.85rem;color:var(--muted)}.estimate-status-control select{min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:9px;background:#f5f7fa;color:var(--ink);font-weight:600}
/* Estimate entry: shared fields, desktop rows and mobile cards. */
@media(min-width:900px){
 .estimate-editor{max-width:none}
 .estimate-input-line{background:white;border-radius:0;border-width:0 0 1px;margin:0;padding:12px 10px;display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:12px;align-items:end}
 .estimate-input-line .form-grid{display:grid;gap:10px;grid-template-columns:minmax(180px,2fr) minmax(120px,1.2fr) 80px 110px 90px}
 .estimate-input-line[data-estimate-line="labour"] .form-grid{grid-template-columns:minmax(240px,1fr) 120px 150px}
 .estimate-input-line .field{min-width:0}
 .estimate-input-line .field label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .estimate-input-line input{width:100%;min-width:0;min-height:42px;background:#fff}
 .estimate-input-line input[type="number"]{text-align:right}
 .estimate-line-footer{margin:0;min-height:42px;gap:8px;justify-content:space-between}
 .estimate-line-footer strong{font-size:.85rem;white-space:nowrap}
 .estimate-line-footer .button{font-size:.72rem;padding:7px;min-width:0}
 [data-estimate-lines]{border:1px solid var(--line);border-radius:10px;overflow-x:auto;margin-bottom:12px}
 [data-estimate-lines]:empty{border:0}
 .estimate-column-head{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:12px;padding:12px 10px;background:#edf2f8;color:var(--muted);font-size:.74rem;font-weight:700;border-bottom:1px solid var(--line);min-width:820px}
 .estimate-column-head .estimate-columns{display:grid;grid-template-columns:minmax(180px,2fr) minmax(120px,1.2fr) 80px 110px 90px;gap:10px}
 .estimate-column-head[data-kind="labour"] .estimate-columns{grid-template-columns:minmax(240px,1fr) 120px 150px}
 .estimate-input-line{min-width:820px}
 .estimate-column-head span:last-child{text-align:right}
}
@media(max-width:899px){.estimate-column-head{display:none}}

.project-material-add{margin-top:18px;margin-bottom:24px}@media(max-width:700px){.project-material-add .button{width:100%;justify-content:center;min-height:48px}}
.project-material-editor{margin-top:12px}.project-material-row{padding:18px;border-bottom:1px solid var(--line)}.project-material-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.project-material-fields .field{min-width:0}.project-material-fields input,.project-material-fields select{width:100%;min-width:0;min-height:44px}.project-material-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:14px}.project-material-column-head{display:none}@media(min-width:900px){.project-material-scroll{overflow-x:auto}.project-material-fields{grid-template-columns:minmax(180px,2fr) 130px 140px 150px 85px 75px 75px 110px 115px;gap:8px}.project-material-column-head,.project-material-row{min-width:1380px;display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:12px;padding:12px;align-items:center}.project-material-column-head{background:#edf2f8;color:var(--muted);font-size:.74rem;font-weight:700}.project-material-row .field label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.project-material-row-actions{margin:0;font-size:.8rem}.project-material-row .form-error{grid-column:1/-1}}@media(max-width:899px){.project-material-row{margin:12px;background:#f5f7fa;border:1px solid var(--line);border-radius:12px}.project-material-fields{grid-template-columns:1fr}.project-material-editor .panel-header{flex-wrap:wrap;gap:8px}}
/* Match desktop estimate entry to the project material sheet. */
@media(min-width:900px){
 .estimate-column-head,.estimate-input-line{padding:12px;gap:12px;grid-template-columns:minmax(0,1fr) 200px;align-items:center;min-width:1050px}
 .estimate-column-head .estimate-columns,.estimate-input-line .form-grid{grid-template-columns:minmax(180px,2fr) 150px 100px 150px 120px;gap:8px}
 .estimate-column-head[data-kind="labour"],.estimate-input-line[data-estimate-line="labour"]{min-width:850px}
 .estimate-column-head[data-kind="labour"] .estimate-columns,.estimate-input-line[data-estimate-line="labour"] .form-grid{grid-template-columns:minmax(240px,2fr) 150px 180px}
 .estimate-input-line input{min-height:44px}
 .estimate-input-line input[type="number"]{text-align:left}
 .estimate-line-footer{justify-content:flex-end;gap:10px;min-height:44px;font-size:.8rem}
 .estimate-line-footer .button{font-size:.8rem;padding:8px 12px}
 [data-estimate-lines]{border-radius:0;border-width:0;margin-bottom:18px}
 .estimate-building{border-top:1px solid var(--line)}
}
@media(min-width:900px){
 .estimate-column-head[data-kind="material"],.estimate-input-line[data-estimate-line="material"]{min-width:1540px;grid-template-columns:minmax(0,1fr) 200px}
 .estimate-column-head[data-kind="material"] .estimate-columns,.estimate-input-line[data-estimate-line="material"] .form-grid{grid-template-columns:minmax(180px,2fr) 130px 140px 150px 85px 75px 75px 110px 115px 90px;gap:8px}
 .estimate-input-line select{width:100%;min-width:0;min-height:44px}
}
.po-new-line{display:block!important;min-width:0!important;margin-top:14px!important}.po-new-line .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.po-new-line .field label{position:static!important;width:auto!important;height:auto!important;clip-path:none!important}.po-new-line button{margin-top:12px}@media(max-width:700px){.po-new-line .form-grid{grid-template-columns:1fr!important}}
.po-notes{white-space:pre-wrap;overflow-wrap:anywhere;max-width:360px}
:root{--navy:#031b36;--blue:#087fae}
.sidebar{background:linear-gradient(180deg,#032647,#07192c)}
.sidebar .brand{margin:0 0 28px;width:100%}.sidebar-logo{display:block;width:100%;height:auto;border-radius:8px}
.topbar{height:150px;padding:0 30px 0 0;gap:24px;background:radial-gradient(ellipse at 35% 0%,#034b7b 0%,#032342 45%,#020e1b 100%);border-bottom:2px solid #0b99ca;position:relative;overflow:hidden}
.header-logo{display:block;align-self:stretch;flex:0 0 325px}.header-logo img{display:block;width:100%;height:100%;object-fit:contain;object-position:left center}
.topbar .breadcrumb{margin-right:auto;gap:8px;color:#bbd6e7}.topbar .breadcrumb strong{color:#fff}.topbar .breadcrumb span{color:#49bde2}
.topbar-right .demo-indicator{background:#082d47;color:#b8e6f6;border:1px solid #176083}.topbar-right .avatar{background:#0b4667;color:#fff}
@media(max-width:1100px) and (min-width:701px){.topbar{height:125px;padding-right:20px;gap:12px}.header-logo{flex-basis:270px}.topbar .breadcrumb{font-size:.75rem}.topbar-right .avatar{display:none}}
@media(max-width:700px){.topbar{height:112px;padding:0 12px 0 0;gap:8px}.header-logo{flex:1 1 auto;max-width:250px;min-width:0}.topbar .breadcrumb{display:none}.topbar-right{flex-shrink:0}.topbar-right .avatar{display:none}.topbar-right .demo-indicator{font-size:.65rem;padding:6px 8px}}
@media print{.topbar{display:none}}
/* One continuous brand banner across the upper edge. */
.topbar{background:linear-gradient(90deg,#031b36 0%,#02162c 45%,#020d19 100%);overflow:visible}
.header-logo{position:relative;flex-basis:325px;margin-left:-238px;width:563px;flex-grow:0;flex-shrink:0;z-index:2;background:#031b36}
.header-logo img{width:563px;max-width:none;object-fit:cover;object-position:left center;mask-image:linear-gradient(90deg,#000 0%,#000 86%,transparent 100%)}
.sidebar{top:150px;padding-top:26px}
.topbar .breadcrumb{position:relative;z-index:3}
@media(max-width:1100px) and (min-width:701px){.sidebar{top:125px}.header-logo{flex-basis:270px;width:508px}.header-logo img{width:508px}}
@media(max-width:700px){.header-logo{margin-left:0;width:auto;flex:1 1 auto;max-width:250px;background:transparent}.header-logo img{width:100%;object-fit:contain;mask-image:linear-gradient(90deg,#000 0%,#000 90%,transparent 100%)}.topbar{overflow:hidden}}
@media(min-width:701px){.topbar{margin-left:-238px;width:calc(100% + 238px)}.header-logo{margin-left:0;flex-basis:325px;width:325px;background:transparent}.header-logo img{width:325px;object-fit:contain}.topbar .breadcrumb{margin-left:12px}}
@media(max-width:1100px) and (min-width:701px){.header-logo{flex-basis:270px;width:270px}.header-logo img{width:270px}}

.header-logo,.header-logo img{border:0!important;box-shadow:none!important;outline:none}.header-logo:focus-visible{outline:none;box-shadow:inset 0 0 0 2px #49bde2!important}.topbar{border-bottom:0}

#desktop-nav{display:flex;flex-direction:column;gap:12px}#desktop-nav .nav-item{margin-top:0;margin-bottom:0}

.topbar{position:sticky;top:0;z-index:30}html{scroll-padding-top:160px}@media(max-width:1100px) and (min-width:701px){html{scroll-padding-top:135px}}@media(max-width:700px){html{scroll-padding-top:122px}}@media print{.topbar{display:none;position:static}}
@media(min-width:900px){.project-material-fields{grid-template-columns:minmax(180px,2fr) 130px 140px 150px 85px 75px 75px 110px 90px 115px}.project-material-column-head,.project-material-row{min-width:1470px}}
#estimate-print{display:none}
@media print{
 @page{size:letter;margin:16mm}
 body:has(#estimate-print)>.app,body:has(#estimate-print)>.bottom-nav,body:has(#estimate-print)>dialog,body:has(#estimate-print)>#toast{display:none!important}
 #estimate-print{display:block!important;color:#17283e;font:11pt Arial,sans-serif;background:white}
 #estimate-print h1{font-size:24pt;letter-spacing:1px}#estimate-print h2{font-size:13pt;margin:0 0 10px}
 .print-brand{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #087fae;padding-bottom:18px;margin-bottom:24px;gap:20px}.print-brand img{width:220px;height:auto}.print-brand>div{text-align:right}.print-brand p{margin:8px 0}.print-brand small{font-size:8pt;overflow-wrap:anywhere}
 .print-customer{display:flex;justify-content:space-between;gap:24px;margin-bottom:24px}.print-customer p{margin:8px 0}.print-text{white-space:pre-wrap}
 #estimate-print section{margin:24px 0}#estimate-print table{width:100%;border-collapse:collapse;font-size:10pt}#estimate-print th{background:#edf2f8;font-size:9pt}#estimate-print th,#estimate-print td{padding:10px 8px;border-bottom:1px solid #d9e1eb}#estimate-print td small{display:block;margin-top:5px;color:#52657b}.print-number{text-align:right;white-space:nowrap}#estimate-print thead{display:table-header-group}#estimate-print tr{break-inside:avoid}
 .print-totals{max-width:340px;margin:24px 0 24px auto;break-inside:avoid}.print-totals p{display:flex;justify-content:space-between;margin:10px 0;gap:20px}.print-grand-total{border-top:2px solid #087fae;padding-top:12px;font-size:13pt}.print-totals small{display:block;text-align:right;color:#52657b}#estimate-print footer{border-top:1px solid #d9e1eb;padding-top:12px;font-size:9pt;color:#52657b}
}
@media print{.print-brand img{background:#031b36;padding:12px;border-radius:4px;print-color-adjust:exact;-webkit-print-color-adjust:exact}}
@media print{.print-brand img{background:transparent;padding:0;border-radius:0}}
.pdf-options{display:grid;gap:16px}.pdf-options .button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:8px;padding:18px;white-space:normal}.pdf-options .button span{font-size:.85rem;font-weight:400;line-height:1.5}
@media print{
 .estimate-letterhead{margin-bottom:20px;break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .letterhead-top{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;height:130px;padding-bottom:6px}
 .letterhead-top img{width:310px;height:130px;object-fit:contain;object-position:left bottom}
 .letterhead-company{font:8pt/1.25 Arial,sans-serif;text-align:left;color:#000;white-space:nowrap;padding-bottom:2px}
 .letterhead-slogan{background:#17334b;color:#fff;text-align:center;font:bold 11pt Arial,sans-serif;padding:5px 8px}
 .letterhead-type{background:#e9f1f8;color:#17334b;text-align:center;font:bold 10pt Arial,sans-serif;padding:4px 8px}
 #estimate-print .print-estimate-reference h1{font-size:16pt;letter-spacing:0;margin:0 0 5px}.print-estimate-reference{margin-bottom:20px}.print-estimate-reference small{font-size:8pt;color:#52657b}
}
.billing-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin:20px 0}.billing-stats .stat-value{font-size:1.5rem}.invoice-material{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}.invoice-material input{width:90px;min-height:44px}.invoice-labour-line{padding:16px;background:#f5f7fa;border-radius:10px;margin:12px 0}@media(max-width:700px){.billing-stats{grid-template-columns:1fr}.project-tabs{overflow-x:auto}.invoice-material{font-size:.85rem}}

@media(min-width:1100px){.quick-actions{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:680px){.bottom-link{min-width:0;flex:1;padding:4px 2px;font-size:.6rem}.bottom-nav{gap:2px}}

@media(max-width:680px){.project-tabs{overflow-x:auto;justify-content:flex-start;gap:20px}.project-tab{flex-shrink:0;white-space:nowrap;min-height:48px}}

.time-entry-row{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1.5fr;gap:16px;padding:18px 8px;border-bottom:1px solid var(--line);align-items:center;color:var(--ink);text-decoration:none}.time-entry-row:hover{background:#eef5ff}.time-entry-row small{display:block;color:var(--muted);margin-bottom:4px}.time-entry-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}@media(max-width:800px){.time-entry-row{grid-template-columns:1fr 1fr}.time-entry-row strong,.time-entry-preview{grid-column:1/-1}}

.employee-name-button{background:none;border:0;padding:0;text-align:left;font:inherit;color:inherit;cursor:pointer}.employee-name-button:hover{color:var(--blue)}@media(max-width:680px){.bottom-nav{overflow-x:auto;justify-content:flex-start}.bottom-link{flex:0 0 calc((100vw - 20px)/6);min-width:52px}}

.payroll-entry{border-bottom:1px solid var(--line)}.payroll-entry-check{display:flex;align-items:center;gap:10px;padding:12px 8px;cursor:pointer}.payroll-entry-check input{width:20px;height:20px}.payroll-entry-check small{display:block;color:var(--muted)}

.payroll-entry{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;align-items:center;padding:8px 0}.payroll-entry-check{padding:12px 8px;align-items:center;font-size:.78rem}.payroll-entry-check input{flex-shrink:0}.payroll-entry>.time-entry-row{min-width:0;border-bottom:0}.payroll-entry-check span{line-height:1.4}@media(max-width:800px){.payroll-entry{grid-template-columns:44px minmax(0,1fr);gap:8px}.payroll-entry-check{padding:12px 4px;justify-content:center;min-height:44px}.payroll-entry-check span{display:none}}

.payroll-entry{grid-template-columns:64px minmax(0,1fr)}.payroll-entry-check{flex-direction:column;justify-content:center;gap:5px;text-align:center;padding:8px 2px}.payroll-entry-check span{display:block;font-size:.7rem}@media(max-width:800px){.payroll-entry{grid-template-columns:54px minmax(0,1fr)}.payroll-entry-check span{display:block}}

.payroll-table-wrap{overflow-x:auto;max-width:100%}.payroll-table{width:100%;min-width:1100px;border-collapse:collapse;font-size:.84rem}.payroll-table th,.payroll-table td{padding:12px;border:1px solid var(--line);text-align:left;vertical-align:middle}.payroll-table th{background:#eef4fb;white-space:nowrap}.payroll-table th button{font:inherit;font-weight:600;background:none;border:0;padding:8px 0;color:inherit;cursor:pointer;min-height:40px}.payroll-table tbody tr:nth-child(even){background:#f8fafc}.payroll-table tbody tr:hover{background:#eef5ff}.payroll-table td:nth-child(5),.payroll-table td:nth-child(6){white-space:nowrap}.payroll-table input[type=checkbox]{width:20px;height:20px}.payroll-table .payroll-number{text-align:right;font-variant-numeric:tabular-nums}.payroll-description{min-width:220px;max-width:340px;overflow-wrap:anywhere}.payroll-table a{color:inherit;text-decoration:none}.payroll-table a:hover{text-decoration:underline}

.signed-out .sidebar,.signed-out .bottom-nav,.signed-out .app-footer{display:none}.signed-out .main-shell{margin-left:0;width:100%}.signed-out .topbar{margin-left:0;width:100%}.signin-panel{max-width:480px;margin:32px auto}.signin-panel .field{margin:16px 0}

.account-menu-wrap{position:relative}.account-dropdown{position:absolute;right:0;top:calc(100% + 12px);min-width:190px;background:white;border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:0 8px 24px #001a3333;z-index:50;color:#10213b}.account-dropdown a,.account-dropdown button{display:block;width:100%;text-align:left;padding:12px;border:0;background:transparent;border-radius:6px;font:inherit;color:inherit;text-decoration:none;cursor:pointer}.account-dropdown a:hover,.account-dropdown button:hover{background:#eef5ff}.account-dropdown[hidden]{display:none}

.employee-card-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.employee-card-actions .button{flex:1 1 140px;justify-content:center;min-height:46px;margin:0;font-size:.8rem;padding:10px 12px}.employee-card-actions .button:last-child:nth-child(3){flex-basis:100%}

.saved-time-card{display:block;color:inherit;text-decoration:none;padding:16px 8px;border-bottom:1px solid var(--line)}.saved-time-card:hover{background:#eef5ff}

.timecard-tabs{display:flex;max-width:600px;background:#e1e8f1;padding:5px;border-radius:24px;margin-bottom:24px;gap:5px}.timecard-tabs a{flex:1;text-align:center;padding:12px 16px;border-radius:20px;text-decoration:none;color:#52647c;font-weight:600;min-height:44px}.timecard-tabs a.active{background:#183b60;color:white}.timesheet-days{max-width:1000px}.timesheet-day{margin-bottom:26px}.timesheet-date{display:flex;justify-content:space-between;align-items:center;padding:0 10px 12px}.timesheet-date h2{font-size:1rem;margin:0}.timesheet-entry{display:flex;justify-content:space-between;align-items:center;gap:20px;background:white;border:1px solid var(--line);border-radius:18px;padding:18px 20px;margin-bottom:10px;text-decoration:none;color:inherit}.timesheet-entry:hover{background:#eef5ff}.timesheet-job{min-width:0;flex:1}.timesheet-entry small{display:block;color:var(--muted);margin-top:5px}.timesheet-job strong,.timesheet-note{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.timesheet-hours{text-align:right;flex-shrink:0}.timesheet-hours strong,.timesheet-hours span{display:block}.timesheet-hours span{font-size:.8rem;margin-top:5px}@media(max-width:600px){.timesheet-entry{padding:16px 14px;gap:12px}.timesheet-job strong{font-size:.85rem}.timesheet-job small{font-size:.72rem}.timesheet-note{max-width:180px}.timesheet-hours span{font-size:.72rem}}

.timesheet-add-button{position:fixed;bottom:28px;right:28px;z-index:35;width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#1479bd;color:white;box-shadow:0 5px 18px #001a3344;border:2px solid white}.timesheet-add-button svg{width:28px;height:28px}.timesheet-add-button:hover{background:#105c91}.timesheet-days{padding-bottom:80px}@media(max-width:680px){.timesheet-add-button{right:20px;bottom:calc(95px + env(safe-area-inset-bottom))}}

.project-tabs{display:flex;gap:8px;align-items:flex-end;border-bottom:1px solid #becddd;padding:8px 5px 0;overflow-x:auto}.project-tab{position:relative;flex-shrink:0;padding:13px 20px;min-height:48px;border:1px solid #ccd8e5;border-bottom:0;border-radius:14px 14px 0 0;background:#e6edf5;color:#61728a;margin-bottom:0;text-decoration:none;white-space:nowrap}.project-tab:hover{background:#dce8f4;color:#173c60}.project-tab.active{background:white;color:#087daf;border-color:#b7cbdc;box-shadow:0 -3px 0 #078bb7;font-weight:600}.project-tab.active::after{content:"";position:absolute;bottom:-1px;height:2px;background:white;left:0;right:0}.project-tab:focus-visible{outline:2px solid #70a9e4;outline-offset:2px}@media(max-width:680px){.project-tabs{gap:6px;justify-content:flex-start;padding-top:7px}.project-tab{padding:12px 15px;font-size:.8rem;border-radius:12px 12px 0 0}}

.timecard-tabs{max-width:none;display:flex;align-items:flex-end;justify-content:flex-start;gap:8px;background:transparent;border-radius:0;border-bottom:1px solid #becddd;padding:8px 5px 0;margin-bottom:24px;overflow-x:auto}.timecard-tabs a{position:relative;flex:0 0 auto;padding:13px 24px;min-height:48px;border:1px solid #ccd8e5;border-bottom:0;border-radius:14px 14px 0 0;background:#e6edf5;color:#61728a;white-space:nowrap}.timecard-tabs a:hover{background:#dce8f4;color:#173c60}.timecard-tabs a.active{background:white;color:#087daf;border-color:#b7cbdc;box-shadow:0 -3px 0 #078bb7}.timecard-tabs a.active::after{content:"";position:absolute;bottom:-1px;height:2px;background:white;left:0;right:0}.timecard-tabs a:focus-visible{outline:2px solid #70a9e4;outline-offset:2px}@media(max-width:680px){.timecard-tabs{gap:6px}.timecard-tabs a{padding:12px 20px;border-radius:12px 12px 0 0}}

.file-filter-tabs{display:flex;align-items:flex-end;gap:8px;background:transparent;border:0;border-bottom:1px solid #becddd;border-radius:0;padding:8px 5px 0;flex-wrap:wrap;overflow:visible;max-width:100%}.file-filter-tabs .filter-tab{position:relative;flex:0 0 auto;min-height:48px;padding:13px 20px;border:1px solid #ccd8e5;border-bottom:0;border-radius:14px 14px 0 0;background:#e6edf5;color:#61728a;white-space:nowrap;box-shadow:none}.file-filter-tabs .filter-tab:hover{background:#dce8f4;color:#173c60}.file-filter-tabs .filter-tab.active{background:white;color:#087daf;border-color:#b7cbdc;box-shadow:0 -3px 0 #078bb7;font-weight:600}.file-filter-tabs .filter-tab.active::after{content:"";position:absolute;bottom:-1px;height:2px;background:white;left:0;right:0}.file-filter-tabs .filter-tab:focus-visible{outline:2px solid #70a9e4;outline-offset:2px}@media(max-width:680px){.file-filter-tabs{gap:6px}.file-filter-tabs .filter-tab{padding:12px 15px;border-radius:12px 12px 0 0;font-size:.8rem}}

@media(max-width:1100px){.topbar-right .avatar{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%;border:1px solid #337b9c;cursor:pointer}.topbar-right .account-menu-wrap{flex-shrink:0}}@media(max-width:680px){.topbar-right .demo-indicator{display:none}.topbar-right{display:flex;gap:8px;flex-shrink:0}.header-logo{max-width:calc(100% - 60px)}.account-dropdown{min-width:190px;right:0}.account-dropdown a,.account-dropdown button{min-height:48px}}

.topbar{overflow:visible;z-index:60}.header-logo{overflow:hidden}.topbar-right{position:relative;z-index:5}.account-menu-wrap{position:relative;z-index:70}.account-dropdown{z-index:80;background:#fff;color:#10213b}@media(max-width:700px){.topbar{overflow:visible}.account-dropdown{box-shadow:0 8px 26px #001a3340}}

@media(max-width:800px){body.keyboard-open .bottom-nav,body.keyboard-open .timesheet-add-button{display:none}}

.mobile-material-add{display:none}@media(max-width:700px){.mobile-material-add{display:inline-flex;min-height:44px}.project-material-editor>.panel-header{flex-wrap:wrap;gap:12px}.project-material-editor>.panel-header>.section-label{flex-basis:100%}}

.timesheet-date-fields .field{min-width:0}.timesheet-date-fields input{box-sizing:border-box;width:100%;min-width:0;max-width:100%}@media(max-width:700px){.timesheet-date-fields{grid-template-columns:minmax(0,1fr);gap:18px}.timesheet-date-fields input{min-height:48px;-webkit-appearance:none;appearance:none}.timesheet-date-fields input::-webkit-date-and-time-value{text-align:left;min-height:1.2em}}

.employee-contact-link{color:var(--blue);text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:8px 0;overflow-wrap:anywhere}

.employee-contact-link{outline:none;box-shadow:none;border:0;background:transparent;border-radius:0}.employee-contact-link:focus{outline:none;box-shadow:none}.employee-contact-link:focus-visible{outline:none;box-shadow:none;text-decoration-thickness:3px;text-decoration-color:#087daf}

.job-address-link{color:var(--blue);text-decoration:underline;text-underline-offset:3px;outline:none;box-shadow:none}.job-address-link:focus-visible{text-decoration-thickness:3px}

@media(max-width:700px){.bottom-nav{display:flex;justify-content:flex-start;align-items:stretch;gap:12px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));overflow-x:auto;overflow-y:hidden;scroll-padding-inline:12px;background:#edf2f8;border-top:1px solid #becddd}.bottom-link{flex:0 0 82px;min-width:82px;min-height:62px;padding:9px 8px;box-sizing:border-box;border:1px solid #ccd8e5;border-radius:13px 13px 4px 4px;background:#e1e9f3;color:#61728a;gap:6px;font-size:.68rem;white-space:nowrap}.bottom-link.active{background:white;color:#087daf;border-color:#b7cbdc;box-shadow:inset 0 3px 0 #078bb7}.bottom-link svg{width:22px;height:22px}.bottom-link:focus-visible{outline:2px solid #70a9e4;outline-offset:2px}.timesheet-add-button{bottom:calc(112px + env(safe-area-inset-bottom))}.app-footer{padding-bottom:115px}}

@media(max-width:700px){
.bottom-nav{padding-top:7px;padding-bottom:calc(7px + env(safe-area-inset-bottom))}
.bottom-link{min-height:52px;padding:6px 8px;gap:4px}
.bottom-link svg{width:20px;height:20px}
.timesheet-add-button{bottom:calc(94px + env(safe-area-inset-bottom))}
.app-footer{padding-bottom:97px}
}

.employee-dashboard-summary{display:none}
@media(max-width:700px){.employee-dashboard-summary{display:block;margin-bottom:24px}.employee-hour-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.employee-hour-grid>div{padding:12px;background:#edf2f8;border-radius:10px}.employee-hour-grid small,.employee-hour-grid strong{display:block}.employee-hour-grid strong{font-size:1.35rem;margin-top:6px}.employee-recent-time{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}.employee-recent-time small{display:block;margin-top:5px;color:var(--muted)}}

/* Keep navigation reachable on short landscape screens. */
@media(min-width:701px){.sidebar{overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}.sidebar> .workspace-label,.sidebar>nav,.sidebar>.sidebar-bottom{flex-shrink:0}}

@media(min-width:701px){.sidebar{display:block;bottom:auto;height:calc(100vh - 150px);height:calc(100dvh - 150px);padding-bottom:calc(32px + env(safe-area-inset-bottom));overflow-y:auto}.sidebar-bottom{margin-top:24px}}
@media(min-width:701px) and (max-width:1100px){.sidebar{height:calc(100vh - 125px);height:calc(100dvh - 125px)}}

@media(max-width:700px){.project-tabs{max-width:100%;min-width:0;gap:4px;padding:5px 2px 0;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scroll-padding-inline:6px}.project-tab{padding:10px 10px;min-height:44px;font-size:.75rem;line-height:1.4;border-radius:10px 10px 0 0;flex:0 0 auto}}

@media(max-width:700px){#time-card-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}#time-card-form .field{min-width:0}#time-card-form .field.full{grid-column:1 / -1}#time-card-form input[type="date"],#time-card-form input[type="time"]{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:10px 7px;min-height:48px;-webkit-appearance:none;appearance:none}#time-card-form input::-webkit-date-and-time-value{text-align:left;min-height:1.2em}}

/* Projects: sortable rows on desktop and phone. */
.project-list-table-wrap{overflow-x:auto}
.project-list-table{width:100%;border-collapse:collapse;text-align:left}
.project-list-table th{padding:0;background:#edf2f8}
.project-list-table th button{display:flex;align-items:center;gap:6px;width:100%;min-height:48px;padding:14px 20px;border:0;background:transparent;color:var(--ink);font:inherit;font-weight:600;text-align:left;cursor:pointer;white-space:nowrap}
.project-list-table th button:hover{background:#e1eaf5;color:var(--blue)}
.project-list-table th button:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
.project-list-table td{padding:0;border-top:1px solid var(--line)}
.project-list-table td a{display:block;padding:17px 20px;min-height:48px;box-sizing:border-box;color:var(--ink);text-decoration:none}
.project-list-table td:nth-child(3) a{font-weight:600;color:var(--blue)}
.project-list-table tbody tr:hover{background:#f1f6fc}
.project-list-table td.empty{padding:24px}
@media(max-width:700px){.project-list-table{min-width:680px}.project-list-table th button,.project-list-table td a{padding:13px 14px;font-size:.82rem}}

/* Keep payroll descriptions within the grid, including long work notes. */
.payroll-table .payroll-description{white-space:normal;overflow-wrap:anywhere;word-break:normal}
.payroll-table .payroll-description a{display:block;white-space:normal;overflow-wrap:anywhere}
