/* One focused workspace per route; the overview never renders the full management page. */
#overview .view-hidden,#overview .main-grid.view-hidden,#overview .right-rail.view-hidden,#overview .primary-column.view-hidden{display:none!important}
#overview .main-grid.view-focus:not(.view-hidden){display:block!important}
.dashboard-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}
.dashboard-shortcuts>a{min-width:0;display:flex;align-items:center;gap:10px;padding:15px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);text-decoration:none;transition:border-color .15s,transform .15s}
.dashboard-shortcuts>a:hover{border-color:var(--accent);transform:translateY(-1px)}
.shortcut-symbol{width:34px;height:38px;flex:none;display:grid;place-items:center;border-radius:9px;background:var(--accent-soft);color:var(--accent)}
.shortcut-symbol .icon{width:18px;height:18px}.dashboard-shortcuts>a>span:nth-child(2){flex:1;min-width:0}
.dashboard-shortcuts strong{display:block;font:650 13px/1.5 system-ui}.dashboard-shortcuts small{display:block;font:400 11px/1.5 system-ui;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.shortcut-arrow{width:14px;height:14px;flex:none;color:var(--muted)}
body[data-view="overview"] #overview .right-rail,body[data-view="categories-section"] #overview .right-rail{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:start}
body[data-view="data-section"] #overview .right-rail{max-width:1100px;margin:0 auto}
body[data-view="data-section"] #overview .tool-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body[data-view="categories-section"] #overview .right-rail>.panel{width:100%}
body[data-view="meb-director-paste"] #meb-director-paste{margin-top:0!important}
body[data-view="meb-reports"] .director-command{margin-top:0!important}
body[data-view="vekalet-section"] #vekalet-section,body[data-view="missing-mobile-section"] #missing-mobile-section{margin-bottom:0!important}
#overview .pwa-toolbar{margin-top:18px}
#overview [tabindex="-1"]:focus{outline:none}
@media(max-width:1100px){.dashboard-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:790px){
 .dashboard-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:15px}
 .dashboard-shortcuts>a{padding:12px;gap:8px;align-items:flex-start;min-height:88px}
 .shortcut-symbol{width:28px;height:32px}.shortcut-symbol .icon{width:16px;height:16px}.shortcut-arrow{display:none}
 .dashboard-shortcuts strong{font-size:12px}.dashboard-shortcuts small{font-size:10px}
 body[data-view="overview"] #overview .right-rail,body[data-view="categories-section"] #overview .right-rail{grid-template-columns:minmax(0,1fr)!important;margin-top:0}
 body[data-view="overview"] #overview .premium-distribution{display:none!important}
 body[data-view="overview"] #overview .premium-activity-rows>:nth-child(n+4){display:none}
 body[data-view="contacts-section"] #overview .right-rail{display:none!important}
 body[data-view="contacts-section"] #overview .main-grid{display:block!important}
 body[data-view="data-section"] #overview .tool-list{grid-template-columns:minmax(0,1fr)}
 #contacts-section .table-footer{gap:10px!important}
 #contacts-section .page-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:0!important;width:100%;justify-content:space-between}
 #overview #contacts-section .page-size{display:inline-flex!important;align-items:center;gap:7px;font:400 11px/1.5 system-ui;color:var(--muted);margin-right:auto}
 #overview #contacts-section #pageSize{width:64px;min-width:64px;height:44px!important;min-height:44px;border:1px solid var(--border);border-radius:8px;padding:0 8px;font:500 14px system-ui!important;background:var(--surface);color:var(--text)}
}

