/* NİLVEST 19.3 — Responsive primary navigation & grouped CRM sidebar.
 * Presentation only: no changes to roles, data permissions or CRM business rules.
 */
@media (min-width:1260px) {
  .header-inner{gap:16px}
  .brand{width:157px}
  .brand img{width:154px}
  .desktop-nav{display:flex;gap:clamp(9px,1.1vw,16px);margin-left:auto}
  .desktop-nav a{font-size:12.5px;letter-spacing:-.01em}
  .header-actions{gap:11px;flex-shrink:0}
  .mobile-toggle{display:none}
}
@media (max-width:1259px) {
  .desktop-nav{display:none!important}
  .mobile-toggle{display:inline-flex!important;align-items:center;justify-content:center;min-width:42px;min-height:42px;border:1px solid rgba(255,255,255,.24);border-radius:10px}
  .header-actions{margin-left:auto}
  .mobile-nav{top:94px;max-height:calc(100dvh - 94px);overflow-y:auto;z-index:90}
  .mobile-nav.open{display:flex}
  .header-cta{display:none!important}
}
@media (max-width:830px) {
  .mobile-nav{top:76px;max-height:calc(100dvh - 76px)}
}
.mobile-nav a[aria-current="page"]{color:#8fe9ae;font-weight:800}
.mobile-nav a:focus-visible,.mobile-toggle:focus-visible{outline:3px solid #72d896;outline-offset:3px}

/* Isolated Mülkünü Gönder / Bayilik / İletişim / Talep form pages. */
@media (min-width:1280px) {
  .nf-top{gap:12px}
  .nf-brand img{width:163px}
  .nf-nav{display:flex;gap:clamp(9px,1.1vw,16px)}
  .nf-nav a{font-size:12.5px;white-space:nowrap}
  .nf-header-actions{gap:10px}
  .nf-account{font-size:13px}
  .nf-menu{display:none}
}
@media (max-width:1279px) {
  .nf-nav{display:none!important}
  .nf-menu{display:block!important}
  .nf-header-actions{margin-left:auto}
  .nf-menu nav{max-height:min(72dvh,500px);overflow-y:auto;z-index:90}
}
@media (max-width:760px) {
  .nf-account{display:inline-flex}
  .nf-menu summary{min-height:40px;display:flex;align-items:center}
}

/* Sidebar groups — native <details> work even without JavaScript. */
.panel-sidebar{min-width:0;max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9ddd1 transparent}
.panel-sidebar .sidebar-heading{padding-bottom:11px}
.panel-sidebar .nv-crm-group{display:block;margin:2px 0 4px;border:1px solid transparent;border-radius:11px;min-width:0}
.panel-sidebar .nv-crm-group[open]{border-color:#dbe8df;background:#fff;box-shadow:0 2px 9px rgba(18,50,29,.025)}
.panel-sidebar .nv-crm-group summary{list-style:none;display:flex;align-items:center;gap:9px;padding:11px 10px;min-height:45px;cursor:pointer;border-radius:10px;color:#324b3c;font-size:12px;font-weight:800;line-height:1.3;user-select:none}
.panel-sidebar .nv-crm-group summary::-webkit-details-marker{display:none}
.panel-sidebar .nv-crm-group summary::marker{content:''}
.panel-sidebar .nv-crm-group summary>svg{color:#32875b;flex-shrink:0}
.panel-sidebar .nv-crm-group summary>span:nth-child(2){flex:1;min-width:0}
.panel-sidebar .nv-crm-group summary:hover{background:#eaf5ee}
.panel-sidebar .nv-crm-group[open] summary{background:#edf7f1;color:#195d39;border-radius:10px 10px 0 0}
.panel-sidebar .nv-nav-count{font-size:10px;font-weight:800;color:#708d7b;background:#e3ede6;border-radius:20px;padding:1px 6px;line-height:1.7}
.panel-sidebar .nv-nav-chevron{font-size:18px;line-height:1;transition:transform .18s ease;color:#587364}
.panel-sidebar .nv-crm-group[open] .nv-nav-chevron{transform:rotate(180deg)}
.panel-sidebar .nv-crm-group-links{display:flex;flex-direction:column;gap:2px;padding:5px 6px 8px}
.panel-sidebar .nv-crm-group-links>a{display:flex;align-items:center;gap:9px;min-width:0;min-height:38px;margin:0;padding:8px 9px 8px 13px;border-radius:8px;font-size:11.8px;font-weight:650;color:#54695b;text-decoration:none;line-height:1.3}
.panel-sidebar .nv-crm-group-links>a>svg{flex-shrink:0;color:#699c7b}
.panel-sidebar .nv-crm-group-links>a span{overflow-wrap:anywhere}
.panel-sidebar .nv-crm-group-links>a:hover{background:#eef8f1;color:#1d7042}
.panel-sidebar .nv-crm-group-links>a.selected{background:#dbf4e3;color:#187440;font-weight:850;box-shadow:inset 3px 0 #36b66b}
.panel-sidebar .nv-crm-group-links>a.selected svg{color:#197643}
.panel-sidebar .nv-crm-group summary:focus-visible,.panel-sidebar .nv-crm-group-links>a:focus-visible{outline:3px solid #37b970;outline-offset:2px}
.panel-sidebar .sidebar-end{margin-top:14px}
@media (min-width:951px) {
  .panel-layout{grid-template-columns:254px minmax(0,1fr);gap:25px}
}
@media (max-width:950px) {
  .panel-sidebar{max-height:100dvh}
  body.crm-drawer-ready .panel-sidebar>.nv-crm-group{flex:0 0 auto;width:100%;margin:2px 0}
  body.crm-drawer-ready .panel-sidebar .nv-crm-group summary{min-height:48px}
  body.crm-drawer-ready .panel-sidebar .nv-crm-group-links>a{min-height:44px;font-size:12.5px}
}
@media (prefers-reduced-motion:reduce) {
  .panel-sidebar .nv-nav-chevron{transition:none}
}
