
/* SERS Cloud official typography: locally hosted Inter, V0.16 R11. */
@font-face{font-family:"Inter";src:url("fonts/inter-400.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap;}
@font-face{font-family:"Inter";src:url("fonts/inter-500.woff2") format("woff2");font-style:normal;font-weight:500;font-display:swap;}
@font-face{font-family:"Inter";src:url("fonts/inter-600.woff2") format("woff2");font-style:normal;font-weight:600;font-display:swap;}
@font-face{font-family:"Inter";src:url("fonts/inter-700.woff2") format("woff2");font-style:normal;font-weight:700;font-display:swap;}

:root{--sers-font-family:"Inter",Arial,sans-serif;--sers-font-body:14px;--sers-font-button:13px;--sers-font-label:13px;}
html,body,body.public-app,body.core-app,body.portal-app,.office-brand,.r12-home{font-family:var(--sers-font-family);}
button,input,select,textarea,option{font-family:inherit;}

*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f2f6fc;color:#12243c;font:15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}a{color:#0879d8}h1,h2,h3{line-height:1.17;letter-spacing:-.035em}h1{font-size:clamp(2rem,3.4vw,3.3rem);margin:0 0 12px}h2{font-size:clamp(1.5rem,2.5vw,2.3rem)}h3{font-size:1.15rem}p{margin:0 0 18px}.eyebrow{font-size:11px;font-weight:850;letter-spacing:.16em;text-transform:uppercase}.eyebrow.blue{color:#087df0}.brand img{display:block;width:220px;height:auto;max-width:100%}.button,button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:9px;background:linear-gradient(125deg,#0078ee,#08a6ff);color:#fff;padding:12px 22px;font:inherit;font-weight:750;cursor:pointer;text-decoration:none;box-shadow:0 6px 18px #006fe022}.button:hover,button:hover{filter:brightness(1.08)}.button.outline{background:transparent;border:1px solid #91c8f5;box-shadow:none}.public-top{position:absolute;z-index:5;top:0;left:0;right:0;background:#04142eac;backdrop-filter:blur(12px);border-bottom:1px solid #ffffff1a}.public-top-inner{max-width:1350px;margin:auto;min-height:83px;display:flex;align-items:center;gap:30px;padding:12px 30px}.public-links{display:flex;gap:25px;margin:auto}.public-links a,.top-actions a{color:#fff;text-decoration:none;font-weight:650;font-size:13px}.top-actions{display:flex;align-items:center;gap:18px}.top-actions .top-cta{background:#0088ff;border:1px solid #53b4ff;border-radius:8px;padding:10px 16px}.marketing-hero{position:relative;overflow:hidden;background:radial-gradient(ellipse at 80% 75%,#0266b5 0%,transparent 38%),radial-gradient(ellipse at 12% 20%,#094c8b 0%,transparent 45%),linear-gradient(145deg,#021126,#042d5e 64%,#03162f);color:#fff;padding:125px 30px 0}.marketing-hero:before{content:"";position:absolute;inset:0;opacity:.28;background-image:linear-gradient(90deg,#0ba9ff19 1px,transparent 1px),linear-gradient(#0ba9ff19 1px,transparent 1px);background-size:70px 70px;mask-image:linear-gradient(to bottom,transparent,#000)}.hero-grid{max-width:1310px;min-height:490px;margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center;position:relative}.hero-copy{padding:24px 0 50px}.hero-copy h1{font-size:clamp(2.7rem,4.5vw,5.2rem);line-height:1.04;letter-spacing:-.06em;margin:18px 0 24px}.hero-copy h1 em{font-style:normal;color:#14b9ff}.hero-lead{font-size:17px;max-width:530px;color:#d9ebff}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}.hero-footnote{font-size:12px;color:#8cc7f3;margin-top:22px}.hero-art{height:425px;position:relative;display:flex;align-items:center;justify-content:center}.art-orbit{position:absolute;border:1px solid #149dff55;border-radius:50%;transform:rotate(-18deg)}.orbit-a{width:560px;height:290px}.orbit-b{width:410px;height:410px}.mock-window{position:relative;z-index:2;width:90%;max-width:540px;height:318px;background:#f5f9ff;border:9px solid #142944;border-radius:16px;box-shadow:0 30px 60px #0009;transform:perspective(900px) rotateY(-9deg) rotateX(3deg)}.mock-top{height:40px;background:#081f3d;color:#d5edff;display:flex;justify-content:space-between;align-items:center;padding:0 15px;font-size:10px}.mock-top span{color:#00a8ff}.mock-body{display:flex;height:calc(100% - 40px)}.mock-side{width:66px;background:#08264b;padding:20px 15px}.mock-side i{display:block;height:10px;border-radius:5px;background:#1774b6;margin-bottom:19px}.mock-data{padding:20px;flex:1;color:#132a45}.mock-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}.mock-metrics div{background:#e5f1fd;border-radius:7px;padding:10px}.mock-metrics small,.mock-metrics b{display:block}.mock-metrics b{font-size:25px}.mock-chart{height:95px;display:flex;align-items:flex-end;gap:9px;margin-top:18px;border-bottom:1px solid #aacbe9}.mock-chart span{flex:1;background:linear-gradient(#07a8ff,#0762c0);border-radius:4px 4px 0 0;height:35%}.mock-chart span:nth-child(2){height:55%}.mock-chart span:nth-child(3){height:43%}.mock-chart span:nth-child(4){height:72%}.mock-chart span:nth-child(5){height:58%}.mock-chart span:nth-child(6){height:85%}.mock-chart span:nth-child(7){height:70%}.mock-lines{display:flex;gap:8px;margin-top:14px}.mock-lines i{height:9px;background:#d9e7f7;border-radius:5px;flex:1}.mock-phone{position:absolute;z-index:3;right:0;bottom:0;width:150px;height:245px;border:8px solid #102238;border-radius:24px;background:#f6faff;color:#12243c;padding:22px 10px 8px;box-shadow:0 20px 45px #000a;font-size:10px}.mock-phone>span{font-size:9px;color:#137cd0}.mock-phone>b{display:block;font-size:17px;margin:12px 0}.mock-phone>div{border-radius:6px;background:#e5f1fc;margin:9px 0;padding:7px}.mock-phone strong{display:block;color:#0780d2}.hero-capabilities{max-width:1310px;margin:15px auto 0;position:relative;display:grid;grid-template-columns:repeat(6,1fr);gap:12px;padding:24px 0 28px;border-top:1px solid #2e81b65c;text-align:center}.hero-capabilities span{font-size:12px;font-weight:700;color:#d6edff}.benefit-strip{background:#eaf7ff;display:grid;grid-template-columns:repeat(4,1fr);padding:22px max(25px,calc((100vw - 1280px)/2));gap:20px}.benefit-strip>div{color:#0076d6;font-size:24px;display:flex;align-items:center;flex-wrap:wrap;gap:3px 10px}.benefit-strip strong{font-size:13px;color:#163454}.benefit-strip small{width:100%;font-size:11px;color:#5c7188;padding-left:35px}.marketing-section{max-width:1280px;margin:auto;padding:90px 30px;text-align:center}.section-lead{color:#5b7189;max-width:680px;margin:0 auto 35px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;text-align:left;margin-top:40px}.feature-grid article{background:white;padding:26px;border:1px solid #e1ebf6;border-radius:16px;box-shadow:0 10px 26px #15395a0b}.feature-grid article>span{display:inline-grid;place-items:center;width:49px;height:49px;border-radius:12px;background:#e8f5ff;color:#0079e7;font-size:27px}.feature-grid p{color:#66778c}.section-note{margin-top:25px;color:#607389;font-size:12px}.dark-section{background:#051c3a;color:#fff;padding:75px max(30px,calc((100vw - 1200px)/2));display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}.dark-section p{color:#c4d8ee}.industry-tags{display:flex;flex-wrap:wrap;gap:12px}.industry-tags span{border:1px solid #2b77b3;background:#0d3662;padding:11px 15px;border-radius:8px}.price-section{padding:80px 30px}.about-section{display:flex;align-items:center;gap:60px;max-width:1050px;margin:auto;padding:70px 30px}.about-section img{width:230px;max-width:30%;height:auto}.about-section p{color:#5c7188}.contact-section{text-align:center;background:linear-gradient(125deg,#052e5c,#046dbd);color:white;padding:75px 25px}.contact-section p{max-width:630px;margin:0 auto 25px}.contact-note{font-size:12px;opacity:.8;margin-top:15px!important}.public-footer{background:#04162d;color:#a4c3df;text-align:center;padding:25px}.public-footer span{margin-left:20px}.core-app{background:#f2f6fc}.core-top{height:75px;background:linear-gradient(100deg,#04152c,#092a51);display:flex;align-items:center;justify-content:space-between;padding:10px 25px;box-shadow:0 4px 20px #02162a28}.core-top .brand img{width:225px}.core-top-right{display:flex;align-items:center;gap:22px;color:#c5e1ff}.core-platform-label{font-size:12px;letter-spacing:.09em;text-transform:uppercase}.user-chip{color:white;font-weight:750;font-size:13px}.user-chip small{display:block;color:#92b8da;font-weight:500}.signout{color:#d7eaff;text-decoration:none;font-size:13px}.core-shell{display:flex;min-height:calc(100vh - 125px)}.core-nav{width:240px;flex-shrink:0;background:linear-gradient(#061d3a,#03142b);padding:23px 12px;display:flex;flex-direction:column;gap:4px}.nav-caption{font-size:10px;color:#7099c3;font-weight:800;letter-spacing:.12em;padding:8px 14px 14px}.nav-bottom{margin-top:30px}.core-nav .nav-link{display:flex;gap:12px;align-items:center;padding:12px 13px;border-radius:8px;text-decoration:none;color:#d6e9fa;font-size:13px;font-weight:650}.core-nav .nav-link span{width:20px;font-size:19px;text-align:center}.core-nav .nav-link.active,.core-nav .nav-link:hover{background:linear-gradient(90deg,#005fea,#008dff);color:white}.core-main{flex:1;min-width:0;max-width:1600px;padding:30px 30px 45px}.core-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:25px}.core-heading h1{font-size:clamp(1.7rem,2.4vw,2.5rem)}.core-heading p{color:#64758b;margin:0}.version-pill{background:#e6f2ff;color:#0865bd;border:1px solid #c9e2fc;padding:9px 15px;border-radius:20px;white-space:nowrap;font-size:12px;font-weight:700}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.stat-card{display:flex;align-items:center;gap:14px;background:white;padding:22px 17px;border-radius:12px;border:1px solid #e2eaf3;text-decoration:none;color:#14243b;box-shadow:0 5px 15px #15395a0a}.stat-icon{width:48px;height:48px;border-radius:11px;display:grid;place-items:center;background:#e5f2ff;color:#0077e8;font-size:25px}.stat-icon.green{background:#e1f8eb;color:#00a969}.stat-icon.amber{background:#fff3df;color:#ec9400}.stat-icon.purple{background:#f0eaff;color:#8053de}.stat-card small,.stat-card strong,.stat-card em{display:block}.stat-card small{color:#62788f;font-size:11px}.stat-card strong{font-size:27px;line-height:1.2}.stat-card em{font-size:10px;color:#64829e;font-style:normal}.dashboard-columns{display:grid;grid-template-columns:1.25fr 1fr;gap:18px}.panel{background:white;border:1px solid #e1eaf3;border-radius:13px;padding:24px;box-shadow:0 8px 25px #1639590c}.panel h1{font-size:clamp(1.8rem,2.8vw,2.7rem)}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.panel-title h2{font-size:18px;margin:0}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick-grid a{border:1px solid #e1edfa;background:#f4faff;border-radius:9px;padding:18px 12px;color:#0075e0;text-decoration:none;font-size:22px}.quick-grid strong,.quick-grid small{display:block}.quick-grid strong{font-size:13px;color:#1a3653;margin-top:6px}.quick-grid small{font-size:11px;color:#6a8197}.release-banner{margin-top:20px;border:1px solid #cde3f8;background:#eaf5ff;padding:17px 22px;border-radius:12px}.release-banner p{margin:6px 0 0;color:#58718a}.core-footer{padding:14px;text-align:center;background:#e8eff8;color:#5c748e;font-size:12px}.core-footer span{margin-left:15px}.container{max-width:1140px;margin:auto;padding:45px 24px;min-height:65vh}.small{max-width:540px;margin:auto}form{display:grid;gap:14px}label{display:grid;gap:5px;font-weight:650}input,select{font:inherit;padding:11px;border:1px solid #b8c8d9;border-radius:8px;max-width:100%;width:100%;background:white}.error{padding:12px;background:#ffe8e8;color:#8d1414}.success{padding:12px;background:#e1f6e8;color:#11662f}.muted{color:#60728b}.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-top:24px}.tiles article{background:white;padding:24px;border-radius:12px}.metric{font-size:2.6rem;font-weight:800}.form-inline{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));align-items:end;margin-bottom:30px}.form-inline button{height:48px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:12px;border-bottom:1px solid #e2eaf3;text-align:left;font-size:13px}th{background:#edf4fc;color:#4b6580}.inline-form{display:inline}.button-secondary{background:#184d7d;padding:8px 12px}.user-edit{display:grid;grid-template-columns:1fr 1fr 1fr 140px 130px;align-items:end;gap:12px;padding:18px 0;border-top:1px solid #dae5f1}.user-edit button{height:48px}.health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.health-grid>div{padding:14px;background:#f1f6fc;border-radius:10px;display:flex;justify-content:space-between;gap:12px}.status-tag{background:#e0f7ed;color:#007e4b;border-radius:20px;padding:4px 9px;font-size:11px;font-weight:700}@media(max-width:1100px){.public-links{gap:12px}.top-actions{gap:10px}.core-nav{width:210px}.stat-grid{grid-template-columns:repeat(2,1fr)}.dashboard-columns{grid-template-columns:1fr}}@media(max-width:850px){.public-top{position:relative;background:#04152c}.public-top-inner{flex-wrap:wrap;gap:15px}.public-links{order:3;width:100%;justify-content:center;flex-wrap:wrap}.top-actions{margin-left:auto}.marketing-hero{padding-top:40px}.hero-grid{grid-template-columns:1fr}.hero-copy{padding-bottom:0}.hero-art{height:380px}.hero-capabilities{grid-template-columns:repeat(3,1fr)}.feature-grid{grid-template-columns:repeat(2,1fr)}.benefit-strip{grid-template-columns:repeat(2,1fr)}.dark-section{grid-template-columns:1fr}.core-nav{width:175px}.core-main{padding:22px}.user-edit{grid-template-columns:1fr 1fr}}@media(max-width:600px){.public-top-inner{padding:14px}.brand img{width:170px}.public-links{gap:12px}.public-links a{font-size:12px}.top-actions{width:100%;justify-content:space-between}.marketing-hero{padding:30px 17px 0}.hero-copy h1{font-size:2.7rem}.hero-art{height:295px}.mock-window{height:240px}.mock-phone{transform:scale(.72);transform-origin:bottom right}.hero-capabilities{grid-template-columns:repeat(2,1fr)}.benefit-strip{grid-template-columns:1fr 1fr;padding:20px}.feature-grid{grid-template-columns:1fr}.marketing-section{padding:55px 20px}.about-section{flex-direction:column;gap:20px}.about-section img{max-width:70%}.core-top{height:auto;min-height:70px;flex-wrap:wrap;padding:12px}.core-top .brand img{width:175px}.core-platform-label{display:none}.core-shell{display:block}.core-nav{width:100%;flex-direction:row;flex-wrap:wrap;padding:8px}.core-nav .nav-link{font-size:11px;padding:9px}.nav-caption{display:none}.core-main{padding:18px 12px}.stat-grid{gap:8px}.stat-card{padding:12px 8px;gap:8px}.stat-icon{width:32px;height:32px;font-size:16px}.stat-card strong{font-size:21px}.core-heading{display:block}.version-pill{display:inline-block;margin-top:12px}.panel{padding:17px}.user-edit{grid-template-columns:1fr}.quick-grid{grid-template-columns:1fr 1fr}}
/* V0.01 R4: dedicated authentication shell and Core Settings popups */
.auth-app{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(circle at 15% 10%,#e5f3ff,#f2f6fc 55%)}
.auth-top{min-height:86px;background:linear-gradient(100deg,#061a34,#103d68);display:flex;align-items:center;justify-content:space-between;padding:15px max(24px,calc((100vw - 1160px)/2));color:#c9e2f9;gap:16px}
.auth-top .brand img{width:225px}.auth-main{flex:1;display:grid;place-items:center;padding:56px 20px;min-height:calc(100vh - 150px)}
.auth-panel{width:min(100%,480px);margin:0;box-shadow:0 18px 55px #1738581d;padding:34px}.auth-panel h1{font-size:clamp(1.9rem,4vw,2.6rem);margin-bottom:22px}.auth-panel button{width:100%}.auth-footer{text-align:center;padding:20px;color:#667d95;font-size:12px}.auth-footer span{margin-left:12px}
.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}.settings-tile{display:flex;flex-direction:column;gap:10px;background:white;border:1px solid #dbe7f4;border-radius:14px;padding:28px;text-decoration:none;box-shadow:0 8px 25px #1639590c}.settings-tile strong{color:#103358;font-size:19px}.settings-tile span{color:#607b95}.settings-tile:hover{border-color:#1687ec}
.button-small{font-size:12px;padding:8px 16px}.modal-overlay{position:fixed;inset:0;background:#051a35a8;z-index:30;display:none;align-items:center;justify-content:center;padding:16px;overflow:auto}.modal-overlay:target{display:flex}.modal-panel{background:white;width:min(100%,560px);border-radius:16px;padding:26px;box-shadow:0 24px 80px #0005;max-height:calc(100vh - 32px);overflow:auto}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.modal-head h2{margin:0}.modal-close{font-size:30px;color:#57718e;text-decoration:none;line-height:1}.modal-close:hover{color:#0088f3}.modal-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:12px}.modal-actions .button-secondary{background:#eaf2fa;color:#244c71;box-shadow:none}.modal-panel form{gap:16px}.core-main .table-scroll td{vertical-align:middle}
@media(max-width:600px){.auth-top{padding:16px}.auth-top .brand img{width:175px}.auth-top span{font-size:11px}.auth-main{padding:30px 14px}.auth-panel{padding:24px}.modal-panel{padding:19px}.modal-actions .button,.modal-actions button{flex:1}}

/* V0.01 R5: visual regression repairs, scoped to authentication and settings */
html,body{min-height:100%}
body.auth-app{margin:0;min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(circle at 75% 12%,#d7ebff 0%,transparent 42%),#edf4fb;color:#102a49}
.auth-app .auth-top{min-height:88px;flex-shrink:0;background:linear-gradient(105deg,#04172f,#0b3159);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px clamp(20px,5vw,70px);color:#c5e2ff}
.auth-app .auth-top .brand img{width:220px;max-width:100%;height:auto}
.auth-app .auth-main{width:100%;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:clamp(28px,6vh,70px) 18px}
.auth-app .auth-main>.auth-panel{display:block;width:100%;max-width:480px;min-width:0;margin:0 auto;padding:clamp(24px,3vw,40px);background:#fff;border:1px solid #dbe8f5;border-radius:18px;box-shadow:0 24px 65px rgba(6,35,69,.15)}
.auth-app .auth-panel h1{font-size:clamp(29px,3vw,40px);line-height:1.14;margin:9px 0 26px}
.auth-app .auth-panel .eyebrow{margin:0 0 10px}
.auth-app .auth-panel form{display:flex;flex-direction:column;gap:18px;width:100%}
.auth-app .auth-panel label{display:flex;flex-direction:column;gap:8px;width:100%;font-size:13px;font-weight:750;color:#173657}
.auth-app .auth-panel input{display:block;width:100%;min-width:0;height:48px;border:1px solid #b7cbe1;border-radius:9px;background:#f6faff;padding:12px 14px;font:inherit;color:#122b49}
.auth-app .auth-panel input:focus{outline:3px solid #b9dfff;border-color:#0879e8}
.auth-app .auth-panel button{width:100%;min-height:48px;margin-top:2px}
.auth-app .auth-panel .muted{margin:17px 0 0;font-size:12px;line-height:1.55;color:#617b95}
.auth-app .auth-footer{padding:19px 12px;text-align:center;color:#647e97;font-size:12px}
.auth-app .auth-footer span{margin-left:12px}
.core-main .settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch;margin-top:26px;max-width:1020px}
.core-main .settings-grid .settings-tile{display:flex;flex-direction:column;align-items:flex-start;gap:13px;min-height:168px;padding:28px 30px;background:#fff;border:1px solid #d9e7f5;border-radius:15px;box-shadow:0 10px 26px rgba(18,52,87,.07);text-decoration:none;color:#183a5d;transition:border-color .15s,transform .15s}
.core-main .settings-grid .settings-tile:hover,.core-main .settings-grid .settings-tile:focus-visible{border-color:#0788f8;transform:translateY(-2px);outline-offset:3px}
.core-main .settings-grid .settings-tile strong{display:block;font-size:20px;line-height:1.3;color:#102d50}
.core-main .settings-grid .settings-tile span{display:block;font-size:14px;line-height:1.6;color:#647e99}
.core-main .settings-grid .settings-tile .settings-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#e8f4ff;color:#0879e8;font-size:23px}
.core-main .settings-intro{max-width:780px;color:#5e7790}
@media(max-width:750px){.core-main .settings-grid{grid-template-columns:1fr}.auth-app .auth-top{padding:16px 20px}.auth-app .auth-top .brand img{width:180px}}
@media(max-width:420px){.auth-app .auth-top>span{display:none}.auth-app .auth-main{padding:24px 12px}.auth-app .auth-main>.auth-panel{padding:25px 20px}.core-main .settings-grid .settings-tile{padding:22px}}

/* V0.01 R6 — scoped tenant portal foundations */
.portal-app{margin:0;min-height:100vh;background:#f1f6fc;color:#112b49;display:flex;flex-direction:column}.portal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px clamp(18px,4vw,60px);background:#051d3a;color:white;min-height:82px}.portal-header a{color:#dceeff;text-decoration:none;font-weight:700}.portal-logo img{width:190px;max-width:100%;height:auto;display:block}.portal-header>span{font-size:13px;color:#c1d9f2}.portal-main{flex:1;width:100%;max-width:1280px;margin:auto;padding:clamp(25px,5vw,55px) 22px}.portal-welcome{padding:35px;border-radius:18px;background:linear-gradient(115deg,#072f60,#057ce0);color:#fff;box-shadow:0 16px 40px #053d7120}.portal-welcome p{color:#d5ecff}.portal-welcome h1{font-size:clamp(30px,4vw,52px)}.portal-actions{margin:22px 0}.portal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:18px;margin-top:26px}.portal-card{border-radius:15px;border:1px solid #dce8f6;background:white;padding:26px;box-shadow:0 8px 25px #123a5b0b}.portal-card h2{font-size:21px;margin:13px 0 8px}.portal-card p{color:#5c7490;font-size:14px;margin:0}.portal-card-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:12px;background:#e7f4ff;color:#027cea;font-size:26px}.portal-footer{padding:18px;text-align:center;font-size:12px;color:#7186a0}.customer-brand .portal-header{background:var(--portal-accent,#174b8a)}.customer-brand .portal-welcome{background:var(--portal-accent,#174b8a)}.customer-brand .portal-card-icon{color:var(--portal-accent,#174b8a)}.portal-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:20px;margin-top:26px}.portal-admin-grid .settings-tile{display:block}.portal-admin-grid h2{font-size:23px}.portal-admin-grid form{margin-top:20px}.portal-admin-grid input,.portal-admin-grid select{background:#fff}@media(max-width:650px){.portal-header{flex-wrap:wrap;padding:15px}.portal-header>span{order:3;width:100%}.portal-welcome{padding:25px}.portal-main{padding:22px 14px}}

.customer-brand .customer-auth-top{background:var(--portal-accent,#174b8a)}.customer-brand .auth-panel button{background:var(--portal-accent,#174b8a)}.customer-auth-top strong{font-size:22px;letter-spacing:-.03em}

/* R7 registration */
.registration-panel{max-width:820px;margin:48px auto;padding:clamp(20px,4vw,48px)}
.registration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.registration-panel label{display:block;margin:12px 0;font-weight:600}
.registration-panel input{width:100%;max-width:100%;box-sizing:border-box}
@media(max-width:680px){.registration-grid{grid-template-columns:1fr}.registration-panel{margin:20px 12px}}

/* V0.01 R9 admin settings */
.r8-form{display:grid;gap:18px;max-width:650px;margin:24px 0}.r8-form label{display:grid;gap:7px;font-weight:650}.r8-form input,.r8-form select,.r8-form textarea{width:100%;max-width:100%;padding:12px;border:1px solid #b7cce4;border-radius:9px;background:#fff;color:#102c50;font:inherit}.r8-form button{max-width:260px}.r8-drafts{display:grid;gap:12px;margin:18px 0}.r8-drafts a{padding:14px;background:#eaf3ff;border-radius:10px}.r8-preview{margin-top:22px;padding:24px;border:1px solid #a8c7e9;border-radius:14px;background:#fff;max-width:900px}.r8-preview p{overflow-wrap:anywhere}

/* V0.01 R10 Core navigation and consolidated settings */
.core-nav .nav-group{display:block;min-width:0}.core-nav .nav-group summary{list-style:none;cursor:pointer;user-select:none}.core-nav .nav-group summary::-webkit-details-marker{display:none}.core-nav .nav-chevron{margin-left:auto!important;width:auto!important;font-size:14px!important;transition:transform .15s}.core-nav .nav-group[open] .nav-chevron{transform:rotate(180deg)}.core-nav .nav-subitems{display:grid;gap:3px;padding:4px 0 9px 29px}.core-nav .nav-subitem{color:#bdd4ec;text-decoration:none;font-size:12px;line-height:1.35;padding:9px 10px;border-radius:7px}.core-nav .nav-subitem:hover,.core-nav .nav-subitem.active{background:#123d6a;color:#fff}.settings-separator{border:0;border-top:1px solid #dbe7f4;margin:28px 0}.settings-note{margin-top:22px;padding:18px 22px;background:#eaf3ff;border:1px solid #d4e4f6;border-radius:12px}.settings-note p{margin:7px 0 0;color:#5d718a}.core-nav .nav-group .nav-link{width:100%}
@media(max-width:600px){.core-nav{display:block}.core-nav .nav-group{width:100%}.core-nav>.nav-link{display:flex}.core-nav .nav-subitems{grid-template-columns:1fr 1fr;padding-left:16px}.core-nav .nav-caption{display:block;padding:10px 13px 4px}}

/* V0.01 R11 — Core-only database health and migration monitor */
.db-page{max-width:1160px}.db-page .core-heading p{max-width:760px}.db-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.db-metrics article{background:#fff;border:1px solid #d9e7f5;border-radius:14px;padding:20px;box-shadow:0 8px 25px #1639590a}.db-metrics small{display:block;color:#617b95;font-weight:650;margin-bottom:6px}.db-metrics strong{font-size:35px;line-height:1.2;color:#163b60}.db-green{color:#168149!important}.db-red{color:#bf3030!important}.db-amber{color:#9d6708!important}.db-legend{display:flex;flex-wrap:wrap;gap:12px 23px;margin:0 0 24px;font-size:12px;color:#57718a}.db-legend span{display:flex;align-items:center;gap:7px}.db-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.db-dot.green{background:#168149}.db-dot.red{background:#cf3c3c}.db-dot.amber{background:#d59a27}.db-page>.panel{margin:22px 0}.db-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.db-section-heading h2,.db-page .panel h2{font-size:25px;margin:0 0 10px}.db-section-heading p{color:#647b92}.db-refresh{font-size:12px;padding:9px 15px}.db-component-list{margin-top:12px}.db-component{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 0;border-top:1px solid #e1eaf4}.db-component-body{min-width:0;flex:1}.db-component-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.db-component h3{margin:0;font-size:18px}.db-component p{margin:7px 0 4px;color:#617a94}.db-component small{color:#7c8ca0}.db-status{border-radius:30px;padding:5px 10px;font-size:11px;font-weight:800;white-space:nowrap}.db-status.installed{color:#0c6b3d;background:#e0f6e9}.db-status.missing{color:#a31d27;background:#fde8ea}.db-status.attention{color:#865700;background:#fff2d4}.db-component-action{flex-shrink:0}.db-component-action .button{font-size:12px;padding:9px 13px}.db-verified{font-size:12px;color:#168149;font-weight:750}.db-missing{margin-top:10px;font-size:12px;color:#9c4a19}.db-missing summary{cursor:pointer;font-weight:700}.db-missing ul{margin:7px 0;padding-left:20px;overflow-wrap:anywhere}.db-history-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.db-history-table th,.db-history-table td{padding:12px;border-bottom:1px solid #e1eaf4;overflow-wrap:anywhere}.db-history-table th{color:#617a94}.db-empty,.db-footnote{color:#647b92;font-size:13px}.db-footnote{margin-top:20px}@media(max-width:760px){.db-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.db-component{align-items:flex-start;flex-direction:column}.db-component-action{width:100%}.db-component-action .button{max-width:100%}.db-metrics article{padding:15px}}

/* V0.01 R13 — public registration gate */
.trial-closed{opacity:.65;cursor:not-allowed;pointer-events:none;filter:grayscale(.4)}
.trial-notice{padding:12px 16px;border:1px solid #e5b95b;border-radius:10px;background:#fff8e8;color:#694813;font-weight:600;max-width:640px}
.trial-control-head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.trial-control-head h2{margin:0}.trial-control-head p{margin:4px 0}
.trial-state{font-size:.78rem;letter-spacing:.08em;font-weight:800;border-radius:999px;padding:8px 13px}
.trial-state.open{color:#116335;background:#dff5e6}.trial-state.closed{color:#a22424;background:#ffe6e6}
.trial-control-form{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}
.trial-control-form .trial-stop{background:#9b2525;color:#fff}
.trial-control-form button:disabled{opacity:.45;cursor:not-allowed}
.trial-control-note{font-size:.9rem;color:#5e6c7e}
.trial-public-preview{background:#f3f6fb;border:1px solid #dfe7f1;border-radius:12px;padding:20px;margin:12px 0}
@media(max-width:560px){.trial-control-form button{width:100%}}

/* V0.01 R20 Tenant management */
.tenant-clickable{cursor:pointer}.tenant-clickable:hover,.tenant-clickable:focus{background:#eaf4ff;outline:2px solid #9dcfff;outline-offset:-2px}.tenant-name-link{font-weight:800}.tenant-subnote{display:block;color:#61768f}.tenant-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.tenant-detail-card{background:#fff;border:1px solid #dbe8f6;border-radius:14px;padding:22px}.tenant-detail-card h2{font-size:20px}.tenant-data>div{display:grid;grid-template-columns:minmax(110px,38%) 1fr;gap:12px;padding:9px 0;border-bottom:1px solid #e9eef6}.tenant-data dt{font-weight:700;color:#667b93}.tenant-data dd{margin:0;overflow-wrap:anywhere}.tenant-help{margin-top:20px;color:#667b93}@media(max-width:760px){.tenant-detail-grid{grid-template-columns:1fr}.tenant-data>div{grid-template-columns:1fr;gap:1px}}

/* V0.02 R1: approved five-interface reference - distinct Office, Technician, Customer surfaces */
.office-brand{background:#f3f8fd}.office-brand .portal-header{min-height:76px;background:linear-gradient(105deg,#05172f,#06386b 65%,#051b35);border-bottom:3px solid #0078ef}.portal-header-actions{display:flex;align-items:center;gap:20px;font-size:13px}.portal-header-name{margin-left:auto;color:#d7e9fb}.office-shell{display:grid;grid-template-columns:238px minmax(0,1fr);flex:1;min-height:calc(100vh - 135px)}.office-side{background:linear-gradient(180deg,#05274d,#041b35);display:flex;flex-direction:column;padding:17px 10px;gap:3px}.office-side-link{color:#d7e9fb;text-decoration:none;font-size:13px;font-weight:600;display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:6px}.office-side-link span:first-child{font-size:18px;width:22px;text-align:center}.office-side-link.active{background:#087ef0;color:#fff}.office-side-link.disabled{opacity:.68;cursor:not-allowed}.office-side-link small{font-size:9px;margin-left:auto}.office-main{max-width:none;width:100%;padding:32px clamp(18px,3vw,48px)}.workspace-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.workspace-heading h1{font-size:29px;margin:4px 0 7px}.workspace-heading p{margin:0;color:#627791}.workspace-date{color:#687c96;font-size:12px}.office-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:26px 0 16px}.office-metric{background:#fff;border:1px solid #e3ebf4;border-radius:10px;padding:16px 12px;display:flex;align-items:center;gap:12px;box-shadow:0 3px 12px #16345409}.metric-icon{font-size:22px;padding:8px;border-radius:9px;background:#e8f4ff;color:#007bfa}.office-metric small{display:block;font-size:11px;color:#61738d}.office-metric strong{display:block;font-size:24px;line-height:1.2}.office-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.office-panel{background:#fff;border:1px solid #e3ebf4;border-radius:11px;padding:19px;min-height:250px}.office-panel h2,.customer-panel h2{font-size:18px;margin:0 0 15px}.empty-workspace{border:1px dashed #c6d8ed;border-radius:9px;padding:36px 20px;text-align:center;color:#667c96}.empty-workspace p{font-size:13px;margin:8px 0 0}.office-quick{display:grid;grid-template-columns:1fr 1fr;gap:12px}.office-quick a,.office-quick span{background:#eaf6ff;border-radius:9px;padding:22px 12px;text-align:center;font-size:13px;font-weight:700;text-decoration:none}.office-quick span{opacity:.58}.office-brand .portal-footer{background:#041b35;color:#b4cbe4}.technician-brand{max-width:100%;background:#f5f8fc}.technician-brand .portal-header{background:#061d39}.technician-brand .portal-main{width:min(100%,480px);padding:22px 16px 95px}.tech-title h1{font-size:29px;margin:6px 0}.tech-title p{margin:0 0 12px}.tech-tabs{display:flex;gap:8px;background:#e6edf6;border-radius:9px;padding:4px;margin:20px 0}.tech-tabs span{flex:1;text-align:center;font-size:12px;padding:10px 2px}.tech-tabs .selected{background:#087df0;color:#fff;border-radius:7px;font-weight:800}.tech-empty{background:#fff;border:1px solid #dce7f5;border-radius:12px;text-align:center;padding:50px 24px}.tech-empty-icon{font-size:40px;color:#058af5}.tech-empty h2{font-size:19px}.tech-empty p{color:#627790;font-size:13px}.tech-bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);display:flex;justify-content:space-around;background:#fff;border:1px solid #dce7f5;box-shadow:0 -6px 20px #06274913;padding:11px 0;z-index:10}.tech-bottom a,.tech-bottom span{display:flex;flex-direction:column;text-align:center;color:#59728f;font-size:22px;text-decoration:none;min-width:55px}.tech-bottom small{font-size:10px}.tech-bottom .active{color:#087df0}.technician-brand .portal-footer{display:none}.customer-brand{background:#f5f8fa}.customer-brand .portal-header{background:#fff;color:#14364c;border-bottom:3px solid var(--portal-accent);box-shadow:0 2px 12px #14364c13}.customer-brand .portal-header a{color:#19384c}.customer-brand .portal-logo{font-size:22px;font-weight:900;color:var(--portal-accent)!important}.customer-topnav{display:flex;gap:20px;margin-left:auto}.customer-topnav a{font-size:13px;font-weight:650}.customer-brand .portal-main{max-width:1220px;padding-top:24px}.customer-hero{min-height:190px;background:linear-gradient(110deg,var(--portal-accent),#06233d);color:#fff;border-radius:12px;padding:35px}.customer-hero h1{font-size:36px}.customer-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.customer-stats article{background:#fff;border:1px solid #e0e9f1;border-radius:10px;padding:16px}.customer-stats strong{display:block;font-size:26px;color:var(--portal-accent)}.customer-stats span{font-size:12px}.customer-panels{display:grid;grid-template-columns:1fr 1fr;gap:14px}.customer-panel{background:#fff;border:1px solid #e0e9f1;border-radius:10px;padding:22px;min-height:170px}.customer-panel p{font-size:13px;color:#64768b}.customer-support{margin-top:14px;min-height:100px}.customer-brand .portal-footer{background:#fff}@media(max-width:950px){.office-metrics{grid-template-columns:repeat(2,1fr)}.office-shell{grid-template-columns:185px minmax(0,1fr)}.office-dashboard-grid{grid-template-columns:1fr}}@media(max-width:650px){.office-shell{display:block}.office-side{flex-direction:row;overflow-x:auto;gap:6px;padding:8px}.office-side-link{white-space:nowrap;padding:9px}.office-side-link.disabled{display:none}.office-main{padding:20px 14px}.office-metrics{gap:8px}.office-metric{padding:10px 7px}.office-metric strong{font-size:20px}.workspace-date,.portal-header-name,.portal-user{display:none}.customer-topnav{overflow-x:auto;gap:12px}.customer-topnav a{white-space:nowrap}.customer-stats{grid-template-columns:repeat(2,1fr)}.customer-panels{grid-template-columns:1fr}.customer-hero{padding:23px}.customer-hero h1{font-size:28px}}

/* V0.02 R2: new-project portal separation and usability improvements */
.hero-office-link{display:inline-flex;margin:0 0 25px;color:#d7f0ff;font-size:13px;font-weight:700;text-underline-offset:4px}
.office-brand .portal-header{background:linear-gradient(100deg,#04152c,#083b72 65%,#03192f);box-shadow:0 4px 18px #031b3650}
.office-brand .portal-header-name strong{color:#67c8ff;font-size:10px;letter-spacing:.12em}
.office-brand .office-side{border-right:1px solid #0b5590}
.office-brand .office-main{background:linear-gradient(180deg,#f0f7fe,#f8fbff)}
.office-brand .office-metric{border-top:3px solid #0b88f5}
.office-brand .office-panel{box-shadow:0 6px 22px #082a4a0a}
.office-data{margin:0 0 22px}.office-data div{display:grid;grid-template-columns:minmax(100px,40%) 1fr;gap:12px;padding:13px 0;border-bottom:1px solid #e4ecf5}.office-data dt{color:#64778f;font-size:12px}.office-data dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.tech-security-label{display:inline-block;font-size:10px;letter-spacing:.13em;font-weight:800;color:#007bdc;background:#e4f4ff;border-radius:6px;padding:5px 8px;margin:0 0 10px}
.technician-brand .portal-header{border-bottom:3px solid #0b8ef5}.technician-brand .tech-empty{box-shadow:0 6px 24px #0b34500a}
.customer-brand .customer-hero{background:linear-gradient(110deg,var(--portal-accent),#17354b);box-shadow:0 10px 28px #112e4220}
.customer-brand .customer-panel{border-top:3px solid var(--portal-accent)}
@media(max-width:650px){.office-data div{grid-template-columns:1fr;gap:2px}.office-brand .portal-header-name{display:none}}

/* V0.02 R3 — dedicated new-project five-interface visual system */
:root{--sers-ink:#071c37;--sers-blue:#008dff;--sers-cyan:#19b7ff;--sers-border:#e3ebf4}
/* Public: cinematic night-sky treatment with responsive device illustration */
.public-app .public-top{background:linear-gradient(90deg,#03132de8,#041a3ac9);border-bottom:1px solid #63baff2e}
.public-app .public-top-inner{max-width:1510px;min-height:88px}
.public-app .public-links a:hover{color:#4cc7ff}
.public-app .marketing-hero{isolation:isolate;background:radial-gradient(ellipse at 72% 76%,#075ba2 0%,transparent 46%),linear-gradient(118deg,#020e23 8%,#052d61 65%,#020f2a);padding-top:133px}
.public-app .hero-nightscape{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.63;background:radial-gradient(circle at 65% 11%,#9cd7ff 0 1px,transparent 2px),radial-gradient(circle at 18% 22%,#e5f8ff 0 1px,transparent 2px),radial-gradient(circle at 44% 12%,#b6e6ff 0 1px,transparent 2px),linear-gradient(180deg,transparent 45%,#063a7280 84%,#021026);background-size:190px 130px,250px 200px,310px 180px,auto}
.public-app .hero-nightscape:after{content:"";position:absolute;bottom:12%;left:-2%;right:-2%;height:34%;opacity:.47;background:repeating-linear-gradient(90deg,transparent 0 17px,#012147 17px 40px,transparent 40px 50px,#012147 50px 86px,transparent 86px 96px);clip-path:polygon(0 60%,6% 60%,6% 38%,11% 38%,11% 65%,16% 65%,16% 28%,21% 28%,21% 61%,27% 61%,27% 48%,31% 48%,31% 12%,35% 12%,35% 55%,42% 55%,42% 40%,48% 40%,48% 66%,56% 66%,56% 30%,61% 30%,61% 54%,68% 54%,68% 18%,73% 18%,73% 60%,79% 60%,79% 38%,85% 38%,85% 65%,91% 65%,91% 20%,95% 20%,95% 55%,100% 55%,100% 100%,0 100%)}
.public-app .hero-grid{max-width:1450px;min-height:525px;grid-template-columns:48% 52%;gap:0}
.public-app .hero-copy{z-index:2}
.public-app .hero-copy h1{font-size:clamp(3rem,4.3vw,5.1rem);text-shadow:0 3px 22px #0005}
.public-app .hero-copy .eyebrow{color:#74ceff}
.public-app .hero-art{height:460px}
.public-app .hero-device-caption{position:absolute;right:12%;top:5%;color:#b9e8ff;font-size:10px;font-weight:800;letter-spacing:.18em}
.public-app .mock-window{box-shadow:0 38px 85px #000b,0 0 60px #0b8aff45;border-color:#081b34}
.public-app .hero-capabilities{max-width:1450px;background:#0013294d;border-radius:16px 16px 0 0}
.public-app .benefit-strip{box-shadow:0 9px 24px #0c4b7410}
.public-app .feature-grid article{transition:transform .2s,box-shadow .2s}.public-app .feature-grid article:hover{transform:translateY(-4px);box-shadow:0 20px 38px #113e6b18}
/* Office: its own persistent workspace, not the Core shell */
.office-brand{background:#eef4fa}
.office-brand .portal-header{height:82px;background:linear-gradient(100deg,#04162f 5%,#053566 70%,#061a34);border-bottom:2px solid #158cff;padding:12px 30px;gap:18px}
.office-brand .portal-logo img{width:220px}
.office-brand .portal-header-name{font-size:13px;font-weight:700;color:#c5e3ff}
.office-brand .portal-header-name strong{display:block;font-size:10px;letter-spacing:.2em;color:#55c5ff}
.office-toolbar{display:flex;gap:8px;margin-left:10px}
.office-toolbar a{display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff33;border-radius:10px;background:#ffffff12;font-size:18px}
.office-toolbar a:hover{background:#147ff1}
.office-brand .portal-header-actions{border-left:1px solid #ffffff30;padding-left:18px}
.office-brand .office-shell{grid-template-columns:254px minmax(0,1fr);min-height:calc(100vh - 130px)}
.office-brand .office-side{background:linear-gradient(165deg,#061f3d,#04152c);padding:24px 13px 16px;gap:3px;border-right:1px solid #174a75}
.office-side-heading{padding:0 13px 18px;color:#71b7e8;font-size:10px;letter-spacing:.18em;font-weight:800}.office-side-heading span{display:block;color:#e6f6ff;font-size:15px;letter-spacing:.06em;margin-top:2px}
.office-brand .office-side-link{min-height:43px;border-radius:8px;padding:10px 12px;font-size:13px}
.office-brand .office-side-link:not(.disabled):hover{background:#145184;color:#fff}
.office-brand .office-side-link.active{background:linear-gradient(100deg,#0966d4,#0796ff);box-shadow:0 4px 12px #0064d844}
.office-brand .office-side-link.disabled{opacity:.55}
.office-side-bottom{margin-top:auto;padding:20px 10px 5px;border-top:1px solid #ffffff1d;color:#89a8c6;font-size:10px}.office-status-dot,.context-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#1fd8a1;margin-right:7px;box-shadow:0 0 0 3px #1fd8a126}
.office-brand .office-main{padding:26px clamp(20px,3vw,55px) 48px;background:#f2f6fb}
.office-context{display:flex;align-items:center;gap:4px;color:#476c90;font-size:11px;font-weight:800;letter-spacing:.09em;margin-bottom:24px;border-bottom:1px solid #dce6f1;padding-bottom:14px}
.context-status{margin-left:auto;border:1px solid #b9e9da;color:#087453;background:#e8faf2;border-radius:30px;padding:5px 11px;font-size:10px}
.office-brand .workspace-heading h1{font-size:32px;color:#0a2442}
.office-brand .workspace-heading p{font-size:14px}
.office-brand .office-metrics{margin:26px 0 30px;gap:16px}
.office-brand .office-metric{min-height:111px;padding:18px;border:1px solid #e0e9f4;border-top:0;border-radius:12px;box-shadow:0 5px 22px #0d34500a;position:relative;overflow:hidden}
.office-brand .office-metric:before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:#0b95ff}
.office-brand .office-metric:nth-child(2):before{background:#17a4e8}.office-brand .office-metric:nth-child(3):before{background:#fa7e6e}.office-brand .office-metric:nth-child(4):before{background:#ffad37}
.office-brand .metric-icon{width:48px;height:48px;display:grid;place-items:center;font-size:24px;background:#e6f5ff}
.office-brand .office-metric strong{font-size:27px;color:#12304d}
.office-section-heading,.customer-section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:12px 0}.office-section-heading h2,.customer-section-title h2{font-size:18px;margin:0}.office-section-heading span,.customer-section-title span{font-size:12px;color:#7890a8}
.office-brand .office-dashboard-grid{gap:20px}
.office-brand .office-panel{border-radius:12px;padding:23px;min-height:305px;box-shadow:0 8px 28px #092f4d0a}
.panel-title-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.panel-title-row h2{margin:0}.coming-tag{font-size:9px;letter-spacing:.07em;font-weight:800;color:#4c7aa3;background:#edf5ff;border-radius:5px;padding:6px 9px}
.office-brand .empty-workspace{padding:48px 20px;background:linear-gradient(135deg,#fbfdff,#f3f9ff);border:1px dashed #bcd7ef}
.office-brand .office-quick a,.office-brand .office-quick span{padding:24px 12px;min-height:82px;display:grid;place-items:center;border:1px solid #e1ecf8;background:#f0f8ff}
.office-brand .office-quick a:hover{background:#d8edff}
/* Technician: separate mobile app surface */
.technician-brand{background:linear-gradient(180deg,#eaf3fc,#f9fbff 420px)}
.technician-brand .portal-header{background:#051c3a;padding:14px max(16px,calc((100vw - 530px)/2));min-height:76px}
.technician-brand .portal-logo img{width:185px}
.technician-brand .portal-header-name{display:none}
.technician-brand .portal-main{width:min(100%,520px);padding:24px 16px 100px}
.tech-app-banner{font-size:10px;letter-spacing:.16em;font-weight:900;color:#0081df;margin-bottom:18px}
.technician-brand .tech-title h1{font-size:35px;color:#092748}
.technician-brand .tech-title .eyebrow{color:#0b8de7}
.technician-brand .tech-tabs{background:#e0ebf7;border-radius:12px;padding:5px}
.technician-brand .tech-tabs span{border-radius:9px;font-weight:650}
.tech-day-summary{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #dbe7f4;border-radius:14px;padding:17px;margin-bottom:15px;box-shadow:0 6px 20px #103a6109}.tech-day-icon{background:#e8f5ff;border-radius:10px;padding:11px;color:#0b8af0;font-size:24px}.tech-day-summary strong,.tech-day-summary small{display:block}.tech-day-summary strong{font-size:14px}.tech-day-summary small{font-size:11px;color:#6b8095}.tech-count{margin-left:auto;font-size:24px;color:#7896b5}
.technician-brand .tech-empty{border-radius:16px;min-height:235px;display:flex;flex-direction:column;justify-content:center}
.technician-brand .tech-bottom{border-radius:18px 18px 0 0;max-width:520px;padding:13px 5px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -8px 32px #06345c1a}
/* Customer: tenant-owned white-label surface */
.customer-brand{background:#f4f7f8;color:#17324a}
.customer-brand .portal-header{min-height:78px;padding:14px max(20px,calc((100vw - 1280px)/2));border-bottom:3px solid var(--portal-accent);background:#fff}
.customer-brand .portal-logo{font-size:21px!important;letter-spacing:-.03em;max-width:290px;overflow-wrap:anywhere}
.customer-brand .customer-topnav a:hover{color:var(--portal-accent)}
.customer-brand .portal-main{max-width:1300px;padding:25px 20px 65px}
.customer-brand .customer-hero{position:relative;overflow:hidden;isolation:isolate;min-height:260px;border-radius:13px;padding:0;background:linear-gradient(100deg,#06233bea,#0c394ac0),linear-gradient(135deg,var(--portal-accent),#244b54);box-shadow:0 10px 30px #0c304020}
.customer-hero-overlay{position:absolute;inset:0;z-index:-1;opacity:.32;background:linear-gradient(140deg,transparent 38%,#ffffff22 38% 39%,transparent 39% 52%,#ffffff16 52% 53%,transparent 53%),repeating-linear-gradient(90deg,#163b4e 0 40px,#31576a 40px 44px,#0d3048 44px 100px);clip-path:polygon(45% 25%,100% 0,100% 100%,35% 100%)}
.customer-hero-inner{padding:55px 44px;max-width:760px;position:relative;z-index:1}
.customer-brand .customer-hero h1{font-size:clamp(30px,3.2vw,46px)}
.customer-brand .customer-hero p:last-child{font-size:16px;color:#e0f1f4}
.customer-brand .customer-stats{gap:15px;margin:18px 0 27px}
.customer-brand .customer-stats article{padding:22px;border-radius:12px;box-shadow:0 5px 18px #0e3a4e0b}
.customer-brand .customer-stats strong{font-size:31px}
.customer-brand .customer-stats span{display:block;color:#657e8d;margin-top:5px}
.customer-brand .customer-panels{gap:20px}
.customer-brand .customer-panel{min-height:235px;border:1px solid #e0e9ee;border-top:3px solid var(--portal-accent);box-shadow:0 6px 24px #173c4b09}
.customer-brand .customer-support{min-height:100px}
@media(max-width:1050px){.office-brand .office-shell{grid-template-columns:215px minmax(0,1fr)}.office-brand .portal-header-name{display:none}.office-toolbar{margin-left:auto}.public-app .hero-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.public-app .marketing-hero{padding-top:40px}.public-app .hero-grid{grid-template-columns:1fr}.public-app .hero-art{height:355px}.office-brand .office-shell{display:block}.office-brand .office-side{display:flex;flex-direction:row;overflow-x:auto;padding:9px;gap:5px}.office-side-heading,.office-side-bottom{display:none}.office-brand .office-side-link{flex:0 0 auto;white-space:nowrap}.office-brand .office-side-link.disabled{display:none}.office-brand .office-main{padding:22px 14px}.office-brand .office-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.office-brand .office-dashboard-grid{grid-template-columns:1fr}.office-brand .office-metric{min-height:92px;padding:12px}.office-brand .metric-icon{width:37px;height:37px}.office-brand .workspace-heading{align-items:flex-start}.office-brand .workspace-date{display:none}.customer-brand .customer-hero-inner{padding:38px 23px}.customer-brand .customer-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-brand .customer-panels{grid-template-columns:1fr}.customer-brand .customer-topnav{order:3;width:100%;justify-content:space-between}.customer-brand .portal-header{flex-wrap:wrap}.customer-brand .portal-header-actions{margin-left:auto}}
@media(max-width:440px){.office-brand .portal-header{padding:12px}.office-brand .portal-logo img{width:150px}.office-toolbar{gap:3px}.office-toolbar a{width:30px;height:30px}.office-brand .portal-header-actions{padding-left:8px}.office-brand .portal-header-actions .portal-user{display:none}.office-brand .office-metric{gap:8px}.office-brand .office-metric small{font-size:10px}.office-brand .office-metric strong{font-size:23px}.customer-brand .customer-topnav{gap:10px}.customer-brand .customer-topnav a{font-size:11px}}

/* V0.02 R4: office visual differentiation from Core; new-project reference only */
.office-brand{background:#edf5fb}.office-brand .portal-header{position:relative;isolation:isolate;overflow:hidden;min-height:90px;height:auto;background:linear-gradient(90deg,#04152d,#072b54 55%,#04172e);border-bottom:3px solid #009cfa}.office-brand .portal-header:before{content:"";position:absolute;z-index:-1;inset:0 17% 0 32%;opacity:.3;pointer-events:none;background:linear-gradient(125deg,transparent 45%,#6bc7ff 45.4%,transparent 46%),linear-gradient(55deg,transparent 44%,#6bc7ff 44.4%,transparent 45%),repeating-linear-gradient(90deg,transparent 0 46px,#79caff 47px 49px,transparent 50px 94px);clip-path:polygon(0 100%,0 55%,13% 55%,20% 20%,30% 55%,58% 55%,67% 12%,76% 55%,100% 55%,100% 100%)}.office-brand .portal-header-name{margin-left:auto;padding:8px 15px;border-radius:9px;background:#001d3c90;color:#e3f5ff}.office-brand .office-shell{grid-template-columns:234px minmax(0,1fr);background:#f0f6fb}.office-brand .office-side{background:linear-gradient(180deg,#061b36,#041429);border-right:0;box-shadow:5px 0 20px #0b2d4a0a}.office-brand .office-side-link.active{background:#0969e7}.office-brand .office-main{background:#f2f7fb;padding:30px clamp(20px,3vw,52px) 55px}.office-brand .office-context{background:#e8f7fb;border:1px solid #cdebf4;border-radius:12px;padding:12px 17px;margin-bottom:23px}.office-brand .workspace-heading{position:relative;min-height:150px;background:linear-gradient(115deg,#fff 45%,#e4f5ff);border:1px solid #dcecf5;border-radius:16px;padding:26px 30px;margin-bottom:22px;overflow:hidden}.office-brand .workspace-heading:after{content:"";position:absolute;right:-40px;top:-60px;width:260px;height:260px;border:38px solid #0b9bef12;border-radius:50%;pointer-events:none}.office-brand .workspace-heading h1{font-size:clamp(27px,3vw,39px);color:#092b50}.office-brand .office-metric{background:#fff;border:1px solid #dfeaf3;border-top:0;border-radius:13px;box-shadow:0 8px 22px #123c5b0b;min-height:105px}.office-brand .office-metric:nth-child(1) .metric-icon{background:#e1f9ed;color:#049d68}.office-brand .office-metric:nth-child(2) .metric-icon{background:#e4f2ff;color:#097bea}.office-brand .office-metric:nth-child(3) .metric-icon{background:#fff0ee;color:#ec685b}.office-brand .office-metric:nth-child(4) .metric-icon{background:#fff5e4;color:#e49a1d}.office-brand .office-panel{border-radius:15px;box-shadow:0 8px 25px #123c5b0b}.office-brand .portal-footer{background:#061a32}@media(max-width:800px){.office-brand .office-shell{grid-template-columns:185px minmax(0,1fr)}.office-brand .portal-header-name{display:none}}@media(max-width:650px){.office-brand .office-shell{display:block}.office-brand .office-side{display:flex;flex-direction:row;overflow-x:auto;padding:10px}.office-brand .office-side-heading,.office-brand .office-side-bottom{display:none}.office-brand .office-main{padding:16px}.office-brand .workspace-heading{padding:20px;min-height:120px}.office-brand .office-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* R5: Office-only refinement; no Core Administration style overrides. */
.office-brand .portal-header{min-height:104px;background:linear-gradient(105deg,#04152d,#074278 57%,#061a35);box-shadow:0 8px 24px #05213b1c}
.office-brand .portal-header:before{opacity:.48}
.office-brand .office-side{background:linear-gradient(180deg,#071c38,#05284d 64%,#04182f)}
.office-brand .office-side-heading{border-bottom:1px solid #ffffff1a;letter-spacing:.08em}
.office-brand .office-side-link{border-radius:9px;margin:3px 8px;transition:background .15s ease}
.office-brand .office-side-link.active{background:linear-gradient(90deg,#0864ce,#079bf0);box-shadow:0 4px 12px #0002}
.office-brand .office-main{background:linear-gradient(180deg,#edf7ff 0,#f4f8fc 210px,#f4f8fc 100%)}
.office-brand .workspace-heading{border-left:5px solid #0b95ee;box-shadow:0 10px 25px #173d5b0d}
.office-brand .office-context{font-weight:650}
.office-brand .office-metric{border-top:3px solid #1e9ff2;transition:transform .15s ease}
.office-brand .office-metric:nth-child(1){border-top-color:#0caa86}.office-brand .office-metric:nth-child(3){border-top-color:#ed795b}.office-brand .office-metric:nth-child(4){border-top-color:#e4aa30}
.office-brand .office-panel{border:1px solid #dce9f3}
.office-brand .office-quick a:focus-visible,.office-brand .office-side-link:focus-visible{outline:3px solid #ffbb45;outline-offset:2px}
@media(max-width:650px){.office-brand .portal-header{min-height:78px}.office-brand .office-side-link{margin:2px}}

/* V0.02 R6: Office-only visual pass, based on new-project office layout. */
.office-brand .portal-header{min-height:94px;border-bottom:4px solid #21b7f6;background:linear-gradient(110deg,#031c3a 0%,#074b85 60%,#082648 100%)}
.office-brand .portal-header:before{opacity:.19}
.office-brand .portal-header-name{border-left:3px solid #37c5ff;background:#00274b88;border-radius:4px;padding:10px 18px}
.office-brand .office-side{background:linear-gradient(180deg,#052c51,#08213c 65%,#05172b)}
.office-brand .office-side-heading{font-size:11px;color:#9bd5fb;padding-top:7px}
.office-brand .office-side-heading span{font-size:17px;color:#fff}
.office-brand .office-side-link.active{border-left:4px solid #54d3ff;background:#075a9f}
.office-brand .office-main{background:#f2f7fc}
.office-brand .office-context{background:#fff;border-left:4px solid #18a6eb;border-radius:8px}
.office-brand .workspace-heading{background:linear-gradient(110deg,#fff 50%,#e7f4fd);border-left:5px solid #0788db;border-radius:13px}
.office-brand .office-metric{box-shadow:0 5px 20px #0a355012}
.office-brand .office-panel{box-shadow:0 8px 25px #0a35500c}
.office-brand .office-quick a{border-radius:8px;background:#eaf5ff;font-weight:700}
@media(max-width:650px){.office-brand .portal-header{min-height:75px}.office-brand .office-side-link.active{border-left-width:2px}}

/* V0.02 R7: Office visual reconstruction — compact light field-service workspace.
   Office-only selectors: Core Administration and the public site are unaffected. */
.office-brand{background:#f4f7fc;color:#172d47}
.office-brand .portal-header{min-height:68px;height:68px;padding:8px 24px;background:#fff;border-bottom:1px solid #dce6f2;box-shadow:none;overflow:visible}
.office-brand .portal-header:before{display:none}
.office-brand .portal-logo img{width:178px;max-height:49px;object-fit:contain}
.office-brand .portal-header-name{margin-left:auto;color:#17375c;background:#edf5ff;border:1px solid #d7e7fb;border-left:3px solid #1977e9;border-radius:7px;font-size:11px;padding:6px 12px}
.office-brand .portal-header-name strong{color:#1874dc;font-size:9px}
.office-brand .office-toolbar a{background:#f4f8fe;border:1px solid #dce7f5;color:#19446d;width:34px;height:34px}
.office-brand .portal-header-actions{border-left:1px solid #dce7f5;color:#17375c}
.office-brand .portal-header-actions a{color:#1363bb}
.office-brand .office-shell{grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 110px);background:#f5f8fc}
.office-brand .office-side{background:#fff;border-right:1px solid #e1e9f3;box-shadow:none;padding:22px 10px;gap:2px}
.office-brand .office-side-heading{padding:2px 12px 18px;border:0;color:#627995;letter-spacing:.02em}
.office-brand .office-side-heading span{font-size:12px;color:#152f4c;letter-spacing:.07em}
.office-brand .office-side-heading small{display:block;font-size:11px;font-weight:500;letter-spacing:0;margin-top:4px;color:#8494a9}
.office-brand .office-side-link{color:#3a526c;min-height:39px;margin:1px 2px;border-radius:8px;padding:9px 11px;font-size:12px;font-weight:600;box-shadow:none;border:1px solid transparent}
.office-brand .office-side-link.active{color:#0865cc;background:#eaf3ff;border:1px solid #b8d6fa;border-left:1px solid #b8d6fa;box-shadow:none}
.office-brand .office-side-link:not(.disabled):hover{background:#edf5ff;color:#0865cc}
.office-brand .office-side-link.disabled{color:#8292a5;opacity:1;background:none}
.office-brand .office-side-link.disabled small{color:#a0aebc;font-size:9px;margin-left:auto}
.office-brand .office-side-bottom{color:#8494a7;border-top:1px solid #e7edf4}
.office-brand .office-main{padding:24px clamp(18px,2.3vw,38px) 45px;background:#f5f8fc}
.office-welcome{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;border:1px solid #e0e9f3;border-radius:12px;padding:23px 26px;margin-bottom:18px}
.office-kicker,.office-card-eyebrow{font-size:10px!important;letter-spacing:.12em;color:#2373d0!important;font-weight:800!important;margin:0 0 8px!important}
.office-welcome h1{font-size:clamp(22px,2.2vw,30px);line-height:1.25;margin:0 0 7px;color:#152f4c}
.office-welcome p:last-child{font-size:12px;color:#6d829a;margin:0}
.office-welcome-action{display:inline-flex;gap:12px;align-items:center;background:#176cdb;color:#fff!important;border-radius:8px;padding:11px 15px;font-size:12px;font-weight:750;white-space:nowrap}
.office-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:17px}
.office-stat{background:#fff;border:1px solid #dfe8f2;border-radius:10px;padding:18px 19px;min-width:0;display:flex;flex-direction:column;gap:7px;box-shadow:0 3px 13px #123a6307}
.office-stat-label{font-size:12px;color:#526b86;font-weight:650}
.office-stat-pending{font-size:29px;color:#16324f;line-height:1.15}
.office-stat small{font-size:10px;color:#8596aa;line-height:1.4}
.office-content-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:16px;margin-bottom:16px}
.office-module-card{background:#fff;border:1px solid #dfe8f2;border-radius:11px;padding:20px 21px;min-width:0}
.office-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}
.office-card-head h2{font-size:17px;color:#17304e;margin:0}
.office-pill{background:#edf3fb;color:#6d839c;font-size:10px;border-radius:5px;padding:7px 10px;white-space:nowrap}
.office-unavailable{min-height:190px;background:#f8fbff;border:1px dashed #d5e4f5;border-radius:9px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:24px}
.office-unavailable-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;background:#e8f2ff;color:#1870db;font-size:24px;margin-bottom:12px}
.office-unavailable h3{font-size:14px;color:#294968;margin:0 0 6px}
.office-unavailable p{font-size:12px;max-width:400px;color:#7188a2;line-height:1.6;margin:0}
.office-action-list{display:grid;gap:9px}
.office-action-list a{display:flex;align-items:center;gap:13px;padding:13px;background:#f8fbff;border:1px solid #e2ecf7;border-radius:8px;color:#173b64}
.office-action-list a:hover{background:#edf5ff}
.office-action-list a>span{width:37px;height:37px;display:grid;place-items:center;background:#e8f2ff;color:#1474d9;border-radius:8px;font-size:19px}
.office-action-list a div{flex:1;display:flex;flex-direction:column;gap:3px}
.office-action-list a strong{font-size:12px}.office-action-list a small{font-size:10px;color:#7189a1}.office-action-list a b{color:#1874da}
.office-feature-note{font-size:11px;line-height:1.5;color:#8296a9;margin-top:16px}
.office-bottom-card{margin-top:0}
.office-available-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.office-available-grid>a,.office-available-grid>div{display:flex;align-items:flex-start;flex-direction:column;gap:6px;padding:15px;background:#f8fbff;border:1px solid #e3ecf5;border-radius:9px;color:#234461}
.office-available-grid span{font-size:21px;color:#1876db}.office-available-grid strong{font-size:12px}.office-available-grid small{font-size:11px;color:#7e90a5}
.office-brand .portal-footer{background:#fff;border-top:1px solid #e0e8f3;color:#7b90a5}
@media(max-width:1100px){.office-brand .office-shell{grid-template-columns:190px minmax(0,1fr)}.office-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.office-content-grid{grid-template-columns:1fr}}
@media(max-width:700px){.office-brand .office-shell{display:block}.office-brand .office-side{display:flex;flex-direction:row;overflow-x:auto;padding:9px;border-right:0;border-bottom:1px solid #dce7f2}.office-brand .office-side-heading,.office-brand .office-side-bottom{display:none}.office-brand .office-side-link{white-space:nowrap;flex:0 0 auto}.office-brand .office-side-link.disabled{display:none}.office-brand .office-main{padding:14px}.office-welcome{padding:19px;align-items:flex-start}.office-welcome-action{font-size:11px}.office-brand .portal-header-name{display:none}.office-stat-grid{gap:9px}.office-stat{padding:13px}.office-available-grid{grid-template-columns:1fr 1fr}}
@media(max-width:430px){.office-welcome{flex-direction:column}.office-stat-grid{grid-template-columns:1fr 1fr}.office-brand .portal-logo img{width:140px}.office-brand .portal-header{padding:9px 12px}.office-brand .portal-header-actions .portal-user{display:none}.office-available-grid{grid-template-columns:1fr}}
/* V0.02 R9: cohesive light-first SERS Cloud design system; original approved brand assets untouched. */
:root{--r8-ink:#17283e;--r8-muted:#607389;--r8-line:#e4ebf3;--r8-teal:#00c6b3;--r8-blue:#1973f5;--r8-violet:#8455ed;--r8-orange:#ff8b56;--r8-bg:#f6f9fd;--r8-shadow:0 12px 36px rgba(28,57,91,.07)}
body.public-app,body.core-app,body.portal-app{font-family:var(--sers-font-family);color:var(--r8-ink)}
.public-app{background:#fff!important}.public-app .public-top{background:rgba(255,255,255,.97)!important;border-bottom:1px solid #e5edf5!important;box-shadow:0 4px 18px rgba(31,64,99,.035)!important}.public-app .public-links a,.public-app .top-actions>a{color:#203954!important}.public-app .public-top-inner{max-width:1480px}.public-app .brand img{max-width:210px;object-fit:contain}.public-app .public-main{max-width:none!important;padding:0!important}.public-app .public-footer{background:#f4f8fc!important;color:#64788c!important}
.r8-hero{background:radial-gradient(ellipse at 90% 10%,#c9f9f5 0%,transparent 35%),radial-gradient(ellipse at 20% 80%,#e9e5ff 0%,transparent 42%),linear-gradient(115deg,#fff 15%,#f5fbff 95%);overflow:hidden}.r8-hero-inner{max-width:1480px;margin:auto;min-height:610px;padding:80px 5% 66px;display:grid;grid-template-columns:1fr 1fr;gap:6%;align-items:center}.r8-eyebrow{font-size:12px!important;font-weight:800!important;letter-spacing:.14em!important;color:#1387b3!important;text-transform:uppercase!important;margin:0 0 15px!important}.r8-eyebrow span{color:#ff8b56}.r8-hero h1{font-size:clamp(46px,5.1vw,79px)!important;line-height:1.07!important;letter-spacing:-.06em!important;margin:0 0 24px!important;color:#142840!important;font-weight:850!important}.r8-hero h1 span{background:linear-gradient(105deg,#196af1,#00bfc7);background-clip:text;-webkit-background-clip:text;color:transparent}.r8-lead{font-size:clamp(16px,1.4vw,21px)!important;line-height:1.65!important;max-width:640px;color:#4c6178!important}.r8-actions{display:flex;gap:14px;flex-wrap:wrap;margin:28px 0}.r8-actions .button{border-radius:13px!important;padding:15px 24px!important;text-decoration:none!important;font-weight:750!important}.r8-primary{background:linear-gradient(110deg,#175ff1,#00c6d4)!important;color:white!important;box-shadow:0 12px 24px #148de82c!important}.r8-secondary{background:#fff!important;border:1px solid #bbd0e4!important;color:#2461a6!important}.r8-trust{font-size:12px;color:#5b7287}.r8-feature-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:35px}.r8-feature-tags span{font-size:12px;font-weight:700;padding:10px 12px;background:white;border:1px solid #e0edf5;border-radius:11px;box-shadow:0 5px 12px #1a47720a}.r8-hero-visual{min-height:460px;position:relative;display:flex;align-items:center;justify-content:center}.r8-device{width:92%;max-width:610px;background:white;border:10px solid #26384e;border-radius:23px;box-shadow:0 30px 60px #31507139;transform:perspective(1000px) rotateY(-6deg) rotateX(2deg);overflow:hidden}.r8-device-top{height:40px;background:#f7faff;border-bottom:1px solid #e7edf5;display:flex;align-items:center;justify-content:space-between;padding:0 15px;font-size:11px}.r8-device-top b{color:#ff886d;letter-spacing:4px}.r8-device-top span{color:#7290a9}.r8-device-body{display:grid;grid-template-columns:45px 1fr;min-height:310px}.r8-device-body aside{background:#eef7ff;padding:22px 13px;display:flex;flex-direction:column;gap:22px;color:#2374cf}.r8-device-content{padding:24px}.r8-device-content h3{font-size:21px;margin:0 0 4px}.r8-device-content p{font-size:12px;color:#8493a3;margin:0 0 17px}.r8-demo-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.r8-demo-metrics div{border:1px solid #e5eef6;background:#f8fbff;border-radius:10px;padding:13px}.r8-demo-metrics small,.r8-demo-metrics b{display:block}.r8-demo-metrics small{font-size:10px;color:#6c8498}.r8-demo-metrics b{font-size:17px;color:#187acb;margin-top:5px}.r8-demo-list{border:1px solid #e7eef5;border-radius:10px;margin-top:13px;padding:12px}.r8-demo-list strong,.r8-demo-list span{display:block;font-size:11px;padding:6px}.r8-demo-list span{border-top:1px solid #eff4f9;color:#566d83}.r8-demo-list i{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#dff7f4;color:#008d83;font-style:normal;margin-right:7px}.r8-phone{position:absolute;right:-3%;bottom:-8%;width:160px;min-height:310px;border:7px solid #26384e;background:#fff;border-radius:27px;box-shadow:0 20px 35px #263e6340;padding:22px 12px 12px}.r8-phone-notch{width:48px;height:9px;border-radius:12px;background:#26384e;position:absolute;top:5px;left:calc(50% - 24px)}.r8-phone small{color:#168bd2;font-size:9px;font-weight:800}.r8-phone h3{font-size:21px;margin:13px 0 3px}.r8-phone p{font-size:10px;color:#647e90}.r8-phone-task{display:flex;align-items:center;gap:7px;background:#f2f9ff;border:1px solid #e4eef7;border-radius:8px;margin:10px 0;padding:9px 7px;font-size:10px;color:#2379c6}.r8-phone-task b{color:#263c51;flex:1}.r8-proof{max-width:1360px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:30px 5%;background:white}.r8-proof div{padding:15px 22px;border-left:3px solid #17c9bb}.r8-proof b,.r8-proof span{display:block}.r8-proof b{font-size:16px}.r8-proof span{font-size:12px;color:#647a8f;margin-top:5px}.r8-section{max-width:1380px;margin:0 auto;padding:86px 5%;scroll-margin-top:90px}.r8-section h2{font-size:clamp(30px,3.2vw,48px)!important;letter-spacing:-.04em!important;line-height:1.15!important;color:#172c44!important;margin:0 0 18px!important}.r8-section-lead{max-width:720px;color:#66798d;font-size:17px;line-height:1.7}.r8-journey{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:36px}.r8-journey article{background:#fff;border:1px solid #e2eaf3;border-radius:16px;padding:22px 18px;box-shadow:var(--r8-shadow)}.r8-journey h3{font-size:21px;margin:20px 0 6px}.r8-journey p{font-weight:700;font-size:13px;margin:0 0 10px}.r8-journey small{color:#708398;line-height:1.5}.r8-bubble{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;color:white;font-weight:850}.r8-bubble.aqua{background:#00abc9}.r8-bubble.purple{background:#8954eb}.r8-bubble.green{background:#04bb92}.r8-bubble.orange{background:#ff8b4f}.r8-bubble.pink{background:#eb4c9b}.r8-capabilities{display:grid;grid-template-columns:1fr 1.25fr;gap:60px;align-items:center}.r8-capabilities>div>p{color:#60788e;line-height:1.7}.r8-feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.r8-feature-grid article{background:#f5f9fd;border:1px solid #e6edf4;padding:24px;border-radius:16px}.r8-feature-grid article span{font-size:30px;color:#087dd5}.r8-feature-grid article h3{font-size:17px;margin:12px 0}.r8-feature-grid article p{font-size:13px;color:#657c90}.r8-inline{color:#1379c4;font-weight:700}.r8-industries{max-width:none;background:linear-gradient(110deg,#e9faff,#f6efff);padding-left:max(5%,calc((100% - 1240px)/2));padding-right:max(5%,calc((100% - 1240px)/2))}.r8-industries-tags{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}.r8-industries-tags span{background:white;border-radius:100px;padding:12px 18px;font-size:13px;font-weight:750}.r8-conversion{text-align:center}.r8-conversion .r8-actions{justify-content:center}.r8-about{border-top:1px solid #edf1f5}.r8-about p:last-child{max-width:760px;color:#60788e;line-height:1.7}.r8-contact{background:#f6faff;max-width:none;text-align:center}.r8-contact a{font-size:20px;font-weight:800;color:#137bd5}
/* Core control centre: light shell and information-rich panels */
.core-app{background:#f5f8fc!important}.core-app .core-top{background:#fff!important;border-bottom:1px solid #e3ebf3!important;box-shadow:0 4px 15px #253f5b0a!important}.core-app .core-top .core-platform-label,.core-app .core-top .user-chip{color:#29425c!important}.core-app .core-nav{background:#fff!important;border-right:1px solid #e4ebf3!important}.core-app .core-nav .nav-caption{color:#8a9aaa!important}.core-app .core-nav .nav-link,.core-app .core-nav .nav-subitem{color:#405b75!important}.core-app .core-nav .nav-link.active,.core-app .core-nav .nav-link:hover{background:#e9f6ff!important;color:#0879cc!important}.core-app .core-main{background:#f5f8fc!important}.core-app .panel,.core-app .stat-card,.core-app .quick-grid a{background:#fff!important;border:1px solid #e2ebf4!important;border-radius:15px!important;box-shadow:var(--r8-shadow)!important}.core-app .core-heading h1{color:#18304b!important}.core-app .version-pill{background:#e9f8f5!important;color:#0b8c80!important;border:1px solid #c8efe9!important}
/* Tenant Office: independent practical workspace, not a duplicate of Core */
.office-brand{background:#f6f9fd!important}.office-brand .portal-header{background:#fff!important;border-bottom:1px solid #e1eaf3!important;box-shadow:0 4px 18px #183f670a!important}.office-brand .portal-header-name,.office-brand .portal-header-actions{color:#27455e!important}.office-brand .office-side{background:#fff!important;border-right:1px solid #e5edf5!important}.office-brand .office-side-heading{color:#244663!important}.office-brand .office-side-link{color:#4d6680!important;border-radius:10px!important}.office-brand .office-side-link.active{background:#e4f6ff!important;color:#0879d0!important;border-left:3px solid #00bfc2!important}.office-brand .office-side-link.disabled{opacity:.6}.office-brand .office-main{background:#f6f9fd!important}.r8-office-welcome{background:linear-gradient(120deg,#fff 45%,#e8faff 100%);border:1px solid #e0ecf5;border-radius:18px;padding:28px 30px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:var(--r8-shadow);margin-bottom:18px}.r8-office-welcome h1{font-size:clamp(25px,2.5vw,37px);letter-spacing:-.04em;color:#1b334b;margin:0 0 8px}.r8-office-welcome h1 span{color:#00b7aa}.r8-office-welcome p:last-child{color:#6d8194;margin:0}.r8-office-cta{background:#16b7ae;color:white!important;border-radius:11px;padding:12px 17px;font-weight:750;white-space:nowrap;text-decoration:none}.r8-office-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.r8-office-tile{border-radius:16px;padding:20px;min-height:167px;border:1px solid #e2edf4;box-shadow:var(--r8-shadow)}.r8-office-tile.mint{background:#edfcf7}.r8-office-tile.sky{background:#eff8ff}.r8-office-tile.peach{background:#fff5ed}.r8-office-tile.lilac{background:#f5f0ff}.r8-office-tile-icon{display:block;font-size:26px;color:#0d91a7;margin-bottom:12px}.r8-office-tile small{display:block;color:#7c8d9e;font-size:9px;font-weight:800;letter-spacing:.05em}.r8-office-tile h2{font-size:17px;color:#1d3b54;margin:7px 0}.r8-office-tile p{font-size:12px;color:#60768a;margin:0}.r8-office-columns{display:grid;grid-template-columns:1.3fr 1fr;gap:18px}.r8-office-panel{background:#fff;border:1px solid #e4ecf5;border-radius:17px;padding:23px;box-shadow:var(--r8-shadow);min-height:330px}.r8-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.r8-panel-heading h2{font-size:20px;color:#1d3650;margin:0}.r8-soft-tag{font-size:10px;color:#5b8098;background:#eaf5ff;padding:7px 10px;border-radius:8px}.r8-schedule-empty{margin-top:22px;border:1px dashed #bed7e9;border-radius:13px;padding:42px 18px;text-align:center;background:#f8fbfe}.r8-schedule-empty span{font-size:32px;color:#4cb5c5}.r8-schedule-empty h3{font-size:17px;margin:10px 0}.r8-schedule-empty p{font-size:13px;max-width:410px;line-height:1.6;margin:auto;color:#7890a2}.r8-action-links{display:grid;gap:12px;margin-top:22px}.r8-action-links a{display:flex;gap:14px;align-items:center;background:#f5f9fd;border:1px solid #e7eef5;border-radius:12px;padding:15px;color:#23455e;text-decoration:none}.r8-action-links a>span{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#e1f4ff;color:#168bd0;font-size:22px}.r8-action-links a div{flex:1}.r8-action-links strong,.r8-action-links small{display:block}.r8-action-links small{font-size:11px;color:#7a90a2;margin-top:4px}.r8-action-links b{color:#149dba}.r8-panel-note{font-size:12px;color:#8494a4;line-height:1.6;margin-top:17px}
/* Mobile field and tenant-white-label surface remain distinct, with shared spacing/forms */
.technician-brand{background:#f4fafc!important}.technician-brand .portal-header{background:#fff!important;border-bottom:1px solid #e1ecf1!important}.technician-brand .tech-app-banner{background:linear-gradient(100deg,#00bba9,#2b8df0)!important;color:#fff!important}.technician-brand .tech-day-summary,.technician-brand .tech-empty{border-radius:17px!important;box-shadow:var(--r8-shadow)!important}.technician-brand .tech-tabs .selected{background:#e4faf5!important;color:#008c80!important}.customer-brand{background:#f6f9fc!important}.customer-brand .portal-header{background:#fff!important;border-bottom:1px solid #e4ebf1!important}.customer-brand .portal-logo{color:var(--portal-accent)!important;font-weight:800!important}.customer-brand .customer-hero{background:linear-gradient(115deg,var(--portal-accent),#e6f4ff)!important;border-radius:18px!important}.customer-brand .customer-stats article,.customer-brand .customer-panel{background:white!important;border:1px solid #e4ecf4!important;border-radius:16px!important;box-shadow:var(--r8-shadow)!important}
@media(max-width:1000px){.r8-hero-inner{grid-template-columns:1fr;padding:55px 6%}.r8-hero-visual{min-height:420px}.r8-journey{grid-template-columns:repeat(3,1fr)}.r8-office-tiles{grid-template-columns:repeat(2,1fr)}.r8-office-columns{grid-template-columns:1fr}}
@media(max-width:700px){.r8-hero-inner{padding:44px 5%}.r8-hero h1{font-size:46px!important}.r8-hero-visual{min-height:330px}.r8-device{width:90%;transform:none}.r8-phone{right:-2%;width:120px;min-height:230px}.r8-phone-task{font-size:8px}.r8-proof{grid-template-columns:1fr;gap:0}.r8-section{padding:55px 5%}.r8-journey{grid-template-columns:repeat(2,1fr)}.r8-capabilities{grid-template-columns:1fr;gap:20px}.r8-office-welcome{flex-direction:column;align-items:flex-start}.r8-office-tiles{gap:10px}.r8-office-tile{padding:15px;min-height:145px}.r8-office-tile h2{font-size:14px}.r8-office-tile p{font-size:11px}.r8-office-panel{padding:17px}.r8-panel-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:420px){.r8-journey,.r8-feature-grid{grid-template-columns:1fr}.r8-phone{display:none}.r8-hero-visual{min-height:260px}.r8-device-body{min-height:240px}.r8-device-content{padding:12px}.r8-demo-list span{font-size:9px}.r8-office-tiles{grid-template-columns:1fr 1fr}}
/* V0.02 R9 — approved-reference visual alignment. No third-party fonts, scripts or invented metrics. */
:root{--r9-navy:#06152d;--r9-midnight:#071d3c;--r9-royal:#0a74f4;--r9-cyan:#2dd8ff;--r9-paper:#f0f5fc;--r9-border:#dbe6f4}
body.public-app{background:#06162e!important;color:#12243e}
.public-app .public-top{background:rgba(3,14,34,.94)!important;border-bottom:1px solid #61baff39!important;box-shadow:0 8px 30px #0004!important}
.public-app .public-links a,.public-app .top-actions>a:not(.top-cta){color:#e7f3ff!important}
.public-app .public-links a:hover{color:#4bd8ff!important}
.public-app .public-top .top-cta{background:linear-gradient(110deg,#00a6fb,#0067ea)!important;color:white!important;border:1px solid #58c9ff!important}
.public-app .r8-hero{position:relative;isolation:isolate;background:radial-gradient(ellipse at 74% 55%,#0d77ba70,transparent 39%),radial-gradient(ellipse at 25% 20%,#173d8d65,transparent 42%),linear-gradient(123deg,#020b1f 3%,#072d5c 61%,#07122b 100%)!important;color:white!important;min-height:750px}
.public-app .r8-hero:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.25;background:repeating-linear-gradient(110deg,transparent 0 110px,#4cbdff13 111px 112px,transparent 113px 220px),radial-gradient(circle at 70% 28%,#5de8ff90 0 2px,transparent 3px),radial-gradient(circle at 91% 76%,#5de8ff90 0 2px,transparent 3px)}
.public-app .r8-hero:after{content:"";position:absolute;bottom:0;left:0;right:0;height:140px;background:linear-gradient(transparent,#06152e);pointer-events:none}
.public-app .r8-hero-inner{min-height:750px;max-width:1510px;align-items:center;gap:28px;padding-top:145px;padding-bottom:120px}
.public-app .r8-hero-copy{position:relative;z-index:2}.public-app .r8-eyebrow{color:#42d9ff!important;letter-spacing:.2em!important;font-size:11px!important;font-weight:850!important}
.public-app .r8-hero h1{font-size:clamp(48px,5.4vw,88px)!important;line-height:1.06!important;letter-spacing:-.065em!important;color:#fff!important;text-shadow:0 12px 36px #0005}
.public-app .r8-hero h1 span{background:linear-gradient(90deg,#50e2ff,#3e8bff 70%,#a9a1ff);background-clip:text;-webkit-background-clip:text;color:transparent!important}
.public-app .r8-lead{color:#c5dcf4!important;font-size:clamp(15px,1.35vw,19px)!important;max-width:590px;line-height:1.75}
.public-app .r8-primary{background:linear-gradient(105deg,#007bff,#00b9ff)!important;color:#fff!important;box-shadow:0 14px 30px #008eff55!important;border:1px solid #56c7ff!important}
.public-app .r8-secondary{background:#ffffff0d!important;color:#e9f6ff!important;border:1px solid #92caff70!important}
.public-app .r8-trust{color:#b1d3e8!important}.public-app .r8-feature-tags span{color:#b8e5ff!important;background:#0e448278!important;border-color:#5bc7ff55!important}
.public-app .r8-hero-visual{filter:drop-shadow(0 32px 45px #0007);transform:perspective(1500px) rotateY(-4deg)}
.public-app .r8-device{border:7px solid #0b203b!important;border-radius:20px!important;background:#f2f7ff!important;box-shadow:0 0 0 1px #5cbfff77,0 35px 80px #0009!important}
.public-app .r8-device-top{background:#081f42!important;color:#d9f4ff!important}.public-app .r8-device-body aside{background:#0b2e5d!important}
.public-app .r8-phone{background:#092344!important;color:#fff!important;border:5px solid #163d64!important;box-shadow:0 24px 45px #0009!important}.public-app .r8-phone h3,.public-app .r8-phone p{color:#fff!important}.public-app .r8-phone-task{background:#15436d!important;color:#fff!important}
.r9-intro-strip{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;text-align:center;background:#06152e;color:#d5edff;padding:20px;font-size:11px;letter-spacing:.15em;font-weight:850;border-top:1px solid #3f8ddc50}.r9-live-dot{display:inline-block;flex:none;width:8px;height:8px;background:#18e3b6;border-radius:50%;box-shadow:0 0 0 5px #18e3b620}.r9-intro-sep{color:#2d8dca}
.public-app .r8-proof{background:#081d3b!important;color:#fff!important;border-color:#225b94!important}.public-app .r8-proof b{color:#fff!important}.public-app .r8-proof span{color:#a8c8e9!important}
.public-app .r8-section{background:#f6f9ff!important}.public-app .r8-section:nth-of-type(even){background:#eaf2fc!important}.public-app .r8-section h2{color:#0b2444!important}.public-app .r8-conversion{background:linear-gradient(115deg,#061c42,#08599d)!important;color:white!important}.public-app .r8-conversion h2,.public-app .r8-conversion p{color:white!important}
.public-app .r8-journey article,.public-app .r8-feature-grid article{border:1px solid #dce8f6!important;box-shadow:0 12px 28px #123d6510!important;border-radius:17px!important}
/* Core: restore rich midnight shell and improve information hierarchy */
.core-app{background:#edf3fb!important}.core-app .core-top{background:linear-gradient(100deg,#06162f,#0a3465)!important;border-bottom:2px solid #127fe6!important;color:white!important;box-shadow:0 8px 26px #071b3830!important}
.core-app .core-top a,.core-app .core-top .core-platform-label,.core-app .core-top .user-chip{color:#e7f5ff!important}.core-app .core-nav{background:linear-gradient(180deg,#061b38,#092b54 75%,#05172f)!important;border-right:1px solid #245b8a!important}
.core-app .core-nav .nav-link,.core-app .core-nav .nav-caption,.core-app .core-nav .nav-subitems a{color:#c4dff5!important}.core-app .core-nav .nav-link.active,.core-app .core-nav .nav-link:hover{background:#0c69c7!important;color:#fff!important}.core-app .core-main{background:radial-gradient(circle at 90% 0%,#dbeaff,#f0f5fc 48%)!important}
.core-app .core-heading h1{color:#0b2345!important;font-size:clamp(29px,3vw,43px)!important}.core-app .stat-card{border:1px solid #d5e4f5!important;border-top:4px solid #1789ff!important;border-radius:15px!important;box-shadow:0 14px 28px #183f6511!important}
.core-app .stat-card:nth-child(2){border-top-color:#13c3a6!important}.core-app .stat-card:nth-child(3){border-top-color:#f0ac3d!important}.core-app .stat-card:nth-child(4){border-top-color:#946cf6!important}
.core-app .panel{border-radius:16px!important;border:1px solid #dce7f3!important;box-shadow:0 14px 28px #183f650d!important}.r9-command-bar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:15px 20px;margin:20px 0;background:linear-gradient(100deg,#092954,#0b4784);color:#d6edff;border-radius:12px;font-size:11px;font-weight:850;letter-spacing:.13em}.r9-command-bar>span{display:flex;align-items:center;gap:15px}.r9-command-bar>div{display:flex;gap:10px;flex-wrap:wrap}.r9-command-bar a{background:#ffffff15;border:1px solid #ffffff35;padding:9px 14px;border-radius:8px;color:white;text-decoration:none;font-size:12px;letter-spacing:0}
/* Office: polished dark navigation and command dashboard; modules remain truthfully unavailable. */
.office-brand{background:#edf3fa!important}.office-brand .portal-header{background:linear-gradient(105deg,#06152e,#0b4076)!important;color:white!important;border-bottom:2px solid #168eff!important;box-shadow:0 8px 22px #08234530!important}
.office-brand .portal-header a,.office-brand .portal-header-name,.office-brand .portal-header-actions{color:#e4f5ff!important}.office-brand .office-side{background:linear-gradient(180deg,#071d3b,#092d56)!important;border-right:1px solid #245481!important}
.office-brand .office-side-heading,.office-brand .office-side-bottom{color:#7fbbec!important}.office-brand .office-side-link{color:#d0e5fa!important;border-color:transparent!important}.office-brand .office-side-link.active{background:linear-gradient(100deg,#096de0,#1197f4)!important;color:white!important;box-shadow:0 8px 18px #0050b344!important}.office-brand .office-side-link:not(.disabled):hover{background:#184878!important;color:#fff!important}.office-brand .office-side-link.disabled{color:#8ea8c6!important}.office-brand .office-side-link.disabled small{color:#81a0c0!important}
.office-brand .office-main{background:radial-gradient(ellipse at 85% 0%,#dcecff,#f2f6fc 45%)!important}.office-brand .r8-office-welcome{background:linear-gradient(112deg,#072653,#0753a0)!important;border:1px solid #2a81c8!important;color:white!important;border-radius:17px!important;box-shadow:0 16px 35px #082c6030!important;padding:30px!important}.office-brand .r8-office-welcome h1,.office-brand .r8-office-welcome p{color:white!important}.office-brand .r8-office-welcome .r8-eyebrow{color:#7ee5ff!important}.office-brand .r8-office-cta{background:#fff!important;color:#0759b4!important}
.r9-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:25px 0 12px}.r9-workspace-head h2{font-size:24px;margin:0 0 5px}.r9-workspace-head p{color:#627d9c;margin:0;font-size:13px}.r9-secure-label{background:#d9f5ef;color:#11695a;border-radius:999px;padding:9px 13px;font-size:11px;font-weight:800;white-space:nowrap}
.office-brand .r8-office-tile{border:1px solid #dce7f3!important;border-radius:15px!important;box-shadow:0 9px 25px #143a5c10!important}.office-brand .r8-office-tile small{letter-spacing:.1em!important}.office-brand .r8-office-panel{border:1px solid #dce7f3!important;border-radius:16px!important;box-shadow:0 12px 28px #143a5c0d!important}
/* Technician: mobile-first dark identity with accessible light work cards. */
.technician-brand{background:#edf5fb!important}.technician-brand .portal-header{background:linear-gradient(105deg,#071b37,#0c4b80)!important;color:#fff!important;border-bottom:3px solid #22c4ff!important}.technician-brand .portal-header a,.technician-brand .portal-header-actions{color:#fff!important}
.technician-brand .tech-app-banner{background:linear-gradient(105deg,#052e5d,#078ac0)!important;color:#fff!important;border-radius:12px!important;padding:16px!important;letter-spacing:.13em!important}.technician-brand .tech-title h1{color:#0c294a!important;font-size:36px!important}.technician-brand .tech-tabs{background:#dcebf7!important}.technician-brand .tech-tabs .selected{background:#086fd7!important}.technician-brand .tech-day-summary,.technician-brand .tech-empty{border:1px solid #d7e7f4!important;border-radius:17px!important;box-shadow:0 12px 28px #0c365b14!important}.technician-brand .tech-bottom{background:#061f40!important;border-color:#1b5588!important}.technician-brand .tech-bottom a,.technician-brand .tech-bottom span{color:#b6d7f1!important}.technician-brand .tech-bottom .active{color:#44d8ff!important}
/* White-label customer surface uses tenant name and accent, never the SERS logo. */
.customer-brand{background:#eef3f8!important}.customer-brand .portal-header{border-bottom:3px solid var(--portal-accent)!important}.customer-brand .customer-hero{background:radial-gradient(circle at 80% 20%,#ffffff35,transparent 35%),linear-gradient(105deg,var(--portal-accent),#071e3c)!important;border-radius:20px!important;padding:48px!important;box-shadow:0 16px 35px #09284425!important}.customer-brand .customer-stats article,.customer-brand .customer-panel{border-radius:15px!important;box-shadow:0 10px 28px #183e5b0c!important}
@media(max-width:1000px){.public-app .r8-hero-inner{min-height:0;padding-top:150px}.public-app .r8-hero-visual{transform:none}.r9-workspace-head{align-items:flex-start}}
@media(max-width:700px){.public-app .r8-hero{min-height:0}.public-app .r8-hero-inner{padding-top:125px;padding-bottom:55px}.public-app .r8-hero h1{font-size:clamp(39px,9vw,57px)!important}.r9-intro-strip{font-size:9px;gap:9px}.r9-workspace-head{flex-direction:column}.office-brand .office-side{background:#071e3b!important}.r9-command-bar{align-items:flex-start}.customer-brand .customer-hero{padding:26px!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* V0.02 R10 — structural design work, not a claim of feature completeness. */
.public-app .r8-hero{overflow:hidden!important;min-height:790px!important;background:#03132c!important}
.public-app .r10-harbour-art{position:absolute;inset:0;z-index:-1;background:url('/assets/harbour-skyline.svg') center 44%/cover no-repeat;opacity:.68;pointer-events:none}
.public-app .r8-hero:before{z-index:0!important;background:linear-gradient(90deg,#020b1ff5 0%,#02112cde 37%,#03163388 76%,#04172c77)!important;opacity:1!important;mask-image:none!important}
.public-app .r8-hero-inner{position:relative;z-index:1;max-width:1440px!important;min-height:790px!important;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)!important;gap:25px!important}
.public-app .r8-hero-copy{padding:45px 0 80px!important}.public-app .r8-hero h1{font-size:clamp(50px,5.6vw,90px)!important;max-width:800px}
.public-app .r8-hero-visual{transform:perspective(1400px) rotateY(-6deg) translateY(26px)!important}
.public-app .r8-device{overflow:hidden}.r10-preview-flag{position:absolute;z-index:3;right:12px;bottom:12px;padding:6px 10px;background:#061d3c;color:#b5eaff;border-radius:6px;font-size:9px;letter-spacing:.1em;font-weight:800}
.r10-value-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:#061a38;color:white;border-top:1px solid #2672a2;border-bottom:1px solid #2672a2;padding:0 max(25px,calc((100vw - 1360px)/2))}
.r10-value-rail>div{display:flex;flex-direction:column;gap:7px;padding:27px 28px;border-right:1px solid #205076}.r10-value-rail>div:last-child{border:0}.r10-value-rail strong{font-size:12px;color:#4ed9ff;letter-spacing:.14em}.r10-value-rail span{color:#c2d8ee;font-size:13px}
.r10-showcase{padding:90px max(25px,calc((100vw - 1320px)/2));background:linear-gradient(135deg,#06152e,#103967);color:#fff}.r10-showcase-heading{max-width:760px;margin-bottom:35px}.r10-showcase-heading h2{font-size:clamp(32px,4vw,56px);color:white}.r10-showcase-heading>p:last-child{color:#b5d3f0}.r10-showcase-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.r10-showcase-grid article{display:flex;flex-direction:column;min-height:245px;border:1px solid #3b7bad;border-radius:16px;background:linear-gradient(150deg,#154b80,#082448);padding:24px;box-shadow:0 18px 36px #0003}.r10-showcase-grid article b{font-size:10px;letter-spacing:.14em;color:#51ddff}.r10-showcase-grid article h3{font-size:23px;color:#fff;margin:25px 0 10px}.r10-showcase-grid article p{font-size:13px;color:#c1dcf3}.r10-showcase-grid article span{margin-top:auto;color:#6ae3ff;font-size:12px;font-weight:750}
.r10-core-mast{background:linear-gradient(105deg,#061c3c,#1262a6);color:#d9edff;border:1px solid #267fc5;border-radius:15px;padding:21px 25px;margin-bottom:22px;display:flex;justify-content:space-between;gap:16px;align-items:center;letter-spacing:.12em;font-size:11px}.r10-core-mast strong{font-size:12px;color:#7be5ff}.r10-command-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:25px 0}.r10-command-sections a{position:relative;display:flex;flex-direction:column;gap:10px;padding:24px;min-height:160px;background:linear-gradient(135deg,#082447,#0e4981);color:#fff;text-decoration:none;border-radius:14px;border:1px solid #2c7db8}.r10-command-sections a span{font-size:10px;color:#74e0ff;letter-spacing:.12em}.r10-command-sections a strong{font-size:20px}.r10-command-sections a small{color:#c5def3}.r10-command-sections a b{position:absolute;right:18px;top:16px;color:#68ddff}
.r10-office-toolbelt{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:22px 0}.r10-office-toolbelt a{display:flex;flex-direction:column;gap:8px;min-height:142px;padding:25px 28px;background:linear-gradient(115deg,#08264c,#0a5692);border:1px solid #338ec4;border-radius:15px;color:white;text-decoration:none;box-shadow:0 13px 25px #0b3c671b}.r10-office-toolbelt span{font-size:10px;color:#6bdeff;letter-spacing:.13em;font-weight:800}.r10-office-toolbelt strong{font-size:20px}.r10-office-toolbelt small{color:#c9e9ff}
@media(max-width:1000px){.public-app .r8-hero-inner{grid-template-columns:1fr!important;gap:0!important}.public-app .r8-hero-visual{transform:none!important}.r10-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.r10-command-sections{grid-template-columns:1fr}}
@media(max-width:650px){.r10-value-rail{grid-template-columns:1fr}.r10-value-rail>div{padding:18px 24px;border-right:0;border-bottom:1px solid #205076}.r10-showcase{padding:55px 20px}.r10-showcase-grid,.r10-office-toolbelt{grid-template-columns:1fr}.r10-core-mast{flex-direction:column;align-items:flex-start}.public-app .r8-hero-visual{max-width:100%}}

/* V0.02 R11 — reference-led five-interface visual system. Existing authentication and data logic unchanged. */
:root{--v11-ink:#102846;--v11-blue:#087cf5;--v11-border:#e1ebf5;--v11-shadow:0 12px 34px rgba(11,40,81,.075)}
.core-app .core-top{background:linear-gradient(100deg,#04152e,#0b2a4c 80%);box-shadow:0 4px 22px #04132b20}
.core-app .core-nav{background:linear-gradient(180deg,#061b35,#031326);color:#eaf4ff}
.core-app .core-main{background:#f2f7fc;padding:26px 30px 40px}
.v11-page-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.v11-kicker{display:block;font-size:10px;letter-spacing:.15em;font-weight:850;color:#1683f5;margin-bottom:8px;text-transform:uppercase}
.v11-page-intro h1{font-size:clamp(25px,2.1vw,35px);color:#122a49;letter-spacing:-.045em;margin:0 0 5px}.v11-page-intro p{margin:0;color:#61748d}
.v11-main-action{padding:11px 17px;background:#0780f8;border-radius:10px;color:#fff!important;font-weight:750;text-decoration:none;white-space:nowrap}
.v11-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:17px}
.v11-metric{display:flex;align-items:center;gap:12px;padding:18px 16px;border-radius:12px;background:white;border:1px solid var(--v11-border);text-decoration:none;color:var(--v11-ink);min-width:0;box-shadow:var(--v11-shadow)}
.v11-metric-symbol{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;font-size:22px;flex-shrink:0}.v11-metric-symbol.blue{background:#e5f3ff;color:#0780f8}.v11-metric-symbol.green{background:#dcfae9;color:#00a86b}.v11-metric-symbol.amber{background:#fff0d9;color:#eb9800}.v11-metric-symbol.violet{background:#eee9ff;color:#8658e6}
.v11-metric small,.v11-metric span:not(.v11-metric-symbol){display:block;font-size:11px;color:#71849b}.v11-metric strong{display:block;font-size:27px;line-height:1.2;color:#0a294b;margin:3px 0}
.v11-core-grid{display:grid;grid-template-columns:1fr 1.12fr;gap:16px}.v11-surface{background:white;border:1px solid var(--v11-border);border-radius:14px;padding:21px;box-shadow:var(--v11-shadow);min-width:0}.v11-surface-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.v11-surface-head h2{font-size:17px;color:#122a49;margin:0}.v11-surface-head a{color:#087cf5;text-decoration:none;font-size:12px;font-weight:700}
.v11-tenant-breakdown{display:flex;justify-content:center;align-items:center;gap:35px;min-height:220px}.v11-donut{height:175px;width:175px;border-radius:50%;background:conic-gradient(#0780f8 var(--active-share),#dce9f7 0);display:grid;place-items:center;flex-shrink:0}.v11-donut>div{height:116px;width:116px;border-radius:50%;background:#fff;display:grid;align-content:center;justify-items:center}.v11-donut strong{font-size:30px;color:#142d50}.v11-donut small{font-size:12px;color:#71849b}.v11-donut-legend{display:grid;gap:16px;min-width:155px}.v11-donut-legend>span{display:flex;align-items:center;gap:8px;font-size:12px;color:#5b6d83}.v11-donut-legend b{margin-left:auto;color:#102846}.v11-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.v11-dot.green{background:#0780f8}.v11-dot.blue{background:#dce9f7}.v11-honest-note{color:#8391a3;font-size:11px;margin:0}
.v11-activity-list{display:grid}.v11-activity-row{display:flex;align-items:center;gap:12px;padding:12px 2px;border-bottom:1px solid #edf2f8}.v11-activity-row:last-child{border:0}.v11-activity-icon{background:#e3f7f1;color:#009a71;border-radius:9px;padding:10px}.v11-activity-row>div{min-width:0;flex:1}.v11-activity-row strong,.v11-activity-row small{display:block;overflow-wrap:anywhere}.v11-activity-row strong{font-size:12px}.v11-activity-row small{color:#8291a2;font-size:11px}.v11-empty-inline{color:#75869a;font-size:13px}
.v11-core-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-top:17px}.v11-core-tools a{background:#fff;border:1px solid var(--v11-border);padding:15px;border-radius:12px;display:grid;grid-template-columns:34px 1fr;column-gap:8px;text-decoration:none;box-shadow:var(--v11-shadow)}.v11-core-tools a>span{grid-row:span 2;background:#eaf4ff;color:#087cf5;border-radius:9px;display:grid;place-items:center}.v11-core-tools strong{color:#16324f;font-size:12px}.v11-core-tools small{font-size:10px;color:#7a8ba0}.v11-build-disclosure{font-size:11px;color:#7a8ba0;margin-top:20px}
.office-brand .office-main{background:#f1f7fd;padding:24px 25px}.v11-office-hero{background:linear-gradient(100deg,#062650,#0d5aa0);color:#fff;border-radius:13px;padding:26px 28px;display:flex;align-items:center;justify-content:space-between;gap:15px;position:relative;overflow:hidden;margin-bottom:20px}.v11-office-hero:after{content:'';position:absolute;right:10%;top:-70%;width:380px;height:380px;border:1px solid #ffffff20;border-radius:50%;pointer-events:none}.v11-office-hero .v11-kicker{color:#80ddff}.v11-office-hero h1{font-size:30px;color:#fff;margin:0 0 6px}.v11-office-hero p{color:#d4e8ff;margin:0}.v11-office-hero a{background:#fff;color:#0b4b89;border-radius:9px;padding:12px 17px;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap;z-index:1}
.v11-office-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.v11-office-metric{background:#fff;border:1px solid var(--v11-border);border-radius:12px;padding:17px 14px;display:flex;align-items:center;gap:10px}.v11-office-metric>span{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:11px;font-size:21px;background:#e2f8ee;color:#02aa75}.v11-office-metric.sky>span{background:#e5f3ff;color:#1683f5}.v11-office-metric.rose>span{background:#fff0ed;color:#f45d51}.v11-office-metric.amber>span{background:#fff4e0;color:#e6a021}.v11-office-metric small,.v11-office-metric em{display:block;color:#788aa0;font-size:10px;font-style:normal}.v11-office-metric strong{font-size:26px;color:#0d2c51;display:block;line-height:1.15;margin:3px 0}.v11-office-columns{display:grid;grid-template-columns:1.15fr 1fr;gap:16px}.v11-subtle-tag{background:#eaf4ff;border-radius:8px;color:#2b80cc;padding:7px;font-size:10px}.v11-schedule-placeholder{border:1px dashed #c4d9ef;border-radius:12px;background:#f8fbff;min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px}.v11-schedule-placeholder>span{font-size:27px;color:#0780f8}.v11-schedule-placeholder h3{font-size:14px;color:#183453;margin:8px 0}.v11-schedule-placeholder p{max-width:360px;color:#7489a1;font-size:12px}.v11-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.v11-quick-actions a{background:#eaf4ff;border-radius:10px;min-height:112px;display:grid;place-items:center;align-content:center;text-decoration:none;color:#123657;gap:10px}.v11-quick-actions a>span{font-size:25px;color:#0780f8}.v11-quick-actions strong{font-size:12px}.v11-module-status{margin-top:20px;border-top:1px solid #eaf0f7;padding-top:15px}.v11-module-status strong{font-size:12px}.v11-module-status p{font-size:11px;color:#778aa0}
.technician-brand .portal-main{max-width:520px;margin:0 auto;padding:18px 12px 30px;background:#e9f3fd;min-height:calc(100vh - 100px)}.v11-tech-frame{background:#fff;border-radius:19px;overflow:hidden;box-shadow:0 20px 45px #0a294225;min-height:650px}.v11-tech-top{background:#082f5e;color:#d2e8ff;display:flex;justify-content:space-between;font-size:10px;letter-spacing:.06em;padding:13px 17px}.v11-tech-heading{padding:21px 20px 15px;display:flex;justify-content:space-between;align-items:center}.v11-tech-heading h1{font-size:26px;color:#0b2a4b;margin:0}.v11-tech-heading p{margin:4px 0;color:#8092a8;font-size:12px}.v11-tech-plus{background:#0780f8;color:#fff;border-radius:9px;font-size:26px;width:36px;height:36px;display:grid;place-items:center;opacity:.5}.v11-tech-tabs{display:flex;background:#edf4fc;margin:0 20px 20px;padding:4px;border-radius:9px}.v11-tech-tabs span{flex:1;text-align:center;padding:10px 4px;font-size:12px;color:#74879e}.v11-tech-tabs .selected{background:#0780f8;color:#fff;border-radius:7px;font-weight:750}.v11-tech-day{margin:0 20px 10px;display:flex;justify-content:space-between;font-size:12px;color:#163453}.v11-tech-day span{color:#8697ab}.v11-tech-empty{margin:0 20px 16px;min-height:270px;border:1px dashed #c5d9ed;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px}.v11-tech-empty>span{font-size:30px;color:#0780f8}.v11-tech-empty h2{font-size:16px;margin:9px 0;color:#183858}.v11-tech-empty p{font-size:12px;color:#77899d;max-width:260px}.v11-tech-utility{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:0 20px 20px}.v11-tech-utility>div{background:#edf6ff;border-radius:9px;padding:16px 0;text-align:center;font-size:19px;color:#0d75da}.v11-tech-utility small{display:block;color:#163858;font-size:11px;margin-top:7px}.v11-tech-bottom{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid #e7eef6;padding:12px 8px}.v11-tech-bottom>a,.v11-tech-bottom>span{display:grid;justify-items:center;gap:3px;text-decoration:none;font-size:20px;color:#93a3b7}.v11-tech-bottom .active{color:#087cf5}.v11-tech-bottom small{font-size:9px}
.customer-brand .portal-main{background:#f5f9fc;max-width:1250px;margin:auto}.v11-customer-hero{background:linear-gradient(100deg,#0c3b49dd,#11344b44),linear-gradient(130deg,#1d4657,#77a3a0 55%,#e3f0e7);border-radius:12px;min-height:190px;display:flex;align-items:center;padding:32px;color:#fff}.v11-customer-hero span{font-size:11px;letter-spacing:.12em}.v11-customer-hero h1{color:#fff;font-size:30px;margin:9px 0}.v11-customer-hero p{color:#e5f6f5}.v11-customer-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:-20px 20px 20px;position:relative}.v11-customer-metrics article{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e5edf2;border-radius:12px;padding:15px;box-shadow:var(--v11-shadow)}.v11-customer-metrics article>span{background:#e5f9ec;color:#00a365;padding:12px;border-radius:9px}.v11-customer-metrics strong{display:block;font-size:24px;color:#193c46}.v11-customer-metrics small{font-size:11px;color:#728c95}.v11-customer-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px}.v11-customer-empty{min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px}.v11-customer-empty>span{font-size:27px;color:var(--portal-accent)}.v11-customer-empty h3{font-size:15px;color:#1b404d}.v11-customer-empty p{font-size:12px;color:#788e9b;max-width:320px}.v11-customer-support{background:#eaf5f5;border-radius:12px;margin-top:15px;padding:18px 22px}.v11-customer-support h2{font-size:16px;color:#153b44;margin:0 0 5px}.v11-customer-support p{font-size:12px;color:#69828b;margin:0}
@media(max-width:1050px){.v11-metrics,.v11-office-metrics,.v11-core-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.v11-core-grid,.v11-office-columns{grid-template-columns:1fr}}
@media(max-width:650px){.core-app .core-main,.office-brand .office-main{padding:15px}.v11-page-intro,.v11-office-hero{flex-direction:column;align-items:flex-start}.v11-metrics,.v11-office-metrics,.v11-core-tools,.v11-customer-metrics,.v11-customer-columns{grid-template-columns:1fr 1fr}.v11-tenant-breakdown{flex-direction:column;gap:16px}.v11-office-hero h1{font-size:25px}.v11-customer-hero{padding:20px}.v11-customer-metrics{margin:12px 0}.v11-quick-actions{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.v11-metrics,.v11-core-tools,.v11-office-metrics,.v11-customer-metrics,.v11-customer-columns{grid-template-columns:1fr}.v11-metric{padding:12px}.v11-quick-actions{grid-template-columns:1fr 1fr}}

/* V0.02 R12: approved five-interface visual reference implementation — public site */
.public-app{background:#fff!important;color:#071b40!important}
.public-app .public-top{position:relative!important;background:linear-gradient(105deg,#effaff 0%,#ffffff 43%,#c2eeff 100%)!important;backdrop-filter:none!important;border-bottom:1px solid #e0effb!important}
.public-app .public-top-inner{max-width:1536px!important;min-height:76px!important;padding:9px 4.5%!important}
.public-app .public-links{gap:clamp(10px,2vw,30px)!important}
.public-app .public-links a,.public-app .top-actions>a{color:#061b40!important;font-weight:650!important}
.public-app .brand img{width:clamp(180px,19vw,310px)!important}
.public-app .top-actions .top-cta{background:linear-gradient(100deg,#1352f7,#00d4ed)!important;color:white!important;border:0!important;padding:11px 18px!important;border-radius:9px!important}
.public-app .top-actions .trial-closed{background:#d9e7f3!important;color:#57718d!important;border:1px solid #bfd5e8!important}
.public-app .public-main{background:#fff!important}
.r12-home{font-family:var(--sers-font-family);overflow:hidden}
.r12-hero{position:relative;isolation:isolate;min-height:465px;background:linear-gradient(105deg,#fff 0%,#f4fcff 38%,#d3f3ff 100%);overflow:hidden}
.r12-hero:before{content:'';position:absolute;inset:0;background:url('/assets/approved/approved-hero-reference.webp') center 45%/cover no-repeat;opacity:.32;z-index:-1}
.r12-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#ffffffec 0%,#fffffff0 27%,#ffffffb0 43%,#ffffff05 75%);z-index:-1}
.r12-hero-inner{max-width:1536px;margin:auto;padding:24px 4.5% 24px;display:grid;grid-template-columns:42% 58%;align-items:center;min-height:465px}
.r12-copy{position:relative;z-index:2}.r12-eyebrow{font-size:12px;letter-spacing:.2em;color:#0751ca;font-weight:850;margin:0 0 13px}
.r12-copy h1{font-size:clamp(36px,3.6vw,64px)!important;line-height:1.04;letter-spacing:-.065em;color:#071b40!important;margin:0 0 16px;font-weight:850}
.r12-copy h1 span{color:#008df1;background:linear-gradient(100deg,#1352f7,#00bfe9);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.r12-intro{font-size:clamp(13px,1.1vw,17px);line-height:1.5;color:#142a48;max-width:550px;margin:0 0 22px}
.r12-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0 0 22px;max-width:600px}
.r12-benefits>div{font-size:clamp(10px,.9vw,14px);line-height:1.25;color:#061c42;font-weight:750;border-right:1px solid #c9d9ea;padding:3px 8px;text-align:center}
.r12-benefits>div:last-child{border:0}.r12-benefits b{display:block;color:#096dff;font-size:27px;line-height:1.4;margin-bottom:3px}
.r12-actions{display:flex;gap:13px;align-items:center;flex-wrap:wrap}.r12-cta,.r12-demo{display:inline-flex;justify-content:center;align-items:center;gap:15px;padding:12px 23px;border-radius:11px;font-size:14px;font-weight:800;text-decoration:none;white-space:nowrap}
.r12-cta{background:linear-gradient(100deg,#1655ff,#00c8e9);color:#fff;box-shadow:0 7px 16px #075bf52b}.r12-demo{border:1px solid #94b3d9;background:#fff;color:#0756d7}.r12-disabled{background:#e2edf7;color:#647c94;box-shadow:none}
.r12-footnote{font-size:11px;color:#3d5470;margin:15px 0 0}.r12-footnote span{color:#00bf78;margin-left:6px}
.r12-visual{position:relative;z-index:1;align-self:stretch;display:flex;align-items:center;margin-right:-5vw;margin-left:-1vw}.r12-visual img{width:100%;height:auto;max-height:430px;object-fit:contain;filter:drop-shadow(0 12px 16px #174b6b26)}
.r12-connection{position:relative;text-align:center;margin:-3px auto 0;padding:9px 15px 16px;background:linear-gradient(90deg,#1262ed,#6a2de2,#03b6a2);color:white}
.r12-connection h2{font-size:16px;letter-spacing:.04em;margin:0}.r12-connection p{font-size:12px;margin:3px 0 0}
.r12-portals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;max-width:1600px;margin:auto;padding:18px 16px 10px}
.r12-portal{min-width:0;text-align:center}.r12-portal-title{display:flex;align-items:center;text-align:left;gap:9px;padding:9px 8px;color:white;border-radius:9px 9px 0 0;min-height:60px}.r12-portal-title strong{background:#fff;color:#167bd8;min-width:33px;height:33px;border-radius:50%;display:grid;place-items:center;font-size:22px}.r12-portal-title b{display:block;font-size:clamp(10px,1.05vw,16px);line-height:1.2}.r12-portal-title small{display:block;font-size:clamp(8px,.75vw,11px);line-height:1.3}.r12-portal.public .r12-portal-title{background:linear-gradient(110deg,#00b9c8,#1974e9)}.r12-portal.core .r12-portal-title{background:linear-gradient(110deg,#5740d9,#b344e8)}.r12-portal.office .r12-portal-title{background:linear-gradient(110deg,#00ad81,#02d97a)}.r12-portal.technician .r12-portal-title{background:linear-gradient(110deg,#ffae19,#fc4c2d)}.r12-portal.customer .r12-portal-title{background:linear-gradient(110deg,#ea3388,#f44b7c)}
.r12-portal img{width:100%;height:clamp(190px,25vw,360px);object-fit:contain;object-position:center top;background:#f8fbff;border:1px solid #d9e5f3;border-top:0;border-radius:0 0 8px 8px}.r12-portal p{font-size:12px;line-height:1.4;color:#344b69;margin:12px auto;max-width:240px}
.r12-disclosure{font-size:11px;color:#63748b;text-align:center;padding:6px 16px 26px;margin:0}
.r12-lower{padding:65px max(24px,calc((100vw - 1150px)/2));background:#f1f8ff;display:flex;justify-content:space-between;gap:30px;align-items:center}.r12-lower h2{font-size:clamp(25px,2.8vw,39px);margin:0 0 14px}.r12-lower p{color:#4b617b;max-width:580px}.r12-industry-tags{display:flex;flex-wrap:wrap;gap:10px;max-width:480px}.r12-industry-tags span{background:white;border:1px solid #d1e2f4;padding:10px 12px;border-radius:8px;color:#0753a6;font-weight:700;font-size:12px}.r12-bottom{display:block;text-align:center;background:#fff;border-top:1px solid #e4edf7;padding:45px 24px}.r12-bottom p{margin:0 auto 16px}.r12-bottom .r12-cta{margin-top:12px}
@media(max-width:1100px){.r12-hero-inner{grid-template-columns:48% 52%}.r12-copy h1{font-size:clamp(33px,4.3vw,52px)!important}.r12-benefits b{font-size:22px}.r12-portal-title{gap:5px}.r12-portal-title strong{min-width:27px;height:27px;font-size:18px}}
@media(max-width:780px){.public-app .public-top-inner{padding:12px 20px!important}.r12-hero-inner{grid-template-columns:1fr;padding:30px 24px}.r12-copy{max-width:640px}.r12-visual{margin:12px -24px -20px;max-width:780px}.r12-visual img{max-height:370px}.r12-portals{grid-template-columns:repeat(2,minmax(0,1fr))}.r12-portal:last-child{grid-column:1/-1;max-width:380px;margin:auto}.r12-portal img{height:320px}.r12-portal-title b{font-size:14px}.r12-portal-title small{font-size:11px}.r12-lower{display:block}.r12-industry-tags{margin-top:20px}}
@media(max-width:480px){.r12-copy h1{font-size:clamp(36px,10vw,49px)!important}.r12-benefits{grid-template-columns:repeat(2,1fr);gap:12px}.r12-benefits>div:nth-child(2){border:0}.r12-hero-inner{padding:24px 16px}.r12-portals{grid-template-columns:1fr;padding:15px}.r12-portal:last-child{grid-column:auto}.r12-portal img{height:370px}.r12-portal-title b{font-size:16px}.r12-visual{margin:15px -16px -15px}.r12-footnote{line-height:1.8}}

/* R13 standalone marketing site. */
.public-app .public-top{background:#ffffff!important;border-bottom:1px solid #dae8f5!important}
.public-app .public-links a,.public-app .top-actions>a{color:#0a2449!important}
.r13-home{font-family:var(--sers-font-family);color:#081d42;overflow:hidden}
.r13-hero{background:linear-gradient(110deg,#fff 0%,#f4fbff 52%,#b8e8ff 100%)}
.r13-hero-inner{max-width:1460px;margin:auto;padding:65px 5%;display:grid;grid-template-columns:45% 55%;align-items:center;gap:1%;min-height:555px}
.r13-eyebrow{font-size:12px;letter-spacing:.16em;color:#0755c5;font-weight:850;margin:0 0 15px}
.r13-copy h1{font-size:clamp(40px,4vw,69px)!important;line-height:1.08;letter-spacing:-.05em;color:#061b3b!important;margin:0 0 22px}
.r13-copy h1 span{background:linear-gradient(90deg,#1755f5,#00b8e5);-webkit-background-clip:text;background-clip:text;color:transparent}
.r13-intro{font-size:17px;line-height:1.65;color:#3e536a;max-width:590px}
.r13-benefits{display:grid;grid-template-columns:repeat(4,1fr);margin:25px 0;gap:5px}.r13-benefits div{border-right:1px solid #c8d9e8;padding:5px 7px;text-align:center;font-size:12px}.r13-benefits div:last-child{border:0}.r13-benefits span{display:block;color:#126ded;font-size:28px}.r13-benefits strong{display:block}
.r13-actions{display:flex;gap:12px;flex-wrap:wrap}.r13-cta,.r13-demo{display:inline-flex;padding:13px 22px;border-radius:10px;text-decoration:none;font-size:14px;font-weight:800;align-items:center;justify-content:center}.r13-cta{background:linear-gradient(95deg,#145aff,#00c2e6);color:#fff}.r13-demo{background:#fff;border:1px solid #8fb3da;color:#0759d3}.r13-disabled{background:#e4ecf5;color:#60738a}.r13-footnote{font-size:11px;color:#52647a;margin-top:18px}.r13-footnote span{color:#00b57a;margin-left:6px}
.r13-visual img{display:block;width:100%;height:auto;filter:drop-shadow(0 20px 20px #173a6228)}
.r13-features,.r13-industry,.r13-callout,.r13-about,.r13-contact{padding:70px 5%}.r13-section-head,.r13-callout,.r13-about,.r13-contact{text-align:center}.r13-section-head{max-width:750px;margin:0 auto 35px}.r13-home h2{font-size:clamp(27px,3vw,40px);line-height:1.2;color:#071d3d;margin:0 0 16px}.r13-home section p{line-height:1.65}.r13-feature-grid{max-width:1250px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.r13-feature-grid article{border:1px solid #dbe9f7;background:#f5faff;border-radius:15px;padding:25px}.r13-feature-grid article span{font-size:31px;color:#0878ed}.r13-feature-grid h3{margin:15px 0 8px;font-size:17px}.r13-feature-grid p{font-size:13px;color:#52657a}.r13-feature-note{text-align:center;font-size:12px;color:#64788a}
.r13-industry{background:#eaf6ff;display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}.r13-tags{display:flex;flex-wrap:wrap;gap:12px}.r13-tags span{padding:13px 16px;border-radius:9px;background:#fff;border:1px solid #d0e4f3;color:#0754a5;font-weight:750;font-size:13px}.r13-callout .r13-actions{justify-content:center;margin-top:20px}.r13-about{background:#f5faff}.r13-contact a{color:#075ce5;font-weight:750}
@media(max-width:900px){.r13-hero-inner{grid-template-columns:1fr}.r13-visual{max-width:700px;margin:30px auto 0}.r13-feature-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.r13-hero-inner{padding:35px 20px}.r13-benefits{grid-template-columns:repeat(2,1fr)}.r13-benefits div:nth-child(2){border:0}.r13-feature-grid,.r13-industry{grid-template-columns:1fr}.r13-home section{padding:50px 20px}.r13-copy h1{font-size:clamp(38px,10vw,53px)!important}}

/* V0.02 R14: tenant office dashboard — dedicated approved office composition */
.office-brand .office-main{background:#eef5fb;padding:24px clamp(18px,2.6vw,46px) 55px}
.office-brand .office-side{background:#061e40}
.office-brand .office-side-link.active{background:#096ded;border-left:3px solid #10dcb1}
.r14-office{max-width:1660px;margin:auto;color:#0c2548}
.r14-office *{box-sizing:border-box}
.r14-breadcrumb{display:flex;align-items:center;gap:10px;color:#39719d;font-size:10px;font-weight:850;letter-spacing:.13em;margin-bottom:16px}
.r14-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#03c99b;box-shadow:0 0 0 4px #03c99b18}
.r14-sep{color:#9fb6ca}.r14-date{margin-left:auto;color:#7289a1;font-weight:600;letter-spacing:0;font-size:12px}
.r14-welcome{display:flex;justify-content:space-between;align-items:center;gap:25px;position:relative;overflow:hidden;background:linear-gradient(105deg,#05295b 0%,#075ba7 100%);border-radius:16px;padding:32px 36px;color:#fff;min-height:175px;box-shadow:0 15px 32px #06437c1d}
.r14-welcome:after{content:"";position:absolute;pointer-events:none;right:9%;bottom:-45px;width:260px;height:180px;opacity:.2;background:repeating-linear-gradient(90deg,transparent 0 26px,#9dd8ff 27px 29px,transparent 30px 52px);transform:skew(-18deg)}
.r14-welcome>*{position:relative;z-index:1}.r14-kicker{font-size:10px!important;letter-spacing:.15em;font-weight:850;color:#0475b6;margin:0 0 9px!important}.r14-welcome .r14-kicker{color:#5ee9f5}
.r14-welcome h1{color:#fff!important;font-size:clamp(24px,2.4vw,39px)!important;letter-spacing:-.035em;margin:0 0 9px;line-height:1.16}.r14-welcome p:last-child{font-size:14px;color:#d5e9fa;margin:0}
.r14-welcome-action{flex-shrink:0;background:#fff;color:#0754ad;text-decoration:none;padding:13px 17px;border-radius:10px;font-size:13px;font-weight:800;box-shadow:0 8px 24px #00254a30}
.r14-section-title{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:27px 0 15px}.r14-section-title h2{margin:0;font-size:23px;letter-spacing:-.025em}.r14-live{border:1px solid #bce9db;background:#e3faf1;color:#0a7c59;border-radius:22px;padding:8px 13px;font-size:11px;font-weight:750;white-space:nowrap}
.r14-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.r14-metric{display:flex;align-items:center;gap:15px;min-height:128px;background:#fff;border:1px solid #dce9f5;border-radius:13px;padding:18px;box-shadow:0 6px 22px #123e6409}.r14-metric-icon{display:grid;place-items:center;flex:0 0 49px;height:49px;border-radius:12px;font-size:25px}.r14-metric.blue .r14-metric-icon{color:#0773ed;background:#e6f1ff}.r14-metric.green .r14-metric-icon{color:#05a779;background:#e1f9ed}.r14-metric.purple .r14-metric-icon{color:#8a4be5;background:#f1eafe}.r14-metric.red .r14-metric-icon{color:#f45b5b;background:#fff0f0}.r14-metric p{font-size:12px;color:#607992;margin:0 0 2px}.r14-metric strong{display:block;font-size:27px;line-height:1.1;color:#102d51}.r14-metric small{display:block;font-size:10px;color:#8b9eb2;margin-top:6px}
.r14-main-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:18px;margin-top:20px}.r14-panel{background:#fff;border:1px solid #dce8f4;border-radius:14px;padding:24px;box-shadow:0 8px 25px #0b38600a}.r14-panel header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:19px}.r14-panel h2{font-size:20px;margin:0;color:#0b274a}.r14-tag{font-size:10px;color:#6584a4;background:#edf5ff;padding:7px 10px;border-radius:7px}.r14-empty{min-height:280px;border:1px dashed #c3d9ed;border-radius:11px;background:linear-gradient(145deg,#f9fcff,#eff8ff);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px}.r14-empty-icon{font-size:37px;color:#1b9bdb}.r14-empty h3{font-size:16px;margin:12px 0 4px}.r14-empty p{font-size:12px;max-width:400px;line-height:1.7;color:#7189a0;margin:0}.r14-actions{display:grid;gap:12px}.r14-actions a{display:flex;align-items:center;gap:12px;text-decoration:none;color:#102d51;background:#f4f9ff;border:1px solid #e0ebf5;border-radius:10px;padding:15px}.r14-actions a:hover{background:#e7f4ff}.r14-actions a>span{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;background:#e0f2ff;color:#0879da;border-radius:9px;font-size:22px}.r14-actions a div{flex:1}.r14-actions strong,.r14-actions small{display:block}.r14-actions strong{font-size:13px}.r14-actions small{font-size:11px;color:#71869d;margin-top:4px}.r14-actions b{color:#168ce2}.r14-availability{border-top:1px solid #e7edf5;margin-top:20px;padding-top:17px}.r14-availability strong{font-size:12px}.r14-availability p{font-size:11px;line-height:1.7;color:#7c8fa4;margin:6px 0 0}.r14-module-strip{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #cfe5f5;background:#e6f4ff;border-radius:12px;padding:17px 22px;margin-top:19px}.r14-module-strip div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.r14-module-strip span{font-size:12px;color:#1487da;font-weight:900}.r14-module-strip strong{font-size:13px}.r14-module-strip small{font-size:11px;color:#607c96}.r14-module-strip a{font-size:12px;font-weight:800;color:#086bc2;white-space:nowrap}
@media(max-width:1100px){.r14-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.r14-main-grid{grid-template-columns:1fr}}
@media(max-width:700px){.r14-welcome{padding:24px;display:block}.r14-welcome-action{display:inline-block;margin-top:20px}.r14-metric{padding:12px;min-height:100px}.r14-metric-icon{flex-basis:40px;height:40px}.r14-date{display:none}.r14-live{font-size:10px}.r14-module-strip{display:block}.r14-module-strip a{display:inline-block;margin-top:12px}}
@media(max-width:420px){.r14-metrics{gap:9px}.r14-metric{gap:8px}.r14-metric-icon{flex-basis:33px;height:33px;font-size:18px}.r14-metric p{font-size:10px}.r14-metric small{font-size:9px}.r14-section-title{align-items:start;flex-direction:column}.r14-panel{padding:16px}}

/* V0.02 R15: Core-controlled Customers & Sites directory */
.cs-module{max-width:1320px;margin:0 auto;padding:4px 0 28px;color:#173451}.cs-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:10px 0 22px;flex-wrap:wrap}.cs-heading h1{font-size:clamp(28px,3vw,38px);margin:5px 0;color:#102b49}.cs-heading p{margin:3px 0;color:#61778d}.cs-form-actions button,.cs-form-panel button{display:inline-block;background:#087c69;color:white!important;border:0;border-radius:10px;padding:13px 20px;text-decoration:none;font-weight:700;cursor:pointer}.cs-panel{background:white;border:1px solid #dce9e7;border-radius:16px;padding:22px;margin:0 0 18px;box-shadow:0 8px 24px rgba(17,57,65,.05)}.cs-panel h2{margin-top:0}.cs-search{margin-bottom:20px}.cs-search label{display:block;font-weight:700;margin-bottom:9px}.cs-search-row{display:flex;gap:10px}.cs-search-row input{flex:1;min-width:0;padding:13px 15px;border:1px solid #c9d8df;border-radius:10px;font:inherit}.cs-table{width:100%;border-collapse:collapse}.cs-table th{text-align:left;background:#f1f8f7;color:#2c5660;font-size:13px;padding:14px}.cs-table td{padding:16px 14px;border-bottom:1px solid #e5eded}.cs-table td a{font-weight:700;color:#087c69;text-decoration:none}.cs-empty{text-align:center;color:#64788a;padding:45px 12px!important}.cs-preview-pill{border-radius:999px;padding:9px 13px;background:#fff1d5;color:#845a0b;font-size:12px;font-weight:800}.cs-notice{padding:12px;background:#e7f8ed;border-radius:8px;color:#176344}.cs-form-panel{max-width:760px}.cs-form-panel label{display:block;margin:15px 0;font-weight:650}.cs-form-panel input,.cs-form-panel textarea{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:12px;border:1px solid #c9d8df;border-radius:9px;font:inherit}.cs-form-actions{display:flex;align-items:center;gap:20px}.cs-core-preview{background:#f3f7f8;border:1px solid #d5e4e7;padding:24px;border-radius:16px;margin:22px 0}.cs-core-preview .cs-module{max-width:none}@media(max-width:680px){.cs-panel{padding:14px}.cs-search-row{flex-direction:column}.cs-table{min-width:480px}.cs-heading{align-items:flex-start}}

/* V0.02 R16 compact Customers & Sites and centrally controlled module previews */
.cs-module{max-width:none;padding:0;color:#18344c}.cs-heading{margin:0 0 12px}.cs-heading h1{font-size:24px;line-height:1.2;margin:0 0 3px}.cs-heading p{font-size:13px;margin:0}.cs-panel{padding:0;margin:0;border-radius:12px;overflow:hidden}.cs-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #e4ecf0}.cs-search{display:flex;flex:1;max-width:520px;gap:8px;margin:0}.cs-search input{width:100%;min-width:0;padding:9px 12px;border:1px solid #d0dce3;border-radius:7px;font:inherit;font-size:14px}.cs-toolbar .office-action{white-space:nowrap}.cs-table th{padding:11px 14px;font-size:12px;background:#f3f7fa}.cs-table td{padding:11px 14px;font-size:13px}.cs-table td a{color:#086bba}.cs-empty{padding:32px 12px!important}.cs-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.cs-site-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px}.cs-site-heading h2{margin:0;font-size:17px}.cm-page{max-width:1150px}.cm-heading h1{margin:4px 0;font-size:27px}.cm-heading p{color:#65758a;margin:5px 0 20px}.cm-list{background:#fff;border:1px solid #dce5ee;border-radius:12px;overflow:hidden}.cm-list-tools{padding:14px;border-bottom:1px solid #e1e9f0;display:flex;align-items:center;gap:12px}.cm-list-tools label{font-weight:700;font-size:13px}.cm-list-tools input{border:1px solid #cddbe6;border-radius:8px;padding:10px;flex:1;max-width:400px}.cm-table{width:100%;border-collapse:collapse}.cm-table th{text-align:left;background:#f4f7fa;font-size:12px;color:#586b7e;padding:12px}.cm-table td{border-top:1px solid #e8edf2;padding:13px;font-size:13px}.cm-table td small{display:block;color:#66798b;margin-top:3px}.cm-link{border:0;background:transparent;color:#0767b4;font-weight:700;cursor:pointer}.cm-status{display:inline-block;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700}.cm-status.disabled{background:#f2f4f6;color:#64748b}.cm-status.enabled{background:#e5f8ef;color:#167344}.cm-dialog{border:0;border-radius:16px;padding:0;width:min(680px,calc(100vw - 28px));max-height:calc(100vh - 40px);box-shadow:0 20px 80px rgba(7,22,40,.3);color:#18344c}.cm-dialog::backdrop{background:rgba(7,23,42,.6)}.cm-dialog-head{padding:18px 22px;border-bottom:1px solid #e4eaf0;display:flex;justify-content:space-between;align-items:center;gap:15px;background:linear-gradient(110deg,#102d4c,#0c548b);color:#fff}.cm-dialog-head h2{font-size:20px;margin:4px 0}.cm-dialog-head .r14-kicker{color:#a5d9ff}.cm-close{border:0;background:transparent;color:#fff;font-size:28px;line-height:1;cursor:pointer}.cm-dialog-content{padding:20px 22px;overflow:auto;max-height:calc(100vh - 170px)}.cm-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cm-facts>div{border:1px solid #e1eaf0;border-radius:9px;padding:12px}.cm-facts dt{font-size:12px;color:#65758a}.cm-facts dd{margin:5px 0 0;font-weight:700;font-size:13px}.cm-dialog-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:20px}.cm-dialog-actions form{margin:0}.cm-primary,.cm-secondary,.cm-danger{border:0;border-radius:8px;padding:11px 15px;font-size:13px;font-weight:700;cursor:pointer}.cm-primary{background:#0872bf;color:#fff}.cm-secondary{background:#eaf1f6;color:#244963}.cm-danger{background:#b02e3d;color:#fff}.cm-preview-dialog{width:min(1100px,calc(100vw - 28px))}.cm-preview-surface{background:#f4f7fa}.cm-preview-surface .cs-module{max-width:none}.cm-dialog-foot{padding:12px 20px;border-top:1px solid #e3eaf0;text-align:right}.cs-modal-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cs-modal-form label{display:block;font-size:13px;font-weight:700}.cs-modal-form input,.cs-form-dialog input,.cs-form-dialog textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #cad8e2;border-radius:8px;padding:10px;font:inherit}.cs-modal-form .cm-dialog-actions{grid-column:1/-1}.cm-table-wrap,.table-scroll{overflow-x:auto}@media(max-width:640px){.cs-toolbar{align-items:stretch;flex-direction:column}.cs-search{max-width:none}.cs-modal-form{grid-template-columns:1fr}.cm-facts{grid-template-columns:1fr}.cm-dialog-content{padding:14px}.cm-table{min-width:480px}}

/* R17 Core interactive customer preview */
.cm-preview-disclaimer{font-size:12px;color:#60778b;margin:15px 0 0}.cm-preview-clear{display:inline-block;margin-right:10px}.cm-preview-dialog .cm-dialog-foot{display:flex;justify-content:flex-end;align-items:center;gap:8px}.cm-preview-dialog .cs-toolbar{flex-wrap:wrap}

/* R18: full customer registration preview, compact grouped modal */
.cs-form-dialog{width:min(820px,calc(100vw - 24px))}.cs-form-dialog .cm-dialog-content{max-height:calc(100vh - 145px)}.cs-modal-form{gap:12px 16px}.cs-form-section{grid-column:1/-1;margin:14px 0 0;padding:8px 0 6px;border-bottom:1px solid #dce6ed;color:#153c59;font-size:14px}.cs-modal-form label{min-width:0}.cs-modal-form select,.cs-modal-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #cad8e2;border-radius:8px;padding:10px;font:inherit;background:white}.cs-modal-form .cs-check{grid-column:1/-1;display:flex;align-items:center;gap:9px;font-weight:600}.cs-modal-form .cs-check input{width:auto;margin:0}.cs-billing-fields{display:contents}.cs-billing-fields[hidden]{display:none}.cs-notes-label{grid-column:1/-1}.cm-preview-disclaimer{font-size:12px;color:#66798b;margin-top:14px}@media(max-width:640px){.cs-modal-form{grid-template-columns:1fr}}

/* R19: Core-managed per-tenant development entitlement */
.cm-dev-access{margin-top:1.25rem;padding-top:1rem;border-top:1px solid rgba(120,135,160,.3)}
.cm-dev-access h3{margin:0 0 .4rem;font-size:1rem}.cm-dev-form label{display:block;font-weight:600;margin-top:.8rem}.cm-dev-form select{display:block;width:100%;padding:.7rem;border-radius:.5rem;border:1px solid #a9b9cd;background:#fff;color:#142b4c;margin-top:.3rem}

/* R20 tenant customer configuration and compact customer modal */
.cs-settings-form{display:grid;gap:12px;max-width:800px}.cs-settings-form label{display:grid;gap:6px}.cs-settings-form input,.cs-settings-form textarea,.cs-modal-form textarea,.cs-modal-form select{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;padding:10px;background:#fff;color:#172b4d}.cs-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cs-modal-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cs-modal-form label{display:grid;gap:5px}.cs-modal-form .cm-dialog-actions{grid-column:1/-1}.cs-form-dialog{max-width:min(760px,96vw)}.cs-form-dialog .cm-dialog-content{max-height:72vh;overflow:auto}@media(max-width:650px){.cs-settings-grid,.cs-modal-form{grid-template-columns:1fr}}

/* V0.03 R3 — compact Customers & Sites tenant settings; scoped to this page only */
.cs-config{max-width:none;width:100%;margin:0;min-width:0}
.cs-config .cs-heading{margin:0 0 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:25px 30px;border:1px solid #1c6cb4;border-radius:15px;background:linear-gradient(115deg,#061f43 0%,#084e9a 60%,#087be1 100%);color:#fff}
.cs-config .cs-heading h1{font-size:clamp(24px,2.5vw,32px);line-height:1.25;margin:5px 0 7px;color:#fff}
.cs-config .cs-heading p{color:#e4f2ff;font-size:14px;line-height:1.5}
.cs-config .cs-heading .r14-kicker{color:#a8d9ff;font-size:11px;font-weight:800;letter-spacing:.12em}
.cs-config-panel{padding:24px!important;overflow:visible}
.cs-config-form{display:block}
.cs-config-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.cs-config-section{min-width:0}
.cs-config-section h2{font-size:18px;line-height:1.35;margin:0 0 15px;color:#102e4c;font-weight:600}
.cs-config-section label{display:grid;gap:7px;font-size:13px;font-weight:500;color:#24455f}
.cs-config-section input{width:100%;min-width:0;min-height:42px;box-sizing:border-box;border:1px solid #cbd8e4;border-radius:8px;padding:10px 12px;font:400 14px/1.4 var(--sers-font-family);background:#fff;color:#173451}
.cs-config .cs-settings-grid{gap:12px}
.cs-type-list{display:flex;flex-wrap:wrap;gap:8px;min-height:42px;margin-bottom:12px}
.cs-type-row{display:inline-flex;align-items:center;gap:8px;background:#edf4fa;border:1px solid #dae7f1;border-radius:8px;padding:7px 10px;font-size:13px;color:#173c5a}
.cs-type-remove{border:0;background:transparent;color:#60798d;cursor:pointer;font-size:19px;line-height:1;padding:0 2px}
.cs-type-remove:hover{color:#ad263b}
.cs-add-type{display:flex;align-items:center;gap:10px;max-width:540px}
.cs-add-type input{flex:1}
.cs-number-preview{font-size:13px;color:#5d7183;margin:14px 0 0}
.cs-number-preview strong{color:#123d60}
.cs-config-actions{border-top:1px solid #e1eaf0;margin-top:24px;padding-top:18px;display:flex;gap:10px;justify-content:flex-end;align-items:center}
@media(max-width:900px){.cs-config-top{grid-template-columns:1fr;gap:22px}}
@media(max-width:650px){.cs-config .cs-heading{padding:20px 18px;align-items:flex-start;flex-direction:column}.cs-config-panel{padding:16px!important}.cs-config-actions{flex-wrap:wrap}.cs-config .cs-settings-grid{grid-template-columns:1fr}.cs-add-type{max-width:none}}
@media(max-width:380px){.cs-config-actions>*{flex:1;text-align:center}}


/* V0.03 R3 — approved compact customer record and folder tabs */
.cs-clickable-row{cursor:pointer}.cs-clickable-row:hover,.cs-clickable-row:focus-visible{background:#edf6ff;outline:2px solid #80b9e7;outline-offset:-2px}.cs-record{max-width:1200px}.cs-record-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 15px}.cs-record-header h1{font-size:23px;margin:3px 0 7px;color:#102e4b}.cs-record-meta{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.cs-record-meta span{background:#eaf1f8;color:#28506f;border-radius:6px;padding:5px 9px;font-size:12px;font-weight:650}.cs-record-actions{display:flex;gap:8px;align-items:center}.cs-back{display:inline-block;text-decoration:none}.cs-record-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid #d7e4ee}.cs-record-tabs button{border:1px solid #d7e4ee;border-bottom:0;border-radius:9px 9px 0 0;background:#eef3f8;color:#46627b;font-size:13px;font-weight:650;padding:11px 15px;white-space:nowrap;cursor:pointer}.cs-record-tabs button[aria-selected=true]{background:white;color:#086bba;box-shadow:inset 0 3px #0872bf}.cs-record-pane{border:1px solid #d7e4ee;border-top:0;background:white;border-radius:0 0 12px 12px;padding:20px}.cs-record-pane[hidden]{display:none!important}.cs-record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.cs-record-group{padding:15px;border:1px solid #e1e9f0;border-radius:9px;min-width:0}.cs-record-group h2,.cs-record-pane>h2{font-size:15px;margin:0 0 12px;color:#143956}.cs-record-group dl{margin:0}.cs-record-group dl>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #edf2f6;font-size:13px}.cs-record-group dl>div:last-child{border-bottom:0}.cs-record-group dt{color:#62788b}.cs-record-group dd{margin:0;text-align:right;overflow-wrap:anywhere;font-weight:600}.cs-record-group p{font-size:13px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.cs-unset{color:#8495a3;font-weight:400}.cs-site-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.cs-site-card{border:1px solid #e0eaf1;border-radius:9px;padding:15px;background:#f8fbfe}.cs-site-card strong{font-size:14px}.cs-site-card p{font-size:13px;color:#536d80;white-space:pre-wrap;margin:8px 0 0}.cs-primary-pill{margin-left:9px;background:#e0eefb;color:#0964a9;font-size:11px;border-radius:99px;padding:4px 8px}.cs-error{background:#fff0f0;color:#9a2333;padding:12px;border-radius:8px}.cs-form-dialog textarea,.cs-form-dialog select{display:block;width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #cad8e2;border-radius:8px;padding:10px;font:inherit}.cs-form-dialog label{display:block;font-size:13px;font-weight:700;margin-bottom:10px}.cs-modal-form textarea{min-height:70px}.cs-record .cs-modal-form .cm-dialog-actions{grid-column:1/-1}@media(max-width:720px){.cs-record-grid{grid-template-columns:1fr}.cs-record-pane{padding:12px}.cs-record-actions{width:100%}.cs-record-tabs button{padding:10px 11px}}

/* V0.03 R5 — linked sites and shared customer contacts */
.cs-site-link{display:block;text-decoration:none;color:inherit;transition:border-color .15s,background .15s}.cs-site-link:hover,.cs-site-link:focus-visible{border-color:#0872bf;background:#edf6ff;outline:2px solid #87bde4;outline-offset:1px}.cs-site-open{display:inline-block;margin-top:10px;color:#086bb5;font-size:12px;font-weight:700}.cs-site-address{margin-top:12px!important}.cs-contact-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.cs-contact-card{border:1px solid #dfe9f2;border-radius:9px;padding:12px;display:flex;flex-direction:column;gap:5px;font-size:13px}.cs-contact-card span,.cs-contact-card small,.cs-contacts-intro{color:#61788b}.cs-contact-assign{margin-top:20px;border-top:1px solid #dfe9f2;padding-top:16px}.cs-contact-assign h3{font-size:14px}.cs-contact-assignment{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:9px}.cs-contact-assignment label{display:grid;gap:5px;font-size:12px;font-weight:650}.cs-contact-assignment select{min-width:0;width:100%;padding:10px;border:1px solid #cbd8e4;border-radius:7px;background:white}.cs-contact-assignment button{white-space:nowrap}@media(max-width:780px){.cs-contact-assignment{grid-template-columns:1fr 1fr}.cs-contact-assignment button{align-self:end}}@media(max-width:480px){.cs-contact-assignment{grid-template-columns:1fr}.cs-record-header h1{font-size:21px}.cs-site-cards{grid-template-columns:1fr}}

/* V0.03 R5 contact directory: accessible full-row actions */
.cs-contact-open{display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;cursor:pointer;font:inherit;color:inherit;border:1px solid rgba(70,110,170,.2);background:transparent;border-radius:10px;padding:12px;gap:4px}.cs-contact-open:hover,.cs-contact-open:focus-visible{border-color:#3185d5;background:rgba(49,133,213,.06)}
@media(max-width:600px){.cs-contact-open{width:100%}.cs-record-header{flex-wrap:wrap}.cs-record-tabs{overflow-x:auto}}

/* V0.03 R6 — compact responsive contact edit controls */
.cs-contact-form form{display:grid;gap:12px}
.cs-contact-form form>label{margin:0}
.cs-contact-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cs-contact-fields label{min-width:0}
.cs-contact-form .cm-dialog-actions{margin-top:8px}
.cs-record-group dl{margin:0}
@media(max-width:540px){.cs-contact-fields{grid-template-columns:1fr}.cs-contact-form{padding:16px}.cs-record-grid{grid-template-columns:1fr}}
/* V0.03 R7 — compact customer record and contact editor refinements */
.cs-client-ref{background:transparent!important;padding:0!important;font-size:13px!important;color:#49677e!important}
.cs-client-ref strong{color:#143956}
.cs-contact-form .cs-deactivate-form{margin:0}
.cs-contact-form:has(.cs-deactivate-form) .cm-dialog-actions{display:flex;gap:9px;align-items:center;margin:12px 0 0}
.cs-contact-form:has(.cs-deactivate-form) .cm-dialog-actions button,
.cs-contact-form .cs-deactivate-form button{min-height:40px;min-width:132px;padding:9px 14px;box-sizing:border-box}
.cs-contact-form .cs-deactivate-form{margin-top:9px}
.cs-contact-form .cs-deactivate-form button{width:auto}
@media(min-width:560px){.cs-contact-form:has(.cs-deactivate-form){display:flex;flex-wrap:wrap;column-gap:9px}.cs-contact-form:has(.cs-deactivate-form)>form:first-child{display:contents}.cs-contact-form:has(.cs-deactivate-form)>form:first-child>label,.cs-contact-form:has(.cs-deactivate-form)>form:first-child>.cs-contact-fields,.cs-contact-form:has(.cs-deactivate-form)>form:first-child>.cs-contacts-intro{width:100%}.cs-contact-form:has(.cs-deactivate-form) .cm-dialog-actions{margin-top:12px}.cs-contact-form .cs-deactivate-form{margin-top:12px}}
@media(max-width:559px){.cs-contact-form .cm-dialog-actions{flex-wrap:wrap}.cs-contact-form .cm-dialog-actions button,.cs-contact-form .cs-deactivate-form button{flex:1;min-width:0}}

/* V0.03 R8: New Customer wizard only; approved R7 record/editor styles unchanged. */
.cs-wizard .cs-wizard-steps{display:flex;gap:8px;margin:0 0 20px;flex-wrap:wrap}.cs-wizard-steps button{flex:1;min-width:105px;padding:10px;border:1px solid #cfdfec;border-radius:8px;background:#f3f7fb;color:#153e60;font-weight:700;cursor:pointer}.cs-wizard-steps button[aria-current="step"]{border-color:#087ac4;background:#e5f3ff}.cs-wizard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.cs-wizard-form label{display:flex;flex-direction:column;gap:7px;font-weight:700;color:#153e60}.cs-wizard-form input:not([type="checkbox"]),.cs-wizard-form select,.cs-wizard-form textarea{width:100%;min-width:0;padding:12px;border:1px solid #cbdbe9;border-radius:8px;background:white;font:inherit}.cs-wizard-hint{color:#55718b;font-size:13px}.cs-wizard-check{display:flex!important;flex-direction:row!important;align-items:center;margin:15px 0}.cs-wizard-address{position:relative}.cs-address-results{position:absolute;z-index:20;left:0;right:0;background:white;border:1px solid #cbdbe9;border-radius:8px;box-shadow:0 8px 24px #163b5926;max-height:230px;overflow:auto}.cs-address-results button{display:block;width:100%;text-align:left;border:0;background:white;padding:10px 12px;cursor:pointer}.cs-address-results button:hover{background:#e8f4ff}.cs-wizard-review{padding:12px;background:#f1f6fb;border-radius:8px;margin:14px 0}.cs-wizard-actions{margin-top:22px}@media(max-width:600px){.cs-wizard-grid{grid-template-columns:1fr}.cs-wizard-steps button{min-width:0;font-size:12px;padding:9px 5px}}

/* R9: single primary wizard action, evenly aligned footer buttons. */
.cs-wizard-actions{display:flex!important;align-items:center;gap:10px;flex-wrap:wrap}
.cs-wizard-actions button{min-width:0}
.cs-wizard-actions button[hidden]{display:none!important}
.cs-wizard-actions [data-close-dialog]{margin-left:auto}
@media(max-width:540px){.cs-wizard-actions [data-close-dialog]{margin-left:0}}

/* V0.03 R11: Address autocomplete rows must remain legible despite global button themes. */
.cs-wizard .cs-address-results[hidden]{display:none!important}
.cs-wizard .cs-address-results{background:#fff!important;color:#173b5b!important;z-index:1000}
.cs-wizard .cs-address-results .cs-address-option{display:block!important;box-sizing:border-box;width:100%;min-height:42px;height:auto!important;margin:0!important;padding:11px 13px!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;border:0!important;border-bottom:1px solid #e5edf5!important;border-radius:0!important;background:#fff!important;color:#173b5b!important;-webkit-text-fill-color:#173b5b!important;font-size:14px!important;font-weight:500!important;line-height:1.45!important;opacity:1!important;visibility:visible!important;box-shadow:none!important;cursor:pointer}
.cs-wizard .cs-address-results .cs-address-option:hover,.cs-wizard .cs-address-results .cs-address-option:focus-visible,.cs-wizard .cs-address-results .cs-address-option.is-active{background:#e5f3ff!important;color:#0c426c!important;-webkit-text-fill-color:#0c426c!important;outline:2px solid #0c83cf;outline-offset:-2px}
.cs-wizard .cs-address-results .cs-address-message{padding:12px;color:#48667e;font-size:13px;line-height:1.5}

/* V0.03 R12 site workflow and reusable address autocomplete */
.cs-site-wizard .cm-dialog-content{max-height:75vh;overflow-y:auto}.cs-site-steps{display:flex;gap:8px;margin:0 0 18px}.cs-site-steps span{flex:1;text-align:center;padding:10px 5px;background:#f0f5fa;border:1px solid #cbdbe9;border-radius:8px;font-size:12px;font-weight:700;color:#173b5b}.cs-site-steps .is-current{background:#e5f3ff;border-color:#087ac4}.cs-site-step[hidden],.cs-address-results[hidden]{display:none!important}.cs-site-step label{display:flex;flex-direction:column;gap:7px;margin:0 0 16px;font-weight:700}.cs-site-step input,.cs-site-step select{width:100%;padding:11px;border:1px solid #cbdbe9;border-radius:8px;background:#fff;color:#173b5b}.cs-site-step .cs-wizard-address{display:block;position:relative}.cs-site-step .cs-wizard-review{margin-top:12px}.cs-form-dialog .cs-wizard-address{display:block;position:relative}.cs-form-dialog .cs-address-results{position:absolute;top:100%;left:0;right:0;max-height:220px;overflow-y:auto;background:#fff!important;z-index:10000;border:1px solid #cbdbe9;box-shadow:0 8px 22px #163b5926;border-radius:8px}.cs-form-dialog .cs-address-option{display:block!important;width:100%;height:auto!important;min-height:40px;padding:11px!important;border:0!important;border-bottom:1px solid #e5edf5!important;background:#fff!important;color:#173b5b!important;-webkit-text-fill-color:#173b5b!important;font-size:14px!important;text-align:left!important;white-space:normal!important;cursor:pointer}.cs-form-dialog .cs-address-option:hover,.cs-form-dialog .cs-address-option.is-active{background:#e5f3ff!important}.cs-form-dialog .cs-address-message{padding:12px;color:#48667e}@media(max-width:600px){.cs-site-steps{gap:4px}.cs-site-steps span{font-size:11px}.cs-site-actions{flex-wrap:wrap}}

/* V0.03 R16 — Tenant company profile */
.cp-profile{min-height:0!important}.cp-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:22px}.cp-step{padding:12px;border:1px solid #c8d9e9;border-radius:9px;background:#f4f8fc;color:#173c5e;font-weight:750;cursor:pointer}.cp-step.active{border-color:#007de8;background:#e1f2ff}.cp-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.cp-field{display:flex;flex-direction:column;gap:8px;position:relative;font-size:13px;font-weight:700;color:#153650}.cp-field input,.cp-field textarea{width:100%;padding:12px;border:1px solid #c8d8e8;border-radius:9px;background:#fff;color:#142b40;font:inherit;font-weight:500}.cp-field input:focus,.cp-field textarea:focus{outline:2px solid #0083e5;outline-offset:1px}.cp-actions{display:flex;gap:10px;align-items:center;margin-top:26px;flex-wrap:wrap}.cp-reference{min-height:0!important;margin-top:18px}.cp-alert{padding:13px 16px;border-radius:9px;margin:14px 0}.cp-success{background:#e1f7e9;color:#075e30}.cp-error{background:#fff0ed;color:#8d1c10}.cp-address-results{position:absolute;top:100%;left:0;right:0;z-index:50;max-height:230px;overflow:auto;background:#fff;border:1px solid #b9d0e5;border-radius:8px;box-shadow:0 10px 22px #1234}.cp-suggestion{display:block;width:100%;padding:11px;text-align:left;border:0;border-bottom:1px solid #e4edf4;background:#fff;color:#163b56!important;font-size:13px;cursor:pointer;white-space:normal}.cp-suggestion:hover,.cp-suggestion.selected{background:#e5f4ff!important;color:#0b3555!important}@media(max-width:650px){.cp-fields{grid-template-columns:1fr}.cp-steps{gap:4px}.cp-step{padding:10px 4px;font-size:11px}.cp-actions>*{flex:1}.cp-profile{padding:15px!important}}

/* V0.03 R16 — customer record segmented navigation; shared theme-friendly colours */
.cs-record .cs-record-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:6px;margin:0 0 12px;background:#edf3f9;border:1px solid #dce7f0;border-radius:13px;overflow:visible}
.cs-record .cs-record-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:46px;padding:10px 8px;border:1px solid transparent;border-radius:9px;background:transparent;color:#365775;font-size:13px;font-weight:700;white-space:normal;box-shadow:none;transition:background .15s,color .15s,border-color .15s}
.cs-record .cs-record-tabs button:hover{background:#fff;color:#075b9c}
.cs-record .cs-record-tabs button[aria-selected=true]{background:#fff;color:#056bb9;border-color:#bcd9ee;box-shadow:0 2px 7px rgba(11,65,109,.10)}
.cs-record .cs-record-tabs button:focus-visible{outline:3px solid #328fd7;outline-offset:2px}
.cs-record .cs-record-tabs .cs-tab-icon{font-size:19px;line-height:1;font-weight:600}
.cs-record .cs-record-pane{border:1px solid #d7e4ee;border-radius:12px;padding:20px}
@media(max-width:600px){.cs-record .cs-record-tabs{gap:3px;padding:4px}.cs-record .cs-record-tabs button{flex-direction:column;gap:4px;min-height:58px;padding:7px 2px;font-size:11px}.cs-record .cs-record-tabs .cs-tab-icon{font-size:19px}.cs-record .cs-record-pane{padding:12px}}

/* V0.03 R16 — Unified Customers & Sites directory */
.cs-unified-results{display:grid;gap:14px;padding:14px}.cs-unified-customer{border:1px solid var(--line,#d8e1ec);border-radius:14px;overflow:hidden;background:#fff}.cs-unified-parent{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 18px}.cs-unified-customer-link{display:grid;gap:4px;text-decoration:none;color:#143658;min-width:0}.cs-unified-name{font-weight:800;font-size:16px}.cs-unified-meta{font-size:12px;color:#52677c}.cs-unified-open{white-space:nowrap;color:#1263ad;font-weight:700;font-size:13px}.cs-unified-sites{background:#f5f8fc;border-top:1px solid #e2eaf3;padding:7px 12px}.cs-unified-site{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:9px;color:#17334e;text-decoration:none;min-height:60px}.cs-unified-site:hover,.cs-unified-site:focus-visible{background:#e6f1ff;outline:2px solid transparent}.cs-unified-site:focus-visible{outline-color:#2375c4}.cs-unified-site-icon{font-size:22px;color:#2375c4}.cs-unified-site-info{display:grid;gap:3px;min-width:0;flex:1}.cs-unified-site-info strong{font-size:14px}.cs-unified-site-info small{font-size:12px;color:#566d83;overflow-wrap:anywhere}.cs-unified-arrow{color:#2375c4;font-size:18px}.cs-unified-empty-sites{padding:8px 12px;color:#687c8f;font-size:12px}@media(max-width:600px){.cs-unified-results{padding:9px}.cs-unified-parent{align-items:flex-start;flex-direction:column;padding:13px}.cs-unified-open{min-height:36px;display:inline-flex;align-items:center}.cs-unified-sites{padding:5px}.cs-unified-site{min-height:64px;padding:10px 8px}}

/* R16 site profile and tenancy contact assignments */
.cs-tenancy-panel{grid-column:1/-1}.cs-tenancy-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0.85rem 0;border-top:1px solid #d9e5f0}.cs-tenancy-row small{color:#61778d}.cs-tenancy-row form{margin:0}.cs-record-meta a{color:#006cbd;text-decoration:underline}.cs-record-group .cm-dialog-actions{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-start;margin-top:1rem}.cs-record-group .cm-dialog-actions a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:40px}@media(max-width:640px){.cs-tenancy-row{align-items:flex-start;flex-direction:column}.cs-tenancy-row button{min-height:42px}}

/* R18: tenant administrative submenu */
.office-settings-group{margin-top:6px}.office-settings-group>summary{cursor:pointer;list-style:none}.office-settings-group>summary::-webkit-details-marker{display:none}.office-settings-chevron{margin-left:auto!important}.office-settings-children{padding-left:13px;border-left:1px solid rgba(173,210,247,.22);margin-left:18px}.office-side-sub{font-size:.9em!important}.office-settings-group .office-side-link{box-sizing:border-box}

/* V0.04 R1 — compact floating customer navigation, 4/5 responsive tabs */
.cs-record .cs-record-tabs{display:flex;flex-wrap:nowrap;align-items:stretch;gap:6px;padding:6px;margin:0 0 12px;border:1px solid #dce7f0;border-radius:13px;background:#edf3f9;overflow-x:auto;scrollbar-width:thin}
.cs-record .cs-record-tabs button{flex:1 0 0;min-width:104px;min-height:40px;padding:8px 10px;white-space:nowrap;flex-direction:row;gap:7px;font-size:12px;border-radius:9px}
.cs-record .cs-record-tabs .cs-tab-icon{font-size:16px}
@media(max-width:700px){.cs-record .cs-record-tabs{gap:4px;padding:5px}.cs-record .cs-record-tabs button{flex:1 0 96px;min-height:42px;padding:8px 7px;flex-direction:row;font-size:12px;gap:5px}.cs-record .cs-record-tabs .cs-tab-icon{font-size:15px}}

/* V0.04 R1 — Security Asset Management tenant category controls */
.sa-config{max-width:none;width:100%;min-width:0}.sa-config-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.sa-config-heading h2{margin:0 0 8px}.sa-config-heading p{margin:0;color:#506981}.sa-config-count{white-space:nowrap;font-size:12px;font-weight:800;color:#17659b;background:#e7f3fd;padding:8px 12px;border-radius:18px}.sa-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sa-category{border:1px solid #d6e4ef;border-radius:13px;padding:18px;background:#fff;min-width:0}.sa-category.is-enabled{border-color:#72b8ed;background:#f5fbff}.sa-category-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.sa-category h3{font-size:16px;margin:0 0 7px;color:#113a5c}.sa-category p{font-size:13px;color:#536e85;line-height:1.5;margin:0 0 12px}.sa-category-status{font-size:11px;font-weight:800;color:#54728a;background:#eef3f7;border-radius:20px;padding:5px 9px}.sa-category.is-enabled .sa-category-status{background:#d7f5e6;color:#17653e}.sa-toggle-form{margin:8px 0 0}.sa-check-button{display:inline-flex;align-items:center;gap:10px;border:0;background:transparent;color:#173c5e;font-size:13px;font-weight:700;cursor:pointer;padding:7px 0}.sa-check-button:focus-visible,.sa-settings-trigger:focus-visible{outline:3px solid #0879d4;outline-offset:3px}.sa-check-box{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;border:2px solid #87a6be;border-radius:5px;background:#fff;color:#fff;font-size:15px}.is-enabled .sa-check-box{background:#087bd2;border-color:#087bd2}.sa-alarm-settings{margin-top:15px;padding-top:14px;border-top:1px solid #dbe7ef}.sa-settings-trigger{display:inline-flex;align-items:center;cursor:pointer;padding:9px 14px;border-radius:9px;font-size:13px;font-weight:700;background:#e5f1fb;color:#0d588f;list-style:none}.sa-settings-trigger::-webkit-details-marker{display:none}.sa-settings-content{margin-top:12px;padding:16px;background:#fff;border:1px solid #d5e5f1;border-radius:10px}.sa-settings-content h4{margin:0 0 8px}.sa-settings-content label{display:block;margin:10px 0 7px;font-size:13px;font-weight:700}.sa-settings-content textarea{display:block;box-sizing:border-box;width:100%;padding:12px;margin-bottom:12px;border:1px solid #bbcfde;border-radius:8px;color:#163c59;font:inherit}.sa-foundation-note{margin:20px 0 0!important;font-size:13px;color:#57738a}@media(max-width:800px){.sa-category-grid{grid-template-columns:1fr}.sa-config-heading{flex-direction:column}.sa-category{padding:14px}}

/* V0.04 R3: asset register / add asset dialog */
.sa-register-toolbar{display:flex;justify-content:flex-end;margin:0 0 14px}.sa-register{margin-bottom:18px}.sa-asset-dialog{border:1px solid #d8e6f3;border-radius:16px;padding:0;width:min(94vw,560px);max-height:90vh;box-shadow:0 22px 70px #0a2d5266;color:#0a2948}.sa-asset-dialog::backdrop{background:#071d3b99}.sa-asset-form{display:grid;gap:10px;padding:24px}.sa-asset-form h2{margin:0}.sa-asset-form p{margin:0 0 8px}.sa-asset-form label{font-weight:650;font-size:13px}.sa-asset-form input,.sa-asset-form select,.sa-asset-form textarea{box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid #c9d8e8;border-radius:8px;background:#fff;color:#0a2948;font:inherit}.sa-asset-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}.sa-asset-table-wrap{overflow-x:auto}.sa-asset-table{width:100%;border-collapse:collapse;text-align:left}.sa-asset-table th,.sa-asset-table td{padding:11px;border-bottom:1px solid #e0e9f3}.sa-asset-table th{font-size:12px;color:#526a83}

/* R7: compact, responsive customer asset creation dialog */
.sa-create-dialog{width:min(640px,calc(100vw - 24px));max-width:640px;max-height:90dvh;padding:0;overflow:hidden}.sa-create-dialog .cm-dialog-content{max-height:calc(90dvh - 70px);overflow-y:auto;padding:18px 22px}.sa-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sa-create-grid label{display:flex;flex-direction:column;gap:5px;font-weight:650;font-size:13px;min-width:0}.sa-create-grid input,.sa-create-grid select{width:100%;min-width:0;box-sizing:border-box;padding:9px;border:1px solid #cbdbe9;border-radius:8px;background:#fff;color:#173b5b}.sa-create-dialog h3{margin:18px 0 12px;font-size:16px}.sa-create-note{font-size:12px;color:#48667e}.sa-create-dialog [hidden]{display:none!important}@media(max-width:540px){.sa-create-grid{grid-template-columns:1fr}.sa-create-dialog .cm-dialog-content{padding:14px}}

/* R10: customer asset modal owns alarm equipment editor */
.sa-alarm-dialog::backdrop{background:#051b39a6}.sa-alarm-head h2{font-size:18px;margin:0;color:#fff}.sa-alarm-head button{border:0;background:transparent;color:#fff;font-size:26px;cursor:pointer}.sa-open-alarm{border:0;background:none;color:#067ee8;text-decoration:underline;cursor:pointer;font:inherit;padding:0;text-align:left}

 .sa-alarm-fragment{color:#0b2442;font:14px/1.5 var(--sers-font-family)} .sa-alarm-fragment{max-width:100%;padding:16px 20px 30px;box-sizing:border-box} .sa-alarm-fragment .workspace-heading{margin:0 0 12px;padding:0;background:none;min-height:0} .sa-alarm-fragment .workspace-heading h1{font-size:21px;margin:0} .sa-alarm-fragment .workspace-heading a{display:none} .sa-alarm-fragment .office-panel{margin:0 0 12px;padding:14px;border:1px solid #dbe7f3;border-radius:12px;box-shadow:none;background:#fff} .sa-alarm-fragment .office-panel h2{font-size:16px;margin:0 0 10px} .sa-alarm-fragment label{display:block;margin:9px 0;font-weight:600} .sa-alarm-fragment input, .sa-alarm-fragment select, .sa-alarm-fragment textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;padding:9px;border:1px solid #c6d7e7;border-radius:7px;font:inherit} .sa-alarm-fragment button.button, .sa-alarm-fragment summary.button{display:inline-block;width:auto;padding:9px 14px;border-radius:8px;background:#067ee8;color:white;border:0;cursor:pointer} .sa-alarm-fragment details{margin:10px 0;padding:9px;border:1px solid #e2eaf4;border-radius:8px} .sa-alarm-fragment .office-panel form{max-width:100%} .sa-alarm-fragment .error{color:#9b1620}


/* R12 native alarm workspace: compact, consistent create/edit controls */
.sa-editor{font-size:14px;color:#183452}.sa-editor-intro{padding:4px 2px 15px}.sa-editor-intro h3{font-size:19px;margin:4px 0;color:#0a315d}.sa-editor-intro p{margin:0;color:#64748b}.sa-eyebrow{font-size:10px;font-weight:800;letter-spacing:.1em;color:#1878c8}.sa-tabs{display:flex;gap:6px;overflow-x:auto;padding:3px 0 13px;border-bottom:1px solid #dbe6f2;margin-bottom:16px}.sa-section[hidden],.sa-equipment-forms[hidden],.sa-equipment-form[hidden],.sa-delete-form[hidden]{display:none!important}.sa-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.sa-form-grid label{display:flex;flex-direction:column;gap:5px;font-weight:650;color:#284562;min-width:0}.sa-form-grid input,.sa-form-grid select,.sa-form-grid textarea{width:100%;box-sizing:border-box;border:1px solid #cbd9e8;border-radius:8px;background:#fff;padding:10px;font:inherit;color:#1c3450}.sa-form-grid textarea{min-height:76px}.sa-form-grid .sa-full,.sa-form-heading,.sa-form-actions{grid-column:1/-1}.sa-form-heading{font-size:16px;font-weight:750;margin-top:8px}.sa-form-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:8px}.sa-readonly{display:flex;flex-direction:column;gap:6px}.sa-readonly strong{font-size:12px}.sa-readonly span{padding:10px;background:#eef4fa;border-radius:8px}.sa-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.sa-section-head h4{font-size:17px;margin:0}.sa-equipment-list{display:grid;gap:7px}.sa-equipment-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border:1px solid #e0e8f2;border-radius:9px;padding:10px 12px}.sa-equipment-row>div{display:flex;flex-direction:column;gap:3px}.sa-equipment-row span{color:#63778e}.sa-equipment-forms:not([hidden]){margin-top:14px;border-top:1px solid #dce6ef;padding-top:12px}.sa-empty{padding:15px;text-align:center;color:#667b90;background:#f0f5fa;border-radius:8px}.sa-security-note{font-size:12px;color:#667b90;margin:18px 0 0}.sa-delete-form:not([hidden]){text-align:right;padding:8px 0}.sa-delete-button{border:0;background:none;color:#b42332;cursor:pointer;text-decoration:underline}@media(max-width:580px){.sa-form-grid{grid-template-columns:1fr}.sa-section-head{align-items:flex-start}}

/* V0.05 R14 invoice and quote A4 visual template workspace */
.r14-designer{position:relative;width:min(100%,595px);aspect-ratio:210/297;background:#fff;color:#172b4d;border:1px solid #b9c6d7;box-shadow:0 8px 24px #13294422;margin:1rem 0;overflow:hidden;touch-action:none}
.r14-designer [data-part]{position:absolute;max-width:88%;padding:5px 8px;border:1px dashed #4277ab;background:#eaf2fa;cursor:move;user-select:none;font-size:12px;touch-action:none}
.r14-designer [data-part]:focus{outline:2px solid #1263a5}

.r14-line-row{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:10px 0;padding:12px;border:1px solid #cbd5e1;border-radius:8px}.r14-line-row label{flex:1 1 150px}
/* V0.05 R16 invoice/quote visual designer: logo and three editable starting layouts */
.r14-designer [data-logo]{position:absolute;box-sizing:border-box;min-height:30px;padding:9px 5px;border:2px dashed #2767ac;border-radius:4px;background:rgba(24,104,188,.13);color:#123f74;text-align:center;cursor:grab;touch-action:none;font-weight:700;z-index:2}
.r14-designer [data-logo]:focus-visible,.r14-designer [data-part]:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}
.r16-logo-size{display:flex;align-items:center;gap:12px;margin:12px 0;max-width:380px}
.r16-logo-size input{flex:1}

/* V0.05 R17 — shared premium tenant office design system. Scoped to office to preserve Core, customer and technician interfaces. */
.office-brand{--r17-navy:#061d3c;--r17-blue:#0879e8;--r17-ink:#0b2546;--r17-muted:#607690;--r17-border:#dbe7f4;background:#eff5fc;color:var(--r17-ink)}
.office-brand .portal-header{height:88px;min-height:88px;box-sizing:border-box;padding:12px 26px;background:linear-gradient(90deg,#04152f 0%,#062b54 65%,#061b38 100%);background-image:linear-gradient(90deg,rgba(3,17,39,.97) 0%,rgba(3,23,52,.77) 38%,rgba(4,27,58,.62) 75%,rgba(3,17,39,.96) 100%),url('/assets/harbour-skyline.svg');background-size:cover;background-position:center 48%;border-bottom:2px solid #1592f4;box-shadow:0 3px 16px #051a3850;gap:18px}
.office-brand .portal-logo{flex:0 0 auto}.office-brand .portal-logo img{width:205px;max-height:64px;object-fit:contain}.office-brand .portal-header-name{margin-left:auto;color:#f3f8ff;font-size:13px;white-space:nowrap}.office-brand .portal-header-name strong{display:block;color:#80caff;font-size:10px;letter-spacing:.13em}.office-brand .office-toolbar{display:flex;gap:10px;margin-left:auto}.office-brand .office-toolbar a{display:grid;place-items:center;width:38px;height:38px;border:1px solid #ffffff32;border-radius:10px;color:white;font-size:20px;background:#ffffff14}.office-brand .portal-header-actions{gap:12px;border-left:1px solid #ffffff35;padding-left:18px}.office-brand .portal-account{display:flex;flex-direction:column;gap:3px;line-height:1.15;white-space:nowrap}.office-brand .portal-account strong{font-size:13px}.office-brand .portal-account small{color:#bed7f1;font-size:11px}.office-brand .portal-logout{font-size:12px;color:#c5e5ff;text-decoration:none}.office-brand .office-shell{grid-template-columns:250px minmax(0,1fr)}
.office-brand .office-side{background:linear-gradient(170deg,#082950,#041934 80%);padding:18px 10px;gap:4px}.office-brand .office-side-link{border-radius:9px;min-height:43px;box-sizing:border-box;padding:10px 12px;font-size:13px;line-height:1.35}.office-brand .office-side-link.active{background:linear-gradient(110deg,#0969d6,#0796fa);box-shadow:0 4px 12px #0078ee33}.office-brand .office-settings-children{border-left:1px solid #1d5281;margin-left:14px;padding-left:9px}.office-brand .office-side-sub{font-size:12px;min-height:39px}.office-brand .office-main{padding:28px clamp(18px,2.4vw,46px) 55px;background:linear-gradient(160deg,#f4f8fd,#eaf2fb);min-width:0}.office-brand .workspace-heading{margin-bottom:22px}.office-brand .workspace-heading h1{font-size:clamp(24px,2vw,31px);font-weight:800;letter-spacing:-.025em;color:#09264a}.office-brand .workspace-heading p{color:#61758e}.office-brand .office-panel,.office-brand .portal-card{background:#fff;border:1px solid #dbe7f4;border-radius:14px;box-shadow:0 7px 24px #123b6310}.office-brand .office-panel{min-height:0}.office-brand .office-panel h2{color:#09264a}.office-brand .button,.office-brand a.button,.office-brand button.button{background:linear-gradient(110deg,#0769dc,#0b9af9);color:#fff;border:0;border-radius:8px;box-shadow:0 4px 10px #0078e822;font-weight:750;text-decoration:none}.office-brand input:not([type=checkbox]):not([type=radio]),.office-brand select,.office-brand textarea{border-radius:8px;border-color:#cbdcec}.office-brand :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #ffb84b;outline-offset:2px}
.office-brand .r17-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.office-brand .r17-setting-card{padding:20px;display:flex;flex-direction:column;gap:15px;border-top:4px solid #0c83eb}.office-brand .r17-setting-card.r17-account{border-top-color:#7538ec}.office-brand .r17-setting-card.r17-modules{border-top-color:#10b981}.office-brand .r17-setting-card.r17-addons{border-top-color:#ff8b20}.office-brand .r17-card-head{display:flex;align-items:flex-start;gap:14px;min-width:0}.office-brand .r17-card-head>div{flex:1;min-width:0}.office-brand .r17-card-head h2{font-size:18px;margin:2px 0 5px}.office-brand .r17-card-head p{font-size:12px;color:#61758e;line-height:1.5;margin:0}.office-brand .r17-card-icon{width:56px;height:56px;flex:0 0 56px;display:grid;place-items:center;background:linear-gradient(145deg,#069afa,#0654bc);border-radius:12px;color:white;font-size:27px;box-shadow:0 5px 15px #0a65ba25}.office-brand .r17-account .r17-card-icon{background:linear-gradient(145deg,#9551fc,#4922b8)}.office-brand .r17-modules .r17-card-icon{background:linear-gradient(145deg,#19c996,#008c65)}.office-brand .r17-addons .r17-card-icon{background:linear-gradient(145deg,#ffae33,#f66a07)}.office-brand .r17-setting-card>.button{align-self:flex-start;margin-top:auto}.office-brand .r17-setting-card .office-data{margin:0;background:#f7faff;border:1px solid #e3ebf5;border-radius:9px;padding:4px 12px}.office-brand .r17-setting-card .office-data div{padding:12px 6px}.office-brand .r17-status{background:#d9f9e8;color:#077846;border-radius:30px;padding:5px 13px;font-weight:800;font-size:12px}.office-brand .r17-module-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.office-brand .r17-module-links a{display:flex;gap:10px;align-items:center;min-width:0;border:1px solid #dae6f3;border-radius:10px;padding:12px;text-decoration:none;color:#10355b}.office-brand .r17-module-links a:hover{background:#f2f8ff;border-color:#91c5f5}.office-brand .r17-module-links a>span{font-size:22px;color:#0782ee}.office-brand .r17-module-links a>div{flex:1;min-width:0}.office-brand .r17-module-links strong,.office-brand .r17-module-links small{display:block}.office-brand .r17-module-links strong{font-size:12px}.office-brand .r17-module-links small{font-size:11px;color:#6d8098;margin-top:4px}.office-brand .r17-module-links b{font-size:24px;color:#54718f}.office-brand .r17-info{padding:18px;border-radius:11px;background:#fff2e5;color:#a5440d;display:grid;gap:5px;font-size:13px}.office-brand .r17-breadcrumb{font-size:12px;color:#637a95;white-space:nowrap}.office-brand .r17-breadcrumb a{color:#0a64bb;text-decoration:none}
@media(max-width:1250px){.office-brand .r17-settings-grid{grid-template-columns:1fr}.office-brand .r17-breadcrumb{display:none}}@media(max-width:850px){.office-brand .office-shell{grid-template-columns:200px minmax(0,1fr)}.office-brand .portal-header-name{display:none}.office-brand .r17-module-links{grid-template-columns:1fr}}@media(max-width:650px){.office-brand .portal-header{height:auto;min-height:76px;padding:12px}.office-brand .portal-logo img{width:145px}.office-brand .office-shell{display:block}.office-brand .office-side{flex-direction:row;overflow-x:auto;padding:8px}.office-brand .office-settings-group{min-width:180px}.office-brand .office-main{padding:18px 12px 35px}.office-brand .r17-card-head{flex-wrap:wrap}.office-brand .portal-account{display:none}.office-brand .r17-setting-card{padding:15px}}

/* V0.05 R18 — cross-page tenant consistency repair, preserving module-specific controls */
.office-brand .portal-header{position:relative;isolation:isolate;justify-content:space-between;background-image:linear-gradient(90deg,rgba(2,16,37,.92),rgba(4,29,64,.48) 45%,rgba(3,22,47,.9)),url('/assets/harbour-skyline.svg');background-size:cover;background-position:center 48%}
.office-brand .portal-header-name{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;margin-left:auto;padding:0 16px;background:transparent;border:0;box-shadow:none;color:#f2f8ff;font-size:12px;font-weight:650;line-height:1.35;min-width:0;max-width:260px;overflow-wrap:anywhere}
.office-brand .portal-header-name strong{color:#a8dfff;font-size:10px;letter-spacing:.13em}
.office-brand .office-toolbar{margin-left:0}.office-brand .portal-header-actions{flex-shrink:0}
.office-brand .office-side-link{display:flex;align-items:center;gap:11px;color:#d6e9fb;font-weight:650;text-decoration:none;transition:background .15s ease,color .15s ease}
.office-brand .office-side-link>span:first-child{width:23px;flex:0 0 23px;text-align:center;font-size:17px}
.office-brand .office-side-link:hover:not(.disabled){background:#124e89;color:#fff}
.office-brand .office-side-link.disabled{opacity:.5;cursor:not-allowed}
.office-brand .office-side-link.active{color:#fff}
.office-brand .office-side-link small{margin-left:auto;font-size:10px}
.office-brand .office-settings-children{display:grid;gap:2px}.office-brand .office-settings-children a{min-height:42px}
.office-brand .office-main :is(.office-panel,.portal-card,.r14-panel,.r14-metric,.r14-module-strip){border:1px solid #dce7f4;border-radius:14px;box-shadow:0 6px 22px rgba(17,57,97,.07)}
.office-brand .office-main :is(.button,a.button,button.button,input[type=submit],button[type=submit]){min-height:40px;padding:10px 16px;border-radius:9px;font-weight:750;line-height:1.3}
.office-brand .office-main :is(.button,a.button,button.button,input[type=submit],button[type=submit]):not(.outline):not(.danger):not(.cm-secondary):not(.cm-primary):not(.office-action){background:linear-gradient(110deg,#0865d2,#0697f5);border:1px solid #137bda;color:white;box-shadow:0 4px 12px rgba(0,111,216,.17)}

.office-brand .office-main :is(.button.danger,button.danger){background:#b92736;color:#fff;border-color:#b92736}
.office-brand .office-main :is(a.button,button,.r17-light-action,.r14-welcome-action){text-decoration:none}
.office-brand .office-main :is(a.button,button,.r17-light-action,.r14-welcome-action):hover{filter:brightness(1.05);transform:translateY(-1px)}
.office-brand .office-main :is(input,select,textarea){max-width:100%}
.office-brand .office-main :is(table){max-width:100%;border-collapse:collapse}
.office-brand .office-main :is(th){background:#eff6fe;color:#173f69;font-weight:750}
.office-brand .office-main :is(td,th){padding:10px 12px;border-bottom:1px solid #e1eaf4}
.office-brand .office-main :is(.r14-welcome){background:linear-gradient(115deg,#06224b,#0a579b);border:1px solid #1963a2}
.office-brand .office-main .r14-metric strong{font-size:24px}
.office-brand .r18-metric-link{color:inherit;text-decoration:none;transition:transform .15s ease}
.office-brand .r18-metric-link:hover{transform:translateY(-2px);border-color:#6caee8}
.office-brand .r18-metric-link small{color:#0969bd;text-decoration:underline}
@media(max-width:950px){.office-brand .portal-header-name{display:none}.office-brand .portal-header{gap:10px}}
@media(max-width:650px){.office-brand .office-side{display:flex;flex-wrap:nowrap;overflow-x:auto}.office-brand .office-side-link{flex-shrink:0}.office-brand .office-settings-children{min-width:210px}.office-brand .office-main :is(td,th){padding:8px}.office-brand .r17-module-links{grid-template-columns:1fr}}


/* V0.05 R19: approved premium tenant-office visual system. Strictly scoped to office-brand. */
.office-brand{--r19-navy:#071f43;--r19-electric:#087ff2;--r19-muted:#5d7593;--r19-stroke:#dce8f5;background:#eef5fd;font-family:var(--sers-font-family)}
.office-brand .portal-header{height:88px;min-height:88px;display:flex;align-items:center;padding:0 28px;background-color:#041b39;background-image:linear-gradient(90deg,#03162f 0%,rgba(3,21,45,.98) 17%,rgba(3,20,43,.18) 32%,rgba(3,20,43,.1) 70%,#03162f 88%),url('/assets/approved/harbour-header-r19.webp');background-size:cover,auto 100%;background-repeat:no-repeat;background-position:center,center;border-bottom:2px solid #1689e9;box-shadow:0 5px 16px #001e3c24}
.office-brand .portal-logo{z-index:1;min-width:245px}.office-brand .portal-logo img{width:225px;max-height:70px;object-fit:contain;filter:drop-shadow(0 2px 4px #001d36)}
.office-brand .portal-header-name{display:none}
.office-brand .office-toolbar{margin-left:auto;gap:9px;z-index:1}
.office-brand .office-toolbar a{height:42px;width:42px;border:1px solid #ffffff40;background:#072c5880;border-radius:10px;transition:background .16s ease}
.office-brand .office-toolbar a:hover{background:#0877d9}
.office-brand .portal-header-actions{z-index:1;display:flex;align-items:center;gap:17px;margin-left:14px;border-left:1px solid #ffffff42;padding-left:17px}
.office-brand .portal-account strong{font-size:13px}.office-brand .portal-account small{font-size:11px}.office-brand .portal-logout{font-size:12px;font-weight:700;color:#fff}
.office-brand .office-shell{grid-template-columns:250px minmax(0,1fr);min-height:calc(100vh - 88px)}
.office-brand .office-side{background:linear-gradient(175deg,#07274f,#041a36 88%);padding:18px 12px;gap:5px;border-right:1px solid #184574}
.office-brand .office-side-heading{color:#8bc5ff;letter-spacing:.1em;font-weight:850;padding:12px 13px 14px}
.office-brand .office-side-link{min-height:45px;padding:10px 14px;border-radius:10px;color:#d7eaff;font-weight:650;font-size:13px}
.office-brand .office-side-link>span:first-child{width:25px;flex:0 0 25px;font-size:19px}
.office-brand .office-side-link.active{background:linear-gradient(105deg,#0866d9,#0797fa);border-left:3px solid #12ddf1;box-shadow:0 5px 14px #001e4133}
.office-brand .office-side-link.disabled{opacity:.42}
.office-brand .office-settings-children{padding:5px 0 7px 9px;border-left:1px solid #276196;margin-left:18px}
.office-brand .office-settings-children .office-side-link{min-height:40px;font-size:12px}
.office-brand .office-main{background:linear-gradient(135deg,#f7faff,#eaf2fb);padding:28px clamp(18px,2.1vw,38px) 55px}
.office-brand .workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.office-brand .workspace-heading h1{font-size:29px;color:#09264a;font-weight:850}
.office-brand .r17-settings-grid{gap:18px;align-items:stretch}
.office-brand .r17-setting-card{padding:20px;gap:16px;min-width:0;border-top-width:4px;border-radius:13px;box-shadow:0 8px 22px #123b6310}
.office-brand .r17-card-head h2{font-size:18px;letter-spacing:-.02em}
.office-brand .r17-card-icon{width:60px;height:60px;flex-basis:60px}
.office-brand .r17-setting-card .office-data{background:#f5f8fd;border-color:#e0eaf5}
.office-brand .r17-setting-card .office-data div{display:grid;grid-template-columns:minmax(110px,40%) minmax(0,1fr);gap:10px;align-items:center}
.office-brand .r17-setting-card .office-data dd{overflow-wrap:anywhere}
.office-brand .r17-module-links a{min-height:65px;background:#fff;transition:background .16s ease,transform .16s ease}
.office-brand .r17-module-links a:hover{background:#edf7ff;transform:translateY(-1px)}
.office-brand .r17-info{background:#fff1e4;border:1px solid #ffe3c3}
.office-brand .office-main :is(.button,a.button,button.button,input[type=submit],button[type=submit]){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border-radius:9px;font-size:13px;max-width:100%;white-space:normal;text-align:center}
.office-brand .office-main :is(.button,a.button,button.button,input[type=submit],button[type=submit]):not(.outline):not(.danger):not(.cm-secondary):not(.cm-primary):not(.office-action){background:linear-gradient(110deg,#0868db,#0a9bfa);color:#fff;border:1px solid #087be5}

.office-brand .office-main :is(.button.danger,button.danger){background:#b92736;color:white}
.office-brand .office-main :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-height:38px;border:1px solid #c9d9ea;border-radius:8px;background-color:#fff}
.office-brand .office-main :is(input,select,textarea):focus-visible{outline:3px solid #74baff;outline-offset:1px}
.office-brand .office-main :is(.office-panel,.portal-card,.r14-panel,.r14-metric){background:#fff;border:1px solid #dce7f4;border-radius:14px;box-shadow:0 8px 24px #143a6210}
.office-brand .office-main :is(table){width:100%;max-width:100%;border-collapse:collapse}
.office-brand .office-main :is(th){background:#edf5fd;color:#153b67}
.office-brand .office-main :is(td,th){border-bottom:1px solid #dfeaf4}
.office-brand .office-main :is(dialog,[role=dialog],.modal-content,.cm-modal-content){border-radius:14px;max-width:calc(100vw - 24px)}
/* Dashboard uses the same restrained white-card hierarchy as the approved reference. */
.office-brand .r14-breadcrumb{color:#2e628f;font-weight:750}
.office-brand .r14-welcome{min-height:155px;padding:28px 34px;border:1px solid #0b65ad;border-radius:14px;background:linear-gradient(110deg,#052754,#0a5398);box-shadow:0 12px 26px #0d4a8517}
.office-brand .r14-welcome:after{opacity:.11}
.office-brand .r14-welcome h1{font-size:clamp(24px,2.2vw,36px)!important}
.office-brand .r14-welcome-action{background:#fff;color:#0754a2;border-radius:9px}
.office-brand .r14-metric{min-height:115px}.office-brand .r14-panel{padding:22px}
.office-brand .r14-actions a{background:#f5f9ff;border-color:#dfeaf6}
.office-brand .r14-actions a:hover{background:#eaf5ff}
@media(max-width:1150px){.office-brand .r17-settings-grid{grid-template-columns:1fr}.office-brand .portal-header{background-size:cover,auto 100%}}
@media(max-width:850px){.office-brand .office-shell{grid-template-columns:205px minmax(0,1fr)}.office-brand .portal-logo{min-width:180px}.office-brand .portal-logo img{width:175px}.office-brand .r17-module-links{grid-template-columns:1fr}}
@media(max-width:650px){.office-brand .portal-header{height:auto;min-height:78px;padding:12px 14px}.office-brand .portal-logo{min-width:0}.office-brand .portal-logo img{width:140px}.office-brand .office-toolbar a{width:35px;height:35px}.office-brand .portal-header-actions{margin-left:4px;padding-left:9px}.office-brand .portal-account{display:none}.office-brand .office-shell{display:block}.office-brand .office-side{display:flex;overflow-x:auto;flex-wrap:nowrap}.office-brand .office-main{padding:18px 12px 36px}.office-brand .r17-setting-card{padding:14px}.office-brand .r17-card-head{flex-wrap:wrap}.office-brand .r14-welcome{padding:22px}.office-brand .r14-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.office-brand *{transition:none!important;animation:none!important}}

/* V0.05 R20: shared office visual system, isolated from core/technician/customer portals. */
.office-brand .portal-header{position:relative!important;isolation:isolate;overflow:visible;height:92px;min-height:92px;background:#061c3b!important;padding:0 24px;gap:12px;border-bottom:3px solid #0a92ff}
.office-brand .office-harbour-art{position:absolute;z-index:0;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 58%;pointer-events:none}
.office-brand .office-header-shade{position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,rgba(2,16,39,.94) 0%,rgba(2,19,45,.32) 22%,rgba(2,19,45,.1) 72%,rgba(2,16,39,.9) 100%);pointer-events:none}
.office-brand .portal-logo{z-index:2;min-width:235px;flex-shrink:0}.office-brand .portal-logo img{width:220px}
.office-brand .portal-header-name{display:none}
.office-brand .office-toolbar{display:flex;align-items:center;gap:8px;margin-left:auto;z-index:2}
.office-brand .office-toolbar a,.office-brand .office-tool-unavailable{width:39px;height:39px;display:grid;place-items:center;box-sizing:border-box;border:1px solid #ffffff45;border-radius:9px;background:#06284d99;color:#fff;font-size:20px;text-decoration:none}
.office-brand .office-tool-unavailable{opacity:.72;cursor:default}
.office-brand .portal-header-actions{position:relative;z-index:3;display:flex;align-items:center;margin-left:8px;padding-left:14px;border-left:1px solid #ffffff50}
.office-brand .office-profile-menu{position:relative;color:white}.office-brand .office-profile-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px}.office-brand .office-profile-menu summary::-webkit-details-marker{display:none}
.office-brand .office-avatar{height:37px;width:37px;display:grid;place-items:center;background:#1363b2;border-radius:50%;color:#d9efff;font-size:24px}
.office-brand .office-profile-panel{position:absolute;right:0;top:calc(100% + 14px);width:210px;padding:8px;border:1px solid #c6d9ee;background:#fff;box-shadow:0 14px 35px #001a3860;border-radius:10px;z-index:20}
.office-brand .office-profile-panel a{display:block;padding:11px 12px;border-radius:7px;color:#11365d;font-weight:700;font-size:13px;text-decoration:none}.office-brand .office-profile-panel a:hover{background:#eaf4ff}
.office-brand .office-side{background:linear-gradient(180deg,#061d40,#062c59 60%,#041c39);padding:16px 12px;gap:5px}
.office-brand .office-side-link{border-radius:8px;line-height:1.4}.office-brand .office-side-link:not(.disabled):hover{background:#15508c;color:#fff}.office-brand .office-side-link.active{background:linear-gradient(110deg,#0566dc,#0a9cff);box-shadow:0 5px 13px #00224d24}
.office-brand .office-main{background:linear-gradient(145deg,#f8fbff,#edf4fc 55%,#e9f2fd);padding:26px clamp(16px,2vw,35px) 50px;min-width:0}
.office-brand .r14-welcome{border-radius:13px;min-height:155px;background:linear-gradient(112deg,#082e63,#0b5aa4);padding:28px 34px}
.office-brand .r14-metric,.office-brand .r14-panel,.office-brand .r17-setting-card{border:1px solid #dce8f6;border-radius:13px;box-shadow:0 7px 23px #0d39630d}
.office-brand .r17-setting-card{border-top-width:4px}.office-brand .r17-module-links a{border-radius:10px}
.office-brand .office-main :is(button,.button,input[type=submit],a.button){font-family:inherit;transition:filter .15s ease,box-shadow .15s ease}.office-brand .office-main :is(button,.button,input[type=submit],a.button):hover{filter:brightness(1.06);box-shadow:0 3px 12px #0058b51b}
.office-brand .office-main :is(button,.button,input[type=submit],a.button):focus-visible,.office-brand .office-side a:focus-visible,.office-brand .office-profile-menu summary:focus-visible{outline:3px solid #54bfff;outline-offset:3px}
.office-brand .office-main :is(.r14-actions a,.r17-module-links a){border:1px solid #dbe8f6}
@media(max-width:900px){.office-brand .portal-logo{min-width:160px}.office-brand .portal-logo img{width:155px}.office-brand .office-toolbar{gap:4px}.office-brand .office-toolbar a,.office-brand .office-tool-unavailable{width:33px;height:35px;font-size:17px}.office-brand .office-shell{grid-template-columns:205px minmax(0,1fr)}}
@media(max-width:650px){.office-brand .portal-header{min-height:72px;height:72px;padding:8px 12px}.office-brand .portal-logo{min-width:0}.office-brand .portal-logo img{width:130px}.office-brand .office-tool-unavailable{display:none}.office-brand .office-profile-menu .portal-account{display:none}.office-brand .office-avatar{width:32px;height:32px}.office-brand .office-shell{display:block}.office-brand .office-main{padding:17px 12px 30px}.office-brand .r14-welcome{padding:20px}.office-brand .r14-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V0.06 R1 — dedicated Accounting workspaces */
.office-brand .accounting-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.office-brand .accounting-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.office-brand .accounting-metric{background:#fff;border:1px solid #d9e5f4;border-radius:13px;padding:21px;display:flex;flex-direction:column;gap:10px}
.office-brand .accounting-metric span{font-size:13px;color:#58738f}.office-brand .accounting-metric strong{font-size:25px;color:#092a54}
.office-brand .accounting-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.office-brand .accounting-section-heading h2{margin:0 0 5px}.office-brand .accounting-section-heading p{margin:0;color:#59748e}
.office-brand .accounting-filters{display:flex;gap:14px;flex-wrap:wrap;margin:0 0 18px}.office-brand .accounting-filters label{min-width:200px;max-width:350px;flex:1}.office-brand .accounting-table{width:100%;border-collapse:collapse}.office-brand .accounting-table td,.office-brand .accounting-table th{padding:15px 12px;vertical-align:middle}.office-brand .accounting-table tbody tr:hover{background:#f3f8ff}.office-brand .accounting-table tr[hidden]{display:none!important}.office-brand .accounting-status{font-weight:600;color:#174d87}
.office-brand .accounting-form-fields{display:grid;grid-template-columns:2fr 1fr 1fr;gap:15px}.office-brand .accounting-editor h3{margin:25px 0 13px}.office-brand .accounting-line-head,.office-brand .accounting-editor .r14-line-row{display:grid!important;grid-template-columns:minmax(200px,4fr) minmax(75px,1fr) minmax(125px,1.5fr) minmax(95px,1fr) 95px;gap:10px;align-items:end;margin-bottom:10px}.office-brand .accounting-line-head{font-size:12px;font-weight:700;color:#58738f;padding:0 6px}.office-brand .accounting-editor .r14-line-row label{min-width:0}.office-brand .accounting-editor .r14-line-row input,.office-brand .accounting-editor .r14-line-row select{width:100%;box-sizing:border-box}.office-brand .accounting-editor-bottom{display:grid;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:25px;margin:20px 0}.office-brand .accounting-editor-bottom textarea{width:100%;box-sizing:border-box}.office-brand .accounting-totals{background:#f2f7fc;border-radius:12px;padding:18px}.office-brand .accounting-totals>div{display:flex;justify-content:space-between;gap:16px;padding:9px 0}.office-brand .accounting-total-final{border-top:1px solid #cadcec;font-size:20px}.office-brand .accounting-form-actions{display:flex;justify-content:flex-end;gap:12px}
@media(max-width:950px){.office-brand .accounting-form-fields,.office-brand .accounting-editor-bottom{grid-template-columns:1fr}.office-brand .accounting-editor .r14-line-row{grid-template-columns:1fr 1fr!important}.office-brand .accounting-line-head{display:none}.office-brand .accounting-metrics{grid-template-columns:1fr}}

/* V0.06 R2 financial editor */
.financial-scope-wrap{grid-column:1/-1;margin:18px 0}.financial-scope-hint{font-size:13px;color:#64748b;margin:5px 0 12px}.financial-rich-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:10px;background:#edf3fa;border:1px solid #c7d5e5;border-radius:10px 10px 0 0}.financial-rich-toolbar button,.financial-rich-toolbar select{min-height:34px;border:1px solid #b7c8dc;border-radius:6px;background:#fff;color:#123459;padding:4px 10px;cursor:pointer}.financial-rich-editor{min-height:180px;padding:18px;background:#fff;border:1px solid #b7c8dc;border-top:0;border-radius:0 0 10px 10px;color:#152d47;line-height:1.6}.financial-rich-editor:focus{outline:2px solid #1885e0;outline-offset:-2px}.financial-scope-preview{margin:16px 0 22px;line-height:1.6;overflow-wrap:anywhere}.financial-scope-preview h2,.financial-scope-preview h3{color:#163b63}

/* V0.06 R4: shared invoice / quotation professional editor */
.office-brand .financial-scope-wrap{display:block;grid-column:1/-1;margin:22px 0 26px;min-width:0}
.office-brand .financial-scope-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:#0b2b51}
.office-brand .financial-scope-title strong{font-size:16px}.office-brand .financial-scope-title span{font-size:12px;color:#607b99}
.office-brand .financial-heading-label{display:block;font-size:13px;font-weight:700;margin-bottom:6px}
.office-brand .financial-scope-wrap>input{width:100%;box-sizing:border-box;max-width:100%}
.office-brand .financial-scope-hint{font-size:12px;margin:7px 0 13px}
.office-brand .financial-editor-frame{border:1px solid #c5d7eb;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 3px 12px rgba(9,42,84,.04)}
.office-brand .financial-rich-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:10px 12px;background:#f0f5fc;border:0;border-bottom:1px solid #c5d7eb;border-radius:0}
.office-brand .financial-rich-toolbar select{width:auto!important;min-width:0;flex:0 0 auto;margin:0;padding:6px 25px 6px 9px;min-height:35px;font-size:12px}
.office-brand .financial-rich-toolbar [data-rich-block]{width:136px!important}.office-brand .financial-rich-toolbar [data-rich-font]{width:115px!important}.office-brand .financial-rich-toolbar [data-rich-size]{width:77px!important}
.office-brand .financial-rich-toolbar button{display:inline-flex;align-items:center;justify-content:center;width:35px;min-width:35px;height:35px;min-height:35px;padding:0!important;font-size:14px;font-weight:700;border-radius:7px;box-shadow:none}
.office-brand .financial-rich-toolbar button:hover{background:#e0edff;border-color:#4398eb}
.office-brand .financial-toolbar-separator{width:1px;height:25px;background:#c6d7e8;margin:0 4px}
.office-brand .financial-color-control{display:flex;align-items:center;gap:2px;font-size:14px;font-weight:700;border:1px solid #b7c8dc;background:white;border-radius:7px;padding:4px 6px;height:35px;box-sizing:border-box}
.office-brand .financial-color-control input{width:21px;height:22px;padding:0;border:0;background:transparent;cursor:pointer}
.office-brand .financial-rich-editor{min-height:200px;padding:18px 20px;border:0;border-radius:0;line-height:1.65;outline:none;overflow-wrap:anywhere}
.office-brand .financial-rich-editor:focus{outline:none;box-shadow:inset 0 0 0 2px rgba(16,128,233,.24)}
.office-brand .financial-rich-editor:empty:before{content:attr(data-placeholder);color:#8a9caf;pointer-events:none}
.office-brand .financial-editor-footer{display:flex;justify-content:space-between;gap:10px;padding:9px 14px;border-top:1px solid #e1eaf5;background:#fafcff;color:#69819c;font-size:11px}
@media(max-width:700px){.office-brand .financial-rich-toolbar{gap:5px}.office-brand .financial-toolbar-separator{display:none}.office-brand .financial-editor-footer{flex-wrap:wrap}}

/* V0.06 R5: approved invoice/quote customer and document details panel */
.office-brand .financial-details-panel{margin:4px 0 26px;border:1px solid #d5e2f0;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 8px 28px rgba(11,46,84,.045)}
.office-brand .financial-details-header{display:flex;align-items:center;gap:13px;padding:20px 24px;background:#f3f7fc;border-bottom:1px solid #dbe7f3}
.office-brand .financial-details-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:11px;background:#e2eefc;color:#1263b5;font-size:25px;flex:none}
.office-brand .financial-details-header h3{margin:0 0 4px;font-size:19px;color:#092d57}
.office-brand .financial-details-header p{margin:0;font-size:13px;color:#617b97}
.office-brand .financial-draft-badge{margin-left:auto;border:1px solid #d4dfe9;border-radius:30px;padding:5px 13px;color:#55708c;background:#fff;font-size:12px;font-weight:700}
.office-brand .financial-details-body{padding:24px}
.office-brand .financial-details-section h4{display:flex;align-items:center;gap:9px;margin:0 0 15px;color:#10385f;font-size:15px}
.office-brand .financial-details-section h4 span{color:#0879d8;font-size:19px}
.office-brand .financial-customer-fields{display:grid;grid-template-columns:1fr;gap:16px}
.office-brand .financial-details-panel label{display:block;margin:0;font-size:13px;font-weight:700;color:#17385b}
.office-brand .financial-details-panel label select,.office-brand .financial-details-panel label input{display:block;width:100%;box-sizing:border-box;margin-top:7px;min-height:46px;padding:10px 14px;border:1px solid #c7d8eb;border-radius:9px;background:#fff;color:#102f51;font-size:14px}
.office-brand .financial-details-panel label select:focus,.office-brand .financial-details-panel label input:focus{outline:2px solid #77b7ff;outline-offset:1px}
.office-brand .financial-required{color:#d93b4c}.office-brand .financial-optional{font-weight:400;color:#65809a}
.office-brand .financial-site-help{display:block;margin-top:7px;color:#68839b;font-size:12px;font-weight:400}
.office-brand .financial-dates-section{margin-top:24px;padding-top:22px;border-top:1px solid #e0eaf3}
.office-brand .financial-date-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.office-brand .financial-edit-form .financial-details-panel{grid-column:1/-1}
@media(max-width:680px){.office-brand .financial-details-header{padding:16px;flex-wrap:wrap}.office-brand .financial-details-body{padding:16px}.office-brand .financial-date-fields{grid-template-columns:1fr}.office-brand .financial-draft-badge{margin-left:0}}

/* V0.06 R6: compact, balanced customer/site selector layout */
.office-brand .financial-customer-fields{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;row-gap:8px;align-items:start}
.office-brand .financial-details-body{padding:20px 24px}
.office-brand .financial-details-section h4{margin-bottom:11px}
.office-brand .financial-details-panel label select,.office-brand .financial-details-panel label input{min-height:42px;margin-top:6px;padding:8px 12px}
.office-brand .financial-site-help{margin-top:5px;line-height:1.3}
.office-brand .financial-dates-section{margin-top:16px;padding-top:17px}
@media(max-width:680px){.office-brand .financial-customer-fields{grid-template-columns:1fr}.office-brand .financial-details-body{padding:16px}}

/* R8: document email composer */
.office-brand .financial-email-compose{max-width:950px;border:1px solid #d4e3f4;border-radius:14px;overflow:hidden;background:#fff}.office-brand .financial-compose-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;background:#eef5fd;border-bottom:1px solid #d4e3f4}.office-brand .financial-compose-header strong{font-size:18px;color:#092f59}.office-brand .financial-compose-header p{margin:4px 0 0;color:#58708c}.office-brand .financial-compose-attachment{font-size:13px;color:#075ca7;background:#fff;border:1px solid #cddff1;padding:8px 12px;border-radius:20px}.office-brand .financial-compose-field{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 20px;border-bottom:1px solid #e3ecf5}.office-brand .financial-compose-field label{font-weight:700;margin:0}.office-brand .financial-compose-field input{width:100%;min-width:0;margin:0;border:1px solid #c8d9ee;border-radius:8px;padding:10px 12px}.office-brand .financial-compose-source{font-size:12px;color:#557494}.office-brand .financial-compose-help{padding:8px 20px;margin:0;color:#58708c;font-size:12px}.office-brand .financial-compose-message{display:block;margin:0;padding:12px 20px;font-weight:700}.office-brand .financial-compose-message textarea{display:block;width:100%;min-height:170px;margin-top:8px;font-weight:400;border:1px solid #c8d9ee;border-radius:10px;padding:12px}.office-brand .financial-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;background:#f4f8fd;border-top:1px solid #d4e3f4}.office-brand .financial-compose-footer span{font-size:13px;color:#56708d}@media(max-width:740px){.office-brand .financial-compose-header{align-items:flex-start;flex-direction:column}.office-brand .financial-compose-field{grid-template-columns:1fr}.office-brand .financial-compose-source{grid-column:1}.office-brand .financial-compose-footer{flex-direction:column;align-items:stretch}}

/* R12 compact module grids: scoped to module management pages */
.module-addon-grid,.module-admin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px;align-items:start}
.module-addon-grid .module-addon-card,.module-admin-grid .module-admin-card{min-height:0!important;margin:0!important;padding:15px!important;border-radius:11px;box-shadow:0 3px 12px #123b6310}
.module-addon-card h2,.module-admin-card h2{font-size:15px!important;line-height:1.35;margin:0 0 10px!important}
.module-addon-card p,.module-admin-card p{font-size:12px;margin:8px 0}
.module-addon-card .button,.module-admin-card .button{width:auto;max-width:100%;padding:9px 12px;font-size:12px;white-space:normal}
.module-admin-card form{margin:10px 0}.module-admin-card select{width:100%;max-width:100%}.module-admin-card label{font-size:12px}
@media(max-width:1250px){.module-addon-grid,.module-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.module-addon-grid,.module-admin-grid{grid-template-columns:minmax(0,1fr)}}

/* R13: Core-only tenant development access details */
.module-access-details{margin-top:12px;border:1px solid #cbd9ed;border-radius:9px;background:#f8fbff;padding:10px 12px}
.module-access-details summary{cursor:pointer;font-weight:700;color:#064a9a}
.module-access-content{padding-top:10px}.module-access-content h3{margin:0 0 10px;font-size:1rem}
.module-access-table-wrap{overflow-x:auto}.module-access-table{width:100%;border-collapse:collapse;font-size:.85rem}
.module-access-table th,.module-access-table td{padding:9px 7px;border-bottom:1px solid #dce6f2;text-align:left;vertical-align:top}
.module-access-table code{font-size:.75rem;overflow-wrap:anywhere}

/* V0.06 R15 Inventory register and item editor */
.r14-register-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.r14-register-bar h2{margin:0}.r14-search-label{display:block;max-width:440px;margin:16px 0}.r14-search-label input{display:block;width:100%;margin-top:6px}.r14-table-wrap{overflow-x:auto}.r14-item-link{background:none;border:0;color:#1261b4;text-decoration:underline;cursor:pointer;font:inherit;padding:2px 0;text-align:left}.r14-stock-dialog{border:0;border-radius:14px;padding:0;max-width:min(680px,calc(100vw - 24px));width:100%;box-shadow:0 20px 70px #0005;color:#172b4d}.r14-stock-dialog::backdrop{background:#061b35a8}.r14-stock-form{padding:0}.r14-modal-head{background:#092f61;color:white;padding:18px 22px;display:flex;justify-content:space-between;align-items:center}.r14-modal-head h2{color:white;margin:0}.r14-close{background:transparent;color:white;border:0;font-size:28px;cursor:pointer}.r14-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:22px}.r14-fields label{display:block}.r14-fields input,.r14-fields textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px}.r14-wide{grid-column:1/-1}.r14-modal-actions{display:flex;justify-content:flex-end;gap:12px;padding:14px 22px;border-top:1px solid #dce3ec}.r14-movement-form{display:flex;gap:12px;flex-wrap:wrap;padding:14px}.r14-settings-link{margin-top:20px}@media(max-width:560px){.r14-fields{grid-template-columns:1fr}.r14-wide{grid-column:auto}}

/* R15 tenant interface consistency corrections */
.r14-stock-dialog{position:fixed!important;inset:0!important;margin:auto!important;width:min(620px,calc(100vw - 32px))!important;max-width:620px!important;max-height:calc(100dvh - 36px)!important;height:auto!important;overflow:auto!important;border-radius:14px!important;box-sizing:border-box!important}
.r14-stock-dialog:not([open]){display:none!important}
.r14-stock-dialog[open]{display:block!important}
.r14-stock-dialog .r14-modal-head{padding:13px 18px!important;min-height:54px;box-sizing:border-box}
.r14-stock-dialog .r14-modal-head h2{font-size:19px!important;line-height:1.3!important}
.r14-stock-dialog .r14-fields{padding:18px!important;gap:12px 14px!important}
.r14-stock-dialog .r14-fields label{font-size:12px!important;font-weight:650!important}
.r14-stock-dialog .r14-fields input,.r14-stock-dialog .r14-fields textarea{min-height:38px!important;padding:8px 10px!important;font-size:14px!important;border-radius:8px!important}
.r14-stock-dialog .r14-fields textarea{min-height:58px!important;resize:vertical}
.r14-stock-dialog .r14-modal-actions{padding:12px 18px!important}
.module-addon-grid{align-items:stretch!important}
.module-addon-grid .module-addon-card{display:flex!important;flex-direction:column!important;gap:10px!important;min-height:190px!important;padding:18px!important}
.module-addon-card h2{font-size:16px!important;margin:0!important;line-height:1.3!important}
.module-addon-card>p:not(.module-status):not(.module-open-link){margin:0!important;line-height:1.5!important;color:#50647c!important}
.module-addon-card .module-status{display:inline-flex;align-items:center;align-self:flex-start;width:auto;margin:0!important;padding:5px 10px;border-radius:999px;font-size:11px!important;font-weight:750;letter-spacing:.01em}
.module-addon-card .module-status.is-active{background:#e7f6ed;color:#16663b}
.module-addon-card .module-status.is-available{background:#e9f1fb;color:#23527f}
.module-addon-card form{margin-top:auto!important}
.module-addon-card form .button{display:inline-flex!important;width:auto!important;min-width:0!important;padding:8px 13px!important;border-radius:8px!important;box-shadow:none!important;font-size:12px!important}
.module-addon-card form button[value=deactivate]{background:#fff!important;color:#a43a3a!important;border:1px solid #e7b8b8!important}
.module-addon-card .module-open-link{display:flex;gap:12px;flex-wrap:wrap;margin:0!important;font-size:12px!important}
.module-addon-card .module-open-link a{text-decoration:none;font-weight:650;color:#0865bd}
@media(max-width:650px){.r14-stock-dialog{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important}.r14-stock-dialog .r14-fields{grid-template-columns:1fr!important}}

/* R16: restore distinct activation and module-navigation buttons without altering access checks. */
.module-addon-card p a.button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;max-width:100%!important;padding:9px 14px!important;border-radius:8px!important;font-size:12px!important;text-decoration:none!important;color:#fff!important;background:#0879e4!important;box-sizing:border-box!important}
.module-addon-card p a.button:hover{background:#065eae!important}
.module-addon-card form .button{background:#0879e4!important;color:#fff!important;border:1px solid #0879e4!important}
.module-addon-card form button[value=deactivate]{background:#fff!important;color:#a43a3a!important;border:1px solid #e7b8b8!important}
.module-addon-card p{margin:0!important}
/* V0.07 R3 — Inventory item editor */
.stock-editor-dialog{width:min(850px,calc(100vw - 28px));max-width:850px;max-height:min(92vh,900px);padding:0;overflow:hidden;border-radius:16px}.stock-editor-form{display:flex;flex-direction:column;max-height:min(92vh,900px)}.stock-editor-dialog .r14-modal-head{flex:0 0 auto}.stock-editor-subtitle{margin:5px 0 0;color:#c7dafa;font-size:13px}.stock-editor-content{padding:0 22px 18px;overflow:auto;flex:1 1 auto}.stock-editor-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:17px 0;border-bottom:1px solid #dbe5f2}.stock-editor-panel{padding:14px 0}.stock-editor-panel[hidden],#stock-opening-fields[hidden],#stock-photo-remove-wrap[hidden],#stock-photo-preview[hidden]{display:none!important}.stock-editor-panel h3{color:#12365c;margin:0 0 15px;font-size:17px}.stock-editor-panel h4{margin:12px 0 5px}.stock-editor-panel p{color:#52647b;font-size:13px}.stock-editor-dialog .r14-fields{gap:14px}.stock-photo-area{border:1px dashed #b7cde5;background:#f7faff;padding:14px;border-radius:10px}.stock-photo-area img{display:block;max-width:180px;max-height:130px;object-fit:contain;margin:12px 0;border-radius:7px}.stock-editor-checks{display:grid;gap:12px;margin-bottom:18px}.stock-editor-checks label{display:flex;align-items:center;gap:10px}.stock-location-line{display:flex;justify-content:space-between;border-bottom:1px solid #e1eaf5;padding:9px 3px}.stock-editor-dialog .r14-modal-actions{flex:0 0 auto}@media(max-width:600px){.stock-editor-content{padding:0 14px 12px}.stock-editor-tabs{display:grid;grid-template-columns:1fr 1fr}}

/* V0.07 R3: inventory editor spacing and checkbox alignment */
.stock-editor-dialog.r14-stock-dialog{height:auto!important;max-height:calc(100dvh - 28px)!important;overflow:hidden!important}
.stock-editor-dialog .stock-editor-form{height:auto!important;min-height:0!important;max-height:calc(100dvh - 28px)!important;display:flex!important;flex-direction:column!important}
.stock-editor-dialog .stock-editor-content{flex:0 1 auto!important;min-height:0!important;overflow-y:auto!important;padding:0 22px 16px!important}
.stock-editor-dialog .stock-editor-panel{padding:16px 0 8px!important}
.stock-editor-dialog .stock-editor-panel .r14-fields{padding:6px 0 10px!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px 14px!important}
.stock-editor-dialog .stock-editor-panel .r14-fields>label{min-width:0;display:flex;flex-direction:column;gap:6px;line-height:1.35}
.stock-editor-dialog .stock-editor-panel .r14-fields input,.stock-editor-dialog .stock-editor-panel .r14-fields select{width:100%;min-width:0;box-sizing:border-box;min-height:40px}
.stock-editor-dialog .stock-editor-panel .r14-wide{grid-column:1/-1;min-width:0}
.stock-editor-dialog .stock-editor-panel h4{margin:12px 0 5px!important}
.stock-editor-dialog .stock-editor-panel p{margin:6px 0 12px!important}
.stock-editor-dialog .stock-editor-checks{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important;margin:10px 0 16px!important}
.stock-editor-dialog .stock-editor-checks .stock-editor-check{display:inline-flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:12px!important;width:auto!important;max-width:100%!important;margin:0!important;font-size:14px!important;font-weight:600!important;color:#17365b!important;cursor:pointer}
.stock-editor-dialog .stock-editor-checks .stock-editor-check span{display:inline!important;order:0!important}
.stock-editor-dialog .stock-editor-checks .stock-editor-check input[type=checkbox]{appearance:auto!important;position:static!important;display:inline-block!important;order:1!important;flex:0 0 17px!important;width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;margin:0!important;padding:0!important;vertical-align:middle!important}
.stock-editor-dialog .r14-modal-actions{margin-top:0!important;flex:0 0 auto!important;padding:12px 18px!important}
.stock-editor-dialog .stock-bin-section{border-top:1px solid #e1eaf5;margin-top:6px;padding-top:10px}
@media(max-width:600px){.stock-editor-dialog .stock-editor-content{padding:0 14px 12px!important}.stock-editor-dialog .stock-editor-panel .r14-fields{grid-template-columns:1fr!important}.stock-editor-dialog .stock-editor-panel .r14-wide{grid-column:1!important}}

/* V0.07 R14 — shared office layout alignment.
   The generic .portal-main margin:auto vertically centres short office pages
   inside the flex shell. Office content must remain top aligned. */
.office-brand .office-shell > main.office-main.portal-main{margin:0;align-self:stretch;min-height:0;box-sizing:border-box;}
.office-brand .office-main > .workspace-heading:first-child{min-height:0;margin-top:0;}
@media(max-width:720px){.office-brand .office-shell > main.office-main.portal-main{margin:0;width:100%;}}

/* Module page CSS migrated from inline markup into central stylesheet, V0.08 R1. */

/* purchasing */
.po-dashboard{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0}.po-stat{background:#fff;border:1px solid #dce6f4;border-radius:12px;padding:17px}.po-stat strong{display:block;color:#0b315d;font-size:28px}.po-stat span{font-size:12px;color:#51647d}.po-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.po-toolbar input,.po-toolbar select{padding:11px;border:1px solid #cbdcf0;border-radius:8px}.po-pill{display:inline-block;border-radius:99px;padding:5px 10px;font-size:12px;font-weight:700;background:#edf4ff;color:#174875}.po-pill.draft{background:#fff4df;color:#8a5900}.po-pill.received{background:#e5f8ec;color:#176a3a}.po-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.po-actions button,.po-actions a{border-radius:7px;padding:8px 10px;border:1px solid #cbdcf0;background:#f6f9ff;color:#123b68;text-decoration:none;font-weight:600;cursor:pointer}.po-actions form{display:inline-flex;gap:6px;align-items:center}.po-actions input{width:180px;max-width:100%}.po-workflow{display:none;margin:10px 0 0;padding:14px;background:#f5f9ff;border-radius:10px;border:1px solid #dce6f4}.po-workflow:target{display:block}.po-table-wrap{overflow-x:auto}.po-empty{padding:22px;color:#60718a;text-align:center}.po-section{margin-top:20px}.po-section summary{cursor:pointer;font-weight:700;color:#0b315d;padding:10px 0}@media(max-width:800px){.po-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.po-actions{flex-direction:column;align-items:stretch}.po-actions form{flex-wrap:wrap}}

/* purchasing */
.po-open-row{cursor:pointer}.po-open-row:hover{background:#eef5ff}.po-open-row:focus-visible{outline:3px solid #1976d2;outline-offset:-3px}.po-number-link{font-weight:750;color:#0756a3;text-decoration:underline;text-underline-offset:3px}.po-detail{margin-bottom:20px;padding:22px}.po-detail-header{display:flex;justify-content:space-between;gap:15px;align-items:center}.po-detail-form{display:grid;gap:12px;margin:12px 0 24px}.po-detail-form label,.po-detail-actions label{display:grid;gap:5px}.po-detail-form input,.po-detail-form select,.po-detail-form textarea,.po-detail-actions input{padding:10px;border:1px solid #cbdcf0;border-radius:8px;max-width:100%}.po-detail-actions{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:14px 0 22px}.po-edit-line{display:grid;grid-template-columns:2fr 3fr 1fr 1fr;gap:10px;border-bottom:1px solid #e2e9f3;padding:10px 0}.po-bill{border:1px solid #dce6f3;border-radius:10px;padding:14px;margin:12px 0}@media(max-width:720px){.po-edit-line{grid-template-columns:1fr}.po-detail-header{flex-direction:column;align-items:start}} 

/* purchasing */
.po-create-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fff;border:1px solid #d9e5f4;border-radius:13px;padding:16px 20px;margin:16px 0}.po-create-toolbar strong{font-size:17px;color:#0b315d}.po-create-toolbar p{margin:4px 0 0;color:#516983}.po-create-buttons{display:flex;flex-wrap:wrap;gap:10px}.po-create-buttons button{white-space:nowrap}.po-prerequisite{padding:12px 16px;background:#f5f8fd;border-left:3px solid #147bd2;border-radius:5px}.po-editor[open]{scroll-margin-top:90px;border:2px solid #1683e4;box-shadow:0 10px 26px #10375d18}.po-editor summary{cursor:pointer}.po-editor form{display:grid;gap:12px}.po-editor form label{display:block}.po-editor form input,.po-editor form select,.po-editor form textarea{max-width:100%;box-sizing:border-box}@media(max-width:680px){.po-create-toolbar{align-items:stretch;flex-direction:column}.po-create-buttons{width:100%}.po-create-buttons button{flex:1}} .po-editor[open]{position:fixed;inset:5vh auto auto 50%;transform:translateX(-50%);width:min(750px,calc(100vw - 28px));max-height:90vh;overflow:auto;z-index:2002;background:#fff;border-radius:15px;padding:22px;box-sizing:border-box}.po-editor[open] summary{background:#0c315f;color:white;border-radius:8px;padding:12px}body:has(.po-editor[open]):before,.po-modal-open:before{content:"";position:fixed;inset:0;background:rgba(5,20,40,.65);z-index:2001}.po-inline-action{margin:0}.po-inline-action a{color:#087bd5;font-weight:700}@media(max-width:700px){.po-editor[open]{top:2vh;max-height:96vh;padding:14px}} 

/* purchasing */

.po-stock-results{display:block;max-height:210px;overflow-y:auto;border:1px solid #cbdcf0;border-radius:8px;background:#fff;box-shadow:0 8px 24px #09284b20}.po-stock-results[hidden]{display:none}.po-stock-choice{display:block;width:100%;padding:10px 12px;text-align:left;border:0;border-bottom:1px solid #e7eef7;background:#fff;color:#12365e;cursor:pointer}.po-stock-choice:hover,.po-stock-choice:focus{background:#e9f4ff}.po-stock-choice small{display:block;color:#62778f;margin-top:3px}.po-stock-selected{font-size:12px;color:#186b46;font-weight:600}
.po-editor{display:none}.po-editor[open]{display:block;position:fixed;inset:3vh auto auto 50%;transform:translateX(-50%);width:min(1000px,calc(100vw - 24px));max-height:94vh;overflow:auto;z-index:2002;background:#fff;border:0;border-radius:16px;padding:0;box-shadow:0 22px 70px #051a3560;box-sizing:border-box}.po-editor>summary{display:none}.po-dialog{display:block}.po-dialog-head{background:#10335f;color:#fff;padding:21px 26px;display:flex;justify-content:space-between;align-items:center;gap:20px}.po-dialog-head h2{margin:0;color:#fff;font-size:24px}.po-dialog-head p{margin:5px 0 0;color:#d9e8fa}.po-close{font-size:30px;color:white;text-decoration:none}.po-dialog-body{padding:22px 26px;display:grid;gap:18px}.po-header-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.po-dialog label{display:grid;gap:6px;font-size:13px;font-weight:650;color:#153b67}.po-dialog input,.po-dialog select,.po-dialog textarea{box-sizing:border-box;width:100%;padding:11px;border:1px solid #cbdcf0;border-radius:8px;font:inherit}.po-dialog input:disabled{background:#f2f6fb;color:#647b94}.po-items-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.po-items-head h3{margin:0;color:#10335f}.po-items-head p{margin:3px 0;color:#60758d;font-size:13px}.po-line{border:1px solid #dce6f3;background:#fafcff;border-radius:10px;padding:14px;margin-bottom:10px}.po-line-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:#14385d}.po-remove-line{border:0;background:transparent;color:#b13a3a;cursor:pointer}.po-line-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;align-items:end}.po-wide{grid-column:span 3}.po-line-amount{display:grid;gap:6px;text-align:right}.po-line-amount small{color:#536e88}.po-total{display:flex;justify-content:flex-end;gap:30px;padding:15px;border-top:1px solid #dce6f3;font-weight:700;color:#10335f}.po-dialog-foot{position:sticky;bottom:0;background:white;border-top:1px solid #dce6f3;padding:15px 26px;display:flex;justify-content:flex-end;gap:12px;align-items:center}.po-cancel{border:1px solid #a9c6e7;padding:11px 20px;border-radius:8px;color:#10335f;text-decoration:none;font-weight:700}body:has(.po-editor[open]):before{content:"";position:fixed;inset:0;background:rgba(5,20,40,.65);z-index:2001}@media(max-width:650px){.po-dialog-head,.po-dialog-body,.po-dialog-foot{padding:15px}.po-header-fields,.po-line-grid{grid-template-columns:1fr}.po-wide{grid-column:auto}.po-dialog-foot{flex-wrap:wrap}}


/* purchasing */
.po-email-dialog[hidden],.po-email-backdrop[hidden]{display:none!important}.po-email-dialog{position:fixed;z-index:2040;top:5vh;left:50%;transform:translateX(-50%);width:min(950px,calc(100vw - 24px));max-height:90vh;overflow:auto;background:#fff;border-radius:14px;box-shadow:0 25px 90px #061b3d88}.po-email-dialog .financial-email-compose{max-width:none;border:0}.po-email-backdrop{position:fixed;z-index:2039;inset:0;background:rgba(5,20,40,.72)}.po-email-close{border:0;background:transparent;font-size:28px;cursor:pointer;color:#14395d}@media(max-width:740px){.po-email-dialog{top:2vh;max-height:96vh}} 

/* purchasing */
.po-detail-modal{position:fixed;top:3vh;left:50%;transform:translateX(-50%);width:min(1050px,calc(100vw - 24px));height:auto;max-height:94vh;overflow:auto;z-index:2010;background:#fff;box-sizing:border-box;box-shadow:0 20px 70px #061b3d66;border-radius:16px}.po-detail-modal .po-detail-header{background:#10335f;color:#fff;margin:-22px -22px 18px;padding:20px 24px}.po-detail-modal .po-detail-header h2{color:#fff}.po-detail-modal .po-detail-header a{color:#fff}.po-detail-modal .po-detail-header .button{background:#fff;color:#10335f}.po-detail-modal .po-detail-header .po-pill{margin-top:8px}.po-edit-line{grid-template-columns:minmax(130px,2fr) minmax(170px,3fr) minmax(90px,1fr) minmax(110px,1fr) auto;align-items:end}.po-edit-remove{border:1px solid #dfb9b9;color:#a12f2f;background:#fff;padding:10px;border-radius:8px;cursor:pointer}.po-details-backdrop{position:fixed;inset:0;background:rgba(5,20,40,.65);z-index:2009}body:has(.po-detail-modal){overflow:hidden}@media(max-width:720px){.po-detail-modal{top:1vh;max-height:98vh;padding:14px}.po-detail-modal .po-detail-header{margin:-14px -14px 16px;padding:16px}.po-edit-line{grid-template-columns:1fr}.po-edit-remove{justify-self:start}}

/* suppliers */
.supplier-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff;border:1px solid #dce6f4;border-radius:13px;padding:18px;margin:16px 0}.supplier-toolbar strong{color:#10365e;font-size:18px}.supplier-toolbar p{color:#61738b;margin:4px 0}.supplier-actions{display:flex;gap:10px;flex-wrap:wrap}.supplier-secondary{background:#edf4fc!important;color:#10365e!important}.supplier-search{margin-bottom:14px}.supplier-search input{width:min(460px,100%);padding:12px;border:1px solid #c8d9ef;border-radius:8px}.supplier-table-wrap{overflow-x:auto}.supplier-edit{background:#e8f2ff;color:#0759a0;border:0;border-radius:7px;padding:8px 15px;cursor:pointer}.supplier-backdrop:not([hidden]){position:fixed;inset:0;background:#071b34aa;z-index:3000;display:flex;align-items:center;justify-content:center;padding:16px}.supplier-modal{width:min(850px,100%);max-height:94vh;overflow:auto;background:white;border-radius:14px;box-shadow:0 22px 70px #071b3477}.supplier-modal header{display:flex;align-items:center;justify-content:space-between;background:#0c315f;color:white;padding:18px 22px}.supplier-modal h2{margin:0;color:white}.supplier-modal header p{margin:3px 0 0;color:#dce9fa}.supplier-modal header #supplier-close{background:transparent;border:0;color:white;font-size:30px;cursor:pointer}.supplier-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:24px}.supplier-fields label:first-child{grid-column:auto}.supplier-fields label{display:flex;flex-direction:column;gap:7px;font-weight:600;color:#18395e}.supplier-fields input,.supplier-fields select,.supplier-fields textarea{border:1px solid #c8d9ef;border-radius:8px;padding:12px;min-width:0}.supplier-modal footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e1e9f5;padding:16px 24px}@media(max-width:640px){.supplier-toolbar{align-items:stretch;flex-direction:column}.supplier-fields{grid-template-columns:1fr}.supplier-fields label:first-child{grid-column:auto}}.supplier-panel{border:0;padding:0;margin:0}.supplier-panel legend{font-size:17px;font-weight:700;color:#123961;padding:16px 24px 0}.supplier-panel[hidden]{display:none}.supplier-tabs{display:flex;flex-wrap:wrap;gap:7px;padding:16px 20px 0}.supplier-tab{border:1px solid #bed2ed;background:#edf4fc;color:#123961;padding:9px 12px;border-radius:8px;cursor:pointer}.supplier-tab[aria-selected="true"]{background:#096ad0;color:#fff}.supplier-fields{padding-top:14px}


/* V0.08 R1: unified module controls. Customers & Sites are the approved visual reference. */
.office-main :is(.supplier-page,.po-detail,.financial-document-page) :is(a.cm-primary,button.cm-primary,input.cm-primary){display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#0872bf;color:#fff!important;border:0;border-radius:8px;padding:10px 14px;font-size:13px;font-weight:700;text-decoration:none;cursor:pointer;min-height:38px;box-sizing:border-box}
.office-main :is(.supplier-page,.po-detail,.financial-document-page) :is(a.cm-secondary,button.cm-secondary){display:inline-flex;align-items:center;justify-content:center;background:#eaf1f6;color:#244963!important;border:0;border-radius:8px;padding:10px 14px;text-decoration:none;font-weight:700;cursor:pointer}
.office-main :is(a.cm-primary,button.cm-primary,a.cm-secondary,button.cm-secondary):focus-visible{outline:3px solid #f3a536;outline-offset:2px}
.supplier-modal header,.po-detail-modal .po-detail-header,.po-email-dialog header{background:linear-gradient(110deg,#102d4c,#0c548b);color:#fff;border-bottom:1px solid #e4eaf0;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.supplier-modal header h2,.po-detail-modal .po-detail-header h2,.po-email-dialog header h2{color:#fff;margin:0}
.supplier-modal header .cm-close{color:#fff;text-decoration:none;font-size:28px;line-height:1}
.supplier-modal,.po-detail-modal,.po-email-dialog{border-radius:16px;box-shadow:0 20px 80px rgba(7,22,40,.3)}
.stock-editor-dialog .r14-modal-head{background:linear-gradient(110deg,#102d4c,#0c548b)!important}
@media(max-width:640px){.supplier-modal header,.po-detail-modal .po-detail-header,.po-email-dialog header{padding:14px;gap:8px}.supplier-modal,.po-detail-modal,.po-email-dialog{max-width:calc(100vw - 20px)}}

/* V0.08 R2 — centrally maintained Customers & Sites control standard */
.portal-app :is(.supplier-modal,.po-detail-modal,.po-email-dialog,.po-dialog,.stock-editor-dialog) :is(.cm-dialog-head,.po-detail-header,.po-dialog-head,.financial-compose-header){background:linear-gradient(110deg,#102d4c,#0c548b);color:#fff;border-bottom:1px solid #e4eaf0}
.portal-app :is(.supplier-modal,.po-detail-modal,.po-email-dialog,.po-dialog,.stock-editor-dialog) :is(.cm-dialog-head,.po-detail-header,.po-dialog-head) h2{color:#fff}
.portal-app :is(.supplier-modal,.po-detail-modal,.po-email-dialog,.po-dialog,.stock-editor-dialog) :is(.cm-close,.po-close,.po-email-close){color:#fff;background:transparent;border:0;text-decoration:none;font-size:28px;line-height:1;cursor:pointer}
.portal-app :is(.cm-primary,.cm-secondary,.cm-danger){display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;min-height:38px;box-sizing:border-box;font:700 13px/1.3 inherit;border-radius:8px;padding:10px 15px;cursor:pointer}
.portal-app .cm-primary{background:#0872bf;color:#fff;border:1px solid #0872bf}
.portal-app .cm-secondary{background:#eaf1f6;color:#244963;border:1px solid #cadbe8}
.portal-app .cm-danger{background:#b02e3d;color:#fff;border:1px solid #b02e3d}
.portal-app :is(.cm-primary,.cm-secondary,.cm-danger,.cm-close):focus-visible{outline:3px solid #f4af3e;outline-offset:2px}
.portal-app :is(.cm-primary,.cm-secondary,.cm-danger):disabled{opacity:.55;cursor:not-allowed}
.portal-app :is(.supplier-modal,.po-detail-modal,.po-email-dialog,.po-dialog,.stock-editor-dialog){max-height:calc(100dvh - 24px);overscroll-behavior:contain}
@media(max-width:640px){.portal-app :is(.supplier-modal,.po-detail-modal,.po-email-dialog,.po-dialog,.stock-editor-dialog){max-width:calc(100vw - 20px)}.portal-app .cm-dialog-actions{flex-wrap:wrap}}

/* V0.08 R3 shared workflow pop-up treatment: inventory movements and PO template settings */
.portal-app .cm-workflow-open{margin:8px 8px 8px 0}
.portal-app .cm-workflow-dialog{width:min(780px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #cdddeb;border-radius:15px;box-shadow:0 24px 70px rgba(7,22,40,.35);overflow:auto;background:#fff;color:#18395e}
.portal-app .cm-workflow-dialog::backdrop{background:rgba(7,27,52,.68)}
.portal-app .cm-workflow-dialog>.cm-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;background:linear-gradient(110deg,#102d4c,#0c548b);color:#fff}
.portal-app .cm-workflow-dialog>.cm-dialog-head h2{color:#fff;margin:0;font-size:19px}
.portal-app .cm-workflow-dialog>.cm-dialog-head .cm-close{color:#fff;background:transparent;border:0;font-size:28px;cursor:pointer}
.portal-app .cm-workflow-dialog>.cm-workflow-content{border:0;margin:0;padding:20px;box-shadow:none;background:#fff}
.portal-app .cm-workflow-dialog>.cm-workflow-content>summary{display:none}
.portal-app .cm-workflow-dialog :is(input,select,textarea){max-width:100%;box-sizing:border-box}
@media(max-width:640px){.portal-app .cm-workflow-dialog>.cm-workflow-content{padding:14px}.portal-app .cm-workflow-dialog>.cm-dialog-head{padding:14px}}

/* V0.08 R5: Tenant modal design contract, shared across Customers, Sites, Assets, Stock, Suppliers and Purchasing. */
.portal-app :is(dialog.cm-dialog,dialog.cs-form-dialog,.supplier-modal,.po-detail-modal,.po-email-dialog,.po-dialog,.stock-editor-dialog,.cm-workflow-dialog){border-radius:15px;box-shadow:0 20px 75px rgba(7,22,40,.3);color:#173954;max-height:calc(100dvh - 24px);overflow:auto}
.portal-app :is(dialog.cm-dialog,dialog.cs-form-dialog,.supplier-modal,.po-detail-modal,.po-email-dialog,.po-dialog,.stock-editor-dialog,.cm-workflow-dialog) :is(.cm-dialog-head,.po-detail-header,.po-dialog-head,.financial-compose-header){background:linear-gradient(110deg,#102d4c,#0c548b);color:#fff;min-height:78px;box-sizing:border-box;padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.portal-app :is(dialog.cm-dialog,dialog.cs-form-dialog,.supplier-modal,.po-detail-modal,.po-email-dialog,.po-dialog,.stock-editor-dialog,.cm-workflow-dialog) :is(.cm-close,.po-close,.po-email-close){display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:10px;border:1px solid transparent;background:rgba(0,103,184,.16);color:#fff;font-size:27px;font-weight:700;text-decoration:none;cursor:pointer;flex-shrink:0}
.portal-app :is(dialog.cm-dialog,dialog.cs-form-dialog,.supplier-modal,.po-detail-modal,.po-email-dialog,.po-dialog,.stock-editor-dialog,.cm-workflow-dialog) :is(.cm-close,.po-close,.po-email-close):is(:hover,:focus-visible){background:#0b619f;border-color:#74c4ff}
.portal-app :is(dialog.cm-dialog,dialog.cs-form-dialog,.supplier-modal,.po-detail-modal,.po-email-dialog,.po-dialog,.stock-editor-dialog,.cm-workflow-dialog) :is(.cm-primary,.cm-secondary,.cm-danger){display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 15px;border-radius:8px;font-size:13px;font-weight:700;text-decoration:none;cursor:pointer}
.portal-app :is(dialog.cm-dialog,dialog.cs-form-dialog,.supplier-modal,.po-detail-modal,.po-email-dialog,.po-dialog,.stock-editor-dialog,.cm-workflow-dialog) :is(input,select,textarea):focus-visible{outline:2px solid #1685d3;outline-offset:1px}
@media(max-width:640px){.portal-app :is(dialog.cm-dialog,dialog.cs-form-dialog,.supplier-modal,.po-detail-modal,.po-email-dialog,.po-dialog,.stock-editor-dialog,.cm-workflow-dialog){max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.portal-app :is(dialog.cm-dialog,dialog.cs-form-dialog,.supplier-modal,.po-detail-modal,.po-email-dialog,.po-dialog,.stock-editor-dialog,.cm-workflow-dialog) :is(.cm-dialog-head,.po-detail-header,.po-dialog-head,.financial-compose-header){padding:12px 16px;min-height:68px}}

/* V0.08 R5 — shared tenant modal compliance: customer asset dialog */
.portal-app dialog.sa-create-dialog{width:min(820px,calc(100vw - 24px));max-width:820px;max-height:calc(100dvh - 24px);border-radius:15px;overflow:hidden}
/* R8: conflicting modal header override removed; shared modal contract is authoritative. */
/* R8: conflicting modal header override removed; shared modal contract is authoritative. */
.portal-app dialog.sa-create-dialog>.cm-dialog-content{max-height:calc(100dvh - 120px);padding:20px 22px;overflow-y:auto}
.portal-app dialog.sa-create-dialog .sa-create-grid{gap:14px 16px}
.portal-app dialog.sa-create-dialog .sa-create-grid :is(input,select){min-height:44px;padding:10px 12px;border:1px solid #cbdbe9;border-radius:8px}
/* R8: conflicting asset footer alignment removed. */
/* R8: conflicting asset footer alignment removed. */
@media(max-width:640px){.portal-app dialog.sa-create-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.portal-app dialog.sa-create-dialog>.cm-dialog-head{min-height:68px;padding:12px 16px}.portal-app dialog.sa-create-dialog>.cm-dialog-content{padding:14px 16px}.portal-app dialog.sa-create-dialog .sa-create-grid{grid-template-columns:1fr}}

/* V0.08 R6: financial document action controls use the shared tenant button language. */
.portal-app .financial-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.portal-app .financial-compose-footer .button,.portal-app .r14-line-row .button,.portal-app .sa-form-actions .button{min-height:42px;border-radius:8px;font-weight:700}
.portal-app .r14-line-row [data-remove-line]{background:#fff;color:#a12735;border:1px solid #d8a4ac}
.portal-app .r14-line-row [data-remove-line]:hover{background:#fff1f2}
@media(max-width:640px){.portal-app .financial-compose-footer{align-items:stretch;flex-direction:column}.portal-app .financial-compose-footer .button{width:100%}}

/* V0.08 R11: security asset catalogue dialogs share customer/site modal components. */
.sa-catalogue-section{margin:20px 0;padding:16px;border:1px solid #d8e4f3;border-radius:12px;background:#fff}.sa-catalogue-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.sa-catalogue-header h4{margin:0}.sa-catalogue-add,.sa-catalogue-edit{border:0;border-radius:7px;background:#087be8;color:white;padding:8px 13px;cursor:pointer;font:inherit;font-weight:600}.sa-catalogue-table{width:100%;border-collapse:collapse}.sa-catalogue-table th,.sa-catalogue-table td{text-align:left;padding:10px;border-bottom:1px solid #e4edf6;vertical-align:middle}.sa-catalogue-table th{font-size:12px;color:#53647b}.sa-catalogue-actions{display:flex;gap:7px;justify-content:flex-end;align-items:center;flex-wrap:wrap}.sa-catalogue-actions form{margin:0}.sa-catalogue-toggle{border:1px solid #b9cee6;border-radius:7px;background:#fff;color:#12395e;padding:7px 10px;cursor:pointer;font:inherit}.sa-catalogue-status{font-size:12px;font-weight:600;color:#176d4c}.sa-catalogue-status.off{color:#8d4c3e}.sa-catalogue-dialog{width:min(520px,calc(100vw - 24px));max-width:100%;max-height:calc(100dvh - 32px);overflow:auto}.sa-catalogue-dialog::backdrop{background:#081d39a8}.sa-catalogue-dialog > .cm-dialog-head h3{margin:0}.sa-catalogue-dialog form{padding:20px;display:grid;gap:12px}.sa-catalogue-dialog label{display:grid;gap:5px}.sa-catalogue-dialog input{width:100%;box-sizing:border-box}.sa-catalogue-empty{padding:16px;color:#64748b}@media(max-width:580px){.sa-catalogue-table th:nth-child(2),.sa-catalogue-table td:nth-child(2){display:none}.sa-catalogue-table td{padding:8px 4px}.sa-catalogue-actions{justify-content:flex-start}}

/* V0.08 R11 — Tenant shared dialog contract. The common dialog structure
   takes precedence over legacy catalogue-specific layout declarations. */
.portal-app dialog.cm-dialog.sa-catalogue-dialog{width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border-radius:12px;display:none;flex-direction:column}
.portal-app dialog.cm-dialog.sa-catalogue-dialog[open]{display:flex}
.portal-app dialog.cm-dialog.sa-catalogue-dialog>.cm-dialog-head{flex:0 0 auto;min-height:68px;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.portal-app dialog.cm-dialog.sa-catalogue-dialog>.cm-dialog-head h3{font-size:19px;line-height:1.25;margin:0;color:#fff}
.portal-app dialog.cm-dialog.sa-catalogue-dialog>form{padding:20px 22px;overflow-y:auto;min-height:0;display:grid;gap:14px}
.portal-app dialog.cm-dialog.sa-catalogue-dialog>form>.cm-dialog-actions{margin-top:6px;padding:14px 0 0;border-top:1px solid #e1e9f1;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.portal-app dialog.cm-dialog.sa-catalogue-dialog>form>.cm-dialog-actions button{min-height:42px;padding:10px 16px;border-radius:8px}
@media(max-width:640px){.portal-app dialog.cm-dialog.sa-catalogue-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.portal-app dialog.cm-dialog.sa-catalogue-dialog>.cm-dialog-head{padding:12px 16px}.portal-app dialog.cm-dialog.sa-catalogue-dialog>form{padding:16px}}

/* V0.08 R11: Security asset workspace adopts tenant shared dialog shell. */
.portal-app dialog.cm-dialog.sa-alarm-dialog{box-sizing:border-box;width:min(820px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 32px);height:auto;min-height:0;border-radius:16px;padding:0;overflow:hidden;flex-direction:column}
.portal-app dialog.cm-dialog.sa-alarm-dialog[open]{display:flex}
/* R8: conflicting modal header override removed; shared modal contract is authoritative. */
/* R8: conflicting modal header override removed; shared modal contract is authoritative. */
/* R8: conflicting security-asset close-button override removed. */
/* R8: conflicting security-asset close-button override removed. */
.portal-app dialog.cm-dialog.sa-alarm-dialog>.sa-alarm-content{box-sizing:border-box;flex:0 1 auto;min-height:0;max-height:calc(100dvh - 110px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:20px 22px;background:#fff;scroll-padding-top:18px}
@media(max-width:640px){.portal-app dialog.cm-dialog.sa-alarm-dialog{width:calc(100vw - 12px);height:auto;max-height:calc(100dvh - 12px)}.portal-app dialog.cm-dialog.sa-alarm-dialog>.cm-dialog-head{min-height:56px;padding:12px 14px}.portal-app dialog.cm-dialog.sa-alarm-dialog>.sa-alarm-content{padding:14px}}

/* V0.08 R11 — Customers & Sites shared modal header and footer alignment. */
/* R8: conflicting modal header override removed; shared modal contract is authoritative. */
.portal-app dialog.cm-dialog.cs-form-dialog > .cm-dialog-head > div {min-width:0;}
/* R8: conflicting modal header override removed; shared modal contract is authoritative. */
/* R8: conflicting modal header override removed; shared modal contract is authoritative. */
.portal-app dialog.cm-dialog.cs-form-dialog .cm-dialog-actions {display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;}
.portal-app dialog.cm-dialog.cs-form-dialog .cm-dialog-actions :is(button,.cm-primary,.cm-secondary) {min-height:40px;}
@media(max-width:640px){.portal-app dialog.cm-dialog.cs-form-dialog > .cm-dialog-head {min-height:68px;padding:12px 16px;}.portal-app dialog.cm-dialog.cs-form-dialog .cm-dialog-actions {justify-content:stretch;}.portal-app dialog.cm-dialog.cs-form-dialog .cm-dialog-actions > button {flex:1 1 130px;}}

/* V0.10 R6 — Purchase order creation and detail header contract. */
.portal-app .po-dialog-kicker{display:block;color:#b8dcf7;font-size:11px;font-weight:800;letter-spacing:.09em;margin-bottom:5px}
.portal-app .po-detail-modal .po-detail-header{margin:-22px -22px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.portal-app .po-detail-header-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
.portal-app .po-detail-modal .po-detail-header .po-details-close{display:inline-flex;align-items:center;justify-content:center;color:#fff;min-width:44px;min-height:44px;padding:0;border-radius:10px;text-decoration:none;font-size:28px}
.portal-app .po-detail-modal .po-detail-header .po-details-close:hover,.portal-app .po-detail-modal .po-detail-header .po-details-close:focus-visible{background:#0b619f}
.portal-app .po-detail-modal .po-detail-header h2{overflow-wrap:anywhere}
@media(max-width:720px){.portal-app .po-detail-modal .po-detail-header{margin:-14px -14px 16px;align-items:flex-start;flex-wrap:wrap}.portal-app .po-detail-header-actions{width:100%;justify-content:space-between}.portal-app .po-detail-header-actions .button{flex:1}}

/* V0.10 R6: financial document email composer parity and mobile actions. */
.portal-app .financial-email-compose .financial-compose-header.cm-dialog-head{background:linear-gradient(110deg,#102d4c,#0c548b);color:#fff;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.portal-app .financial-email-compose .financial-compose-header :is(strong,p,.cm-dialog-kicker){color:#fff}
.portal-app .financial-email-compose .cm-dialog-kicker{display:block;font-size:11px;letter-spacing:.09em;text-transform:uppercase;opacity:.85;margin-bottom:4px}
.portal-app .financial-email-compose .financial-compose-attachment{flex-shrink:0}
.portal-app .financial-email-compose .financial-compose-buttons{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.portal-app .financial-email-compose #compose-to-help{padding-top:6px;padding-bottom:6px}
@media(max-width:640px){.portal-app .financial-email-compose .financial-compose-buttons{width:100%;flex-direction:column}.portal-app .financial-email-compose .financial-compose-buttons .button{width:100%}}

/* V0.10 R6: Technician portal non-functional controls are visibly unavailable. */
.v11-tech-status{font-size:11px;font-weight:700;color:#51677e;background:#edf4fc;padding:8px 10px;border-radius:9px;white-space:nowrap}
.v11-tech-tabs .v11-tech-disabled{opacity:.55;cursor:not-allowed}
.v11-tech-notice{margin:0 20px 20px;padding:12px 14px;background:#edf4fc;border:1px solid #d5e3f2;border-radius:9px;color:#4b647f;font-size:12px;line-height:1.5}
.v11-tech-bottom>span[aria-disabled="true"]{opacity:.45;cursor:not-allowed}

/* V0.10 R10 — Invoice-only presentation. Purchase orders and quotations untouched. */
.office-brand .invoice-workspace .accounting-heading{margin-bottom:18px}
.office-brand .invoice-entry{width:100%;max-width:none;margin-inline:0;box-sizing:border-box;padding:0 0 22px;overflow:hidden;border:1px solid #d7e3ef;border-radius:14px;background:#fff;box-shadow:0 10px 32px rgba(12,42,76,.06)}
.office-brand .invoice-entry>.accounting-section-heading{margin:0;padding:19px 24px;background:linear-gradient(110deg,#0d2c50,#14569b);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:14px}
.office-brand .invoice-entry>.accounting-section-heading h2,.office-brand .invoice-entry>.accounting-section-heading p{color:#fff;margin:0}
.office-brand .invoice-entry>.accounting-section-heading p{opacity:.85;margin-top:5px}
.office-brand .invoice-entry>.accounting-document-form{padding:22px 26px 0}
.office-brand .invoice-entry .financial-details-panel{border:1px solid #dce6f1;box-shadow:none;border-radius:12px;margin:0 0 18px}
.office-brand .invoice-entry .financial-details-header{background:#f0f5fb;color:#15385d;border-bottom:1px solid #dce6f1}
.office-brand .invoice-entry .financial-details-header h3,.office-brand .invoice-entry .financial-details-header p{color:#15385d}
.office-brand .invoice-entry .financial-scope-wrap{margin:10px 0 20px;border:1px solid #dce6f1;border-radius:12px;padding:18px;background:#fff}
.office-brand .invoice-entry .invoice-description .financial-rich-editor{min-height:96px;border:1px solid #c8d8e9;border-radius:8px;padding:12px 14px;line-height:1.5}
.office-brand .invoice-entry .invoice-description .financial-scope-title{margin-bottom:8px}
.office-brand .invoice-entry .invoice-description .financial-scope-hint{margin:5px 0 10px}
.office-brand .invoice-entry .accounting-line-head{border-bottom:1px solid #d8e3ef;padding-bottom:8px}
.office-brand .invoice-entry .accounting-totals{background:#eff5fc;border:1px solid #d5e3f2}
.office-brand .invoice-entry .accounting-form-actions{border-top:1px solid #e0e9f2;padding-top:18px;margin-top:22px}
@media(max-width:720px){.office-brand .invoice-entry>.accounting-section-heading{padding:16px;flex-wrap:wrap}.office-brand .invoice-entry>.accounting-document-form{padding:14px}.office-brand .invoice-entry .financial-scope-wrap{padding:12px}}

/* Invoice/quote email dialog: hidden until explicitly opened; Purchase Orders styling retained. */
.financial-email-backdrop[hidden],.financial-email-dialog[hidden]{display:none!important}
.financial-email-backdrop{position:fixed;inset:0;background:rgba(5,20,40,.72);z-index:2059}
.financial-email-dialog{position:fixed;z-index:2060;left:50%;top:50%;transform:translate(-50%,-50%);width:min(880px,calc(100vw - 28px));max-height:min(90vh,900px);overflow-y:auto;overscroll-behavior:contain;background:#fff;border-radius:14px;box-shadow:0 25px 90px #061b3d88}
.financial-email-dialog .financial-email-compose{width:100%;max-width:none!important;border:0!important;border-radius:0!important}
.financial-email-dialog .financial-compose-header{position:relative;padding-right:64px!important}
.financial-email-dialog .financial-email-close{position:absolute;right:16px;top:50%;transform:translateY(-50%);width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.65);border-radius:10px;color:white;background:rgba(255,255,255,.12);font-size:25px;cursor:pointer}
.financial-email-dialog .financial-email-close:focus-visible{outline:3px solid #8bc8ff;outline-offset:2px}
.financial-email-toolbar{margin:14px 0 18px}
.financial-email-dialog .financial-compose-help{margin:0;padding:5px 20px;font-size:12px}
.financial-email-dialog .financial-compose-field{padding:8px 20px}
.financial-email-dialog .financial-compose-message textarea{min-height:125px}
@media(max-width:640px){.financial-email-dialog{max-height:96dvh;width:calc(100vw - 16px)}.financial-email-dialog .financial-compose-header{padding-right:62px!important}.financial-email-dialog .financial-compose-attachment{max-width:100%;overflow-wrap:anywhere}}

/* V0.10 R11: existing invoices share the New Invoice workspace presentation. */
.invoice-existing-workspace{max-width:none;margin:0 0 20px}.invoice-existing-workspace .accounting-document-form{max-width:none}.invoice-document-actions .sa-form-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.invoice-document-actions .sa-form-actions form{margin:0}.invoice-readonly-fields{border:0;padding:0;margin:0;min-width:0}.invoice-readonly-fields input,.invoice-readonly-fields select,.invoice-readonly-fields textarea{opacity:1;background:#f3f6fa;color:#263c56}.invoice-readonly-fields [contenteditable]{pointer-events:none;background:#f3f6fa}.invoice-existing-workspace .accounting-totals{margin-top:16px}@media(max-width:700px){.invoice-document-actions .sa-form-actions{flex-direction:column;align-items:stretch}.invoice-document-actions .button{width:100%;text-align:center}}

/* V0.11 R5 Jobs and Scheduling */
.sers-job-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0}.sers-job-steps span{padding:12px;border:1px solid #d9e5f3;border-radius:8px;font-weight:600}.sers-job-steps span.active{border-color:#087eea;background:#eef7ff}.sers-job-pane{display:block}.sers-job-wizard-ready .sers-job-pane{display:none}.sers-job-wizard-ready .sers-job-pane.active{display:block}.sers-job-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}#sers-job-review{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#sers-job-review div{border:1px solid #d9e5f3;border-radius:8px;padding:12px;overflow-wrap:anywhere}@media(max-width:700px){.sers-job-steps,#sers-job-review{grid-template-columns:1fr 1fr}}

/* V0.11 R8: responsive, shared-stylesheet scheduling calendar. */
.sers-sched-tabs{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}
.sers-sched-legend{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:16px 0 10px;font-size:13px;color:#38516b}
.sers-sched-legend span{display:inline-flex;align-items:center;gap:7px}
.sers-legend-dot{width:11px;height:11px;border-radius:3px;display:inline-block}
.sers-legend-job{background:#087eea}.sers-legend-visit{background:#059669}.sers-legend-activity{background:#64748b}
.sers-sched-grid{display:grid;gap:8px;align-items:stretch;margin:12px 0 26px}
.sers-sched-day{min-width:0;padding:10px!important;min-height:115px;overflow:hidden}
.sers-sched-day h3{font-size:14px;margin:0 0 10px;padding:0 0 9px;border-bottom:1px solid #e2e8f0;color:#193b63}
.sers-sched-day h3 span{font-weight:500;color:#64748b}
.sers-sched-today{outline:2px solid #087eea;outline-offset:-2px;background:#f2f8ff}
.sers-sched-day .sers-sched-empty{color:#8090a3;font-size:12px;font-style:italic;margin:10px 0}
.sers-sched-event{border:1px solid #d9e5f3;border-left:4px solid #087eea;border-radius:7px;padding:9px;margin:7px 0;overflow-wrap:anywhere;font-size:12px;background:#f5faff;color:#263e5b}
.sers-sched-event a{font-weight:700;text-decoration:underline;text-underline-offset:2px}
.sers-sched-event div{margin:4px 0}.sers-sched-event small{display:block;color:#506782}
.sers-sched-visit{border-left-color:#059669;background:#f1fcf7}.sers-sched-activity{border-left-color:#64748b;background:#f6f7fa}
.sers-sched-activity form{margin-top:8px}.sers-sched-activity form button{font-size:11px;padding:5px 9px}
.sers-sched-day{scroll-margin-top:120px}
.sers-sched-day:focus-within{box-shadow:0 0 0 2px #087eea}
.sers-sched-day .sers-sched-event:hover{box-shadow:0 2px 10px rgba(15,45,80,.12)}
.sers-sched-day .sers-sched-event:focus-within{outline:2px solid #087eea}
.sers-sched-day .sers-sched-event strong{font-variant-numeric:tabular-nums}
.sers-sched-day .sers-sched-event a{color:#075aab}
.sers-sched-day .sers-sched-event a:hover{text-decoration-thickness:2px}
.sers-sched-day .sers-sched-event a:focus-visible{outline:2px solid #087eea;outline-offset:2px}
.sers-sched-day .sers-sched-event div,.sers-sched-day .sers-sched-event small{line-height:1.45}
.sers-sched-day .sers-sched-event small{word-break:break-word}
.sers-sched-day .sers-sched-event form{display:block}
.sers-sched-day .sers-sched-event button{max-width:100%}
.sers-sched-day .sers-sched-event button:focus-visible{outline:2px solid #087eea}
.sers-sched-day .sers-sched-event a,.sers-sched-day .sers-sched-event button{touch-action:manipulation}
.sers-sched-day .sers-sched-event{min-width:0}
.sers-sched-day .sers-sched-event a{overflow-wrap:anywhere}
.sers-sched-grid.sers-sched-day{grid-template-columns:minmax(0,1fr)}
.sers-sched-grid.sers-sched-week,.sers-sched-grid.sers-sched-month{grid-template-columns:repeat(7,minmax(0,1fr))}
@media(max-width:1200px){.sers-sched-grid.sers-sched-week,.sers-sched-grid.sers-sched-month{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.sers-sched-grid.sers-sched-week,.sers-sched-grid.sers-sched-month{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.sers-sched-grid.sers-sched-week,.sers-sched-grid.sers-sched-month{grid-template-columns:minmax(0,1fr)}.sers-sched-day{min-height:80px}}

.sers-sched-activity{border-left-color:#64748b}

/* V0.11 R8: technician allocation board; all styles in shared master stylesheet */
.sers-board-scroll{overflow-x:auto}
.sers-board-table{width:100%;border-collapse:collapse;min-width:540px}
.sers-board-table th,.sers-board-table td{padding:12px;text-align:left;border-bottom:1px solid var(--border,#d8e1ee);vertical-align:top}
.sers-board-table tbody th{min-width:160px;width:22%;font-weight:650}
.sers-board-allocation{display:inline-flex;flex-direction:column;gap:3px;padding:9px 12px;margin:3px 6px 3px 0;border:1px solid #bfd5ed;border-left:4px solid #1673c8;border-radius:8px;background:#f4f9ff;color:#123a63;text-decoration:none;max-width:320px;vertical-align:top}
.sers-board-allocation:hover,.sers-board-allocation:focus-visible{background:#e7f3ff;outline:2px solid #1673c8;outline-offset:2px}
.sers-board-kind{font-size:.7rem;font-weight:750;text-transform:uppercase;letter-spacing:.06em}
.sers-board-allocation small{font-size:.78rem;color:#42627e}
@media(max-width:700px){.sers-board-table{min-width:470px}.sers-board-allocation{max-width:230px}}

/* V0.11 R8 work order overview: shared tenant styling */
.sers-workorder-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1rem;margin:1rem 0 1.5rem}
.sers-workorder-detail-grid>div{padding:1rem;border:1px solid var(--border-color,#d9e2ed);border-radius:10px;min-width:0}
.sers-workorder-detail-grid dt{font-size:.83rem;opacity:.7;margin-bottom:.4rem}
.sers-workorder-detail-grid dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.sers-workorder-description{white-space:normal;overflow-wrap:anywhere}

/* V0.11 R8: Work Order workspace section navigation (shared design tokens inherited). */
.sers-workorder-section-nav{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0 1.25rem;align-items:center}
.sers-workorder-section-nav a{display:inline-flex;align-items:center;min-height:2.25rem;padding:.35rem .7rem;border:1px solid var(--border, #d1d9e4);border-radius:.5rem;background:var(--surface, #fff);color:inherit;text-decoration:none;font-size:.88rem}
.sers-workorder-section-nav a:hover,.sers-workorder-section-nav a:focus-visible{outline:2px solid var(--primary, #1673cf);outline-offset:1px}
@media(max-width:600px){.sers-workorder-section-nav{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.5rem}.sers-workorder-section-nav a{white-space:nowrap;flex-shrink:0}}

/* V0.11 R12 — Jobs register and modal editor */
.sers-job-dialog{position:fixed;z-index:1001;left:50%;top:50%;transform:translate(-50%,-50%);width:min(880px,calc(100vw - 28px));max-height:calc(100dvh - 30px);overflow:auto;box-shadow:0 20px 80px #001c3f65;border:1px solid #c6d9ec;border-radius:14px;padding:24px;background:#fff}
body:has(.sers-job-dialog)::before{content:"";position:fixed;inset:0;background:#061a36a8;z-index:1000}
.sers-job-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #d9e5f3;padding-bottom:12px}
.sers-job-dialog-header h2{margin:0}.sers-job-dialog-close{font-size:30px;text-decoration:none;color:#173e68;line-height:1;padding:3px 10px}
.sers-workorder-filters{display:grid;grid-template-columns:minmax(190px,2fr) repeat(2,minmax(125px,1fr));gap:12px;align-items:end}
.sers-workorder-filters label{min-width:0}.sers-workorder-filters .button{align-self:end}
.sers-workorder-table-scroll{overflow-x:auto}.sers-workorder-table-scroll table{width:100%;border-collapse:collapse}.sers-workorder-table-scroll th{text-align:left;white-space:nowrap;background:#eaf4ff}.sers-workorder-table-scroll th,.sers-workorder-table-scroll td{padding:12px;border-bottom:1px solid #e0eaf4;vertical-align:top}
@media(max-width:700px){.sers-job-dialog{padding:14px}.sers-workorder-filters{grid-template-columns:1fr 1fr}.sers-workorder-filters label:first-child{grid-column:1/-1}.sers-job-steps{grid-template-columns:1fr 1fr}}

/* V0.11 R14: continuous month calendar and compact planning controls */
.sers-scheduler-toolbar{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:14px 0}
.sers-sched-tabs{display:flex;gap:6px;flex-wrap:wrap}
.sers-scheduler-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0;flex:1;justify-content:flex-end}
.sers-scheduler-filters label{font-size:12px;min-width:145px;flex:0 1 180px;margin:0}
.sers-scheduler-filters input,.sers-scheduler-filters select{min-height:36px;width:100%}
.sers-scheduler-filters button{min-height:36px}
.sers-scheduler-period{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:18px 0 12px}
.sers-scheduler-period h2{font-size:23px;margin:0;color:#0b294f}
.sers-scheduler-period>div{display:flex;gap:6px;flex-wrap:wrap}
.sers-sched-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid #d8e4f2;border-bottom:0;background:#eaf3fc;border-radius:10px 10px 0 0;overflow:hidden}
.sers-sched-weekdays span{font-weight:700;text-align:center;font-size:12px;padding:12px 4px;color:#23496f}
.sers-sched-grid.sers-sched-month,.sers-sched-grid.sers-sched-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;margin:0 0 20px;border:1px solid #d8e4f2;border-radius:0 0 10px 10px;overflow:hidden;background:white}
.sers-sched-grid.sers-sched-month .sers-sched-day,.sers-sched-grid.sers-sched-week .sers-sched-day{border:0!important;border-right:1px solid #e1eaf4!important;border-bottom:1px solid #e1eaf4!important;border-radius:0!important;box-shadow:none!important;min-height:118px;padding:9px!important;margin:0!important;background:#fff}
.sers-sched-grid.sers-sched-month .sers-sched-day:nth-child(7n),.sers-sched-grid.sers-sched-week .sers-sched-day:nth-child(7n){border-right:0!important}
.sers-sched-grid .sers-sched-day.sers-sched-outside{background:#f4f7fb!important;color:#8c9bab}
.sers-sched-grid .sers-sched-day.sers-sched-today{background:#eaf5ff!important;outline:2px solid #0785f3;outline-offset:-2px}
.sers-sched-grid.sers-sched-month .sers-sched-day h3{font-size:13px;border:0;padding:0;margin:0 0 7px}
.sers-sched-grid.sers-sched-month .sers-sched-quick{font-size:11px;display:inline-block;margin-bottom:4px}
.sers-sched-grid.sers-sched-month .sers-sched-empty{display:none}
.sers-sched-grid.sers-sched-month .sers-sched-event{font-size:11px;padding:5px;margin:4px 0}
.sers-sched-grid.sers-sched-month .sers-sched-event small{display:none}
.sers-allocation-board{margin-top:20px}
@media(max-width:800px){.sers-scheduler-filters{justify-content:flex-start}.sers-sched-weekdays,.sers-sched-grid.sers-sched-month,.sers-sched-grid.sers-sched-week{min-width:735px}.sers-sched-weekdays span{font-size:11px}.sers-scheduler-period h2{font-size:20px}.sers-sched-grid.sers-sched-month .sers-sched-day{min-height:96px}}

/* V0.11 R15: open-job scheduling workspace */
.sers-scheduler-workspace{display:grid;grid-template-columns:minmax(240px,280px) minmax(0,1fr);gap:16px;align-items:start}
.sers-open-jobs{position:sticky;top:12px;max-height:80vh;overflow:auto;padding:16px}
.sers-open-jobs-heading{display:flex;justify-content:space-between;align-items:center}
.sers-open-jobs-heading h2{margin:0;font-size:19px}
.sers-open-jobs-list{display:grid;gap:9px;margin-top:12px}
.sers-open-job{display:grid;gap:4px;background:#f6faff;border:1px solid #cfdfef;border-radius:9px;padding:10px;cursor:grab}
.sers-open-job strong{color:#103d73}.sers-open-job small{color:#52657d}.sers-open-job[hidden]{display:none}
.sers-open-job-select{justify-self:start;font-size:12px}
.sers-scheduler-calendar{min-width:0}
.sers-sched-day{min-width:0}
.sers-schedule-dialog[hidden]{display:none!important}
.sers-schedule-dialog:not([hidden]){position:fixed;z-index:1100;top:50%;left:50%;transform:translate(-50%,-50%);width:min(560px,calc(100vw - 28px));max-height:90vh;overflow:auto;box-shadow:0 0 0 100vmax rgba(8,22,44,.58),0 20px 65px rgba(8,22,44,.28);padding:22px;background:white;border-radius:14px}
.sers-schedule-dialog-heading,.sers-schedule-dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sers-schedule-dialog-heading h2{margin:0}.sers-schedule-dialog-actions{margin-top:15px}
@media(max-width:850px){.sers-scheduler-workspace{grid-template-columns:minmax(0,1fr)}.sers-open-jobs{position:static;max-height:320px}}

/* V0.11 R16: compact, aligned scheduler workspace */
.cm-page:has(.sers-scheduler-workspace) .workspace-heading{margin-bottom:10px}
.cm-page:has(.sers-scheduler-workspace)>p:has(>a.button){margin:8px 0 12px;display:flex;gap:7px;flex-wrap:wrap}
.sers-scheduler-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0!important}
.sers-scheduler-toolbar .sers-scheduler-filters{display:flex!important;flex:1 1 590px;align-items:end;justify-content:flex-end;gap:9px;padding:10px 12px!important;margin:0!important;min-width:0;box-shadow:none}
.sers-scheduler-filters label{display:flex;flex-direction:column;gap:4px;min-width:120px;max-width:190px;flex:1 1 140px;margin:0!important;font-size:12px}
.sers-scheduler-filters input,.sers-scheduler-filters select{width:100%;min-height:36px;margin:0!important}
.sers-scheduler-filters button{white-space:nowrap;align-self:end;min-height:36px}
.sers-sched-tabs{flex:0 0 auto;align-items:center}
.sers-scheduler-period{margin:10px 0!important}
.sers-scheduler-workspace{grid-template-columns:minmax(230px,270px) minmax(0,1fr);gap:12px;align-items:start}
.sers-scheduler-calendar{min-width:0;overflow-x:auto}
.sers-scheduler-calendar .sers-sched-weekdays{width:100%;margin:0}
.sers-scheduler-calendar .sers-sched-grid{width:100%}
.sers-open-jobs{position:sticky;top:12px;max-height:75vh;overflow-y:auto;padding:14px!important}
.sers-open-jobs>p{font-size:12px;line-height:1.4;margin:8px 0}
.sers-open-job{padding:10px;overflow-wrap:anywhere}
.sers-sched-drag-help{font-size:12px;margin:0 0 8px;color:#516985}
.sers-sched-weekdays span{padding:10px 3px}
@media(max-width:1050px){.sers-scheduler-toolbar{align-items:stretch;flex-wrap:wrap}.sers-scheduler-toolbar .sers-scheduler-filters{justify-content:flex-start;flex:1 1 100%}}
@media(max-width:850px){.sers-scheduler-workspace{grid-template-columns:minmax(0,1fr)}.sers-open-jobs{position:static;max-height:300px}.sers-scheduler-calendar .sers-sched-weekdays,.sers-scheduler-calendar .sers-sched-grid.sers-sched-month,.sers-scheduler-calendar .sers-sched-grid.sers-sched-week{min-width:735px}}
@media(max-width:550px){.sers-scheduler-toolbar .sers-scheduler-filters{gap:8px}.sers-scheduler-filters label{flex:1 1 42%}.sers-scheduler-filters button{flex:1 1 100%}}

/* V0.11 R17: unified scheduling workspace and hourly day timeline */
.sers-day-scroll{overflow-x:auto;border:1px solid #d4e3f3;border-radius:12px;background:#fff}
.sers-day-timeline{display:grid;grid-template-columns:74px repeat(var(--sers-day-staff),minmax(175px,1fr));min-width:max(580px,calc(74px + var(--sers-day-staff)*175px));}
.sers-day-time-head,.sers-day-person{position:sticky;top:0;z-index:2;background:#e8f1fc;padding:12px 8px;font-weight:700;text-align:center;color:#103966;border-bottom:1px solid #cbdff1}
.sers-day-hour{font-size:12px;color:#416181;padding:10px 6px;background:#f2f7fd;border-right:1px solid #dbe7f4;border-bottom:1px solid #dbe7f4}
.sers-day-slot{min-height:64px;padding:5px;border-right:1px solid #dbe7f4;border-bottom:1px solid #dbe7f4;transition:background .15s}
.sers-day-slot:hover,.sers-day-slot:focus-visible{background:#eaf5ff;outline:2px solid #1687ed;outline-offset:-2px}
.sers-day-slot .sers-sched-event{font-size:12px;padding:6px;margin:2px 0;overflow-wrap:anywhere}
.sers-activity-dialog[hidden]{display:none!important}
.sers-activity-dialog:not([hidden]){position:fixed;z-index:1001;top:50%;left:50%;transform:translate(-50%,-50%);width:min(560px,calc(100vw - 28px));max-height:90vh;overflow:auto;box-shadow:0 0 0 100vmax rgba(8,22,44,.55),0 16px 60px #0c274a55;border-radius:14px;padding:22px;background:#fff}
.sers-activity-launch{margin:12px 0}
.sers-sched-tabs .button{min-width:56px;text-align:center}
@media(max-width:720px){.sers-day-timeline{grid-template-columns:64px repeat(var(--sers-day-staff),minmax(160px,1fr))}.sers-day-hour{font-size:11px}.sers-scheduler-workspace{display:block}.sers-open-jobs{margin-bottom:14px}}

/* V0.11 R18: consolidated filters and calendar navigation; simplified open jobs */
.sers-scheduler-toolbar{display:block!important;margin:8px 0 10px!important}
.sers-scheduler-toolbar .sers-scheduler-filters{width:100%;flex:1 1 auto;justify-content:flex-start!important;gap:12px;padding:12px 16px!important;border-radius:12px}
.sers-scheduler-filters label{max-width:none;flex:1 1 180px}
.sers-scheduler-period{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:12px 0!important}
.sers-scheduler-period-title{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.sers-scheduler-period-title h2{margin:0}
.sers-scheduler-period .sers-sched-tabs{display:flex;align-items:center;gap:6px;margin:0}
.sers-sched-tabs .button.is-active{background:#073b77;border-color:#073b77;color:#fff}
.sers-scheduler-period-nav{display:flex;align-items:center;gap:6px}
.sers-open-job[tabindex]{cursor:grab}
.sers-open-job[aria-pressed="true"]{outline:2px solid #148cf3;background:#e7f3ff}
.sers-open-job:focus-visible{outline:2px solid #148cf3;outline-offset:2px}
@media(max-width:680px){.sers-scheduler-period-title{gap:10px}.sers-scheduler-period-nav{width:100%;justify-content:flex-start}.sers-scheduler-toolbar .sers-scheduler-filters{gap:8px}}

/* R20: visually separate technician portal job tabs. */
.v11-tech-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.v11-tech-tabs a{display:inline-flex;align-items:center;padding:8px 14px;border-radius:8px;text-decoration:none}.v11-tech-tabs a.selected{font-weight:700}.sers-open-jobs-list.sers-unschedule-target{outline:2px dashed #1688ed;outline-offset:3px;background:rgba(22,136,237,.08)}

/* V0.12 R1: make the full Open Jobs panel a visible unscheduling target. */
.sers-open-jobs.sers-unschedule-target{outline:3px dashed #087de0;outline-offset:-4px;background:#e7f4ff!important;box-shadow:0 0 0 4px rgba(0,125,224,.15)}
.sers-open-jobs-drop-hint{font-size:.75rem;color:#45617f;margin:.65rem 0 0}

/* V0.12 R2 — Technician assigned-visit cards: scoped, responsive */
.technician-brand .v11-tech-job-list{display:grid;gap:12px;margin:12px 20px 20px;min-width:0}
.technician-brand .v11-tech-job{min-width:0;max-width:100%;box-sizing:border-box;border:1px solid #cbdff1;border-left:4px solid #0780f8;border-radius:12px;background:#f8fbff;padding:14px 15px;overflow-wrap:anywhere;box-shadow:0 3px 12px rgba(9,45,87,.05)}
.technician-brand .v11-tech-job h2{font-size:17px!important;line-height:1.35!important;margin:0 0 10px!important;color:#103456!important;font-weight:750!important;overflow-wrap:anywhere}
.technician-brand .v11-tech-job p{font-size:12px!important;line-height:1.55!important;margin:7px 0!important;color:#385573!important}
.technician-brand .v11-tech-job p strong{color:#12385b}
.technician-brand .v11-tech-job a{display:inline-block;padding:9px 12px;background:#087cf5;color:white!important;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none}
.technician-brand .v11-tech-tabs{margin:12px 20px 18px;gap:5px;flex-wrap:nowrap}
.technician-brand .v11-tech-tabs a{flex:1;justify-content:center;min-width:0;padding:10px 4px;font-size:12px}
@media(max-width:420px){.technician-brand .v11-tech-job-list{margin-left:12px;margin-right:12px}.technician-brand .v11-tech-job{padding:12px}.technician-brand .v11-tech-tabs{margin-left:12px;margin-right:12px}}

/* Jobs V2 R17: shared Office UI refinements */
.cs-module .cs-search.cs-jobs-search{display:flex;flex-wrap:wrap;align-items:end;max-width:none;gap:9px;margin:0 0 12px;padding:0 12px}
.cs-jobs-search label{margin:0;font-size:12px;min-width:140px}
.cs-jobs-search label:first-child{width:min(270px,100%)}
.cs-jobs-search label:nth-child(2){width:160px}
.cs-jobs-search input,.cs-jobs-search select{height:35px;padding:6px 9px;margin-top:4px;width:100%;box-sizing:border-box;font-size:13px}
.cs-jobs-search button,.cs-jobs-search .cs-new{width:auto;min-width:0;height:35px;padding:6px 12px;line-height:23px;font-size:12px;align-self:end}
.cs-form-panel.cs-job-form-panel{max-width:1100px;margin:0 auto;padding:20px;overflow:visible}
.cs-job-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
.cs-job-form>label,.cs-job-form>.cs-job-contact-details{margin:0;min-width:0}
.cs-job-form label{font-size:13px}
.cs-job-form input,.cs-job-form select,.cs-job-form textarea{width:100%;box-sizing:border-box;margin-top:6px;padding:9px 11px;border:1px solid #c9d8df;border-radius:7px;font:inherit}
.cs-job-form .cs-job-wide,.cs-job-form .cs-job-contact-details,.cs-job-form .cs-job-contact-empty{grid-column:1/-1}
.cs-job-contact-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.cs-job-contact-details input[readonly]{background:#f3f7fa;color:#34536b}
.cs-job-form small{display:block;font-weight:400;color:#65778a;margin-top:5px}
.cs-job-actions{display:flex;justify-content:flex-end}
.cs-job-actions button{width:auto;min-width:140px;padding:10px 16px}
@media(max-width:700px){.cs-job-form,.cs-job-contact-details{grid-template-columns:1fr}.cs-form-panel.cs-job-form-panel{padding:14px}.cs-jobs-search label:first-child,.cs-jobs-search label:nth-child(2){width:100%}}

/* Jobs & Scheduling Management — approved two-column management-card standard (V0.13 R19). */

/* V0.14 R1: matching Job Register action controls; shared stylesheet only. */
.cs-jobs-search button,.cs-jobs-search .cs-search-clear{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:35px;min-height:35px;min-width:72px;padding:6px 12px;line-height:1.2;font-size:12px;font-weight:700;vertical-align:middle}

/* V0.14 R2: both Job Register actions use the approved compact Clear button sizing. */
.cs-module .cs-search.cs-jobs-search .cs-job-filter-action{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-width:0;height:31px;min-height:0;margin:0;padding:6px 13px;border:0;border-radius:6px;font-size:12px;font-weight:700;line-height:19px;vertical-align:middle;white-space:nowrap}

/* V0.14 R4: Work Order layout, scoped to job detail only. */
.cs-work-order-page{max-width:1100px;margin:0 auto}
.cs-work-order-page .cs-heading{margin-bottom:16px}
.cs-work-order-page .cs-wo-panel{padding:20px 22px;margin-bottom:14px;overflow:visible;border-radius:10px}
.cs-work-order-page .cs-wo-panel h2{font-size:23px;line-height:1.25;margin:0 0 18px;color:#102e4c}
.cs-work-order-page .cs-wo-panel h3{font-size:14px;margin:15px 0 6px}
.cs-work-order-page .cs-wo-panel p{margin:8px 0;line-height:1.5;overflow-wrap:anywhere}
.cs-wo-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;align-items:start}
.cs-wo-form>label{display:block;min-width:0;margin:0;font-size:12px;font-weight:700;color:#173451}
.cs-wo-form input:not([type=checkbox]),.cs-wo-form select,.cs-wo-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:9px 11px;border:1px solid #c9d8df;border-radius:7px;font:inherit;font-size:13px;background:#fff;color:#173451}
.cs-wo-form textarea{min-height:76px;resize:vertical}
.cs-wo-form .cs-wo-wide{grid-column:1/-1}
.cs-wo-form .cs-wo-checkbox{grid-column:1/-1;display:flex;align-items:center;gap:9px;font-size:13px;cursor:pointer}
.cs-wo-form .cs-wo-checkbox input{width:16px;height:16px;margin:0;flex:none}
.cs-wo-actions{grid-column:1/-1;display:flex;justify-content:flex-end}
.cs-wo-actions button,.cs-wo-close button{width:auto;min-width:0;display:inline-flex;align-items:center;justify-content:center;white-space:normal}
.cs-wo-close{display:flex;justify-content:flex-end;margin:12px 0 0}
.cs-wo-table-wrap{overflow-x:auto}
.cs-wo-table-wrap table{width:100%;border-collapse:collapse;min-width:560px}
.cs-wo-table-wrap th,.cs-wo-table-wrap td{padding:11px 12px;text-align:left;border-bottom:1px solid #e2eaf2;font-size:13px}
.cs-wo-table-wrap th{background:#edf4fb;color:#193b5b}
@media(max-width:700px){.cs-work-order-page .cs-wo-panel{padding:15px}.cs-wo-form{grid-template-columns:1fr}.cs-wo-actions{justify-content:flex-start}.cs-wo-close{justify-content:flex-start}}
/* V0.14 R5: shared technician dispatch board */
.cs-dispatch .cs-dispatch-toolbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap;padding:14px 18px;margin-bottom:12px}
.cs-dispatch-views{display:flex;gap:7px}.cs-dispatch-views a,.cs-dispatch-days a,.cs-dispatch-month a,.cs-dispatch-today{border:1px solid #c5d8ef;border-radius:7px;padding:7px 12px;text-decoration:none;color:#0b3660;background:#fff;font-weight:600}.cs-dispatch-views a.is-active,.cs-dispatch-days a.is-active,.cs-dispatch-month a.is-active{background:#087bd6;color:#fff;border-color:#087bd6}
.cs-dispatch-toolbar form{display:flex;gap:8px;align-items:end}.cs-dispatch-toolbar label{font-size:12px;font-weight:600;display:grid;gap:4px}.cs-dispatch-toolbar input{min-width:155px}.cs-dispatch-toolbar button{width:auto;min-width:65px;padding:8px 13px}.cs-dispatch-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:0 0 12px}.cs-dispatch-days a{text-align:center;padding:9px 3px}.cs-dispatch-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:12px}.cs-dispatch-month a{text-align:center;padding:7px}
.cs-dispatch-layout{display:grid;grid-template-columns:minmax(220px,275px) minmax(0,1fr);gap:14px;align-items:start}.cs-dispatch-queue,.cs-dispatch-calendar{padding:16px!important}.cs-dispatch-queue h2,.cs-dispatch-calendar h2{margin:0 0 9px}.cs-dispatch-queue p{font-size:12px;color:#516b85}.cs-dispatch-job{display:grid;gap:3px;border:1px solid #b7d1ed;background:#f1f7ff;border-radius:8px;padding:11px;margin:9px 0;cursor:grab}.cs-dispatch-job span{font-size:13px}.cs-dispatch-job small{color:#49627b}.cs-dispatch-dropback{border:2px dashed #96b7dc;border-radius:8px;padding:13px;text-align:center;font-size:12px;background:#f5f9ff;margin:12px 0}.cs-dispatch-dropback.is-drop-target,.cs-dispatch-slot.is-drop-target{background:#cce9ff!important;outline:2px solid #087bd6}.cs-dispatch-scroll{overflow:visible;max-height:none;height:auto;border:1px solid #d7e3f0;border-radius:8px}.cs-dispatch-grid{display:grid;min-width:660px;gap:1px;background:#d8e5f2}.cs-dispatch-grid>div{min-width:0}.cs-dispatch-timehead,.cs-dispatch-techhead{position:sticky;top:0;z-index:2;background:#e7f1fc;padding:13px 7px;font-size:12px;font-weight:700;text-align:center}.cs-dispatch-time{background:#f0f6fd;font-size:11px;font-weight:600;text-align:center;padding:12px 3px}.cs-dispatch-slot{background:#fff;min-height:45px;padding:3px;position:relative}.cs-dispatch-booking{display:grid;gap:2px;border-left:3px solid #087bd6;background:#e5f2ff;padding:4px;border-radius:4px;font-size:11px;text-decoration:none;color:#092e52;cursor:grab;overflow:hidden}.cs-dispatch-booking span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cs-dispatch-booking small{font-size:10px}.cs-dispatch-absence{background:#fff0d8;color:#794500;border-radius:4px;font-size:10px;padding:4px}.cs-dispatch-hidden{display:none}

.cs-dispatch-cols-1{grid-template-columns:78px repeat(1,minmax(125px,1fr))}
.cs-dispatch-cols-2{grid-template-columns:78px repeat(2,minmax(125px,1fr))}
.cs-dispatch-cols-3{grid-template-columns:78px repeat(3,minmax(125px,1fr))}
.cs-dispatch-cols-4{grid-template-columns:78px repeat(4,minmax(125px,1fr))}
.cs-dispatch-cols-5{grid-template-columns:78px repeat(5,minmax(125px,1fr))}
.cs-dispatch-cols-6{grid-template-columns:78px repeat(6,minmax(125px,1fr))}
.cs-dispatch-cols-7{grid-template-columns:78px repeat(7,minmax(125px,1fr))}
.cs-dispatch-cols-8{grid-template-columns:78px repeat(8,minmax(125px,1fr))}
.cs-dispatch-cols-9{grid-template-columns:78px repeat(9,minmax(125px,1fr))}
.cs-dispatch-cols-10{grid-template-columns:78px repeat(10,minmax(125px,1fr))}
.cs-dispatch-cols-11{grid-template-columns:78px repeat(11,minmax(125px,1fr))}
.cs-dispatch-cols-12{grid-template-columns:78px repeat(12,minmax(125px,1fr))}
.cs-dispatch-cols-13{grid-template-columns:78px repeat(13,minmax(125px,1fr))}
.cs-dispatch-cols-14{grid-template-columns:78px repeat(14,minmax(125px,1fr))}
.cs-dispatch-cols-15{grid-template-columns:78px repeat(15,minmax(125px,1fr))}
.cs-dispatch-cols-16{grid-template-columns:78px repeat(16,minmax(125px,1fr))}
.cs-dispatch-cols-17{grid-template-columns:78px repeat(17,minmax(125px,1fr))}
.cs-dispatch-cols-18{grid-template-columns:78px repeat(18,minmax(125px,1fr))}
.cs-dispatch-cols-19{grid-template-columns:78px repeat(19,minmax(125px,1fr))}
.cs-dispatch-cols-20{grid-template-columns:78px repeat(20,minmax(125px,1fr))}
.cs-dispatch-cols-21{grid-template-columns:78px repeat(21,minmax(125px,1fr))}
.cs-dispatch-cols-22{grid-template-columns:78px repeat(22,minmax(125px,1fr))}
.cs-dispatch-cols-23{grid-template-columns:78px repeat(23,minmax(125px,1fr))}
.cs-dispatch-cols-24{grid-template-columns:78px repeat(24,minmax(125px,1fr))}
.cs-dispatch-cols-25{grid-template-columns:78px repeat(25,minmax(125px,1fr))}
.cs-dispatch-cols-26{grid-template-columns:78px repeat(26,minmax(125px,1fr))}
.cs-dispatch-cols-27{grid-template-columns:78px repeat(27,minmax(125px,1fr))}
.cs-dispatch-cols-28{grid-template-columns:78px repeat(28,minmax(125px,1fr))}
.cs-dispatch-cols-29{grid-template-columns:78px repeat(29,minmax(125px,1fr))}
.cs-dispatch-cols-30{grid-template-columns:78px repeat(30,minmax(125px,1fr))}
@media(max-width:850px){.cs-dispatch-layout{grid-template-columns:1fr}.cs-dispatch-days{overflow:auto}.cs-dispatch-days a{font-size:11px}}
/* V0.14 R6: shared tenant technician assignment dialog */
.cs-assign-backdrop[hidden]{display:none!important}.cs-assign-backdrop{position:fixed;inset:0;z-index:9999;background:rgba(3,19,40,.64);display:flex;align-items:center;justify-content:center;padding:20px}.cs-assign-dialog{width:min(100%,570px);max-height:90vh;overflow:auto;background:#fff;border:1px solid #c7d8eb;border-radius:12px;box-shadow:0 18px 48px rgba(0,20,50,.24);padding:22px;color:#102d4b}.cs-assign-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid #e2eaf4;padding-bottom:14px;margin-bottom:18px}.cs-assign-header h2{margin:0;font-size:23px}.cs-assign-header p{margin:5px 0 0;color:#58718e}.cs-assign-close{border:0;background:transparent;color:#31516e;font-size:28px;cursor:pointer;line-height:1}.cs-assign-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.cs-assign-fields label:first-child{grid-column:1/-1}.cs-assign-fields label{font-weight:600;font-size:13px;display:flex;flex-direction:column;gap:6px}.cs-assign-fields select,.cs-assign-fields input{width:100%;min-width:0;box-sizing:border-box;height:38px;border:1px solid #bdd1e8;border-radius:6px;padding:7px 10px;background:#fff;color:#102d4b}.cs-assign-hint{font-size:12px;color:#58718e;margin:15px 0}.cs-assign-error{color:#a21d26;margin:8px 0;font-weight:600}.cs-assign-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e2eaf4;padding-top:16px}.cs-assign-actions button{width:auto!important;min-width:95px;padding:9px 15px!important;border-radius:6px;cursor:pointer}.cs-assign-actions button:disabled{opacity:.55}@media(max-width:540px){.cs-assign-fields{grid-template-columns:1fr}.cs-assign-fields label:first-child{grid-column:auto}.cs-assign-dialog{padding:16px}}

/* V0.14 R12: scheduler confirmation uses an in-platform dialog, never browser chrome. */
.cs-unschedule-dialog{width:min(100%,480px)}
.cs-unschedule-dialog #cs-unschedule-description{line-height:1.6;margin:0 0 12px}
.cs-unschedule-job{font-weight:600;color:#31516e;overflow-wrap:anywhere;margin:0 0 16px}
@media(max-width:540px){.cs-unschedule-dialog{max-height:calc(100dvh - 32px)}.cs-unschedule-dialog .cs-assign-actions{flex-wrap:wrap}.cs-unschedule-dialog .cs-assign-actions button{flex:1}}

/* R14 booking month calendar; use the existing shared colour tokens. */
.sers-sched-weekdays,.sers-sched-grid.sers-sched-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.sers-sched-weekdays span{text-align:center;font-weight:700;padding:8px 2px}
.sers-sched-month-cell{min-height:110px;min-width:0;padding:8px;border:1px solid var(--border,#ccd5e0);border-radius:8px;overflow-wrap:anywhere}
.sers-sched-month-cell.is-empty{opacity:.25}
.sers-sched-month-date{display:block;font-weight:700;margin-bottom:5px}
.sers-sched-month-booking{display:block;padding:4px;margin:3px 0;border-radius:4px;background:var(--surface-alt,#edf3fa);font-size:.8rem}
@media(max-width:700px){.sers-sched-month-cell{min-height:70px;padding:3px}.sers-sched-month-booking{font-size:.7rem}.sers-sched-weekdays span{font-size:.7rem}}

/* V0.14 R15: balanced month scheduler workspace; leave drag/drop logic unchanged. */
.cs-dispatch-month-layout{grid-template-columns:minmax(255px,285px) minmax(0,1fr);align-items:start;gap:16px}
.cs-dispatch-month-layout .cs-dispatch-queue{min-width:0;position:sticky;top:16px}
.cs-dispatch-month-layout .cs-sched-month-panel{min-width:0;padding:16px!important;overflow-x:auto}
.cs-dispatch-month-layout .cs-sched-month-panel h2{margin:0 0 14px;font-size:clamp(19px,2vw,24px)}
.cs-dispatch-month-layout .sers-sched-weekdays,.cs-dispatch-month-layout .sers-sched-grid.sers-sched-month{min-width:680px;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cs-dispatch-month-layout .sers-sched-weekdays{margin-bottom:4px;background:var(--surface-alt,#edf3fa);border-radius:7px}
.cs-dispatch-month-layout .sers-sched-weekdays span{font-size:12px;padding:10px 4px}
.cs-dispatch-month-layout .sers-sched-month-cell{min-height:115px;padding:9px;border-radius:6px;background:var(--surface,#fff)}
.cs-dispatch-month-layout .sers-sched-month-cell.is-empty{background:var(--surface-alt,#edf3fa);opacity:.5}
.cs-dispatch-month-layout .sers-sched-month-date{font-size:13px;text-decoration:none}
.cs-dispatch-month-layout .sers-sched-month-booking{overflow:hidden;text-overflow:ellipsis;line-height:1.4;text-decoration:none}
@media(max-width:1050px){.cs-dispatch-month-layout{grid-template-columns:minmax(220px,250px) minmax(0,1fr)}}
@media(max-width:850px){.cs-dispatch-month-layout{grid-template-columns:minmax(0,1fr)}.cs-dispatch-month-layout .cs-dispatch-queue{position:static}.cs-dispatch-month-layout .cs-sched-month-panel{overflow-x:auto}}

/* Technician asset register: direct navigation rows */
.tech-asset-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem .75rem;border-bottom:1px solid var(--border-color,#dce3ec);text-decoration:none;color:inherit;min-height:66px}.tech-asset-row:hover,.tech-asset-row:focus-visible{background:var(--surface-hover,#eef5fc)}.tech-asset-row small{display:block;margin-top:.25rem;opacity:.75}.tech-asset-row>span:last-child{font-size:1.5rem}

/* Tenant Office Users & Access: shared spacing token, no inline styling. */
.office-brand .sers-users-account-list{margin-top:22px}

/* V0.15 R20: Office groups administration clarity */
.sers-group-option{display:inline-flex;align-items:center;gap:.45rem;margin:.35rem .7rem .35rem 0;padding:.55rem .75rem;border:1px solid #d4e2f3;border-radius:8px;background:#f7fbff;cursor:pointer;font-size:.9rem}.sers-group-option input{width:auto;margin:0;accent-color:#087de3}.portal-card form+form{margin-top:1rem}.portal-card h3{margin-top:1.1rem}.portal-card>p{line-height:1.5}

/* V0.15 R20 — unified Tenant Office administration pages */
.office-brand .office-main > .portal-welcome,.office-brand .office-main > .sers-office-admin-hero{background:linear-gradient(115deg,#061f43 0%,#084e9a 60%,#087be1 100%);color:#fff;border:1px solid #1c6cb4;border-radius:15px;padding:27px 32px;box-shadow:0 12px 28px #092d5719;margin:0 0 22px;min-height:0}
.office-brand .office-main > .portal-welcome h1{color:#fff;font-size:clamp(26px,3vw,36px);line-height:1.2;margin:5px 0 8px}
.office-brand .office-main > .portal-welcome p{color:#e4f2ff;margin:0;font-size:14px}
.office-brand .office-main > .portal-welcome .eyebrow{color:#a8d9ff;font-size:11px;letter-spacing:.12em;font-weight:800}
.office-brand .office-main > .portal-card,.office-brand .office-main > .portal-admin-grid .portal-card,.office-brand .office-main > .cp-profile,.office-brand .office-main > .cp-reference{border:1px solid #dce8f4;border-radius:14px;box-shadow:0 8px 23px #123c5b0b;padding:24px;margin-bottom:18px;min-height:0}
.office-brand .office-main > .portal-admin-grid{margin-top:0;gap:18px;align-items:start}
.office-brand .office-main .portal-card h2,.office-brand .office-main .office-panel h2{color:#0a2e52;font-size:19px;margin:0 0 13px}
.office-brand .office-main .portal-card form label{display:flex;flex-direction:column;gap:6px;font-weight:650;color:#173b5d;margin:12px 0}
.office-brand .office-main .portal-card input,.office-brand .office-main .portal-card select{max-width:100%;border-radius:8px;border:1px solid #c6d8e9;min-height:42px;padding:9px 11px}
.office-brand .office-main .portal-card button{border-radius:8px;font-weight:700;min-height:42px}
.office-brand .office-main .cp-reference{margin-top:0}
.office-brand .office-main .portal-card .table-scroll{overflow-x:auto}
@media(max-width:650px){.office-brand .office-main > .portal-welcome{padding:22px 18px}.office-brand .office-main > .portal-card,.office-brand .office-main > .portal-admin-grid .portal-card,.office-brand .office-main > .cp-profile,.office-brand .office-main > .cp-reference{padding:17px}.office-brand .office-main .cp-actions>*{flex:1 1 100%}}

/* V0.16 R4: canonical Tenant Office button components.
   Company Settings and Company Profile use these same classes. */
.office-brand .office-main :is(a.cm-primary,button.cm-primary,input.cm-primary,a.cm-secondary,button.cm-secondary,input.cm-secondary){display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-height:42px;min-width:125px;padding:10px 16px;border-radius:8px;font-family:inherit;font-size:13px;font-weight:700;line-height:1.3;text-decoration:none;cursor:pointer;box-shadow:none;transform:none;filter:none;transition:background-color .15s,border-color .15s}
.office-brand .office-main :is(a.cm-primary,button.cm-primary,input.cm-primary){background:#0872bf;color:#fff;border:1px solid #0872bf}
.office-brand .office-main :is(a.cm-secondary,button.cm-secondary,input.cm-secondary){background:#fff;color:#125a9d;border:1px solid #9bc6e8}
.office-brand .office-main :is(a.cm-primary,button.cm-primary,input.cm-primary):hover{background:#075f9e;border-color:#075f9e;filter:none;transform:none;box-shadow:none}
.office-brand .office-main :is(a.cm-secondary,button.cm-secondary,input.cm-secondary):hover{background:#eef7ff;border-color:#0872bf;filter:none;transform:none;box-shadow:none}
.office-brand .office-main :is(a.cm-primary,button.cm-primary,input.cm-primary,a.cm-secondary,button.cm-secondary,input.cm-secondary):focus-visible{outline:3px solid #f4af3e;outline-offset:2px}
.office-brand .office-main :is(button.cm-primary,input.cm-primary,button.cm-secondary,input.cm-secondary):disabled{opacity:.55;cursor:not-allowed}
.office-brand .office-main .cp-profile [hidden]{display:none!important}
.office-brand .office-main .cp-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;border-top:1px solid #e5edf5;padding-top:18px}
.office-brand .office-main .cp-actions #cp-back{margin-right:auto}
.office-brand .office-main .cp-fields .cp-field:last-child:nth-child(odd){grid-column:1/-1}
@media(max-width:650px){.office-brand .office-main .cp-fields .cp-field:last-child:nth-child(odd){grid-column:auto}}

/* Company Settings overview: structural layout only; actions use shared .button component. */
.office-brand .r17-module-empty{margin:8px 0 0;color:var(--muted,#61758e);font-size:13px;line-height:1.5}
.office-brand .r17-setting-card>.button{margin-top:0}
.office-brand .r17-setting-card .r17-module-links:has(.r17-module-empty){display:block}

/* Users & Access: layout only. All action appearance is inherited from shared cm components. */
.office-brand .office-main .sers-user-form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}
.office-brand .office-main .sers-user-form-actions>.cm-primary{width:auto;flex:none}
@media(max-width:540px){.office-brand .office-main .sers-user-form-actions>.cm-primary{width:100%}}

/* V0.16 R6: canonical Company Settings / Groups actions. Appearance lives here only. */
.office-brand .office-main .r17-setting-card > .office-action{align-self:flex-start;width:auto;margin-top:auto}
.office-brand .office-main .office-group-create form > .office-action{width:auto;display:inline-flex}
.office-brand .office-main .office-group-create form{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.office-brand .office-main .office-group-create form label{width:100%}
@media(max-width:540px){.office-brand .office-main .office-group-create form > .office-action{width:auto}}

/* V0.16 R7: explicit office actions use the shared button tokens; no generic submit override. */
:root{--office-btn-primary:#0872bf;--office-btn-primary-hover:#075f9e;--office-btn-secondary-bg:#e9f2fc;--office-btn-secondary-text:#114b82;--office-btn-secondary-border:#b8d2ee;--office-btn-danger-bg:#fff0f1;--office-btn-danger-text:#9a2438;--office-btn-danger-border:#e6a7b1;--office-btn-focus:#f4af3e}
.office-brand .office-main :is(a.office-action,button.office-action){display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;width:max-content;max-width:100%;min-width:0;min-height:40px;padding:9px 15px;margin:0;box-sizing:border-box;border-radius:8px;font:700 13px/1.3 inherit;text-decoration:none;cursor:pointer;box-shadow:none;flex:none}
.office-brand .office-main :is(a.office-action-primary,button.office-action-primary){background:var(--office-btn-primary);color:#fff;border:1px solid var(--office-btn-primary)}
.office-brand .office-main :is(a.office-action-primary,button.office-action-primary):hover{background:var(--office-btn-primary-hover);border-color:var(--office-btn-primary-hover)}
.office-brand .office-main :is(a.office-action-secondary,button.office-action-secondary){background:var(--office-btn-secondary-bg);color:var(--office-btn-secondary-text);border:1px solid var(--office-btn-secondary-border)}
.office-brand .office-main :is(a.office-action-danger,button.office-action-danger){background:var(--office-btn-danger-bg);color:var(--office-btn-danger-text);border:1px solid var(--office-btn-danger-border)}
/* Master Office action selected state: reusable for any navigation/tab group. */
.portal-app :is(a.office-action-primary,button.office-action-primary)[aria-selected="true"],
.portal-app :is(a.office-action-secondary,button.office-action-secondary)[aria-selected="true"]{background:var(--office-btn-primary);border-color:var(--office-btn-primary);color:#fff}
.office-brand .office-main :is(a.office-action,button.office-action):focus-visible{outline:3px solid var(--office-btn-focus);outline-offset:2px}

/* V0.16 R9: Customer Record layout only. Buttons use the shared Office action component above. */
.office-brand .office-main .cs-record{max-width:none;width:100%;min-width:0;padding:0 0 28px}
.office-brand .office-main .cs-record-header{margin:0 0 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.office-brand .office-main .cs-record-header h1{color:#fff;margin:4px 0 6px;font-size:clamp(23px,2vw,30px)}
.office-brand .office-main .cs-record-header .eyebrow{color:#b9ddff}
.office-brand .office-main .cs-record-meta span{background:rgba(255,255,255,.14);color:#fff}
.office-brand .office-main .cs-record-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.office-brand .office-main .cs-record-tabs{background:#fff;border:1px solid #d7e4ee;border-radius:11px 11px 0 0;padding:6px;gap:6px}
.office-brand .office-main .cs-record-tabs button{flex:1;min-width:max-content;border:1px solid transparent;border-radius:7px;background:transparent;color:#355672;box-shadow:none}
.office-brand .office-main .cs-record-tabs button[aria-selected=true]{background:#e9f3ff;border-color:#a9cde9;color:#075ca5;box-shadow:none}
.office-brand .office-main .cs-record-pane{border-top:0;border-radius:0 0 11px 11px}
@media(max-width:720px){.office-brand .office-main .cs-record-actions{width:auto}.office-brand .office-main .cs-record-tabs button{flex:0 0 auto}}

/* V0.16 R10 — Site Record uses existing shared header, cards and Office actions. */
.office-brand .office-main .cs-record{max-width:none;width:100%;min-width:0}
.office-brand .office-main .cs-record-header.portal-welcome{padding:22px 24px;margin:0 0 16px;min-height:112px}
.office-brand .office-main .cs-record-header.portal-welcome h1{color:#fff}
.office-brand .office-main .cs-record-header.portal-welcome .cs-record-meta span{color:#fff}
.office-brand .office-main .cs-record-header.portal-welcome .cs-record-meta a{color:#cceaff}
.office-brand .office-main .cs-record-grid{align-items:start}
.office-brand .office-main .cs-record-grid>.cs-record-group{min-height:0;height:auto}
.office-brand .office-main .cs-record-group{background:#fff}
.office-brand .office-main .cs-record-group .cm-dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.office-brand .office-main .cs-site-assets{margin-top:16px}
@media(max-width:720px){.office-brand .office-main .cs-record-header.portal-welcome{padding:18px}.office-brand .office-main .cs-record-header .cs-record-actions{width:100%}}
/* Typography baseline: a single inherited application family, with safe system fallback. */
body.public-app,body.core-app,body.portal-app,.office-brand{font-family:var(--sers-font-family)}
.office-brand :is(button,input,select,textarea){font-family:inherit}

/* V0.16 R12: dashboard parity with Tenant Office shared shell and typography. */
.office-brand .office-main > .office-dashboard-standard{width:100%;max-width:none;margin:0;min-width:0;font-family:var(--sers-font-family)}
.office-brand .office-dashboard-standard .r14-breadcrumb{margin:0 0 16px;font-size:11px;line-height:1.5}
.office-brand .office-dashboard-standard > .portal-welcome{width:100%;max-width:none;margin:0 0 22px;padding:27px 32px;min-height:0;border:1px solid #1c6cb4;border-radius:15px;background:linear-gradient(115deg,#061f43 0%,#084e9a 60%,#087be1 100%);box-shadow:0 12px 28px #092d5719;display:flex;align-items:center;justify-content:space-between;gap:20px}
.office-brand .office-dashboard-standard > .portal-welcome h1{color:#fff;font-size:clamp(26px,3vw,36px);line-height:1.2;margin:5px 0 8px}
.office-brand .office-dashboard-standard > .portal-welcome p{color:#e4f2ff;font-size:14px;line-height:1.5}
.office-brand .office-dashboard-standard > .portal-welcome .r14-kicker{color:#a8d9ff;font-size:11px;letter-spacing:.12em;font-weight:800}
.office-brand .office-dashboard-standard .r14-welcome-action.office-action{background:var(--office-btn-secondary-bg);color:var(--office-btn-secondary-text);border:1px solid var(--office-btn-secondary-border);font-family:var(--sers-font-family);font-size:13px;font-weight:700;box-shadow:none;white-space:nowrap}
.office-brand .office-dashboard-standard .r14-section-title h2{font-size:20px;line-height:1.3}
.office-brand .office-dashboard-standard .r14-metric{min-width:0;min-height:108px;padding:16px}
.office-brand .office-dashboard-standard .r14-metric p{font-size:13px}
.office-brand .office-dashboard-standard .r14-metric small{font-size:12px;line-height:1.45}
.office-brand .office-dashboard-standard .r14-metric strong{font-size:25px}
.office-brand .office-dashboard-standard .r14-panel{min-width:0}
.office-brand .office-dashboard-standard .r14-panel h2{font-size:18px}
.office-brand .office-dashboard-standard .r14-actions a strong{font-size:13px}
.office-brand .office-dashboard-standard .r14-actions a small,.office-brand .office-dashboard-standard .r14-availability p,.office-brand .office-dashboard-standard .r14-empty p{font-size:12px}
.office-brand .office-dashboard-standard .r14-module-strip{flex-wrap:wrap}
@media(max-width:850px){.office-brand .office-dashboard-standard .r14-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.office-brand .office-dashboard-standard .r14-main-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.office-brand .office-dashboard-standard > .portal-welcome{padding:20px 18px;display:block}.office-brand .office-dashboard-standard .r14-welcome-action{margin-top:16px}.office-brand .office-dashboard-standard .r14-metrics{gap:10px}.office-brand .office-dashboard-standard .r14-metric{padding:12px}}
@media(max-width:420px){.office-brand .office-dashboard-standard .r14-metrics{grid-template-columns:minmax(0,1fr)}}

/* V0.16 R14: Asset Management standard components, no per-page button colour overrides. */
.office-brand .office-main > .sa-standard-heading{width:100%;box-sizing:border-box;min-height:0;padding:26px 30px;margin-bottom:18px;border:1px solid var(--office-btn-primary);border-radius:14px;background:linear-gradient(115deg,#061f43 0%,#084e9a 60%,#087be1 100%);box-shadow:0 10px 25px #123b6310}
.office-brand .office-main > .sa-standard-heading::after{display:none}
.office-brand .office-main > .sa-standard-heading h1{color:#fff;font-size:clamp(24px,2.5vw,32px);line-height:1.25}
.office-brand .office-main > .sa-standard-heading p{color:#e4f2ff;font-size:14px;line-height:1.5}
.office-brand .office-main > .sa-standard-heading .eyebrow{color:#a8d9ff;font-size:11px;letter-spacing:.12em}
.office-brand .office-main > .sa-config{max-width:none;width:100%;box-sizing:border-box}
.office-brand .sa-config-heading h2{font-size:18px;line-height:1.3}
.office-brand .sa-config-heading p{font-size:14px;line-height:1.5}
.office-brand .sa-category h3{font-size:16px;line-height:1.3}
.office-brand .sa-category p{font-size:13px;line-height:1.5}
.office-brand .sa-category .office-action{font-family:var(--sers-font-family);font-size:13px;line-height:1.35}
.office-brand .sa-category .sa-check-button{display:flex;width:100%;justify-content:center;align-items:center;min-height:40px}
.office-brand .sa-category .sa-check-button .sa-check-box{width:18px;height:18px;flex:0 0 18px}
.office-brand .sa-category .sa-settings-trigger{display:inline-flex;width:auto;max-width:100%;box-sizing:border-box}
.office-brand .sa-catalogue-dialog .office-action{font-family:var(--sers-font-family)}
@media(max-width:650px){.office-brand .office-main > .sa-standard-heading{padding:20px 18px}.office-brand .sa-config{padding:16px}.office-brand .sa-category-grid{grid-template-columns:minmax(0,1fr)}}

/* V0.16 R15: Shared asset editor modal layout; header never overlaps first field. */
.portal-app dialog.cm-dialog.sa-alarm-dialog>.cm-dialog-head{box-sizing:border-box;position:relative;flex:0 0 auto;min-height:64px;padding:14px 20px;z-index:1}
.portal-app dialog.cm-dialog.sa-alarm-dialog>.sa-alarm-content>.sa-alarm-fragment{box-sizing:border-box;width:100%;max-width:100%;padding:0;font:400 14px/1.5 var(--sers-font-family)}
.portal-app dialog.cm-dialog.sa-alarm-dialog .sa-editor{font-family:var(--sers-font-family)}
.portal-app dialog.cm-dialog.sa-alarm-dialog .sa-editor :is(input,select,textarea,button){font-family:inherit}
.portal-app dialog.cm-dialog.sa-alarm-dialog .sa-editor .sa-form-grid{margin-top:0}
.portal-app dialog.cm-dialog.sa-alarm-dialog .sa-editor .sa-form-grid label{margin:0;min-width:0}
.portal-app dialog.cm-dialog.sa-alarm-dialog .sa-editor .sa-form-grid :is(input,select,textarea){min-height:40px}
.portal-app dialog.cm-dialog.sa-confirm-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 24px));max-width:none;padding:0;overflow:hidden;border:0;border-radius:14px;font-family:var(--sers-font-family)}
.portal-app dialog.cm-dialog.sa-confirm-dialog>.cm-dialog-head{padding:16px 20px;display:flex;justify-content:space-between;align-items:center}
.portal-app dialog.cm-dialog.sa-confirm-dialog>.sa-confirm-body{padding:20px;display:grid;gap:14px}
.portal-app dialog.cm-dialog.sa-confirm-dialog>.sa-confirm-body p{margin:0;line-height:1.5}
.portal-app dialog.cm-dialog.sa-confirm-dialog>.sa-confirm-body label{display:grid;gap:8px;font-weight:600}
.portal-app dialog.cm-dialog.sa-confirm-dialog>.sa-confirm-body input{min-height:42px;border:1px solid #cbd9e8;border-radius:8px;padding:9px;font:inherit}
.portal-app dialog.cm-dialog.sa-confirm-dialog>.cm-dialog-actions{padding:14px 20px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #dce6ef}
@media(max-width:640px){.portal-app dialog.cm-dialog.sa-alarm-dialog>.cm-dialog-head{min-height:56px;padding:12px 14px}.portal-app dialog.cm-dialog.sa-alarm-dialog>.sa-alarm-content{padding:14px}}

/* V0.16 R16: asset workspace sizing and shared action contract. */
.portal-app dialog.cm-dialog.sa-alarm-dialog{margin:auto;position:fixed;inset:0;max-height:calc(100dvh - 24px)}
.portal-app dialog.cm-dialog.sa-alarm-dialog>.sa-alarm-content{flex:0 1 auto;max-height:calc(100dvh - 105px);overflow-y:auto;scroll-behavior:auto}
.portal-app .sa-editor .sa-section-head .office-action{white-space:normal;text-align:center}
.portal-app .sa-editor .sa-security-note{display:none}
.portal-app .sa-editor:has([data-sa-section="panel"]:not([hidden])) .sa-security-note{display:block}


@media(max-width:640px){.portal-app dialog.cm-dialog.sa-alarm-dialog>.sa-alarm-content{max-height:calc(100dvh - 85px)}.portal-app .sa-editor .sa-section-head{flex-wrap:wrap}}


/* V0.16 R17 — Core Administration design contract.
   Scoped to core-app: no tenant, technician, customer or public styles affected.
   Shared design tokens govern all Core page actions, headings and forms. */
.core-app{
  --core-ink:#102e4c;--core-muted:#5d728b;--core-border:#dbe7f2;
  --core-action-primary:#0877d7;--core-action-primary-hover:#075eae;
  --core-action-secondary-bg:#fff;--core-action-secondary-border:#a8ccec;
  --core-action-secondary-text:#07538f;--core-action-danger:#b72f42;
  font-family:var(--sers-font-family);
  font-size:var(--sers-font-body);
  line-height:1.5;
}
.core-app :is(button,input,select,textarea){font-family:var(--sers-font-family)}
.core-app .core-main{width:100%;max-width:none;padding:28px clamp(18px,2.3vw,40px) 48px}
.core-app .core-main :is(.core-heading,.cm-heading,.workspace-heading){
  box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:18px;padding:24px 28px;margin:0 0 20px;
  border:1px solid #1b66a5;border-radius:14px;
  background:linear-gradient(110deg,#061e40 0%,#08477e 55%,#0875cf 100%);
  box-shadow:0 10px 24px #092c5216;color:#fff;
}
.core-app .core-main :is(.core-heading,.cm-heading,.workspace-heading) :is(h1,h2){font-size:clamp(23px,2.1vw,31px);line-height:1.25;color:#fff!important;margin:4px 0 7px;letter-spacing:-.025em}
.core-app .core-main :is(.core-heading,.cm-heading,.workspace-heading) p{font-size:14px;color:#d9edff;line-height:1.5;margin:0}
.core-app .core-main :is(.core-heading,.cm-heading,.workspace-heading) :is(.eyebrow,.r14-kicker){color:#a7dbff;font-size:11px;font-weight:800;letter-spacing:.11em}
.core-app .core-main :is(.panel,.office-panel,.module-admin-card,.cm-list){border-radius:12px}
.core-app .core-main :is(h2,h3){letter-spacing:-.015em}
.core-app .core-main :is(.panel,.office-panel,.module-admin-card) h2{font-size:18px;line-height:1.35}
.core-app .core-main :is(label,th){font-size:13px}
.core-app .core-main :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){
  min-height:40px;border:1px solid #c5d8e8;border-radius:8px;
  font-size:14px;line-height:1.4;color:var(--core-ink);
}
.core-app .core-main :is(input,select,textarea):focus-visible{outline:2px solid #1485e9;outline-offset:2px}
.core-app .core-action{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:39px;max-width:100%;width:auto;padding:9px 14px;
  border:1px solid transparent;border-radius:8px;
  font:600 13px/1.35 var(--sers-font-family);
  text-decoration:none;white-space:normal;text-align:center;cursor:pointer;
  box-shadow:none;transform:none;
}
.core-app .core-action-primary{background:var(--core-action-primary);border-color:var(--core-action-primary);color:#fff}
.core-app .core-action-primary:hover{background:var(--core-action-primary-hover);border-color:var(--core-action-primary-hover);color:#fff}
.core-app .core-action-secondary{background:var(--core-action-secondary-bg);border-color:var(--core-action-secondary-border);color:var(--core-action-secondary-text)}
.core-app .core-action-secondary:hover{background:#eaf5ff;color:#064b83}
.core-app .core-action-danger{background:var(--core-action-danger);border-color:var(--core-action-danger);color:#fff}
.core-app .core-action-danger:hover{background:#912337;color:#fff}
.core-app .core-action-small{min-height:33px;padding:6px 11px;font-size:12px}
.core-app .core-action:focus-visible{outline:3px solid #f2aa32;outline-offset:2px}
.core-app .core-action:disabled{opacity:.55;cursor:not-allowed}
.core-app .cm-dialog :is(.core-action,.cm-close){font-family:var(--sers-font-family)}
.core-app .cm-dialog .cm-dialog-head{background:linear-gradient(110deg,#061e40,#085d9f)}
.core-app .cm-dialog .cm-dialog-actions{gap:10px}
.core-app .cm-dialog .cm-dialog-foot{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.core-app .core-provider-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin:20px 0}
.core-app .core-provider-link{display:block;text-decoration:none}
.core-app .core-section-spaced{margin-top:18px}
.core-app .core-main .table-scroll{max-width:100%;overflow-x:auto}
@media(max-width:700px){
 .core-app .core-main{padding:18px 14px 32px}
 .core-app .core-main :is(.core-heading,.cm-heading,.workspace-heading){padding:20px 17px;align-items:flex-start;flex-direction:column}
 .core-app .core-action{max-width:100%}
}

/* V0.16 R18 — module settings cards follow Security Asset Management layout */
.portal-app .invoicing-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:16px;margin-top:18px}
.portal-app .invoicing-settings-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:0;min-height:176px;padding:20px}
.portal-app .invoicing-settings-card h3{font:700 17px/1.35 var(--sers-font-family);margin:0;color:#092e55}
.portal-app .invoicing-settings-card p{font-size:13px;line-height:1.5;color:#526780;margin:0 0 auto}
.portal-app .invoicing-settings-note{font-size:13px;color:#526780;margin:18px 0 0}
.portal-app .invoicing-module-overview{margin-top:18px}

/* V0.17 R3 — invoice workspace remediation; all action colors come from shared Office action tokens. */
.office-brand .invoice-workspace{width:100%;max-width:none;min-width:0}
.office-brand .invoice-workspace .accounting-heading{align-items:flex-start}
.office-brand .invoice-workspace .accounting-heading p{margin-bottom:0}
.office-brand .invoice-workspace .accounting-register{width:100%;max-width:none;box-sizing:border-box}
.office-brand .invoice-workspace .accounting-register .table-scroll{width:100%}
.office-brand .invoice-workspace .invoice-entry>.accounting-section-heading h2{color:inherit;margin:0;font-size:20px;line-height:1.3}
.office-brand .invoice-workspace .invoice-entry>.accounting-section-heading p{color:inherit;opacity:.92;margin:5px 0 0}
.office-brand .invoice-workspace .invoice-entry>.accounting-section-heading .office-action{flex-shrink:0}
.office-brand .invoice-workspace .invoice-entry .financial-details-header{padding:15px 20px}
.office-brand .invoice-workspace .invoice-entry .financial-details-body{padding:18px 20px}
.office-brand .invoice-workspace .invoice-entry .financial-details-header h3{font-size:17px;margin:0 0 3px}
.office-brand .invoice-workspace .invoice-entry .financial-scope-wrap{padding:18px 20px}
.office-brand .invoice-workspace .invoice-entry .financial-rich-toolbar{display:flex}
.office-brand .invoice-workspace .invoice-entry .financial-editor-footer{display:flex}
.office-brand .invoice-workspace .invoice-entry .accounting-form-actions{align-items:center;flex-wrap:wrap}
.office-brand .invoice-workspace .invoice-entry .accounting-document-form{min-width:0}
@media(max-width:700px){.office-brand .invoice-workspace .invoice-entry>.accounting-section-heading{align-items:flex-start}.office-brand .invoice-workspace .invoice-entry .financial-details-body{padding:14px}.office-brand .invoice-workspace .invoice-entry .financial-scope-wrap{padding:14px}.office-brand .invoice-workspace .invoice-entry .accounting-form-actions{justify-content:stretch}.office-brand .invoice-workspace .invoice-entry .accounting-form-actions .office-action{flex:1}}

/* V0.17 R5: invoice pages use the approved shared tenant welcome header. */
.office-brand .office-main .invoice-workspace>.portal-welcome,
.office-brand .office-main .invoice-document-view>.portal-welcome{
  display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
  width:100%;max-width:none;box-sizing:border-box;padding:24px 26px;margin:0 0 18px;
}
.office-brand .office-main .invoice-workspace>.portal-welcome h1,
.office-brand .office-main .invoice-document-view>.portal-welcome h1{color:#fff}
.office-brand .office-main .invoice-workspace>.portal-welcome p,
.office-brand .office-main .invoice-document-view>.portal-welcome p{color:#e4f2ff}
.office-brand .office-main .invoice-workspace>.portal-welcome .r14-kicker,
.office-brand .office-main .invoice-document-view>.portal-welcome .eyebrow{color:#a8d9ff}
@media(max-width:650px){.office-brand .office-main .invoice-workspace>.portal-welcome,.office-brand .office-main .invoice-document-view>.portal-welcome{padding:20px 18px}}

/* V0.17 R5: Invoice screens follow the approved full-width Tenant Office workspace. */
.office-brand .office-main .invoice-detail-page,.office-brand .office-main .invoice-workspace{width:100%;max-width:none;min-width:0}
.office-brand .office-main .invoice-detail-page>.cm-heading,.office-brand .office-main .invoice-workspace>.accounting-heading{width:100%;max-width:none;box-sizing:border-box}
.office-brand .office-main .invoice-detail-page>.office-panel,.office-brand .office-main .invoice-detail-page>.invoice-document-actions,.office-brand .office-main .invoice-detail-page>.invoice-existing-workspace{width:100%;max-width:none;box-sizing:border-box}
.office-brand .office-main .invoice-detail-page .invoice-document-actions .sa-form-actions{justify-content:flex-start;align-items:center;gap:10px}
.office-brand .office-main .invoice-detail-page .invoice-document-actions .sa-form-actions form{display:inline-flex;margin:0}
.office-brand .office-main .invoice-detail-page .invoice-document-actions .sa-form-actions .button{width:auto}
@media(max-width:700px){.office-brand .office-main .invoice-detail-page .invoice-document-actions .sa-form-actions .button{width:100%}}

/* Invoice detail layout: shared master action buttons, no page-specific button colours. */
.office-brand .office-main .invoice-document-view{width:100%;max-width:none;min-width:0}
.office-brand .office-main .invoice-document-view>.portal-welcome,.office-brand .office-main .invoice-document-view>.office-panel{width:100%;max-width:none;box-sizing:border-box}
.office-brand .office-main .invoice-document-view .invoice-document-actions .sa-form-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:10px}
.office-brand .office-main .invoice-document-view .invoice-document-actions .sa-form-actions form{display:inline-flex;margin:0}
.office-brand .office-main .invoice-document-view .invoice-existing-workspace,.office-brand .office-main .invoice-document-view .accounting-document-form{max-width:none;width:100%;box-sizing:border-box}


/* V0.17 R6 — Quotes share the approved Office financial workspace standard.
   Layout only: action colours and states remain owned by the master office-action rules. */
.office-brand .office-main .quote-workspace,
.office-brand .office-main .quote-document-view{width:100%;max-width:none;min-width:0;box-sizing:border-box}
.office-brand .office-main .quote-workspace>.portal-welcome,
.office-brand .office-main .quote-document-view>.portal-welcome{
  display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
  width:100%;max-width:none;box-sizing:border-box;padding:24px 26px;margin:0 0 18px;
}
.office-brand .office-main .quote-workspace>.portal-welcome h1,
.office-brand .office-main .quote-document-view>.portal-welcome h1{color:#fff}
.office-brand .office-main .quote-workspace>.portal-welcome p,
.office-brand .office-main .quote-document-view>.portal-welcome p{color:#e4f2ff}
.office-brand .office-main .quote-workspace>.portal-welcome .r14-kicker,
.office-brand .office-main .quote-document-view>.portal-welcome .eyebrow{color:#a8d9ff}
.office-brand .office-main .quote-workspace>.accounting-metrics,
.office-brand .office-main .quote-workspace>.accounting-register,
.office-brand .office-main .quote-workspace>.accounting-editor,
.office-brand .office-main .quote-document-view>.office-panel{width:100%;max-width:none;min-width:0;box-sizing:border-box}
.office-brand .office-main .quote-document-view .invoice-document-actions .sa-form-actions{justify-content:flex-start;align-items:center;gap:10px;flex-wrap:wrap}
.office-brand .office-main .quote-document-view .invoice-document-actions .sa-form-actions form{display:inline-flex;margin:0}
.office-brand .office-main .quote-workspace .accounting-form-actions{flex-wrap:wrap;gap:10px}
@media(max-width:650px){
  .office-brand .office-main .quote-workspace>.portal-welcome,
  .office-brand .office-main .quote-document-view>.portal-welcome{padding:20px 18px}
  .office-brand .office-main .quote-document-view .invoice-document-actions .sa-form-actions>*{max-width:100%}
}

/* V0.17 R8: inventory editor uses canonical Office action tokens and content-sized dialog. */
.office-brand .office-main .stock-editor-dialog.r14-stock-dialog{height:fit-content!important;max-height:calc(100dvh - 28px)!important;overflow:hidden!important}
.office-brand .office-main .stock-editor-dialog .stock-editor-form{height:auto!important;min-height:0!important;max-height:calc(100dvh - 28px)!important;display:flex!important;flex-direction:column!important}
.office-brand .office-main .stock-editor-dialog .stock-editor-content{flex:0 1 auto!important;min-height:0!important;overflow-y:auto!important}
.office-brand .office-main .stock-editor-dialog .r14-modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:0!important;padding:12px 18px!important;flex:0 0 auto!important}
.office-brand .office-main .stock-editor-dialog .r14-modal-actions .office-action{align-self:auto;width:auto}
@media(max-width:540px){.office-brand .office-main .stock-editor-dialog .r14-modal-actions{flex-wrap:wrap}}

/* V0.17 R10 — shared Office modal section-tab contract. No legacy cm/c-primary buttons. */
.office-brand .office-main .office-editor-tab{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;border:1px solid var(--office-btn-border,#cbd9ea);border-radius:var(--office-btn-radius,8px);background:var(--office-btn-secondary-bg,#f4f8fd);color:var(--office-btn-secondary-text,#17365b);font:inherit;font-weight:700;line-height:1.25;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}
.office-brand .office-main .office-editor-tab[aria-selected="true"]{background:var(--office-btn-primary,#087ad6);border-color:var(--office-btn-primary,#087ad6);color:#fff}
.office-brand .office-main .office-editor-tab:focus-visible{outline:2px solid var(--office-btn-primary,#087ad6);outline-offset:2px}
@media(max-width:600px){.office-brand .office-main .stock-editor-tabs .office-editor-tab{min-width:0;padding:9px 6px;font-size:12px}}


/* V0.17 R12 — shared approved Office module hero and full-width workspace layout.
   Header appearance is owned here; individual pages provide content only. */
.office-brand .office-main .office-standard-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;width:100%;max-width:none;box-sizing:border-box;padding:23px 21px;margin:0 0 14px;border-radius:13px;background:linear-gradient(105deg,#092d5d 0%,#07549e 55%,#0877db 100%);color:#fff;box-shadow:0 1px 2px rgba(9,35,70,.12)}
.office-brand .office-main .office-standard-hero-copy{min-width:0;flex:1 1 320px}
.office-brand .office-main .office-standard-hero-kicker{display:block;color:#b7dcff;font-size:10px;font-weight:800;letter-spacing:.09em;margin-bottom:7px}
.office-brand .office-main .office-standard-hero h1{font-size:34px;line-height:1.15;color:#fff;margin:0 0 9px;font-weight:800;letter-spacing:-.025em}
.office-brand .office-main .office-standard-hero p{color:#fff;font-size:13px;font-weight:500;margin:0;line-height:1.5}
.office-brand .office-main .office-standard-hero .office-standard-hero-action{flex:0 0 auto;background:#006abf;border-color:#006abf;color:#fff}
.office-brand .office-main .office-standard-hero .office-standard-hero-action:hover{background:#00559b;border-color:#00559b}
.office-brand .office-main .inventory-standard-page,.office-brand .office-main .po-fullpage-workspace{width:100%;max-width:none;box-sizing:border-box}
.office-brand .office-main .inventory-standard-page>.office-panel,.office-brand .office-main .inventory-standard-page>.cm-list,.office-brand .office-main .inventory-standard-page>.r14-register-bar{width:100%;max-width:none;box-sizing:border-box}
@media(max-width:700px){.office-brand .office-main .office-standard-hero{padding:18px 16px;align-items:flex-start}.office-brand .office-main .office-standard-hero h1{font-size:26px}.office-brand .office-main .office-standard-hero-action{max-width:100%}}

/* V0.17 R17 - canonical Office hero: all Office pages use this master component. */
.portal-app .office-standard-hero,
.portal-app .cs-heading.office-standard-hero {
 display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
 width:100%;box-sizing:border-box;min-height:124px;padding:20px 22px;
 border:0;border-radius:13px;
 background:linear-gradient(110deg,#0b3465 0%,#0b518e 56%,#087bdb 100%);
 color:#fff;box-shadow:none;margin:0 0 14px;
}
.portal-app .office-standard-hero h1,.portal-app .cs-heading.office-standard-hero h1{
 color:#fff;font-size:clamp(1.65rem,2.2vw,2.2rem);line-height:1.17;letter-spacing:-.025em;margin:6px 0 8px;
}
.portal-app .office-standard-hero p,.portal-app .office-standard-hero .eyebrow,
.portal-app .office-standard-hero .r14-kicker,.portal-app .office-standard-hero .office-standard-hero-kicker{
 color:#e5f1ff;
}
.portal-app .office-standard-hero .eyebrow,.portal-app .office-standard-hero .r14-kicker,
.portal-app .office-standard-hero .office-standard-hero-kicker{font-size:11px;font-weight:750;letter-spacing:.055em}
.portal-app .office-standard-hero a:not(.office-action),.portal-app .office-standard-hero button:not(.office-action){
 color:#fff;
}
.portal-app .office-standard-hero .office-action-primary{background:#086fbf;color:#fff;border-color:#086fbf}
.portal-app .office-standard-hero .office-action-secondary{background:#fff;color:#17456f;border-color:#d3e2f2}
@media(max-width:700px){.portal-app .office-standard-hero{padding:18px;min-height:0;align-items:stretch}.portal-app .office-standard-hero-action{width:100%;justify-content:center}}

/* V0.17 R18 - Suppliers uses the same master page header and content width. */
.portal-app .supplier-page {width:100%;max-width:none;min-width:0;}
.portal-app .supplier-page > .office-standard-hero,
.portal-app .supplier-page > .supplier-register {width:100%;max-width:none;box-sizing:border-box;}
.portal-app .supplier-page > .supplier-register {margin-top:14px;}
.portal-app .supplier-register-heading {margin-bottom:18px;}
.portal-app .supplier-register-heading strong {font-weight:750;color:#10365e;}
.portal-app .supplier-register-heading p {margin:4px 0 0;color:#61738b;}
.portal-app .supplier-page .supplier-table-wrap {width:100%;overflow-x:auto;}
.portal-app .supplier-page .supplier-table-wrap table {width:100%;}
.portal-app .supplier-page .supplier-edit {min-width:88px;}

/* V0.17 R19: Suppliers is a full-page editor, never a modal. */
.office-main .supplier-page .supplier-editor-page{width:100%;max-width:none;box-sizing:border-box;margin-top:14px;padding:0;overflow:visible;background:#fff;border:1px solid #d9e5f4;border-radius:13px;box-shadow:none}
.office-main .supplier-page .supplier-editor-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:20px 24px;border-bottom:1px solid #d9e5f4;background:#fff;color:#10365e}
.office-main .supplier-page .supplier-editor-heading h2{margin:4px 0;font-size:22px;color:#10365e}
.office-main .supplier-page .supplier-editor-heading p{margin:0;color:#61738b}
.office-main .supplier-page .supplier-editor-kicker{font-size:11px;letter-spacing:.06em;font-weight:750;color:#52769d}
.office-main .supplier-page .supplier-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:18px 24px 0}
.office-main .supplier-page .supplier-tab{border:1px solid #c8d9ef;background:#f1f6fd;color:#153c65;border-radius:8px;padding:10px 14px;cursor:pointer;font-weight:650}
.office-main .supplier-page .supplier-tab[aria-selected="true"]{background:#0872bf;border-color:#0872bf;color:#fff}
.office-main .supplier-page .supplier-panel{border:0;padding:0;margin:0}
.office-main .supplier-page .supplier-panel[hidden]{display:none}
.office-main .supplier-page .supplier-panel legend{font-size:16px;font-weight:750;color:#123961;padding:20px 24px 0}
.office-main .supplier-page .supplier-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:18px 24px 24px}
.office-main .supplier-page .supplier-fields label{display:flex;flex-direction:column;gap:7px;font-weight:650;color:#18395e}
.office-main .supplier-page .supplier-fields input,.office-main .supplier-page .supplier-fields select,.office-main .supplier-page .supplier-fields textarea{width:100%;box-sizing:border-box;min-width:0;border:1px solid #c8d9ef;border-radius:8px;padding:11px;background:#fff}
.office-main .supplier-page .supplier-editor-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 24px;border-top:1px solid #d9e5f4}
@media(max-width:720px){.office-main .supplier-page .supplier-fields{grid-template-columns:1fr;padding:16px}.office-main .supplier-page .supplier-editor-heading{padding:16px}.office-main .supplier-page .supplier-editor-actions{padding:16px}}

/* V0.17 R20 - Inventory Settings master Office layout.
   Scope only to Inventory Settings; no local button appearance overrides. */
.office-brand .office-main .inventory-settings-page {
  width:100%;max-width:none;min-width:0;box-sizing:border-box;
}
.office-brand .office-main .inventory-settings-page > .office-standard-hero,
.office-brand .office-main .inventory-settings-page > .office-panel {
  width:100%;max-width:none;min-width:0;box-sizing:border-box;
}
.office-brand .office-main .inventory-settings-page > .office-panel {margin-top:14px;}
.office-brand .office-main .inventory-settings-table-scroll {
  width:100%;max-width:100%;overflow-x:auto;
}
.office-brand .office-main .inventory-settings-table-scroll > table {
  width:100%;min-width:400px;
}
.office-brand .office-main .inventory-settings-form {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 16px;align-items:end;
}
.office-brand .office-main .inventory-settings-form > label {min-width:0;}
.office-brand .office-main .inventory-settings-form > label :is(input,select) {
  box-sizing:border-box;width:100%;
}
.office-brand .office-main .inventory-settings-form > .inventory-settings-actions {
  grid-column:1/-1;display:flex;justify-content:flex-end;
  border-top:1px solid #dce6f1;padding-top:14px;margin-top:4px;
}
.office-brand .office-main .inventory-settings-actions > .office-action {
  width:auto;min-width:0;flex:none;
}
@media(max-width:700px) {
  .office-brand .office-main .inventory-settings-form {
    grid-template-columns:minmax(0,1fr);
  }
}

/* V0.18 R2 — canonical authentication UI for Core/Office sign-in and Office OTP.
   Keep the established pale-blue backdrop and white card; centralise both action states. */
body.auth-app .auth-main > .auth-standard-card {
  width:100%;max-width:480px;box-sizing:border-box;
  border:1px solid #dbe8f5;border-radius:16px;
  background:#fff;box-shadow:0 20px 54px rgba(9,42,79,.12);
}
body.auth-app .auth-standard-card form + form {margin-top:10px;}
body.auth-app .auth-standard-card .auth-action {
  display:inline-flex;align-items:center;justify-content:center;
  width:100%;min-height:48px;box-sizing:border-box;
  border-radius:8px;border:1px solid transparent;
  font:inherit;font-weight:700;cursor:pointer;
  transition:background-color .15s ease,border-color .15s ease;
}
body.auth-app .auth-standard-card .auth-action-primary {
  color:#fff;background:linear-gradient(105deg,#0873d4,#0b9bf5);border-color:#0873d4;
}
body.auth-app .auth-standard-card .auth-action-primary:hover {background:#086abf;}
body.auth-app .auth-standard-card .auth-action-secondary {
  color:#0b467d;background:#fff;border-color:#aac7e7;
}
body.auth-app .auth-standard-card .auth-action-secondary:hover {background:#edf5ff;}
body.auth-app .auth-standard-card .auth-action:focus-visible {
  outline:3px solid #8acaff;outline-offset:2px;
}
body.auth-app .auth-main > .office-auth-card {
  max-width:390px;
  padding:26px;
}
body.auth-app .office-auth-card h1 {
  font-size:clamp(24px,4vw,29px);
  margin:6px 0 16px;
}
body.auth-app .office-auth-card form {gap:12px;}
body.auth-app .office-auth-card input {height:42px;padding:8px 11px;}
body.auth-app .office-auth-card .auth-action {
  align-self:flex-start;
  width:auto;
  min-height:38px;
  padding:7px 14px;
  box-shadow:none;
}
body.auth-app .office-auth-card .auth-action-primary {
  background:#0872bf;
  border-color:#0872bf;
}
body.auth-app .office-auth-card .auth-action-primary:hover {background:#075b99;}
@media(max-width:620px){
  body.auth-app .office-auth-card .auth-action {min-height:44px;}
}
@media(max-width:420px){body.auth-app .auth-main>.auth-standard-card{max-width:100%;}}

/* V0.18 R3: Jobs register uses the approved shared Office hero and buttons.
   No page-specific button colours, sizes or background overrides. */
.office-brand .office-main .jobs-register-page {
  max-width:none;width:100%;margin:0;padding:0 0 24px;box-sizing:border-box;
}
.office-brand .office-main .jobs-register-page > .jobs-register-panel {
  width:100%;max-width:none;box-sizing:border-box;
  padding:18px 20px;margin:0;border-color:#d9e5f4;border-radius:12px;
}
.office-brand .office-main .jobs-register-panel > h2 {
  font-size:18px;line-height:1.3;margin:0 0 18px;font-weight:750;color:#10365e;
}
.office-brand .office-main .jobs-register-panel .cs-jobs-search {
  padding:0;margin:0 0 16px;gap:12px;align-items:end;
}
.office-brand .office-main .jobs-register-panel .cs-jobs-search label {
  margin:0;min-width:0;
}
.office-brand .office-main .jobs-register-panel .cs-jobs-search :is(input,select) {
  height:38px;margin-top:6px;box-sizing:border-box;
}
.office-brand .office-main .jobs-register-panel .cs-jobs-search :is(button,a) {
  align-self:end;
}
.office-brand .office-main .jobs-register-panel .table-scroll {
  width:100%;overflow-x:auto;
}
.office-brand .office-main .jobs-register-panel .cs-table {
  width:100%;min-width:720px;
}
@media(max-width:700px) {
 .office-brand .office-main .jobs-register-panel .cs-jobs-search label:first-child,
 .office-brand .office-main .jobs-register-panel .cs-jobs-search label:nth-child(2) {
   width:100%;
 }
}

/* V0.18 R4: New Job uses the same approved Office header and form-panel layout.
   Only layout/typography here; button colours and dimensions belong to master office-action. */
.office-brand .office-main .new-job-page {
  width:100%;max-width:none;min-width:0;margin:0;padding:0 0 28px;box-sizing:border-box;
}
.office-brand .office-main .new-job-page > .new-job-details-panel {
  width:100%;max-width:none;min-width:0;box-sizing:border-box;
  margin:14px 0 0;padding:20px 22px;overflow:visible;
  border:1px solid #d9e5f4;border-radius:12px;
}
.office-brand .office-main .new-job-details-panel > h2 {
  margin:0 0 16px;font-size:18px;line-height:1.35;
  font-weight:750;color:#10365e;
}
.office-brand .office-main .new-job-details-panel .cs-job-form {
  width:100%;max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 20px;
}
.office-brand .office-main .new-job-details-panel .cs-job-form > label {
  min-width:0;margin:0;
}
.office-brand .office-main .new-job-details-panel .cs-job-form :is(input,select,textarea) {
  width:100%;box-sizing:border-box;
}
.office-brand .office-main .new-job-details-panel .cs-job-actions {
  display:flex;justify-content:flex-end;
  border-top:1px solid #dce6f1;padding-top:14px;margin-top:4px;
}
.office-brand .office-main .new-job-details-panel .cs-job-actions > .office-action {
  width:auto;flex:none;
}
@media(max-width:700px){
 .office-brand .office-main .new-job-page > .new-job-details-panel{padding:16px}
 .office-brand .office-main .new-job-details-panel .cs-job-form{grid-template-columns:minmax(0,1fr)}
 .office-brand .office-main .new-job-details-panel .cs-job-form > *{grid-column:1/-1}
 .office-brand .office-main .new-job-details-panel .cs-job-contact-details{grid-template-columns:minmax(0,1fr)}
}

/* V0.18 R5 - Scheduler uses the shared Office hero and action components.
   Scoped layout only: booking grid, drag targets, assignment JS remain unchanged. */
.office-brand .office-main .scheduler-standard-page {
  width:100%;max-width:none;min-width:0;box-sizing:border-box;
}
.office-brand .office-main .scheduler-standard-page > .office-standard-hero {
  width:100%;max-width:none;margin-bottom:14px;
}
.office-brand .office-main .scheduler-standard-page > .cs-dispatch-toolbar {
  display:flex;flex-wrap:wrap;gap:12px;align-items:end;
  padding:14px 16px;margin-bottom:14px;
}
.office-brand .office-main .scheduler-standard-page .cs-dispatch-toolbar .cs-dispatch-views {
  display:flex;align-items:center;flex-wrap:wrap;gap:6px;
}
.office-brand .office-main .scheduler-standard-page .cs-dispatch-toolbar .cs-dispatch-views a {
  width:auto;min-width:0;text-decoration:none;
}
.office-brand .office-main .scheduler-standard-page .cs-dispatch-toolbar .cs-dispatch-views a.is-active {
  background:#087bd6;color:#fff;border-color:#087bd6;
}
.office-brand .office-main .scheduler-standard-page .cs-dispatch-toolbar form {
  display:flex;flex-wrap:wrap;gap:8px;align-items:end;
}
.office-brand .office-main .scheduler-standard-page .cs-dispatch-toolbar form label {
  min-width:0;
}
.office-brand .office-main .scheduler-standard-page .cs-dispatch-toolbar form input[type=date] {
  height:38px;box-sizing:border-box;
}
.office-brand .office-main .scheduler-standard-page .cs-dispatch-layout {
  grid-template-columns:minmax(250px,285px) minmax(0,1fr);gap:14px;
}
.office-brand .office-main .scheduler-standard-page .cs-dispatch-queue h2 {
  font-size:18px;line-height:1.3;font-weight:750;margin:0 0 8px;
}
.office-brand .office-main .scheduler-standard-page .cs-sched-month-panel h2 {
  font-size:20px;line-height:1.3;font-weight:750;margin:0 0 12px;
}
@media(max-width:900px){
  .office-brand .office-main .scheduler-standard-page .cs-dispatch-layout {
    grid-template-columns:minmax(0,1fr);
  }
  .office-brand .office-main .scheduler-standard-page .cs-dispatch-queue {
    position:static;
  }
}

/* V0.18 R6: one vertical scrollbar (browser) for Day/Week scheduler.
   Keep horizontal-only access to technician columns on small screens. */
@media (max-width: 760px) {
  .office-brand .cs-dispatch-scroll {overflow-x:auto;overflow-y:clip;max-height:none;height:auto;}
}

/* V0.18 R7 - Jobs & Scheduling Office standard panels/forms; buttons inherit master styling. */
.office-brand .office-main .office-jobs-standard {width:100%;max-width:none;min-width:0;box-sizing:border-box;margin:0;padding:0 0 24px;}
.office-brand .office-main .office-jobs-standard > .office-standard-hero {width:100%;max-width:none;box-sizing:border-box;}
.office-brand .office-main .office-jobs-standard > .office-jobs-panel {width:100%;max-width:none;box-sizing:border-box;padding:18px 20px;margin:14px 0 0;border:1px solid #d9e5f4;border-radius:12px;}
.office-brand .office-main .office-jobs-panel > h2 {font-size:18px;line-height:1.35;font-weight:750;color:#10365e;margin:0 0 16px;}
.office-brand .office-main .office-jobs-empty {margin:0;color:#526b83;padding:4px 0 6px;}
.office-brand .office-main .office-job-queues article {padding:12px 0;border-top:1px solid #e3ebf5;}
.office-brand .office-main .office-job-queues article h3 {font-size:15px;margin:0 0 8px;}
.office-brand .office-main .office-job-queues article form {display:grid;gap:10px;justify-items:start;}
.office-brand .office-main .office-job-queues article form label {display:grid;gap:6px;width:min(100%,650px);}
.office-brand .office-main .office-job-queues article textarea {box-sizing:border-box;width:100%;min-height:76px;}
.office-brand .office-main .office-availability-form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;align-items:end;}
.office-brand .office-main .office-availability-form > label {min-width:0;display:grid;gap:6px;}
.office-brand .office-main .office-availability-form > label :is(input,select) {width:100%;box-sizing:border-box;min-width:0;}
.office-brand .office-main .office-availability-actions {grid-column:1/-1;display:flex;justify-content:flex-end;border-top:1px solid #dce6f1;padding-top:14px;}
.office-brand .office-main .office-availability-actions > .office-action {width:auto;flex:none;}
.office-brand .office-main .office-tech-availability .cm-table-wrap {max-width:100%;overflow-x:auto;}
.office-brand .office-main .office-tech-availability .cm-table {width:100%;min-width:650px;}
@media(max-width:700px){.office-brand .office-main .office-availability-form{grid-template-columns:minmax(0,1fr);}}

/* V0.18 R8 — Public website redesign. Scoped to public pages only. */
.public-app {background:#f7faff;color:#0b2747;}
.public-app .public-top {background:#fff;border-bottom:1px solid #e1eaf5;box-shadow:0 5px 24px rgba(8,33,64,.055);position:sticky;top:0;z-index:100;}
.public-app .public-top-inner {max-width:1400px;width:calc(100% - 64px);margin:auto;min-height:82px;display:flex;align-items:center;gap:35px;justify-content:space-between;}
.public-app .public-top .brand img {max-width:185px;width:100%;height:auto;}
.public-app .public-links {display:flex;align-items:center;gap:28px;}
.public-app .public-links a {font-size:13px;font-weight:700;color:#173657;text-decoration:none;}
.public-app .public-links a:hover {color:#087bd7;}
.public-app .top-actions {display:flex;align-items:center;gap:12px;}
.public-app .public-portal-menu {position:relative;display:block;}
.public-app .public-portal-trigger {display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none;border-radius:9px;background:#0b3767;color:#fff;padding:13px 17px;font-size:13px;font-weight:750;white-space:nowrap;}
.public-app .public-portal-trigger::-webkit-details-marker {display:none;}
.public-app .public-portal-trigger:hover,.public-app .public-portal-menu[open] .public-portal-trigger {background:#086abf;}
.public-app .public-portal-lock {font-size:15px;}
.public-app .public-portal-chevron {font-size:18px;margin-left:4px;}
.public-app .public-portal-options {position:absolute;right:0;top:calc(100% + 10px);width:min(340px,calc(100vw - 32px));padding:8px;background:white;border:1px solid #d9e5f3;border-radius:14px;box-shadow:0 18px 50px rgba(6,35,71,.2);z-index:120;}
.public-app .public-portal-options a {display:flex;align-items:center;gap:13px;text-decoration:none;color:#0b2747;border-radius:10px;padding:13px 11px;}
.public-app .public-portal-options a:hover,.public-app .public-portal-options a:focus-visible {background:#eef6ff;}
.public-app .public-portal-option-icon {display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:10px;background:#e5f2ff;color:#0875cc;font-size:20px;}
.public-app .public-portal-options strong,.public-app .public-portal-options small {display:block;}
.public-app .public-portal-options strong {font-size:13px;}
.public-app .public-portal-options small {font-size:11px;color:#60758b;margin-top:3px;}
.public-app .top-actions .top-cta {display:inline-flex;align-items:center;justify-content:center;border-radius:9px;padding:13px 16px;font-weight:750;font-size:12px;text-decoration:none;}
.public-app .top-actions .trial-closed {background:#eef3f9;color:#65768b;border:1px solid #d9e4ef;cursor:default;}
.public-app .public-main {max-width:none;padding:0;margin:0;}
.public-app .p8-site {font-family:inherit;}
.public-app .p8-site * {box-sizing:border-box;}
.public-app .p8-hero {position:relative;overflow:hidden;background:linear-gradient(115deg,#061a34 0%,#0a2e56 52%,#074c86 100%);color:#fff;}
.public-app .p8-hero-glow {position:absolute;width:900px;height:700px;border-radius:50%;right:-300px;top:-230px;background:radial-gradient(circle,rgba(11,157,246,.26),transparent 68%);pointer-events:none;}
.public-app .p8-hero-grid {position:relative;max-width:1400px;margin:auto;padding:104px 32px 110px;display:grid;grid-template-columns:1fr 1.06fr;align-items:center;gap:58px;}
.public-app .p8-kicker,.public-app .p8-eyebrow {font-size:11px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:#137ee1;}
.public-app .p8-kicker {color:#7bd0ff;display:flex;align-items:center;gap:10px;margin:0 0 24px;}
.public-app .p8-kicker-dot {width:7px;height:7px;background:#42d4ff;border-radius:50%;box-shadow:0 0 0 5px rgba(66,212,255,.12);}
.public-app .p8-hero h1 {font-size:clamp(42px,4.3vw,68px);line-height:1.07;letter-spacing:-.045em;margin:0 0 28px;font-weight:850;color:#fff;}
.public-app .p8-hero h1 em {font-style:normal;color:#48c5ff;}
.public-app .p8-lead {font-size:17px;line-height:1.75;color:#cadff3;max-width:560px;margin:0 0 30px;}
.public-app .p8-hero-actions,.public-app .p8-pricing-actions {display:flex;gap:12px;align-items:center;flex-wrap:wrap;}
.public-app .p8-button {display:inline-flex;justify-content:center;align-items:center;gap:14px;border-radius:9px;min-height:47px;padding:12px 21px;font-size:13px;font-weight:800;text-decoration:none;transition:background .15s ease,transform .15s ease;}
.public-app .p8-button:hover {transform:translateY(-1px);}
.public-app .p8-button-primary {background:linear-gradient(110deg,#0876dd,#04a7ef);color:white;}
.public-app .p8-button-ghost {border:1px solid #6087ad;color:#fff;background:rgba(255,255,255,.06);}
.public-app .p8-button-outline {background:#fff;border:1px solid #a8c9e8;color:#0c4b87;}
.public-app .p8-disabled {color:#738498;background:#e8eff7;border-color:#d8e2ec;cursor:default;}
.public-app .p8-trust {display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:36px;color:#a9c7e2;font-size:11px;}
.public-app .p8-trust span:before {content:'✓';color:#43d2fc;margin-right:7px;}
.public-app .p8-hero-media {background:linear-gradient(145deg,#e5f3ff,#fff);border:1px solid rgba(255,255,255,.55);padding:18px;border-radius:21px;box-shadow:0 30px 75px rgba(0,0,0,.3);min-width:0;}
.public-app .p8-media-top {display:flex;justify-content:space-between;gap:10px;color:#506f8c;font-size:10px;font-weight:800;letter-spacing:.09em;padding:0 5px 15px;}
.public-app .p8-media-status {display:flex;gap:7px;align-items:center;}
.public-app .p8-media-status i {width:7px;height:7px;background:#16bca2;border-radius:50%;}
.public-app .p8-hero-media img {display:block;width:100%;height:auto;border-radius:9px;object-fit:contain;background:#f5f9fd;}
.public-app .p8-media-caption {display:flex;flex-direction:column;gap:3px;padding:17px 6px 3px;color:#123457;}
.public-app .p8-media-caption strong {font-size:15px;}
.public-app .p8-media-caption span {font-size:12px;color:#5e7892;}
.public-app .p8-strip {max-width:1400px;margin:-33px auto 0;position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid #e1eaf5;box-shadow:0 16px 45px rgba(12,43,79,.1);border-radius:14px;padding:24px 12px;}
.public-app .p8-strip>div {display:flex;flex-direction:column;gap:5px;padding:5px 25px;border-right:1px solid #e1eaf5;}
.public-app .p8-strip>div:last-child {border:0;}
.public-app .p8-strip span {color:#0879d7;font-size:11px;font-weight:800;}
.public-app .p8-strip strong {font-size:15px;color:#123457;}
.public-app .p8-strip small {color:#698097;font-size:12px;}
.public-app .p8-section {max-width:1400px;margin:auto;padding:108px 32px;}
.public-app .p8-section-intro {max-width:850px;margin-bottom:36px;}
.public-app .p8-section h2,.public-app .p8-industry h2,.public-app .p8-pricing h2,.public-app .p8-bottom h2 {font-size:clamp(28px,3vw,44px);line-height:1.18;letter-spacing:-.035em;color:#0c2b4e;margin:13px 0 16px;}
.public-app .p8-section h2 span {color:#52738f;}
.public-app .p8-section-intro>p:last-child {font-size:15px;color:#5b728b;line-height:1.7;}
.public-app .p8-feature-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;}
.public-app .p8-feature-grid article {background:#fff;border:1px solid #e0eaf5;border-radius:15px;padding:29px 25px;box-shadow:0 12px 26px rgba(13,51,88,.04);}
.public-app .p8-feature-icon {display:grid;place-items:center;width:52px;height:52px;border-radius:13px;background:#e7f3ff;color:#0a77d1;font-size:26px;margin-bottom:30px;}
.public-app .p8-feature-number {font-size:10px;font-weight:800;letter-spacing:.1em;color:#1483d4;}
.public-app .p8-feature-grid h3 {font-size:19px;color:#0c2b4e;margin:10px 0;}
.public-app .p8-feature-grid p,.public-app .p8-steps p {font-size:13px;line-height:1.7;color:#5c7188;}
.public-app .p8-availability-note {font-size:12px;color:#6b7d91;margin:24px 0 0;}
.public-app .p8-industry {background:#0a2b4f;color:white;padding:90px max(32px,calc((100vw - 1336px)/2));display:grid;grid-template-columns:1fr 1fr;gap:80px;}
.public-app .p8-industry h2 {color:white;}
.public-app .p8-industry-copy>p:not(.p8-eyebrow) {color:#c1d5e9;line-height:1.7;}
.public-app .p8-text-link {display:inline-block;color:#65cbff;font-weight:750;text-decoration:none;margin-top:20px;}
.public-app .p8-industry-list {display:grid;grid-template-columns:1fr 1fr;gap:13px;align-content:center;}
.public-app .p8-industry-list span {background:#123c66;border:1px solid #315779;padding:17px 18px;border-radius:9px;font-weight:700;font-size:13px;}
.public-app .p8-steps {display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.public-app .p8-steps article {border-top:3px solid #1389dd;padding:25px 15px 10px;}
.public-app .p8-steps b {font-size:13px;color:#1389dd;}
.public-app .p8-steps h3 {font-size:21px;color:#103658;margin:16px 0 8px;}
.public-app .p8-pricing {background:#e8f3ff;display:flex;align-items:center;justify-content:space-between;gap:35px;padding:65px max(32px,calc((100vw - 1336px)/2));}
.public-app .p8-pricing p:not(.p8-eyebrow) {color:#58728b;}
.public-app .p8-pricing-actions {justify-content:flex-end;}
.public-app .p8-bottom {max-width:1400px;margin:auto;padding:95px 32px;display:grid;grid-template-columns:1fr 1fr;gap:90px;}
.public-app .p8-bottom p:not(.p8-eyebrow) {color:#5e748a;line-height:1.75;}
.public-app .p8-bottom a {color:#0077cc;font-weight:800;text-decoration:none;}
.public-app .public-footer {background:#071e38;color:#b8ccdf;}
.public-app :is(a,summary):focus-visible {outline:3px solid #40b9ff;outline-offset:3px;}
@media(max-width:1100px) {
 .public-app .public-top-inner {width:calc(100% - 36px);gap:16px;}
 .public-app .public-links {gap:12px;}
 .public-app .p8-hero-grid {gap:30px;padding:75px 24px 90px;}
 .public-app .p8-feature-grid {grid-template-columns:repeat(2,1fr);}
 .public-app .p8-strip {margin-left:20px;margin-right:20px;}
}
@media(max-width:760px) {
 .public-app .public-top {position:relative;}
 .public-app .public-top-inner {width:calc(100% - 28px);min-height:72px;flex-wrap:wrap;padding:12px 0;}
 .public-app .public-top .brand img {max-width:145px;}
 .public-app .public-links {order:3;overflow-x:auto;width:100%;padding:6px 0 2px;justify-content:space-between;}
 .public-app .public-links a {font-size:11px;white-space:nowrap;}
 .public-app .top-actions .top-cta {display:none;}
 .public-app .public-portal-trigger {padding:10px 12px;font-size:12px;}
 .public-app .p8-hero-grid {grid-template-columns:1fr;padding:65px 22px 80px;}
 .public-app .p8-hero h1 {font-size:clamp(38px,9vw,55px);}
 .public-app .p8-lead {font-size:15px;}
 .public-app .p8-strip {grid-template-columns:repeat(2,1fr);margin-top:-25px;padding:12px;}
 .public-app .p8-strip>div {padding:15px;border-right:0;border-bottom:1px solid #e1eaf5;}
 .public-app .p8-strip>div:nth-last-child(-n+2) {border-bottom:0;}
 .public-app .p8-section {padding:75px 22px;}
 .public-app .p8-feature-grid {grid-template-columns:1fr;}
 .public-app .p8-industry,.public-app .p8-bottom {grid-template-columns:1fr;gap:30px;padding:65px 22px;}
 .public-app .p8-industry-list {grid-template-columns:1fr 1fr;}
 .public-app .p8-steps {grid-template-columns:1fr;}
 .public-app .p8-pricing {flex-direction:column;align-items:start;padding:55px 22px;}
 .public-app .p8-pricing-actions {justify-content:flex-start;}
}
@media(max-width:420px) {
 .public-app .p8-industry-list {grid-template-columns:1fr;}
 .public-app .p8-strip strong {font-size:12px;}
 .public-app .p8-strip small {font-size:11px;}
}

/* V0.18 R12 — Jobs & Scheduling Management: layout only. All interactive
   buttons/disclosures inherit shared office-action styling; no local button skins. */
.portal-app .jsm-page{width:100%;max-width:none;min-width:0;margin:0}
.portal-app .jsm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.portal-app .jsm-card{min-width:0;padding:20px;background:#fff;border:1px solid #cbdfee;border-radius:12px}
.portal-app .jsm-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.portal-app .jsm-card h2{font-size:var(--sers-section-title-size,17px);line-height:1.35;margin:0 0 5px}
.portal-app .jsm-card p{font-size:13px;line-height:1.5;margin:0;color:#536b84}
.portal-app .jsm-meta{display:inline-flex;align-items:center;white-space:nowrap;background:#e9f3fd;color:#15538a;border-radius:20px;padding:5px 9px;font-size:11px;font-weight:700}
.portal-app .jsm-disclosure{display:inline-flex;align-items:center;justify-content:center;list-style:none;cursor:pointer}
.portal-app .jsm-disclosure::-webkit-details-marker{display:none}
.portal-app .jsm-card details[open] .jsm-disclosure{margin-bottom:12px}
.portal-app .jsm-detail{border-top:1px solid #dce7ef;padding-top:12px}
.portal-app .jsm-detail label{display:block;font-size:13px;font-weight:700;color:#163b5e}
.portal-app .jsm-detail input,.portal-app .jsm-detail select{display:block;width:100%;box-sizing:border-box;border:1px solid #c8d8e7;border-radius:7px;padding:9px;margin:5px 0 10px;background:#fff;color:#15334e;font:inherit;font-size:13px}
.portal-app .jsm-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.portal-app .jsm-item{display:flex;align-items:center;gap:9px;border-top:1px solid #e6eef4;padding:9px 0}
.portal-app .jsm-item>span:first-of-type{flex:1;font-size:13px;min-width:0;overflow-wrap:anywhere}
.portal-app .jsm-option{display:grid;grid-template-columns:minmax(0,1fr) 90px auto;gap:9px;align-items:end;border-top:1px solid #e5edf4;padding:9px 0}
.portal-app .jsm-option input,.portal-app .jsm-option select{margin-bottom:0}
.portal-app .jsm-option label span{display:block;color:#66798c;font-weight:500;margin-bottom:3px}
.portal-app .jsm-footnote{border-top:1px solid #e3edf5;padding-top:10px;font-size:13px;color:#62758a}
.portal-app .jsm-card .office-action{font-family:var(--sers-font-family);max-width:100%}
.portal-app .jsm-card .jsm-detail form>.office-action{margin-top:6px}
@media(max-width:850px){.portal-app .jsm-grid{grid-template-columns:1fr}}
@media(max-width:460px){.portal-app .jsm-card{padding:15px}.portal-app .jsm-fields,.portal-app .jsm-option{grid-template-columns:1fr}.portal-app .jsm-card .jsm-option>.office-action{width:100%}}

/* V0.18 R13: disclosure triggers are <summary> elements, not <a>/<button>.
   Explicitly apply the shared Office secondary-button tokens and sizing so
   they cannot regress to unstyled text when the master action selector changes. */
.office-brand .office-main .jsm-card details > summary.jsm-disclosure.office-action-secondary,
.portal-app .jsm-card details > summary.jsm-disclosure.office-action-secondary {
  display:inline-flex;align-items:center;justify-content:center;
  width:auto;max-width:100%;min-height:36px;box-sizing:border-box;
  padding:9px 14px;border:1px solid var(--office-btn-secondary-border,#b8d4ef);
  border-radius:7px;background:var(--office-btn-secondary-bg,#fff);
  color:var(--office-btn-secondary-text,#07549a);
  font-family:var(--sers-font-family,inherit);font-size:13px;font-weight:700;
  line-height:1.3;text-decoration:none;cursor:pointer;list-style:none;
  appearance:none;-webkit-appearance:none;
}
.office-brand .office-main .jsm-card details > summary.jsm-disclosure:hover,
.portal-app .jsm-card details > summary.jsm-disclosure:hover {
  filter:brightness(.97);
}
.office-brand .office-main .jsm-card details > summary.jsm-disclosure:focus-visible,
.portal-app .jsm-card details > summary.jsm-disclosure:focus-visible {
  outline:3px solid var(--office-btn-focus,#4da8ff);outline-offset:2px;
}
.portal-app .jsm-card details > summary.jsm-disclosure::-webkit-details-marker{display:none}

/* V0.18 R14 — Work Order Details: approved shared Office header, controls and responsive full-width grid. */
.office-brand .office-main .office-job-detail-standard{width:100%;max-width:none;margin:0;box-sizing:border-box}
.office-brand .office-main .office-job-detail-standard > .office-standard-hero{width:100%;max-width:none;margin-bottom:14px}
.office-brand .office-main .office-job-detail-standard .office-job-card{width:100%;box-sizing:border-box;padding:20px 22px;margin:0 0 14px;border:1px solid #d6e4f2;border-radius:11px;background:#fff}
.office-brand .office-main .office-job-detail-standard .office-job-card h2{font-size:19px;line-height:1.3;font-weight:750;margin:0 0 14px;color:#102e4c}
.office-brand .office-main .office-job-detail-standard .office-job-card h3{font-size:15px}
.office-brand .office-main .office-job-detail-standard .office-job-status{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px 16px;padding:15px 0;margin-bottom:16px;border-bottom:1px solid #e2eaf2}
.office-brand .office-main .office-job-detail-standard .office-job-status > label{min-width:0;margin:0}
.office-brand .office-main .office-job-detail-standard .office-job-status > p{grid-column:1/-1;margin:0;color:#49617a}
.office-brand .office-main .office-job-detail-standard .office-job-status .office-job-inline-actions{display:flex;align-items:flex-end}
.office-brand .office-main .office-job-detail-standard .office-job-card label{font-size:12px;font-weight:700;color:#173451}
.office-brand .office-main .office-job-detail-standard .office-job-card :is(input:not([type=hidden]),select,textarea){box-sizing:border-box;max-width:100%;border:1px solid #cbdcf0;border-radius:7px;background:#fff;color:#173451}
.office-brand .office-main .office-job-detail-standard .office-job-card form:not(.cs-wo-form):not(.cs-wo-status) > label{display:block;margin-bottom:10px}
.office-brand .office-main .office-job-detail-standard .office-job-card form:not(.cs-wo-form):not(.cs-wo-status) > label :is(input,select,textarea){display:block;width:100%;margin-top:6px;padding:9px 11px}
.office-brand .office-main .office-job-detail-standard .office-job-inline-actions{display:flex;justify-content:flex-end;margin:10px 0}
.office-brand .office-main .office-job-detail-standard .cs-wo-actions{display:flex;justify-content:flex-end}
.office-brand .office-main .office-job-detail-standard .cs-wo-close{display:flex;justify-content:flex-end}
.office-brand .office-main .office-job-detail-standard .office-action{width:auto;min-width:0;min-height:40px;padding:9px 15px;font-size:13px;line-height:1.3}
.office-brand .office-main .office-job-detail-standard .cs-wo-table-wrap{max-width:100%;overflow-x:auto}
@media(max-width:700px){.office-brand .office-main .office-job-detail-standard .office-job-card{padding:16px}.office-brand .office-main .office-job-detail-standard .office-job-status{grid-template-columns:1fr}.office-brand .office-main .office-job-detail-standard .office-job-status .office-job-inline-actions{justify-content:flex-start}.office-brand .office-main .office-job-detail-standard .cs-wo-form{grid-template-columns:1fr}.office-brand .office-main .office-job-detail-standard .cs-wo-actions{justify-content:flex-start}}

/* V0.18 R16: Compact work-order job-status controls; scoped to office work orders. */
.office-brand .office-main .office-job-detail-standard .office-job-status{grid-template-columns:minmax(0,300px) auto;justify-content:start;align-items:end;column-gap:12px}
.office-brand .office-main .office-job-detail-standard .office-job-status > label{width:100%;max-width:300px}
.office-brand .office-main .office-job-detail-standard .office-job-status > label select{width:100%;max-width:100%}
.office-brand .office-main .office-job-detail-standard .office-job-status .office-job-inline-actions{justify-content:flex-start}
@media(max-width:700px){.office-brand .office-main .office-job-detail-standard .office-job-status{grid-template-columns:minmax(0,1fr)}.office-brand .office-main .office-job-detail-standard .office-job-status > label{max-width:100%}}

/* V0.19 R1: monthly scheduler drag/drop affordance */
.cs-dispatch-month-drop.is-drop-target{outline:3px solid #2484ef;outline-offset:-3px;background:rgba(36,132,239,.13)}
.cs-dispatch-month-drop:not(.is-empty){min-height:105px}

/* R19: shared Office asset editor is displayed within its parent asset disclosure. */
.tech-shared-asset-frame{display:block;width:100%;height:min(75vh,800px);min-height:480px;border:0;background:#fff}.tech-shared-asset-editor{padding:12px;max-width:100%;box-sizing:border-box}.tech-site-asset[open]{overflow:hidden}

/* R20: full-page technician asset navigation; no embedded iframe or nested scrolling. */
.tech-site-asset-link{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;min-width:0;padding:16px;margin:10px 0;border:1px solid #d4dfea;border-radius:12px;background:#fff}.tech-site-asset-link strong{flex:1;min-width:0;overflow-wrap:anywhere}.tech-site-asset-link span:last-child{font-size:1.5rem}.tech-asset-page{overflow-y:auto}.tech-asset-page .tech-shared-asset-editor{display:block;width:100%;max-width:1100px;margin:0 auto;padding:16px 16px 90px;overflow:visible;height:auto;max-height:none}.tech-asset-page .tech-shared-asset-editor *{max-width:100%;box-sizing:border-box}.tech-asset-page-nav{margin-bottom:18px}.tech-asset-back{display:inline-flex;align-items:center;padding:12px 16px;border-radius:9px;background:#204b82;color:#fff;text-decoration:none;font-weight:700}.tech-asset-page [data-sa-tabs]{overflow-x:auto;max-width:100%;white-space:nowrap}.tech-asset-page [data-sa-section]{height:auto;max-height:none;overflow:visible}

/* Shared asset layout only. Button appearance is controlled by the master Office action component. */
.sa-editor :is(button.office-action,a.office-action,input.office-action):focus-visible{outline:3px solid var(--office-btn-focus);outline-offset:2px}
.sa-editor :is(button.office-action,a.office-action,input.office-action):disabled{opacity:.55;cursor:not-allowed}
.sa-editor .sa-tabs{display:flex;flex-wrap:wrap;gap:8px;overflow:visible;max-width:100%;padding:4px 0 14px}
.sa-editor .sa-tabs button.office-action{white-space:normal;flex:0 1 auto}

.sa-editor .sa-form-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px}
.sa-editor .sa-section-head{flex-wrap:wrap}
@media(max-width:580px){.sa-editor .sa-tabs button.office-action{flex:1 1 auto}.sa-editor .sa-form-actions button.office-action{max-width:100%}}


/* V0.20 R3 shared job photo gallery */
.office-job-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}.office-job-photo{display:flex;flex-direction:column;gap:6px;min-width:0;text-decoration:none}.office-job-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;border:1px solid #dce6ef}.office-job-photo span{overflow-wrap:anywhere}

/* V0.20 R6 — Shared Office/Technician alarm battery controls */
.sa-form-grid label.sa-battery-toggle{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;align-self:end;min-height:40px;margin:0;cursor:pointer;font-weight:650}
.sa-form-grid label.sa-battery-toggle input[type="checkbox"]{appearance:auto;-webkit-appearance:checkbox;display:inline-block;flex:0 0 18px;width:18px!important;height:18px!important;min-width:18px;min-height:18px!important;max-width:18px;max-height:18px;padding:0;margin:0;accent-color:#0872bd;border-radius:3px;vertical-align:middle}
.sa-form-grid label.sa-battery-toggle span{display:inline;line-height:1.3}
.sa-form-grid [data-sa-battery-conditional][hidden]{display:none!important}

/* V0.21 R1: monitoring schedule layout only. */
.sa-monitoring-schedule-list{display:grid;gap:12px}
.sa-monitoring-day{min-width:0;margin:0;padding:12px;border:1px solid var(--office-btn-secondary-border);border-radius:8px}
.sa-monitoring-day legend{font-weight:700;padding:0 6px}
.sa-monitoring-day-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px}
.sa-monitoring-day-fields>label{display:flex;flex-direction:column;gap:6px;min-width:0;font-weight:650}
.sa-monitoring-day-fields input[type=time]{width:100%;box-sizing:border-box;min-height:40px}
.sa-monitoring-day-fields .sa-monitoring-closed{flex-direction:row;align-items:center;gap:8px;min-height:40px;cursor:pointer}
.sa-monitoring-closed input[type=checkbox]{width:18px;height:18px;min-width:18px;margin:0;accent-color:var(--office-btn-primary)}
@media(max-width:580px){.sa-monitoring-day-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.sa-monitoring-closed{grid-column:1/-1}}

/* V0.21 R2 — Master Office checkbox control: all asset forms use one shared component. */
.portal-app .office-checkbox-field,
.portal-app .sa-form-grid label.office-checkbox-field,
.portal-app .sa-monitoring-day-fields label.office-checkbox-field{
 display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;
 align-self:center;min-width:0;min-height:40px;margin:0;cursor:pointer;
 font-weight:650;color:inherit;
}
.portal-app .office-checkbox-field input[type="checkbox"],
.portal-app .sa-form-grid .office-checkbox-field input[type="checkbox"],
.portal-app .sa-monitoring-day-fields .office-checkbox-field input[type="checkbox"]{
 appearance:auto;-webkit-appearance:checkbox;display:block;position:static;
 flex:0 0 18px;width:18px;height:18px;min-width:18px;min-height:18px;
 max-width:18px;max-height:18px;padding:0;margin:0;box-sizing:border-box;
 accent-color:var(--office-btn-primary);border-radius:3px;
}
.portal-app .office-checkbox-field input[type="checkbox"]:focus-visible{
 outline:2px solid var(--office-btn-focus);outline-offset:3px;
}
.portal-app .office-checkbox-field span{display:inline;line-height:1.35;}

/* V0.21 R12 — shared Office header dropdown stacking contract. */
.office-brand .portal-header{overflow:visible;isolation:auto;z-index:100;position:relative}
.office-brand .portal-header-actions{z-index:102}
.office-brand .office-profile-menu[open]{z-index:103}
.office-brand .office-profile-panel{z-index:104}
.office-brand .office-shell{position:relative;z-index:1}

/* Groups & Permissions: compact, readable master-style permission editor. */
/* Shared Office group and permission controls. */
.sers-group-editor{max-width:100%;overflow:visible}
.sers-group-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.75rem}
.sers-group-heading h2{margin:0 0 .25rem}.sers-group-heading p,.sers-group-section-heading p{margin:.15rem 0 0;color:#52667c}
.sers-group-type{padding:.25rem .55rem;border:1px solid #d4e2f3;border-radius:999px;font-size:.75rem;white-space:nowrap}
.sers-group-rename{padding-bottom:.85rem;border-bottom:1px solid #e0e8f1}
.sers-group-rename form,.office-group-create form{display:flex;align-items:flex-end;gap:.75rem;flex-wrap:wrap;max-width:42rem}
.sers-group-rename form>label,.office-group-create form>label{flex:1 1 230px;min-width:0;margin:0}
.sers-group-rename form>button,.office-group-create form>button{flex:0 0 auto;margin:0}
.sers-group-section-heading{margin:1rem 0 .65rem}.sers-group-section-heading h3{margin:0}
.sers-permission-section{min-width:0;margin:0 0 .75rem;padding:.5rem .65rem .65rem;border:1px solid #dbe5ef;border-radius:8px;background:#fff}
.sers-permission-section legend{display:flex;align-items:center;gap:1rem;width:100%;padding:0 .25rem;font-weight:700;color:#163b5c}
.sers-permission-section legend small{margin-left:auto;font-size:.72rem;font-weight:400;color:#60758a}
.sers-permission-grid,.sers-member-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem}
.sers-permission-row{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:.55rem!important;min-width:0!important;width:auto!important;min-height:36px!important;margin:0!important;padding:.4rem .55rem!important;border:1px solid #dbe5ef!important;border-radius:6px!important;background:#f7faff!important;text-align:left!important;cursor:pointer}
.sers-permission-row:hover{border-color:#a6c6e6!important}
.sers-permission-description{display:flex;flex:1;min-width:0;flex-direction:column;gap:.1rem;align-items:flex-start;text-align:left}
.sers-permission-label{font-size:.84rem;font-weight:600;line-height:1.3}
.sers-permission-description small{font-size:.72rem;color:#61758a;line-height:1.3;overflow-wrap:anywhere}
.sers-permission-row input[type=checkbox]{order:-1;display:block!important;flex:0 0 15px!important;width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;max-width:15px!important;max-height:15px!important;padding:0!important;margin:0!important;accent-color:#087de3}
.sers-permission-row.is-reserved{opacity:.65;cursor:not-allowed}
.sers-group-save{display:flex;justify-content:flex-end;margin-top:.85rem}
.sers-group-delete{margin-top:1rem;padding-top:.85rem;border-top:1px solid #e0e8f1}
.sers-group-delete summary{cursor:pointer;font-weight:600;color:#a43d3d}.sers-group-delete form{max-width:520px}
.office-groups-page .office-standard-hero{display:block;padding:1rem 1.25rem;min-height:0}
.office-groups-page .office-standard-hero .eyebrow{margin:0 0 .35rem}
.office-groups-page .office-standard-hero h1{margin:0 0 .4rem;font-size:clamp(1.4rem,2vw,2rem)}
.office-groups-page .office-standard-hero p:last-child{margin:0}
.office-groups-page .portal-card{padding:1rem 1.15rem}
@media(max-width:1100px){.sers-permission-grid,.sers-member-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.sers-permission-grid,.sers-member-grid{grid-template-columns:minmax(0,1fr)}.sers-group-heading{flex-wrap:wrap}.sers-group-rename form>button,.office-group-create form>button,.sers-group-save button{width:100%}.sers-group-save{display:block}}


/* Contractor forms: master components, no inline presentation rules. */
.office-brand .office-main .contractor-job-form{padding:20px;margin-bottom:14px}
.office-brand .office-main .contractor-job-form .cs-wizard-grid{align-items:end}
.office-brand .office-main .contractor-job-form .contractor-form-full{grid-column:1/-1}
.office-brand .office-main .contractor-job-form .cs-wizard-check{display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-start;gap:10px;margin:0;font-weight:650}
.office-brand .office-main .contractor-job-form .cs-wizard-check input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:0}
.office-brand .office-main .contractor-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:18px}
.office-brand .office-main .cs-table tbody tr[hidden]{display:none}
@media(max-width:700px){.office-brand .office-main .contractor-job-form .cs-wizard-grid{grid-template-columns:1fr}}

/* Shared Core checkbox row: leading control and aligned label text. */
.core-app label.sers-checkbox-field {
 display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;
 gap:.65rem;width:100%;margin:.85rem 0;text-align:left;cursor:pointer;
}
.core-app label.sers-checkbox-field input[type="checkbox"] {
 appearance:auto;display:block;position:static;flex:0 0 18px;
 width:18px;height:18px;min-width:18px;max-width:18px;
 margin:.1rem 0 0;padding:0;box-shadow:none;accent-color:#087de3;
}
.core-app label.sers-checkbox-field span {display:block;min-width:0;line-height:1.4;}

/* Shared compact Core administration form and action components. */
.core-app .core-main .panel>form:not(.inline-form){max-width:54rem}
.core-app .core-main label:has(>input[type="checkbox"]){display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:flex-start!important;gap:.55rem!important;text-align:left;line-height:1.4;cursor:pointer}
.core-app .core-main label>input[type="checkbox"]{appearance:auto;position:static;order:-1;flex:0 0 16px!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;padding:0!important;margin:.1rem 0 0!important;accent-color:#087de3}
.core-app .core-main form button{width:auto;min-height:36px;padding:.55rem .9rem}
.core-app .core-main .core-action-row,.core-app .core-main .inline-form{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}
.core-app .core-main .panel>h1{font-size:clamp(1.6rem,2.4vw,2.4rem);margin-bottom:.55rem}
.core-app .core-main .panel>p{max-width:78rem}
.core-app .core-main input,.core-app .core-main select{min-width:0;max-width:100%}
.core-app .core-main table td form{display:flex;flex-wrap:wrap;gap:.4rem}
@media(max-width:620px){.core-app .core-main .panel>form:not(.inline-form){max-width:100%}.core-app .core-main .core-action-row>button{width:100%}}

.core-app .core-form-section{min-width:0;margin:0 0 1rem;padding:.85rem 1rem 1rem;border:1px solid #dbe5ef;border-radius:8px}.core-app .core-form-section legend{padding:0 .4rem;font-weight:700;color:#163b5c}.core-app .core-setup-instructions{margin:1rem 0}.core-app .core-setup-instructions>summary{cursor:pointer;font-weight:700;margin-bottom:.75rem}

/* R16: one compact, leading Office checkbox. The full label remains clickable. */
.portal-app.office-brand .office-main label:has(>input[type="checkbox"]){display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:flex-start!important;gap:.5rem!important;line-height:1.4;cursor:pointer;min-width:0}
.portal-app.office-brand .office-main input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;position:static!important;display:inline-block!important;order:-1;flex:0 0 16px!important;width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;min-height:16px!important;max-height:16px!important;margin:.15rem 0 0!important;padding:0!important;accent-color:#087de3}
.portal-app.office-brand .office-main input[type="checkbox"]:focus-visible{outline:2px solid #087de3;outline-offset:3px}
.portal-app.office-brand .office-main label:has(>input[type="checkbox"]:disabled){cursor:default;color:#67798e}
.portal-app.office-brand .office-main label:has(>input[type="checkbox"])[hidden]{display:none!important}
.portal-app.office-brand .office-main label:has(>input[type="checkbox"])>span{min-width:0;line-height:1.4}
.portal-app.office-brand .office-main .sers-permission-row{min-height:36px!important;padding:8px 10px!important}
.portal-app.office-brand .office-main .sers-permission-row input[type="checkbox"]{margin:0!important}
.portal-app.office-brand .office-main .sers-permission-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.office-action-danger{background:#b42332!important;color:#fff!important}

/* Full-page inventory editor: the document owns scrolling. */
.office-brand .office-stock-editor .stock-editor-form,.office-brand .office-stock-editor .stock-editor-content{height:auto!important;max-height:none!important;overflow:visible!important;min-height:0}
.office-brand .office-stock-editor{width:100%;max-width:none;margin:18px 0}
.office-brand .office-stock-editor .r14-modal-head{background:none;color:inherit;padding:0 0 16px}
.office-brand .office-stock-editor .stock-editor-content{padding:0}
.office-brand .office-stock-editor .r14-modal-actions{position:static;padding:16px 0 0;margin-top:16px;display:flex;justify-content:flex-end;gap:10px}
.office-brand .office-stock-editor .stock-editor-tabs{flex-wrap:wrap}
.office-brand .office-stock-editor [hidden]{display:none!important}

.office-search-select{position:relative;min-width:0;width:100%}
.office-search-select .office-search-native{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;min-width:0!important;padding:0!important;pointer-events:none;clip-path:inset(50%)}
.office-search-options{position:absolute;inset:auto 0 auto 0;top:100%;z-index:80;max-height:240px;overflow:auto;background:#fff;border:1px solid #a9c8e5;border-radius:8px;box-shadow:0 8px 24px #102c4e24;font-weight:400;color:#173552}
.office-search-options[hidden]{display:none}
.office-search-option{padding:9px 12px;cursor:pointer;white-space:normal}
.office-search-option:hover,.office-search-option[aria-selected=true]{background:#e6f2ff;color:#075aa3}
.office-search-options p{margin:0;padding:12px}
.office-validation-message{padding:10px 12px;border:1px solid #e2a3a3;border-radius:8px;background:#fff2f2}
.cs-dispatch-week-grids{min-width:0;display:grid;gap:18px}
.office-brand .cs-dispatch-scroll{max-height:none!important;overflow-y:visible!important;overflow-x:auto}
/* Category activation retains native button submission with compact checkbox semantics. */
.portal-app.office-brand .office-main .sa-category .sa-check-button{width:auto;min-height:32px;justify-content:flex-start;gap:8px;padding:6px 0;background:transparent!important;color:#173c5e!important;box-shadow:none;border:0}
.portal-app.office-brand .office-main .sa-category .sa-check-button .sa-check-box{width:16px;height:16px;flex:0 0 16px;border-width:1.5px;border-radius:3px;font-size:12px;line-height:1}

/* V0.23 R19: shared Office reading scale and record layout. */
.portal-app.office-brand .office-main{font-size:14px;line-height:1.5}
.portal-app.office-brand .office-main :is(input,select,textarea){font-size:14px!important}
.portal-app.office-brand .office-main :is(label,th,td){font-size:14px!important}
.portal-app.office-brand .office-main :is(small,.eyebrow,.office-standard-hero-kicker,.cs-record-meta){font-size:12px;line-height:1.45}
.portal-app.office-brand .office-main .office-standard-hero{box-sizing:border-box;min-height:100px;padding:22px 24px;gap:16px;align-items:center;flex-wrap:wrap}
.portal-app.office-brand .office-main .office-standard-hero h1{font-size:28px;line-height:1.2;margin:0 0 7px;color:#fff}
.portal-app.office-brand .office-main .office-standard-hero :is(p,.eyebrow){margin:4px 0;color:#e1efff}
.portal-app.office-brand .office-main :is(.office-panel,.cs-panel,.cs-record-group){border-radius:10px}
.portal-app.office-brand .office-main .cs-record-pane{padding:18px}
.portal-app.office-brand .office-main .cs-record-grid{gap:14px;align-items:start}
.portal-app.office-brand .office-main .cs-record-group{padding:16px}
.portal-app.office-brand .office-main .cs-record-group h2{font-size:16px;line-height:1.3;margin:0 0 12px}
.portal-app.office-brand .office-main .cs-record-group dl>div{display:grid;grid-template-columns:minmax(110px,32%) minmax(0,1fr);gap:14px;padding:8px 0;font-size:14px!important}
.portal-app.office-brand .office-main .cs-record-group dt{font-size:13px;color:#526b84}
.portal-app.office-brand .office-main .cs-record-group dd{margin:0;text-align:left;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.portal-app.office-brand .office-main .cs-record-group p{font-size:14px;line-height:1.6}
.portal-app.office-brand .office-main .cs-record-group a{color:#0065af;text-decoration:underline;text-underline-offset:3px}
.portal-app.office-brand .office-main .office-record-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.portal-app.office-brand .office-main .cs-tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;margin-left:6px;padding:1px 5px;border-radius:20px;background:#e5eef8;font-size:12px}
.portal-app.office-brand .office-main .office-activity-list{list-style:none;padding:0;margin:16px 0 0}
.portal-app.office-brand .office-main .office-activity-list li{display:grid;grid-template-columns:170px minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid #e1e9f0}
.portal-app.office-brand .office-main .office-activity-list time{font-size:12px;color:#526b84}
.portal-app.office-brand .office-main .office-activity-list li span{display:block;overflow-wrap:anywhere}
.portal-app.office-brand .office-main dialog.cm-dialog.sa-alarm-dialog{height:fit-content!important;min-height:0!important;max-height:calc(100dvh - 24px)!important}
.portal-app.office-brand .office-main dialog.cm-dialog.sa-alarm-dialog .sa-alarm-content{height:auto!important;min-height:0!important;flex:0 1 auto!important}
.portal-app.office-brand .office-main dialog.cm-dialog.sa-alarm-dialog :is(.sa-alarm-fragment,.sa-editor,.sa-section,.sa-equipment-list){min-height:0!important;height:auto!important}
@media(max-width:720px){
 .portal-app.office-brand .office-main .office-standard-hero{padding:18px;min-height:0}
 .portal-app.office-brand .office-main .office-standard-hero h1{font-size:24px}
 .portal-app.office-brand .office-main .cs-record-grid{grid-template-columns:minmax(0,1fr)}
 .portal-app.office-brand .office-main .cs-record-pane{padding:12px}
 .portal-app.office-brand .office-main .office-activity-list li{grid-template-columns:minmax(0,1fr);gap:4px}
}
@media(max-width:420px){.portal-app.office-brand .office-main .cs-record-group dl>div{grid-template-columns:minmax(0,1fr);gap:3px}}
/* R18 actual invoice preview, using the shared Office styles. */
.portal-app.office-brand .office-main .invoice-pdf-preview{display:block;width:100%;height:780px;max-height:85vh;border:1px solid #ccdae8;border-radius:8px;background:#f2f5f8;margin:16px 0}
/* V0.23 R19: tenant document email template settings. */
.portal-app.office-brand .office-main .email-template-card{margin-top:16px;padding:18px}
.portal-app.office-brand .office-main .email-template-card summary{font-weight:700;font-size:16px;cursor:pointer}
.portal-app.office-brand .office-main .email-template-card fieldset{border:0;padding:0;margin:16px 0 0;min-width:0}
.portal-app.office-brand .office-main .email-template-card textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:80px}
.portal-app.office-brand .office-main .email-template-card code{display:inline-block;margin:3px;padding:2px 5px;background:#eef4fb;overflow-wrap:anywhere;font-size:12px;border-radius:4px}
.portal-app.office-brand .office-main .email-template-preview{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}

/* Shared mobile navigation. These components live in each portal's master stylesheet. */
.portal-menu-toggle{display:none!important}
.portal-mobile-drawer{box-sizing:border-box;position:fixed;inset:0 auto 0 0;width:min(88vw,360px);max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#071e3b;color:#eff7ff;overflow-y:auto;overscroll-behavior:contain;box-shadow:10px 0 45px #00172c44}
.portal-mobile-drawer::backdrop{background:#03162b99}
.portal-mobile-drawer-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:#071e3b;border-bottom:1px solid #ffffff26}
.portal-menu-close{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:1px solid #ffffff55;border-radius:8px;background:#ffffff12;color:#fff;font-size:28px;line-height:1;box-shadow:none;cursor:pointer}
body.portal-menu-open{overflow:hidden}
@media screen and (max-width:900px){
 body.portal-mobile-navigation-ready .portal-menu-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;min-width:44px;min-height:44px;padding:8px;border:1px solid #ffffff55;border-radius:8px;background:#ffffff12;color:#fff;font:600 14px/1.2 Inter,Arial,sans-serif;box-shadow:none;z-index:4}
 .portal-menu-toggle>span:first-child{font-size:21px;line-height:1}
 .office-brand .portal-header,.core-app .core-top{min-height:68px!important;height:auto!important;padding:8px 12px!important;gap:10px!important;flex-wrap:nowrap!important}
 .office-brand .portal-logo,.core-app .core-top .brand{min-width:0!important;flex:0 1 160px!important}
 .office-brand .portal-logo img,.core-app .core-top .brand img{width:160px!important;max-width:100%!important;max-height:48px!important;object-fit:contain}
 .office-brand .office-toolbar{margin-left:auto!important;gap:4px!important}.office-brand .office-tool-unavailable{display:none!important}
 .office-brand .portal-header-actions{margin-left:0!important;padding-left:0!important;gap:0!important;flex:0 0 auto}
 .office-brand .office-profile-menu .portal-account,.core-app .core-platform-label,.core-app .core-top .user-chip{display:none!important}
 .core-app .core-top-right{margin-left:auto;gap:8px}.core-app .signout{font-size:13px;padding:10px 5px}
 .office-brand .office-shell,.core-app .core-shell{display:block!important;min-width:0!important}
 .portal-mobile-drawer .office-side,.portal-mobile-drawer .core-nav{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:0!important;padding:12px!important;gap:5px!important;overflow:visible!important;border:0!important;box-sizing:border-box!important;background:#071e3b!important}
 .portal-mobile-drawer :is(.office-side-heading,.office-side-bottom,.nav-caption){display:block!important}
 .portal-mobile-drawer :is(.office-side-link,.nav-link){display:flex!important;align-items:center!important;width:100%!important;min-height:44px!important;padding:11px 12px!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:14px!important;flex:0 0 auto!important}
 .portal-mobile-drawer :is(.office-settings-group,.nav-group){display:block!important;width:100%!important;min-width:0!important}
 .portal-mobile-drawer :is(.office-settings-children,.nav-subitems){display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:4px 0 8px 12px!important;margin-left:12px!important}
 .portal-mobile-drawer :is(.office-settings-children a,.nav-subitem){min-height:44px!important;display:flex!important;align-items:center!important;white-space:normal!important;font-size:14px!important}
 .office-brand .office-main,.core-app .core-main{width:100%!important;min-width:0!important;max-width:100%!important;padding:16px 12px 32px!important}
}
@media screen and (max-width:420px){.portal-menu-label{display:none}.office-brand .portal-logo,.core-app .core-top .brand{flex-basis:135px!important}.office-brand .portal-logo img,.core-app .core-top .brand img{width:135px!important}}

/* Phone form, table and touch layout, confined to screen media. */
@media screen and (max-width:600px){
 body :is(main,.portal-main,.core-main){min-width:0;overflow-wrap:anywhere}
 body :is(main,.portal-main,.core-main)>*{min-width:0;max-width:100%;box-sizing:border-box}
 body :is(main,.portal-main,.core-main) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px!important;min-height:44px!important;min-width:0;max-width:100%;box-sizing:border-box}
 body :is(main,.portal-main,.core-main) :is(button,.office-action,.core-action,.tech-action,.button,[role=button],summary){min-height:44px!important;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
 body :is(main,.portal-main,.core-main) label:has(>input:is([type=checkbox],[type=radio])){display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;min-height:44px!important;cursor:pointer;text-align:left}
 body :is(main,.portal-main,.core-main) label>input:is([type=checkbox],[type=radio]){position:static!important;order:-1!important;flex:0 0 16px!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;margin:0!important;padding:0!important;accent-color:#0872bf}
 body :is(main,.portal-main,.core-main) :is(.office-standard-hero,.workspace-heading,.core-heading,.cm-heading,.accounting-heading,.r14-welcome,.cs-record-header,.po-page-header){display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:12px;padding:18px 16px!important;min-height:0!important;margin-bottom:14px!important}
 body :is(main,.portal-main,.core-main) :is(.office-standard-hero-copy,.office-standard-hero>div,.workspace-heading>div){flex:0 1 auto!important;min-width:0!important;max-width:100%}
 body :is(main,.portal-main,.core-main) h1{font-size:clamp(23px,6.4vw,28px)!important;line-height:1.2!important;overflow-wrap:anywhere}
 body :is(main,.portal-main,.core-main) h2{font-size:19px;line-height:1.3}
 body :is(main,.portal-main,.core-main) :is(.office-panel,.r14-panel,.cs-panel,.cs-record-group,.po-document-card){min-width:0;max-width:100%;padding:16px}
 body :is(main,.portal-main,.core-main) :is(.cs-record-grid,.r17-settings-grid,.r14-form-grid,.accounting-form-fields,.po-document-grid,.sa-form-grid,.service-form-grid,.service-details,.settings-grid,.cs-config-top,.cs-settings-grid,.accounting-editor-bottom,.r14-two-col,.r14-dashboard-grid){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 body :is(main,.portal-main,.core-main) :is(.launch-filter,.staffing-actions,.launch-actions,.office-action-row,.cm-dialog-actions,.cs-record-actions,.accounting-filters,.po-register-filters,.core-action-row){display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-width:0}
 body :is(main,.portal-main,.core-main) :is(.launch-filter,.accounting-filters,.po-register-filters)>label{flex:1 1 100%;min-width:0!important;max-width:100%!important}
 body :is(main,.portal-main,.core-main) :is(.office-action-row,.launch-actions,.cm-dialog-actions,.core-action-row)>:is(a,button){flex:1 1 auto}
 body :is(main,.portal-main,.core-main) .accounting-editor .r14-line-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px;padding:14px;border:1px solid #d3e1ef;border-radius:9px;margin-bottom:12px}
 body :is(main,.portal-main,.core-main) .accounting-line-head{display:none!important}
 body :is(main,.portal-main,.core-main) :is(.r14-metrics,.office-stat-grid,.accounting-metrics){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 body :is(main,.portal-main,.core-main) :is(.cs-record-tabs,.sa-tabs){display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:6px!important}
 body :is(main,.portal-main,.core-main) .cs-record-tabs button{flex:1 1 calc(50% - 6px)!important;min-width:0!important;min-height:46px!important;white-space:normal!important;padding:9px!important}
 body :is(main,.portal-main,.core-main) .cs-record-grid dl>div{display:block!important;text-align:left!important;padding-block:8px}.cs-record-grid dd{margin:4px 0 0!important;text-align:left!important}
 body :is(main,.portal-main,.core-main) .mobile-record-table{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;border:0!important}
 body :is(main,.portal-main,.core-main) .mobile-record-table thead{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
 body :is(main,.portal-main,.core-main) .mobile-record-table :is(tbody,tfoot){display:block!important;width:100%!important}
 body :is(main,.portal-main,.core-main) .mobile-record-table tr{display:block!important;width:100%!important;box-sizing:border-box!important;border:1px solid #d5e2f0!important;border-radius:9px;margin:0 0 12px;padding:10px;background:#fff}
 body :is(main,.portal-main,.core-main) .mobile-record-table td{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;white-space:normal!important;padding:8px!important;text-align:left!important;border:0!important;overflow-wrap:anywhere}
 body :is(main,.portal-main,.core-main) .mobile-record-table td[data-label]:before{content:attr(data-label);display:block;font-size:12px;font-weight:600;line-height:1.3;color:#56708a;margin-bottom:4px}
 body :is(main,.portal-main,.core-main) .mobile-record-table td:empty{display:none!important}
 body :is(main,.portal-main,.core-main) .mobile-record-table :is(input,select,textarea){width:100%}
 body :is(main,.portal-main,.core-main) :is(.launch-table,.table-scroll,.po-table-wrap,.accounting-table-wrap){min-width:0;max-width:100%;width:100%;box-sizing:border-box}
 body :is(main,.portal-main,.core-main) :is(dialog,[role=dialog],.modal-panel,.cm-dialog,.tech-dialog){width:calc(100vw - 24px)!important;min-width:0!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;margin:12px auto!important;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;padding:16px!important}
 body :is(main,.portal-main,.core-main) :is(.cs-dispatch-layout,.cs-dispatch-month-layout){grid-template-columns:minmax(0,1fr)!important;min-width:0}
 body :is(main,.portal-main,.core-main) .cs-dispatch-scroll{width:100%;max-width:100%;min-width:0;overflow:auto}
 body :is(main,.portal-main,.core-main) .cs-dispatch-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible}
 .technician-brand .tech-profile-panel{width:min(300px,calc(100vw - 24px));min-width:0;right:0}
 .technician-brand .tech-attendance-card{position:static!important}.technician-brand .tech-bottom-nav{padding-bottom:calc(6px + env(safe-area-inset-bottom));min-height:64px}.technician-brand .tech-bottom-nav a{min-width:0;min-height:48px!important;font-size:11px;line-height:1.2;overflow-wrap:anywhere}
 .technician-brand .tech-job-workspace .tech-job-line{grid-template-columns:minmax(0,1fr)}
 .customer-brand .portal-header{flex-wrap:wrap;gap:10px;padding:14px}.customer-brand .customer-topnav{display:flex;flex-wrap:wrap;gap:8px;width:100%}.customer-brand .customer-topnav a{min-height:44px;display:flex;align-items:center;padding:8px}.customer-brand .portal-logo{min-width:0;max-width:70%;overflow-wrap:anywhere}
}
@media screen and (max-width:900px){.core-app .signout{display:inline-flex;align-items:center;min-height:44px}.customer-brand .portal-header-actions a{display:inline-flex;align-items:center;min-height:44px}}
@media screen and (max-width:600px){.customer-brand :is(.v11-customer-columns,.v11-customer-metrics){grid-template-columns:minmax(0,1fr)!important}.customer-brand .portal-main{padding:16px 12px!important}.customer-brand .customer-topnav a{font-size:14px}.auth-app .auth-top{padding:12px;min-height:68px}.auth-app .auth-top .brand img{width:155px}.auth-app .auth-top>span{font-size:11px}.auth-app .auth-main{padding:20px 12px}.auth-app .auth-panel{padding:20px!important}.auth-app .auth-panel h1{font-size:26px!important}.auth-app .auth-main button{min-height:44px}}

/* Navigation drawer keeps the portal navy surface above generic dialog rules. */
body.portal-app dialog.portal-mobile-drawer,body.core-app dialog.portal-mobile-drawer{background:#071e3b!important;color:#eff7ff!important;border-radius:0!important;padding:0!important}
body .portal-mobile-drawer .portal-mobile-drawer-head>strong{color:#eff7ff!important}

.account-removal-dialog .office-checkbox-field{display:flex;align-items:center;gap:8px;min-height:44px}.account-removal-dialog input[type=checkbox]{width:16px!important;height:16px!important;flex:0 0 16px;margin:0}