.public-missing-panel{padding:20px;max-width:1200px;margin:0 auto}
.public-missing-panel>.panel-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;padding:0 0 16px!important;gap:12px}
.public-missing-panel h2{font:700 21px/1.5 system-ui!important;letter-spacing:-.3px;color:var(--text)}
.public-missing-panel .panel-heading p{font:400 12px/1.7 system-ui;color:var(--muted);max-width:620px;margin-top:6px}
.public-missing-panel .button{min-height:44px;font:550 12px/1.5 system-ui;border-radius:9px}
.public-missing-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.6fr);gap:12px;align-items:center}
.public-missing-tools .search-field{width:100%;min-width:0;min-height:44px!important;margin:0}
.public-missing-tools input{min-width:0;width:100%;font:400 14px/1.5 system-ui}
.public-missing-tools select{width:100%;min-width:0;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font:400 13px/1.5 system-ui}
#publicMissingStatus{font:400 12px/1.7 system-ui;color:var(--muted);margin:12px 0}
.public-missing-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:14px}
.public-missing-card{min-width:0;border:1px solid var(--border);border-top:3px solid #d49429;border-radius:12px;padding:16px;background:var(--surface);display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.public-missing-icon{display:grid;place-items:center;width:32px;height:34px;border-radius:8px;background:#fff5e2;color:#a36a11}.public-missing-icon .icon{width:17px;height:17px}
.public-missing-card h3{font:650 14px/1.6 system-ui;color:var(--text);margin:0;overflow-wrap:anywhere}
.public-missing-card p,.public-missing-card small{font:400 12px/1.6 system-ui;color:var(--muted);margin:0;overflow-wrap:anywhere}
.public-status{font:550 11px/1.6 system-ui;padding:5px 8px;border-radius:7px;margin-top:auto;background:var(--surface-2);color:var(--text)}
.public-status.status-bilgi_eksik{background:#fff4db;color:#895600}.public-status.status-vekalet{background:#eaf1ff;color:#3158a3}.public-status.status-mudur_yok{background:#ffeded;color:#a92d3d}
.public-missing-pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:16px;font:400 12px system-ui}
.public-missing-empty{padding:20px;font:400 13px/1.7 system-ui;color:var(--muted)}
body.rehber-guest #overview #directorStatJump.public-warning-stat{border-left-color:#d49429!important;cursor:pointer!important}
body.rehber-guest #overview #directorStatJump.public-warning-stat .stat-symbol{background:#fff4df!important;color:#a36a11!important}
body.theme-dark .public-status.status-bilgi_eksik{background:#44361c;color:#f6d793}body.theme-dark .public-status.status-vekalet{background:#233550;color:#b9d0ff}body.theme-dark .public-status.status-mudur_yok{background:#472936;color:#ffc2cc}
@media(max-width:790px){.public-missing-panel{padding:16px 12px}.public-missing-panel h2{font-size:19px!important}.public-missing-tools{grid-template-columns:minmax(0,1fr)}.public-missing-tools input,.public-missing-tools select{font-size:16px!important}.public-missing-list{grid-template-columns:minmax(0,1fr)}}

body[data-view="overview"] #overview .premium-activity-rows>:nth-child(n+4){display:none}
body[data-view="overview"] #overview .stat-card{min-height:132px!important;padding:14px 16px!important}
body[data-view="overview"] #overview .stat-top{height:32px}
body[data-view="overview"] #overview .stat-symbol{width:32px;height:32px}
body[data-view="overview"] #overview .stat-value{font-size:30px!important;line-height:1.15!important;margin:5px 0 0!important}
body[data-view="overview"] #overview .stat-foot{margin-top:4px;font-size:10px!important;line-height:1.5}

body.rehber-guest #vekaletNew,body.rehber-guest #vekalet-section .directory-table td:last-child:not([colspan]){display:none!important}
body.rehber-guest #vekalet-section .rehber-sync-actions{width:auto!important}
body.rehber-guest #vekalet-section #vekaletRefresh{min-width:80px!important}

#overview .premium-distribution .premium-donut-wrap{display:grid!important;grid-template-columns:130px minmax(0,1fr)!important;align-items:center;gap:18px!important}
#overview #premiumLegend{display:flex;flex-direction:column;gap:0!important;max-height:260px!important;min-width:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-width:thin;padding:0 7px 0 0}
#overview #premiumLegend .premium-legend-row{display:grid;grid-template-columns:8px minmax(0,1fr) 30px;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--border);min-width:0;font:400 11px/1.6 system-ui;color:var(--muted)}
#overview #premiumLegend .premium-legend-row>span:nth-child(2){white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere}
#overview #premiumLegend b{font:650 12px/1.5 system-ui;text-align:right;color:var(--text)}
#overview #premiumLegend .premium-legend-dot{width:8px;height:8px}
#overview #premiumLegend .premium-legend-row:last-child{border-bottom:0}
body[data-view="categories-section"] #overview #premiumLegend{max-height:400px!important}
body.rehber-guest #overview #vekalet-section #vekaletRows td:last-child:not([colspan]){display:none!important}
@media(max-width:790px){#overview .premium-distribution .premium-donut-wrap{grid-template-columns:100px minmax(0,1fr)!important;gap:12px!important}#overview #premiumLegend{max-height:300px!important}#overview .premium-distribution .premium-donut{width:100px;height:100px;min-width:100px}}

/* Session controls participate in the header layout. */
.topbar .access-bar{position:static!important;inset:auto!important;z-index:auto;border:0;box-shadow:none!important;background:transparent;color:var(--text);padding:0!important;gap:10px;flex-shrink:0;font:500 11px/1.5 system-ui}
.topbar .access-bar button{min-height:38px;border-radius:9px;padding:8px 13px;font:600 11px system-ui}
.topbar .topbar-right{flex-wrap:wrap;justify-content:flex-end;min-width:0}
.topbar .profile-avatar,.topbar .reference-profile{display:none!important}
@media(min-width:791px){.topbar .access-bar{order:5;border-left:1px solid var(--border);padding-left:14px!important}.topbar .topbar-date{white-space:nowrap}}
@media(max-width:790px){.topbar .access-bar{width:100%;justify-content:flex-end;order:5}.topbar .topbar-right{gap:5px!important}.topbar .access-bar button{min-height:36px}.topbar .access-bar #accessRole{font-size:10px}.topbar{align-items:center}}
.sync-schedule{margin:16px 0;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);font:400 12px/1.8 system-ui;color:var(--muted)}
.sync-schedule strong{display:block;color:var(--text);font-size:14px}.sync-schedule p{margin:6px 0;overflow-wrap:anywhere}.sync-schedule[data-state="failed"]{border-color:#e4b7b7}.sync-schedule button{margin-top:8px;min-height:40px}

html body[data-view] #overview.app-main [id].view-hidden,html body[data-view] #overview.app-main .hero.view-hidden,html body[data-view] #overview.app-main .stats-grid.view-hidden{display:none!important}
@media(max-width:790px){.topbar .topbar-right{flex-wrap:nowrap!important}.topbar .access-bar{width:auto!important;order:0!important;flex:none}.topbar .access-bar #accessRole{display:none}.topbar .access-bar button{min-height:40px;padding:8px 11px}.topbar .topbar-left{flex:1;min-width:0}.topbar .topbar-left>strong{font-size:11px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
