/* 0.30 visual layer. Existing forms, routes, permissions and module layouts remain authoritative. */
:root{--bg:#f3f7f4;--bg-soft:#edf5ef;--work-bg:#f3f7f4;--surface:#fff;--surface-2:#f7fbf8;--panel:#fff;--panel-soft:#f7fbf8;--text:#173042;--muted:#637687;--line:#d8e3dc;--accent:#4f972b;--accent-dark:#376c21;--accent-soft:#edf7e7;--primary:#4f972b;--primary-strong:#376c21;--blue:#0066b0;--blue-dark:#12314a;--blue-soft:#eaf3fb;--neutral:#0066b0;--nav:#0a2c4b;--ok:#376c21;--danger:#b83743;--shadow:0 8px 28px #154a7d0a;--shadow-soft:0 4px 16px #154a7d09;--radius-lg:14px}
html,body{background:#f3f7f4;color:var(--text)}body{font-family:Segoe UI,Arial,sans-serif;font-size:14px;line-height:1.5}h1,h2,h3{color:#173042;letter-spacing:-.025em}h1{font-size:clamp(25px,2.2vw,34px)}h2{font-size:20px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #0066b0;outline-offset:3px}
.topbar{background:linear-gradient(110deg,#fff,#f7fbf8);border-bottom:1px solid var(--line);box-shadow:0 2px 12px #174d7b08;color:var(--text)}.topbar-inner{max-width:none;min-height:68px;gap:12px}.brand-wordmark{height:36px;max-width:180px;object-fit:contain}.topbar :is(.user-chip,.user-profile-chip,.ghost-button,.app-version-mini,.support-mini-link,.global-back-button,.notification-bell,.chat-drawer-launch){color:#184574;background:#f4f9ff;border-color:var(--line)}.topbar .top-global-search{background:#eaf3fd;border:1px solid var(--line);color:#3c608b}.topbar input{color:#183d6a}.topbar input::placeholder{color:#5b7697}.erp-daymeter{background:#f7fbff;border-color:var(--line);color:#244b78}.erp-daymeter-time{color:#173042}
.nav-sidebar{background:linear-gradient(165deg,#092843,#103e60);border-right:1px solid #174866}.nav-section{min-height:43px;font-weight:500}.nav-section:hover,.nav-section.active,.nav-toggle:hover{background:#24516f}.nav-section.active{box-shadow:inset 3px 0 #00cf79}.nav-section.is-dragging{outline-color:#39cfa2}.nav-context{background:#f8fbff;border-color:var(--line)}.nav-context a{color:#315e8e;border:1px solid transparent}.nav-context a:hover{background:#e8f2ff}.nav-context a.active{background:#edf7e7;border-color:#b8d2bf;color:#264e35}.nav-context strong{font-size:12px;color:#5f7796;font-weight:600}
.page{padding-top:20px}.card,.module-card,.hero-panel,.p-card,.kpi-card,.metric-card{border-color:var(--line);border-radius:14px;box-shadow:var(--shadow-soft);background:#fff}.hero,.compact-hero{background:linear-gradient(115deg,#fff,#f7fbf8);border-color:var(--line);box-shadow:var(--shadow-soft)}.eyebrow,.p-eyebrow{color:#416e9c;letter-spacing:.065em}.primary-button,.primary-btn,.p-btn:not(.secondary):not(.danger),.btn-primary{background:#376c21;border-color:#376c21;color:#fff;box-shadow:0 2px 5px #008a3b12}.primary-button:hover,.primary-btn:hover,.btn-primary:hover{background:#2f5d1d}.ghost-button,.secondary-btn,.p-btn.secondary{background:#f7fbff;border-color:#cbdff5;color:#145fc0}.tab,.tabs a,.p-tabs a{border-color:var(--line)}.p-tabs a.active,.tabs a.active{background:#edf5ef;color:#085ebc;border-color:#bad8f9}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea{border-color:#ccdef0;border-radius:8px;color:#183a60;background:#fff}input::placeholder,textarea::placeholder{color:#697f99}table th{background:#edf5ef;color:#385f88}table td,table th{border-color:#d8e3dc}table tbody tr:hover{background:#f7fbf8}.erp-grid-wrap,.table-wrap,.table-scroll{border-color:var(--line);border-radius:10px}.empty-state,.p-empty{background:#f5faff;border:1px dashed #c7dcf2;border-radius:12px;color:#546f8f}.footer{color:#587695}.integration-offline-banner{margin-bottom:12px;font-size:13px}
@media(max-width:1000px){.topbar-inner{gap:8px;padding:10px 12px}.brand-wordmark{max-width:145px;height:30px}.top-actions{gap:6px}.top-global-search-wrap{min-width:140px}}
@media(max-width:760px){body{font-size:14px}.topbar-inner{flex-wrap:wrap}.top-actions{flex-wrap:wrap;max-width:100%;margin-left:auto}.top-global-search-wrap{order:3;flex-basis:100%}.card,.p-card{border-radius:12px}.nav-context{gap:5px}.page{padding-top:14px}.topbar .user-profile-chip{max-width:130px}.user-profile-chip>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .app-version-mini{font-size:10px}.brand-wordmark{max-width:122px}.topbar .erp-daymeter{max-width:130px}.nav-order-tools button{min-height:40px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.nav-context:not(:has(a)){display:none}.integration-offline-banner{padding:10px 14px;background:#f8fbff;border:1px solid #d8e3dc;border-radius:10px;color:#42638a}.integration-offline-banner summary{cursor:pointer;font-size:12px}.integration-offline-banner p{margin:8px 0 0;font-size:13px}
@media(max-width:760px){.topbar-inner{display:grid;grid-template-columns:1fr auto;padding:10px 12px;gap:8px}.topbar .brand{grid-column:1}.topbar .global-back-button{grid-column:2;grid-row:1}.topbar .top-actions{grid-column:1/-1;grid-row:2;width:100%;margin:0;flex-wrap:nowrap;gap:6px;justify-content:space-between}.topbar .top-global-search-wrap{grid-column:1/-1;grid-row:3;min-width:0;width:100%}.topbar .top-global-search{min-height:34px}.topbar .top-global-search input{min-height:30px;padding:6px 8px}.topbar .top-actions>.ghost-button{font-size:11px;min-height:32px;padding:7px}body:not([data-design="graphite-1"]) .topbar .erp-daymeter{max-width:118px!important}.topbar .app-version-mini{display:none}.topbar .top-avatar{height:28px;width:28px}.topbar .user-profile-chip{padding:3px}.topbar .notification-bell,.topbar .chat-drawer-launch,.topbar .support-mini-link{width:30px;min-width:30px;height:32px;min-height:32px;padding:5px}.integration-offline-banner{padding:9px 10px}.nav-context strong{display:none}}


/* 07 Nov owner addendum: persistent contextual navigation, no right-hand grips. */
.navigation-v2{position:sticky;top:var(--nav-top,0px);z-index:45}
.nav-context{max-height:30vh;overflow:auto;overscroll-behavior:contain}
.nav-context:not(:has(a)){display:none}
.nav-move-handle{cursor:grab;border-radius:4px}.nav-move-handle:hover{background:#3b6681;outline:2px dotted #91c8ef}
.nav-move-handle:active{cursor:grabbing}.nav-order-status[hidden]{display:none!important}
.cabinet-tabs030{display:flex;gap:6px;flex-wrap:wrap;padding:10px 0;margin-bottom:16px;position:sticky;top:var(--nav-top,0px);z-index:40;background:#f3f7f4}
.module-tabs{position:sticky;top:calc(var(--nav-top,0px) + var(--context-height,0px));z-index:39;background:#fff;max-height:25vh;overflow:auto}
.cabinet-tabs030 a{padding:10px 14px;border-radius:10px;color:#174b7c;background:#edf5ef;text-decoration:none}
.cabinet-tabs030 a.active{color:#fff;background:#376c21;font-weight:700}
[data-cabinet-pane][hidden]{display:none!important}
.cabinet-primary-day{order:-1}.cabinet-action-grid{align-items:stretch}
.academy-pagination{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-height:44px;padding:12px 0;clear:both}
.academy-team-entry{display:flex;clear:both;margin:16px 0 24px;min-height:44px;align-items:center}
.academy-team-entry .secondary-btn{display:inline-flex;align-items:center;position:static;min-height:44px}
.calendar-source-filters label{display:inline-flex;align-items:center;gap:8px;font-size:15px}
.calendar-source-filters input[type=checkbox]{width:18px;height:18px;margin:0;flex-shrink:0}
html{scroll-padding-top:calc(var(--context-height,60px) + var(--nav-top,0px) + 12px)}
