/* Отдельный файл подключается после Vite: для установки патча npm-сборка не нужна. */
:root { --header-height:72px; }
.page-header.nf-app-header { height:var(--header-height); padding:10px 20px; display:grid; grid-template-columns:40px minmax(100px,1fr) auto auto auto; gap:12px; align-items:center; isolation:isolate; }
.nf-app-header .header-left { display:contents; }
.nf-app-header .header-right { display:flex; gap:10px; align-items:center; min-width:0; flex-shrink:0; }
.nf-app-header .burger-btn, .nf-header-icon { width:40px; height:40px; padding:0; border:0; border-radius:12px; background:#f5f7fb; color:#475569; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.nf-app-header #globalClientSearch { min-width:0; width:100%; max-width:440px; }
.nf-app-header #globalClientSearch .search-input { width:100%; min-width:0; height:40px; border-radius:12px; font-size:14px; }
.nf-app-header #globalClientSearch .client-search-results { width:min(440px,calc(100vw - 24px)); max-height:min(420px,60dvh); }
.nf-header-action { height:40px; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:0 12px; border:1px solid #e2e8f0; background:#fff; border-radius:12px; color:#334155; font-size:13px; font-weight:600; white-space:nowrap; }
.nf-header-sale { background:#435fe5; border-color:#435fe5; color:#fff; }
.nf-header-action:hover { filter:brightness(.96); }
.nf-profile-toggle { display:flex; align-items:center; gap:8px; max-width:180px; height:44px; border:1px solid #e2e8f0; border-radius:14px; background:#fff; padding:5px 9px 5px 5px; color:#334155; }
.nf-profile-toggle[aria-expanded="true"] { border-color:#a5b4fc; background:#f5f7ff; }
.nf-profile-name { max-width:90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; font-weight:600; }
.nf-profile-chevron { font-size:11px; }
.nf-app-header .user-avatar { width:32px; height:32px; flex-shrink:0; }
.nf-app-header button:focus-visible, .nf-header-menu-link:focus-visible { outline:3px solid #a5b4fc; outline-offset:3px; }
.nf-header-panel[hidden] { display:none!important; }
.nf-app-header .nf-header-panel { position:fixed; box-sizing:border-box; margin:0; padding:8px; list-style:none; background:#fff; color:#1e293b; border:1px solid #e2e8f0; border-radius:18px; box-shadow:0 16px 48px rgba(15,23,42,.18); overflow:auto; overscroll-behavior:contain; z-index:2000; right:auto; bottom:auto; overflow-wrap:anywhere; }
.nf-profile-info { display:flex; gap:12px; align-items:center; padding:14px 10px; }
.nf-profile-info > div { min-width:0; }
.nf-profile-info small { display:block; color:#64748b; margin-top:3px; }
.nf-profile-info .user-avatar { width:44px; height:44px; }
.nf-header-menu-link { display:flex; align-items:center; padding:11px 12px; border-radius:10px; text-decoration:none; color:#334155; font-size:14px; }
.nf-header-menu-link:hover { background:#f1f5f9; }
.nf-header-divider { border:0; border-top:1px solid #e2e8f0; margin:5px 0; opacity:1; }
@media(max-width:1100px) { .nf-profile-name { display:none; } .nf-app-header { gap:8px; padding-inline:12px; } }
@media(max-width:980px) { .nf-header-action { width:40px; padding:0; } .nf-header-action > span { display:none; } }
@media(max-width:768px) {
 :root { --header-height:112px; }
 .page-header.nf-app-header { grid-template-columns:40px minmax(0,1fr) 40px 40px auto; grid-template-rows:44px 40px; gap:8px; padding:10px 12px; }
 .nf-app-header .burger-btn { grid-area:1/1; }
 .nf-app-header #globalClientSearch { grid-area:2/1/3/6; max-width:none; }
 .nf-header-sale { grid-area:1/3; }
 .nf-header-operations { grid-area:1/4; }
 .nf-app-header .header-right { grid-area:1/5; gap:8px; }
 .nf-profile-toggle { width:40px; padding:3px; height:40px; border-radius:12px; }
 .nf-profile-chevron { display:none; }
 .nf-app-header #globalClientSearch .client-search-results { width:100%; }
}
