/* DentCell — İstatistik ekranı */
.sx { display: flex; flex-direction: column; gap: 18px; }
.sx-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.sx-top h2 { margin: 0; font-size: 1.45rem; font-weight: 800; color: #0f172a; letter-spacing: -.3px; }
.sx-top p { margin: 4px 0 0; color: #64748b; font-size: .84rem; }
.sx-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sx-seg { display: inline-flex; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 4px; gap: 2px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.sx-seg button { border: 0; background: transparent; font: inherit; font-size: .8rem; font-weight: 700; color: #475569; padding: 7px 12px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.sx-seg button.on { background: #0f172a; color: #fff; }
.sx-doc { font: inherit; font-size: .82rem; font-weight: 700; color: #0f172a; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }

.sx-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.sx-kpi { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 3px rgba(15,23,42,.04); position: relative; overflow: hidden; }
.sx-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #2a78d6, #1baf7a); opacity: .7; }
.sx-kpi span { font-size: .74rem; font-weight: 700; color: #64748b; }
.sx-kpi b { font-size: 1.45rem; font-weight: 800; color: #0f172a; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.sx-kpi small { font-size: .7rem; font-weight: 700; color: #94a3b8; }
.sx-kpi small em { font-style: normal; font-weight: 500; color: #94a3b8; }
.sx-kpi small.up { color: #15803d; } .sx-kpi small.down { color: #dc2626; }

.sx-sec { margin: 8px 0 -4px; font-size: .8rem; font-weight: 800; color: #475569; text-transform: uppercase; letter-spacing: .06em; }
.sx-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sx-grid2 > .wide { grid-column: auto; }
.sx-grid2:has(> .wide) { grid-template-columns: 1.5fr 1fr; }
.sx-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sx-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 16px 18px 18px; box-shadow: 0 1px 3px rgba(15,23,42,.04); min-width: 0; }
.sx-card header { margin-bottom: 12px; }
.sx-card h3 { margin: 0; font-size: .98rem; font-weight: 800; color: #0f172a; }
.sx-card header small { display: block; color: #64748b; font-size: .74rem; margin-top: 2px; }
.sx-empty { padding: 30px 12px; text-align: center; color: #94a3b8; font-size: .82rem; border: 1px dashed #e2e8f0; border-radius: 14px; }
.sx-warn { color: #b45309; font-weight: 800; }
.sx-note { margin: 10px 0 0; font-size: .74rem; color: #64748b; }

.sx-svg { width: 100%; height: 200px; display: block; overflow: visible; }
.sx-grid { stroke: #eef2f7; stroke-width: 1; vector-effect: non-scaling-stroke; }
.sx-base { stroke: #cbd5e1; stroke-width: 1; vector-effect: non-scaling-stroke; }
.sx-axis { font-size: 11px; fill: #94a3b8; font-weight: 600; }
.sx-vlabel { font-size: 11px; fill: #334155; font-weight: 800; }
.sx-col path { transition: opacity .15s ease; }
.sx-col:hover path { opacity: .82; }
.sx-cross { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; vector-effect: non-scaling-stroke; }
.sx-pt circle { opacity: 0; transition: opacity .12s ease; }
.sx-pt:hover circle, .sx-pt:hover .sx-cross { opacity: 1; }

.sx-hbars { display: flex; flex-direction: column; gap: 9px; }
.sx-hbar { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; align-items: center; gap: 10px; cursor: default; }
.sx-hbar-label { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: .8rem; font-weight: 700; color: #1e293b; }
.sx-hbar-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-hbar-label i { font-style: normal; flex: none; width: 18px; height: 18px; border-radius: 6px; background: #f1f5f9; color: #475569; font-size: .66rem; display: inline-flex; align-items: center; justify-content: center; }
.sx-hbar-label small { color: #94a3b8; font-weight: 600; font-size: .7rem; white-space: nowrap; }
.sx-hbar-track { height: 10px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.sx-hbar-fill { height: 100%; border-radius: 0 4px 4px 0; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.sx-hbar:hover .sx-hbar-fill { filter: brightness(1.08); }
.sx-hbar-val { font-size: .78rem; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; min-width: 54px; text-align: right; }

.sx-donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sx-donut svg { width: 170px; height: 170px; flex: none; }
.sx-arc { transition: opacity .15s ease; cursor: default; }
.sx-arc:hover { opacity: .85; }
.sx-donut-big { font-size: 20px; font-weight: 800; fill: #0f172a; }
.sx-donut-small { font-size: 10.5px; fill: #64748b; font-weight: 600; }
.sx-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 150px; }
.sx-legend.row { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.sx-legend li { display: flex; align-items: center; gap: 8px; font-size: .78rem; }
.sx-legend li span { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sx-legend li b { color: #1e293b; font-weight: 700; }
.sx-legend li em { font-style: normal; color: #64748b; font-weight: 700; margin-left: auto; padding-left: 8px; font-variant-numeric: tabular-nums; }
.sx-legend.row li em { margin-left: 0; }

.sx-stack { display: flex; gap: 2px; height: 26px; border-radius: 8px; overflow: hidden; }
.sx-stack > div { min-width: 4px; transition: filter .15s ease; }
.sx-stack > div:hover { filter: brightness(1.08); }

.sx-heat { display: grid; gap: 3px; align-items: center; }
.sx-heat i { display: block; height: 22px; border-radius: 5px; }
.sx-heat i:hover { outline: 2px solid #0f172a; outline-offset: -1px; }
.sx-heat-h { font-size: .64rem; color: #94a3b8; text-align: center; font-weight: 700; }
.sx-heat-d { font-size: .7rem; color: #475569; font-weight: 800; }
.sx-heat-scale { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 10px; font-size: .7rem; color: #64748b; font-weight: 700; }
.sx-heat-scale i { width: 110px; height: 8px; border-radius: 999px; display: block; }

.sx-table-wrap { overflow-x: auto; }
.sx-table { width: 100%; border-collapse: collapse; font-size: .8rem; min-width: 720px; }
.sx-table th { text-align: left; font-size: .68rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.sx-table td { padding: 11px 10px; border-bottom: 1px solid #f1f5f9; color: #1e293b; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sx-table td small { color: #94a3b8; }
.sx-table .sx-strong { font-weight: 800; color: #15803d; }
.sx-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; }

.sx-tip { position: fixed; left: 0; top: 0; z-index: 10070; pointer-events: none; opacity: 0; transition: opacity .1s ease; background: #0f172a; color: #e2e8f0; font-size: .76rem; line-height: 1.45; padding: 8px 11px; border-radius: 10px; box-shadow: 0 12px 30px -10px rgba(15,23,42,.5); max-width: 260px; }
.sx-tip b { color: #fff; }

@media (max-width: 1280px) { .sx-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .sx-grid2, .sx-grid2:has(> .wide), .sx-grid3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .sx-kpis { grid-template-columns: repeat(2, 1fr); } .sx-kpi b { font-size: 1.15rem; } .sx-hbar { grid-template-columns: minmax(90px, 40%) 1fr auto; } .sx-donut svg { width: 140px; height: 140px; } }
