:root{font-family:'Segoe UI',Arial,sans-serif}h1,h2,h3,.stat>strong{font-family:'Segoe UI',Arial,sans-serif}.modal>form{display:flex;flex-direction:column;min-height:0;max-height:92vh}.modal-body{min-height:0;flex:1}.auth-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:35px 20px;background:radial-gradient(ellipse at 30% 20%,#dfefe8 0,transparent 55%),#f5f8f9}.auth-brand{display:flex;align-items:center;gap:11px;margin-bottom:30px}.auth-brand strong{font-size:18px;letter-spacing:1.2px;color:#1e4548}.auth-brand small{font-size:10px;color:#7e9696;letter-spacing:1.8px;padding-left:10px;border-left:1px solid #c2d6cf}.auth-card{background:#fff;padding:35px 38px;border:1px solid #dce8e3;border-radius:12px;box-shadow:0 10px 50px #143c3e0a;width:460px;max-width:100%}.auth-card h1{font-size:27px;letter-spacing:-.8px}.auth-card>p{font-size:14px;color:#7f9399}.auth-card .field{margin-bottom:20px}.auth-card>.primary{width:100%;margin-top:6px}.auth-footnote{font-size:11px;line-height:1.7;color:#8b9c9e;text-align:center;margin-top:20px}.auth-local{font-size:11px;color:#93a3a6;margin-top:24px}.settings-actions{display:flex;gap:12px;padding:0 25px 25px}.network-url{font-size:18px;font-weight:600;color:#087f75;background:#edf7f3;padding:12px;overflow-wrap:anywhere}.toast .text-button{margin-left:auto}.modal .icon-button{font-size:23px}.user strong{max-width:135px}.signout{padding-top:10px}.quantity-row>div{flex:1}.quantity-row small{line-height:1.5}@media(max-width:600px){.auth-card{padding:28px 23px}.auth-brand{flex-wrap:wrap;justify-content:center}.auth-brand small{display:none}.settings-actions{flex-wrap:wrap}}@media print{#app,#dialog-root{display:none!important}.invoice-overlay{position:static}#print-root{display:block}}

[hidden]{display:none!important}.customer-override{margin:20px 0}.customer-override summary{cursor:pointer;color:#176c63}.customer-override .field{margin-top:15px}.annexure-summary{margin:20px;padding:20px;background:#eff7f3;border-radius:8px}.annexure-summary button{margin:8px 8px 0 0}.annexure-editor{min-width:850px}.annexure-editor input{min-width:85px}.annexure-editor td:nth-child(2) input{min-width:180px}.annexure-editor select{min-width:160px}.modal:has(.annexure-editor){width:1100px;max-width:96vw}.simple-work{padding-top:5px}

/* Keep navigation and workflow actions reachable on short screens. */
.sidebar{height:100dvh;overflow-y:auto}.sidebar nav{flex:1;min-height:140px;overflow-y:auto}.sidebar-bottom{flex-shrink:0;padding-top:18px}.brand{margin-bottom:20px}.modal{display:flex;flex-direction:column;max-height:calc(100dvh - 24px);overflow:hidden}.modal>form{width:100%;min-height:0;max-height:calc(100dvh - 24px)}.modal-head,.modal-footer{flex-shrink:0}.modal-body{min-height:0;overflow-y:auto}.modal-footer{flex-wrap:wrap;background:#fff;border-top:1px solid #e6ebee}.modal-footer button{white-space:normal}.table-wrap td:last-child button{margin:4px 8px 4px 0}#daily-work-form>.modal-footer{position:sticky;bottom:0;z-index:3;padding:16px 24px;box-shadow:0 -3px 12px #172c3810}.login-details{white-space:pre-wrap;overflow-wrap:anywhere;background:#f0f7f4;padding:18px;font-family:inherit;line-height:1.8}.annexure-date-label{display:block;margin-top:8px;font-size:11px}.annexure-date-label input{display:block;margin-top:4px}.panel-heading{flex-wrap:wrap}@media(max-width:760px){.modal-backdrop{padding:8px}.modal,.modal>form{max-height:calc(100dvh - 16px)}.sidebar{height:auto;max-height:none}.sidebar nav{min-height:0;overflow:visible}}

/* Explicit local colours also protect against missing theme variables. */
:root{--teal:#087f75;--navy:#172c38;--line:#e6ebee;--muted:#70808a}button.primary{background-color:#087f75;color:#fff;border:1px solid #087f75}button.primary:hover{background-color:#066b63}button.primary.light{background:#e2f1e9;color:#1a665c}.engineer-quick{margin-bottom:22px}.settings-actions{flex-wrap:wrap}.date-input{font-variant-numeric:tabular-nums}.invoice-number-preview{padding:14px;background:#edf7f3;border:1px solid #cee5dc;border-radius:6px}.table-wrap td:last-child{min-width:150px}
