/* Statistika — small visual layer on top of Filament (no build step). */
.st-brand { display: inline-flex; align-items: center; gap: .6rem; }
.st-brand-mark { display: inline-flex; width: 2rem; height: 2rem; border-radius: .6rem; background: rgb(37 99 235); color: #fff; align-items: center; justify-content: center; }
.st-brand-mark svg { width: 1.1rem; height: 1.1rem; }
.st-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.st-brand-name { font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.st-brand-sub { font-size: .65rem; color: rgb(100 116 139); text-transform: uppercase; letter-spacing: .08em; }

.st-switchers { display: flex; gap: .5rem; align-items: center; margin-inline-end: .5rem; }
.st-switch { display: inline-flex; border: 1px solid rgb(226 232 240); border-radius: .6rem; overflow: hidden; background: #fff; }
.dark .st-switch { border-color: rgb(255 255 255 / .1); background: rgb(255 255 255 / .05); }
.st-switch a { padding: .3rem .55rem; font-size: .75rem; font-weight: 600; color: rgb(100 116 139); text-decoration: none; white-space: nowrap; }
.st-switch a:hover { color: rgb(37 99 235); }
.st-switch a.st-active { background: rgb(37 99 235); color: #fff; }

.st-card { border: 1px solid rgb(226 232 240); background: #fff; border-radius: .9rem; padding: 1rem 1.1rem; box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.dark .st-card { border-color: rgb(255 255 255 / .1); background: rgb(17 24 39); }
.st-kpi-label { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgb(100 116 139); }
.st-kpi-value { font-size: 1.75rem; font-weight: 700; margin-top: .35rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st-kpi-sub { font-size: .75rem; color: rgb(100 116 139); margin-top: .15rem; }

.st-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.st-pill { padding: .35rem .75rem; font-size: .8rem; font-weight: 600; border-radius: 999px; border: 1px solid rgb(226 232 240); background: #fff; color: rgb(71 85 105); cursor: pointer; }
.dark .st-pill { border-color: rgb(255 255 255 / .1); background: transparent; color: rgb(203 213 225); }
.st-pill:hover { border-color: rgb(37 99 235); color: rgb(37 99 235); }
.st-pill.st-active { background: rgb(37 99 235); border-color: rgb(37 99 235); color: #fff; }

.st-input { border: 1px solid rgb(203 213 225); border-radius: .6rem; padding: .45rem .7rem; font-size: .85rem; background: #fff; min-width: 0; }
.dark .st-input { border-color: rgb(255 255 255 / .15); background: rgb(255 255 255 / .05); color: #fff; }
.st-input:focus { outline: 2px solid rgb(37 99 235 / .4); border-color: rgb(37 99 235); }

.st-table { width: 100%; font-size: .85rem; border-collapse: collapse; }
.st-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: rgb(100 116 139); padding: .6rem .75rem; border-bottom: 1px solid rgb(226 232 240); white-space: nowrap; }
.st-table th button { all: unset; cursor: pointer; }
.st-table th button:hover { color: rgb(37 99 235); }
.st-table td { padding: .55rem .75rem; border-bottom: 1px solid rgb(241 245 249); vertical-align: middle; }
.dark .st-table th, .dark .st-table td { border-color: rgb(255 255 255 / .08); }
.st-table tr:hover td { background: rgb(248 250 252); }
.dark .st-table tr:hover td { background: rgb(255 255 255 / .03); }
.st-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.st-table tfoot td { font-weight: 700; border-top: 2px solid rgb(226 232 240); }

.st-article { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgb(241 245 249); }
.dark .st-article { border-color: rgb(255 255 255 / .08); }
.st-article img { width: 96px; height: 72px; object-fit: cover; border-radius: .5rem; background: rgb(241 245 249); }
.st-article .ph { width: 96px; height: 72px; border-radius: .5rem; background: rgb(241 245 249); }
.dark .st-article .ph { background: rgb(255 255 255 / .06); }
.st-article h3 { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.st-article h3 a:hover { text-decoration: underline; }
.st-article .meta { font-size: .75rem; color: rgb(100 116 139); margin-top: .2rem; }
.st-article .snippet { font-size: .82rem; color: rgb(71 85 105); margin-top: .4rem; line-height: 1.45; }
.dark .st-article .snippet { color: rgb(148 163 184); }
mark { background: rgb(254 240 138); color: inherit; padding: 0 .1em; border-radius: .2em; font-weight: 600; }
.dark mark { background: rgb(202 138 4 / .5); }

.st-inline-chart { position: relative; width: 100%; }
.st-note { font-size: .8rem; color: rgb(100 116 139); }
.st-warn { border: 1px solid rgb(253 230 138); background: rgb(255 251 235); color: rgb(146 64 14); padding: .6rem .9rem; border-radius: .6rem; font-size: .82rem; }
.dark .st-warn { background: rgb(245 158 11 / .1); border-color: rgb(245 158 11 / .3); color: rgb(253 230 138); }
.st-empty { padding: 2.5rem 1rem; text-align: center; color: rgb(100 116 139); font-size: .9rem; }

/* Layout helpers (Filament's compiled CSS has no Tailwind utilities for custom pages). */
.st-stack > * + * { margin-top: 1.5rem; }
.st-stack-sm > * + * { margin-top: 1rem; }
.st-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .st-grid-2, .st-grid-3, .st-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .st-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .st-span-2 { grid-column: span 2 / span 2; }
}
.st-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.st-row-tight { gap: .25rem; }
.st-divider { border-top: 1px solid rgb(241 245 249); padding-top: 1rem; }
.dark .st-divider { border-color: rgb(255 255 255 / .06); }
.st-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .75rem; }
.st-title { font-size: 1rem; font-weight: 600; }
.st-mb { display: block; margin-bottom: .75rem; }
.st-text { font-size: .875rem; column-gap: 1.5rem; }
.st-grow { flex: 1 1 auto; }
.st-full { flex-basis: 100%; }
.st-min0 { min-width: 0; }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-list > * + * { margin-top: .75rem; }
.st-list-item { display: flex; gap: .75rem; font-size: .875rem; }
.st-num { width: 1.25rem; flex: none; text-align: right; font-weight: 600; color: rgb(156 163 175); }
.st-strong { font-weight: 600; line-height: 1.3; }
.st-block { display: block; }
.st-link { color: rgb(37 99 235); font-weight: 600; }
.st-link:hover { text-decoration: underline; }
a.st-link { color: inherit; font-weight: inherit; }
a.st-link:hover { text-decoration: underline; }
.st-scroll { overflow-x: auto; }
.st-strike { text-decoration: line-through; }
