/* Desktop workspace: keep controls on screen, page records instead of scrolling. */
@media(min-width:900px) and (min-height:480px){
 html,body{height:100%;overflow:hidden}body{display:flex;flex-direction:column;font-size:12px}header{height:48px;flex:0 0 48px;padding:5px 16px;gap:12px}header img{height:35px;width:94px}header b{font-size:15px}main{width:100%;max-width:none;flex:1;min-height:0;padding:8px 14px;display:flex;flex-direction:column;gap:8px}.workspace-bar{margin:0;min-height:30px}h1{font-size:20px;margin:2px 0}.eyebrow{font-size:9px}nav{flex:none;margin:0;gap:2px;overflow:visible;flex-wrap:wrap}nav a{font-size:11px;padding:6px 8px;border-bottom-width:2px}.panel{padding:12px;margin:0;border-radius:9px;min-height:0}main>.panel:not(.small),main>#dashboard{flex:1;min-height:0}h2{font-size:14px;margin:0 0 8px}h3{font-size:12px;margin:0 0 8px}h4{font-size:11px;margin:10px 0 6px}p{margin:4px 0 8px;line-height:1.35}.muted{font-size:10px}.alert,.success{flex:none;margin:0;padding:5px 10px;font-size:11px}label{font-size:10px}input,select,textarea{font-size:11px;min-height:29px;padding:5px 7px;margin:3px 0 8px}button,.btn{font-size:11px;padding:6px 10px}small{font-size:10px;margin-top:2px}.tag{font-size:9px;padding:3px 5px}.cols{gap:14px;height:100%;grid-template-columns:220px minmax(0,1fr)}.cols>div+div{padding-left:14px}.cols>div{min-height:0}.cols>.wide{padding-top:10px}#admin .cols{gap:14px}.users-grid{grid-template-columns:220px minmax(0,1fr) 210px}.users-grid>div:last-child{grid-column:auto;border-top:0;border-left:1px solid #ede9f0;padding:0 0 0 14px}.user-details-form{gap:0 8px}.user-details-form input,.user-details-form select{margin-bottom:7px}.users-grid>div:first-child:has(.password-reset[open])>.user-details-form{display:none}.password-reset{padding-top:8px;margin-top:10px}.boq-grid{grid-template-columns:220px 220px minmax(0,1fr)}.boq-grid>.wide{grid-column:auto;border-top:0;border-left:1px solid #ede9f0;padding:0 0 0 14px}.boq-grid input[type=file]{font-size:10px}.scroll,.user-register,.report-table,.dashboard-scroll{max-height:none;overflow:visible;min-width:0}table{table-layout:fixed;width:100%;font-size:11px}td,th{padding:6px 7px;overflow-wrap:anywhere;white-space:normal}th{font-size:9px;letter-spacing:.15px;white-space:normal}thead{position:static}.approval-items{min-width:0;font-size:10px}.approval-items td,.approval-items th{padding:4px;white-space:normal!important}.approval-items small{font-size:9px}.approval-items th{font-size:8px}.request-actions{min-width:0;gap:4px}.request-actions .btn,.request-actions button,#history .inline button{font-size:10px;padding:5px 6px}.manage-link{white-space:normal;margin-bottom:4px}.qty{width:100%;max-width:90px;min-height:27px}#request>form:first-of-type{max-width:340px}#request>p{margin-bottom:5px}.material-toolbar{gap:9px;margin:6px 0}.material-toolbar button{margin-top:12px}.material-toolbar>div{max-width:340px}.check-label{font-size:10px}.material-toolbar input[type=search]{margin-bottom:0}#request label{margin-top:4px}#request textarea{height:29px;min-height:29px;resize:none;max-width:500px;display:inline-block;vertical-align:middle;margin-right:8px}#request textarea+button{vertical-align:middle}.report-heading{gap:8px;margin-bottom:6px}.report-heading p{margin-bottom:0}.report-downloads{display:flex;gap:5px;flex:none}.report-filters{display:flex;align-items:flex-end;gap:7px;flex-wrap:wrap;margin:8px 0}.report-filters>div{flex:1 1 100px;min-width:0}.report-filters>div:first-of-type{flex-basis:140px}.report-filters input,.report-filters select{width:100%;margin-bottom:0}.report-filters button{flex:none}.report-stats{gap:8px;margin:8px 0}.report-stats>div{padding:8px 10px}.report-stats strong,.request-summary strong{font-size:20px}.report-stats:not(.request-summary){display:flex;gap:14px;margin:4px 0}.report-stats:not(.request-summary)>div{display:flex;gap:6px;align-items:center;padding:0;border:0;box-shadow:none;background:none}.report-stats:not(.request-summary) strong{font-size:12px}.report-caption{margin:5px 0}.report-caption h3{margin:0}.report-footnote{margin:5px 0 0}.report-stats span{font-size:9px}.request-summary{margin:0 0 8px;grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}.dashboard-intro{padding:10px 14px}.dashboard-intro h2{font-size:18px;margin:3px 0}.dashboard-intro .eyebrow{display:none}.dashboard-filter{padding:7px 12px;gap:10px}.dashboard-filter>div{width:270px}.dashboard-filter .muted{margin-bottom:5px}.dashboard-org{margin:0;gap:8px}.dashboard-org a{padding:8px 12px}.dashboard-org strong{font-size:20px}.dashboard-grid{margin:0;gap:10px;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.dashboard-grid .report-heading{margin-bottom:7px}.dashboard-note{font-size:9px;margin:0}#dashboard{display:flex;flex-direction:column;gap:8px}#dashboard>.request-summary{margin:0}#dashboard>.dashboard-grid{flex:1}.small{width:360px;flex:none!important;margin:20px auto}.request-editor textarea{height:29px;min-height:29px;margin:4px 8px 0 0;vertical-align:middle;max-width:450px;resize:none}.request-editor form{margin-top:6px}
 #request-materials th:first-child{width:5%}#request-materials th:nth-child(2){width:36%}#request-materials th:nth-child(3){width:7%}#history>.scroll>table>thead>tr>th:nth-child(1){width:5%}#history>.scroll>table>thead>tr>th:nth-child(2){width:8%}#history>.scroll>table>thead>tr>th:nth-child(3){width:11%}#history>.scroll>table>thead>tr>th:nth-child(4){width:43%}#history>.scroll>table>thead>tr>th:nth-child(5){width:8%}#history>.scroll>table>thead>tr>th:nth-child(6){width:11%}#history>.scroll>table>thead>tr>th:nth-child(7){width:14%}
}
.fit-page-hidden,.fit-column-hidden,.fit-search-hidden{display:none!important}.table-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px;padding:5px 7px;background:#faf8fc;border-top:1px solid #eeeaf2;font-size:10px}.table-controls .control-group{display:flex;align-items:center;gap:5px}.table-controls button{font-size:10px;padding:3px 7px;min-height:24px}.table-controls button:disabled{opacity:.4;cursor:default}.table-controls input{width:45px;min-height:24px;margin:0;padding:2px 4px}.fit-cell-text{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.fit-details{font-size:10px;padding:3px 6px;margin-top:3px}.fit-dialog{width:min(680px,94vw);max-height:90dvh;border:1px solid #ded8e6;border-radius:10px;padding:18px}.fit-dialog::backdrop{background:#24153066}.fit-dialog p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.fit-dialog .dialog-actions{display:flex;gap:8px;justify-content:flex-end}.fit-help-button{padding:2px 6px;font-size:10px;background:#eee7f2;color:#62416f;vertical-align:middle}.fit-help-text{display:none}
@media(max-width:899px),(max-height:479px){.table-controls{position:static}table{width:100%}td,th{white-space:normal;overflow-wrap:anywhere}.approval-items{min-width:0}.scroll{overflow:auto}.dashboard-grid{grid-template-columns:1fr}}

@media(min-width:900px) and (min-height:480px){.materials-grid>div:last-child table th:nth-child(1){width:23%}.materials-grid>div:last-child table th:nth-child(2){width:55%}.materials-grid>div:last-child table th:nth-child(3){width:8%}.materials-grid>div:last-child table th:nth-child(4){width:14%}.sites-grid table th:first-child{width:25%}.user-register table th:nth-child(1){width:33%}.user-register table th:nth-child(2){width:25%}.user-register table th:nth-child(3){width:19%}.user-register table th:nth-child(4){width:23%}.boq-grid .wide table th:first-child{width:40%}.boq-grid .wide table th:nth-child(2){width:10%}.request-editor table th:first-child{width:42%}.request-editor table th:nth-child(2){width:8%}}
