/* Executive construction theme: presentation only. Existing authorization,
   tenant branding, forms, navigation and incremental polling remain authoritative. */
:root{color-scheme:dark;--navy:#091925;--charcoal:#101e28;--gold:#ffca4b;--paper:#06131e;--ink:#f1f5f8;--muted:#a6b7c5;--line:#2b4352;--white:#102431;--executive-panel:#0b1c29}
body{background:radial-gradient(ellipse at 85% 0,#173043 0,transparent 50%),var(--paper);color:var(--ink);font:14px/1.55 "Segoe UI",system-ui,sans-serif}
h1,h2,h3,strong,legend{color:var(--ink)}p,.muted{color:var(--muted)}a{color:var(--gold)}
button{background:var(--gold);color:#081823;border:1px solid #ffda79;border-radius:7px;min-height:42px;box-shadow:none}
button:hover{filter:brightness(1.08)}button.secondary{background:#132a39;color:#f2f6f9;border-color:var(--line)}
input,select,textarea{background:#0c2130;color:var(--ink);border:1px solid #3b5363;border-radius:7px;min-height:42px}input::placeholder,textarea::placeholder{color:#9db0bf}input[type=checkbox]{accent-color:var(--gold);min-height:auto}input[type=file]{padding:10px}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px}::selection{background:#ffca4b;color:#06131e}
.sidebar{width:244px;padding:25px 15px;background:linear-gradient(150deg,#0d2534,#06131e 75%);border-right:1px solid var(--line);gap:18px;z-index:20}
.brand{justify-content:center;flex-direction:column;text-align:center;font-size:17px;letter-spacing:1.5px;gap:5px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.brand small{font-size:10px;letter-spacing:3px;margin-top:2px}.peak{display:block;width:83px;height:40px;font-size:0;color:var(--gold)}.peak svg{width:100%;height:100%;fill:currentColor}.company-logo{height:52px;width:52px}
.workspace-label{color:var(--muted);font-size:9px}.sidebar select{background:#102c3b;border-color:#355263;color:var(--ink)}
.nav-group{border:0;border-bottom:1px solid #243c493f;padding:3px 0}.nav-group summary{font-size:11px;letter-spacing:.7px;text-transform:uppercase;color:#a9bdca;padding:10px 9px}.nav-group-items{padding:0}
.nav-link{padding:10px 12px;border-radius:6px;margin:2px 0;gap:12px;color:#d9e3eb;font-size:13px;min-height:43px;border:1px solid transparent}.nav-link:hover{background:#193344;color:white}.nav-link.active{background:linear-gradient(100deg,#5a471f,#302b1c);border:1px solid #896928;color:#ffe397;box-shadow:inset 3px 0 var(--gold)}.nav-icon{width:19px;height:19px;flex-shrink:0}.nav-link.active .nav-icon{color:var(--gold)}
.sidebar-bottom{border-top:1px solid var(--line);padding-top:16px}.sidebar-bottom a{font-size:11px;color:#b7c7d2}.sidebar-bottom button{color:var(--gold);background:none;border:0;text-align:left}
main{margin-left:244px;padding:22px 25px;max-width:1920px}main>header{position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--line);border-radius:10px;padding:24px 28px;margin-bottom:20px;min-height:175px;background:#0b1d2a}
main>header::before{content:"";position:absolute;z-index:-2;right:0;top:0;width:500px;height:175px;background-image:url('executive-reference.png');background-size:1536px 1024px;background-position:-780px 0;background-repeat:no-repeat;opacity:.78}
main>header::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0b1d2a 25%,#0b1d2aeb 47%,#0b1d2a30 100%)}
.product-name{font-weight:750;font-size:clamp(21px,2.5vw,32px);letter-spacing:-1px;line-height:1.15;color:#fff;margin:0 0 9px}.eyebrow{color:var(--gold);margin:0 0 7px;font-size:9px;letter-spacing:2px}header h1{font-size:21px;letter-spacing:-.4px;margin:0 0 7px}header #subtitle{color:#eed797;font-size:13px;margin:0;max-width:470px}.header-actions{align-self:flex-start}.tag{background:#0a1d2bbf;color:var(--gold);border-color:#b99242}.header-actions button{background:#0a1d2bcf;border-color:#667a87;color:#fff}
.panel{background:linear-gradient(140deg,#102633 0%,var(--executive-panel) 80%);border:1px solid var(--line);border-radius:9px;padding:19px;box-shadow:0 6px 15px #0002;margin-bottom:16px;min-width:0}.panel h2{font-size:17px;margin:0 0 16px;letter-spacing:-.3px}.panel h2::before{content:"";display:inline-block;width:4px;height:17px;background:var(--gold);border-radius:2px;margin-right:9px;vertical-align:-2px}
.sps-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.kpi{position:relative;background:linear-gradient(135deg,#23313a,#091d2b 70%);border:1px solid #506374;border-left:3px solid var(--gold);padding:18px 20px;color:var(--ink);min-height:120px;border-radius:8px;box-shadow:none}.kpi:hover{background:linear-gradient(135deg,#344233,#102636);filter:none}.kpi span{color:#e5edf3;font-size:10px;letter-spacing:.9px;font-weight:650}.kpi strong{color:#fff;font-size:35px;line-height:1.15;margin:10px 0 8px}.kpi small{color:var(--gold);font-size:11px}.kpi::after{content:"\203a";position:absolute;right:15px;top:12px;font-size:25px;color:var(--gold)}
.dashboard-layout-host{gap:16px}.dashboard-layout-host>.panel{margin:0}.dashboard-layout-host .sps-metrics{grid-column:1/-1}.dashboard-quick-actions{grid-column:1/-1}.dashboard-quick-actions button{margin-right:8px;margin-bottom:8px}
.sps-empty-state,.empty{background:#081b28;border:1px dashed #476071;color:#b3c4d1;border-radius:7px;padding:22px;font-size:13px}.sps-utilization,.fleet-assignment-rate{color:var(--gold)}.chart{gap:10px}.bar{grid-template-columns:minmax(85px,140px) 1fr 45px;font-size:12px}.bar meter{height:17px;accent-color:var(--gold)}.bar meter::-webkit-meter-bar{background:#163141;border:0;border-radius:4px}.bar meter::-webkit-meter-optimum-value{background:linear-gradient(90deg,#c79c34,#ffcf59)}
.table-wrap{background:#0a1e2c;border:1px solid var(--line);border-radius:7px;max-width:100%}table{color:#deE8ef;font-size:12px}th{background:#173040;color:#bdcdd7;font-size:10px;padding:12px 14px}td{padding:12px 14px;border-color:#263e4c}tbody tr:hover,tbody tr:hover td{background:#1b3544}.table-wrap tbody tr:nth-child(even) td{background:#102735}.table-wrap tbody tr:nth-child(even):hover td{background:#1b3544}
fieldset{border:1px solid var(--line);border-radius:7px;padding:14px}.report-columns fieldset{background:#0a1d2a}.report-columns label{color:#dce7ee}.report-controls{gap:14px}.report-columns{max-height:340px;overflow:auto}.badge{color:#ffe097;background:#4d4023}.toolbar{gap:10px}.toolbar label{min-width:150px}.actions{gap:9px}.equipment-map{border-color:#3f596a;height:390px;background:#0a1d2a}
#notice:not(:empty){background:#352e1b;border-color:#a6843b;color:#ffe4a1}#notice a{background:#ffe097;color:#0b1d2a}dialog{background:#0c2130;color:var(--ink);border:1px solid #567183;box-shadow:0 25px 100px #0009}dialog::backdrop{background:#020a13c9}pre{background:#061622;color:#cbd9e3;border:1px solid var(--line)}details>summary{cursor:pointer;color:#dac284}.demo-banner{background:#342c18;color:#ffe09a;border:1px solid #8c7136}footer{color:#97adbd;margin-top:25px;font-size:10px}.sps-intro{background:#0d2331;border-color:var(--line)}.sps-intro-heading,.sps-intro-step strong{color:#f4f7fa}.sps-intro-copy,.sps-intro-step span{color:var(--muted)}.sps-intro-step{background:#102b3b;border-color:var(--line)}.sps-section-label{color:var(--gold)}
/* Specialist financial, inspection, integration and account routes share tokens. */
body.executive-standalone{padding:30px 22px;min-height:100vh}body.executive-standalone main{margin:0 auto;max-width:1120px;background:linear-gradient(140deg,#102633,#0a1d2a);border:1px solid var(--line);border-radius:12px;padding:30px;box-shadow:0 15px 70px #0003}body.executive-standalone main::before{content:"SOUTHERN PEAK SYSTEMS  /  CONSTRUCTION COMMAND CENTER";display:block;font-size:10px;letter-spacing:1.8px;color:var(--gold);padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:25px}body.executive-standalone form{max-width:780px}body.executive-standalone h1{font-size:28px}body.executive-standalone section{overflow-wrap:anywhere}body.executive-standalone table{display:block;overflow:auto}body.executive-standalone select,body.executive-standalone textarea{font:inherit;width:100%;padding:12px}body.executive-standalone .signup{background:transparent}
/* Tenant colors still apply to their workspace; decorative image is neutral. */
[data-company-brand] .panel h2::before,[data-company-brand] .kpi::after{color:var(--company-accent)}[data-company-brand] .panel h2::before{background:var(--company-accent)}[data-company-brand] .peak{color:var(--company-accent)}[data-company-brand] main>header::after{background:linear-gradient(90deg,var(--company-primary) 25%,transparent 100%)}
@media(min-width:1550px){main{padding:26px 32px}.sps-metrics{gap:18px}.panel{padding:23px}}
@media(max-width:1100px){.sidebar{width:220px}main{margin-left:220px;padding:18px}.sps-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.product-name{font-size:25px}.header-actions .tag{display:none}}
@media(max-width:900px){.sidebar{position:fixed;inset:0 auto 0 0;width:255px;transform:translateX(-100%);height:100dvh;z-index:110;padding:70px 15px 20px}.navigation-open .sidebar{transform:translateX(0)}main{margin-left:0;padding:66px 16px 20px}#navigation-toggle{position:fixed;top:12px;left:16px;background:#143042;border-color:#526b7b;color:#ffe097;z-index:120}.dashboard-layout-host{grid-template-columns:1fr!important}.sps-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}main>header{padding:22px;min-height:160px}.equipment-map{height:330px}}
@media(max-width:600px){main{padding:65px 12px 16px}main>header{display:flex;flex-direction:column;align-items:flex-start;gap:17px;padding:19px}main>header::before{opacity:.35}.product-name{font-size:25px}.header-actions{align-items:flex-start}.header-actions button{font-size:11px}.sidebar nav{display:block}#module-nav{display:block}.brand{font-size:16px}.brand small{display:block;margin-left:0}.sidebar-bottom{display:grid}.sps-metrics{gap:10px}.kpi{padding:15px;min-height:115px}.kpi strong{font-size:30px}.panel{padding:16px}.toolbar{align-items:stretch}.toolbar label{width:100%}.filters{grid-template-columns:1fr}.equipment-map{height:290px}body.executive-standalone{padding:14px}body.executive-standalone main{padding:22px 16px}.bar{grid-template-columns:95px minmax(30px,1fr) 35px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.preview-banner{color:#b7c9d6;font-size:11px;padding:8px 12px;border:1px solid #3c5564;border-radius:6px;background:#0d2533;margin:0 0 16px}body[data-executive-account]{background:#06131e!important;background-image:none!important;color:#f1f5f8!important}body[data-executive-account] .login-container,body[data-executive-account] .login-box,body[data-executive-account] .card{background:#102633!important;color:#f1f5f8!important;border:1px solid #3b5363!important}body[data-executive-account] input{background:#0c2130!important;color:#f1f5f8!important}body[data-executive-account] h1,body[data-executive-account] h2,body[data-executive-account] label{color:#f1f5f8!important}body[data-executive-account] button{background:#ffca4b!important;color:#081823!important}

@media(min-width:1200px){.dashboard-layout-host .sps-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}.kpi{min-height:110px}}

[data-company-brand] main>header .product-name,[data-company-brand] header #subtitle{color:var(--company-foreground)}

/* Dark form controls (owner decision 2026-10): navy fields, light text, gold focus. Kept after the account skin so it wins. */
body input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]),
body select,body textarea,body[data-executive-account] input{
  color-scheme:dark;background:#0c2130!important;color:#f1f5f8!important;
  border-color:#3b5363;caret-color:#ffca4b;
}
body input::placeholder,body textarea::placeholder{color:#9db0bf!important;opacity:1}
body select option,body select optgroup{background:#0c2130;color:#f1f5f8}
body input:disabled,body select:disabled,body textarea:disabled{
  background:#14283a!important;color:#8fa3b2!important;opacity:1;cursor:not-allowed;
}
body input:focus-visible,body select:focus-visible,body textarea:focus-visible{
  border-color:#ffca4b;outline:3px solid #ffca4b;outline-offset:2px;
}
body input:-webkit-autofill{
  -webkit-text-fill-color:#f1f5f8!important;box-shadow:0 0 0 1000px #0c2130 inset!important;
}
/* The approved image already exists in the login HTML. Preserve its exact
   background and layout instead of the generic account skin's navy override. */
body[data-executive-account]:has(.login-form){
  background-image:linear-gradient(rgba(12,29,43,.38),rgba(12,29,43,.38)),url('/Image/construction_command_login_image.png')!important;
  background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
}
body[data-executive-account]:has(.login-form) h1{
  font-family:"Segoe UI",Arial,sans-serif;font-weight:800;letter-spacing:-.015em;line-height:1.15;
}
body[data-executive-account]:has(.login-form) .login-field svg{color:#c9d6df}
/* Both striped and ordinary rows use explicit matched background/foreground.
   This prevents pale inherited executive text landing on legacy white rows. */
.table-wrap tbody td{background:#0a1e2c;color:#dee8ef}
.table-wrap tbody tr:nth-child(even) td{background:#102735;color:#dee8ef}
.table-wrap tbody tr:hover td{background:#1b3544;color:#fff}
body.executive-standalone main::before{content:"CONSTRUCTION COMMAND CENTER"}
