/* Shared company header: used by management and station detail pages. */
header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.header-actions{position:relative}
.company-brand{display:flex;align-items:center;gap:16px;min-width:0}
.company-logo{width:96px;height:76px;object-fit:contain;background:transparent;border-radius:0;flex-shrink:0}
.company-name{font-size:21px;font-weight:650;color:#183047;letter-spacing:1px}
.company-brand h1{font-size:17px;font-weight:500;color:#526779;margin:8px 0 0}
@media(max-width:600px){.company-brand{gap:10px}
.company-logo{width:76px;height:60px}
.company-name{font-size:16px;letter-spacing:0}
.company-brand h1{font-size:14px}}
.company-logo{background:transparent;border-radius:0;filter:none;width:116px;height:88px}
@media(max-width:600px){.company-logo{width:90px;height:68px}}
header{padding:0 0 18px;border-bottom:1px solid #dce5ec;margin-bottom:18px}
.sidebar-account .header-actions{display:flex;flex-direction:column;gap:4px}
.sidebar-account .header-actions>button{width:100%;text-align:left;border:0;background:transparent;color:#526779;padding:9px 12px;margin:0;font-size:13px}
.sidebar-account .header-actions>button:hover{background:#edf4f8}
@media(max-width:600px){.sidebar-account .header-actions>button{padding:9px 7px}
.company-logo{width:76px;height:58px}}
header{gap:14px;padding:0 0 10px;margin-bottom:12px;min-height:66px}
.company-brand{gap:12px}
.company-logo{width:84px;height:64px}
.company-name{font-size:19px;letter-spacing:.5px}
.company-brand h1{font-size:13px;margin:5px 0 0}
#header-session{display:flex;align-items:center;justify-content:flex-end;gap:20px;flex-wrap:wrap;margin-left:auto}
#header-session[hidden]{display:none!important}
.header-live-stats{display:flex;gap:8px;align-items:center}
.header-stat{display:inline-flex;align-items:center;gap:7px;background:#e5eff5;border:1px solid #d3e2ec;border-radius:8px;padding:8px 12px;font-size:12px;color:#526b7d;white-space:nowrap}
.header-stat strong{color:#126c82;font-size:15px;font-variant-numeric:tabular-nums}
.header-status-dot{width:7px;height:7px;border-radius:50%;background:#126c82}
.header-account{display:flex;align-items:center;gap:7px;padding-left:18px;border-left:1px solid #d3e2ec}
#header-username{font-size:12px;color:#35546b;margin-right:5px;white-space:nowrap}
.header-account button{padding:6px 9px;margin:0;font-size:12px;background:#e5eff5;color:#35546b;border-color:#d3e2ec}
.header-account button:hover{background:#d4e7ef;color:#075b73}
#header-client-stat[hidden]{display:none!important}
@media(max-width:1050px){#header-session{gap:10px}
.header-account{padding-left:10px}
.company-name{font-size:16px}
.company-logo{width:72px;height:56px}}
@media(max-width:760px){header{align-items:flex-start}
#header-session{width:100%;justify-content:space-between;margin-left:0}
.header-account{border-left:0;padding-left:0;flex-wrap:wrap}
.header-stat{padding:6px 9px}
.company-brand h1{font-size:12px}}
.header-account{display:grid;grid-template-columns:auto auto;justify-content:end;gap:6px 7px}
#header-username{grid-column:1 / -1;text-align:right;margin-right:0}
.header-account button{white-space:nowrap}
@media(max-width:760px){.header-account{display:grid;grid-template-columns:auto auto;justify-content:end}}
.header-account{position:relative;display:block;padding-left:18px}
#header-account-toggle{display:flex;align-items:center;gap:9px;padding:8px 10px;background:transparent;border:1px solid transparent;border-radius:8px}
#header-account-toggle:hover,#header-account-toggle[aria-expanded="true"]{background:#e0edf4;border-color:#cbdfe9}
#header-username{margin:0;text-align:left;font-size:13px}
.account-chevron{color:#6b8395;font-size:12px;transition:transform .15s}
#header-account-toggle[aria-expanded="true"] .account-chevron{transform:rotate(180deg)}
#header-account-dropdown{position:absolute;top:calc(100% + 6px);right:0;z-index:6000;min-width:140px;display:flex;flex-direction:column;gap:4px;padding:6px;background:#fff;border:1px solid #d5e2eb;border-radius:9px;box-shadow:0 8px 24px #18304726}
#header-account-dropdown[hidden]{display:none!important}
#header-account-dropdown button{display:block;text-align:left;width:100%;box-sizing:border-box;margin:0;padding:9px 12px;background:transparent;border:0;color:#35546b;border-radius:5px}
#header-account-dropdown button:hover{background:#e5eff5;color:#075b73}
#header-account-dropdown button:last-child{color:#b54040}
@media(max-width:760px){.header-account{display:block;padding-left:0}}
.header-account{padding-left:0;border-left:0}
#header-account-toggle{background:#e5eff5;border:1px solid #d3e2ec;border-radius:8px;padding:8px 12px;min-height:39px;box-sizing:border-box;gap:9px}
#header-account-toggle #header-username{font-size:12px;line-height:21px;color:#35546b}
#header-account-toggle:hover,#header-account-toggle[aria-expanded="true"]{background:#d4e7ef;border-color:#b9d5e2}
@media(max-width:760px){#header-account-toggle{padding:6px 9px;min-height:35px}}
.company-name{font-size:23px;font-weight:700;line-height:1.35}
.company-brand h1{color:#e77908;font-size:20px;font-weight:700;line-height:1.35;letter-spacing:.4px}
@media(max-width:1050px){.company-name{font-size:20px}
.company-brand h1{font-size:18px}}
@media(max-width:760px){.company-name{font-size:18px}
.company-brand h1{font-size:16px}}
body>header{position:sticky;top:0;z-index:5500;background:#eef3f8;box-shadow:0 -12px 0 12px #eef3f8}
body>header::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:#dce5ec;pointer-events:none}
.header-contact{display:flex;flex-wrap:wrap;align-items:center;gap:5px 14px;margin-left:auto;padding:7px 12px;border:1px solid #d3e2ec;border-radius:8px;background:#e5eff5;color:#526b7d;font-size:15px;font-weight:700;line-height:1.6}
.header-contact-name{font-weight:700;color:#35546b}
.header-contact a{color:#126c82;text-decoration:none;white-space:nowrap}
.header-contact a:hover{text-decoration:underline}
.header-contact>span{white-space:nowrap}
#header-session{margin-left:0}
@media(max-width:1300px){.header-contact{flex-direction:column;align-items:flex-start;gap:1px;padding:5px 10px}}
@media(max-width:760px){.header-contact{flex-direction:row;width:100%;box-sizing:border-box;margin-left:0;gap:4px 12px}}

/* Keep the page inset identical across management and detail windows. */
body{margin:0;padding:20px 24px;background:#eef3f8}
@media(max-width:900px){body{padding:14px}}
@media(max-width:600px){body{padding:10px}}
body{padding-top:12px}
body>header{flex-direction:row}

/* Contact details follow the company brand and share the logo height. */
body>header{--company-logo-height:64px;justify-content:flex-start;column-gap:20px}
body>header .company-logo{height:var(--company-logo-height)}
body>header .header-contact{box-sizing:border-box;height:var(--company-logo-height);margin-left:0;flex-direction:column;flex-wrap:nowrap;align-items:flex-start;justify-content:center;gap:0;padding:4px 14px;font-size:15px;line-height:18px;flex-shrink:0}
body>header #header-session{margin-left:auto}
@media(max-width:1050px){body>header{--company-logo-height:56px;column-gap:14px}body>header .header-contact{padding:3px 10px;font-size:14px;line-height:16px}}
@media(max-width:760px){body>header .header-contact{width:auto;max-width:100%}body>header #header-session{margin-left:0}}
