@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{--navy:#0d2742;--navy2:#163b5d;--blue:#2d668f;--teal:#16a6a1;--teal-soft:#e8f7f5;--ink:#1d2b3b;--muted:#7b8795;--line:#e5eaf0;--bg:#f5f7fa;--white:#fff;--green:#218a68;--amber:#bb7b1b;--red:#bb5555;--shadow:0 8px 26px rgba(24,45,68,.07);font-family:'DM Sans',Arial,sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:var(--bg);min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{width:250px;background:var(--navy);color:#d7e3ed;position:fixed;inset:0 auto 0 0;padding:24px 16px 14px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;padding:2px 0 30px;width:100%}.brand-logo-frame{position:relative;width:100%;height:48px;overflow:hidden;border-radius:8px;background:linear-gradient(135deg,#fff 0%,#eff7fc 100%);box-shadow:0 4px 13px rgba(0,10,25,.22);border:1px solid rgba(255,255,255,.7)}.brand-logo-frame::after{content:"";position:absolute;left:12px;bottom:5px;width:27px;height:2px;border-radius:3px;background:#63b8e8}.brand-logo-frame img{position:absolute;left:0;top:-32px;width:100%;max-width:none;height:auto;object-fit:initial;background:transparent;border:0;border-radius:0;padding:0;filter:none}.workspace-label{font-size:9px;font-weight:700;color:#7892aa;letter-spacing:1.4px;padding:0 12px 10px}.main-nav{display:grid;gap:5px}.nav-item{background:transparent;border:0;color:#afc1d0;text-align:left;padding:11px 12px;border-radius:8px;font-size:13px;font-weight:600;display:flex;align-items:center;gap:12px}.nav-item:hover,.nav-item.active{background:#1b3b59;color:#fff}.nav-item.active{box-shadow:inset 3px 0 0 var(--teal)}.nav-icon{font-size:17px;width:18px;text-align:center;color:#9fb6c8}.sidebar-bottom{margin-top:auto}.server-status{display:flex;gap:10px;align-items:center;padding:12px 11px;border:1px solid #294863;border-radius:9px;margin-bottom:15px}.server-status strong,.sidebar-user strong{display:block;font-size:11px;color:#e6eef5}.server-status small,.sidebar-user small{display:block;font-size:10px;color:#92a8bb;margin-top:3px}.status-dot{display:inline-block;width:7px;height:7px;background:#47bd91;border-radius:50%;box-shadow:0 0 0 3px rgba(71,189,145,.13);flex:0 0 auto}.sidebar-user{display:flex;gap:10px;align-items:center;border-top:1px solid #294863;padding:15px 4px 3px}.avatar{width:30px;height:30px;border-radius:50%;background:#d8eeeb;color:#146e73;font-size:10px;font-weight:700;display:grid;place-items:center;flex:0 0 auto}.more{margin-left:auto;font-size:18px;color:#90a7b9}.main-area{margin-left:250px;min-height:100vh}.topbar{height:67px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:10}.breadcrumbs{display:flex;align-items:center;gap:10px;font-size:11px;color:#8b96a3}.breadcrumbs strong{color:#26384a;font-weight:700}.crumb-sep{color:#bbc4cd}.top-actions{display:flex;align-items:center;gap:16px}.demo-chip{font-size:9px;font-weight:800;letter-spacing:1px;color:#7591a4;display:flex;gap:7px;align-items:center}.demo-chip .status-dot{width:6px;height:6px;background:#dcaa53;box-shadow:none}.icon-button{border:0;background:transparent;color:#536575;font-size:17px;position:relative;padding:5px}.notification-button i{position:absolute;right:1px;top:4px;width:6px;height:6px;border-radius:50%;background:var(--teal);display:none}.notification-button.has-notification i{display:block}.role-switch{display:flex;background:#f1f4f7;padding:3px;border-radius:8px;gap:2px}.role-option{background:transparent;border:0;border-radius:6px;padding:7px 12px;color:#728091;font-size:10px;font-weight:700}.role-option.active{background:white;color:var(--navy);box-shadow:0 1px 4px #122c4518}.mobile-menu{display:none;border:0;background:none;font-size:19px;color:var(--navy)}.screen{display:none;padding:30px 34px 60px;max-width:1500px;margin:0 auto}.screen.active-screen{display:block}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px;gap:16px}.eyebrow{font-size:10px;color:#8895a3;font-weight:700;text-transform:uppercase;letter-spacing:1.1px;margin-bottom:7px}.page-heading h1{font-family:Manrope,sans-serif;font-size:24px;line-height:1.2;margin:0;color:#132f49;letter-spacing:-.5px}.page-heading p{font-size:12px;color:#778493;margin:8px 0 0}.button{border:0;border-radius:7px;padding:10px 14px;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.15s}.button-primary{background:var(--navy);color:#fff;box-shadow:0 4px 9px #0d274222}.button-primary:hover{background:#1b4265;transform:translateY(-1px)}.button-light{background:white;color:#33475b;border:1px solid var(--line)}.button-teal{background:var(--teal);color:#fff}.button-small{padding:7px 10px;font-size:10px}.button-link{background:none;border:0;color:#2b668d;font-size:11px;font-weight:700;padding:4px}.button:disabled{opacity:.45;cursor:not-allowed}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:22px}.kpi-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:15px 17px;min-height:100px;box-shadow:0 2px 5px #102b4204}.kpi-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#778594;font-weight:600}.kpi-icon{width:26px;height:26px;border-radius:7px;display:grid;place-items:center;color:#2d678f;background:#edf4f8;font-size:14px}.kpi-value{font-family:Manrope,sans-serif;color:#173956;font-size:24px;font-weight:800;margin-top:8px}.kpi-foot{font-size:9px;color:#8d99a4;margin-top:2px}.kpi-foot .positive{color:var(--green);font-weight:700}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.9fr);gap:16px}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 2px 5px #102b4204;overflow:hidden}.panel-header{padding:16px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf0f3}.panel-header h2{font-size:13px;margin:0;color:#183852}.panel-header p{font-size:10px;color:#8b96a3;margin:4px 0 0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;padding:10px 15px;font-size:9px;text-transform:uppercase;letter-spacing:.6px;color:#94a0ac;font-weight:700;background:#fbfcfd;border-bottom:1px solid #edf0f3}td{padding:12px 15px;border-bottom:1px solid #f0f2f4;font-size:10px;color:#445465}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcfd}.vessel-cell strong{display:block;color:#203a51;font-size:11px}.vessel-cell small{display:block;color:#8995a1;font-size:9px;margin-top:4px}.imo-text{color:#8793a0;font-size:9px}.status-pill{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:5px 8px;font-size:9px;font-weight:700}.status-pill:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.status-assigned{background:#edf4f8;color:#3d6e91}.status-progress{background:#fff4e0;color:#ad771d}.status-submitted{background:#e7f6f0;color:#27845e}.status-review{background:#f1edfb;color:#785ca8}.system-tags{display:flex;gap:4px}.system-tag{font-size:8px;color:#597184;background:#f0f4f6;padding:4px 6px;border-radius:4px}.table-action{border:0;background:none;color:#4c718a;font-weight:700;font-size:10px}.activity-list{padding:3px 17px}.activity-row{display:flex;gap:11px;padding:13px 0;border-bottom:1px solid #f0f2f4}.activity-row:last-child{border-bottom:0}.activity-icon{width:27px;height:27px;background:#eef5f8;color:#447692;border-radius:50%;display:grid;place-items:center;font-size:12px;flex:0 0 auto}.activity-copy{font-size:10px;line-height:1.45;color:#536272}.activity-copy strong{color:#253f55}.activity-copy small{display:block;color:#9aa4ad;font-size:9px;margin-top:3px}.quick-actions{display:flex;gap:8px;margin-top:16px}.quick-tile{flex:1;text-align:left;padding:13px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#344b60}.quick-tile:hover{border-color:#b5d3dc;background:#fbfefe}.quick-tile span{display:block;font-size:17px;color:var(--teal);margin-bottom:8px}.quick-tile strong{font-size:10px;display:block}.quick-tile small{font-size:9px;color:#8995a1;display:block;margin-top:4px}.filters-row{display:flex;gap:9px;align-items:center;margin:14px 0}.search-box{position:relative;flex:1;max-width:330px}.search-box span{position:absolute;left:11px;top:9px;color:#96a1ab;font-size:13px}.search-box input{width:100%;padding:9px 10px 9px 31px;border:1px solid var(--line);border-radius:7px;background:white;font-size:10px;outline:none}.search-box input:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#72b8bd;box-shadow:0 0 0 3px #16a6a116}.filter-select{border:1px solid var(--line);background:white;color:#536575;border-radius:7px;padding:9px 10px;font-size:10px}.jobs-table-panel{margin-top:4px}.empty-state{text-align:center;padding:45px 20px;color:#8693a0;font-size:11px}.empty-state strong{display:block;color:#29455d;font-size:14px;margin-bottom:5px}.engineer-welcome{display:flex;align-items:center;gap:13px;background:linear-gradient(110deg,#123451,#1f5370);color:white;border-radius:10px;padding:17px 20px;margin-bottom:18px;box-shadow:var(--shadow)}.engineer-welcome .avatar{width:42px;height:42px;background:#d6f2ef}.engineer-welcome h2{font-family:Manrope,sans-serif;font-size:15px;margin:0}.engineer-welcome p{font-size:10px;color:#bfd1dd;margin:4px 0 0}.welcome-date{margin-left:auto;font-size:10px;color:#ccdae4}.engineer-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,.8fr);gap:15px}.job-card-list{padding:10px 16px}.engineer-job-card{border:1px solid #e9edf1;border-radius:8px;padding:14px;margin:8px 0;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.engineer-job-card:hover{border-color:#a9cbd4;box-shadow:0 3px 12px #173c5910}.engineer-job-card h3{font-size:12px;color:#1e3b53;margin:0}.engineer-job-card p{font-size:9px;color:#83909d;margin:5px 0}.engineer-card-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.job-date{font-size:9px;color:#8b97a3}.deadline{font-size:9px;color:#ae7620;background:#fff5e6;border-radius:5px;padding:5px 7px}.section-title{font-family:Manrope,sans-serif;color:#173851;font-size:15px;margin:0 0 5px}.subtle-text{font-size:10px;color:#83909d;margin:0}.detail-toolbar{display:flex;gap:8px;align-items:center}.job-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#e9eef2;border:1px solid #e9eef2;border-radius:9px;overflow:hidden;margin-bottom:15px}.summary-field{background:#fff;padding:11px 13px}.summary-field small{display:block;text-transform:uppercase;font-size:8px;letter-spacing:.6px;color:#97a2ad;font-weight:700;margin-bottom:5px}.summary-field strong{font-size:10px;color:#25445c}.form-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,.75fr);gap:15px;align-items:start}.form-section{padding:17px 18px;margin-bottom:13px}.form-section-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}.form-section-heading h2{font-size:12px;color:#1d3d56;margin:0}.form-section-heading p{font-size:9px;color:#8e9aa6;margin:4px 0 0}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.field{display:flex;flex-direction:column;gap:5px}.field.full{grid-column:1/-1}.field label{font-size:9px;color:#687887;font-weight:700}.field input,.field select,.field textarea{border:1px solid #dfe6eb;border-radius:6px;padding:9px 10px;font-size:10px;color:#34485a;background:#fff;outline:none}.field textarea{min-height:64px;resize:vertical}.system-selects{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.system-select-card{border:1px solid #e6ecf0;border-radius:7px;padding:10px}.system-select-card label{font-size:8px;color:#8694a0;text-transform:uppercase;font-weight:700;letter-spacing:.4px;display:block;margin-bottom:6px}.system-select-card select{width:100%;border:0;background:transparent;color:#21415b;font-size:10px;font-weight:700;outline:none}.component-card{border:1px solid #e8edf1;border-radius:8px;padding:12px;margin:8px 0}.component-top{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}.component-top strong{font-size:10px;color:#25445c}.result-select{border:1px solid #e0e7ec;background:#f9fbfc;border-radius:5px;padding:6px 8px;font-size:9px;color:#3e566a}.component-details{display:grid;grid-template-columns:1.1fr .9fr;gap:8px}.component-details input,.component-details textarea{width:100%;border:1px solid #e3e9ed;border-radius:5px;padding:7px 8px;font-size:9px}.component-details textarea{grid-column:1/-1;min-height:43px;resize:vertical}.component-card.sensor-component .component-details{grid-template-columns:repeat(3,1fr)}.component-card.sensor-component .component-details textarea{grid-column:1/-1}.component-card.is-na{opacity:.56;background:#fafbfc}.photo-drop{border:1px dashed #bdccd6;background:#fafcfd;border-radius:7px;padding:12px;text-align:center;color:#7d8b99;font-size:9px;margin-top:9px}.photo-drop input{display:none}.photo-button{border:0;background:none;color:#367598;font-weight:700;font-size:9px}.photo-preview-list{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.photo-preview{width:66px;height:52px;object-fit:cover;border-radius:5px;border:1px solid #e0e7eb}.progress-card{padding:16px}.progress-count{font-size:25px;font-family:Manrope;font-weight:800;color:#153d59}.progress-track{height:6px;border-radius:10px;background:#edf1f4;margin:9px 0 7px;overflow:hidden}.progress-track span{display:block;height:100%;background:var(--teal);border-radius:10px;width:40%;transition:width .2s}.checklist-progress{font-size:9px;color:#8a96a1}.workflow-list{display:grid;gap:8px;margin-top:15px}.workflow-step{display:flex;gap:8px;align-items:center;font-size:9px;color:#647687}.step-check{width:17px;height:17px;border-radius:50%;display:grid;place-items:center;background:#edf2f5;color:#9ba9b4;font-size:9px}.workflow-step.done .step-check{background:#e5f5ef;color:#218a68}.right-note{background:#f5f8fa;border-radius:7px;padding:11px;font-size:9px;color:#72818e;line-height:1.5;margin-top:13px}.cert-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.choice-card{padding:18px;background:#fff;border:1px solid var(--line);border-radius:10px;text-align:left}.choice-card:hover{border-color:#8dc6c5;box-shadow:var(--shadow);transform:translateY(-2px)}.choice-icon{width:36px;height:36px;background:#eaf6f5;color:#149794;border-radius:9px;display:grid;place-items:center;font-size:18px;margin-bottom:13px}.choice-card h3{font-size:12px;color:#203e56;margin:0 0 5px}.choice-card p{font-size:9px;color:#83909d;line-height:1.45;margin:0}.report-preview{background:white;border:1px solid var(--line);border-radius:10px;padding:28px;max-width:900px;margin:0 auto;box-shadow:var(--shadow)}.report-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dce4ea;padding-bottom:14px;margin-bottom:18px}.report-header img{width:100px}.report-header strong{font-size:10px;letter-spacing:.6px;color:#1d3c57}.report-title{font-family:Manrope;font-size:22px;font-weight:800;color:#163b5b;margin:0}.report-subtitle{font-size:10px;color:#83909d;margin:5px 0 16px}.report-meta-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#dfe7ec;border:1px solid #dfe7ec;margin-bottom:18px}.report-meta-grid div{background:#f4f7f9;padding:9px}.report-meta-grid small{display:block;font-size:7px;color:#8493a0;font-weight:700}.report-meta-grid strong{display:block;font-size:9px;color:#294a63;margin-top:4px}.report-section{margin-top:17px}.report-section h3{font-size:11px;color:#173b59;border-bottom:1px solid #dce4e9;padding-bottom:6px;margin:0 0 7px}.report-line{font-size:9px;color:#455968;padding:3px 0}.report-photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.report-photo-grid img{width:100%;height:120px;object-fit:cover;border:1px solid #e0e7eb;border-radius:4px}.report-actions{display:flex;justify-content:flex-end;gap:8px;margin:13px auto;max-width:900px}.table-note{padding:11px 15px;font-size:9px;color:#8895a0}.modal-backdrop{position:fixed;inset:0;background:#061a2b77;z-index:50;display:grid;place-items:center;padding:18px}.modal-backdrop[hidden]{display:none}.modal{width:min(580px,100%);max-height:92vh;overflow:auto;background:white;border-radius:12px;box-shadow:0 20px 70px #071b2c44}.modal-header{padding:17px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-header h2{font-size:15px;color:#1a3b55;margin:0}.modal-close{border:0;background:#f2f5f7;border-radius:6px;width:27px;height:27px;color:#70808d}.modal-body{padding:18px 20px}.modal-footer{padding:13px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.toast-region{position:fixed;right:18px;bottom:18px;z-index:80;display:grid;gap:8px}.toast{background:#123b55;color:#fff;padding:12px 15px;border-radius:8px;box-shadow:var(--shadow);font-size:10px;animation:toastIn .2s ease;max-width:320px}.toast.success{background:#177758}.toast.warn{background:#98671b}@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.mobile-overlay{display:none}
@media(max-width:1100px){.sidebar{width:220px}.main-area{margin-left:220px}.screen{padding-left:22px;padding-right:22px}.topbar{padding:0 22px}.kpi-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.engineer-grid{grid-template-columns:1fr}.form-layout{grid-template-columns:1fr}.form-side{display:grid;grid-template-columns:1fr 1fr;gap:12px}.right-note{margin-top:0}}
@media(max-width:720px){.component-card.sensor-component .component-details{grid-template-columns:1fr 1fr}.component-card.sensor-component .component-details textarea{grid-column:1/-1}.sidebar{transform:translateX(-100%);transition:transform .22s ease;width:260px}.sidebar.open{transform:translateX(0)}.main-area{margin-left:0}.topbar{height:58px;padding:0 14px;gap:8px}.mobile-menu{display:block}.breadcrumbs{font-size:10px;margin-right:auto}.breadcrumbs span:first-child{display:none}.crumb-sep{display:none}.top-actions{gap:8px}.demo-chip{display:none}.role-switch{padding:2px}.role-option{padding:7px 9px;font-size:9px}.screen{padding:21px 14px 40px}.page-heading{align-items:center;margin-bottom:16px}.page-heading h1{font-size:21px}.page-heading p{font-size:10px;line-height:1.4}.page-heading .button{padding:9px 10px;font-size:9px}.kpi-grid{gap:8px;margin-bottom:13px}.kpi-card{padding:11px;min-height:88px}.kpi-value{font-size:21px}.kpi-top{font-size:9px}.kpi-icon{width:23px;height:23px}.dashboard-grid{gap:12px}.panel-header{padding:13px}.panel-header h2{font-size:12px}.table-wrap table{min-width:640px}.activity-list{padding:0 13px}.quick-actions{gap:6px}.quick-tile{padding:10px}.quick-tile strong{font-size:9px}.welcome-date{display:none}.engineer-welcome{padding:14px;margin-bottom:13px}.engineer-grid{gap:12px}.filters-row{flex-wrap:wrap}.search-box{max-width:none;flex-basis:100%}.filter-select{flex:1}.job-summary{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.system-selects{grid-template-columns:1fr 1fr}.component-details{grid-template-columns:1fr}.component-details textarea{grid-column:auto}.form-side{display:block}.progress-card{margin-bottom:12px}.detail-toolbar .button{font-size:9px;padding:8px}.detail-toolbar{flex-wrap:wrap;justify-content:flex-end}.cert-choice-grid{grid-template-columns:1fr}.choice-card{padding:14px;display:grid;grid-template-columns:40px 1fr;column-gap:11px;align-items:center}.choice-icon{grid-row:span 2;margin:0}.choice-card h3{align-self:end}.choice-card p{align-self:start}.report-preview{padding:15px}.report-title{font-size:18px}.report-meta-grid{grid-template-columns:repeat(2,1fr)}.report-photo-grid img{height:85px}.modal-backdrop{padding:10px}.modal{max-height:95vh}.modal-body,.modal-header,.modal-footer{padding-left:15px;padding-right:15px}.mobile-overlay.active{display:block;position:fixed;inset:0;background:#061a2b77;z-index:15}.jobs-table-panel{margin-left:-1px;margin-right:-1px}}

/* Clearer interaction cues and larger controls for day-to-day use */
button, select, [data-go], [data-open-job], .quick-tile, .choice-card { cursor: pointer; }
.button { min-height: 42px; padding: 11px 16px; font-size: 12px; }
.button-small { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.nav-item { min-height: 44px; font-size: 14px; }
.role-option { min-height: 38px; padding: 8px 15px; font-size: 12px; }
.role-option.active { color: #0d2742; box-shadow: 0 1px 5px #122c4525, inset 0 -3px 0 #16a6a1; }
.table-action { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 11px; border: 1px solid #b9ccd8; border-radius: 6px; background: #f4f8fa; color: #245a7a; font-size: 11px; transition: background .15s, border-color .15s, transform .15s; }
.table-action:hover { background: #e7f3f4; border-color: #61aeb0; transform: translateY(-1px); }
.quick-tile { min-height: 112px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.quick-tile:hover, .choice-card:hover { box-shadow: 0 6px 18px rgba(24,45,68,.12); transform: translateY(-2px); }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, .quick-tile:focus-visible, .choice-card:focus-visible { outline: 3px solid #1aa6a2; outline-offset: 2px; }
.button-primary:hover { box-shadow: 0 5px 14px rgba(13,39,66,.28); }
.component-details input, .component-details textarea, .component-details select { font-size: 11px; }
.phrase-field { grid-column: 1 / -1; display: grid; gap: 5px; color: #687887; font-size: 10px; font-weight: 700; }
.phrase-field select { width: 100%; border: 1px solid #d6e0e7; border-radius: 5px; background: #f8fbfc; color: #2f4a5d; padding: 8px; font-size: 11px; }
@media (min-width: 721px) {
  .screen { padding-top: 34px; }
  .kpi-top { font-size: 11px; }
  .kpi-foot { font-size: 10px; }
  th { font-size: 10px; }
  td { font-size: 11px; }
}
.photo-button { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 11px; border: 1px solid #bdd1dc; border-radius: 6px; background: #fff; color: #245d7e; font-size: 11px; transition: background .15s, border-color .15s; }
.photo-button:hover { background: #e9f5f5; border-color: #58a9ab; }
.system-select-card { border-color: #cfdae1; background: #fbfdfe; transition: border-color .15s, box-shadow .15s; }
.system-select-card:focus-within { border-color: #52aeb0; box-shadow: 0 0 0 3px #16a6a116; }
.photo-drop { background: #f6fafc; border-color: #aac0cd; }
.quick-tile, .choice-card { text-align: left; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.server-status{width:100%;display:flex;align-items:center;gap:11px;text-align:left;border:0;background:transparent;color:inherit;padding:10px;border-radius:12px;cursor:pointer;font:inherit}
.server-status:hover{background:rgba(255,255,255,.07)}
.server-status .status-dot{flex:none}
.server-status.is-connected .status-dot{background:#42d39c;box-shadow:0 0 0 4px rgba(66,211,156,.13)}
.server-status>div{min-width:0;flex:1}
.server-status strong,.server-status small{display:block}
.server-status small{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sync-action{font-size:18px;opacity:.65}
@media print{
  @page{size:A4;margin:14mm}
  body{background:#fff!important;min-width:0}
  .sidebar,.topbar,.mobile-overlay,.toast-region,.modal-backdrop,.report-actions,.page-heading{display:none!important}
  .main-area{margin:0!important}
  .screen{display:none!important;padding:0!important;margin:0!important;max-width:none!important}
  #screen-reports.active-screen{display:block!important}
  .report-preview{display:block!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
  .report-section,.report-item{break-inside:avoid}
  .report-photo-grid{grid-template-columns:1fr 1fr;gap:5mm}
  .report-photo-grid img{width:100%;height:58mm;object-fit:cover}
  .report-parts{font-size:9pt}
}
@media print{
  @page{margin:32mm 14mm 14mm}
  .report-preview .report-header{position:fixed;top:8mm;left:14mm;right:14mm;height:15mm;padding:0 0 3mm;margin:0;background:#fff;border-bottom:1px solid #ccd6de;z-index:20}
}
.engineer-chooser{max-width:160px;border:1px solid #dbe4ea;border-radius:7px;background:#fff;color:#28465d;padding:8px 10px;font-size:11px;font-weight:600}
@media(max-width:720px){.engineer-chooser{max-width:115px;padding:7px 5px;font-size:9px}}
.report-detail-line{padding-left:14px;color:#4b5d6b}
.phrase-save-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px;color:#82909c;font-size:9px}.test-timer{display:flex;align-items:center;gap:10px;padding:12px 15px;margin-bottom:13px}.test-timer>div{display:grid;gap:3px;margin-right:auto}.test-timer strong{font-size:11px;color:#21425b}.test-timer small{font-size:9px;color:#82909c}.test-timer output{font-variant-numeric:tabular-nums;font-size:17px;font-weight:800;color:#147c7a;background:#edf8f7;padding:6px 10px;border-radius:6px}
@media(max-width:720px){.test-timer{flex-wrap:wrap}.test-timer>div{flex-basis:calc(100% - 5px)}.test-timer output{margin-right:auto}.phrase-save-row{align-items:flex-start}.phrase-save-row .button{flex:0 0 auto}}

/* Model-specific service checklists */
.checklist-category{margin:20px 0 10px;padding:13px 14px 1px;border:1px solid #dce6eb;border-radius:10px;background:#fbfdfe}
.checklist-category>h3{margin:0 0 13px;padding-bottom:9px;border-bottom:1px solid #e2eaee;color:#1c4057;font-size:14px}
.checklist-subcategory{margin:14px 0 9px;color:#287578;font-size:11px;letter-spacing:.02em}
.report-category-heading{margin:13px 0 6px;padding-bottom:4px;border-bottom:1px solid #d8e1e7;color:#244a61;font-size:10pt}
.report-subcategory-heading{margin:9px 0 4px;color:#287578;font-size:9pt}
.writing-review-modal{max-width:720px}
.review-mode-note{display:grid;gap:4px;margin-bottom:14px;padding:12px 14px;border:1px solid #d8e6ec;border-radius:8px;background:#f4f9fb;color:#526b7c;font-size:11px;line-height:1.5}
.review-mode-note strong{color:#21485e;font-size:12px}
.review-suggestion-list{display:grid;gap:10px}
.review-suggestion{display:flex;align-items:flex-start;gap:14px;justify-content:space-between;padding:12px;border:1px solid #e0e7eb;border-radius:8px;background:#fff}
.review-suggestion>div{min-width:0;flex:1;color:#3d5363;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.review-suggestion p{margin:7px 0 0}
.review-suggestion small{color:#7e8f9a;font-size:9px;text-transform:uppercase;letter-spacing:.05em}
.review-suggestion .button{flex:none}
@media(max-width:600px){.checklist-category{padding:11px 10px}.review-suggestion{flex-direction:column}.review-suggestion .button{align-self:flex-end}}

/* Keep uploaded service photos uncropped and preserve their native proportions. */
.report-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:6px;justify-items:center}
.report-photo-grid figure:nth-child(odd){justify-self:end}
.report-photo-grid figure:nth-child(even){justify-self:start}
.report-photo-grid figure{margin:0;min-width:0;max-width:100%;align-self:start;break-inside:avoid;padding-bottom:2px}
.report-photo-grid img{display:block;width:auto;max-width:100%;max-height:300px;height:auto!important;object-fit:contain!important}
.report-photo-grid figcaption{display:none}
.report-photo-grid figcaption b,.report-photo-grid figcaption strong{font-style:normal;color:#68798a;font-weight:700}
@media(max-width:720px){.report-photo-grid img{height:auto!important}}
@media print{
  .report-photo-grid{grid-template-columns:1fr 1fr;align-items:start}
  .report-photo-grid figure{margin:0;break-inside:avoid}
  .report-photo-grid img{width:100%;height:auto!important;max-height:none;object-fit:contain!important}
  .report-photo-grid figcaption{display:block}
}

/* Table of Contents styling */
.report-toc{background:#f3f7f9;border:1px solid #d8e1e7;border-left:3px solid #173d61;border-radius:0;padding:14px 16px;margin:14px 0;break-inside:avoid;page-break-after:always}
.report-toc-title{margin:0 0 10px;padding:0;font-size:11px;font-weight:700;color:#173d61}
.report-toc-list{margin:0;padding-left:20px;list-style:decimal;color:#173d61;font-size:10px;line-height:1.6}
.report-toc-list li{margin:3px 0}
.report-toc-list a{color:#173d61;text-decoration:none}
.report-toc-list a:hover{text-decoration:underline}
.report-toc-list .toc-level-2{margin-left:20px;list-style:none}
.report-toc-list .toc-level-2::before{content:'';display:inline-block;width:20px}

/* v3 clean-layout report typography: Arial-like, navy/grey tokens, dash lines,
   numbered section headings (h1), sub-headings with status chip (h2), and
   small-caps meta lines for sensor Maker/Type/Serial. Mirrors report-docx.js. */
.report-preview{font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;color:#26394b}
.report-preview .report-title{font-family:Arial,sans-serif}
.report-meta-grid-3x3{grid-template-columns:repeat(3,1fr)}
.report-section h3.report-h1{display:flex;align-items:baseline;gap:6px;font-size:13px;font-weight:700;color:#173d61;border-bottom:1px solid #173d61;padding-bottom:6px;margin:18px 0 8px}
.report-h1-number{font-size:13px;font-weight:700;color:#68798a}
.report-h2{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:11px;font-weight:700;color:#173d61;margin:10px 0 4px}
.report-h2-tag{font-size:11px;font-weight:700;color:#26394b}
.report-h2-tag::before{content:'|';color:#68798a;font-weight:400;margin-right:8px}
.report-chip{display:inline-flex;align-items:center;gap:4px;font-size:9px;font-weight:700;letter-spacing:.2px}
.report-chip.is-positive{color:#2e8b57}
.report-chip.is-attention{color:#b36b1e}
.report-meta{display:flex;flex-wrap:wrap;gap:14px;font-size:9px;color:#68798a;margin:2px 0 6px}
.report-meta-label{color:#68798a;font-weight:400}
.report-meta-value{color:#26394b;font-weight:700}
/* Three-level checklist hierarchy */
/* LEVEL 1: Category band — printed once per category (e.g., "CEMS Service") */
.report-category{
  background:#f3f7f9;
  border-left:3px solid #173d61;
  color:#173d61;
  font-weight:700;
  font-size:10px;
  padding:6px 10px;
  margin:14px 0 6px;
}

/* LEVEL 2: Group/Sub-assembly heading (e.g., "Pumps", "pH sensor") */
.report-group{
  color:#586d80;
  font-weight:700;
  font-size:10px;
  margin:8px 0 2px 6px;
}

/* LEVEL 3: Regular dash-line items with proper indentation */
.report-dash{padding-left:18px;text-indent:-18px}
.report-dash::marker{content:none}

/* When there is no group, reduce the dash indent */
.report-group + .report-dash,
.report-category + .report-dash{
  padding-left:8px;
  text-indent:-8px;
}

/* Sensor name line — bold but not an h2, sits between category/group and meta */
.report-sensor-name{
  font-weight:700;
  font-size:9px;
  color:#26394b;
  padding-left:18px;
  margin:3px 0 2px;
}

/* When sensor is first after group, adjust indent */
.report-group + .report-sensor-name{
  padding-left:18px;
}
.report-parts{width:100%;border-collapse:collapse;margin-top:6px;font-size:9px}
.report-parts th{background:#586d80;color:#fff;font-size:8px;text-transform:none;padding:7px 8px;border:0}
.report-parts td{padding:6px 8px;border-bottom:1px solid #dde3e9;color:#26394b}
.report-parts tbody tr:nth-child(even){background:#f3f7f9}
@media print{
  .report-h1,.report-h2,.report-item{break-inside:avoid}
}

/* Section frames and photo mounts (mirrors the .docx export): each report
   section sits in a thin grey-blue frame; each photo sits in its own mount. */
.report-preview .report-section{border:1px solid #b7c4d0;padding:8px 12px 12px;margin-top:14px}
.report-preview .report-section h3.report-h1{margin-top:2px}
.report-photo-grid figure{border:1px solid #b7c4d0;background:#e9eef2;padding:4px;margin:2px 0}
.report-photo-grid img{border:0;border-radius:0}
@media print{.report-preview .report-section{border:1px solid #b7c4d0;padding:6px 10px 10px}.report-photo-grid figure{border:1px solid #b7c4d0;background:#e9eef2;padding:3px}}

/* System sections as a grid (mirrors the .docx export): every element is a
   row with a line between rows; the photos sit in their own row. */
.report-preview .report-section[id^="sec-"]{padding:0}
.report-preview .report-section[id^="sec-"] h3.report-h1{margin:0;padding:8px 12px;border-bottom:1px solid #b7c4d0}
.report-preview .report-section[id^="sec-"] .report-category{margin:0;border-bottom:1px solid #b7c4d0}
.report-preview .report-section[id^="sec-"] .report-group{margin:0;padding:5px 12px;border-bottom:1px solid #b7c4d0}
.report-preview .report-section[id^="sec-"] .report-sensor-name{margin:0;padding:6px 12px 0}
.report-preview .report-section[id^="sec-"] .report-meta,.report-preview .report-section[id^="sec-"] .report-dash{padding-left:12px;padding-right:12px}
.report-preview .report-section[id^="sec-"] .report-sensor-name ~ .report-dash:has(+ .report-sensor-name),.report-preview .report-section[id^="sec-"] .report-dash:has(+ .report-group),.report-preview .report-section[id^="sec-"] .report-dash:has(+ .report-category),.report-preview .report-section[id^="sec-"] .report-dash:last-child{padding-bottom:6px;border-bottom:1px solid #b7c4d0}
.report-preview .report-section[id^="sec-"] .report-photo-grid{margin:0;padding:8px 12px;border-top:1px solid #b7c4d0;border-bottom:1px solid #b7c4d0}
.report-preview .report-section[id^="sec-"] .report-parts{margin:10px 12px;width:calc(100% - 24px)}
.report-preview .report-section[id^="sec-"] .report-dash,.report-preview .report-section[id^="sec-"] .report-meta{padding-left:34px}
.report-preview .report-section[id^="sec-"] .report-group ~ .report-dash,.report-preview .report-section[id^="sec-"] .report-group ~ .report-meta{padding-left:46px}

/* Users screen — team directory table and "add colleague" row */
#screen-users table td input[type="text"],#screen-users table td input:not([type]),#screen-users table td select{width:100%;border:1px solid #dfe6eb;border-radius:5px;padding:6px 8px;font-size:10px;color:#34485a;background:#fff}
#screen-users table td input:disabled,#screen-users table td select:disabled{background:#f6f8fa;color:#8d99a4;border-color:#e9eef2}
#screen-users table td input[type="checkbox"]{width:auto;margin:0}
#addColleagueForm{gap:8px}
#addColleagueForm input,#addColleagueForm select{border:1px solid var(--line);border-radius:7px;padding:9px 10px;font-size:10px;background:#fff;color:#34485a}
#addColleagueForm input[name="email"]{flex:1;max-width:260px}

/* Sidebar sign-out button (Cloudflare Access sessions only) */
.sign-out-button{width:100%;margin-top:10px}

/* Users screen — extra actions per row */
#screen-users .table-action{margin-right:6px}
#screen-users .table-action.is-danger{color:#bb5555;border-color:#e3c3c3;background:#fdf4f4}
#screen-users .table-action.is-danger:hover{background:#fbe9e9;border-color:#bb5555}

/* Activity screen — server event feed */
.activity-events-list{padding:3px 17px}
.activity-event-row{display:grid;grid-template-columns:120px 140px 160px 1fr;gap:12px;padding:11px 0;border-bottom:1px solid #f0f2f4;font-size:10px;color:#536272;align-items:baseline}
.activity-event-row:last-child{border-bottom:0}
.activity-event-time{color:#8d99a4;font-size:9px;white-space:nowrap}
.activity-event-name{color:#253f55;font-weight:700}
.activity-event-action{color:#3d6e91}
.activity-event-details{color:#7b8795;overflow-wrap:anywhere}

/* Calibration certificates — report-editor "Calibration certificates" panel,
   the instrument certificate editor (table rows, progress card) and the
   preview/signature block. */
.cert-instrument-list{display:grid;gap:7px}
.cert-instrument-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:#44576a}
.cert-instrument-missing{font-size:9px;color:#9aa4ad}
.cert-table table{width:100%}
.cert-table td{vertical-align:middle}
.cert-table td input,.cert-table td select{width:100%;border:1px solid #e3e9ed;border-radius:5px;padding:6px 7px;font-size:9px;color:#34485a;background:#fff;outline:none}
.cert-tolerance-row{display:flex;gap:10px;margin-bottom:12px}
.cert-tolerance-row .field{flex:0 0 160px}
.cert-result-cell{font-weight:700}
.cert-pass{color:var(--green)}
.cert-fail{color:var(--red)}
.cert-missing-list{margin:9px 0 0;padding-left:16px;font-size:9px;color:#72818e;line-height:1.6}
.cert-warning{background:#fdecec;color:#9a3b3b;border-radius:7px;padding:8px 10px;font-size:9px;margin-top:9px}
.cert-workitem{display:flex;gap:9px;align-items:flex-start;padding:9px 0;border-bottom:1px solid #f0f2f4}
.cert-workitem:last-child{border-bottom:0}
.cert-workitem input[type="checkbox"]{margin-top:3px}
.cert-workitem-category{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.4px;color:#8694a0;font-weight:700;margin-bottom:2px}
.cert-workitem-name{display:block;font-size:10px;color:#25445c;font-weight:700}
.cert-workitem-comment{display:block;font-size:9px;color:#5c6e7f;margin-top:2px}
.report-signature{margin-top:22px;padding-top:14px;border-top:1px solid #dce4ea;font-size:10px;color:#44576a}
@media(max-width:720px){.activity-event-row{grid-template-columns:1fr;gap:3px;padding:10px 0}}

/* Neutral brand mode (?neutral=1): no PureteQ logo or name anywhere, for
   screenshots shared outside the company. Text is replaced by app.js. */
body.neutral-brand .brand-logo-frame img,body.neutral-brand .report-header img{display:none}
body.neutral-brand .brand-logo-frame{background:#fff url(./public/neutral-logo.png) 10px center/auto 30px no-repeat}
body.neutral-brand .brand-logo-frame::after{display:none}
body.neutral-brand .report-header::before{content:"";display:block;width:170px;height:38px;background:url(./public/neutral-logo.png) left center/contain no-repeat}

.intake-panel{border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin-bottom:14px;background:#fafcfd}.intake-panel summary{cursor:pointer;font-size:11px;font-weight:700;color:#1d3d56}.intake-panel .field{margin:10px 0}.intake-panel textarea{width:100%;font-size:10px}.intake-summary{margin-top:10px;font-size:10px;color:#34485a;line-height:1.5}.intake-warning{color:var(--amber);font-weight:600}
.intake-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#e9eef2;border:1px solid #e9eef2;border-radius:9px;overflow:hidden}.intake-grid .summary-field strong{word-break:break-word}.intake-raw{margin-top:12px}.intake-raw summary{cursor:pointer;font-size:10px;font-weight:700;color:#2b668d}.intake-raw pre{font-size:9px;white-space:pre-wrap;background:#f5f8fa;border-radius:6px;padding:10px;max-height:260px;overflow:auto}.table-sub{display:block;font-size:9px;color:#8995a1;margin-top:3px}

.status-unassigned{background:#eef0f3;color:#6b7683}.source-tag{display:inline-block;font-size:8px;font-weight:700;color:#597184;background:#eef3f6;border-radius:4px;padding:1px 5px;margin-left:4px;text-transform:uppercase;letter-spacing:.3px}
.notification-badge{position:absolute;right:-5px;top:-3px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#6e8aa3;color:#fff;font-size:9px;font-weight:800;line-height:16px;text-align:center}.notification-badge[hidden]{display:none}.notification-badge.personal{background:var(--amber)}
.notification-panel{position:fixed;width:360px;max-width:calc(100vw - 16px);max-height:70vh;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 14px 40px rgba(13,39,66,.18);z-index:60;overflow:hidden}.notification-panel[hidden]{display:none}
.notif-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);font-size:12px;color:var(--navy)}.notif-head .button-link:disabled{opacity:.4;cursor:default}
.notif-tabs{display:flex;border-bottom:1px solid var(--line)}.notif-tab{flex:1;border:0;background:none;padding:10px;font-size:11px;font-weight:700;color:var(--muted);border-bottom:2px solid transparent}.notif-tab.active{color:var(--navy);border-bottom-color:var(--teal)}.notif-count{display:inline-block;min-width:15px;padding:0 4px;border-radius:8px;background:var(--amber);color:#fff;font-size:9px;line-height:15px;text-align:center}
.notif-list{overflow-y:auto;flex:1}.notif-item{display:flex;gap:10px;width:100%;text-align:left;border:0;border-bottom:1px solid #f0f2f4;background:#fff;padding:11px 14px}.notif-item:hover{background:#f7f9fb}.notif-item.unread{background:#f1f7fb}.notif-item.unread:hover{background:#e8f1f8}
.notif-dot{flex:0 0 auto;width:8px;height:8px;border-radius:50%;margin-top:5px;background:#9aa6b2}.notif-dot.amber{background:var(--amber)}.notif-dot.green{background:var(--green)}.notif-dot.blue{background:var(--blue)}
.notif-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.notif-copy strong{font-size:11px;color:var(--ink)}.notif-copy small{font-size:10px;color:var(--muted);line-height:1.4}.notif-copy em{font-style:normal;font-size:9px;color:#9aa4ad}.notif-empty{padding:30px 14px;text-align:center;font-size:11px;color:var(--muted)}

.position-cell{display:flex;gap:6px;align-items:center}.position-cell input{min-width:140px}.position-cell[hidden],.position-cell input[hidden]{display:none}

.files-panel{margin-bottom:15px}.file-row{display:flex;gap:10px;align-items:center;padding:10px 18px;border-bottom:1px solid #f0f2f4}.file-row:last-child{border-bottom:0}.file-main{flex:1;min-width:0}.file-main a{font-size:11px;font-weight:700;color:#2b668d;text-decoration:none;word-break:break-all}.file-main small{display:block;font-size:9px;color:#8995a1;margin-top:3px}.file-kind{font-size:8px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;border-radius:10px;padding:3px 8px;background:#edf4f8;color:#3d6e91}.file-kind-certificate{background:#f1edfb;color:#785ca8}.file-kind-other{background:#eef0f3;color:#6b7683}.file-count{font-size:9px;color:#597184;margin-left:4px}.files-panel label.button input{display:none}
.offline-badge{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:700;color:#27845e;background:#e7f6f0;border-radius:20px;padding:5px 9px;white-space:nowrap}
.offline-badge::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}

/* Parts used, time & expenses, invoice drafts, Finance, Catalogue */
.parts-table .qty-input,.invoice-table .qty-input,.time-table input,.time-table select{max-width:110px}
.qty-input{width:84px;padding:7px 8px;border:1px solid #cfdae1;border-radius:6px;font-size:12px}
.parts-group td{background:#f1f6f9;color:#245d7e;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.parts-search{margin-top:14px;position:relative}
.parts-results{display:grid;gap:4px;margin-top:6px}
.parts-result{text-align:left;padding:8px 10px;border:1px solid #d6e0e7;border-radius:6px;background:#fff;font-size:12px;cursor:pointer}
.parts-result:hover{background:#e9f5f5;border-color:#58a9ab}
.toolbar-inline{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.cost-row{display:flex;gap:8px;margin-bottom:6px}
.cost-row input:first-child{flex:1}
.check-field{display:inline-flex;align-items:center;gap:7px;margin-right:18px;font-size:12px}
.flags-row{display:flex;flex-wrap:wrap;align-items:center}
.inline-field{display:inline-flex;align-items:center;gap:7px;font-size:12px}
.job-tabs{display:flex;gap:6px;margin:0 0 14px}
.job-tab{padding:9px 18px;border:1px solid #cfdae1;border-radius:8px 8px 0 0;background:#f4f8fa;font-size:13px;font-weight:600;cursor:pointer}
.job-tab.active{background:#fff;border-bottom-color:#fff;color:#0d2742;box-shadow:inset 0 -3px 0 #16a6a1}
.invoice-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.invoice-toolbar .spacer{flex:1}
.invoice-table input:not(.qty-input){width:100%;min-width:200px;padding:7px 8px;border:1px solid #cfdae1;border-radius:6px;font-size:12px}
.invoice-table tfoot td{font-weight:700;border-top:2px solid #cfdae1}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
.source-pill{display:inline-block;padding:2px 8px;border-radius:999px;background:#e8f1f6;color:#245d7e;font-size:10px;font-weight:700}
.invoice-warnings{margin:0 0 12px;padding:10px 14px;border:1px solid #e7c98f;border-radius:8px;background:#fdf6e6;color:#7a5410;font-size:12px}
.invoice-warnings ul{margin:6px 0 0;padding-left:18px}
.invoice-note{margin:0 0 12px;padding:10px 14px;border:1px solid #b9ccd8;border-radius:8px;background:#f4f8fa;font-size:12px}
.invoice-sub{margin:18px 0 8px;font-size:12px;color:#245d7e}
.invoice-log{margin:0;padding-left:0;list-style:none;font-size:11px;color:#4b5f70}
.invoice-log li{padding:4px 0;border-bottom:1px solid #eef2f5}
.invoice-log li span{color:#7b8795}
.clickable-row{cursor:pointer}
.clickable-row:hover td{background:#f1f6f9}
.invoice-toolbar select{font-size:12px;padding:8px 10px;border:1px solid #cfdae1;border-radius:6px}

/* Service calendar (Module 3) */
.cal-quote{padding:10px 4px;display:grid;gap:10px}
.cal-quote textarea{width:100%;font-family:inherit}
.cal-quote-row>td{background:#f8fafc}
.cal-interval{display:inline-flex;align-items:center;gap:6px;font-size:12px}
.cal-next-line{margin:8px 0}
.cal-overdue{background:#fbe9e9!important;color:#a43a3a!important}
/* Invoice status strip, invoice flow modal, KPI row */
.kpi-six{grid-template-columns:repeat(3,1fr)}
.invoice-strip{padding:14px 18px;margin-bottom:13px}
.invoice-strip-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px}
.invoice-strip-head h2{font-size:12px;color:#1d3d56;margin:0}
.invoice-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.invoice-steps li{display:flex;gap:8px;align-items:flex-start;font-size:11px;color:#8a96a1}
.invoice-steps .step-dot{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#edf2f5;color:#9ba9b4;font-size:10px;flex:0 0 auto}
.invoice-steps li strong{display:block;font-size:11px}
.invoice-steps li small{display:block;font-size:9px;color:#8a96a1;margin-top:2px}
.invoice-steps li.done{color:#25445c}.invoice-steps li.done .step-dot{background:#e5f5ef;color:#218a68}
.invoice-steps li.current{color:#173956}.invoice-steps li.current .step-dot{background:var(--teal);color:#fff}
.invoice-strip-log{margin-top:10px;font-size:11px}
.invoice-modal{width:min(1120px,100%)}.invoice-preview td{white-space:normal}.invoice-preview .num{white-space:nowrap}
.invoice-errors{margin:0 0 12px;padding:10px 14px;border:1px solid #e3b4b4;border-radius:8px;background:#fbeeee;color:#7d2f2f;font-size:12px}
.invoice-errors ul{margin:6px 0 0;padding-left:18px}
.invoice-preview h3{margin:0 0 10px;color:#163b5b;font-size:16px}
.invoice-billto{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#dfe7ec;border:1px solid #dfe7ec;margin-bottom:12px}
.invoice-billto div{background:#f4f7f9;padding:8px 10px}.invoice-billto small{display:block;font-size:8px;text-transform:uppercase;color:#8493a0;font-weight:700}.invoice-billto strong{font-size:11px;color:#294a63}
.component-name-input{flex:1;border:1px solid #cfdae1;border-radius:6px;padding:6px 8px;font-size:11px;font-weight:700;color:#25445c}
.portal-bell{position:relative}
@media(max-width:720px){.invoice-steps{grid-template-columns:1fr}.kpi-six{grid-template-columns:repeat(2,1fr)}.invoice-billto{grid-template-columns:repeat(2,1fr)}}

.team-tag{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:9px;background:#e6f2f1;color:#147c7a;font-size:9px;font-weight:700;vertical-align:middle}.team-remove-link{margin-left:6px;background:none;border:0;padding:0;color:#82909c;font-size:9px;text-decoration:underline;cursor:pointer}.team-check{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:12px}

.kpi-four{grid-template-columns:repeat(4,1fr)}
.access-badge{display:block;color:var(--teal);font-weight:600;margin-top:2px}
.chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px;margin:16px 0}
.chart-card{padding:16px}
.chart-card h3{margin:0 0 8px;font-size:14px}
.chart-svg{width:100%;height:auto;display:block}
.chart-bar{fill:var(--blue)}
.chart-line{stroke:var(--amber);stroke-width:2.5}
.chart-dot{fill:var(--amber)}
.chart-base{stroke:var(--line);stroke-width:1}
.chart-axis{font-size:11px;fill:var(--muted)}
.chart-value{font-size:10px;fill:var(--ink)}
.segmented{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:720px){.kpi-four{grid-template-columns:repeat(2,1fr)}}

[hidden]{display:none !important}
.chart-grid>*{min-width:0}
.table-grid{grid-template-columns:repeat(auto-fit,minmax(460px,1fr))}
.table-wrap{overflow-x:auto}
.inline-field{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#536575}
