/* Shared reading sizes scale with the browser's text preference. */
:root{
    --type-meta:.8125rem;
    --type-label:.875rem;
    --type-support:.9375rem;
    --type-body:1rem;
--green:#16574e;--green2:#0b7768;--mint:#eaf4ef;--ink:#243c3a;--muted:#566c64;--line:#e5eae8;--bg:#f5f7f6;--white:#fff;--amber:#b7771d;--red:#b64f4f;--shadow:0 8px 35px #123b3010;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:100%;font-weight:400}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:var(--type-body);line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--green2);text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:2rem;line-height:1.3;letter-spacing:-1px;font-weight:650}h2{font-size:1.375rem;letter-spacing:-.5px;font-weight:620}h3{font-size:1.125rem;font-weight:600}small,.muted{color:var(--muted)}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar{position:fixed;top:0;bottom:0;width:238px;background:#fff;border-right:1px solid var(--line);z-index:20;display:flex;flex-direction:column;padding:30px 16px 16px}.brand{display:flex;align-items:center;gap:11px;padding:0 12px 26px}.brand img{width:37px;height:37px;object-fit:contain}.brand strong{font-size:1.75rem;font-weight:750;letter-spacing:-1px;color:var(--green)}.brand span{display:block;font-size:var(--type-meta);color:var(--muted);letter-spacing:.2px;margin-top:2px}.nav-label{font-size:var(--type-meta);letter-spacing:1.6px;font-weight:650;color:var(--muted);padding:22px 15px 10px}.nav-btn{border:0;background:transparent;display:flex;width:100%;align-items:center;gap:12px;color:var(--muted);padding:12px 15px;border-radius:7px;margin-bottom:3px;text-align:left;font-size:var(--type-body);font-weight:500}.nav-btn:hover{background:#f4f8f5}.nav-btn.active{background:var(--mint);color:var(--green);font-weight:650}.nav-btn.active svg{stroke-width:2}.nav-btn .count{margin-left:auto;font-size:var(--type-meta);background:#fff;color:var(--green);border-radius:5px;padding:3px 6px}.sidebar-foot{margin-top:auto}.workspace-name{margin:15px 8px 7px;padding:14px 9px;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;font-size:var(--type-support)}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#e8eeea;color:var(--green);font-size:var(--type-support);font-weight:650;flex-shrink:0}.workspace-name small{display:block;font-size:var(--type-meta);margin-top:4px}.main{margin-left:238px;min-height:100vh}.topbar{height:78px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:20px}.breadcrumb{font-size:var(--type-support);color:var(--muted)}.breadcrumb b{font-weight:500;color:#4c625b}.top-actions{display:flex;gap:19px;align-items:center}.searchbox{display:flex;align-items:center;gap:9px;color:#96a39c}.searchbox input{border:0;width:160px;background:transparent;font-size:var(--type-support)}.searchbox kbd{font-family:inherit;font-size:var(--type-meta);border:1px solid var(--line);border-radius:4px;padding:3px 5px}.online{display:flex;align-items:center;gap:6px;font-size:var(--type-label);color:#527465;white-space:nowrap}.online i,.dot{height:6px;width:6px;border-radius:50%;background:#4aa782;display:inline-block}.online.offline{color:var(--amber)}.online.offline i{background:var(--amber)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;background:none;border:1px solid var(--line);border-radius:7px;width:34px;height:34px;color:#637970}.notification-btn{position:relative;border:0}.content{padding:32px 38px 50px;max-width:1700px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{color:var(--green2);font-size:var(--type-meta);text-transform:uppercase;letter-spacing:1.8px;font-weight:650;margin-bottom:8px}.subtitle{color:var(--muted);font-size:var(--type-support);margin-top:7px;line-height:1.6}.heading-actions{display:flex;align-items:center;gap:9px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:white;color:#50655d;padding:10px 15px;border-radius:6px;font-size:var(--type-support);font-weight:550;white-space:nowrap}.btn.primary{background:var(--green);border-color:var(--green);color:white;box-shadow:0 3px 6px #16574e12}.btn.primary:hover{background:#0f483f}.btn svg{width:16px;height:16px}.btn.small{padding:7px 10px;font-size:var(--type-label)}.btn.danger{color:var(--red);background:#fff5f3;border-color:#f2d7d2}.btn.ghost{border-color:transparent;background:transparent}.banner{padding:10px 14px;border:1px solid #e9dcb9;background:#fffbec;border-radius:7px;font-size:var(--type-label);line-height:1.6;color:#876729;margin-bottom:22px;display:flex;gap:8px;align-items:center}.banner svg{width:16px;height:16px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.stat{border:1px solid var(--line);border-radius:9px;background:white;padding:20px 21px;position:relative;overflow:hidden}.stat-label{font-size:var(--type-label);font-weight:500;color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:10px}.stat-label svg{color:#8a9e93;width:18px;height:18px}.stat-value{font-size:2rem;font-weight:630;letter-spacing:-1.2px;margin-top:14px;font-variant-numeric:tabular-nums}.stat-footer{margin-top:14px;display:flex;align-items:center;gap:6px;font-size:var(--type-meta);color:var(--muted)}.trend{color:#448769;display:flex;align-items:center;gap:3px}.stat.amber .stat-value{color:#a97634}.stat.amber .stat-label svg{color:#bd975b}.grid-overview{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(280px,1fr);gap:22px;margin-bottom:24px}.card{background:white;border:1px solid var(--line);border-radius:9px;overflow:hidden}.card-head{padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px}.card-head h2{font-size:var(--type-body);letter-spacing:-.2px}.card-head p{font-size:var(--type-meta);color:var(--muted);margin-top:5px}.card-body{padding:0 22px 22px}.chart-legend{display:flex;gap:13px;font-size:var(--type-meta);color:var(--muted);align-items:center}.chart-legend .dot{margin-right:5px}.dot.light{background:#c7ddd0}.chart{width:100%;height:183px;display:block}.chart text{fill:#566c64;font-family:inherit;font-size:var(--type-meta)}.chart-foot{display:flex;gap:35px;border-top:1px solid #edf0ed;margin:10px 22px 0;padding:15px 0}.chart-foot small{font-size:var(--type-meta)}.chart-foot strong{display:block;font-size:1.125rem;margin-top:5px;font-weight:600}.attention-item{display:flex;gap:11px;padding:13px 0;border-bottom:1px solid #eff2ef;align-items:center}.attention-item:last-child{border-bottom:0}.attention-icon{height:33px;width:33px;display:grid;place-items:center;background:#f5f2e9;color:#b28a4b;border-radius:7px;flex-shrink:0}.attention-icon.green{background:#edf5ef;color:#488d6d}.attention-icon.blue{background:#eef2f7;color:#6c86aa}.attention-item .text{flex:1}.attention-item strong{font-size:var(--type-label);font-weight:550}.attention-item p{font-size:var(--type-meta);color:var(--muted);margin-top:5px;line-height:1.4}.attention-item button{border:0;background:transparent;color:var(--muted);padding:5px}.section-title{display:flex;justify-content:space-between;align-items:center;margin:28px 0 15px}.section-title h2{font-size:1.125rem;font-weight:600}.section-title a,.text-link{font-size:var(--type-label);color:var(--green2);cursor:pointer}.providers{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.provider{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);padding:16px 18px;border-radius:8px}.provider-mark{height:36px;width:36px;border-radius:8px;background:#e9f0f8;color:#5878a8;display:grid;place-items:center;font-family:Georgia,serif;font-size:1.375rem;font-weight:bold}.provider:nth-child(2) .provider-mark{color:#a26a5d;background:#f6ece8}.provider:nth-child(3) .provider-mark{color:#8070a2;background:#f0edf6}.provider strong{font-size:var(--type-support);font-weight:600}.provider small{font-size:var(--type-meta);display:block;margin-top:5px}.provider .provider-end{margin-left:auto;text-align:right}.provider-end b{font-size:1.125rem;font-weight:600}.provider-end small{color:#8b9c92}.table-tools{padding:0 22px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px}.tabs{display:flex;gap:7px;align-items:center}.tab{border:1px solid transparent;background:none;border-radius:5px;padding:7px 10px;font-size:var(--type-label);color:var(--muted)}.tab.active{background:#eef5ef;color:var(--green);border-color:#deebe2;font-weight:600}.tab .num{font-size:var(--type-meta);margin-left:5px}.filters{display:flex;gap:8px}.filters input,.filters select{border:1px solid var(--line);border-radius:6px;background:white;padding:8px 10px;font-size:var(--type-label);color:#6f8277;max-width:200px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:var(--type-label);white-space:nowrap}th{background:#f8faf8;padding:12px 22px;color:var(--muted);font-weight:500;border-top:1px solid #edf1ed;border-bottom:1px solid #edf1ed;font-size:var(--type-meta)}td{padding:15px 22px;border-bottom:1px solid #eff2ef;color:#344f43}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcf9}td strong{font-weight:550;color:#354f41}td small{display:block;font-size:var(--type-meta);margin-top:5px;color:var(--muted)}.customer-cell{display:flex;gap:10px;align-items:center}.customer-cell .avatar{border-radius:8px;font-size:var(--type-meta);width:31px;height:31px;background:#eef2e8}.badge{display:inline-flex;gap:5px;align-items:center;border-radius:5px;padding:5px 7px;background:#eef4ef;color:#386347;font-size:var(--type-meta);font-weight:500}.badge.amber{background:#fbf4e8;color:#805619}.badge.red{background:#faeeee;color:#8a4946}.badge.blue{background:#edf2f8;color:#405d83}.badge.gray{background:#f0f2f0;color:#53665a}.badge:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.table-footer{padding:14px 22px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);font-size:var(--type-meta);color:var(--muted)}.empty{padding:45px 25px;text-align:center;color:var(--muted);line-height:1.7;font-size:var(--type-support)}.empty h3{color:#546a5b;margin:10px 0 4px}.empty svg{height:31px;width:31px;stroke:#9bab9c}.row-actions{display:flex;gap:6px}.row-actions button{border:0;background:transparent;color:#7d9785;padding:3px}.row-actions .icon{height:16px;width:16px}.section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.setting-card{padding:23px}.setting-card h3{margin-bottom:7px}.setting-card p{font-size:var(--type-label);color:var(--muted);line-height:1.7;margin-bottom:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:15px}.form-grid .field{margin:0}.field.full{grid-column:1/-1}.field label{font-size:var(--type-label);font-weight:550;color:#60756a}.field input,.field select,.field textarea{background:#fff;border:1px solid #dae3dc;padding:11px 12px;border-radius:6px;min-width:0;width:100%;color:#334f40;font-size:var(--type-support)}.field textarea{min-height:90px;resize:vertical}.field small{font-size:var(--type-meta);line-height:1.5}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid #8db8a8;outline-offset:1px}.check{display:flex;gap:9px;align-items:flex-start;font-size:var(--type-label);line-height:1.6;color:var(--muted);margin:15px 0}.check input{margin-top:3px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.modal-overlay{position:fixed;inset:0;background:#102f2580;backdrop-filter:blur(3px);z-index:80;display:flex;justify-content:center;align-items:center;padding:25px}.modal{width:680px;max-height:92vh;background:#fff;border-radius:12px;box-shadow:0 30px 80px #092f3640;display:flex;flex-direction:column;overflow:hidden}.modal.wide{width:900px}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:23px 27px;border-bottom:1px solid var(--line);gap:15px}.modal-header h2{font-size:1.375rem}.modal-body{overflow:auto;padding:24px 27px}.modal-error{background:#fff0ed;border:1px solid #f0d4cf;color:var(--red);padding:11px;border-radius:6px;font-size:var(--type-support);margin-bottom:18px;display:none}.modal-error.visible{display:block}.detail-title{display:flex;align-items:center;gap:13px;margin-bottom:24px}.detail-title .avatar{height:50px;width:50px;font-size:1.25rem;border-radius:12px}.detail-title h2{font-size:1.5rem}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:24px}.detail-grid dt{font-size:var(--type-meta);color:var(--muted);margin-bottom:6px}.detail-grid dd{margin:0;font-size:var(--type-support);line-height:1.5}.detail-section{padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}.detail-section h3{margin-bottom:14px}.quote-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.quote-option{background:#f6faf5;border:1px solid #dfe9de;border-radius:8px;text-align:left;padding:16px 12px;color:var(--green)}.quote-option strong{font-size:var(--type-support);display:block;margin-bottom:7px}.quote-option small{font-size:var(--type-meta)}.quote-option:hover{border-color:var(--green)}.quote-breakdown{border:1px solid var(--line);border-radius:8px;padding:16px;margin-top:18px}.breakdown-line{display:flex;justify-content:space-between;align-items:center;padding:7px 0;font-size:var(--type-support);color:#75877b}.breakdown-line.total{border-top:1px solid var(--line);margin-top:10px;padding-top:17px;color:var(--green);font-size:1.25rem;font-weight:600}.link-box{padding:15px;background:#edf6ed;border:1px solid #dce8da;border-radius:7px;font-size:var(--type-support);line-height:1.6;overflow-wrap:anywhere}.camera-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.camera-slot{position:relative;aspect-ratio:1.3;border:1px dashed #bbcdbb;border-radius:8px;display:flex;align-items:center;justify-content:center;background:#f8fbf6;color:#92a58f;overflow:hidden;flex-direction:column;font-size:var(--type-meta);gap:7px}.camera-slot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.camera-slot .captured-label{position:absolute;bottom:4px;left:4px;background:#15574ee8;color:white;padding:3px 6px;border-radius:4px;font-size:var(--type-meta)}.camera-view{width:100%;border-radius:9px;background:#243c3a;max-height:55vh}.login-page,.public-page{min-height:100vh;background:radial-gradient(ellipse at 0 0,#e4eee2,transparent 55%),#f5f7f4;padding:35px 25px}.public-header{display:flex;max-width:960px;margin:0 auto 35px;align-items:center;justify-content:space-between}.public-header .brand{padding:0}.public-tag{font-size:var(--type-label);color:var(--muted)}.public-container{max-width:800px;margin:auto}.public-hero{text-align:center;margin:22px 0 30px}.public-hero h1{font-size:2.375rem;color:var(--green);letter-spacing:-1.2px}.public-hero p{color:var(--muted);font-size:var(--type-body);line-height:1.7;margin:12px auto 0;max-width:530px}.public-form{padding:30px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.public-form h3{margin:25px 0 18px;display:flex;align-items:center;gap:10px}.public-form h3:first-child{margin-top:0}.step-number{background:#ebf3e8;color:#568051;border-radius:50%;height:24px;width:24px;display:inline-grid;place-items:center;font-size:var(--type-meta)}.public-footer{color:var(--muted);font-size:var(--type-meta);line-height:1.8;text-align:center;margin:25px 0}.login-card{max-width:420px;margin:60px auto 0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:35px;box-shadow:var(--shadow)}.login-card h1{font-size:1.875rem;margin-bottom:9px}.login-card p{font-size:var(--type-support);color:var(--muted);line-height:1.7;margin-bottom:25px}.login-card .btn{width:100%;margin-top:8px}.boot{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}.boot img{width:64px}.boot h2{font-size:1.625rem;color:var(--green)}.boot p{color:var(--muted);font-size:var(--type-support)}#toast{position:fixed;bottom:27px;left:50%;transform:translate(-50%,20px);background:#1d4235;color:white;border-radius:8px;padding:13px 20px;box-shadow:0 5px 25px #17332622;font-size:var(--type-support);z-index:120;opacity:0;pointer-events:none;transition:all .2s;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}.timeline{border-left:1px solid #d8e6d7;margin-left:7px;padding:0 0 0 22px}.timeline-item{position:relative;margin:0 0 22px;font-size:var(--type-support);line-height:1.6}.timeline-item:before{position:absolute;left:-27px;top:4px;content:'';height:8px;width:8px;background:#7aab7b;border-radius:50%;border:1px solid white}.timeline-item small{font-size:var(--type-meta);display:block;margin-top:4px}.timeline-item p{color:var(--muted);margin-top:4px;font-size:var(--type-label)}.pill-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.notification-list{display:flex;flex-direction:column;gap:17px}.notification-list p{font-size:var(--type-support);color:var(--muted);line-height:1.6;margin-top:6px}.notification-list small{display:block;margin-top:6px;font-size:var(--type-meta)}.report-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.report-metrics .stat-value{font-size:1.625rem}.mobile-menu{display:none}.progress-strip{display:flex;gap:7px;align-items:center;margin:20px 0;padding:15px;border:1px solid var(--line);border-radius:8px;font-size:var(--type-meta);flex-wrap:wrap}.progress-strip span{color:#99a28f}.progress-strip .complete{color:var(--green)}.offline-box{padding:20px;display:flex;align-items:center;gap:15px;background:#f7faf5;border:1px solid var(--line);border-radius:9px;margin-bottom:15px}.offline-box p{font-size:var(--type-label);color:var(--muted);margin-top:6px}.photo-preview{height:70px;max-width:100px;object-fit:cover;border-radius:6px}.public-summary{display:flex;justify-content:space-between;gap:15px;padding:20px 0;border-bottom:1px solid var(--line);margin-bottom:20px}.public-summary strong{font-size:1.875rem;color:var(--green)}.public-summary p{font-size:var(--type-label);color:var(--muted);margin-bottom:7px}.subhead{font-size:var(--type-support);font-weight:600;margin:17px 0 12px}.hide{display:none!important}
@media(min-width:1600px){.content{padding-top:40px}.chart{height:210px}.stat{padding:25px}.attention-item{padding:17px 0}}@media(max-width:1200px){.sidebar{width:210px}.main{margin-left:210px}.content{padding:28px 25px}.topbar{padding:0 25px}.stats{gap:12px}.stat{padding:17px}.stat-value{font-size:1.75rem}.top-actions{gap:10px}.searchbox input{width:120px}.grid-overview{grid-template-columns:1.6fr 1fr}.table-tools{flex-wrap:wrap}}@media(max-width:960px){.searchbox{display:none}.sidebar{width:185px;padding:25px 10px}.main{margin-left:185px}.brand{padding:0 7px 20px}.brand strong{font-size:1.5rem}.brand span{font-size:var(--type-meta)}.nav-btn{font-size:var(--type-support);gap:9px;padding:11px}.stats{grid-template-columns:repeat(2,1fr)}.grid-overview{grid-template-columns:1fr}.providers{gap:10px}.provider{padding:14px 10px;gap:7px}.provider-mark{height:29px;width:29px;font-size:1.125rem}.provider strong{font-size:var(--type-label)}.provider-end b{font-size:var(--type-body)}.heading-actions .btn:first-child{display:none}.section-grid{grid-template-columns:1fr}.page-heading{align-items:flex-start}}@media(max-width:680px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:230px;box-shadow:var(--shadow)}.sidebar.open{transform:translateX(0)}.main{margin-left:0}.topbar{padding:0 18px;height:65px}.content{padding:24px 18px}.mobile-menu{display:inline-flex}.breadcrumb{display:none}.top-actions{margin-left:auto}.top-actions .avatar{display:none}.page-heading{gap:10px;margin-bottom:20px}.page-heading h1{font-size:1.75rem}.heading-actions{margin-top:5px}.heading-actions .btn{font-size:var(--type-label);padding:9px 10px}.subtitle{font-size:var(--type-label)}.stats{gap:10px}.stat{padding:16px}.stat-value{font-size:1.75rem}.stat-footer{font-size:var(--type-meta)}.stat-label{font-size:var(--type-meta)}.providers{grid-template-columns:1fr}.provider{padding:13px 17px}.provider strong{font-size:var(--type-support)}.section-title{margin-top:23px}.table-tools{padding:0 15px 15px}.card-head{padding:18px}.tabs{gap:1px}.tab{font-size:var(--type-meta);padding:6px 8px}.form-grid,.detail-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.modal-overlay{padding:10px}.modal{max-height:96vh}.modal-header{padding:18px}.modal-body{padding:20px 18px}.quote-options{grid-template-columns:1fr}.quote-option{padding:13px}.quote-option strong{display:inline-block;margin-right:10px}.camera-grid{grid-template-columns:repeat(2,1fr)}.public-page{padding:25px 15px}.public-header{margin-bottom:25px}.public-hero h1{font-size:2rem}.public-form{padding:22px 18px}.public-hero p{font-size:var(--type-support)}.public-tag{display:none}.login-card{padding:28px;margin-top:40px}.report-metrics{grid-template-columns:1fr}.filters{flex-wrap:wrap}.filters input{max-width:150px}.chart-foot{gap:25px}.public-summary{flex-direction:column}}
@media print{.sidebar,.topbar,.heading-actions,.row-actions,.form-actions,.demo-banner{display:none!important}.main{margin:0}.content{padding:0}.card,.stat{break-inside:avoid}.modal-overlay{position:static;background:white;padding:0}.modal{max-height:none;box-shadow:none}.modal-body{overflow:visible}body{background:white}}
.sidebar nav{overflow-y:auto;min-height:0;flex:1}.sidebar-foot{flex-shrink:0}.provider-setting{margin-bottom:20px}.provider-setting.provider{padding:0;border:0}
/* RideSecure identity and operations modules */
.brand{display:flex;align-items:center}.brand img{width:190px;height:auto;max-height:58px;object-fit:contain}.public-header .brand img{width:270px;max-height:76px}.boot img{width:310px;max-width:80vw}.sidebar .brand{padding-left:4px;padding-right:4px}.sidebar nav{overflow-y:auto;min-height:0}.sidebar{display:flex;flex-direction:column}.sidebar-foot{margin-top:auto;flex-shrink:0}.setup-step{border-top:1px solid var(--line);padding:18px 0}.setup-step summary{cursor:pointer;font-weight:600;display:flex;gap:12px;align-items:center;font-size:var(--type-body);line-height:1.5}.setup-step>div{padding:15px 0 0 36px}.setup-guide p,.setting-card p{line-height:1.8}.setup-step pre,.wrap-code{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f7f5;border:1px solid var(--line);padding:15px;border-radius:8px;font-size:var(--type-label);line-height:1.9;margin:12px 0;display:block}.setup-guide a,.source-link{color:#1f6973}.guide-sources{font-size:var(--type-label)}.release-row{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.token-output{width:100%;min-height:100px;font-family:monospace;border:1px solid var(--line);border-radius:8px;padding:15px;overflow-wrap:anywhere}.table-tools .field{margin-bottom:0}.setting-card code{overflow-wrap:anywhere}.sidebar nav .nav-btn{padding-top:10px;padding-bottom:10px}@media(max-width:960px){.brand img{width:155px}.sidebar .brand{padding:0 0 20px}}@media(max-width:680px){.public-header .brand img{width:225px}.setup-step>div{padding-left:0}.release-row{align-items:flex-start;flex-direction:column}.table-tools .field{width:100%}}
.sidebar .brand img{height:48px;flex-shrink:0}.public-header .brand img{height:76px}
/* Keep the complete RideSecure wordmark inside every sidebar width. */
.sidebar .brand{width:100%;min-width:0;padding:0 12px 26px 8px;box-sizing:border-box;flex-shrink:0;min-height:74px}
.sidebar .brand img{display:block;width:100%;max-width:190px;min-width:0;height:48px;max-height:48px;object-fit:contain;object-position:left center;flex:0 1 auto}

/* Consistent breathing room between page sections and form notices. */
#page-content > .section-grid + .card,#page-content > .card + .card,#page-content > .card + .section-grid,#page-content > .section-grid + .section-grid{margin-top:24px}
.form-grid + .banner,.form-actions + .banner{margin-top:18px}
.setting-card > .banner:last-child{margin-bottom:0}.setting-card .form-actions{gap:10px;flex-wrap:wrap}
.setup-guide > h2{margin-bottom:10px}.setup-guide > p{margin-bottom:22px}
.permission-toolbar,.import-filters{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;margin:22px 0}.permission-toolbar label{display:grid;gap:7px;flex:1;font-size:var(--type-support);color:#60756a}.permission-toolbar input{padding:10px 12px;border:1px solid #dae3dc;border-radius:7px;min-width:220px}
.access-summary{display:flex;align-items:center;gap:13px;margin-bottom:15px}.access-summary small{display:block;color:var(--muted);margin-top:5px}.access-summary .avatar{width:44px;height:44px}
.permission-group{border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:16px}.permission-group[hidden],.permission-row[hidden]{display:none}.permission-group-head{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:16px 18px;background:#f5f9f7;border-bottom:1px solid var(--line)}.permission-group-head .text-link{border:0;background:none}.permission-row{display:grid;grid-template-columns:minmax(0,1fr) 145px 62px;gap:14px;align-items:center;padding:14px 18px;border-top:1px solid #edf1ee}.permission-row:first-of-type{border-top:0}.permission-row label{font-size:var(--type-support);font-weight:550;color:var(--ink);display:block}.permission-row small{font-size:var(--type-meta);line-height:1.6;display:block;margin-top:5px}.permission-row select{width:100%;padding:9px;border:1px solid #dce5df;border-radius:6px;background:white;color:#50665c;font-size:var(--type-support)}.permission-result{font-size:var(--type-meta);white-space:nowrap;text-align:right}.permission-result.allowed{color:#3c8065}.permission-result.blocked{color:#9c756c}
.access-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.access-shortcut{padding:22px;display:flex;align-items:center;gap:14px;color:var(--ink);text-align:left}.access-shortcut strong{font-size:var(--type-body);flex:1}.access-shortcut-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:9px;background:#eaf4ef;color:var(--green)}
.import-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.import-heading h2{margin-bottom:8px}.import-heading p{margin-bottom:0;max-width:640px}.source-summary{display:flex;align-items:center;gap:18px;justify-content:space-between;padding:15px 18px;background:#f3f8f5;border-radius:8px;margin-bottom:18px}.source-summary>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.source-summary span{font-size:var(--type-label);color:var(--muted)}.mapping-box{margin-top:22px;padding:20px;border:1px solid var(--line);border-radius:9px}.mapping-box h3{margin-bottom:8px}.source-sample{margin-top:22px}.source-sample summary{cursor:pointer;font-size:var(--type-support);color:var(--green2);padding:12px 0}.source-sample .local-grid{max-width:100%}.import-review{border-top:1px solid var(--line);margin-top:26px;padding-top:24px}.import-review>h3{font-size:1.125rem;margin-bottom:18px}.import-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.import-stats>div{border:1px solid var(--line);border-radius:8px;padding:15px;background:#fafcfb}.import-stats strong{font-size:1.625rem;display:block;color:var(--green)}.import-stats small{font-size:var(--type-meta);display:block;line-height:1.5;margin-top:7px}.import-filters .field{flex:1;min-width:170px;margin-bottom:0}.import-review .table-wrap td:last-child{white-space:normal;min-width:180px;max-width:320px}.import-review .table-wrap td:nth-child(2){white-space:normal;min-width:180px}.import-review .banner{margin-top:22px}.import-review .grid-pagination{padding-left:0;padding-right:0}
@media(max-width:680px){.permission-row{grid-template-columns:minmax(0,1fr) 120px;gap:10px;padding:14px}.permission-result{grid-column:2;text-align:left}.permission-group-head{align-items:flex-start}.import-heading,.source-summary{flex-direction:column;align-items:stretch}.import-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.mapping-box{padding:15px}.permission-toolbar input{min-width:0;width:100%}.permission-toolbar{align-items:stretch}.permission-toolbar label{min-width:100%}.import-filters{align-items:stretch}}
/* Consistent, navigable registers */
[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.register-card{margin-bottom:24px}.register-live{display:inline-flex;gap:6px;align-items:center;color:var(--muted);font-size:var(--type-meta);white-space:nowrap}.register-live .icon{width:13px;height:13px}.register-filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;padding:0 24px 20px}.register-filters label{display:flex;flex-direction:column;gap:7px;font-size:var(--type-meta);font-weight:600;color:#647d76;min-width:100px}.register-filters input,.register-filters select,.local-filters input,.local-filters select,.grid-pagination select,.grid-pagination input{height:37px;border:1px solid #dfe8e4;background:#fff;border-radius:6px;padding:0 10px;font:inherit;color:#304e46;max-width:100%}.register-filters .register-search{flex:1;min-width:200px}.register-search>span{display:flex;align-items:center;position:relative}.register-search .icon{position:absolute;left:10px;width:14px;color:#8da098}.register-search input{padding-left:32px;width:100%;font-size:var(--type-support)}.register-filters .btn{height:37px;font-size:var(--type-label);padding:0 13px}.register-filters input[type=date]{font-size:var(--type-label)}.grid-loading,.grid-error{min-height:180px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:var(--type-support);padding:24px}.grid-error{flex-wrap:wrap;color:#934e3f}.remote-grid[aria-busy=true]{opacity:.72;transition:opacity .15s}.grid-pagination{display:flex;flex-wrap:wrap;align-items:center;gap:18px;padding:16px 22px;border-top:1px solid #edf1ee;font-size:var(--type-label);color:var(--muted)}.grid-pagination .grid-summary{margin-right:auto}.grid-pagination label{display:flex;align-items:center;gap:8px;white-space:nowrap}.grid-pagination nav{display:flex;align-items:center;gap:5px}.grid-pagination input{width:54px;height:30px;padding:0 6px;text-align:center}.grid-pagination select{height:30px;font-size:var(--type-label)}.grid-pagination .icon-btn{height:30px;min-width:30px;font-size:1.25rem;border:1px solid #e3eae5;border-radius:5px}.grid-pagination button:disabled{opacity:.32;cursor:default}.remote-grid td:last-child .btn+.btn{margin-left:5px}.remote-grid tbody tr:hover{background:#f9fbfa}.remote-grid .empty{padding:35px 15px}.remote-grid .table-wrap{outline-offset:-2px}.local-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:14px 20px;border-bottom:1px solid #edf1ee}.local-filters>label{display:flex;gap:8px;align-items:center;font-size:var(--type-label);color:var(--muted)}.local-filters .icon{height:14px;width:14px}.local-filters input{font-size:var(--type-label);min-width:150px}.local-filters .muted{margin-left:auto;font-size:var(--type-meta)}.column-sort{background:transparent;border:0;font:inherit;color:inherit;padding:0;text-align:left;cursor:pointer}.column-sort:after{content:' ↕';opacity:.35;font-size:var(--type-meta)}.local-no-results{padding:20px;color:var(--muted);font-size:var(--type-support)}.local-grid .table-footer{border-top:0}.modal .local-filters{padding-left:0;padding-right:0}.modal .grid-pagination{padding-left:0;padding-right:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #43878d;outline-offset:3px}.top-count{position:absolute;top:-4px;right:-6px;border-radius:12px;background:#216a73;color:#fff;min-width:20px;height:20px;padding:0 4px;font-size:11px;font-weight:700;line-height:1;display:grid;place-items:center;border:2px solid #fff;pointer-events:none}.top-count[hidden]{display:none}.notification-btn,.chat-top-button{position:relative}
/* Clickable notification inbox */
.notice-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.notice-tools p{font-size:var(--type-support);color:var(--muted)}.notice-tools .pill-tabs{margin-bottom:0}.notification-list{gap:10px}.notice-card{width:100%;display:flex;gap:15px;text-align:left;background:#fff;border:1px solid #e4ebe7;border-radius:10px;padding:18px;align-items:flex-start;transition:background .15s,border-color .15s;cursor:pointer}.notice-card:hover{background:#f5faf8;border-color:#b9d1c8}.notice-card.unread{background:#f3f8f6;border-left:3px solid #22747b}.notice-symbol{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:10px;background:#e8f0ec;color:#2f756c}.notice-symbol .icon{width:17px}.notice-content{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}.notice-content strong{font-size:var(--type-body);color:#294b43;line-height:1.45}.notice-content>span{font-size:var(--type-support);color:var(--muted);line-height:1.7;overflow-wrap:anywhere}.notice-content time{font-size:var(--type-meta);color:var(--muted)}.notice-arrow{margin-top:8px;color:#7f9b8e;flex-shrink:0}.notice-arrow .icon{width:17px}.notice-pagination{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:20px}.notice-pagination>span{margin-right:auto;font-size:var(--type-label);color:var(--muted)}
/* Department chat */
.chat-layout{display:grid;grid-template-columns:260px minmax(0,1fr);border:1px solid #e1e9e4;border-radius:12px;background:white;box-shadow:0 2px 8px #204a3610;overflow:hidden;min-height:620px;height:min(720px,calc(100vh - 245px))}.chat-sidebar{background:#f8faf8;border-right:1px solid #e5ece7;padding:25px 14px;display:flex;flex-direction:column;min-width:0}.chat-sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:0 12px;margin-bottom:24px}.chat-sidebar-heading .eyebrow{font-size:var(--type-meta);letter-spacing:1.6px}.live-dot{height:7px;width:7px;background:#64a38b;border-radius:50%;box-shadow:0 0 0 4px #e6f0e9}.channel-button{width:100%;border:1px solid transparent;border-radius:9px;background:transparent;display:flex;gap:11px;align-items:center;padding:14px 10px;text-align:left;color:#556f64;cursor:pointer;margin-bottom:8px}.channel-button.selected{background:#e9f2ed;border-color:#d9e7dd;color:#1c6156}.channel-button:hover{background:#edf4ee}.channel-button>span:nth-child(2){min-width:0;flex:1}.channel-button strong{display:block;font-size:var(--type-support);line-height:1.4}.channel-button small{display:block;font-size:var(--type-meta);color:var(--muted);margin-top:5px;line-height:1.5}.channel-mark{height:33px;width:33px;border-radius:9px;display:grid;place-items:center;background:white;border:1px solid #e0e9e0;color:#588a74;flex-shrink:0}.channel-mark .icon{height:16px;width:16px}.channel-mark.large{height:42px;width:42px;background:#eff6f1}.channel-mark.large .icon{height:20px;width:20px}.channel-unread{font-size:var(--type-meta);min-width:19px;height:19px;border-radius:20px;background:#327b70;color:white;display:grid;place-items:center;padding:0 4px}.chat-retention{display:flex;gap:9px;color:var(--muted);font-size:var(--type-meta);line-height:1.7;margin-top:auto;padding:20px 12px 0;border-top:1px solid #e4ece5}.chat-retention .icon{width:15px;flex-shrink:0;margin-top:3px}.chat-main{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-header{display:flex;align-items:center;gap:13px;padding:20px 25px;border-bottom:1px solid #e6ece7}.chat-header h2{font-size:1.125rem;line-height:1.4;margin:0}.chat-header p{font-size:var(--type-meta);color:var(--muted);margin-top:5px;line-height:1.5}.chat-header .sound-control{margin-left:auto;white-space:nowrap;font-size:var(--type-meta)}.chat-thread{flex:1;overflow:auto;min-height:220px;background:#fcfdfb;padding:20px 27px;scroll-behavior:smooth}.chat-message{display:flex;gap:10px;align-items:flex-end;margin:16px 0;max-width:87%}.chat-message .avatar{width:28px;height:28px;font-size:var(--type-meta);flex-shrink:0;margin-bottom:2px}.chat-bubble{padding:13px 17px;background:white;border:1px solid #e2ebe3;border-radius:12px 12px 12px 3px;min-width:100px;max-width:100%;box-shadow:0 2px 4px #3c6a3510}.chat-message.own{margin-left:auto;justify-content:flex-end}.own .chat-bubble{background:#edf5ef;border-color:#dae9de;border-radius:12px 12px 3px 12px}.chat-byline{display:flex;align-items:center;gap:18px;margin-bottom:8px}.chat-byline strong{font-size:var(--type-meta);color:#3c7056}.chat-byline time{font-size:var(--type-meta);color:var(--muted);margin-left:auto}.chat-bubble p{font-size:var(--type-support);line-height:1.8;color:#3b5647;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.chat-date{display:flex;justify-content:center;padding:5px 0}.chat-date span{font-size:var(--type-meta);color:var(--muted);background:#f1f5ed;border-radius:20px;padding:5px 13px}.chat-status{display:flex;align-items:center;justify-content:center;gap:6px;font-size:var(--type-meta);color:var(--muted);padding:9px;background:#fcfdfb}.chat-status .icon{width:11px;height:11px}.chat-composer{padding:16px 24px 20px;border-top:1px solid #e4ebe5}.chat-composer textarea{display:block;width:100%;min-height:65px;max-height:180px;resize:vertical;box-sizing:border-box;border:1px solid #dae5db;border-radius:9px;padding:14px 16px;font:inherit;font-size:var(--type-support);color:#33583f;background:#fbfdfb;line-height:1.7}.chat-composer textarea::placeholder{color:#9bac9a}.chat-composer-foot{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:12px}.chat-composer-foot>span{font-size:var(--type-meta);color:var(--muted)}.chat-composer-foot .btn{font-size:var(--type-label);padding:10px 14px}.chat-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;min-height:260px;text-align:center;color:#91a38f}.chat-empty h3{font-size:var(--type-body);color:#718a6b}.chat-empty p{font-size:var(--type-label)}.older-messages{display:block;margin:0 auto 15px}
@media(min-width:1600px){.chat-layout{height:calc(100vh - 260px);max-height:850px}.chat-thread{padding:25px 40px}}
@media(max-width:1100px){.chat-layout{grid-template-columns:205px minmax(0,1fr)}.chat-sidebar{padding:20px 8px}.channel-button{gap:8px;padding:13px 7px}.channel-button small{font-size:var(--type-meta)}.chat-header{padding:17px}.chat-header p{max-width:210px}.chat-thread{padding:16px}.register-filters{padding:0 18px 18px}.register-filters label{min-width:90px}.grid-pagination{gap:12px}}
@media(max-width:780px){.chat-layout{grid-template-columns:1fr;min-height:690px;height:calc(100vh - 200px)}.chat-sidebar{display:block;padding:10px 12px;border-right:0;border-bottom:1px solid #e3ece2}.chat-sidebar-heading,.chat-retention{display:none}#chat-channels{display:flex;gap:6px;overflow:auto}.channel-button{width:auto;min-width:130px;margin:0;padding:9px;gap:8px;flex-shrink:0}.channel-button small{display:none}.channel-button .channel-mark{height:25px;width:25px}.channel-button strong{font-size:var(--type-meta)}.chat-main{min-height:0}.chat-header{padding:14px}.chat-header p{display:none}.chat-header .sound-control{font-size:var(--type-meta);padding:8px}.chat-composer{padding:12px}.chat-composer-foot>span{display:none}.chat-composer-foot{justify-content:flex-end}.chat-message{max-width:95%}.chat-thread{min-height:230px}.grid-pagination{padding:14px;gap:10px}.grid-pagination .grid-summary{flex-basis:100%}.grid-pagination nav{margin-left:auto}.local-filters{padding:12px 14px}.local-filters .muted{display:none}.register-filters{gap:10px}.register-filters .register-search{flex-basis:100%}.register-filters label{flex:1;min-width:110px}.register-live{display:none}.notice-card{padding:14px;gap:11px}.notice-content strong{font-size:var(--type-support)}.notice-content>span{font-size:var(--type-label)}.notice-symbol{width:30px;height:30px}.notice-arrow{display:none}}
@media(min-width:781px){.chat-layout{height:calc(100dvh - 310px);min-height:460px;max-height:850px}.chat-thread{min-height:120px}.chat-empty{min-height:190px}}

.quote-rates{padding:20px;border:1px solid var(--line);border-radius:10px;background:#f8fbf9}.quote-rates .subtitle{margin-bottom:16px}.quote-rates>small{display:block;margin-top:12px;color:var(--muted);line-height:1.6}.quote-rates+.form-grid{margin-top:20px}.coverage-multipliers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.quote-deductible{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:8px;padding:16px;margin:18px 0;background:#f7faf8}.quote-deductible strong{display:block;color:var(--green);font-size:1.25rem;margin:5px 0}.quote-deductible small{line-height:1.6;color:var(--muted)}@media(max-width:680px){.coverage-multipliers{grid-template-columns:1fr}.quote-rates{padding:15px}}

/* Deductible type controls share the form rhythm and hide inactive required inputs. */
.deductible-value[hidden]{display:none!important}
.quote-deductible-options{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.quote-deductible-options h4{margin:0 0 14px}
.quote-deductible-options .form-grid{margin-bottom:16px}

.migration-panel{margin-bottom:24px}.migration-panel .card-head{align-items:flex-start;gap:20px}.migration-panel .card-head p{max-width:700px;margin:8px 0 0}.migration-status p{margin:10px 0}.migration-status>small{display:block;line-height:1.6;color:var(--muted)}.migration-status progress{display:block;width:100%;height:10px;margin:14px 0;accent-color:var(--green)}.migration-upload{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.migration-upload summary{font-weight:600;cursor:pointer}.migration-upload p{margin-top:16px}.check-label{display:flex;gap:12px;align-items:flex-start;margin:24px 0;line-height:1.6}.check-label input{margin-top:5px}.badge.migration-review,.badge.imported{background:#fff5db;color:#926b24}.setup-step pre{white-space:pre-wrap;overflow-wrap:anywhere}
.table-tools[data-form^="migration-"]{display:grid;grid-template-columns:minmax(210px,1fr) minmax(150px,210px) auto;align-items:end;gap:16px;padding:18px 0 22px;margin:0}.table-tools[data-form^="migration-"] .field{min-width:0;margin:0}.table-tools[data-form^="migration-"] input,.table-tools[data-form^="migration-"] select{width:100%;min-width:0}.table-tools[data-form^="migration-"]>.btn:last-child{margin-bottom:0}.check-label input{width:auto;flex:0 0 auto}.migration-status .form-actions{flex-wrap:wrap;justify-content:flex-start;gap:10px}
@media(max-width:680px){.table-tools[data-form^="migration-"]{grid-template-columns:1fr}.migration-panel .card-head{flex-direction:column}.migration-status .form-actions>.btn{flex:1 1 auto}}

/* Cumulative update status stays beside its version; long notes retain full card width. */
.update-package{align-items:stretch;flex-direction:column;gap:10px;padding:24px 0}.update-package-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.update-package>p{font-size:var(--type-support);line-height:1.8}.update-package>small{display:block}.update-package-footer{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding-top:8px}.update-package-footer p{font-size:var(--type-support);color:var(--muted);line-height:1.7}.update-cumulative{margin-top:20px;align-items:flex-start}.update-cumulative strong{display:block;margin-bottom:4px}.badge.included,.badge.ready{background:#edf5ee;color:#386347}.badge.needs-recheck,.badge.invalid{background:#fff5db;color:#926b24}
.migration-live{border:1px solid #cee1db;border-radius:10px;padding:22px;margin:8px 0 24px;background:#f5faf8}.migration-live-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.migration-live-heading small{font-size:var(--type-meta);letter-spacing:1px;color:var(--green)}.migration-live-heading h3{font-size:1.25rem;margin:8px 0 0}.migration-live-heading>strong{font-size:1.75rem;color:var(--green)}.migration-live progress{width:100%;height:12px;accent-color:var(--green);display:block;margin:18px 0 12px}.migration-live>p{font-size:var(--type-body);line-height:1.7}.migration-live-counts{display:flex;flex-wrap:wrap;gap:12px 24px;margin:16px 0}.migration-live-counts span{font-size:var(--type-support);color:var(--muted)}.migration-live-counts b{color:var(--ink);margin-right:5px}.migration-live-clock{display:block;margin-top:14px}.migration-progress-note{margin-top:12px;color:var(--amber)}.migration-live.has-error{border-color:#e8cb9e;background:#fffaf1}.migration-work-details{background:#f7faf8;border:1px solid var(--line);padding:20px;border-radius:9px;margin:20px 0}.migration-work-details h3{font-size:1.125rem}.migration-work-details>p{margin:10px 0;font-size:var(--type-support);line-height:1.8}.migration-work-details>small{display:block;margin-top:12px}.migration-activity{border-top:1px solid var(--line);margin-top:16px;padding-top:15px}.migration-activity summary{cursor:pointer;font-weight:600;font-size:var(--type-support)}.migration-activity ol{list-style:none;padding:0;margin:14px 0 0}.migration-activity li{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:16px;padding:10px 0;font-size:var(--type-label);border-top:1px solid var(--line)}.migration-activity li time{color:var(--muted)}.migration-activity li span{overflow-wrap:anywhere}.migration-current-item{overflow-wrap:anywhere}@media(max-width:680px){.migration-live,.migration-work-details{padding:16px}.migration-live-heading h3{font-size:1.125rem}.migration-activity li{grid-template-columns:1fr;gap:6px}.migration-live-counts{gap:10px 18px}}

.boot-help{visibility:hidden;opacity:0;animation:boot-recovery 0s 30s forwards;max-width:460px;text-align:center}.boot-help p{font-size:var(--type-support);line-height:1.8;margin:20px 0 14px}@keyframes boot-recovery{to{visibility:visible;opacity:1}}

.maintenance-container{max-width:1200px;padding-bottom:48px}.maintenance-container>.form-actions{margin:24px 0}.maintenance-container .page-heading{margin-top:24px}

/* Complete portfolio reporting and historical source context. */
.reporting-note{align-items:flex-start;margin-bottom:24px}.reporting-note strong{display:block;margin-bottom:6px}.reporting-note p{margin:5px 0;line-height:1.65}.report-chart-note{font-size:var(--type-label);line-height:1.7;color:var(--muted);padding:0 24px 22px;margin:0}.historical-dot{background:#79a9ad!important}.reporting-providers td small{display:block;margin-top:5px;color:var(--muted);font-size:var(--type-meta)}.reporting-providers .table-footer{white-space:normal;line-height:1.7}.providers .provider-end b{font-size:var(--type-body)}.stat small{overflow-wrap:anywhere}

.source-review-summary{margin:20px 0;padding:20px 24px;border:1px solid var(--line,#dfe7e4);border-radius:12px;background:var(--soft,#f3f8f6)}.source-review-summary h3{margin:0 0 10px}.source-review-summary p{margin:8px 0;line-height:1.65}.source-review-summary small{display:block;line-height:1.6;color:var(--muted,#6b817b)}

.migration-decision{min-width:230px;max-width:340px}.migration-decision small{white-space:normal;overflow:visible;text-overflow:clip;max-width:none;line-height:1.6}.migration-decision strong{display:block;white-space:normal}
/* Staff guide, account reviews and customer care. */
.guide-intro{background:#e8f3ef;border:1px solid #d2e6dd;border-radius:16px;padding:30px;margin-bottom:28px}.guide-intro>div:first-child{display:flex;gap:20px;align-items:flex-start}.guide-intro .icon{width:32px;height:32px;flex-shrink:0;color:#267665}.guide-intro h2{margin:0 0 8px}.guide-intro p{margin:0;max-width:760px;line-height:1.7}.guide-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.guide-pills span{background:white;border-radius:20px;padding:6px 14px;font-size:var(--type-support);font-weight:600}.workflow-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:28px}.workflow-step{border:1px solid var(--border,#dfe7e3);border-radius:14px;background:white;display:flex;gap:20px;padding:26px}.step-number,.review-section-title>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#15564e;color:white;font-weight:700;flex-shrink:0}.step-content h2{font-size:1.5rem;margin:8px 0}.step-content p,.guide-bottom p{color:#5e736b;line-height:1.8}.step-content .btn{margin-top:12px}.step-content .eyebrow{font-size:var(--type-meta)}.guide-bottom{display:grid;grid-template-columns:1fr 1fr;gap:20px}.record-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.review-top{display:flex;justify-content:space-between;gap:18px;align-items:center}.review-customer{display:flex;gap:14px;align-items:center;margin-bottom:20px;min-width:0}.review-customer h2,.review-customer h3{margin:0 0 6px}.review-customer p{margin:0;color:#62796f;overflow-wrap:anywhere}.review-count{font-size:var(--type-support);white-space:nowrap;background:#eef4f1;padding:8px 12px;border-radius:20px;margin-bottom:20px}.review-message{display:flex;gap:12px;background:#f6f8f6;border-radius:10px;padding:16px;align-items:flex-start}.review-message .icon{flex-shrink:0}.review-message p{margin:0;line-height:1.7}.review-section{padding:26px 0;border-bottom:1px solid #e0e8e3}.review-section-title{display:flex;gap:12px;align-items:center;margin-bottom:22px}.review-section-title h3{margin:0}.review-contact{display:flex;gap:18px;flex-wrap:wrap;font-size:var(--type-body);margin-bottom:10px}.muted{color:#637b71;font-size:var(--type-body);line-height:1.7}.review-paid{padding:16px 20px;background:#edf5f0;display:flex;justify-content:space-between;border-radius:10px;margin:16px 0}.review-paid strong{color:#15564e}.review-payment-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;align-items:end;gap:12px;margin:16px 0}.review-payment-row .field{min-width:0;margin:0}.review-payment-row .field input{height:44px;min-height:44px;line-height:1.4}.review-payment-row .icon-btn{width:44px;height:44px;margin:0}.review-evidence{margin-top:24px;border:1px solid #dce6df;border-radius:10px;padding:16px}.review-evidence summary{cursor:pointer;font-weight:600}.review-source{display:flex;gap:14px;justify-content:space-between;align-items:center;padding:16px 0;border-bottom:1px solid #e3eae6;color:inherit;text-decoration:none}.review-source:last-child{border:0}.review-source small{display:block;color:#6b7f76;margin-top:5px}.review-source>span{font-size:var(--type-support);line-height:1.6}.review-source .icon{flex-shrink:0}.review-check{display:flex;align-items:flex-start;gap:10px;margin:20px 0;line-height:1.7}.review-check input{width:18px;height:18px;margin-top:4px;flex-shrink:0}.review-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:24px}.account-note{padding:20px 0;border-bottom:1px solid #e1e9e4;overflow-wrap:anywhere}.account-note p{line-height:1.8;margin:12px 0}.account-note small{color:#6d8177}.customer-account-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:24px 0;border-bottom:1px solid #e1e9e4}.customer-account-row h3{margin:0 0 8px}.customer-account-row p{color:#607b6e}.customer-account-row>div:last-child{display:flex;flex-direction:column;align-items:flex-end;gap:14px}.public-container>.card{margin-bottom:24px}#review-plan[hidden]{display:none}
@media(max-width:800px){.workflow-steps,.guide-bottom{grid-template-columns:1fr}.workflow-step{padding:22px;gap:16px}.review-top{flex-wrap:wrap}.review-paid,.customer-account-row{align-items:flex-start;flex-direction:column;gap:12px}.customer-account-row>div:last-child{align-items:flex-start}.review-payment-row{gap:10px}.review-actions .btn{flex:1}.guide-intro{padding:24px}}

@media(max-width:540px){.review-payment-row{grid-template-columns:minmax(0,1fr) 44px;gap:12px}.review-payment-row>.field:first-child{grid-column:1/-1}}
/* Private team conversations and group @mentions. */
.chat-sidebar{min-height:0}.chat-sidebar>.btn{margin:0 10px 16px}#chat-channels{overflow:auto;min-height:0;flex:1}.chat-channel-section{margin-bottom:20px}.chat-channel-section h3{font-size:var(--type-meta);letter-spacing:.8px;text-transform:uppercase;color:var(--muted);padding:4px 12px 10px}.chat-sidebar-hint{font-size:var(--type-label);line-height:1.7;color:var(--muted);padding:6px 12px}.chat-member-search{margin-top:22px}.chat-member-list{display:grid;gap:6px}.chat-member{display:flex;gap:14px;align-items:center;width:100%;padding:14px;border:1px solid #e2eae5;border-radius:10px;background:white;text-align:left;color:var(--ink)}.chat-member:hover{background:#f0f7f2}.chat-member>span:nth-child(2){flex:1;min-width:0}.chat-member strong{display:block;font-size:var(--type-body);overflow-wrap:anywhere}.chat-member small{display:block;margin-top:5px;font-size:var(--type-label)}.chat-send-actions{display:flex;gap:10px;align-items:center}.chat-compose-box{position:relative}.chat-mention-menu{position:absolute;bottom:calc(100% + 8px);left:0;right:0;border:1px solid #d8e5dc;background:white;border-radius:10px;box-shadow:0 10px 35px #163c3025;max-height:240px;overflow:auto;z-index:5;padding:6px}.chat-mention-menu[hidden]{display:none}.chat-mention-menu>button{display:flex;width:100%;align-items:center;gap:12px;padding:10px;border:0;border-radius:6px;background:white;text-align:left;color:var(--ink)}.chat-mention-menu>button[aria-selected=true],.chat-mention-menu>button:hover{background:#eaf4ee}.chat-mention-menu strong{display:block;font-size:var(--type-support)}.chat-mention-menu small{display:block;font-size:var(--type-meta);color:var(--muted);margin-top:4px}.chat-mention-menu>p{padding:12px;font-size:var(--type-support);color:var(--muted)}.chat-mention{color:#156c5c;background:#e1f2e9;padding:2px 4px;border-radius:4px;font-weight:650}.chat-mention.for-you{color:#815810;background:#fff0c7}.chat-tag-preview{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.chat-tag-preview:empty{display:none}.chat-tag-preview>span{display:inline-flex;gap:5px;align-items:center;background:#eef6f0;border-radius:20px;padding:4px 9px;font-size:var(--type-meta);color:#517961}.chat-tag-preview .icon{width:12px;height:12px}.chat-highlight .chat-bubble{outline:2px solid #cba553;outline-offset:3px}.chat-message:focus{outline:none}.chat-channel-list .channel-button strong{overflow-wrap:anywhere}.chat-status{line-height:1.5;text-align:center;padding:9px 12px}
@media(max-width:780px){.chat-sidebar{max-height:215px;overflow:auto}.chat-sidebar>.btn{margin:0 0 10px;padding:8px 12px}#chat-channels{display:block;overflow:visible}.chat-channel-section{margin:0 0 10px}.chat-channel-section h3{font-size:var(--type-meta);padding:0 2px 6px}.chat-channel-list{display:flex;gap:6px;overflow:auto;padding:2px}.chat-sidebar-hint{padding:0 2px}.chat-send-actions{width:100%;justify-content:space-between}.chat-composer-foot{margin-top:10px}.chat-layout{min-height:760px}}
/* Shared form rhythm and inquiry sections, in public pages and staff dialogs. */
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}.field{min-width:0}.field label{line-height:1.5}.field input:not([type=checkbox]):not([type=radio]):not([type=file]),.field select{min-height:44px}.field input[type=file]{min-height:48px;padding:8px 10px;line-height:1.7;overflow:hidden;text-overflow:ellipsis}.field input[type=file]::file-selector-button{border:1px solid #d9e6dd;border-radius:5px;background:#eef5f0;color:#2d6654;font:inherit;font-weight:550;padding:7px 10px;margin-right:12px;cursor:pointer}.field input[type=file]::file-selector-button:hover{background:#e2efe7}.modal-body form>.form-grid+.field,.modal-body form>.form-grid+.form-grid,.public-form form>.form-grid+.field{margin-top:20px}.form-actions{flex-wrap:wrap;gap:12px}.form-actions .btn{min-height:40px}.inquiry-section+.inquiry-section{margin-top:30px;padding-top:28px;border-top:1px solid var(--line)}.inquiry-section-heading{display:flex;align-items:flex-start;gap:13px;margin:0 0 22px}.inquiry-step-number{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#e9f3ee;color:#1c6656;font-size:var(--type-support);font-weight:700}.inquiry-section-heading>div{min-width:0}.public-form .inquiry-section-heading h3,.modal .inquiry-section-heading h3{display:block;margin:0;font-size:1.125rem;line-height:1.6;letter-spacing:-.3px}.inquiry-section-heading p{font-size:var(--type-support);color:var(--muted);line-height:1.7;margin-top:5px}.inquiry-upload{margin-bottom:22px}.inquiry-photo-intro{margin:0;line-height:1.8}.inquiry-section .camera-grid{margin-top:18px;gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}.inquiry-section .camera-slot{min-width:0;border-radius:10px;aspect-ratio:1.45;min-height:120px;font-size:var(--type-support);gap:10px}.inquiry-consent{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}.inquiry-consent .check{margin:0 0 18px;gap:12px;line-height:1.9}.inquiry-consent .check input{flex-shrink:0;margin-top:4px}.inquiry-consent>.banner{margin:0;align-items:flex-start;padding:14px 16px}.inquiry-consent>.banner .icon{margin-top:2px}.public-form:has(form[data-form=lead]){padding:32px}.modal-body:has(form[data-form=lead]){padding:28px}
@media(max-width:720px){.form-grid{grid-template-columns:minmax(0,1fr);gap:18px}.public-form:has(form[data-form=lead]){padding:24px 18px}.modal-body:has(form[data-form=lead]){padding:22px 18px}.inquiry-section+.inquiry-section{margin-top:26px;padding-top:24px}.inquiry-section .camera-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.inquiry-section .camera-slot{min-height:100px}.inquiry-section-heading{gap:11px;margin-bottom:20px}.inquiry-section-heading p{font-size:var(--type-label)}.inquiry-step-number{width:28px;height:28px;flex-basis:28px}.inquiry-consent+.form-actions{flex-direction:column-reverse}.inquiry-consent+.form-actions .btn{width:100%;white-space:normal}}
/* Business analytics: calendar controls, readable totals and balanced cards. */
.analytics-filter-card{margin-bottom:24px;padding:22px 26px}.analytics-filters{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end}.analytics-filters .field{min-width:180px;flex:0 1 230px;margin:0}.analytics-filters input,.analytics-filters select{width:100%;min-height:44px}.analytics-filters .btn{min-height:44px;margin-bottom:0}.analytics-period{display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:var(--muted);font-size:var(--type-body);margin-top:16px}.analytics-period svg{width:16px;height:16px}.analytics-error{color:#a43a33}.analytics-chart-scroll{overflow-x:auto}.analytics-chart{min-width:660px;min-height:220px;width:100%}.analytics-funnel{margin:0;padding:10px 26px 22px}.analytics-funnel>div{display:flex;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line)}.analytics-funnel>div:last-child{border:0}.analytics-funnel dt{color:var(--muted);font-size:var(--type-body)}.analytics-funnel dd{margin:0;font-weight:700}.analytics-coverage{margin:24px 0;padding:20px 24px;background:#eef5f2;border:1px solid #dce8e2;border-radius:14px}.analytics-coverage summary{font-weight:600;cursor:pointer;line-height:1.6}.analytics-coverage summary svg{width:17px;height:17px;vertical-align:middle;margin-right:8px}.analytics-coverage p{font-size:var(--type-body);line-height:1.8;color:var(--muted);margin:16px 0 0}.staff-performance .card-head p{max-width:780px}
@media(max-width:720px){.analytics-filter-card{padding:20px 18px}.analytics-filters{gap:14px}.analytics-filters .field{min-width:0;flex:1 1 100%}.analytics-filters .btn{width:100%}.analytics-funnel{padding:8px 20px 20px}.analytics-coverage{padding:18px}}
/* Claims transition: source evidence, policy premiums and claim money have distinct sections. */
.ct-intro{padding:22px 26px;margin-bottom:26px;border-radius:14px;border:1px solid #cddfd7;background:#edf5f1;line-height:1.8}.ct-intro svg{width:20px;vertical-align:middle;margin-right:8px}.ct-intro p{margin-top:6px;color:var(--muted);font-size:var(--type-body)}.ct-progress-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:22px 0 14px}.ct-progress-top p{margin:8px 0 0}#ct-progress progress{width:100%;height:13px;accent-color:#206c57}#ct-progress .form-actions{margin-top:18px}.ct-help{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.ct-help summary{font-weight:600;cursor:pointer}.ct-help ol{padding-left:20px;margin-top:16px;line-height:1.9;font-size:var(--type-body);color:var(--muted)}.ct-review-section{margin-top:26px;padding-top:24px;border-top:1px solid var(--line)}.ct-review-section h3{margin-bottom:14px}.ct-review-section>p{font-size:var(--type-body);line-height:1.8;margin-bottom:16px;color:var(--muted)}.ct-review-section summary{font-weight:600;cursor:pointer;margin-bottom:18px}.ct-review-section .form-grid{margin:20px 0}.ct-review-section .check{display:flex;align-items:flex-start;gap:10px;margin:18px 0;line-height:1.8;font-size:var(--type-support)}.ct-review-section .check input{margin-top:4px;flex-shrink:0}.ct-record-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.ct-record-heading h2{font-size:1.5rem;line-height:1.5}.ct-record-heading p{font-size:var(--type-support);color:var(--muted);line-height:1.8;margin-top:8px}.ct-money-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.ct-money-grid>div{border-radius:10px;background:#f1f6f3;border:1px solid #dfe8e2;padding:16px}.ct-money-grid small{display:block;color:var(--muted);font-size:var(--type-label);line-height:1.6}.ct-money-grid strong{display:block;font-size:1.25rem;margin-top:8px}.ct-policy-search{display:flex;align-items:flex-end;gap:14px;margin:20px 0}.ct-policy-search .field{flex:1;margin-bottom:0}.ct-policy-search .btn{min-height:44px}.ct-balance{padding:14px;background:#edf5f1;border-radius:8px;line-height:1.9}.ct-source-value{white-space:pre-wrap;overflow-wrap:anywhere;max-width:600px;line-height:1.8}.ct-error{color:#a13e37;line-height:1.8;font-size:var(--type-body)}@media(max-width:720px){.ct-record-heading{align-items:flex-start;flex-direction:column}.ct-money-grid{grid-template-columns:1fr}.ct-policy-search{flex-direction:column;align-items:stretch}.ct-intro{padding:18px}.ct-progress-top{gap:12px}}

.scheduler-check{margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:12px}
.scheduler-check h3{margin:0 0 8px}
.scheduler-sources{list-style:none;padding:0;margin:14px 0}
.scheduler-sources li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;padding:9px 0;border-bottom:1px solid var(--line)}
.scheduler-check-actions:empty{display:none}
.scheduler-check-actions{margin-top:14px}
.department-reports{margin-top:20px}
.department-reports .analytics-filters{margin:16px 0}
.department-report-totals{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}
.department-report-totals div{display:grid;gap:4px;padding:10px 14px;border-radius:8px;background:var(--mint)}

/* Wrap register content at its available width and use labelled rows in narrow panels. */
.table-wrap{container:ride-table / inline-size;overflow:visible;min-width:0;max-width:100%}
.table-wrap>table{width:100%;table-layout:fixed;white-space:normal;overflow-wrap:anywhere}
.table-wrap :is(th,td){padding:12px clamp(6px,1cqi,16px);min-width:0;vertical-align:middle}
.import-review .table-wrap :is(td:last-child,td:nth-child(2)),.table-wrap .migration-decision{min-width:0;max-width:none}
.table-wrap :is(.btn,.badge,.column-sort){white-space:normal;max-width:100%;overflow-wrap:anywhere;text-align:left}
.table-wrap .btn{justify-content:flex-start}
.table-wrap .btn .icon{flex:none}
.table-wrap .table-action-cell>.table-cell-value{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px}
.remote-grid .table-wrap td:last-child .btn+.btn{margin-left:0}
.table-wrap :is(input,select,textarea,img){max-width:100%;min-width:0}
.table-wrap pre{white-space:pre-wrap;overflow-wrap:anywhere}
.review-ar-links{display:grid;gap:8px;padding-left:20px;overflow-wrap:anywhere}

@container ride-table (max-width:900px){
    .responsive-table{display:block;position:relative}
    .responsive-table>thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
    .responsive-table>thead:has(.column-sort){position:static;width:auto;height:auto;clip-path:none;overflow:visible;display:block;background:#f8faf8;padding:6px 10px}
    .responsive-table>thead:has(.column-sort)>tr{display:flex;flex-wrap:wrap;gap:3px 8px}
    .responsive-table>thead:has(.column-sort) th{background:none;border:0;padding:4px}
    .responsive-table>thead:has(.column-sort) th:empty{display:none}
    .responsive-table>tbody{display:grid;gap:8px;padding:8px;min-width:0}
    .responsive-table>tbody>tr{display:block;border:1px solid var(--line);border-radius:8px;padding:6px 10px;min-width:0}
    .responsive-table>tbody>tr>td{display:block;border:0;padding:6px 0;min-width:0}
    .responsive-table>tbody>tr>td[data-column]{display:grid;grid-template-columns:minmax(0,32%) minmax(0,1fr);gap:10px;align-items:start}
    .responsive-table>tbody>tr>td[data-column]::before{content:attr(data-column);content:attr(data-column) / "";font-weight:600;color:#596e65}
    .responsive-table .table-cell-value{min-width:0}
}

/* Keep larger text comfortable in forms, registers and compact panels. */
small{font-size:var(--type-meta)}
.nav-btn,.subtitle,.setting-card p,.public-hero p,.login-card p,.chat-bubble p{font-size:var(--type-body)}
.nav-btn .icon,.badge::before{flex-shrink:0}
.btn{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.btn .icon{flex-shrink:0}
table{font-size:var(--type-support);line-height:1.5}
th{font-size:var(--type-label);font-weight:650}
.field label,.register-filters label{font-size:var(--type-label)}
.modal-body form>.subtitle+:is(.form-grid,.field){margin-top:14px}
.field :is(input,select,textarea),.register-filters :is(input,select),.local-filters :is(input,select),.chat-composer textarea{font-size:var(--type-body)}
.register-filters :is(input,select){font-weight:400}
.grid-pagination nav{max-width:100%;flex-wrap:wrap}
.stat,.stat-label,.stat-footer,.stat-value{min-width:0;overflow-wrap:anywhere}
.stat-label svg{flex-shrink:0}

/* Keep policy identifiers, customer names and actions on roomier columns. */
@container ride-table (width > 900px){
    :is([data-register="policies"],[data-register="renewals"]) th:nth-child(1){width:18%}
    :is([data-register="policies"],[data-register="renewals"]) th:nth-child(2){width:16%}
    :is([data-register="policies"],[data-register="renewals"]) th:nth-child(3){width:12%}
    :is([data-register="policies"],[data-register="renewals"]) th:nth-child(4){width:12%}
    :is([data-register="policies"],[data-register="renewals"]) th:nth-child(5){width:13%}
    :is([data-register="policies"],[data-register="renewals"]) th:nth-child(6){width:11%}
    :is([data-register="policies"],[data-register="renewals"]) th:nth-child(7){width:18%}
    :is([data-register="payments"],[data-register="receipts"],[data-register="historical_ars"]) th:last-child{width:19%}
}

@media(max-width:560px){
    .grid-pagination nav{gap:4px}
    .grid-pagination input{width:42px}
    .grid-pagination .icon-btn{min-width:28px}
}

.inquiry-wide{grid-column:1/-1;min-width:0}
.inquiry-picker{position:relative;margin-bottom:20px}
.inquiry-picker-status:empty{display:none}
.inquiry-options{list-style:none;position:absolute;top:calc(100% - 8px);inset-inline:0;z-index:2;margin:0;padding:5px;border:1px solid #b6cbc2;border-radius:8px;background:#fff;box-shadow:var(--shadow);max-height:250px;overflow-y:auto}
.inquiry-options [role=option]{padding:10px 12px;cursor:pointer;border-radius:5px;overflow-wrap:anywhere}
.inquiry-options [role=option]:hover,.inquiry-options [aria-selected=true]{background:var(--mint);color:var(--green)}

/* File previews sit above the record while keeping its place in the workspace. */
.file-preview{width:min(960px,calc(100% - 24px));max-height:92dvh;padding:0;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);box-shadow:var(--shadow);overflow:auto}
.file-preview::backdrop{background:#182d2ac4}
.file-preview-header,.file-preview-tools{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}
.file-preview-header{justify-content:space-between}
.file-preview-header h2{font-size:1.2rem;overflow-wrap:anywhere;margin:2px 0 0}
.file-preview-header button{flex-shrink:0}
.file-preview-tools{flex-wrap:wrap}
.file-preview-tools output{min-width:3.5em;text-align:center;font-variant-numeric:tabular-nums}
.file-preview-message,.file-preview-pdf-fallback{padding:12px 18px}
.file-preview-image{display:grid;place-items:center;height:min(62dvh,640px);overflow:hidden;background:var(--bg);touch-action:none}
.file-preview-image :is(img,canvas){display:block;max-width:100%;max-height:min(62dvh,640px);user-select:none;-webkit-user-drag:none}
.file-preview-image.can-pan{cursor:grab}
.file-preview-image.dragging{cursor:grabbing}
.file-preview-image canvas{height:auto;background:white}
.file-preview-pages{display:flex;align-items:center;gap:6px}
.review-plan-total{background:var(--mint);color:var(--green);border-radius:7px;padding:9px 12px;margin:12px 0;font-weight:600}
.review-plan-total.plan-mismatch{background:#fcf3df;color:#80560f}

.activity-value {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Transition pages keep long labels readable without narrowing the action buttons. */
#page-content:has(.migration-panel) > .page-heading,
#page-content:has(#ct-progress) > .page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
#page-content:has(.migration-panel) .heading-actions,
#page-content:has(#ct-progress) .heading-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
}
#drive-sync-action {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
#page-content:has(.migration-panel) .heading-actions .btn,
#page-content:has(#ct-progress) .heading-actions .btn {
  flex: 0 0 auto;
  width: auto;
  min-height: 48px;
  white-space: nowrap;
}
.bulk-review-panel {
  margin-bottom: 24px;
}
.bulk-review-panel .card-head {
  padding: 0;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 18px;
}
.bulk-review-panel .card-head p {
  margin: 8px 0 0;
}
.bulk-review-summary progress {
  display: block;
  width: 100%;
  height: 12px;
  margin: 16px 0;
}
.bulk-review-exceptions {
  margin: 20px 0;
}
#drive-live-progress {
  margin-bottom: 24px;
}
#drive-live-progress .ct-error {
  padding: 16px 20px;
  border: 1px solid #efd3cb;
  border-radius: 12px;
  background: #fff7f3;
  overflow-wrap: anywhere;
}
.ct-help,
#ct-progress {
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  #page-content:has(.migration-panel) .heading-actions,
  #page-content:has(#ct-progress) .heading-actions,
  #drive-sync-action {
    width: 100%;
  }
  #page-content:has(.migration-panel) .heading-actions .btn,
  #page-content:has(#ct-progress) .heading-actions .btn {
    flex: 1 1 180px;
    white-space: normal;
  }
}

@media (max-width: 1100px) {
  #page-content:has(#ct-progress) > .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Clear primary actions, with secondary tools revealed on request. */
.record-row-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;min-width:0}.record-row-actions>.btn{min-height:42px;margin:0}.row-action-menu{min-width:0;max-width:100%;width:100%}.row-action-menu>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--border,#dae4de);border-radius:9px;padding:10px 12px;cursor:pointer;font-weight:600;font-size:14px;list-style:none}.row-action-menu>summary::-webkit-details-marker{display:none}.row-action-menu>summary svg{width:16px;flex-shrink:0}.row-action-options{display:flex;flex-direction:column;gap:6px;padding-top:8px}.row-action-options>.btn{margin:0;text-align:left;justify-content:flex-start;white-space:normal}.btn.record-delete{color:#a93636;border-color:#e7baba;background:#fff7f7}.btn.record-delete:hover{background:#fdeaea}.deletion-impact{list-style:none;padding:0;margin:20px 0}.deletion-impact li{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid #e4ebe8}.deletion-impact small{display:block;margin-top:5px;max-width:45ch;overflow-wrap:anywhere}.deletion-impact strong{flex-shrink:0}

.history-handler{display:grid;gap:6px;padding:18px;background:#eef6f3;border-radius:12px;margin:16px 0}.history-handler small{color:#61786e}.history-events{display:grid;gap:16px}.history-event{padding:18px;border:1px solid #dce6e1;border-radius:12px;min-width:0}.history-event-heading{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}.history-event-heading time{font-size:14px;color:#61786e}.history-event p{overflow-wrap:anywhere}.history-change{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,1fr) minmax(0,1fr);gap:12px;padding:12px 0;border-top:1px solid #e5ece8;overflow-wrap:anywhere}.history-change small{display:none}.history-change.headings{color:#61786e}.history-note{white-space:pre-wrap}.history-event .muted{font-size:15px}@media(max-width:600px){.history-change{grid-template-columns:1fr;gap:6px}.history-change.headings{display:none}.history-change small{display:inline-block;min-width:75px;color:#61786e;margin-right:8px}.history-event{padding:14px}.history-event-heading time{font-size:14px}}

.customer-name{width:100%;display:flex;justify-content:space-between;align-items:center;gap:18px;text-align:left;background:none;border:0;color:#194d45;font:inherit;font-weight:600;padding:4px 0;cursor:pointer;min-height:42px}.customer-name:hover{color:#087b6a;text-decoration:underline}.customer-name svg{width:18px;flex-shrink:0}.customer-vehicles-heading{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:14px}.customer-vehicles{display:grid;gap:18px;margin-top:18px}.customer-vehicle{padding:20px;border:1px solid #dbe6e0;border-radius:14px;min-width:0}.customer-vehicle-title{display:flex;gap:14px;align-items:center;margin-bottom:16px}.customer-vehicle-title>svg{width:32px;flex-shrink:0;color:#1d7269}.customer-vehicle-title h4{font-size:18px;margin:0 0 6px}.customer-vehicle-title p{margin:0;color:#60796e}.vehicle-record-links{margin-top:18px}.customer-vehicle .form-actions{justify-content:flex-start;gap:8px;flex-wrap:wrap}.customer-contact-summary{padding-bottom:16px;border-bottom:1px solid #e1e9e5}.customer-contact-summary p{overflow-wrap:anywhere}.customer-vehicle summary{cursor:pointer;font-weight:600}.customer-vehicle .detail-grid{margin:16px 0}@media(max-width:600px){.customer-vehicle{padding:15px}.customer-vehicles-heading>.btn{width:100%}}

/* A single customer-name column stays a simple list at every width. */
[data-register="customers"] table{display:table!important;table-layout:fixed!important;width:100%!important;min-width:0!important}[data-register="customers"] thead{display:table-header-group!important;position:static!important;clip-path:none!important;height:auto!important;width:auto!important;overflow:visible!important}[data-register="customers"] tbody{display:table-row-group!important}[data-register="customers"] tr{display:table-row!important}[data-register="customers"] td,[data-register="customers"] th{display:table-cell!important;width:auto!important;padding:14px 22px!important}[data-register="customers"] td:before{display:none!important}

.daily-recipient-list{border:1px solid #dce6e0;border-radius:12px;padding:18px;margin:18px 0}.daily-recipient-list legend{font-weight:700;padding:0 8px}.daily-recipient-list .check{padding:9px 0}.daily-recipient-list small{display:block;color:#61766c;margin-top:4px}.daily-report-preview{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.7;background:#f5f8f6;border-radius:12px;padding:20px}

.migration-live progress[hidden]{display:none}

/* Keep the vehicle plan readable across both quotation columns. */
#partner-plan-picker{grid-column:1/-1;min-width:0}#partner-plan-picker select{width:100%;max-width:100%}

.quotation-picker-actions{margin:20px 0 24px}.quotation-customer-card{padding:20px 0;border-top:1px solid var(--line)}.quotation-customer-card>h3{margin-bottom:6px}.quotation-vehicle-list{margin-top:14px}.quotation-vehicle-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px;border:1px solid var(--line);border-radius:10px;margin:10px 0;background:#f8faf9}.quotation-vehicle-row>div:first-child{min-width:0;overflow-wrap:anywhere}.quotation-vehicle-actions{display:flex;flex-wrap:wrap;gap:10px;flex-shrink:0}.quotation-picker-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:18px}.quotation-picker-pagination>div{display:flex;gap:10px}@media(max-width:680px){.quotation-vehicle-row,.quotation-picker-pagination{align-items:flex-start;flex-direction:column}.quotation-vehicle-actions{width:100%}.quotation-vehicle-actions .btn{flex:1}}

.coverage-table{width:100%;table-layout:fixed;border-collapse:collapse}.coverage-table th,.coverage-table td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line);white-space:normal;overflow-wrap:anywhere}.coverage-table th{background:#edf4f2;color:var(--green)}.coverage-table th:first-child{width:43%}.coverage-table td small{display:block;color:var(--muted);margin-top:3px}.coverage-summary>small{display:block;margin-top:10px}@media(max-width:680px){.coverage-table th,.coverage-table td{padding:9px 7px;font-size:.875rem}}

/* Internal referral attribution; wraps naturally on narrow record views. */
.staff-referral{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:18px 0 24px;background:var(--mint);border:1px solid var(--line);border-radius:10px;min-width:0}.staff-referral>span{color:var(--green);flex:0 0 auto}.staff-referral>div{min-width:0}.staff-referral small,.staff-referral strong{display:block;overflow-wrap:anywhere}.staff-referral small{margin-bottom:3px}.staff-referral strong{font-size:1.05rem;color:var(--green)}.staff-referral-inline{display:block;margin-top:5px;white-space:normal;overflow-wrap:anywhere;font-size:var(--type-meta);color:var(--muted)}
.inquiry-affiliation{margin-bottom:22px}.affiliation-options{list-style:none;position:absolute;top:calc(100% - 8px);inset-inline:0;z-index:3;margin:0;padding:5px;border:1px solid #b6cbc2;border-radius:8px;background:#fff;box-shadow:var(--shadow);max-height:250px;overflow-y:auto}.affiliation-options [role=option]{padding:10px 12px;cursor:pointer;border-radius:5px;overflow-wrap:anywhere}.affiliation-options [role=option]:hover,.affiliation-options [aria-selected=true]{background:var(--mint);color:var(--green)}
