/* Shared operations navigation across planning and administration. */
header.enterprise-header{box-sizing:border-box;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:24px;width:100%;height:auto;min-height:84px;padding:16px 26px;background:#14332e;border:0;border-bottom:1px solid #305047;font-family:Inter,"Segoe UI",Arial,sans-serif;position:relative;z-index:41}
.enterprise-header .brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-size:24px;font-weight:800;letter-spacing:-.7px;white-space:nowrap}
.enterprise-header .brand>span{margin:0;color:inherit;font-size:inherit}
.enterprise-header .brand .mark,.enterprise-header .brand .brand-mark{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;margin:0;border-radius:13px;background:#ef7d50;color:#14332e;font-size:21px;box-shadow:none}
.enterprise-header .brand small{display:block;margin-top:5px;color:#a4c0b7;font-size:9px;font-weight:500;letter-spacing:2px}
header.enterprise-header nav{display:flex;align-items:center;justify-content:flex-start;gap:6px;flex-wrap:wrap;width:auto;min-width:0;height:auto;min-height:0;padding:0;order:initial;white-space:nowrap}
header.enterprise-header nav .enterprise-nav-item,header.enterprise-header nav #upload-branch-data{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;height:auto;padding:9px 10px;margin:0;background:transparent;border:1px solid transparent;border-radius:7px;color:#b9cec7;font:600 12px/18px Inter,"Segoe UI",Arial,sans-serif;letter-spacing:0;text-decoration:none;cursor:pointer}
header.enterprise-header nav .enterprise-nav-item:hover{background:#ffffff0d;color:#fff}
header.enterprise-header nav .enterprise-nav-item[aria-current="page"]{color:#fff;background:#ffffff0d;border-bottom-color:#ef7d50;border-radius:7px 7px 0 0}
.enterprise-header svg{flex:none;vertical-align:middle}
header.enterprise-header .header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin:0;position:relative}
header.enterprise-header .header-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 10px;background:#ffffff08;color:#e4efeb;border:1px solid #527568;border-radius:7px;font:600 12px/18px Inter,"Segoe UI",Arial,sans-serif;white-space:nowrap;cursor:pointer}
header.enterprise-header .header-actions button:hover{background:#ffffff17}
header.enterprise-header .header-actions button:disabled{opacity:.6;cursor:wait}
header.enterprise-header .store{display:block;flex:0 1 auto;width:auto;max-width:160px;margin:0;padding:8px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:6px;background:#254b42;color:#cce0d8;font:400 11px/18px Inter,"Segoe UI",Arial,sans-serif}
header.enterprise-header [hidden]{display:none!important}
header.enterprise-header a:focus-visible,header.enterprise-header button:focus-visible{outline:2px solid #ef9166;outline-offset:3px}
header.enterprise-header #logout-error{position:absolute;right:0;top:calc(100% + 8px);width:240px;padding:10px;background:#fff;color:#a02d2d;border:1px solid #e7b9b9;border-radius:6px;font-size:12px;z-index:50}
@media(max-width:1250px){header.enterprise-header{grid-template-columns:auto minmax(0,1fr);gap:12px 20px}header.enterprise-header nav{grid-row:2;grid-column:1 / -1;gap:6px}header.enterprise-header .header-actions{grid-row:1;grid-column:2}}
@media(max-width:600px){header.enterprise-header{padding:12px 16px;gap:10px}.enterprise-header .brand{font-size:20px;gap:8px}.enterprise-header .brand .mark,.enterprise-header .brand .brand-mark{width:36px;height:36px;font-size:18px}header.enterprise-header .store{display:none}header.enterprise-header nav{gap:4px}header.enterprise-header nav .enterprise-nav-item,header.enterprise-header nav #upload-branch-data{padding:7px 8px;font-size:11px;gap:6px}header.enterprise-header .header-actions{gap:5px}header.enterprise-header .header-actions button{padding:7px;font-size:11px}.enterprise-header .brand small{font-size:8px}}

/* Explicit shared logout styling prevents legacy page ID rules taking precedence. */
header.enterprise-header .header-actions :is(#logout,#pp-logout,#navigation-logout){margin:0;padding:8px 10px;color:#e4efeb;background:#ffffff08;border:1px solid #527568;border-radius:7px;font:600 12px/18px Inter,"Segoe UI",Arial,sans-serif;box-shadow:none}
header.enterprise-header .header-actions :is(#logout,#pp-logout,#navigation-logout):hover{color:#fff;background:#ffffff17}

/* Shared form dialogs. */
body dialog{box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:28px;border:1px solid #dce5df;border-radius:16px;background:#fff;color:#222c38;font-family:Inter,"Segoe UI",Arial,sans-serif;box-shadow:0 24px 80px #14332e30;overflow:auto}
body dialog::backdrop{background:rgb(14 32 28 / 48%);backdrop-filter:blur(3px)}
body dialog h2{margin:0;font-size:21px;line-height:1.3;font-weight:700;letter-spacing:-.4px;color:#14332e}
body dialog label{font-size:12px;line-height:1.5;font-weight:600;color:#344b42}
body dialog input:not([type="checkbox"]),body dialog select{box-sizing:border-box;width:100%;min-height:42px;margin-top:7px;padding:10px 12px;border:1px solid #dce5df;border-radius:8px;background:#fff;color:#263e34;font:400 13px/20px Inter,"Segoe UI",Arial,sans-serif}
body dialog input::placeholder{color:#89978f;font-weight:400}
body dialog input:focus-visible,body dialog select:focus-visible{outline:2px solid #78ad99;outline-offset:2px;border-color:#137963}
body dialog button{min-height:38px;padding:9px 15px;border:1px solid #dce5df;border-radius:8px;background:#fff;color:#344b42;font:600 12px/18px Inter,"Segoe UI",Arial,sans-serif;cursor:pointer}
body dialog button:hover{background:#f1f6f3}
body dialog button.primary{background:#137963;border-color:#137963;color:#fff}
body dialog button.primary:hover{background:#0d6653}
body dialog button:disabled{opacity:.5;cursor:not-allowed}
body dialog button.danger{background:#fff3f0;border-color:#e7b9b9;color:#a02d2d}
body dialog .dialog-actions{border-top:1px solid #e5ebe7;padding-top:18px;margin-top:22px;gap:10px}
body dialog .dialog-heading{padding-bottom:18px;border-bottom:1px solid #e5ebe7;margin-bottom:20px}
body dialog .dialog-heading button,body #branch-upload #upload-close{display:flex;align-items:center;justify-content:center;flex:none;width:32px;min-height:32px;height:32px;padding:0;border:0;background:#f1f5f2;color:#697d72;font-size:20px;border-radius:8px}
body #branch-upload{width:min(600px,calc(100vw - 32px));max-width:600px;max-height:calc(100dvh - 40px);padding:28px;border:1px solid #dce5df;border-radius:16px}
body #branch-upload .card-head{align-items:center;gap:16px}
body #branch-upload #upload-step{display:block;width:fit-content;margin:12px 0 24px;padding:6px 10px;border-radius:6px;background:#e6f1eb;color:#13735e;font-size:11px;font-weight:600}
body #branch-upload label{margin:16px 0}
body #branch-upload #new-cluster-controls{padding:4px 16px 16px;margin:16px 0 20px;border:1px solid #e0e8e2;border-radius:10px;background:#f7f9f7}
body #branch-upload #upload-create-cluster{background:#e6f1eb;border-color:#c8e1d7;color:#13735e}
body #branch-upload #upload-status{margin:18px 0;color:#697789;font-size:12px;line-height:1.6}
body #branch-upload .upload-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e5ebe7;padding-top:18px;margin-top:22px}
body #branch-upload .upload-actions button{width:auto;margin:0}
body #branch-upload #upload-cancel{margin-right:auto}
body #branch-upload input[type="file"]{font-size:12px;padding:8px}
body #branch-upload input::file-selector-button{padding:7px 9px;margin-right:10px;border:0;border-radius:5px;background:#e6f1eb;color:#13735e;font:inherit}
@media(max-width:600px){header.enterprise-header .header-actions :is(#logout,#pp-logout,#navigation-logout){padding:7px;font-size:11px}}
@media(max-width:480px){body dialog,body #branch-upload{padding:20px;max-height:calc(100dvh - 24px)}body #branch-upload .upload-actions{flex-wrap:wrap}body dialog h2{font-size:20px}}

/* Shared operations page links and administration canvas. */
body:has(.enterprise-header)>main{box-sizing:border-box}
body:has(.admin-header)>main{max-width:1600px;margin:40px auto;padding:0 3%}
body:has(.admin-header) main h1{font-size:42px;line-height:1.08;letter-spacing:-1.8px;margin:16px 0}
body:has(.admin-header) main .heading p:not(.eyebrow){font-size:15px;line-height:1.65}
body:has(.admin-header) main .eyebrow{font-size:11px;letter-spacing:2px}
.login-body{min-height:100dvh;margin:0;display:flex;align-items:center;justify-content:center;padding:24px;background:#f8f6f1;color:#222c38;font-family:Inter,"Segoe UI",Arial,sans-serif}
.login-body .login-card{box-sizing:border-box;width:100%;max-width:440px;padding:32px;background:#fff;border:1px solid #dce5df;border-radius:16px;box-shadow:0 16px 48px #14332e0d}
.login-body .login-brand{display:flex;align-items:center;gap:14px;margin-bottom:28px}
.login-body .login-logo{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:14px;background:#ef7d50;color:#14332e;font-weight:800;font-size:21px}
.login-body h1{color:#14332e;font-size:26px;margin:0 0 5px}
.login-body .login-sub{color:#697789;font-size:12px;margin:0}
.login-body .field{display:block;margin:18px 0;color:#344b42;font-size:12px;font-weight:600}
.login-body .field input{box-sizing:border-box;display:block;width:100%;height:44px;margin-top:8px;padding:10px 12px;border:1px solid #dce5df;border-radius:8px;background:#fff;color:#222c38;font-size:14px}
.login-body #loginBtn{width:100%;min-height:44px;margin-top:8px;border:1px solid #137963;border-radius:8px;background:#137963;color:#fff;font-size:13px;font-weight:600;cursor:pointer}
.login-body #loginBtn:hover{background:#0d6653}
.login-body #loginBtn:disabled{opacity:.6;cursor:wait}
.login-body .login-foot{margin:24px 0 0;color:#697789;font-size:12px;line-height:1.7;text-align:center}
.login-body input:focus-visible,.login-body button:focus-visible{outline:2px solid #78ad99;outline-offset:2px}
.login-body .login-error{padding:12px;border-radius:8px;background:#fff3f0;color:#a02d2d;font-size:12px}
@media(max-width:650px){body:has(.admin-header)>main{padding:0 16px;margin:26px auto}body:has(.admin-header) main h1{font-size:34px}.login-body .login-card{padding:24px}}
