
:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#101828;background:#f4f7fb;--navy:#101828;--blue:#175cd3;--green:#067647;--red:#b42318;--amber:#b54708;--muted:#667085;--line:#e4e7ec}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#edf4ff,#f6f8fb 320px)}button,input,select,textarea{font:inherit}
header{background:#101828;color:#fff;padding:14px 4%;display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:10}
.brand{display:flex;gap:10px;align-items:center}.logo{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#53b1fd,#175cd3);display:grid;place-items:center;font-weight:900}
header h1{font-size:1rem;margin:0}header small{color:#d0d5dd}.container{width:min(1200px,94%);margin:22px auto 60px}
.card{background:#fff;border:1px solid #d0d5dd;border-radius:18px;padding:20px;margin-bottom:16px;box-shadow:0 10px 28px rgba(16,24,40,.07)}
.hero{background:linear-gradient(135deg,#101828,#344054);color:#fff}.hero h2{font-size:clamp(1.5rem,4vw,2.25rem);margin:0 0 6px}.hero p{color:#d0d5dd}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:13px}.statgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.stat{border:1px solid var(--line);border-radius:14px;padding:14px}.stat small{color:var(--muted);font-weight:700}.stat strong{display:block;font-size:1.4rem;margin-top:5px}
label{display:block;font-size:.8rem;font-weight:800;color:#344054;margin:10px 0 6px}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #d0d5dd;border-radius:11px;background:#fff}textarea{min-height:85px;resize:vertical}
.actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px;margin-top:14px}.btn{border:0;border-radius:11px;padding:12px 14px;color:white;background:var(--blue);font-weight:800;cursor:pointer}.btn.secondary{background:#475467}.btn.success{background:var(--green)}.btn.danger{background:var(--red)}.btn.warning{background:var(--amber)}.btn.light{background:#eef4ff;color:#175cd3}.btn:disabled{opacity:.45;cursor:not-allowed}
.banner{padding:11px 13px;border-radius:11px;background:#f2f4f7;margin-top:12px;font-weight:700}.banner.ok{background:#ecfdf3;color:#067647}.banner.bad{background:#fef3f2;color:#b42318}
.tabs{display:flex;gap:8px;overflow:auto;margin-bottom:16px}.tab{white-space:nowrap;border:1px solid #d0d5dd;background:#fff;color:#344054;padding:9px 12px;border-radius:999px;font-weight:750}.tab.active{background:#175cd3;color:#fff;border-color:#175cd3}
.pill{display:inline-block;padding:5px 9px;border-radius:999px;font-size:.75rem;font-weight:800;background:#f2f4f7}.pill.green{background:#dcfae6;color:#067647}.pill.amber{background:#fef0c7;color:#b54708}.pill.blue{background:#eaf2ff;color:#175cd3}
table{width:100%;border-collapse:collapse;font-size:.88rem}th,td{padding:10px 8px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:.72rem;text-transform:uppercase;color:#667085}.scroll{overflow:auto}.hidden{display:none!important}.muted{color:var(--muted)}.auth{max-width:460px;margin:60px auto}.uploadbox{border:1px dashed #98a2b3;border-radius:12px;padding:12px;background:#f9fafb}
.mapcard{border:1px solid var(--line);border-radius:14px;padding:14px;margin-top:10px}.mapcard a{color:#175cd3;font-weight:750}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
@media print{header,.tabs,.no-print,.actions{display:none!important}body{background:#fff}.card{box-shadow:none;break-inside:avoid}.container{width:100%;margin:0}}
@media(max-width:700px){header small,.username{display:none}.card{padding:16px;border-radius:15px}.container{margin-top:14px}}

.admin-section table input,.admin-section table select{min-width:120px;padding:8px}
.admin-section .btn{white-space:nowrap}
.admin-section input[type=checkbox]{width:20px;height:20px}
@media(max-width:700px){.admin-section{overflow:hidden}.admin-section .scroll{margin:0 -16px;padding:0 16px}}

.intake-wrap{max-width:900px}.intake-wrap .hero{margin-top:12px}.request-card{margin-bottom:14px}.request-card p{line-height:1.5}

.dashboard-hero{background:linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,.01))}
.crew-grid,.project-pulse-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.crew-card,.project-card{border:1px solid var(--line,#d8dee8);border-radius:14px;padding:16px;background:var(--card,#fff)}
.presence-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#22c55e;margin-right:8px;box-shadow:0 0 0 4px rgba(34,197,94,.15)}
.dashboard-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.alert-row{padding:12px 0;border-bottom:1px solid var(--line,#e5e7eb)}
.status-good{color:#15803d}.status-bad{color:#b91c1c}
@media(max-width:850px){.dashboard-columns{grid-template-columns:1fr}}

.dispatch-board{display:grid;grid-template-columns:repeat(7,minmax(230px,1fr));gap:12px;overflow-x:auto;padding-bottom:12px}
.dispatch-day{min-height:280px;margin:0}.dispatch-item{border:1px solid var(--line,#d8dee8);border-radius:12px;padding:12px;margin:10px 0;background:var(--card,#fff)}
.schedule-card{margin-bottom:14px}
@media(max-width:900px){.dispatch-board{grid-template-columns:repeat(7,280px)}}

.work-order-list{display:grid;gap:12px}.work-order-card{border:1px solid var(--line,#d8dee8);border-radius:14px;padding:16px;cursor:pointer;background:var(--card,#fff)}.work-order-card:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.progress-track{height:12px;background:#e5e7eb;border-radius:999px;overflow:hidden}.progress-fill{height:100%;background:#22c55e}
.task-row{border:1px solid var(--line,#d8dee8);border-radius:12px;padding:12px;margin:10px 0}.task-complete{opacity:.7}.task-complete b{text-decoration:line-through}
@media print{header,.tabs,.no-print,.actions,button,input,select,textarea{display:none!important}.card{box-shadow:none;border:1px solid #ccc}}

:root{--bg:#080b0f;--panel:#11161d;--panel2:#171d25;--line:#2b323c;--text:#f4f5f7;--muted:#9ca3af;--red:#d7070c;--red2:#f21c21;--green:#34c759;--amber:#f6a800;--blue:#2b8cff}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif}
.app-layout{min-height:100vh;display:grid;grid-template-columns:252px 1fr;background:radial-gradient(circle at top right,#151b23 0,#080b0f 42%)}
.sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#0d1117,#090c10);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:30}
.sidebar-brand{padding:18px 16px 12px;border-bottom:1px solid var(--line);text-align:center}.sidebar-brand img{width:100%;max-height:150px;object-fit:contain}
.side-nav{padding:14px 10px;display:flex;flex-direction:column;gap:5px;overflow-y:auto}.side-nav-item{width:100%;display:flex;align-items:center;gap:12px;border:0;background:transparent;color:#d6dae0;padding:11px 13px;border-radius:9px;text-align:left;cursor:pointer}
.side-nav-item:hover{background:#171c23}.side-nav-item.active{background:linear-gradient(90deg,#e00a10,#b90509);color:white;box-shadow:0 7px 20px rgba(215,7,12,.25)}.nav-icon{font-size:18px;width:22px;text-align:center}
.sidebar-footer{margin-top:auto;padding:16px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.footer-mark{color:#fff;font-weight:800}.footer-version{margin-top:4px}
.main-shell{min-width:0}.topbar{height:68px;position:sticky;top:0;z-index:20;background:rgba(8,11,15,.94);backdrop-filter:blur(15px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px}
.topbar-title{font-weight:800;letter-spacing:.04em}.topbar-user{display:flex;align-items:center;gap:16px}.topbar-user div{display:flex;flex-direction:column;text-align:right}.topbar-user small{color:var(--muted);text-transform:capitalize}
.topbar-logout,.mobile-menu-btn{border:1px solid var(--line);background:#161b22;color:white;border-radius:8px;padding:8px 11px;cursor:pointer}.mobile-menu-btn{display:none}
.main-content{padding:22px;max-width:1600px;width:100%;margin:auto}
.card,.mapcard,.crew-card,.project-card,.work-order-card,.dispatch-item,.task-row{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);color:var(--text);box-shadow:0 10px 30px rgba(0,0,0,.16)}
.card{border-radius:14px;padding:18px;margin-bottom:16px}h1,h2,h3,h4{color:white}.muted{color:var(--muted)!important}
input,select,textarea{background:#0d1117!important;color:white!important;border:1px solid #343b46!important;border-radius:8px!important;padding:11px!important}
input:focus,select:focus,textarea:focus{outline:2px solid rgba(215,7,12,.35);border-color:var(--red)!important}
.btn{border-radius:8px!important;font-weight:700!important;border:1px solid transparent!important}.btn:not(.light):not(.secondary):not(.danger):not(.success):not(.warning),.kds-primary{background:linear-gradient(180deg,var(--red2),var(--red))!important;color:white!important}
.btn.light,.btn.secondary{background:#1b222b!important;color:white!important;border-color:#3a424e!important}.btn.success{background:#238a3b!important}.btn.danger{background:#b41016!important}.btn.warning{background:#b87500!important}
.stat{background:linear-gradient(180deg,#171d25,#10151b);border:1px solid var(--line);border-radius:12px;padding:16px}.stat small{color:var(--muted)}.stat strong{color:white}
.pill{background:#252c35;color:#d7dce2;border:1px solid #38404b}.pill.green{background:rgba(52,199,89,.13);color:#6ee78b;border-color:rgba(52,199,89,.3)}.pill.blue{background:rgba(43,140,255,.13);color:#65a8ff}.pill.amber{background:rgba(246,168,0,.13);color:#ffc44d}
table{color:#e5e7eb}th{color:#9ca3af;border-bottom:1px solid var(--line)}td{border-bottom:1px solid #242a33}a{color:#ff4d52}
.branded-login{min-height:100vh;display:grid;grid-template-columns:1.15fr .85fr;background:#070a0e}.login-brand-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;background:radial-gradient(circle,#1b2027 0,#080b0f 70%)}
.login-brand-panel img{max-width:620px;width:90%}.brand-promise{display:flex;gap:24px;margin-top:26px;color:#fff;font-weight:800}.brand-promise span{border-top:2px solid var(--red);padding-top:10px}
.login-form-panel{display:flex;align-items:center;justify-content:center;padding:30px}.login-card{width:min(430px,100%);background:#11161d;border:1px solid var(--line);border-radius:18px;padding:34px;box-shadow:0 30px 80px rgba(0,0,0,.45)}
.login-card h1{font-size:32px}.login-card .btn{width:100%;margin-top:18px;padding:13px}.login-phone{text-align:center;color:var(--red2);font-size:23px;font-weight:900;margin-top:24px}
.public-shell{min-height:100vh;background:#f3f0e8;color:#151515}.public-shell .card{background:white;color:#151515;border-color:#d8d4cc}.public-shell h1,.public-shell h2,.public-shell h3{color:#111}.public-shell .muted{color:#666!important}
.public-brand-header{display:flex;align-items:center;justify-content:center;gap:28px;padding:22px;background:white;border-bottom:5px solid var(--red)}.public-brand-header img{width:240px;max-height:125px;object-fit:contain}.public-brand-header h1{margin:0;color:#111;font-size:34px}.public-brand-header small{color:#555}
@media(max-width:900px){.app-layout{grid-template-columns:1fr}.sidebar{position:fixed;left:-270px;width:252px;transition:.25s}.sidebar.open{left:0}.mobile-menu-btn{display:inline-block;margin-right:10px}.main-content{padding:14px}.topbar{padding:0 14px}.topbar-title{font-size:13px}.branded-login{grid-template-columns:1fr}.login-brand-panel{min-height:42vh;padding:20px}.brand-promise{font-size:11px;gap:12px}.public-brand-header{flex-direction:column;text-align:center}}
@media(max-width:560px){.topbar-user small{display:none}.main-content{padding:10px}.card{padding:14px}.login-form-panel{padding:16px}.login-card{padding:23px}}
@media print{.sidebar,.topbar,.actions,button{display:none!important}.app-layout{display:block;background:white}.main-content{padding:0}.card{background:white!important;color:black!important;border:1px solid #bbb!important}.card h1,.card h2,.card h3,.card h4,.card p,.card td,.card th{color:black!important}.card:first-child:before{content:"";display:block;background:url("/kds-logo.png") center/contain no-repeat;height:130px;margin-bottom:15px}}

.daily-log-history{max-height:950px;overflow:auto;padding-right:4px}
.daily-log-card{border:1px solid var(--line);background:#0e1319;border-radius:12px;padding:15px;margin-bottom:12px}
.daily-log-card p{line-height:1.5;white-space:pre-wrap}.office-note{border-left:3px solid var(--amber);padding-left:12px;background:rgba(246,168,0,.06)}
.timeline-list{position:relative;padding-left:12px}.timeline-list:before{content:"";position:absolute;left:20px;top:8px;bottom:8px;width:2px;background:#303844}
.timeline-event{position:relative;display:grid;grid-template-columns:26px 1fr;gap:14px;padding:0 0 20px}
.timeline-marker{position:relative;z-index:1;width:16px;height:16px;margin-top:4px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 5px #11161d;border:2px solid #7ab6ff}
.timeline-marker.task{background:var(--green);border-color:#85eba0}.timeline-marker.material{background:var(--amber);border-color:#ffd375}.timeline-marker.file{background:#a855f7;border-color:#d8a8ff}.timeline-marker.signature{background:#14b8a6;border-color:#72e5d8}.timeline-marker.completed{background:var(--green);border-color:#9af2ad}.timeline-marker.daily_log{background:var(--red);border-color:#ff787c}.timeline-marker.crew{background:#f97316;border-color:#ffc08c}
.timeline-content{background:#0e1319;border:1px solid var(--line);border-radius:12px;padding:13px 15px}.timeline-content p{white-space:pre-wrap;margin-bottom:0}.timeline-delete{border:0;background:transparent;color:#777;font-size:22px;cursor:pointer}.timeline-delete:hover{color:#ff4d52}
@media(max-width:750px){.daily-log-panel textarea{min-height:90px}.timeline-event{gap:9px}}

.estimate-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:14px}.estimate-card,.template-card{background:#0e1319;border:1px solid var(--line);border-radius:14px;padding:16px;cursor:pointer}.estimate-card:hover{border-color:#555;transform:translateY(-1px)}.estimate-card-bottom{display:flex;justify-content:space-between;margin-top:18px;color:var(--muted)}.estimate-card-bottom strong{font-size:22px;color:#fff}.template-card{cursor:default;margin-top:14px}.template-items{margin-top:12px}.template-item-delete{float:right;border:0;background:transparent;color:#ff575c;font-size:20px;cursor:pointer}.estimate-document{max-width:1100px;margin:auto}.estimate-header{display:flex;align-items:center;justify-content:space-between;border-bottom:4px solid var(--red);padding-bottom:16px}.estimate-header img{width:300px;max-height:150px;object-fit:contain}.estimate-header>div{text-align:right}.estimate-header h2{font-size:38px;margin:0;color:var(--red2)}.estimate-address-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:22px 0}.estimate-scope,.estimate-terms{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.estimate-scope p,.estimate-terms p{white-space:pre-wrap;line-height:1.55}.estimate-totals{width:min(440px,100%);margin:22px 0 0 auto}.estimate-totals>div{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line)}.estimate-grand{font-size:22px;border-top:3px solid var(--red)!important;margin-top:8px;padding-top:14px!important}@media(max-width:700px){.estimate-header img{width:180px}.estimate-header h2{font-size:26px}.estimate-address-grid{grid-template-columns:1fr}}@media print{.estimate-document{max-width:none;border:0!important;padding:0!important;background:white!important}.estimate-document:before{display:none!important}.estimate-document *{color:#111!important}.estimate-header img{display:block!important}.estimate-totals>div,.estimate-scope,.estimate-terms{border-color:#bbb!important}}

.subcontractor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}.subcontractor-card,.outsourced-work-card{background:#0e1319;border:1px solid var(--line);border-radius:14px;padding:15px}.outsourced-work-card{margin-top:12px}.outsourcing-money{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.outsourcing-money span{background:#161c24;border:1px solid var(--line);border-radius:8px;padding:9px;display:flex;flex-direction:column;color:var(--muted)}.outsourcing-money b{color:#fff;font-size:17px}.timeline-marker.outsourcing{background:#ec4899;border-color:#f9a8d4}@media(max-width:600px){.outsourcing-money{grid-template-columns:1fr}}

.employee-public-shell{background:#080b0f}
.employee-login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:radial-gradient(circle at top,#202630,#080b0f 62%)}
.employee-login-card{width:min(460px,100%);background:#11161d;border:1px solid var(--line);border-radius:22px;padding:28px;color:white;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.employee-login-card img{width:100%;max-height:190px;object-fit:contain}.employee-login-card h1{text-align:center;margin:8px 0}.employee-login-card p{text-align:center;color:var(--muted);line-height:1.5}.employee-login-card .btn{width:100%;margin-top:17px;padding:14px}.employee-login-card small{display:block;text-align:center;color:var(--muted);margin-top:20px}
.employee-app{min-height:100vh;background:#080b0f;color:white;padding-bottom:82px}.employee-topbar{height:74px;display:flex;align-items:center;gap:12px;padding:9px 14px;background:#0c1015;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.employee-topbar img{width:88px;height:56px;object-fit:contain}.employee-user{display:flex;flex-direction:column;flex:1}.employee-user small{color:var(--muted)}.employee-logout{background:#1b222b;color:white;border:1px solid var(--line);border-radius:8px;padding:8px}
.employee-main{max-width:760px;margin:auto;padding:16px}.employee-bottom-nav{position:fixed;bottom:0;left:0;right:0;height:72px;background:rgba(12,16,21,.97);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);z-index:30;padding-bottom:env(safe-area-inset-bottom)}
.employee-nav-item{background:transparent;border:0;color:#9ca3af;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px}.employee-nav-item span{font-size:21px}.employee-nav-item.active{color:#ff3035}.employee-nav-item b{font-size:10px}
.employee-welcome{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:6px 0 18px}.employee-welcome small{color:var(--muted)}.employee-welcome h1{font-size:28px;margin:5px 0}.employee-status{font-size:11px;font-weight:900;border-radius:999px;padding:8px 10px}.employee-status.working{background:rgba(52,199,89,.15);color:#6ee78b}.employee-status.off{background:#242b34;color:#b8bec7}
.employee-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.employee-kpis>div{background:#151b22;border:1px solid var(--line);border-radius:13px;padding:13px;text-align:center}.employee-kpis small{display:block;color:var(--muted);font-size:11px}.employee-kpis strong{display:block;font-size:23px;margin-top:4px}
.employee-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.employee-action{min-height:145px;text-align:left;border:1px solid var(--line);border-radius:17px;background:linear-gradient(155deg,#171e26,#10151b);color:white;padding:17px;display:flex;flex-direction:column;gap:8px}.employee-action.primary{background:linear-gradient(155deg,#ed161b,#a90408);border-color:#ff3d41}.employee-action span{font-size:29px}.employee-action b{font-size:18px}.employee-action small{color:#b6bdc7;line-height:1.35}.employee-action.primary small{color:#ffe5e6}
.employee-section{margin-top:24px}.employee-section h2{font-size:18px}.employee-text-btn{background:transparent;border:0;color:#ff4d52;font-weight:700}.employee-job-card,.employee-work-card{background:#131920;border:1px solid var(--line);border-radius:15px;padding:15px;margin-bottom:11px}.employee-job-card{display:grid;grid-template-columns:1fr auto;gap:12px}.employee-job-card h3,.employee-work-card h3{margin:4px 0}.employee-job-card p,.employee-work-card p{color:var(--muted);line-height:1.45}.job-time{color:#ff4d52;font-weight:800}.employee-card-actions{display:flex;flex-direction:column;gap:8px;justify-content:center}.employee-card-actions a,.employee-card-actions button{background:#222a34;color:white;border:1px solid #3a4451;border-radius:9px;padding:9px;text-decoration:none;text-align:center}.employee-card-actions button{background:#b9080d}.employee-work-card{display:flex;align-items:center;justify-content:space-between}.employee-work-card>div>span{color:#ff4d52;font-size:12px;font-weight:800}.employee-work-card>b{font-size:28px;color:#777}.employee-empty{border:1px dashed #343c47;border-radius:14px;padding:22px;text-align:center;color:var(--muted)}
.employee-app .main-content{padding:0}.employee-app .card{margin-bottom:13px}.employee-app .grid{grid-template-columns:1fr}.employee-app .actions{grid-template-columns:1fr}.employee-app .btn{min-height:48px}.employee-app table{min-width:720px}
@media(max-width:430px){.employee-main{padding:12px}.employee-topbar img{width:72px}.employee-user b{font-size:13px}.employee-welcome h1{font-size:23px}.employee-kpis>div{padding:10px 5px}.employee-kpis strong{font-size:20px}.employee-action{min-height:132px;padding:14px}.employee-action b{font-size:16px}.employee-job-card{grid-template-columns:1fr}.employee-card-actions{flex-direction:row}.employee-card-actions>*{flex:1}}

.calendar-toolbar{margin-bottom:14px}.calendar-actions{display:flex;gap:7px}.calendar-heading{display:flex;align-items:center;justify-content:space-between}.calendar-heading h1{margin:4px 0}.calendar-key{display:inline-block;padding:6px 9px;border-radius:999px;margin-left:6px;font-size:12px}.dispatch-key{background:rgba(43,140,255,.14);color:#70b0ff}.work-key{background:rgba(215,7,12,.16);color:#ff6d72}.calendar-card{overflow:hidden;padding:0}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr))}.calendar-weekdays>div{padding:12px;text-align:center;color:var(--muted);font-weight:800;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.calendar-day{min-height:145px;padding:9px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#0c1117}.calendar-day.outside{opacity:.43}.calendar-day.today{box-shadow:inset 0 0 0 2px var(--red)}.calendar-day-number{font-weight:900;margin-bottom:8px}.calendar-day-events{display:flex;flex-direction:column;gap:5px}.calendar-event{border:0;border-left:3px solid var(--blue);border-radius:7px;background:#162130;color:white;padding:7px;text-align:left;cursor:pointer;overflow:hidden}.calendar-event.work_order{border-left-color:var(--red);background:#271316}.calendar-event span,.calendar-event small{display:block;color:#aeb7c3;font-size:10px}.calendar-event b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:2px 0}.outlook-panel .actions{margin-top:12px}@media(max-width:900px){.calendar-card{overflow-x:auto}.calendar-weekdays,.calendar-grid{min-width:980px}.calendar-heading{align-items:flex-start;gap:10px}.calendar-heading h1{font-size:25px}}

.calendar-event{cursor:grab;transition:opacity .15s,transform .15s}.calendar-event:active{cursor:grabbing}.calendar-event.dragging{opacity:.35;transform:scale(.97)}.calendar-day.drop-target{background:#17202a;box-shadow:inset 0 0 0 3px var(--blue)}.calendar-day.drop-target .calendar-day-number{color:#75b5ff}.calendar-quick-reschedule{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}

.intelligence-hero{background:radial-gradient(circle at 88% 0,rgba(215,7,12,.19),transparent 34%),linear-gradient(145deg,#171d25,#0d1218)}
.intelligence-label{font-size:11px;letter-spacing:.18em;color:#ff5156;font-weight:900}.health-ring{--score:100;width:84px;height:84px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:conic-gradient(#35c95a calc(var(--score)*1%),#2d343e 0);position:relative}.health-ring:before{content:"";position:absolute;inset:7px;border-radius:50%;background:#10151b}.health-ring strong,.health-ring small{position:relative;z-index:1}.health-ring strong{font-size:25px}.health-ring small{color:var(--muted);font-size:10px}
.executive-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:11px;margin-top:18px}.executive-kpis>div{border:1px solid var(--line);background:rgba(8,11,15,.58);border-radius:13px;padding:14px}.executive-kpis small,.executive-kpis span{display:block;color:var(--muted)}.executive-kpis strong{display:block;font-size:25px;margin:5px 0}.executive-kpis span{font-size:11px}
.morning-briefing{border-left:4px solid var(--red)}.briefing-layout{display:grid;grid-template-columns:48px 1fr;gap:13px}.briefing-icon{width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,#ed161b,#9b0307);display:flex;align-items:center;justify-content:center;font-size:23px}.briefing-layout p{margin:0 0 9px;line-height:1.45}
.intelligence-columns{align-items:start}.risk-list{display:flex;flex-direction:column;gap:8px}.risk-card{width:100%;display:grid;grid-template-columns:34px 1fr 18px;align-items:center;gap:10px;background:#10161d;color:white;border:1px solid var(--line);border-left:4px solid #607080;border-radius:10px;padding:11px;text-align:left;cursor:pointer}.risk-card:hover{transform:translateX(2px)}.risk-card.critical{border-left-color:#ff343a}.risk-card.warning{border-left-color:#f6a800}.risk-card.opportunity{border-left-color:#2b8cff}.risk-symbol{width:27px;height:27px;border-radius:50%;background:#252d37;display:flex;align-items:center;justify-content:center;font-weight:900}.risk-card small{display:block;color:var(--muted);margin-top:3px;line-height:1.35}
.health-stack{display:flex;flex-direction:column;gap:9px}.health-row{display:grid;grid-template-columns:15px 1fr 18px;gap:11px;align-items:center;width:100%;background:#10161d;color:white;border:1px solid var(--line);border-radius:11px;padding:13px;text-align:left;cursor:pointer}.health-row small{display:block;color:var(--muted);margin-top:3px}.health-dot{width:11px;height:11px;border-radius:50%}.health-dot.good{background:#35c95a;box-shadow:0 0 10px rgba(53,201,90,.7)}.health-dot.warn{background:#f6a800}.health-dot.bad{background:#ef343a;box-shadow:0 0 10px rgba(239,52,58,.6)}
.today-agenda{display:flex;flex-direction:column;gap:8px}.agenda-row{display:grid;grid-template-columns:62px 1fr;gap:10px;padding:11px;border-radius:10px;background:#10161d;border-left:3px solid var(--blue)}.agenda-row.work{border-left-color:var(--red)}.agenda-row>span{font-weight:900;color:#dfe4eb}.agenda-row small{display:block;color:var(--muted);margin-top:3px}
.pipeline-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}.pipeline-strip>div,.work-risk-grid>div{background:#10161d;border:1px solid var(--line);border-radius:11px;padding:12px}.pipeline-strip small,.pipeline-strip span,.work-risk-grid small{display:block;color:var(--muted);text-transform:capitalize}.pipeline-strip strong,.work-risk-grid strong{display:block;font-size:23px;margin:4px 0}
.work-risk-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.dashboard-work-row{width:100%;display:flex;align-items:center;justify-content:space-between;background:#10161d;color:white;border:1px solid var(--line);border-radius:10px;padding:11px;text-align:left;margin-bottom:7px;cursor:pointer}.dashboard-work-row small{display:block;color:var(--muted);margin-top:3px}.dashboard-work-row>span{color:#ff565b;font-weight:900}
@media(max-width:1200px){.executive-kpis{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.executive-kpis{grid-template-columns:1fr 1fr}.health-ring{width:68px;height:68px}.pipeline-strip,.work-risk-grid{grid-template-columns:1fr 1fr}.briefing-layout{grid-template-columns:1fr}.briefing-icon{display:none}}@media(max-width:430px){.executive-kpis{grid-template-columns:1fr 1fr}.executive-kpis strong{font-size:21px}}

/* KDS Professional Edition v22 */
body{letter-spacing:-.006em}.professional-shell{background:linear-gradient(135deg,#080b0f 0,#0b1016 55%,#080b0f 100%)}
.sidebar-brand{padding:19px 18px 15px}.sidebar-brand img{max-height:110px}.sidebar-brand>span{display:block;color:#737c88;font-size:9px;letter-spacing:.22em;font-weight:900;margin-top:3px}
.nav-group{margin-bottom:14px}.nav-group>small{display:block;padding:5px 13px 7px;color:#5f6874;font-size:9px;letter-spacing:.17em;font-weight:900}.side-nav{gap:0}.side-nav-item{min-height:42px;font-size:13px;font-weight:650}.side-nav-item.active{box-shadow:0 8px 24px rgba(215,7,12,.2)}
.professional-topbar{height:76px;padding:0 20px;gap:20px}.topbar-leading{display:flex;align-items:center;min-width:210px}.topbar-leading h1{font-size:19px;margin:2px 0 0}.topbar-eyebrow{display:block;color:#7d8794;font-size:8px;letter-spacing:.15em;font-weight:900}.topbar-tools{display:flex;align-items:center;gap:10px;flex:1;justify-content:flex-end}
.global-search{position:relative;width:min(420px,42vw)}.global-search>span{position:absolute;left:13px;top:10px;color:#7e8792;font-size:20px}.global-search input{width:100%;height:42px;padding:9px 65px 9px 39px!important;border-radius:11px!important;background:#10151b!important}.global-search kbd{position:absolute;right:10px;top:10px;padding:4px 7px;border:1px solid #343b45;border-radius:6px;color:#747e8b;font-size:10px;background:#171d24}
.global-search-results{display:none;position:absolute;top:48px;left:0;right:0;max-height:480px;overflow:auto;background:#11171e;border:1px solid #343c47;border-radius:13px;box-shadow:0 24px 70px rgba(0,0,0,.55);padding:7px;z-index:80}.global-search-results.open{display:block}.global-search-results button{width:100%;border:0;background:transparent;color:white;text-align:left;display:grid;grid-template-columns:85px 1fr;padding:10px;border-radius:8px}.global-search-results button:hover{background:#1b222b}.global-search-results button b,.global-search-results button small{grid-column:2}.global-search-results button small{color:#8f99a5;margin-top:3px}.search-kind{grid-row:1/3;color:#ff5055;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.search-loading,.search-empty{padding:18px;color:#8e98a4;text-align:center}
.icon-button{position:relative;width:42px;height:42px;border:1px solid #303843;border-radius:11px;background:#11171e;color:#d9dde2;font-size:19px}.icon-button b{position:absolute;right:-4px;top:-4px;min-width:18px;height:18px;border-radius:9px;background:#e51117;color:white;font-size:10px;line-height:18px}.icon-button b:empty{display:none}
.profile-menu{display:flex;align-items:center;gap:9px;padding-left:4px}.profile-avatar{width:36px;height:36px;border-radius:11px;background:linear-gradient(145deg,#ee171d,#8f0307);display:flex;align-items:center;justify-content:center;font-weight:900}.profile-menu>div:nth-child(2){display:flex;flex-direction:column;max-width:135px}.profile-menu b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-menu small{color:#818b97;text-transform:capitalize;font-size:10px}.profile-menu>button{border:0;background:transparent;color:#8f98a3;font-size:19px;padding:5px}
.main-content{padding:24px}.page-enter{animation:pageEnter .22s ease-out}@keyframes pageEnter{from{opacity:.25;transform:translateY(4px)}to{opacity:1;transform:none}}
.card{border-color:#29313b;border-radius:15px}.card h2{letter-spacing:-.025em}.section-head{gap:12px}.btn{transition:transform .14s,filter .14s,box-shadow .14s}.btn:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.08)}.btn:active:not(:disabled){transform:none}
.drawer-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:88;opacity:0;visibility:hidden;transition:.22s}.notification-drawer{position:fixed;top:0;right:-430px;width:min(420px,100vw);height:100vh;background:#0d1218;border-left:1px solid #303842;z-index:90;transition:.25s;box-shadow:-25px 0 70px rgba(0,0,0,.45)}.notification-drawer.open{right:0}.notification-drawer.open~.drawer-backdrop,.notification-drawer.open+.drawer-backdrop{opacity:1;visibility:visible}.notification-drawer header{height:78px;border-bottom:1px solid #2b333d;padding:16px 18px;display:flex;align-items:center;justify-content:space-between}.notification-drawer header small{color:#ff4d52;letter-spacing:.13em;font-size:9px;font-weight:900}.notification-drawer header h2{margin:2px 0}.notification-drawer header button{border:0;background:transparent;color:#9aa3ad;font-size:28px}.notification-body{height:calc(100vh - 78px);overflow:auto;padding:10px}.notification-item{width:100%;display:grid;grid-template-columns:35px 1fr;gap:11px;border:0;border-bottom:1px solid #222a33;background:transparent;color:white;text-align:left;padding:14px 9px}.notification-item:hover{background:#151b22;border-radius:9px}.notification-icon{width:30px;height:30px;border-radius:9px;background:#252c35;color:#ff5b60;display:flex;align-items:center;justify-content:center;font-weight:900}.notification-item small,.notification-item em{display:block;color:#8f99a5;margin-top:4px}.notification-item em{font-size:9px;font-style:normal}.drawer-empty{padding:70px 20px;text-align:center;color:#8c96a2}.drawer-empty b,.drawer-empty span{display:block}.drawer-empty b{color:white;font-size:18px;margin-bottom:7px}.drawer-loading{padding:30px;text-align:center;color:#8d97a3}
.toast-stack{position:fixed;right:18px;top:90px;z-index:200;display:flex;flex-direction:column;gap:8px}.app-toast{width:min(390px,calc(100vw - 36px));display:grid;grid-template-columns:28px 1fr 24px;gap:9px;align-items:center;background:#161c23;border:1px solid #343c47;border-left:4px solid #2b8cff;border-radius:11px;padding:12px;color:white;box-shadow:0 16px 45px rgba(0,0,0,.38);animation:toastIn .2s ease-out}.app-toast.success{border-left-color:#35c95a}.app-toast.error{border-left-color:#ed343a}.app-toast>span{font-weight:900}.app-toast button{border:0;background:transparent;color:#8d97a2;font-size:18px}@keyframes toastIn{from{transform:translateX(25px);opacity:0}}
.app-busy{position:fixed;inset:0;background:rgba(5,8,11,.56);backdrop-filter:blur(2px);z-index:190;display:flex;align-items:center;justify-content:center}.app-busy.hidden{display:none}.busy-card{display:flex;align-items:center;gap:12px;background:#131920;border:1px solid #343d47;border-radius:13px;padding:16px 20px;box-shadow:0 20px 60px rgba(0,0,0,.45)}.spinner{display:inline-block;width:18px;height:18px;border:2px solid #3b444f;border-top-color:#ee171d;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1050px){.global-search{width:min(330px,36vw)}.profile-menu>div:nth-child(2){display:none}}
@media(max-width:760px){.professional-topbar{height:66px;padding:0 11px}.topbar-eyebrow{display:none}.topbar-leading h1{font-size:16px}.global-search{position:fixed;left:10px;right:10px;top:72px;width:auto;display:none;z-index:70}.professional-topbar.search-open .global-search{display:block}.profile-menu{display:none}.main-content{padding:13px}.icon-button{width:39px;height:39px}.topbar-tools{flex:none}.professional-topbar:after{content:'⌕';width:39px;height:39px;border:1px solid #303843;border-radius:11px;background:#11171e;color:#d9dde2;display:flex;align-items:center;justify-content:center;font-size:20px;order:-1}.professional-topbar{cursor:default}.notification-drawer{width:100vw}.toast-stack{top:76px;right:10px}.app-toast{width:calc(100vw - 20px)}}
@media print{.professional-topbar,.notification-drawer,.drawer-backdrop,.toast-stack,.app-busy{display:none!important}}

.command-login{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at top,#252d37,#070a0e 65%)}.command-login-card{width:min(520px,100%);background:#11161d;border:1px solid #313946;border-radius:24px;padding:34px;color:white}.command-login-card img{display:block;width:100%;height:190px;object-fit:contain}.command-login-card>span{display:block;text-align:center;color:#ff3f44;font-weight:900;letter-spacing:.16em}.command-login-card h1{text-align:center;font-size:38px;margin:8px}.command-login-card p{text-align:center;color:#a7afba}.command-login-card .btn{width:100%;padding:14px;margin-top:17px}
.command-center-root{min-height:100vh;background:#06090d;color:#f5f7fa;overflow:hidden}.command-center{height:100vh;display:grid;grid-template-rows:84px 52px minmax(0,1fr) 112px;background:radial-gradient(circle at 85% 0,rgba(215,7,12,.14),transparent 30%),#070a0e}
.command-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:10px 24px;border-bottom:1px solid #2b323c;background:#0a0e13}.command-brand{display:flex;align-items:center;gap:16px}.command-brand img{width:135px;height:65px;object-fit:contain}.command-brand span{color:#ff3f44;font-size:11px;font-weight:900;letter-spacing:.17em}.command-brand h1{font-size:25px;margin:3px 0}.command-date{text-align:center}.command-date span{display:block;color:#a4adb8}.command-date strong{display:block;font-size:30px}.command-health{display:flex;justify-content:flex-end;align-items:center;gap:18px}.command-health>div{display:flex;gap:7px;align-items:center}.command-health-dot{width:10px;height:10px;border-radius:50%}.command-health-dot.good{background:#39d35d;box-shadow:0 0 12px #39d35d}.command-health-dot.bad{background:#f13b40;box-shadow:0 0 12px #f13b40}.command-health button{width:38px;height:38px;border:1px solid #343d49;border-radius:9px;background:#171d25;color:white;font-size:20px}
.command-alert-banner{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:10px;padding:0 24px;border-bottom:1px solid #303844}.command-alert-banner.attention{background:linear-gradient(90deg,rgba(215,7,12,.28),rgba(215,7,12,.08))}.command-alert-banner.clear{background:linear-gradient(90deg,rgba(52,199,89,.18),rgba(52,199,89,.04))}.command-alert-banner>span{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#e5181e;font-weight:900}.command-alert-banner.clear>span{background:#2ba94a}
.command-main-grid{min-height:0;display:grid;grid-template-columns:1.25fr .9fr .75fr;gap:12px;padding:12px}.command-panel{min-height:0;background:linear-gradient(180deg,#141a21,#0d1218);border:1px solid #2b333e;border-radius:15px;overflow:hidden}.command-panel-head{height:66px;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #2b333e}.command-panel-head span{color:#ff4449;font-size:10px;font-weight:900;letter-spacing:.16em}.command-panel-head h2{font-size:21px;margin:2px 0}.command-panel-head>b{color:#aeb7c2;font-size:13px}
.command-map-panel{display:grid;grid-template-rows:66px minmax(0,1fr) 50px}#commandMap{min-height:300px;background:#10161d}.command-map-legend{display:flex;align-items:center;gap:18px;padding:0 15px;color:#b8c0ca;font-size:11px}.command-map-legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px}.command-map-legend i.crew{background:#34c759}.command-map-legend i.job{background:#d7070c}.command-map-legend small{margin-left:auto}.command-map-error{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}
.command-schedule-panel,.command-feed-panel{display:grid;grid-template-rows:66px minmax(0,1fr)}.command-schedule-list,.command-feed-list{overflow:hidden;padding:10px}.command-schedule-card{display:grid;grid-template-columns:58px 1fr auto;gap:9px;align-items:center;padding:11px 8px;border-bottom:1px solid #242c36;border-left:3px solid #2b8cff}.command-schedule-card.in_progress{border-left-color:#34c759}.command-schedule-card.on_hold{border-left-color:#f6a800}.command-schedule-card time{font-weight:900;color:#ff5257}.command-schedule-card h3{font-size:14px;margin:0}.command-schedule-card p,.command-schedule-card small{margin:2px 0;color:#99a3af;font-size:11px}.command-schedule-card>span{font-size:10px;text-transform:uppercase}.command-feed-list article{display:grid;grid-template-columns:34px 1fr;gap:10px;padding:10px 4px;border-bottom:1px solid #242c36}.command-feed-list i{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#252e39;color:#ff5257;font-style:normal}.command-feed-list time{font-size:10px;color:#ff5257}.command-feed-list h3{font-size:13px;margin:2px 0}.command-feed-list p{font-size:11px;color:#98a2ae;margin:0}.command-empty{height:100%;display:grid;place-items:center;color:#8e98a4}
.command-scoreboard{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;background:#2b333e;border-top:1px solid #2b333e}.command-scoreboard>div{background:#0e1319;padding:15px 14px;display:flex;flex-direction:column;justify-content:center}.command-scoreboard small,.command-scoreboard span{color:#8f99a6}.command-scoreboard strong{font-size:27px;margin:4px 0}.command-scoreboard span{font-size:10px}.score-health strong{color:#46db68}
@media(max-width:1200px){.command-main-grid{grid-template-columns:1.15fr 1fr}.command-feed-panel{display:none}.command-scoreboard{grid-template-columns:repeat(4,1fr)}.command-scoreboard>div:nth-child(n+5){display:none}.command-health>div{display:none}}@media(max-width:800px){.command-center{height:auto;min-height:100vh;grid-template-rows:auto auto auto auto}.command-header{grid-template-columns:1fr auto}.command-date{display:none}.command-main-grid{grid-template-columns:1fr}.command-map-panel{height:520px}.command-schedule-panel{height:600px}.command-feed-panel{height:500px;display:grid}.command-scoreboard{grid-template-columns:1fr 1fr}.command-scoreboard>div:nth-child(n){display:flex}}

.customer-portal-login{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr;background:#f5f3ed;color:#171717}.customer-login-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px;background:radial-gradient(circle,#242b34,#080b0f 72%);color:white}.customer-login-brand img{width:min(560px,88%);max-height:270px;object-fit:contain}.customer-login-brand>div{max-width:620px;text-align:center}.customer-login-brand span,.customer-eyebrow{color:#e5171d;font-size:11px;font-weight:900;letter-spacing:.17em}.customer-login-brand h1{font-size:43px;margin:10px 0}.customer-login-brand p{color:#c5cbd3;font-size:17px;line-height:1.55}.customer-login-panel{display:grid;place-items:center;padding:30px}.customer-login-card{width:min(460px,100%);background:white;border:1px solid #ddd8ce;border-radius:22px;padding:34px;box-shadow:0 28px 80px rgba(40,35,28,.15)}.customer-login-card h2{color:#151515;font-size:31px;margin:8px 0}.customer-login-card p{color:#666}.customer-login-card input{background:#fff!important;color:#111!important;border-color:#cfc9be!important}.customer-login-card .btn{width:100%;min-height:49px;margin-top:14px}.customer-login-divider{display:flex;align-items:center;gap:10px;color:#888;margin-top:21px}.customer-login-divider:before,.customer-login-divider:after{content:"";height:1px;background:#ddd;flex:1}.customer-login-card>small{display:block;text-align:center;color:#777;margin-top:20px}
.customer-portal-loading{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#f5f3ed;color:#222}.customer-portal-loading img{width:280px;max-height:150px;object-fit:contain}
.customer-portal-app{min-height:100vh;background:#f5f3ed;color:#191919}.customer-portal-header{height:86px;background:#0b0f14;color:white;display:flex;align-items:center;justify-content:space-between;padding:10px 5vw;border-bottom:4px solid #d7070c;position:sticky;top:0;z-index:20}.customer-portal-brand{display:flex;align-items:center;gap:16px}.customer-portal-brand img{width:118px;height:64px;object-fit:contain}.customer-portal-brand div{display:flex;flex-direction:column}.customer-portal-brand span{color:#ff4247;font-size:10px;letter-spacing:.16em;font-weight:900}.customer-portal-header-actions{display:flex;align-items:center;gap:10px}.customer-portal-header-actions a,.customer-portal-header-actions button{border:1px solid #343c47;background:#171d25;color:white;border-radius:9px;padding:9px 13px;text-decoration:none}.customer-portal-nav{height:55px;display:flex;justify-content:center;gap:7px;background:white;border-bottom:1px solid #ddd8ce;position:sticky;top:86px;z-index:19}.customer-portal-nav button{border:0;background:transparent;color:#555;padding:0 18px;font-weight:800;cursor:pointer;border-bottom:3px solid transparent}.customer-portal-nav button.active{color:#d7070c;border-bottom-color:#d7070c}.customer-portal-main{width:min(1250px,94%);margin:0 auto;padding:28px 0 50px}.customer-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(140deg,#161c23,#0b0f14);color:white;border-radius:20px;padding:28px 32px}.customer-welcome span,.customer-section-head span{color:#e5171d;font-size:10px;font-weight:900;letter-spacing:.15em}.customer-welcome h1{font-size:36px;margin:7px 0}.customer-welcome p{color:#b7bec7}.customer-progress-ring{--progress:0;width:116px;height:116px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;background:conic-gradient(#e5171d calc(var(--progress)*1%),#303844 0);flex:0 0 auto}.customer-progress-ring:before{content:"";position:absolute;inset:9px;border-radius:50%;background:#11161d}.customer-progress-ring strong,.customer-progress-ring small{position:relative}.customer-progress-ring strong{font-size:27px}.customer-progress-ring small{color:#aaa;font-size:10px}.customer-kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:18px 0}.customer-kpi-grid>div{background:white;border:1px solid #ded9cf;border-radius:14px;padding:17px}.customer-kpi-grid small,.customer-kpi-grid span{display:block;color:#777}.customer-kpi-grid strong{display:block;font-size:23px;margin-top:5px;color:#161616}.customer-two-column{display:grid;grid-template-columns:1fr 1fr;gap:16px}.customer-card{background:white;border:1px solid #ded9cf;border-radius:17px;padding:21px;margin-bottom:16px;box-shadow:0 8px 30px rgba(50,45,35,.04)}.customer-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.customer-section-head h2{color:#171717;margin:4px 0}.customer-section-head button{border:0;background:transparent;color:#d7070c;font-weight:800}.customer-schedule-row{display:grid;grid-template-columns:110px 1fr auto;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid #eeeae3}.customer-schedule-row time{font-weight:800;color:#d7070c}.customer-schedule-row small{display:block;color:#777;margin-top:4px}.customer-schedule-row>span{font-size:11px;background:#eef2f5;border-radius:999px;padding:6px 9px}.customer-latest-update time{color:#d7070c;font-weight:800}.customer-latest-update p{font-size:17px;line-height:1.6}.customer-latest-update>div{background:#f5f3ed;border-radius:10px;padding:12px}.customer-timeline{position:relative}.customer-timeline article{display:grid;grid-template-columns:18px 1fr;gap:12px;padding:0 0 18px}.customer-timeline i{width:12px;height:12px;border-radius:50%;background:#d7070c;margin-top:5px}.customer-timeline time,.customer-timeline p{display:block;color:#777;font-size:12px;margin:3px 0}.customer-daily-log{border-top:1px solid #e5e0d7;padding:20px 0}.customer-daily-log header{display:flex;justify-content:space-between}.customer-daily-log header small{display:block;color:#777;margin-top:4px}.customer-daily-log header>span{background:#f2eee7;border-radius:999px;padding:7px 10px}.customer-daily-log h3{font-size:12px;text-transform:uppercase;color:#d7070c;margin-bottom:5px}.customer-daily-log p{line-height:1.55;white-space:pre-wrap}.customer-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}.customer-photo-card{border:1px solid #ded9cf;border-radius:13px;overflow:hidden;color:#222;text-decoration:none;background:#faf9f6}.customer-photo-preview{height:170px;background:#161c23;display:grid;place-items:center;color:white}.customer-photo-preview img{width:100%;height:100%;object-fit:cover}.customer-photo-card b,.customer-photo-card small{display:block;padding:9px 11px 0}.customer-photo-card small{color:#777;padding-bottom:11px}.customer-estimate-card{border:1px solid #ded9cf;border-radius:14px;padding:18px;margin-bottom:14px}.customer-estimate-card header{display:flex;justify-content:space-between;gap:20px}.customer-estimate-card header span{color:#d7070c;font-size:11px;font-weight:900}.customer-estimate-card header h3{margin:4px 0}.customer-estimate-card header strong{font-size:25px}.customer-estimate-lines>div{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #eee}.customer-approval{background:#f5f3ed;border-radius:12px;padding:14px;margin-top:14px}.customer-approval input{background:white!important;color:#111!important}.customer-message-thread{max-height:480px;overflow:auto;padding:10px;background:#f5f3ed;border-radius:12px;margin-bottom:15px}.customer-message-thread article{width:min(78%,600px);background:white;border-radius:12px;padding:12px;margin-bottom:10px}.customer-message-thread article.customer{margin-left:auto;background:#171d25;color:white}.customer-message-thread article>div{display:flex;justify-content:space-between;gap:10px}.customer-message-thread time{font-size:10px;color:#888}.customer-message-thread p{white-space:pre-wrap;line-height:1.5}.customer-message-card textarea{background:white!important;color:#111!important;min-height:110px}.customer-empty{padding:24px;text-align:center;color:#777;border:1px dashed #ccc6ba;border-radius:12px}.customer-portal-footer{background:#0b0f14;color:white;display:flex;align-items:center;justify-content:center;gap:16px;padding:22px}.customer-portal-footer img{width:90px;height:55px;object-fit:contain}.customer-portal-footer div{display:flex;flex-direction:column}.customer-portal-footer span{color:#aaa;font-size:12px}.portal-admin-callout{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#10161d;color:white;border-radius:13px;padding:15px;margin:14px 0}.portal-admin-callout div{display:flex;flex-direction:column}.portal-admin-callout span{color:#aab2bd}.portal-admin-callout code{color:#ff565b}.portal-access-result{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(145deg,#17321e,#101b13);border:1px solid #2f7b40;border-radius:14px;padding:18px;color:white;margin-bottom:15px}.portal-access-result span{color:#6ee78b;font-size:10px;letter-spacing:.14em}.portal-access-result h3{margin:4px 0}.portal-access-result strong{font-size:28px;color:#6ee78b;letter-spacing:.12em}
@media(max-width:850px){.customer-portal-login{grid-template-columns:1fr}.customer-login-brand{min-height:42vh;padding:25px}.customer-login-brand img{height:150px}.customer-login-brand h1{font-size:31px}.customer-portal-nav{overflow-x:auto;justify-content:flex-start}.customer-two-column{grid-template-columns:1fr}.customer-kpi-grid{grid-template-columns:1fr 1fr}.customer-welcome h1{font-size:27px}.customer-progress-ring{width:92px;height:92px}.portal-admin-callout,.portal-access-result{align-items:flex-start;flex-direction:column}}@media(max-width:520px){.customer-portal-header{padding:8px 12px}.customer-portal-brand img{width:75px}.customer-portal-brand span{display:none}.customer-portal-header-actions a{display:none}.customer-portal-main{width:94%;padding-top:14px}.customer-welcome{padding:20px;align-items:flex-start}.customer-welcome p{font-size:12px}.customer-progress-ring{width:78px;height:78px}.customer-progress-ring strong{font-size:20px}.customer-kpi-grid{gap:8px}.customer-kpi-grid>div{padding:13px}.customer-kpi-grid strong{font-size:18px}.customer-schedule-row{grid-template-columns:82px 1fr}.customer-schedule-row>span{display:none}.customer-photo-grid{grid-template-columns:1fr 1fr}.customer-photo-preview{height:130px}.customer-message-thread article{width:92%}}

.quickbooks-sync-panel{display:flex;align-items:center;justify-content:space-between;gap:22px;background:linear-gradient(145deg,#112b1c,#0e1712);border:1px solid #2f6f45;border-radius:15px;padding:19px;margin:14px 0}.quickbooks-sync-panel span,.qb-sync-result-head span{color:#65dd86;font-size:10px;font-weight:900;letter-spacing:.15em}.quickbooks-sync-panel h4,.qb-sync-result h4{margin:5px 0;color:#fff;font-size:19px}.quickbooks-sync-panel p{color:#aeb8b1;margin:0;line-height:1.45}.quickbooks-sync-panel button{width:auto;min-width:180px}.qb-sync-progress{display:flex;align-items:center;gap:15px;background:#121820;border:1px solid var(--line);border-radius:13px;padding:17px;margin-bottom:14px}.qb-sync-progress div:last-child{display:flex;flex-direction:column}.qb-sync-progress span{color:var(--muted);margin-top:3px}.qb-sync-spinner{width:30px;height:30px;border:3px solid #34404b;border-top-color:#49d66d;border-radius:50%;animation:spin .8s linear infinite}.qb-sync-result{background:#101820;border:1px solid #2f6f45;border-radius:14px;padding:18px;margin-bottom:14px}.qb-sync-result-head{display:flex;align-items:center;justify-content:space-between}.qb-sync-result-head strong{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#2ba94a;color:white;font-size:22px}.qb-sync-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:15px 0}.qb-sync-stats>div{background:#0b1117;border:1px solid #27313b;border-radius:10px;padding:12px}.qb-sync-stats small{display:block;color:#9ea8b4}.qb-sync-stats b{display:block;color:white;font-size:23px;margin-top:4px}@media(max-width:700px){.quickbooks-sync-panel{align-items:flex-start;flex-direction:column}.quickbooks-sync-panel button{width:100%}.qb-sync-stats{grid-template-columns:1fr 1fr}}
