:root{--ink:#232e27;--forest:#2b4b3f;--forest2:#365b4d;--walnut:#67513e;--cream:#f8f7f3;--paper:#fff;--line:#e5e6de;--muted:#72786f;--green-bg:#e9f2ea;--orange:#a56624;--orange-bg:#fff2e3;--red:#a83f40;--red-bg:#ffebeb;--blue:#405f86;--shadow:0 9px 28px rgba(24,36,28,.06);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:#f6f7f4}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}a{color:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{width:252px;background:#243d33;color:#dfe9df;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:28px 14px 16px;flex-shrink:0}.brand{display:flex;align-items:center;gap:12px;padding:0 13px 27px;color:#fff}.brand-mark{height:38px;width:38px;display:grid;place-items:center;background:#f2e8d6;color:#233b2f;border-radius:12px}.brand-name{font-size:16px;font-weight:800;letter-spacing:-.35px}.brand-sub{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:#a5c0b0;margin-top:4px}.side-label{margin:18px 14px 9px;font-size:10px;letter-spacing:1.6px;text-transform:uppercase;color:#9db4a4;font-weight:700}.nav-btn{display:flex;align-items:center;gap:13px;width:100%;border:0;border-radius:10px;padding:13px 15px;background:transparent;color:#c3d2c9;text-align:left;font-size:13px;font-weight:600;margin:2px 0}.nav-btn svg{opacity:.9}.nav-btn.active,.nav-btn:hover{background:#3c594b;color:#fff}.side-footer{margin-top:auto;border-top:1px solid #456052;padding:19px 12px 3px;display:flex;align-items:center;gap:10px;font-size:12px;color:#becfc3}.avatar{border-radius:50%;height:35px;width:35px;background:#e5decd;color:#33483b;display:grid;place-items:center;font-weight:800;flex-shrink:0}.main-shell{flex:1;min-width:0}.topbar{height:85px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid var(--line);background:#fff;gap:14px}.bread{font-size:12px;color:#768078}.crumb-title{font-weight:800;font-size:15px;margin-top:5px}.top-actions{display:flex;gap:12px;align-items:center}.select-company{border:1px solid var(--line);border-radius:9px;background:#f9faf7;color:#314b3d;padding:11px 12px;max-width:300px;font-weight:700;font-size:12px}.demo-tag{background:#fbf2df;color:#896222;display:inline-flex;align-items:center;gap:5px;border:1px solid #eadfc3;border-radius:20px;padding:7px 11px;font-size:10px;white-space:nowrap;font-weight:700;text-transform:uppercase;letter-spacing:.6px}.content{padding:34px 38px 65px;max-width:1550px;margin:auto}.mobile-header,.mobile-nav{display:none}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:24px}.eyebrow{font-size:10px;color:#668274;letter-spacing:2px;text-transform:uppercase;font-weight:800;margin:0 0 9px}.page-title{font-weight:800;font-size:30px;letter-spacing:-1px;margin:0}.page-description{font-size:13px;color:var(--muted);margin:8px 0 0;line-height:1.7}.page-actions{display:flex;gap:9px;align-items:center}.button{border:0;border-radius:10px;padding:11px 17px;background:#e9ede8;color:#30463b;font-size:12px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;min-height:41px}.button.primary{background:var(--forest);color:white}.button.primary:hover{background:#1e372d}.button.secondary{border:1px solid var(--line);background:#fff}.button.plain{background:transparent;border:1px solid var(--line)}.button.danger{background:#fff0ee;color:#a1423a}.button.small{padding:8px 11px;min-height:33px;font-size:11px}.button.full{width:100%}.button:focus-visible,.nav-btn:focus-visible,.tab:focus-visible{outline:3px solid #9ab8a6;outline-offset:2px}.icon{width:18px;height:18px;display:inline-block;vertical-align:middle;flex-shrink:0}.icon.sm{width:15px;height:15px}.icon.lg{width:22px;height:22px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.metric-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px 23px;box-shadow:var(--shadow)}.metric-top{display:flex;align-items:center;justify-content:space-between;color:#6b756b;gap:12px}.metric-label{font-size:12px;font-weight:650}.metric-icon{width:35px;height:35px;background:#edf2eb;color:#45644e;border-radius:10px;display:grid;place-items:center}.metric-value{font-size:28px;letter-spacing:-1.1px;font-weight:800;margin:14px 0 2px}.metric-helper{font-size:11px;color:#8a9289}.two-col{display:grid;grid-template-columns:1.45fr 1fr;gap:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:var(--shadow);margin-bottom:18px}.panel-head{padding:20px 23px;border-bottom:1px solid #edf0e9;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head h2{font-size:15px;margin:0;font-weight:800}.panel-head p{color:#7c887b;margin:5px 0 0;font-size:11px}.panel-body{padding:22px}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:1.1px;color:#889184;font-weight:800;padding:15px 20px;background:#fafbf9}.data-table td{padding:16px 20px;border-top:1px solid #f0f1ed;vertical-align:middle}.data-table tbody tr:hover{background:#fbfcfa}.data-table .name{font-weight:800;color:#293b30}.data-table .sub{font-size:10px;color:#93998f;margin-top:4px}.data-table .number{font-weight:750;font-variant-numeric:tabular-nums}.empty{padding:35px;text-align:center;color:#879188;font-size:13px}.pill{padding:6px 9px;border-radius:8px;font-size:10px;font-weight:800;white-space:nowrap;display:inline-block}.pill.pending{color:#9b651a;background:#fff2da}.pill.open{color:#31744e;background:#e5f4e9}.pill.closed{color:#6d7473;background:#e8ebeb}.pill.pre{color:#8c692d;background:#faf0d8}.pill.flag{background:#fce5e1;color:#9a4034}.list-link{text-decoration:none;font-weight:750;color:#365b4b}.list-link:hover{text-decoration:underline}.notice{padding:15px 17px;border-radius:11px;background:#edf3ec;border:1px solid #d7e3d4;display:flex;align-items:flex-start;gap:10px;color:#405d45;font-size:12px;line-height:1.6;margin-bottom:18px}.notice.warning{background:#fff5e5;border-color:#f1e2be;color:#805c26}.notice.danger{background:#fcecec;border-color:#f3dbd7;color:#943b34}.notice svg{margin-top:1px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.step{padding:16px;border:1px solid var(--line);background:#fbfcf9;border-radius:11px}.step-num{font-size:10px;color:#6a8e72;font-weight:800;letter-spacing:1px}.step-title{font-size:13px;font-weight:800;margin:8px 0 4px}.step-sub{font-size:11px;color:var(--muted);line-height:1.5}.stack{display:flex;flex-direction:column;gap:12px}.activity-item{display:flex;align-items:flex-start;gap:11px;padding:12px 0;border-bottom:1px solid #f0f1ed}.activity-item:last-child{border:0}.activity-dot{background:#e8eee7;color:#3f5a45;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;flex-shrink:0}.activity-text{font-size:12px;font-weight:650;line-height:1.45}.activity-meta{font-size:10px;color:#96a096;margin-top:5px}.progress-track{height:7px;background:#edf0eb;border-radius:50px;overflow:hidden}.progress-fill{background:#6b9270;height:100%;border-radius:50px}.row-split{display:flex;align-items:center;justify-content:space-between;gap:12px}.block-title{font-size:18px;font-weight:800;letter-spacing:-.4px;margin:0 0 13px}.small-muted{color:var(--muted);font-size:11px}.detail-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field{display:flex;flex-direction:column;gap:6px}.field.span2{grid-column:1/-1}.field label{font-size:11px;color:#485e4e;font-weight:800}.field input,.field select,.field textarea{border:1px solid #dce3db;background:#fff;border-radius:9px;padding:11px 12px;min-height:40px;color:#293b2f;font-size:13px;outline:none;width:100%}.field input:focus,.field select:focus,.field textarea:focus{border-color:#769c80;box-shadow:0 0 0 3px #e1ede2}.field textarea{resize:vertical;min-height:70px}.field-help{color:#8b958c;font-size:10px;line-height:1.4}.line-item{display:grid;grid-template-columns:minmax(0,2fr) 75px 110px 32px;gap:8px;align-items:center;margin-bottom:9px}.line-item input{min-width:0;border:1px solid #dce3db;border-radius:8px;padding:10px 10px;font-size:12px;width:100%}.line-item .remove{background:#f8eeec;border:0;height:32px;width:32px;border-radius:8px;color:#ab5a4e}.summary-strip{background:#f2f5ef;padding:14px 17px;border-radius:10px;font-size:13px;font-weight:800;display:flex;justify-content:space-between;margin-top:13px}.modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(19,33,25,.52);display:flex;align-items:center;justify-content:center;padding:20px}.modal{width:min(100%,650px);max-height:90vh;overflow-y:auto;border-radius:17px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.26)}.modal-head{padding:22px 25px 18px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.modal-head h2{font-size:21px;letter-spacing:-.5px;margin:0}.modal-head p{font-size:12px;color:var(--muted);line-height:1.6;margin:6px 0 0}.modal-body{padding:22px 25px 25px}.modal-actions{margin-top:21px;display:flex;justify-content:flex-end;gap:9px}.close{border:none;background:#eef0eb;border-radius:8px;height:33px;width:33px;display:grid;place-items:center}.tabs{display:flex;gap:9px;margin-bottom:18px;border-bottom:1px solid #e5e9e2}.tab{padding:11px 13px;color:#718071;border:0;background:transparent;border-bottom:3px solid transparent;font-size:12px;font-weight:750}.tab.active{border-color:var(--forest);color:var(--forest)}.empty-icon{width:50px;height:50px;border-radius:15px;background:#eff3ec;display:grid;place-items:center;margin:0 auto 12px}.workspace-note{background:#fff7ec;border:1px solid #f0dec3;color:#886124;padding:13px 16px;border-radius:11px;font-size:11px;line-height:1.6;margin-top:12px}.receipt-preview{margin-top:9px;border:1px dashed #c9d4c7;padding:9px;border-radius:10px;background:#f9fbf9}.receipt-preview img{display:block;max-height:170px;max-width:100%;margin:auto;object-fit:contain}.footer-note{color:#8c978d;text-align:center;font-size:10px;padding-top:14px}.mini-kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.mini-kpi{background:#f8faf6;border:1px solid #eef1e9;padding:14px;border-radius:9px}.mini-kpi .caption{font-size:10px;color:#7e887d;margin-bottom:7px}.mini-kpi .value{font-size:17px;font-weight:800}.file-tag{display:inline-block;font-size:10px;padding:4px 7px;border-radius:7px;background:#ebefeb;color:#466650}.header-sub-actions{display:flex;gap:10px}.subtle-link{color:#3c6650;font-size:12px;font-weight:750;background:none;border:0;padding:0}.print-sheet{font-family:Georgia,serif;color:#232e27;padding:36px}.print-sheet h1{font-size:33px;margin-bottom:10px}.print-sheet table{width:100%;border-collapse:collapse}.print-sheet td,.print-sheet th{border-bottom:1px solid #ccc;padding:9px;text-align:left}.print-sheet .print-summary{font-size:22px;font-weight:bold;text-align:right;padding-top:18px}.quote-document{max-width:700px;border:1px solid #ebede9;border-radius:12px;padding:27px;margin:12px 0 0;background:#fff}.quote-document h2{font-size:25px;margin:0}.quote-document table{width:100%;border-collapse:collapse;margin-top:19px}.quote-document th,.quote-document td{padding:10px 6px;border-bottom:1px solid #ebede9;font-size:12px;text-align:left}.quote-document td:last-child,.quote-document th:last-child{text-align:right}.quote-document .amount{font-size:21px;font-weight:800;text-align:right;margin-top:18px}.hidden{display:none!important}@media(max-width:1140px){.metrics{grid-template-columns:repeat(2,1fr)}.two-col,.detail-grid{grid-template-columns:1fr}.sidebar{width:215px}.topbar{padding:0 24px}.content{padding:26px 24px 50px}}@media(max-width:760px){.sidebar,.topbar{display:none}.mobile-header{display:flex;height:68px;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid var(--line);padding:0 16px;position:sticky;top:0;z-index:20}.mobile-brand{font-size:15px;font-weight:800;display:flex;align-items:center;gap:9px}.mobile-brand .brand-mark{height:32px;width:32px;border-radius:9px}.mobile-header .select-company{max-width:165px;font-size:10px;padding:8px}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;z-index:35;background:#fff;border-top:1px solid var(--line);padding:8px 4px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -2px 15px #263d2512}.mobile-nav button{display:flex;flex-direction:column;align-items:center;gap:4px;background:none;border:0;font-size:10px;color:#778579;font-weight:650;padding:4px}.mobile-nav button.active{color:#2c5944}.mobile-nav button .icon{width:20px;height:20px}.content{padding:24px 15px 115px}.page-header{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:18px}.page-title{font-size:25px}.page-actions{width:100%}.page-actions .button{flex:1}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric-card{padding:16px}.metric-value{font-size:23px}.metric-label{font-size:11px}.metric-icon{width:30px;height:30px}.data-table th,.data-table td{padding:14px 12px}.data-table{font-size:11px}.table-scroll{overflow:auto}.panel-head{padding:16px}.panel-body{padding:15px}.steps{grid-template-columns:1fr}.field-grid{grid-template-columns:1fr}.field.span2{grid-column:auto}.modal-backdrop{align-items:flex-end;padding:0}.modal{border-radius:17px 17px 0 0;max-height:93vh;width:100%;padding-bottom:env(safe-area-inset-bottom)}.modal-head{padding:18px}.modal-body{padding:18px}.line-item{grid-template-columns:minmax(0,2fr) 55px 77px 28px;gap:4px}.line-item input{font-size:11px;padding:9px 6px}.line-item .remove{width:28px}.quote-document{padding:15px}.mobile-text-hide{display:none}}@media print{.sidebar,.topbar,.mobile-header,.mobile-nav,.page-header,.demo-tag,.no-print,.notice,.footer-note{display:none!important}.app-shell,.main-shell,.content{display:block;padding:0;margin:0}.panel{box-shadow:none}.quote-document{border:0}}
/* Export controls and compact tax-review panel */
.export-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-bottom:14px}.export-toolbar>span{font-size:11px;color:var(--muted,#66776d);margin-right:auto}.export-toolbar .button{white-space:nowrap}.field label input[type="checkbox"]{width:auto;height:auto;display:inline-block;margin-right:7px;vertical-align:middle}.field-grid .field.span2{grid-column:span 2}
@media (max-width:630px){.export-toolbar{justify-content:flex-start}.export-toolbar>span{width:100%}.export-toolbar .button{flex:1;justify-content:center;min-width:0}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.sidebar,.topbar,.mobile-header,.mobile-nav,.export-toolbar,.footer-note,.page-actions,.side-footer,button,.tabs{display:none !important}.app-shell,.main-shell,.content{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important}.panel{break-inside:avoid}.page-header{margin-top:0!important}body{background:#fff!important;color:#111!important}.notice{border:1px solid #aaa!important} }

/* Comparison build: approved dark navy performance gauges, preserving existing navigation. */
.performance-dashboard{background:linear-gradient(145deg,#101d31,#1c3550 65%,#13263e);border:1px solid #34506b;color:#f5f8fc;border-radius:19px;padding:24px;margin-bottom:18px;box-shadow:0 18px 38px #152c432a}.performance-head h2{font-size:23px;margin:2px 0 5px}.performance-head p:not(.eyebrow){color:#b8c7d9;font-size:12px;margin:0 0 22px}.performance-head .eyebrow{color:#8eb9dc}.performance-gauges{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.gauge-card{background:#ffffff0b;border:1px solid #ffffff24;border-radius:15px;padding:17px 10px;text-align:center;min-width:0}.gauge-title{font-size:12px;font-weight:750;color:#dce9f7;min-height:32px}.gauge-arc{width:min(100%,190px);aspect-ratio:2/1;margin:14px auto 0;position:relative;overflow:hidden}.gauge-arc:before{content:'';position:absolute;inset:0;border-radius:200px 200px 0 0;background:conic-gradient(from 270deg at 50% 100%,#5bd0c0 0%,#69a9f1 var(--gauge-percent),#40526b var(--gauge-percent),#40526b 50%,transparent 50%);clip-path:inset(0 0 0 0)}.gauge-arc:after{content:'';position:absolute;left:15%;right:15%;bottom:-2px;height:70%;border-radius:180px 180px 0 0;background:#192c43}.gauge-center{position:absolute;z-index:2;bottom:0;left:0;right:0}.gauge-center strong{font-size:clamp(13px,1.7vw,23px);font-weight:800;letter-spacing:-.5px}.gauge-help{font-size:10px;color:#a9bed4;line-height:1.5;min-height:32px}.compact-metrics{grid-template-columns:repeat(2,minmax(0,1fr));max-width:680px}.export-toolbar-bottom{margin:28px 0 8px;border-top:1px solid var(--line);padding-top:18px}.export-toolbar-bottom span{margin-right:auto}@media(max-width:900px){.performance-gauges{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.performance-dashboard{padding:18px 12px}.performance-gauges{gap:8px}.gauge-card{padding:14px 6px}.gauge-title{font-size:11px}.gauge-center strong{font-size:15px}.gauge-help{font-size:9px}.export-toolbar-bottom{display:flex;flex-wrap:wrap;gap:8px}.export-toolbar-bottom span{width:100%}}

/* Comparison revision: unified navy application theme, not dashboard-only. */
:root{color-scheme:dark;--ink:#eef4fc;--forest:#2e76a9;--forest2:#398bc3;--walnut:#c5a982;--cream:#0b1524;--paper:#14243a;--line:#30455f;--muted:#a6b9ce;--green-bg:#173e42;--orange:#f2bf7c;--orange-bg:#423322;--red:#ff9b9d;--red-bg:#432a38;--blue:#88baff;--shadow:0 12px 32px rgba(0,0,0,.22)}
body{background:#0b1524;color:var(--ink)}.sidebar{background:#091625;color:#e3edf8;border-right:1px solid #29405b}.brand-mark,.mobile-brand .brand-mark{background:#28435e;color:#e5f2ff}.brand-sub,.side-label{color:#9ab4cf}.nav-btn{color:#b8cbe0}.nav-btn.active,.nav-btn:hover{background:#244563;color:#fff}.side-footer{border-color:#30455f;color:#afc5d9}.avatar{background:#315575;color:#fff}.topbar,.mobile-header,.mobile-nav{background:#102036;border-color:#30455f;color:#eef4fc}.bread,.footer-note{color:#9db1c8}.select-company{background:#1b3048;color:#f0f6ff;border-color:#3c5671}.demo-tag{background:#263c4d;color:#b7d7ec;border-color:#3c5973}.content{background:#0b1524}.page-title,.block-title{color:#f2f7fd}.eyebrow{color:#8fc6f0}.page-description,.small-muted{color:#a6b9ce}.button{background:#263f59;color:#eaf3ff}.button.primary{background:#327fb6;color:#fff}.button.primary:hover{background:#4195d1}.button.secondary,.button.plain{background:#1a2c43;color:#e6f2ff;border-color:#39516e}.button.danger{background:#462c39;color:#ffb8b8}.metric-card,.panel,.quote-document,.modal{background:#14243a;color:#edf4fc;border-color:#30455f}.metric-top,.metric-helper,.panel-head p,.data-table .sub,.activity-meta,.mini-kpi .caption{color:#a8bad0}.metric-icon,.activity-dot,.empty-icon{background:#25425d;color:#b6ddfa}.panel-head{border-color:#30455f}.panel-head h2,.data-table .name,.mini-kpi .value{color:#f2f7ff}.data-table th{background:#1b3048;color:#b5c9df}.data-table td{border-color:#30455f}.data-table tbody tr:hover{background:#1b3048}.empty{color:#a6b9ce}.notice{background:#193b43;color:#c2e8e0;border-color:#32636a}.notice.warning,.workspace-note{background:#403423;color:#f5d9a4;border-color:#6e5938}.notice.danger{background:#422b37;color:#ffbfc0;border-color:#6e4654}.step,.mini-kpi{background:#1b3048;border-color:#30455f}.step-title,.activity-text{color:#eaf3ff}.step-sub{color:#b0c2d6}.activity-item{border-color:#30455f}.pill.pending,.pill.pre{background:#483822;color:#f5cf91}.pill.open{background:#17423c;color:#a8e6ca}.pill.closed{background:#2d4055;color:#d3e0ed}.pill.flag{background:#4b303b;color:#ffb4b4}.list-link,.subtle-link{color:#8fd0ff}.progress-track{background:#2b435c}.progress-fill{background:#57b9d2}.field label{color:#c7def3}.field input,.field select,.field textarea,.line-item input{background:#0f2035;color:#f2f7fd;border-color:#405a75}.field input:focus,.field select:focus,.field textarea:focus{border-color:#78b8e8;box-shadow:0 0 0 3px #3979a744}.field-help{color:#9db3c9}.line-item .remove{background:#4b303b;color:#ffb9b9}.summary-strip{background:#223b55;color:#f2f7fd}.modal-backdrop{background:#030a13bd}.modal-head,.tabs{border-color:#30455f}.modal-head p{color:#a8bad0}.close{background:#2a4059;color:#e9f4ff}.tab{color:#afc3d9}.tab.active{color:#8fd0ff;border-color:#70bde9}.receipt-preview{background:#0f2035;border-color:#405a75}.file-tag{background:#29435b;color:#c3e2f6}.quote-document table th,.quote-document table td{border-color:#30455f}.export-toolbar-bottom{border-color:#30455f}.performance-dashboard{background:linear-gradient(145deg,#12243b,#1b3551 65%,#102239)}.gauge-card{background:#ffffff0c}.mobile-nav button{color:#a7bdd4}.mobile-nav button.active{color:#8ed0ff}
/* Preserve legible white paper for actual printed quote and reports. */
@media print{:root{color-scheme:light}body,.content,.print-sheet{background:#fff!important;color:#111!important}.quote-document{background:#fff!important;color:#111!important;border-color:#bbb!important}.quote-document table th,.quote-document table td{border-color:#bbb!important}}

/* Comparison v3: exports are contextual, below the records, never a top-of-page action. */
.export-toolbar-bottom{margin-top:26px;margin-bottom:8px;border-top:1px solid var(--line);padding-top:16px}
/* v4: compact, touch-friendly quote library controls */
.line-item{grid-template-columns:minmax(0,1.6fr) minmax(0,2fr) 65px 90px auto 32px}
.line-item select{min-width:0;width:100%;background:#0f2035;color:#f2f7fd;border:1px solid #405a75;border-radius:8px;padding:9px 5px;font-size:11px}
@media(max-width:760px){.line-item{grid-template-columns:minmax(0,1fr) 60px 80px 30px;gap:7px;padding:10px 0;border-bottom:1px solid #30455f}.line-item .library-choice{grid-column:1/-1}.line-item [name="description[]"]{grid-column:1/-1}.line-item [data-action="save-line"]{grid-column:1/4;justify-self:start}.line-item .remove{grid-column:4;grid-row:3}}
@media print{.line-item select,.line-item button{display:none!important}}
/* Approved compact Home and dedicated Jobs navigation */
.gauge-button{display:block;width:100%;color:inherit;font:inherit;cursor:pointer}.gauge-button:hover,.gauge-button:focus-visible{outline:2px solid #7dccff;outline-offset:2px;background:#ffffff18}.home-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}.home-quick-actions .button{min-height:62px;justify-content:center;font-size:14px}.jobs-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.jobs-tile{min-height:160px;background:linear-gradient(145deg,#172c45,#1b3854);color:#f0f7ff;border:1px solid #385775;border-radius:17px;text-align:left;padding:20px;display:flex;flex-direction:column;gap:9px;cursor:pointer}.jobs-tile:hover,.jobs-tile:focus-visible{outline:2px solid #7dccff;outline-offset:2px}.jobs-tile>svg{color:#77c3ff}.jobs-tile strong{font-size:17px}.jobs-tile small{color:#b4c9df}.tile-count{display:flex;align-items:center;justify-content:space-between;color:#9fd2f7;margin-top:auto}.job-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:18px 20px;text-align:left;color:#eef6ff;background:transparent;border:0;border-bottom:1px solid #30455f;cursor:pointer}.job-row:hover,.job-row:focus-visible{background:#25415e;outline:2px solid #79c6f7}.job-row span:first-child{display:flex;flex-direction:column;gap:5px}.job-row small{color:#b2c7dc}.job-row span:last-child{display:flex;align-items:center;gap:12px}.job-search{width:100%;background:#172e48;color:white;border:1px solid #47627f;border-radius:10px;padding:14px;margin:0 0 14px}.job-row[hidden]{display:none}@media(max-width:480px){.jobs-tile{padding:15px;min-height:145px}.jobs-tile strong{font-size:15px}.home-quick-actions .button{font-size:12px;padding:10px 6px}.page-actions{flex-wrap:wrap}}

/* v7.4 Quikqote controls: explicit unit and calculated line total */
.line-item{grid-template-columns:minmax(0,1.4fr) minmax(0,1.8fr) 68px minmax(95px,1fr) minmax(110px,1fr) auto 32px;align-items:end}
.quote-unit-price,.quote-line-total{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:11px;color:#c3d8eb}
.quote-unit-price input{width:100%;min-width:0}
.quote-line-total output{display:flex;align-items:center;min-height:38px;padding:8px;border:1px solid #405a75;border-radius:8px;color:#fff;font-weight:600;background:#132b43}
.pipeline-row{cursor:pointer}.pipeline-row:hover{background:rgba(93,153,202,.12)}.pipeline-row:focus-visible{outline:2px solid #73b9ef;outline-offset:-2px}
@media(max-width:760px){.line-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px;gap:8px}.line-item .library-choice,.line-item [name="description[]"]{grid-column:1/-1}.line-item [name="quantity[]"]{grid-column:1}.line-item .quote-unit-price{grid-column:2}.line-item .quote-line-total{grid-column:1/3}.line-item [data-action="save-line"]{grid-column:1/3;grid-row:auto}.line-item .remove{grid-column:3;grid-row:4;align-self:center}}

/* v7.5 clear line-item fields */
.line-item{grid-template-columns:minmax(110px,1.2fr) minmax(150px,1.6fr) 72px 100px 115px 120px auto 32px}
.quote-quantity,.quote-unit{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:11px;color:#c3d8eb}
.quote-quantity input,.quote-unit input{width:100%;min-width:0}
@media(max-width:760px){.line-item{grid-template-columns:repeat(2,minmax(0,1fr)) 32px}.line-item .quote-quantity{grid-column:1}.line-item .quote-unit{grid-column:2}.line-item .quote-unit-price{grid-column:1/3}.line-item .quote-line-total{grid-column:1/3}.line-item [data-action="save-line"]{grid-column:1/3}.line-item .remove{grid-column:3;grid-row:5}}

.expense-detail-link{background:transparent;border:0;text-align:left;color:inherit;padding:8px 6px;display:flex;flex-direction:column;gap:3px;min-height:48px;cursor:pointer;width:100%;border-radius:8px}.expense-detail-link:hover,.expense-detail-link:focus-visible{background:rgba(100,145,190,.12);outline:2px solid transparent}.expense-detail-link .sub{display:block}.expense-detail-row{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #9993;padding:10px 0}.expense-detail-row span{text-align:right;overflow-wrap:anywhere}

/* v7.8 audit corrections: readable mobile expense records, unobstructed job export */
.expense-mobile-cards{display:none}.job-bottom-export{display:flex;justify-content:flex-end;margin:24px 0 12px}
@media(max-width:700px){.expense-mobile-cards{display:grid;gap:10px;padding:12px}.expense-mobile-card{background:#1b314a;border:1px solid #425d79;border-radius:12px;color:#f4f7fc;text-align:left;padding:16px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;min-height:78px}.expense-mobile-card small{display:block;color:#b9cbdc;margin-top:6px}.expense-card-arrow{display:block;flex-basis:100%;color:#8dc6f4}.expense-mobile-cards+.anything{display:none}.expense-mobile-cards{display:grid}.panel:has(.expense-mobile-cards) .table-scroll{display:none}.job-bottom-export .button{width:100%}}

/* Receipt evidence: full-size viewer supports touch pinch zoom in mobile browsers and scrolling. */
.receipt-thumb{display:flex;align-items:center;gap:12px;width:100%;background:#1b314a;color:#eaf3ff;border:1px solid #425d79;border-radius:12px;padding:10px;text-align:left;margin-top:16px}.receipt-thumb img{width:70px;height:80px;object-fit:contain;background:#fff;border-radius:5px}.receipt-zoom-controls{display:flex;justify-content:center;gap:10px;margin-bottom:12px}.receipt-zoom-viewport{overflow:auto;max-height:65vh;touch-action:pan-x pan-y pinch-zoom;border:1px solid #425d79;border-radius:8px}.receipt-zoom-image{display:block;width:100%;height:auto;max-width:none;transform-origin:top left}.expense-mobile-card{cursor:pointer}

/* Hours in one place: simple touch-friendly entries and job filter. */
.hours-card-list{display:grid;gap:12px;padding:14px}.hours-card{padding:16px;background:#192f49;border:1px solid #405c78;border-radius:12px;color:#f0f7ff}.hours-card-head{display:flex;justify-content:space-between;gap:12px}.hours-card-head small{display:block;margin-top:6px;color:#abc5dc}.hours-card-meta{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.hours-card-meta span{padding:5px 9px;border-radius:12px;background:#29435e;font-size:12px}.hours-card-meta .hours-status{background:#334f69;color:#d9eefd}.hours-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.hours-filter-label{font-size:12px;color:#bdd0e2;display:grid;gap:6px}.hours-filter-label select{padding:10px;background:#122b45;color:#fff;border:1px solid #526d87;border-radius:8px;max-width:100%}@media(max-width:700px){.panel-head:has(.hours-filter-label){align-items:stretch;flex-direction:column}.hours-filter-label select{width:100%}.hours-card-actions .button{min-height:44px}}

/* Libraries in Backup and Reset: separate company-scoped controls and explicit safeguards. */
.settings-library-tools{display:grid;gap:10px;border-top:1px solid #425b74;margin-top:12px;padding-top:18px}.settings-library-tools h3{margin:0;color:#f3f8ff;font-size:16px}.settings-library-tools p{margin:0}.library-backup-check{display:flex;align-items:flex-start;gap:10px;font-size:12px;color:#c9d9e9;line-height:1.4;padding:8px 0}.library-backup-check input{margin:2px 0 0;min-width:18px;min-height:18px;accent-color:#8ec5fb}.settings-library-tools .button{min-height:44px}.settings-library-tools .button:disabled{opacity:.5;cursor:not-allowed}

/* Saved item editing and safe removal, touch-friendly. */
.library-row-actions{display:flex;flex-wrap:wrap;gap:8px}.library-row-actions .button{min-height:40px}@media(max-width:700px){.library-row-actions .button{min-height:44px}}

/* v7.8 test pilot: integrated quote-item search and direct browse. */
.line-item{grid-template-columns:minmax(180px,2fr) 74px minmax(95px,1fr) minmax(100px,1fr) minmax(100px,1fr) auto 32px;align-items:end}
.library-entry{grid-column:1;position:relative;min-width:0;display:flex;flex-direction:column;gap:7px}
.library-entry-label{font-size:11px;font-weight:700;color:#b8d0e6}
.library-entry input{width:100%;min-width:0}
.browse-library{justify-content:flex-start;min-height:40px!important;min-width:142px;align-self:flex-start}
.library-results{width:100%;background:#1b3048;border:1px solid #496782;border-radius:12px;padding:8px;max-height:245px;overflow:auto;box-shadow:0 10px 20px #0003;z-index:10}
.library-results[hidden]{display:none}
.library-results-title{font-size:11px;font-weight:700;color:#aed3ef;margin:5px 7px 8px}
.library-option{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:49px;width:100%;background:#10263e;border:1px solid #385674;border-radius:9px;padding:9px;text-align:left;color:#f1f7ff;margin:5px 0}
.library-option span:first-child{min-width:0;display:flex;flex-direction:column;gap:3px}.library-option small{color:#aabed5;font-size:11px}
.library-option-add{color:#8ed0ff;font-size:12px;font-weight:700}
.library-option:focus-visible,.browse-library:focus-visible{outline:3px solid #79bce9;outline-offset:2px}
@media(max-width:760px){.line-item{grid-template-columns:repeat(2,minmax(0,1fr)) 32px;gap:8px}.line-item .library-entry{grid-column:1/-1}.line-item [name="quantity[]"]{grid-column:auto}.line-item .quote-quantity{grid-column:1}.line-item .quote-unit{grid-column:2}.line-item .quote-unit-price,.line-item .quote-line-total,.line-item [data-action="save-line"]{grid-column:1/3}.line-item .remove{grid-column:3;grid-row:auto;align-self:center}.library-results{max-height:220px}}
@media print{.browse-library,.library-results{display:none!important}}

/* v7.9 phone usability pass - only Job File gets an arrival banner. */
.job-arrival{display:flex;flex-direction:column;gap:5px;border:1px solid #507a9c;background:linear-gradient(120deg,#1c4262,#112d49);padding:18px 21px;border-radius:14px;margin-bottom:20px;color:#fff;box-shadow:0 9px 22px #05142336}
.job-arrival-label{font-size:11px;letter-spacing:1.1px;font-weight:800;color:#88d0ff;display:flex;align-items:center;gap:7px}
.job-arrival strong{font-size:clamp(21px,5vw,30px);line-height:1.2;letter-spacing:-.5px}
.job-arrival-sub{font-size:12px;color:#c2d7eb}
.hours-type-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 16px}
.hours-type-button{border:1px solid #496683;border-radius:11px;padding:14px 8px;background:#1a2c44;color:#c3d9ef;font-weight:800;min-height:52px;white-space:normal}
.hours-type-button.selected{background:#2b668a;border-color:#8bd2ff;color:#fff;box-shadow:inset 0 0 0 1px #8bd2ff}
.hours-card-main{border:none;background:transparent;color:inherit;width:100%;padding:0;text-align:left;cursor:pointer}
.hours-card-main:hover,.hours-card-main:focus-visible{outline:2px solid #80c5f6;outline-offset:6px;border-radius:4px}
.hours-card-main .hours-card-meta{pointer-events:none}
.hours-card-actions{border-top:1px solid #335069;padding-top:11px}
.hours-detail-grid{display:grid;grid-template-columns:110px minmax(0,1fr);gap:13px 14px;margin:5px 0 19px;font-size:13px;align-items:start}
.hours-detail-grid>span{color:#8daecb}.hours-detail-grid>b{word-break:break-word}
.hours-detail-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}
.job-activity h3{font-size:14px;margin:20px 0 6px}.job-activity-summary{display:flex;flex-wrap:wrap;gap:8px}.job-activity-summary span{background:#253f58;border-radius:9px;padding:9px 12px;font-size:12px}.job-activity-summary b{margin-left:4px}
.job-activity-row{width:100%;border:0;border-bottom:1px solid #35526a;background:transparent;color:#f1f8ff;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;padding:13px 6px;min-height:57px;cursor:pointer}.job-activity-row:hover,.job-activity-row:focus-visible{background:#1b3853;outline:2px solid #8bd2ff}.job-activity-row span{display:grid;gap:3px}.job-activity-row small{color:#b5cbe0}
@media(max-width:600px){.hours-detail-grid{grid-template-columns:88px minmax(0,1fr)}.hours-detail-actions .button{flex:1;white-space:normal}.job-arrival{padding:15px}.job-activity-row{padding:14px 2px}}

/* Receipt intake: visible per-photo review; no forced horizontal scrolling on phone. */
.bulk-receipts-modal{max-width:820px;width:calc(100vw - 24px)}
.bulk-receipt-queue{display:grid;gap:18px;margin-top:12px}.bulk-receipt-card{border:1px solid #476481;border-radius:14px;padding:16px;background:#152a41;min-width:0}.bulk-receipt-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.bulk-receipt-heading b{font-size:14px;overflow-wrap:anywhere}.bulk-receipt-photo summary{cursor:pointer;color:#9bd1fb;font-size:13px;font-weight:700;padding:10px 0}.bulk-receipt-photo img{max-width:100%;width:auto;max-height:56vh;object-fit:contain;display:block;margin:8px auto 16px;border-radius:8px;background:#fff}.bulk-queue-header{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:21px}.bulk-item-error{margin-top:12px;color:#ffc2b9;font-weight:700;font-size:12px;border:1px solid #b95f51;padding:10px;border-radius:8px}.bulk-review-check{display:flex!important;gap:9px;align-items:start}.bulk-review-check input{width:19px!important;height:19px!important;min-width:19px;margin-top:1px}.bulk-save-bar{margin-top:15px;padding:15px;background:#18324b;border-radius:12px}.bulk-save-error{margin-bottom:12px}.bulk-receipt-card .field-grid{margin-top:14px}@media(max-width:600px){.bulk-receipts-modal{width:calc(100vw - 10px);max-height:92vh}.bulk-receipts-modal .modal-body{padding:13px}.bulk-receipt-card{padding:12px}.bulk-receipt-card .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bulk-receipt-card .field-grid .field{grid-column:span 2}.bulk-receipt-card .field-grid .field input,.bulk-receipt-card .field-grid .field select{width:100%;min-width:0}}

.bulk-data-matches{padding:10px;border-radius:9px;border:1px solid #607c95;font-size:12px;color:#dde9f4}.bulk-data-matches.clear{border-color:#4b856f}.bulk-data-matches.caution{border-color:#b48746;color:#ffe7bb}.bulk-data-matches.blocked{border-color:#d66b6b;color:#ffd5d5}.bulk-distinct-review textarea{width:100%;min-height:55px;resize:vertical}.bulk-distinct-review label{display:block;margin-bottom:8px}

/* Approved toolbelt-and-caddy branding, designed for the existing navy header. */
.brand-art{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:90px;padding:7px 5px 13px}
.brand-full-image{display:block;max-width:100%;width:195px;height:auto;object-fit:contain}
.brand-art .brand-sub{font-size:11px;letter-spacing:.03em;margin-left:5px}
.mobile-header{min-width:0}
.mobile-brand{min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:6px;font-size:14px;line-height:1.02;color:#eaf4ff}
.mobile-logo-icon{width:48px;height:50px;flex:none;object-fit:contain}
.mobile-brand-title{display:flex;flex-direction:column;gap:1px;min-width:0;white-space:nowrap}
.mobile-brand-title>span{font-weight:800;color:#bdcfe7}
.mobile-brand-title strong{font-weight:900;font-size:17px;color:#44a5ff}
.mobile-header .select-company{flex:0 1 46%;min-width:0;max-width:174px}
@media(max-width:400px){.mobile-header{gap:6px;padding:0 9px}.mobile-brand{gap:2px;font-size:12px}.mobile-logo-icon{width:42px;height:44px}.mobile-brand-title strong{font-size:16px}.mobile-header .select-company{max-width:165px}}

/* v8 combined review pilot: compact job context always visible without covering records. */
.job-context-bar{position:sticky;top:0;z-index:19;display:flex;align-items:center;gap:12px;padding:9px 12px;background:#122c47;color:#edf7ff;border:1px solid #52779b;border-radius:10px;box-shadow:0 5px 16px #06182a47;margin-bottom:12px;min-width:0;max-height:64px}
.job-context-back{border:1px solid #527fa7;color:#eef5ff;background:#214766;border-radius:8px;padding:9px 11px;font-weight:750;font-size:12px;flex:none}
.job-context-ident{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.job-context-ident strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.job-context-ident small{color:#bad5e9;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:900px){.job-context-bar{top:68px;padding:7px 9px;gap:7px;border-radius:0 0 10px 10px;margin:-4px 0 12px;max-height:58px}.job-context-back{padding:8px;font-size:11px}.job-context-ident strong{font-size:12px}.job-context-bar .pill{display:none}}
.receipt-library-cta{margin:13px 0 16px}.receipt-library-cta .small-muted{line-height:1.5}
.receipt-suggestions{background:#0e2235;border:1px solid #466781;border-radius:10px;margin:12px 0;padding:13px;display:flex;flex-direction:column;gap:8px;max-width:100%}.receipt-suggestions label{font-size:12px;font-weight:800;color:#c9e3f3}.receipt-suggestions textarea{border-radius:8px;background:#203b56;border:1px solid #5c7f9c;color:white;padding:10px;min-height:65px;max-width:100%;width:100%;font-size:12px;resize:vertical}.receipt-suggestions textarea::placeholder{color:#93b1c7}.receipt-suggestion-buttons{display:flex;flex-wrap:wrap;gap:8px}.receipt-suggestion-buttons .button{white-space:normal;flex:1;min-width:130px}.receipt-suggestion-status{font-size:11px;line-height:1.55;color:#d4e7f3;overflow-wrap:anywhere}
@media(max-width:480px){.receipt-suggestion-buttons{flex-direction:column}.receipt-suggestion-buttons .button{width:100%}.receipt-suggestions{padding:9px}}
@media print{.job-context-bar,.receipt-suggestions,.receipt-library-cta{display:none!important}}

/* v8 verified receipt gate and legible mobile tap target. */
.receipt-verify{display:flex!important;align-items:center;gap:8px;line-height:1.5;cursor:pointer}.receipt-verify input{width:20px!important;height:20px!important;flex:none}.receipt-verify:focus-within{outline:2px solid #8bc8f5;outline-offset:4px;border-radius:4px}

/* Show compact job identity only once the arrival banner scrolls away. */
.job-context-bar{position:fixed;top:12px;left:290px;right:22px;margin:0;max-width:1070px;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-8px);transition:opacity .15s ease,transform .15s ease;z-index:19}
.job-context-bar.job-context-visible{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
@media(max-width:900px){.job-context-bar{position:fixed;top:68px;left:8px;right:8px;margin:0;max-height:58px}}
@media print{.job-context-bar{display:none!important}}

/* v8.1: gauges retain the approved navy/gloss style, with optional hold-and-drag ordering. */
.performance-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.performance-head>div{flex:1;min-width:180px}
.gauge-reorder-toggle{color:#bfe3ff;background:#213c57;border:1px solid #527898;border-radius:10px;padding:9px 12px;cursor:pointer;font-size:12px;font-weight:750;min-height:40px}
.gauge-wrapper{position:relative;transition:box-shadow .15s,border-color .15s,transform .15s}
.gauge-core{display:block;width:100%;height:100%;background:transparent;color:inherit;border:0;padding:0;text-align:center;font:inherit;cursor:pointer}
.gauge-core:focus-visible,.gauge-reorder-toggle:focus-visible,.gauge-order-controls button:focus-visible{outline:3px solid #91d6ff;outline-offset:3px}
.gauge-reorder-mode{border-color:#63b4eb;box-shadow:inset 0 0 0 1px #3f91c5}
.gauge-dragging{opacity:.72;transform:scale(.98);box-shadow:0 0 0 3px #89d2ff}
.gauge-drop-target{border-color:#8cd8b4;box-shadow:0 0 0 3px #8cd8b4}
.gauge-order-controls{display:flex;align-items:center;justify-content:center;gap:11px;margin-top:6px;color:#bed6eb;font-size:10px;font-weight:800;letter-spacing:.8px}
.gauge-order-controls button{border:1px solid #517593;background:#274e6d;color:#fff;min-width:42px;min-height:38px;border-radius:9px;font-size:19px}
@media(max-width:760px){.performance-head{gap:4px}.gauge-reorder-toggle{padding:7px 10px;font-size:11px}.gauge-order-controls{gap:3px}.gauge-order-controls button{min-width:36px}.gauge-wrapper{padding:12px 6px}}

/* Company-specific branding is deliberately restricted to customer identity and documents. */
.company-profile-panel{margin-top:16px}
.company-identity{display:flex;align-items:center;gap:14px;min-width:0}
.company-logo-box{width:88px;height:76px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid #43607d;border-radius:12px;background:#edf4f9;color:var(--customer-primary);overflow:hidden}
.company-logo-preview{max-height:100%;max-width:100%;object-fit:contain;padding:5px}
.company-monogram{font-size:27px;font-weight:900;letter-spacing:-1.5px}
.company-identity-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.company-identity-copy>strong{font-size:17px;line-height:1.3;overflow-wrap:anywhere}
.company-identity-copy>span{color:#a6bdd1;font-size:11px}
.company-palette{display:flex;align-items:center;gap:5px;margin-top:3px}
.company-palette i{width:23px;height:12px;border:1px solid #ffffff60;border-radius:4px}
.company-palette small{font-size:10px;color:#a8bed3;margin-left:4px}
.company-identity.compact{gap:9px}
.company-identity.compact .company-logo-box{width:54px;height:52px;border-radius:9px}
.company-identity.compact .company-monogram{font-size:17px}
.company-identity.compact .company-identity-copy>strong{font-size:13px}
.company-identity.compact .company-identity-copy>span{display:none}
.company-test-workspaces{margin-top:16px;overflow:hidden}
.company-test-workspaces>summary{list-style:none;cursor:pointer;padding:18px 20px;font-size:14px;font-weight:750;display:flex;gap:7px;align-items:center}
.company-test-workspaces>summary::before{content:'▸';font-size:16px;color:#94c8ec}
.company-test-workspaces[open]>summary::before{content:'▾'}
.company-test-workspaces .company-row{border-bottom:1px solid #36506b;padding:10px 0;gap:8px}
.company-test-workspaces .company-row .company-identity-copy>strong{font-size:12px}
.quote-document .company-identity-copy>strong{color:var(--customer-secondary)}
.quote-document .company-logo-box{border-color:var(--customer-primary);background:#f5f7f9}
.quote-document .company-palette small{color:#607080}
.quote-document .eyebrow{color:var(--customer-primary)}
.field input[type="color"]{height:44px;padding:5px;min-width:96px;width:100%;max-width:160px;cursor:pointer}
@media(max-width:760px){.company-test-workspaces>summary{padding:16px}.company-test-workspaces .panel-body{padding:12px}.company-profile-panel .panel-head{gap:7px;align-items:flex-start}.company-profile-panel .panel-head .button{min-width:120px}.company-identity-copy>strong{font-size:15px}}

/* v8.1 dashboard semantics: independent job/overhead costs, provisional gross profit, hour-based job watch */
@media(min-width:1050px){.performance-gauges{grid-template-columns:repeat(5,minmax(0,1fr))}}
.gauge-disclaimer{color:#a8bfd4;font-size:11px;line-height:1.5;margin:15px 0 0}
.job-hours-note{display:block;margin-top:7px;color:#a8cada;font-size:11px;line-height:1.4}
@media(max-width:760px){.performance-gauges .gauge-wrapper:last-child:nth-child(odd){grid-column:1 / -1}.performance-gauges .gauge-wrapper:last-child:nth-child(odd) .gauge-arc{max-width:190px}.gauge-title{min-height:32px}.gauge-disclaimer{font-size:10px}}

/* v8.1: each Job File gets an honest labour-budget gauge; not a claim of completion. */
@media(min-width:1050px){.performance-gauges{grid-template-columns:repeat(4,minmax(0,1fr))}}
.job-progress-summary{display:grid;grid-template-columns:180px 1fr;gap:15px;align-items:center;margin:0 0 18px;padding:17px 22px;border-radius:16px;background:linear-gradient(132deg,#132940,#203e5c);border:1px solid #3a5e7b;color:#f4f9ff;box-shadow:0 11px 28px #152b4426}
.job-progress-chart{max-width:170px;text-align:center}.job-progress-chart-title{font-size:10px;font-weight:850;letter-spacing:1.1px;color:#b1d6ee;margin:5px 0}.job-progress-chart .gauge-arc{max-width:168px;margin:5px auto 0}.job-progress-copy .eyebrow{color:#8dc8ed;margin-bottom:7px}.job-progress-copy h2{font-size:19px;color:#fff;margin:0 0 10px}.job-progress-copy>strong{font-size:14px}.job-progress-copy p{font-size:12px;line-height:1.45;margin:7px 0}.job-progress-copy small{display:block;color:#bfd0de;font-size:10px;line-height:1.5;margin-top:8px}
.job-progress-summary.near{border-color:#b88849}.job-progress-summary.over{border-color:#d27158}.job-progress-summary.unset .gauge-arc{opacity:.65}
@media(max-width:600px){.job-progress-summary{grid-template-columns:115px minmax(0,1fr);gap:10px;padding:13px 12px}.job-progress-chart-title{font-size:9px}.job-progress-chart .gauge-arc{max-width:115px}.job-progress-copy h2{font-size:15px;margin-bottom:5px}.job-progress-copy>strong{font-size:12px}.job-progress-copy p{font-size:11px}.job-progress-copy small{font-size:9px}}

/* v8.1 throughput: preserve navy dashboard, show four money gauges plus operational jobs gauge. */
@media(min-width:1050px){.performance-gauges{grid-template-columns:repeat(5,minmax(0,1fr))}}
.job-stage-panel{background:#f2f6fa;border:1px solid #cddce9;padding:11px 14px;border-radius:13px;margin:-7px 0 19px;color:#213a51;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.job-stage-panel form{display:flex;gap:10px;flex-wrap:wrap;align-items:end;flex:1}
.stage-selector{display:flex;flex-direction:column;gap:3px;font-size:11px;font-weight:700;min-width:145px;flex:1}
.stage-selector select,.stage-selector input{width:100%;min-height:34px;border:1px solid #a3bccf;background:#fff;border-radius:9px;font:inherit;padding:6px 8px;color:#253b51}
.job-stage-panel>small{font-size:10px;line-height:1.4;flex-basis:100%;color:#61768a}
.job-stage-panel .button{white-space:normal}
.job-stage-status{font-weight:650;color:#e4cc9a!important}
@media(max-width:600px){.job-stage-panel{padding:10px}.stage-selector{min-width:120px}}

/* v8.2 physical progress vs. approved hours and honest company-wide efficiency. */
@media(min-width:1050px){.performance-gauges{grid-template-columns:repeat(3,minmax(0,1fr))}}
.job-progress-summary{grid-template-columns:minmax(240px,340px) minmax(0,1fr)}
.job-progress-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.job-progress-charts .job-progress-chart{min-width:0;width:100%;max-width:none}
.job-progress-charts .job-progress-chart .gauge-arc{max-width:155px}
.job-progress-charts .job-progress-chart small{font-size:10px;color:#bed4e6;line-height:1.3}
.job-progress-copy{min-width:0}
.job-progress-copy>strong{display:block;line-height:1.5}
.work-progress-label{flex:2;min-width:190px;display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:750;color:#213a51}
.work-progress-label strong{color:#12669a;font-size:16px}
.work-progress-label input{width:100%;min-height:28px;accent-color:#267ebd;touch-action:pan-y}
.work-progress-label small{font-size:10px;font-weight:450;color:#61768a}
.job-stage-panel form .button{min-height:40px}
.gauge-efficiency-card{border-color:#5f8799}
@media(max-width:760px){.job-progress-summary{grid-template-columns:1fr;gap:12px}.job-progress-charts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.job-progress-charts .job-progress-chart .gauge-arc{max-width:145px}.job-progress-chart-title{font-size:9px}.job-progress-copy h2{margin-bottom:4px}.work-progress-label{min-width:100%;order:3}.job-stage-panel form .button{order:4;width:100%}}
@media print{.job-stage-panel{display:none!important}}

/* Keep progress edits in the same approved navy family as the dashboard. */
.job-stage-panel{background:linear-gradient(135deg,#172f49,#203f5d);border-color:#42607e;color:#eaf5ff}
.job-stage-panel .stage-selector,.job-stage-panel .work-progress-label{color:#f0f6ff}
.job-stage-panel .work-progress-label strong{color:#92cfff}
.job-stage-panel .work-progress-label small,.job-stage-panel>small{color:#b8cce0}
.job-stage-panel .work-progress-label input{accent-color:#6bb8e9}
