/* Draft: compact dashboard, stronger Tanzeem palette and scalable type. */
:root{--ui-font:19px;--navy:#08264a;--orange:#c64b0a;--surface:#12365c;--ink:#f1f6ff}
body[data-theme=tanzeem]{background:#071d37;color:var(--ink);--primary:#c64b0a;--text:#f1f6ff;--muted:#c1d2e8;--border:#3a6087}
body{font-family:Arial,Helvetica,sans-serif;font-size:var(--ui-font)}
#content{font-size:var(--ui-font);max-width:none;padding:18px 22px}
#content p,#content label,#content input,#content select,#content textarea,#content td,#content .result-value,#content .machine-detail,#content .work-order-main p{font-size:var(--ui-font)}
#content small,#content th,#content .status,#content .badge,#content .stat-top,#content .result-label,#content .record-list-item,#content .master-list-item,#content .detail-tabs button{font-size:calc(var(--ui-font) * .85)}
#content .btn{font-size:calc(var(--ui-font) * .85)}
body[data-theme=tanzeem] .module-nav{background:#06244a;box-shadow:0 3px 0 #cb4d08}
body[data-theme=tanzeem] .card,body[data-theme=tanzeem] .home-module-band,body[data-theme=tanzeem] .module-tile,body[data-theme=tanzeem] .work-order-card{background:#12365c;border-color:#3e6286;color:#f4f8ff}
body[data-theme=tanzeem] #content :is(h1,h2,h3,strong,b,.stat-value,.stat-top,.tile-copy small,.page-heading p,.work-order-machine,.work-order-meta,.result-label,.result-value){color:inherit}
body[data-theme=tanzeem] #content :is(p,small,.notice-text){color:#cfdded}
body[data-theme=tanzeem] .eyebrow{color:#ffb260}
body[data-theme=tanzeem] #content .btn.primary{background:#c74b08;border-color:#ff8c35;color:#fff}
body[data-theme=tanzeem] #content .btn:not(.primary){background:#20476d;border-color:#5c7da0;color:#fff}
body[data-theme=tanzeem] #content input:not([type=checkbox]),body[data-theme=tanzeem] #content select,body[data-theme=tanzeem] #content textarea{background:#092743;color:#fff;border:1px solid #6c89a8;border-radius:5px;padding:8px}
body[data-theme=tanzeem] #content input::placeholder,body[data-theme=tanzeem] #content textarea::placeholder{color:#b8c9dd}
body[data-theme=tanzeem] #content .data-table td{background:#12365c;color:#fff;border-color:#426487}
body[data-theme=tanzeem] #content .data-table th{background:#08284d;color:#ffbd86}
body[data-theme=tanzeem] #content [class*=list-item]{color:#f3f7fd;background:#12365c;border-color:#436887}
body[data-theme=tanzeem] #content [class*=list-item].selected{background:#9f3d08;color:white;border-left-color:#ff9a42}
.page-heading{margin-bottom:12px}.page-heading h1{font-size:26px}.page-heading p{margin:5px 0}
#content .dashboard-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:7px;margin-bottom:18px}
#content .dashboard-stats .stat-card{display:flex;align-items:center;gap:9px;min-height:82px;padding:9px;border-radius:8px;border-top:3px solid #ed7322;text-align:left;cursor:pointer}
.metric-icon{width:34px;height:38px;flex:none;display:grid;place-items:center;color:#ffb368}.metric-icon svg{width:32px;height:32px}.metric-copy{display:grid;gap:4px}
#content .dashboard-stats .stat-top{font-size:14px;line-height:1.2}#content .dashboard-stats .stat-value{font-size:24px;line-height:1}
.home-workspace-grid{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.home-module-stack{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.home-module-band{padding:12px;margin:0}.home-module-band header{padding:0;margin-bottom:12px}.home-module-band header h2{font-size:18px}.home-module-band header p{display:none}
.home-module-band .module-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.home-module-band .module-tile{flex-direction:column;justify-content:center;min-height:118px;padding:10px;gap:8px;text-align:center}.home-module-band .tile-copy b{font-size:17px}.home-module-band .tile-copy small,.home-module-band .tile-arrow{display:none}.home-module-band .tile-icon{background:#c64b0a;color:#fff;width:46px;height:46px}.home-module-band .tile-icon svg{width:30px;height:30px}
.text-size-control{display:grid;gap:8px;padding:12px;color:#173456;font-size:16px}.text-size-control select{font:inherit;padding:8px;border:1px solid #97adc6;border-radius:5px}
/* Registry panels previously used 10–12px values; make the saved preference apply to every fact and tab. */
#content :is(.md-record-copy b,.md-facts dd,.md-master-facts dd,.md-detail-pane input,.md-detail-pane select,.md-detail-pane textarea){font-size:var(--ui-font)}
#content :is(.md-record-copy small,.md-facts dt,.md-master-facts dt,.md-tabs button,.md-upload-fields label,.md-list-head b){font-size:calc(var(--ui-font) * .9)}
#content .md-record{padding:14px 10px;min-height:80px}#content .md-record-copy{overflow:visible}#content .md-record-copy b{white-space:normal;line-height:1.4}#content .md-list-pane{min-width:0}
body[data-theme=tanzeem] #content :is(.md-list-pane,.md-list-head,.md-record,.md-detail-pane,.md-tabs,.md-facts,.md-master-facts,.md-file-picker,.md-upload-card){background:#12365c;color:#f1f6ff;border-color:#42688e}
body[data-theme=tanzeem] #content .md-record.selected{background:#9f3d08;color:#fff;border-left-color:#ff9d4b}
body[data-theme=tanzeem] #content .md-tabs button{background:#08274a;color:#fff;border-color:#517394}
body[data-theme=tanzeem] #content .md-tabs button.active{background:#bc4607;color:white}
#app-message-dialog{background:#fff;color:#142c4b;border:2px solid #c64b0a;border-radius:12px;padding:0;max-width:600px;width:calc(100% - 40px);box-shadow:0 24px 80px #0008;font-size:var(--ui-font)}
#app-message-dialog::backdrop{background:#021328b8}#app-message-dialog header{display:flex;align-items:center;justify-content:space-between;background:#082b50;color:#fff;padding:16px}#app-message-dialog h2{margin:0;font-size:22px}#app-message-dialog header button{border:0;background:transparent;color:white;font-size:30px;cursor:pointer}.app-message-body{padding:22px;line-height:1.5;max-height:65vh;overflow:auto;white-space:pre-wrap}#app-message-dialog footer{padding:12px 22px;text-align:right}.compliance-alert-button{float:right}.v5-alert-card{box-shadow:none}
/* Quote entry follows the supplied desktop-style rate sheet, with a white document workspace. */
.customer-centre{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:650px;overflow:hidden}.cc-tree{padding:12px;border-right:1px solid #54769b;max-height:85vh;overflow:auto}.cc-tree>input{width:100%;box-sizing:border-box;margin-bottom:12px}.cc-tree button{display:flex;justify-content:space-between;gap:8px;width:100%;border:0;border-bottom:1px solid #54769b;text-align:left;background:#103354;color:white;padding:12px 8px;font-size:16px;cursor:pointer}.cc-tree button span:last-child{white-space:nowrap}.cc-tree .cc-project{padding-left:24px;background:#173c61}.cc-tree .cc-project span{white-space:normal}.cc-tree button.selected{background:#a64008;color:#fff}.cc-detail{padding:20px;min-width:0}.cc-info{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:20px;border-bottom:2px solid #ca530e;padding-bottom:16px}.cc-info h2{margin:0}.cc-info h3{font-size:19px;color:#ffb46f!important}.cc-info aside{display:grid;gap:10px;align-content:start}.cc-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cc-facts>div{display:grid;gap:5px;overflow-wrap:anywhere}.cc-actions{display:flex;flex-wrap:wrap;gap:8px;padding:16px 0}.cc-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:12px;background:#09284a}.cc-filters label{display:grid;gap:7px}.cc-form{padding:22px}.cc-form-top{display:flex;gap:24px;align-items:center;margin-bottom:20px}.cc-form-top>label:first-child{display:grid;gap:8px;flex:1}.cc-form-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.cc-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.cc-form-grid[hidden]{display:none}.cc-form-grid label{display:grid;gap:7px}.cc-form-grid input,.cc-form-grid textarea{width:100%;box-sizing:border-box}.cc-wide{grid-column:1/-1}
@media(max-width:1000px){.customer-centre{grid-template-columns:250px minmax(0,1fr)}.cc-info{grid-template-columns:1fr}.cc-form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.customer-centre{grid-template-columns:1fr}.cc-tree{max-height:240px}.cc-form-grid{grid-template-columns:1fr}.cc-form-top{flex-direction:column;align-items:stretch}.cc-detail{padding:12px}}
@media print{.cc-tree,.cc-actions,.cc-filters,.cc-info aside,.page-heading .btn{display:none!important}.customer-centre{display:block;border:0!important}.cc-detail,.cc-info,.customer-centre{background:white!important;color:black!important}.cc-info{display:block}.cc-detail .data-table :is(td,th){background:white!important;color:black!important}}
.supplier-editor{border:1px solid #547a9c;border-radius:8px;overflow:hidden}.supplier-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;background:#06284d;color:#fff}.supplier-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px}.supplier-layout form{min-width:0;background:#12365c}.supplier-bill-head{padding:18px;border-bottom:3px solid #cf550d}.supplier-bill-head h2{margin:0 0 14px}.supplier-fields{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px}.supplier-fields label{display:grid;gap:7px}.supplier-fields .supplier-memo{grid-column:1/-1}.supplier-fields input,.supplier-fields select,.supplier-fields textarea{width:100%;box-sizing:border-box}.supplier-line-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px}.supplier-line-toolbar h3{margin:0}.supplier-lines{border-collapse:collapse;width:100%;min-width:980px}.supplier-lines th{background:#09284a;color:#ffc48e;padding:10px;text-align:left}.supplier-lines td{padding:6px;border:1px solid #537394;vertical-align:top}.supplier-lines th:nth-child(3){width:26%}.supplier-lines th:nth-child(5),.supplier-lines th:nth-child(7){width:70px}.supplier-lines input,.supplier-lines select{width:100%;min-width:0;box-sizing:border-box}.supplier-lines input[type=number]{text-align:right}.supplier-summary{background:#08294b;padding:18px;overflow-wrap:anywhere}.supplier-summary h3,.supplier-summary h4{color:#ffb775;border-bottom:1px solid #456587;padding-bottom:10px}.supplier-summary p{font-size:16px!important;line-height:1.5}.supplier-totals{display:flex;justify-content:flex-end;gap:24px;flex-wrap:wrap;padding:18px;border-top:2px solid #dd6719}.supplier-totals span{display:grid;gap:8px}.supplier-paid{color:#69dfa1;border:2px solid #69dfa1;padding:5px 14px;font-size:22px;float:right}.sb-remove{background:#c34a0b;border:0;color:white;font-size:25px;cursor:pointer}
@media(max-width:950px){.supplier-layout{grid-template-columns:1fr}.supplier-fields{grid-template-columns:1fr 1fr}.supplier-summary{border-top:3px solid #c64b0a}.supplier-toolbar{flex-wrap:wrap}}
.quote-editor{color:#152a43;background:#dce6ef;border-radius:8px;overflow:hidden}.quote-editor-toolbar,.quote-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;background:#08284d;color:white}.quote-editor-toolbar-actions{display:flex;gap:8px}.quote-paper{padding:20px;background:white;min-width:0}.quote-paper-head{display:grid;grid-template-columns:minmax(240px,1fr) minmax(440px,1fr);gap:24px}.quote-customer-picker{display:grid;gap:6px;max-width:500px}.quote-estimate{display:flex;align-items:center;gap:6px;margin:8px 0}.quote-to{background:#f0f4f8;border:1px solid #91a7bd;padding:12px;max-width:480px;line-height:1.5;min-height:100px}.quote-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.quote-meta label{display:grid;align-content:start;gap:6px}.quote-paper h1{margin:20px 0 12px;font-size:28px}.quote-lines-head{display:flex;align-items:center;justify-content:space-between;margin:12px 0}.quote-lines-head h2{margin:0 0 5px;font-size:20px}.quote-lines-wrap{overflow:auto;border:1px solid #91a7bd}.quote-lines{width:100%;border-collapse:collapse;table-layout:fixed;min-width:1180px}.quote-lines th{background:#12375d;color:white;padding:10px 6px;text-align:left;border-right:1px solid #54728d}.quote-lines th:nth-child(1){width:160px}.quote-lines th:nth-child(2){width:240px}.quote-lines th:nth-child(3){width:55px}.quote-lines th:nth-child(4){width:65px}.quote-lines th:nth-child(n+5):nth-child(-n+8){width:120px}.quote-lines th:nth-child(9){width:110px}.quote-lines th:nth-child(10){width:160px}.quote-lines th:last-child{width:40px}.quote-lines .ql-total,.quote-lines .ql-vat-cell{white-space:nowrap;font-variant-numeric:tabular-nums}.quote-lines .ql-total{text-align:right}.quote-lines td{padding:5px;border-right:1px solid #c3cfdb;border-bottom:1px solid #c3cfdb;vertical-align:top}.quote-lines tr:nth-child(even){background:#e9f1fa}.quote-lines input:not([type=checkbox]),.quote-lines select,.quote-lines textarea{width:100%;min-width:0;box-sizing:border-box}.quote-lines textarea{resize:vertical;min-height:65px}.quote-lines input[type=number]{text-align:right}.quote-line-remove{border:0;background:#ffe0d0;color:#963400;font-size:25px;cursor:pointer}.quote-total-row{display:flex;justify-content:space-between;align-items:center;margin:16px 0;padding:12px;background:#eaf0f7}.quote-total-row>div{display:grid;text-align:right;gap:5px}.quote-total-row strong{font-size:24px}.quote-notes-label{display:grid;gap:8px}.quote-notes-label textarea{width:100%;box-sizing:border-box}.quote-paper-footer{display:flex;justify-content:space-between;gap:15px;font-size:14px;margin-top:16px;border-top:1px solid #aac0d4;padding-top:12px}
body[data-theme=tanzeem] #content .quote-paper,body[data-theme=tanzeem] #content .quote-paper :is(h1,h2,b,strong,p,small,label,td){color:#152a43}
body[data-theme=tanzeem] #content .quote-paper :is(input:not([type=checkbox]),select,textarea){background:#fff;color:#152a43;border-color:#91a7bd;font-size:16px;padding:8px}
body[data-theme=tanzeem] #content .quote-paper .btn:not(.primary){background:#e9f1fa;color:#12375d}
@media(max-width:1150px){.home-module-stack{grid-template-columns:1fr}.home-module-band .module-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.quote-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-paper-head{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.home-workspace-grid{grid-template-columns:1fr}.home-module-band .module-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-paper-head{grid-template-columns:1fr}.quote-editor-toolbar{flex-wrap:wrap}.quote-paper{padding:12px}#content .dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.metric-icon{display:none}.quote-total-row{gap:12px;flex-wrap:wrap}}
@media print{.quote-editor-toolbar,.quote-editor-footer,.quote-lines-head,.quote-customer-picker,.quote-estimate,.quote-line-remove,#app-message-dialog{display:none!important}.quote-paper{background:white;color:black}.quote-lines{min-width:0;table-layout:auto}.quote-lines th,.quote-lines td{font-size:10px!important}.quote-paper-head{grid-template-columns:1fr 1fr}.quote-paper input,.quote-paper textarea,.quote-paper select{border:0!important;font-size:11px!important}.quote-editor{overflow:visible}}

.v8-ribbon{display:flex;flex-wrap:wrap;gap:2px;background:#12365c;border-bottom:3px solid #bd480a;padding:8px}.v8-shortcut{display:grid;justify-items:center;align-content:center;gap:8px;min-width:105px;flex:1;background:transparent;border:0;color:#fff;padding:12px;font-size:16px;cursor:pointer}.v8-shortcut span{background:#bf4a0d;border-radius:8px;padding:8px;display:grid;place-items:center}.v8-shortcut svg{width:29px;height:29px}.v8-board{display:grid;gap:12px}.v8-lane{background:#12365c;border:1px solid #426487;border-radius:7px;padding:12px}.v8-lane h2{font-size:18px;margin:0 0 10px;color:#ffb475!important}.v8-flow{display:flex;gap:20px;align-items:center}.v8-flow .v8-shortcut{position:relative;min-width:0}.v8-flow .v8-shortcut:not(:last-child):after{content:'→';position:absolute;right:-17px;top:32px;color:#ffac61;font-size:26px}.v8-inventory{display:grid;grid-template-columns:300px minmax(0,1fr);overflow:hidden}.v8-inventory>aside{padding:12px;border-right:1px solid #517699;max-height:80vh;overflow:auto}.v8-inventory>aside input{width:100%;box-sizing:border-box}.v8-part{display:grid;text-align:left;gap:8px;width:100%;background:#12365c;color:#fff;border:0;border-bottom:1px solid #527798;padding:15px;font-size:18px;cursor:pointer}.v8-part.selected{background:#a73e06}.v8-part-detail{min-width:0;padding:20px}#inv-body{max-width:100%;overflow:auto}.dashboard-stats{margin-top:12px}@media(max-width:850px){.v8-flow{flex-wrap:wrap}.v8-shortcut{min-width:110px!important}.v8-flow .v8-shortcut:after{display:none}.v8-inventory{grid-template-columns:1fr}.v8-inventory>aside{max-height:240px}}

/* Classic workflow surfaces for all modules except the selected dashboard. */
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]){background:#e7eef5;color:#17324c}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content{color:#17324c}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content :is(.card,.md-list-pane,.md-list-head,.md-record,.md-detail-pane,.md-facts,.md-master-facts,.md-file-picker,.md-upload-card,.work-order-card,.supplier-layout form,.cc-detail,.v8-part-detail){background:#fff;color:#17324c;border-color:#b1c5d8}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content :is(p,small,.notice-text,.work-order-meta){color:#425b74}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content :is(h1,h2,h3,b,strong,.result-value){color:#12365a}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content :is(input:not([type=checkbox]),select,textarea){background:#fff;color:#17324c;border-color:#8ba7bf}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content :is(input,textarea)::placeholder{color:#586f86}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content .data-table td{background:#fff;color:#17324c;border-color:#d1deea}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content .data-table tr:nth-child(even) td{background:#edf4fa}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content .data-table th{background:#dbe8f4;color:#103457}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content .btn:not(.primary){background:#e5eef6;color:#103457;border-color:#9fb6cb}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content :is(.md-tabs,.cc-filters,.supplier-summary){background:#e1ebf5;color:#17324c}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content :is(.md-record.selected,.v8-part.selected,.cc-tree button.selected){background:#bd480a;color:#fff}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content :is(.md-record.selected,.v8-part.selected,.cc-tree button.selected) :is(b,strong,small,span){color:#fff}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content .cc-tree button,body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content .v8-part{background:#edf4fa;color:#17324c}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content .cc-tree button.selected,body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content .v8-part.selected{background:#bd480a;color:#fff}
body[data-theme=tanzeem]:not([data-workspace-page=dashboard]) #content .supplier-toolbar strong{color:#fff}
/* Latest requested Classic workflow applies to dashboard and every module. */
body[data-theme=classic]{--primary:#e87908;--text:#17324b;--muted:#526778;--border:#bcc8ce;--ink:#17324b;--surface:#fff;background:#e7eef0;color:#17324b}
body[data-theme=classic] #content{padding:8px 12px}
body[data-theme=classic] :is(.card,.md-shell,.md-list-pane,.md-detail-pane,.md-record,.md-list-head,.md-tabs,.md-facts,.md-master-facts,.home-module-band,.module-tile,.work-order-card,.v8-lane,.v8-ribbon,.v8-shortcut,.stat-card,.cc-tree,.cc-detail,.cc-filters,.supplier-editor,.supplier-toolbar,.supplier-summary,.v8-part-detail){background:#fff;color:#17324b;border-color:#bcc8ce;box-shadow:none;border-radius:2px}
body[data-theme=classic] #content :is(p,small,b,strong,h1,h2,h3,dd,dt){color:inherit}
body[data-theme=classic] #content :is(input,select,textarea){background:white;color:#17324b;border:1px solid #a7b8c3;border-radius:2px}
body[data-theme=classic] #content .btn{background:#f1f5f6;color:#17324b;border:1px solid #a7b8c3;border-radius:2px}
body[data-theme=classic] #content .btn.primary,body[data-theme=classic] .md-record.selected,body[data-theme=classic] .cc-tree button.selected{background:#f58a09;color:white}
body[data-theme=classic] .cc-tree button{background:#fff;color:#17324b;border-color:#c4d0d7;padding:6px 8px}
body[data-theme=classic] #content .data-table th{background:#dbe6eb;color:#17324b}body[data-theme=classic] #content .data-table td{background:white;color:#17324b}body[data-theme=classic] #content .data-table tr:nth-child(even) td{background:#eff5f8}
body[data-theme=classic] .module-nav{background:linear-gradient(#fafcfc,#d8e5ea);color:#17324b;box-shadow:none;border-bottom:1px solid #92a8b4;min-height:60px;padding:3px 8px;gap:8px;flex-wrap:wrap}
.classic-icons{display:flex;flex:1;flex-wrap:wrap;gap:2px}.classic-icons button{display:grid;justify-items:center;gap:3px;border:0;border-right:1px solid #b6c8d1;background:transparent;color:#17324b;font:12px Arial;padding:3px 9px;cursor:pointer}.classic-icons button:hover{background:#ffe2af}.classic-icons svg{width:23px;height:23px;color:#df7d08}.module-nav .ribbon-search{width:180px;margin-left:0}.module-nav .nav-account summary{color:#17324b}.module-nav .ribbon-refresh{background:#fff;color:#17324b}
body[data-theme=classic] .page-heading>div:first-child{display:none}body[data-theme=classic] .page-heading{margin:0 0 6px;min-height:0;justify-content:flex-end}body[data-theme=classic] .page-heading:has(.heading-actions:empty){display:none}
body[data-theme=classic] #content .md-record{min-height:30px;height:32px;padding:3px 7px;gap:6px;display:flex;align-items:center}body[data-theme=classic] #content .md-record-icon,body[data-theme=classic] #content .md-record-copy small{display:none}body[data-theme=classic] #content .md-record-copy b{font-size:13px;white-space:nowrap;line-height:1.2;overflow:hidden;text-overflow:ellipsis}body[data-theme=classic] #content .md-record-copy{min-width:0;overflow:hidden;flex:1}.classic-row-number{font:12px Arial;min-width:20px;color:#647a88}body[data-theme=classic] #content .md-record-status .badge{font-size:10px;padding:2px 4px}body[data-theme=classic] #content :is(.md-facts dd,.md-master-facts dd,.md-facts dt,.md-master-facts dt,.md-detail-pane p,.md-detail-pane small){font-size:13px}body[data-theme=classic] #content .md-tabs button{font-size:13px;padding:5px 8px}
body[data-theme=classic] .v8-lane h2{background:#dce8ed;color:#17324b;font-size:14px;padding:5px;margin:0}.v8-shortcut span{color:#df7d08}.v8-flow{padding:12px}.metric-icon{color:#df7d08}
.snapshot-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:10px;flex-wrap:wrap}#snapshot-panels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.snapshot-card{background:white;border:1px solid #b7c6cf;padding:10px;min-width:0;overflow:auto}.snapshot-card h2{font-size:15px;background:#dce5e9;margin:-10px -10px 12px;padding:6px 9px}.snapshot-bar{display:grid;grid-template-columns:110px minmax(40px,1fr) 115px;gap:6px;align-items:center;margin:9px 0;font-size:12px}.snapshot-bar>div{background:#edf3f5;height:14px}.snapshot-bar i{display:block;background:#079bc0;height:14px}.snapshot-bar b{font-size:12px!important;text-align:right}.snapshot-card p,.snapshot-card small{font-size:13px!important}@media(max-width:1050px){#snapshot-panels{grid-template-columns:1fr 1fr}}@media(max-width:700px){#snapshot-panels{grid-template-columns:1fr}.classic-icons button{padding:4px 6px}.module-nav .ribbon-search{display:none}}

body[data-theme=classic] .classic-icons{align-items:center}body[data-theme=classic] .module-nav .classic-icons .ribbon-search{display:flex;flex:0 0 130px;width:130px;min-width:0;height:30px;margin:0 3px;padding:3px 5px;background:white;border:1px solid #a7b8c3}body[data-theme=classic] .classic-icons .ribbon-search input{width:100%;min-width:0;font-size:12px;padding:0}body[data-theme=classic] .classic-icons .ribbon-search kbd{display:none}body[data-theme=classic] .classic-icons .nav-account{margin:0;flex:none}body[data-theme=classic] .classic-icons .nav-account summary{display:flex;align-items:center;gap:3px;padding:4px 5px;width:40px;min-height:30px;font-size:18px;list-style:none}body[data-theme=classic] .classic-icons .nav-account summary::-webkit-details-marker{display:none}body[data-theme=classic] .classic-icons .nav-account summary span:last-child{font-size:12px}
body[data-theme=classic] #content .form-grid[data-ec-panel][hidden]{display:none}
body[data-theme=classic] #content :is(.md-detail-pane,.cc-detail,.supplier-layout,.supplier-summary){font-size:13px}
body[data-theme=classic] #content :is(.md-detail-pane label,.md-detail-pane input,.md-detail-pane select,.md-detail-pane textarea,.cc-detail p,.supplier-layout label,.supplier-layout input,.supplier-layout select,.supplier-summary p){font-size:13px}
body[data-theme=classic] #content .md-facts{gap:8px}
body[data-theme=classic] #content .md-profile-header{padding:10px;min-height:0}
body[data-theme=classic] #content .md-profile-title h2{font-size:17px;margin:0}
body[data-theme=classic] #content .md-employee-photo{width:70px;height:85px;object-fit:cover}
body[data-theme=classic] #content :is(.md-kicker,.md-profile-title>p){display:none}
.stores-toolbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:6px 0;font-size:13px}.stores-toolbar label{display:flex;gap:5px;align-items:center}.stores-split{display:grid;grid-template-columns:40% minmax(0,1fr);gap:9px}.stores-split>aside,.stores-split>section{background:white;border:1px solid #bcc8ce;padding:9px;min-width:0}.stores-split>aside>input{width:100%;margin-bottom:7px}.stores-row{width:100%;display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:6px;text-align:left;border:0;border-bottom:1px solid #d7e1e7;background:white;padding:7px 4px;font-size:12px;color:#17324b}.stores-row.selected{background:#f58a09;color:white}.stores-row[hidden]{display:none}.stores-top-tabs{margin-bottom:6px}body[data-theme=classic] #content .stores-split :is(p,input,select,label,td,th){font-size:13px}body[data-theme=classic] #content .stores-split h3{font-size:14px}#cw-detail{background:white;margin-top:10px;font-size:13px}@media(max-width:760px){.stores-split{grid-template-columns:1fr}}
.barcode-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:8px;font-size:13px}.barcode-toolbar input{width:65px}#barcode-picker{display:flex;flex-wrap:wrap;gap:8px;padding:10px}#barcode-picker label{font-size:13px}.barcode-sheet{display:flex;flex-wrap:wrap;gap:4mm;padding:8px}.barcode-label{width:90mm;min-height:50mm;background:white;color:black;border:1px dashed #a7b8c3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2mm;padding:3mm;break-inside:avoid;text-align:center}.barcode-label b{font-size:12px!important}.barcode-label strong{font-size:17px!important}.barcode-label span{font-size:12px}.barcode-label svg{max-width:100%;height:19mm}.barcode-sheet[data-size=small] .barcode-label{width:70mm;min-height:40mm}.asset-barcode-inline{display:flex;align-items:center;justify-content:flex-end;gap:8px}.asset-barcode-inline svg{max-width:180px;height:55px}#barcode-report-header{display:none}
@media print{@page{margin:24mm 12mm 14mm}body:not([data-workspace-page=barcode-labels]) #barcode-report-header{display:flex;position:fixed;top:-18mm;left:0;right:0;justify-content:space-between;align-items:center;height:17mm;background:white;color:black}#barcode-report-header>div{display:grid;gap:4px;font-size:11px}#barcode-report-header svg{width:55mm;height:17mm}.module-nav,.sidebar,.footer,.barcode-toolbar,#barcode-picker,.asset-barcode-inline button,.stores-toolbar,.stores-top-tabs,#barcode-print-report{display:none!important}body[data-workspace-page=barcode-labels] #barcode-report-header{display:none!important}body[data-workspace-page=barcode-labels] #content{padding:0!important;margin:0!important}.barcode-sheet{padding:0}.barcode-label{border:1px dotted #aaa}.asset-barcode-inline{display:none}#content{background:white!important;color:black!important}.main-area{margin:0!important}}

body[data-theme=classic] #content .md-facts>div{padding:5px 7px;min-height:40px}body[data-theme=classic] #content .md-facts>div small{font-size:11px;font-weight:400;line-height:1.25}body[data-theme=classic] #content .md-facts>div b{font-size:12px;font-weight:400;line-height:1.3}body[data-theme=classic] #content .md-facts{gap:3px}body[data-theme=classic] .v8-board .v8-lane h2{font-size:13px}body[data-theme=classic] .v8-board .v8-shortcut{min-height:70px}body[data-theme=classic] #content .md-record-copy b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-theme=classic] .v8-lane h2{color:#18394f!important}body[data-theme=classic] .v8-shortcut>span{background:transparent!important;color:#e88100!important}body[data-theme=classic] .v8-flow>.v8-shortcut:not(:last-child)::after{color:#9bb2bd!important}body[data-theme=classic] .business-alerts{max-height:220px;overflow:auto}

.lead-inline-tools{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.lead-inline-tools>div{flex-basis:100%}.lead-inline-tools label{display:inline-flex;gap:6px;align-items:center;margin:4px}.lead-inline-tools small,.form-field.full>small{display:block;flex-basis:100%;font-size:12px;margin-top:5px}.lead-inline-tools [hidden]{display:none!important}


.customer-centre .cc-info{border-bottom:0}.cc-name-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.cc-name-row h2{margin:0}.cc-name-row .btn{white-space:nowrap}@media print{.cc-name-row .btn{display:none!important}}


.cc-customer-row{display:flex;align-items:stretch;min-width:0}.cc-customer-row .cc-customer{flex:1;min-width:0}.cc-expand{width:23px;flex:0 0 23px;padding:0;border:0;background:transparent;color:#17324b;cursor:pointer}.cc-expand:disabled{opacity:.3;cursor:default}.cc-project{padding-left:23px!important}


.classic-icons .workspace-back>span{font-size:23px;line-height:23px;color:#df7d08}.classic-icons .workspace-back:disabled{opacity:.4;cursor:default}@media print{.workspace-back{display:none!important}}


.workspace-page-title{font:600 16px/1.3 Arial,sans-serif;color:#17324b;margin:8px 14px 3px;flex:none}body[data-theme=classic] .main-area .content{padding-top:4px}.record-screen-root .modal-head h2{display:none}@media print{.workspace-page-title{color:#000;margin:0 0 6px}}


.quote-line-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.quote-line-actions .btn{white-space:nowrap}


.ql-vat-cell{white-space:nowrap;min-width:85px}#quote-vat-note{display:block;max-width:400px;font-size:11px;line-height:1.3}


.quote-line-invalid td{outline:1px solid #d65c1e;outline-offset:-1px;background:#fff5e9!important}


.quote-standard-terms{font-size:12px;line-height:1.45;padding:8px 0;color:#17324b}.quote-standard-terms p{margin:0 0 6px}.quote-standard-terms+textarea[hidden]{display:none!important}


.quote-terms-heading{display:flex;gap:12px;align-items:flex-start;margin:8px 0}.quote-terms-heading h2{flex:1;margin:0;font-size:16px;line-height:1.4;border-bottom:3px double #000;color:#000}.quote-total-box{border:1px solid #000;display:flex;align-items:center;gap:16px;padding:8px 12px;flex-wrap:wrap;min-width:210px}.quote-total-box small{font-size:16px;font-weight:bold}.quote-total-box strong{font-size:20px;white-space:nowrap}.quote-signature{display:grid;gap:4px;color:#000;margin:12px 0 16px}.quote-for{font-style:italic}.quote-signature-company{font-size:22px;margin:2px 0 8px}.quote-signature b,.quote-signature>span:not(.quote-for){font-size:16px}.quote-not-tax-invoice{display:block;border:1px solid #000;border-radius:16px;padding:8px 12px;width:fit-content;margin-left:auto}.quote-paper-footer{display:block;border-top:0;margin:12px 0 24px;padding:0}.quote-paper-footer img{display:block;width:100%;height:auto;object-fit:contain}@media print{@page{margin:12mm}.quote-standard-terms{color:#000}.quote-terms-heading,.quote-signature,.quote-paper-footer{break-inside:avoid;page-break-inside:avoid}.quote-paper-footer{margin-bottom:12mm}.quote-paper{padding-bottom:12mm;overflow:visible}.quote-total-row>label{display:none}.quote-line-actions{display:none}.quote-terms-heading h2{font-size:11pt}.quote-total-box strong{font-size:13pt}}

body[data-workspace-page=employees] .asset-barcode-inline{flex-wrap:wrap}.employee-profile-actions{flex-basis:100%;display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin:0 0 8px}.employee-profile-actions .btn{font-size:12px;white-space:nowrap}.employee-badge .employee-badge-photo{width:22mm;height:26mm;object-fit:cover;object-position:top;border:1px solid #aaa}.employee-badge-no-photo{display:grid;place-items:center;font-size:10px;color:#666}.barcode-label.employee-badge{min-height:72mm}.barcode-sheet[data-size=small] .barcode-label.employee-badge{min-height:65mm}@media print{.employee-profile-actions{display:none!important}.employee-badge-photo{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
/* Compact Sales and Workshop workspaces */
.team-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:7px 0;font-size:12px}.team-toolbar>span{color:#596b7b}.team-toolbar>h2{font-size:16px;margin:0;margin-right:auto}.team-toolbar input[type=search]{width:310px;max-width:100%;height:29px}.team-summary{display:grid;grid-template-columns:repeat(9,minmax(90px,1fr));gap:6px;margin:5px 0 9px}.team-tile{background:#fff;border:1px solid #b8c7d1;border-top:2px solid #ef8b14;color:#17324a;text-align:left;padding:9px 10px;cursor:pointer}.team-tile span{display:block;font-size:11px;min-height:26px}.team-tile b{font-size:23px}.team-tile.selected{background:#fff0d9;border-color:#ef8b14}.team-tabs{display:flex;gap:4px;border-bottom:1px solid #b8c7d1;padding-bottom:6px}.team-split{display:grid;grid-template-columns:370px minmax(0,1fr);padding:0!important;min-height:450px}.team-split>aside{border-right:1px solid #b8c7d1;max-height:65vh;overflow:auto}.team-machine{display:grid;grid-template-columns:20px 85px minmax(0,1fr);gap:5px;width:100%;border:0;border-bottom:1px solid #dbe3e9;background:#fff;text-align:left;font-size:11px;align-items:center;min-height:32px;padding:4px 7px;cursor:pointer;color:#17324a}.team-machine:nth-child(even){background:#f2f6f8}.team-machine em{grid-column:2/4;font-size:10px;font-style:normal;color:#617084}.team-machine.selected{background:#fff0d9;box-shadow:inset 3px 0 #ef8b14}.team-split>article{padding:10px 14px;min-width:0}.team-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 18px;border:1px solid #dbe3e9;padding:12px;margin:8px 0}.team-facts small{display:block;font-size:10px;text-transform:uppercase;color:#607185}.team-facts b{font-size:12px;font-weight:500;overflow-wrap:anywhere}.team-queue-counts{background:#eaf1f5;border:1px solid #c8d3dc;padding:9px;font-size:12px;margin-bottom:7px}#team-body table{font-size:11px}#team-body td,#team-body th{padding:6px 8px}#team-body{overflow:auto}#team-body h3{font-size:13px}.team-tabs .btn,.team-toolbar .btn{font-size:11px;padding:6px 9px;min-height:29px}@media(max-width:1100px){.team-summary{grid-template-columns:repeat(5,1fr)}.team-split{grid-template-columns:290px minmax(0,1fr)}}@media(max-width:700px){.team-summary{grid-template-columns:repeat(3,1fr)}.team-split{grid-template-columns:1fr}.team-split>aside{max-height:220px}.team-facts{grid-template-columns:repeat(2,1fr)}}@media print{.team-toolbar button,.team-tabs,.team-toolbar input{display:none!important}.team-split>aside{max-height:none;overflow:visible}.team-split{display:block}.team-summary{grid-template-columns:repeat(5,1fr)}}
.team-split{grid-template-columns:minmax(0,1fr)}.team-split.with-detail{grid-template-columns:minmax(0,1fr) 390px}.team-split>aside{max-height:67vh;overflow:auto;border-right:0}.team-split.with-detail>article{border-left:1px solid #bac8d3}.team-register{width:100%;border-collapse:collapse;font-size:11px}.team-register th{position:sticky;top:0;background:#e7edf2;text-align:left;z-index:1;white-space:nowrap}.team-register td,.team-register th{padding:7px!important;border-bottom:1px solid #dbe3e9}.team-register td{vertical-align:middle}.team-register tr:nth-child(even){background:#f3f7fa}.team-register tr.selected{background:#fff0d9}.team-register small{display:block;font-size:10px;color:#62778a}.team-machine-link{padding:0;border:0;background:none;color:#165477;font-weight:bold;cursor:pointer;white-space:nowrap}.team-status{display:inline-block;font-size:10px;padding:3px 6px;border-radius:3px;background:#edf0f3;white-space:nowrap}.team-status.on_hire,.team-status.on_site{background:#daf0fa;color:#154d6d}.team-status.off_hire,.team-status.waiting_job{background:#d9f2e4;color:#21633c}.team-status.breakdown{background:#ffe1df;color:#94372d}.team-status.waiting_operator{background:#fff0cc;color:#805817}.team-status.workshop{background:#eee4f8;color:#654486}.team-split.with-detail .team-facts{grid-template-columns:repeat(2,1fr)}@media(max-width:1000px){.team-split.with-detail{grid-template-columns:1fr}.team-split.with-detail>article{border-left:0;border-top:1px solid #bac8d3}}
.team-insight-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.team-insight-grid>.card{padding:12px}.team-insight-grid h3{margin:0 0 12px;font-size:14px!important}.team-insight-metrics{display:grid;grid-template-columns:1fr 1fr;gap:7px}.team-insight-metrics .team-tile span{min-height:30px}.team-insight-grid p{font-size:11px}.team-share{font-size:34px;color:#204963}.team-util-row{display:grid;grid-template-columns:130px 1fr 32px;gap:6px;align-items:center;font-size:10px;margin:8px 0}.team-util-row>div{height:8px;background:#e8edf2}.team-util-row i{display:block;height:8px;background:#ee931d}.team-events{max-height:350px;overflow:auto}.team-events article{padding:7px 0;border-bottom:1px solid #dae3eb;font-size:11px}.team-events article p{margin:4px 0}.team-events small,.team-note{color:#697c8e}@media(max-width:1100px){.team-insight-grid{grid-template-columns:1fr 1fr}.team-insight-grid>section:last-child{grid-column:1/3}}@media(max-width:700px){.team-insight-grid{grid-template-columns:1fr}.team-insight-grid>section:last-child{grid-column:auto}}

.quote-terms-title{flex:1;min-width:0}.quote-amount-words{margin:8px 0 0;font-weight:600;color:#000;overflow-wrap:anywhere}@media(max-width:650px){.quote-terms-heading{flex-wrap:wrap}.quote-terms-title{flex-basis:100%}}

.report-pdf-actions{display:flex;flex-wrap:wrap;gap:8px}.report-pdf-preview{width:100%;height:72vh;min-height:420px;border:1px solid #b9c7d4;margin-top:12px;background:#fff}

.lead-selector-label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}.lead-selector-label>label{margin-right:auto}.lead-inline-editor[hidden]{display:none!important}.lead-inline-editor{border:1px solid #bdcbd8;padding:12px;background:#f7fafc}.lead-customer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lead-customer-grid label{display:grid;gap:5px}.lead-inline-editor .lead-inline-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}@media(max-width:650px){.lead-customer-grid{grid-template-columns:1fr}}

/* Sales booking equipment and transport entry. */
.team-booking-rental-type select{width:200px;max-width:100%}
.booking-commercial-scroll{overflow-x:auto;width:100%}
.booking-commercial-table{width:100%;min-width:1450px;border-collapse:collapse;table-layout:fixed}
.booking-commercial-table th,.booking-commercial-table td{padding:8px;border:1px solid #bdcbdc;vertical-align:top}
.booking-commercial-table th{background:#1d3558;color:white;text-align:left}
.booking-commercial-table th:first-child{width:245px}.booking-commercial-table th:nth-child(2){width:200px}.booking-commercial-table th:nth-child(3){width:180px}.booking-commercial-table th:last-child{width:125px}
.booking-commercial-table input,.booking-commercial-table select,.booking-commercial-table textarea{width:100%;box-sizing:border-box;min-width:0}
.booking-commercial-table textarea{min-height:65px}.booking-commercial-table input{text-align:right}
.booking-commercial-table [data-booking-lowbed]{background:#edf3fa}.booking-commercial-table [data-lowbed-total]{white-space:nowrap}.booking-empty{text-align:center;color:#758294}
.booking-commercial .team-toolbar{justify-content:flex-end}.booking-commercial .team-toolbar h3{margin-right:auto}

/* Purchase order control and shared Sales / Accounts reminders. */
.team-tabs[hidden]{display:none!important}
.team-po-reminders{margin:10px 14px;padding:12px 16px;border:1px solid #e3af68;background:#fff5df;color:#263a55;border-radius:5px}
.team-po-reminders[hidden]{display:none}.team-po-reminders summary{cursor:pointer}
.team-po-alert-list{max-height:300px;overflow:auto}.po-alert{display:flex;align-items:start;gap:12px;padding:10px;border-top:1px solid #e0c9a5}.po-alert.critical{border-left:4px solid #c42b24}.po-alert.warning{border-left:4px solid #ed920d}
.po-stop{font-weight:700;color:#aa201a}.po-expired,.po-not_started{background:#ffe2df!important;color:#a51e17!important}.po-pending{background:#fff0d4!important;color:#9b5700!important}.po-expiring{background:#fff1bb!important;color:#7e5700!important}.po-valid{background:#ddf3e8!important;color:#126440!important}
.team-register td:has([data-machine-po]){min-width:125px}.team-register small{display:block}

.team-register td:nth-child(4),.team-register td:nth-child(5){min-width:112px}
.booking-po-fields{padding:14px;border:1px solid #b8c7d1;background:#f5f8fc}.booking-po-fields h3{margin:0 0 10px}.booking-po-fields .form-grid{width:100%}

.monthly-sunday{background:#fff4c7!important}.monthly-day-table input{width:145px;max-width:100%;padding:5px}.monthly-day-table{min-width:700px}.monthly-day-table td{height:29px}.team-po-reminders details{font-size:12px}

.stores-summary{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.stores-summary article{background:#fff;border:1px solid #bccbd8;border-top:3px solid #ed8d12;padding:14px 18px;flex:1;min-width:180px}.stores-summary small,.stores-summary b{display:block}.stores-summary b{font-size:20px;margin-top:8px;color:#1d3454}.stores-catalog-actions{display:flex;gap:6px;margin-left:auto}.stores-main-actions{flex-wrap:wrap}.stores-row small,.stores-ledger small,.data-table small{display:block;color:#64748b}.stores-report-frame{display:block;width:100%;height:65vh;border:1px solid #bccbd8;margin-top:12px}.stores-toolbar label{display:flex;gap:8px;align-items:center}.stores-toolbar h3{margin:0}.stores-toolbar select{max-width:580px}

#content .cc-compact{display:grid;grid-template-columns:275px minmax(0,1fr);padding:0;background:#fff;border:1px solid #aebdc7;border-radius:0;font:12px Arial,sans-serif;gap:0;min-height:75vh}#content .cc-compact .cc-tree{width:auto;border-radius:0;padding:5px;border-right:2px solid #aebdc7;background:#f5f8fa;overflow:hidden}#content .cc-compact .cc-list-tabs{font-size:12px;padding:5px;border-bottom:1px solid #bdd4d7;font-weight:600}#content .cc-compact .cc-tree label{display:flex;align-items:center;gap:6px;margin:5px 0}#content .cc-compact :is(input,select){padding:2px 4px;border-radius:0;font:12px Arial;min-height:24px;height:24px;max-width:100%}#content .cc-compact .cc-tree input{width:100%;min-width:0}#content .cc-compact .cc-list-head{display:flex;justify-content:space-between;background:#e5eef1;border:1px solid #b6c9ce;padding:3px}#content .cc-compact #cc-tree-rows{max-height:76vh;overflow:auto}#content .cc-compact .cc-customer-row{display:flex;border-bottom:1px solid #e5eaf0;margin:0}#content .cc-compact :is(.cc-customer,.cc-project){display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;padding:4px 3px;font:12px Arial;font-weight:400;border:0;border-radius:0;margin:0;background:#fff;color:#17324b;min-height:24px}#content .cc-compact :is(.cc-customer,.cc-project)>span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1;text-align:left}#content .cc-compact :is(.cc-customer,.cc-project)>span:last-child{white-space:nowrap;font-size:11px}#content .cc-compact .cc-project{padding-left:18px;border-bottom:1px solid #edf1f6}#content .cc-compact .cc-expand{padding:0;width:15px;flex:0 0 15px;border:0;border-radius:0;font-size:10px;background:transparent}#content .cc-compact .cc-detail{padding:6px;min-width:0}#content .cc-compact .cc-info{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:8px;border-bottom:2px solid #9eb6c0;padding-bottom:8px;margin:0}#content .cc-compact .cc-info-title{display:flex;justify-content:space-between;border-bottom:1px solid #a8d2d7;padding:3px;color:#007184}#content .cc-compact .cc-facts{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;margin:8px 4px}#content .cc-compact .cc-facts>div{display:flex;align-items:flex-start;gap:8px;font:12px Arial}#content .cc-compact .cc-facts small{min-width:92px;color:#758492;font-size:11px}#content .cc-compact .cc-facts span{white-space:pre-line;font-weight:400}#content .cc-compact .cc-note-line{display:flex;gap:18px;border-top:1px solid #d2e5e7;padding:6px;font-size:11px}#content .cc-compact .cc-right-actions{display:flex;flex-direction:column;gap:4px;padding:3px}#content .cc-compact .cc-right-actions>b{color:#007184;font-size:12px}#content .cc-compact .cc-report-link{border:0;background:none;text-decoration:underline;color:#126da1;text-align:left;padding:2px;font:11px Arial;cursor:pointer}#content .cc-compact .cc-right-actions strong{font-size:12px;margin:4px 0}#content .cc-compact .cc-right-buttons{display:flex;flex-wrap:wrap;gap:3px}#content .cc-compact .btn{padding:3px 6px;min-height:24px;font:11px Arial;font-weight:400;border-radius:0;box-shadow:none}#content .cc-compact .cc-filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:5px 0;margin:0;border:0;background:#eef1f2;border-radius:0}#content .cc-compact .cc-filters label{display:flex;align-items:center;gap:4px;font-size:11px;margin:0}#content .cc-compact .data-table :is(th,td){font:11px Arial;padding:4px 5px;border-right:1px solid #edf1f5;white-space:nowrap}#content .cc-compact .data-table th{background:#e8f0f2;font-weight:400;letter-spacing:0;text-transform:none}#content .cc-compact .data-table tbody tr:nth-child(even){background:#edf4fa}#content .cc-compact .cc-money{text-align:right}#content .cc-compact #cc-transactions{min-height:55vh;background:repeating-linear-gradient(to bottom,#fff 0px,#fff 24px,#edf4fa 24px,#edf4fa 48px)}.customer-popup #cc-form{width:100%;grid-column:1/-1;padding:0;border:0}.customer-popup .cc-form-grid{gap:8px}.customer-popup .cc-form-top{gap:12px}.customer-popup :is(input,textarea,select){font-size:12px;border-radius:0;padding:5px}.customer-popup .cc-form-tabs .btn{font-size:11px;padding:4px 8px;border-radius:0}@media(max-width:900px){#content .cc-compact{grid-template-columns:210px minmax(0,1fr)}#content .cc-compact .cc-info{grid-template-columns:1fr}#content .cc-compact .cc-facts{grid-template-columns:1fr}#content .cc-compact .cc-right-actions{border-top:1px solid #b6c9ce}}

.fleet-qr-code{width:72px;height:72px;background:#fff;flex:none}.fleet-qr-code img{max-width:none;width:72px;height:72px}.barcode-label .fleet-qr-code{margin:4px auto}.asset-barcode-inline .fleet-qr-code{margin-right:12px}

.completed-record-facts{display:grid;grid-template-columns:170px minmax(0,1fr);gap:8px 16px;margin:0 0 18px}.completed-record-facts dt{font-weight:600}.completed-record-facts dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.completed-record-facts+button{margin-right:8px}

/* Compact primary entry screens without hiding fields or save actions. */
body #content .workspace-entry-screen:has(#booking-commercial-lines) .form-grid,body #content .workspace-entry-screen:has([name=site_location]) .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 12px}
body #content .workspace-entry-screen:has(#booking-commercial-lines) :is(input,select),body #content .workspace-entry-screen:has([name=site_location]) :is(input,select){min-height:30px;padding:5px 8px}
body #content .workspace-entry-screen:has(#booking-commercial-lines) :is(h3,p){margin:5px 0}
body #content .workspace-entry-screen:has(#booking-commercial-lines) textarea{min-height:45px;height:45px}
body #content .quote-editor .quote-paper{padding:10px 14px}
body #content .quote-editor .quote-paper-head{gap:12px;grid-template-columns:minmax(200px,1fr) minmax(380px,1.3fr)}
body #content .quote-editor .quote-meta{gap:6px;grid-template-columns:repeat(3,minmax(0,1fr))}
body #content .quote-editor .quote-to{min-height:0;padding:8px;line-height:1.3}
body #content .quote-editor .quote-lines :is(input,select){min-height:30px;padding:4px 6px}
body #content .quote-editor .quote-lines textarea{min-height:38px;height:38px}
body #content .quote-editor .quote-standard-terms{font-size:12px}
body #content .quote-editor :is(.quote-editor-toolbar,.quote-editor-footer){position:sticky;z-index:4;padding:7px 12px}
body #content .quote-editor .quote-editor-toolbar{top:0}
body #content .quote-editor .quote-editor-footer{bottom:0}
@media(max-width:800px){body #content .quote-editor .quote-paper-head{grid-template-columns:1fr}body #content .workspace-entry-screen:has(#booking-commercial-lines) .form-grid,body #content .workspace-entry-screen:has([name=site_location]) .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

#upgrade-module-header{display:flex;flex-wrap:wrap;gap:6px;padding:7px 16px;background:#f3f6fa;border-bottom:1px solid #d3e0ea}
#upgrade-module-header .btn{display:flex;align-items:center;gap:5px}
.quotation-view-frame{width:100%;height:75vh;min-height:500px;border:1px solid #d3e0ea}
.upgrade-import [data-upload]{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.upgrade-import [data-upload] label{display:grid;gap:5px}
.upgrade-import [data-preview] .table-wrap{max-height:55vh;overflow:auto}
[data-inline-add]{background:#f3f7fa;padding:10px;display:flex;gap:9px;flex-wrap:wrap}
[data-inline-add] label{display:grid;gap:4px}
@media print{#upgrade-module-header{display:none!important}}

/* Quotation serial-first editor and customer attention field. */
.quote-lines th:nth-child(1){width:34px}.quote-lines th:nth-child(2){width:180px}.quote-lines th:nth-child(3){width:240px}.quote-lines th:nth-child(4){width:64px}.quote-lines th:nth-child(5){width:54px}.quote-lines th:nth-child(n+6):nth-child(-n+9){width:100px}.quote-lines th:nth-child(10){width:84px}.quote-lines th:nth-child(11){width:120px}.quote-to-label{font-weight:400;margin-bottom:7px}.quote-to>strong{display:block}.quote-attn{font-size:12px}.quote-attn-editor{display:grid;gap:4px;margin-top:8px}.introduction-review{width:100%;min-width:0}.introduction-review [data-review-error]{color:#a62525}.introduction-review .lead-customer-grid{margin-bottom:12px}

.quote-lines th:nth-child(2){width:320px}.quote-lines th:nth-child(3){width:64px}.quote-lines th:nth-child(4){width:54px}.quote-lines th:nth-child(n+5):nth-child(-n+8){width:100px}.quote-lines th:nth-child(9){width:84px}.quote-lines th:nth-child(10){width:120px}.quote-lines th:last-child{width:40px!important}.ql-equipment-cell .ql-description{margin-top:5px}

/* Breadcrumbs replace the redundant top module-button bar. */
#upgrade-module-header{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important}

/* Document closing content is configured in Designer, not the entry form.
   Keep its markup for live designer updates and the clean print clone. */
@media screen{
 #content .quote-editor .quote-standard-terms,
 #content .quote-editor .quote-paper-footer{display:none!important}
}

/* Compact New Lead: three columns and correctly sized choice controls. */
body #dialog-form.compact-lead-entry .form-grid,
body #dialog-form.compact-lead-entry .lead-customer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px}
body #dialog-form.compact-lead-entry .form-field,
body #dialog-form.compact-lead-entry .lead-customer-grid>label{min-width:0;gap:4px;margin:0;font-size:12px}
body #dialog-form.compact-lead-entry .form-field.full{grid-column:1/-1}
body #dialog-form.compact-lead-entry :is(input:not([type=radio]):not([type=checkbox]),select){box-sizing:border-box;width:100%;height:32px!important;min-height:32px!important;padding:4px 8px!important;font-size:12px}
body #dialog-form.compact-lead-entry textarea{box-sizing:border-box;width:100%;height:42px!important;min-height:42px!important;padding:5px 8px!important;font-size:12px}
body #dialog-form.compact-lead-entry [data-customer-choice]{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;padding:6px 12px;margin:0;border:1px solid #cbd9e2;border-radius:5px}
body #dialog-form.compact-lead-entry [data-customer-choice] legend{font-size:12px;padding:0 5px;width:auto}
body #dialog-form.compact-lead-entry [data-customer-choice]>label,
body #dialog-form.compact-lead-entry [data-send-prompt]{display:flex;align-items:center;gap:7px;margin:0;font-size:12px}
body #dialog-form.compact-lead-entry :is(input[type=radio],input[type=checkbox]){appearance:auto;width:16px!important;height:16px!important;min-height:16px!important;min-width:16px!important;padding:0!important;margin:0!important;flex:none;box-shadow:none}
body #dialog-form.compact-lead-entry .lead-selector-label{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-height:24px;margin:0}
body #dialog-form.compact-lead-entry .lead-selector-label>label{margin-right:auto}
body #dialog-form.compact-lead-entry .btn{font-size:11px!important;padding:4px 7px!important;min-height:25px!important;line-height:1.2}
body #dialog-form.compact-lead-entry .lead-inline-tools{display:flex;flex-wrap:wrap;align-items:center;gap:5px;grid-column:auto;padding:0;margin:4px 0 0}
body #dialog-form.compact-lead-entry .lead-inline-tools small{font-size:10px;width:100%;line-height:1.2;margin:0}
body #dialog-form.compact-lead-entry .lead-transport-details{grid-column:span 2}
body #dialog-form.compact-lead-entry [data-new-customer]{padding:8px 10px;border:1px solid #cbd9e2;border-radius:5px}
body #dialog-form.compact-lead-entry h3{font-size:14px;margin:0 0 7px}
body #dialog-form.compact-lead-entry .form-field>small{font-size:10px;line-height:1.25}
body #dialog-form.compact-lead-entry [hidden]{display:none!important}
body .workspace-entry-screen:has(.compact-lead-entry) .modal-head{min-height:0!important;padding:8px 12px!important}
body .workspace-entry-screen:has(.compact-lead-entry) .modal-body{padding:12px!important}
body #dialog-form.compact-lead-entry .modal-foot{position:sticky;bottom:0;z-index:3;padding:8px 12px!important;background:white;border-top:1px solid #d4dee7}
@media(max-width:900px){body #dialog-form.compact-lead-entry .form-grid,body #dialog-form.compact-lead-entry .lead-customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){body #dialog-form.compact-lead-entry .form-grid,body #dialog-form.compact-lead-entry .lead-customer-grid{grid-template-columns:1fr}body #dialog-form.compact-lead-entry .lead-transport-details{grid-column:auto}}
.financial-report-frame.accounting-classic-frame{height:calc(100vh - 85px);height:calc(100svh - 85px);min-height:470px;border-radius:0;background:white}
/* Four-column customer entry layout, scoped to the customer editor. */
body #content #cc-form .cc-form-grid,body #modal-root #cc-form .cc-form-grid,body #cc-form .cc-form-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px 12px!important;align-items:start}
body #cc-form .cc-form-grid[hidden]{display:none!important}
body #cc-form .cc-form-grid>label{min-width:0!important;display:grid;gap:4px;font-size:12px}
body #cc-form .cc-form-grid>label.cc-wide{grid-column:span 2!important}
body #cc-form .cc-form-grid>p{grid-column:1/-1!important}
body #cc-form .cc-form-grid input,body #cc-form .cc-form-grid select,body #cc-form .cc-form-grid textarea{width:100%!important;min-width:0!important;box-sizing:border-box}
body #cc-form .cc-form-grid textarea{min-height:54px!important;height:54px}
body #cc-form #cc-copy-address{grid-column:span 2!important}
@media(max-width:950px){body #content #cc-form .cc-form-grid,body #modal-root #cc-form .cc-form-grid,body #cc-form .cc-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:550px){body #content #cc-form .cc-form-grid,body #modal-root #cc-form .cc-form-grid,body #cc-form .cc-form-grid{grid-template-columns:minmax(0,1fr)!important}body #cc-form .cc-form-grid>label.cc-wide,body #cc-form #cc-copy-address{grid-column:1!important}}
/* Customer entry already has a page title; remove the redundant coloured modal ribbon. */
body .workspace-entry-screen:has(#cc-form) .modal-head,body .modal:has(#cc-form)>.modal-head,body .record-screen-root:has(#cc-form) .modal-head{display:none!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important}
/* Managed customer choice controls. */
body #cc-form .cc-choice-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:3px}
body #cc-form .cc-choice-actions .btn{padding:4px 8px;min-height:26px;font-size:11px}
body .customer-centre .cc-tree>label{display:grid;gap:4px;margin:7px 10px;font-size:11px}
body .customer-centre .cc-tree>label select{width:100%;min-width:0;box-sizing:border-box;padding:6px}
/* Compact customer entry: omit redundant section navigation and decorative strip. */
body form:has(#cc-form)>.entry-section-breadcrumbs,body form:has(#cc-form) .entry-section-heading[data-entry-heading]{display:none!important}
body form:has(#cc-form) .form-grid{padding-top:0!important;margin-top:0!important;gap:8px!important}
body #cc-form{padding:0!important;margin:0!important}
body #cc-form .cc-form-top{margin:0 0 8px!important;padding:0!important}
body #cc-form .cc-form-tabs{margin:6px 0 9px!important;padding-top:0!important}
body #cc-form .cc-form-grid{gap:7px 10px!important;padding:0!important;margin:0!important}
body #cc-form .cc-form-grid input,body #cc-form .cc-form-grid select{height:30px!important;min-height:30px!important;padding:5px 7px!important}
body #cc-form .cc-form-grid textarea{height:44px!important;min-height:44px!important}
body form:has(#cc-form) [data-task-step-guide]{display:none!important}
body .workspace-entry-screen:has(#cc-form){padding-top:8px!important;padding-bottom:8px!important}

body #cc-form .cc-price-note{font-size:11px;line-height:1.4;color:#627b8c}
body #cc-form .cc-price-preview{display:grid;grid-template-columns:1fr 90px;gap:5px;align-items:center;font-size:11px;margin-top:5px;padding:7px;background:#f1f7fc;border:1px solid #d4e4f1;border-radius:4px}
body #cc-form .cc-price-preview output{grid-column:1/-1;color:#175b91;font-weight:600}
body #cc-form .cc-form-top{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(180px,1fr) auto!important;gap:12px!important;align-items:end!important}
body #cc-form .cc-form-top>label{min-width:0;display:grid;gap:4px}
body #cc-form .cc-form-top>label:has([name=inactive]){display:flex;align-items:center;gap:5px;padding-bottom:7px}
body #cc-form .cc-form-top input:not([type=checkbox]){width:100%;box-sizing:border-box}
@media(max-width:650px){body #cc-form .cc-form-top{grid-template-columns:minmax(0,1fr)!important}}
body #cc-form .cc-top-project-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:7px 0 10px}
body #cc-form .cc-top-project-fields>label{display:grid;gap:4px;min-width:0;font-size:12px}
body #cc-form .cc-top-project-fields input,body #cc-form .cc-top-project-fields select{width:100%;min-width:0;box-sizing:border-box;height:30px}
@media(max-width:650px){body #cc-form .cc-top-project-fields{grid-template-columns:minmax(0,1fr)}}
/* Customer, project, site and TRN share the compact top row. */
body #cc-form .cc-form-top{grid-template-columns:minmax(180px,1.3fr) minmax(160px,1fr) minmax(160px,1fr) minmax(150px,.85fr) auto!important;align-items:start!important;gap:10px!important}
body #cc-form .cc-form-top>label:has([name=inactive]){padding-top:23px!important;padding-bottom:0!important;font-size:11px;white-space:nowrap}
body #cc-form .cc-form-top input:not([type=checkbox]),body #cc-form .cc-form-top select{height:30px!important;min-width:0!important;width:100%!important;box-sizing:border-box}
@media(max-width:1000px){body #cc-form .cc-form-top{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:550px){body #cc-form .cc-form-top{grid-template-columns:minmax(0,1fr)!important}}
/* Hidden customer tabs must override four-column grid presentation. */
body #content #cc-form .cc-form-grid[hidden],body #modal-root #cc-form .cc-form-grid[hidden],body #cc-form .cc-form-grid[hidden],body #content #cc-form [data-cc-form-panel][hidden],body #modal-root #cc-form [data-cc-form-panel][hidden]{display:none!important}
