/* Ana sayfa: depo özeti, doluluk ve yetkili kullanıcıların aktif oturumları. */
body.operations-app.home-dashboard .dashboard-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0 20px}
html[data-theme] body.operations-app.home-dashboard .dashboard-metric{display:flex;align-items:center;gap:22px;padding:28px;min-width:0}
.dashboard-metric>div{min-width:0}
.dashboard-metric span:not(.dashboard-icon){display:block;color:var(--ui-muted);font-size:14px}
.dashboard-metric strong{display:block;font-size:clamp(30px,3.5vw,46px);font-weight:750;letter-spacing:-.04em;line-height:1.2;margin:8px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard-metric small{font-size:12px;color:var(--ui-muted)}
.dashboard-icon{display:grid;place-items:center;width:64px;height:64px;flex:none;border:1px solid var(--purple-edge);border-radius:20px;background:var(--purple-fill);color:var(--purple-ink);box-shadow:inset 0 1px 0 var(--glass-top)}
.dashboard-icon svg{width:32px;height:32px}
.dashboard-content{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);gap:20px;align-items:start}
.dashboard-content:has(#presencePanel[hidden]){grid-template-columns:minmax(0,1fr)}
.dashboard-occupancy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;min-width:0}
html[data-theme] body.operations-app.home-dashboard .dashboard-occupancy-card{padding:26px;min-width:0;min-height:230px}
.dashboard-card-label{color:var(--ui-muted);font-size:10px;letter-spacing:1.5px;font-weight:650;margin-bottom:20px}
body.operations-app.home-dashboard .home-occupancy-title{display:flex;flex-direction:column;align-items:start;gap:12px;margin-bottom:20px;font-size:16px}
body.operations-app.home-dashboard .home-occupancy-title strong{font-size:44px;letter-spacing:-.04em;line-height:1.1;font-variant-numeric:tabular-nums}
body.operations-app.home-dashboard .home-bays{grid-template-columns:repeat(12,minmax(0,1fr));height:18px;gap:4px}
body.operations-app.home-dashboard .dashboard-occupancy-card p{font-size:13px;color:var(--ui-muted);margin:14px 0 0}
body.operations-app.home-dashboard #presencePanel{margin:0;padding:24px;min-width:0}
body.operations-app.home-dashboard .presence-heading{flex-wrap:wrap;gap:8px}
body.operations-app.home-dashboard .presence-heading h2{font-size:17px}
body.operations-app.home-dashboard #refreshPresence{font-size:12px;min-height:36px;padding:7px 11px}
body.operations-app.home-dashboard #presencePanel>p{font-size:11px;line-height:1.6}
body.operations-app.home-dashboard .presence-stats{gap:10px;margin:16px 0}
body.operations-app.home-dashboard .presence-stats>div{padding:12px;border-radius:12px}
body.operations-app.home-dashboard .presence-stats strong{font-size:27px;line-height:1.2;margin-bottom:4px}
body.operations-app.home-dashboard .presence-stats span{font-size:11px}
body.operations-app.home-dashboard .presence-table{overflow:visible;max-height:360px;overflow-y:auto;scrollbar-width:thin}
body.operations-app.home-dashboard .presence-table table{display:block;min-width:0;width:100%;border:0}
body.operations-app.home-dashboard .presence-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.operations-app.home-dashboard .presence-table tbody{display:grid;gap:8px}
body.operations-app.home-dashboard .presence-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;border-top:1px solid var(--glass-separator);padding:12px 0}
body.operations-app.home-dashboard .presence-table td{display:block;padding:0;border:0;min-width:0;font-size:12px;overflow-wrap:anywhere}
body.operations-app.home-dashboard .presence-table td:first-child{font-size:14px;font-weight:650}
body.operations-app.home-dashboard .presence-table tr.presence-online td:first-child::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#53ad7a;margin-right:8px;box-shadow:0 0 0 3px #53ad7a15}
body.operations-app.home-dashboard .presence-table td:nth-child(2){color:var(--ui-muted);font-size:11px}
body.operations-app.home-dashboard .presence-table td:nth-child(3){grid-column:1;font-size:11px;color:var(--ui-muted)}
body.operations-app.home-dashboard .presence-table td:nth-child(3)::before{content:'Son giriş: '}
body.operations-app.home-dashboard .presence-table td:nth-child(4){grid-column:1/-1;color:var(--ui-muted);font-size:10px}
body.operations-app.home-dashboard .dashboard-source{margin:20px 0}
body.operations-app.home-dashboard .dashboard-source p{font-size:12px;margin:4px 0}
body.operations-app.home-dashboard .dashboard-racks{margin:22px 0}
body.operations-app.home-dashboard .dashboard-racks summary{cursor:pointer;list-style:none;min-height:64px}
body.operations-app.home-dashboard .dashboard-racks summary::-webkit-details-marker{display:none}
body.operations-app.home-dashboard .dashboard-racks summary .muted{font-size:12px}
body.operations-app.home-dashboard .dashboard-racks .home-racks{max-height:420px}
@media(min-width:1500px){body.operations-app.home-dashboard .dashboard-content{grid-template-columns:minmax(0,2.5fr) minmax(300px,1fr)}}
@media(max-width:1200px){.dashboard-content{grid-template-columns:minmax(0,1fr)}body.operations-app.home-dashboard #presencePanel{width:100%}body.operations-app.home-dashboard .presence-table tbody{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}}
@media(max-width:600px){
 body.operations-app.home-dashboard .dashboard-totals{gap:12px;margin:16px 0}
 html[data-theme] body.operations-app.home-dashboard .dashboard-metric{padding:18px 14px;gap:12px;align-items:start;flex-direction:column}
 .dashboard-icon{width:42px;height:42px;border-radius:14px}.dashboard-icon svg{width:24px;height:24px}
 .dashboard-metric strong{font-size:30px;letter-spacing:-1px}.dashboard-metric span:not(.dashboard-icon){font-size:12px}.dashboard-metric small{font-size:11px}
 .dashboard-occupancy{gap:12px}.dashboard-content{gap:16px}
 html[data-theme] body.operations-app.home-dashboard .dashboard-occupancy-card{padding:18px 14px;min-height:205px}
 .dashboard-card-label{font-size:9px;margin-bottom:16px;letter-spacing:1px}
 body.operations-app.home-dashboard .home-occupancy-title{font-size:14px;gap:12px}body.operations-app.home-dashboard .home-occupancy-title strong{font-size:35px}
 body.operations-app.home-dashboard .home-bays{gap:3px;height:14px;grid-template-columns:repeat(12,minmax(0,1fr))}
 body.operations-app.home-dashboard .dashboard-occupancy-card p{font-size:11px}
 body.operations-app.home-dashboard #presencePanel{padding:18px}body.operations-app.home-dashboard .presence-table tbody{grid-template-columns:minmax(0,1fr)}
 body.operations-app.home-dashboard .dashboard-racks .panel-title{padding:18px 14px}body.operations-app.home-dashboard .dashboard-racks h2{font-size:14px}
}
@media(max-width:350px){.dashboard-metric strong{font-size:26px}.dashboard-occupancy{grid-template-columns:minmax(0,1fr)}html[data-theme] body.operations-app.home-dashboard .dashboard-occupancy-card{min-height:185px}}
/* Cam kapsül: oran kadar dolan kesintisiz bar; veri yoksa boş gösterilir. */
html[data-theme=light]{--capsule-track:rgba(160,180,212,.24);--capsule-edge:rgba(132,152,190,.3);--capsule-shade:rgba(94,117,157,.17);--capsule-fill-top:#b798ff;--capsule-fill-bottom:#7740df;--capsule-fill-edge:rgba(125,76,236,.65)}
html[data-theme=dark]{--capsule-track:rgba(6,20,34,.5);--capsule-edge:rgba(185,200,234,.22);--capsule-shade:rgba(0,0,0,.3);--capsule-fill-top:#c3a4ff;--capsule-fill-bottom:#8953ef;--capsule-fill-edge:rgba(209,181,255,.6)}
body.operations-app.home-dashboard .glass-capsule{height:24px;min-width:0;width:100%;padding:2px;overflow:hidden;border:1px solid var(--capsule-edge);border-radius:999px;background:var(--capsule-track);box-shadow:inset 0 2px 5px var(--capsule-shade),inset 0 -1px 0 rgba(255,255,255,.4);isolation:isolate}
body.operations-app.home-dashboard .glass-capsule>i{display:block;height:100%;max-width:100%;min-width:0;border-radius:999px;border:1px solid var(--capsule-fill-edge);background:linear-gradient(180deg,var(--capsule-fill-top) 0%,#a275ff 32%,var(--capsule-fill-bottom) 80%,#a578fc 100%);box-shadow:inset 0 2px 2px rgba(255,255,255,.65),inset 0 -1px 2px rgba(76,27,161,.2),0 1px 5px rgba(116,64,202,.18)}
body.operations-app.home-dashboard .rack-occupancy-list{display:grid;padding:0 26px}
body.operations-app.home-dashboard .rack-occupancy-row{display:grid;grid-template-columns:minmax(70px,.18fr) minmax(0,1fr);gap:20px;align-items:center;padding:20px 0;border-bottom:1px solid var(--glass-separator);min-width:0}
body.operations-app.home-dashboard .rack-occupancy-row:last-child{border-bottom:0}
body.operations-app.home-dashboard .rack-occupancy-label{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}
body.operations-app.home-dashboard .rack-occupancy-label strong{font-size:21px;font-weight:750;line-height:1.3;color:var(--ui-ink)}
body.operations-app.home-dashboard .rack-occupancy-label span{font-size:12px;color:var(--ui-muted)}
body.operations-app.home-dashboard .rack-occupancy-reading{min-width:0}
body.operations-app.home-dashboard .rack-occupancy-meter{display:grid;grid-template-columns:minmax(0,1fr) 60px;gap:16px;align-items:center}
body.operations-app.home-dashboard .rack-occupancy-meter>strong{text-align:right;color:var(--ui-ink);font-size:20px;line-height:1.3;font-variant-numeric:tabular-nums;white-space:nowrap}
body.operations-app.home-dashboard .rack-occupancy-reading small{display:block;margin-top:8px;color:var(--ui-muted);font-size:12px;font-variant-numeric:tabular-nums;line-height:1.5}
@media(max-width:600px){
 body.operations-app.home-dashboard .glass-capsule{height:22px}
 body.operations-app.home-dashboard .rack-occupancy-list{padding:0 14px}
 body.operations-app.home-dashboard .rack-occupancy-row{grid-template-columns:56px minmax(0,1fr);gap:12px;padding:18px 0}
 body.operations-app.home-dashboard .rack-occupancy-label strong{font-size:18px}
 body.operations-app.home-dashboard .rack-occupancy-label span{font-size:11px}
 body.operations-app.home-dashboard .rack-occupancy-meter{grid-template-columns:minmax(0,1fr) 44px;gap:8px}
 body.operations-app.home-dashboard .rack-occupancy-meter>strong{font-size:17px}
 body.operations-app.home-dashboard .rack-occupancy-reading small{font-size:11px}
}
@media(prefers-reduced-transparency:reduce){body.operations-app.home-dashboard .glass-capsule{background:var(--ui-disabled);box-shadow:none}body.operations-app.home-dashboard .glass-capsule>i{background:var(--ui-focus);box-shadow:none}}

/* Kullanıcı giriş kartı: beş alanı dar ekranlarda da ayrı satırlarda tut. */
body.operations-app.home-dashboard .presence-table td:nth-child(2){text-align:right;white-space:nowrap}
body.operations-app.home-dashboard .presence-table td:nth-child(3),body.operations-app.home-dashboard .presence-table td:nth-child(4),body.operations-app.home-dashboard .presence-table td:nth-child(5){grid-column:1/-1;font-size:11px;line-height:1.6;color:var(--ui-muted)}
body.operations-app.home-dashboard .presence-table td:nth-child(4)::before{content:'Son görülme: '}
body.operations-app.home-dashboard .presence-table td:nth-child(5)::before{content:'Son 24 saatte giriş: '}
body.operations-app.home-dashboard .presence-table tr.presence-offline td:first-child::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--ui-muted);margin-right:8px}
