/* Nástěnka Šéfa (majitele) - viz Components/Pages/Nastenka/NastenkaSef.razor a wwwroot/js/sef-nastenka.js.
   Aplikace zatím podporuje jen světlý režim (DESIGN.md), proto jsou tu jen světlé tokeny.
   Oranžová je brandová Jotto (stejné odstíny jako --jotto-orange* v css/jotto-shell.css). */
.sef {
  --surface: #ffffff;
  --ink: #2b2b2b;
  --ink2: #5d5a57;
  --muted: #76726d;
  --grid: #ece7e2;
  --axis: #d6d0ca;
  --border: #e3ded9;
  --s1: #e24b19;
  --mute-bar: #d9d4ce;
  --up: #1b6b24;
  --down: #b3200a;
  --track: #fbe7de;
  --h0: #fdeee7; --h1: #f9cdb9; --h2: #f4ac8b; --h3: #ee8359; --h4: #e24b19; --h5: #b93a11; --h6: #8f2b0a;
  --brand: #e24b19;
  --brand-fill: #b93a11;
  --chip-bg: #f1ece8;
  --tip-bg: #2b2b2b;
  --tip-ink: #ffffff;
  --tip-ink2: #d6d0ca;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
}
.sef, .sef * { box-sizing: border-box; }
.sef .wrap { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.sef h1,
.sef h2,
.sef h3,
.sef p { margin: 0; }
.sef button { font: inherit; color: inherit; }
.sef :focus-visible { outline: 2px solid var(--brand-fill); outline-offset: 2px; }
.sef header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.sef .brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sef .brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.sef .brand h1 { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }
.sef .brand p { color: var(--ink2); font-size: 13px; }
.sef .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sef .chip { background: var(--chip-bg); color: var(--ink2); border-radius: 999px; padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.sef .seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.sef .seg button { border: 0; background: transparent; padding: 7px 13px; cursor: pointer; color: var(--ink2); }
.sef .seg button + button { border-left: 1px solid var(--border); }
.sef .seg button[aria-pressed="true"] { background: var(--brand-fill); color: #ffffff; font-weight: 600; }
.sef .seg button:not([aria-pressed="true"]):hover { background: var(--chip-bg); }
.sef .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.sef .card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.sef .span12 { grid-column: span 12; }
.sef .span8 { grid-column: span 8; }
.sef .span7 { grid-column: span 7; }
.sef .span6 { grid-column: span 6; }
.sef .span5 { grid-column: span 5; }
.sef .span4 { grid-column: span 4; }
.sef .card h2 { font-size: 15px; font-weight: 650; }
.sef .card .sub { color: var(--ink2); font-size: 12.5px; margin-top: 2px; }
.sef .card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.sef .stack { display: flex; flex-direction: column; gap: 16px; }
.sef .hero { display: flex; flex-direction: column; gap: 6px; }
.sef .hero .label { color: var(--ink2); font-size: 13px; }
.sef .hero .value { font-size: clamp(44px, 7vw, 60px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; }
.sef .hero .meta { color: var(--ink2); font-size: 12.5px; }
.sef .spark { margin-top: 10px; height: 64px; width: 100%; }
.sef .delta { font-weight: 600; white-space: nowrap; }
.sef .delta.up { color: var(--up); }
.sef .delta.down { color: var(--down); }
.sef .delta-note { color: var(--ink2); font-weight: 400; }
.sef .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sef .tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sef .tile .label { color: var(--ink2); font-size: 13px; }
.sef .tile .value { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.sef .tile .foot { font-size: 12.5px; min-height: 18px; }
.sef .chart { width: 100%; position: relative; }
.sef svg { display: block; overflow: visible; }
.sef .ax { fill: var(--muted); font-size: 11px; font-family: inherit; }
.sef .ax-end { text-anchor: end; }
.sef .ax-mid { text-anchor: middle; }
.sef .gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.sef .baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.sef .val { fill: var(--ink); font-size: 12px; font-weight: 600; text-anchor: middle; }
.sef .col { cursor: default; outline: none; }
.sef .col .bar { transition: opacity .12s; }
.sef .col:hover .bar,
.sef .col:focus .bar { opacity: .78; }
.sef .col:focus .focus-ring { stroke: var(--s1); }
.sef .focus-ring { fill: none; stroke: transparent; stroke-width: 2; rx: 4; }
.sef .legend { display: flex; gap: 14px; align-items: center; color: var(--ink2); font-size: 12.5px; flex-wrap: wrap; }
.sef .key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.sef .note { color: var(--ink2); font-size: 12.5px; margin-top: 10px; }
.sef .note b { color: var(--ink); font-weight: 600; }
.sef .linkbtn { border: 1px solid var(--border); background: transparent; border-radius: 8px; padding: 4px 10px; cursor: pointer; color: var(--ink2); font-size: 12.5px; white-space: nowrap; }
.sef .linkbtn:hover { background: var(--chip-bg); }
.sef .table-wrap { overflow: auto; max-height: 290px; border: 1px solid var(--border); border-radius: 8px; }
.sef table { border-collapse: collapse; width: 100%; font-size: 13px; }
.sef th,
.sef td { padding: 7px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--grid); font-variant-numeric: tabular-nums; }
.sef th:first-child,
.sef td:first-child,
.sef th:nth-child(2),
.sef td:nth-child(2) { text-align: left; }
.sef thead th { position: sticky; top: 0; background: var(--surface); color: var(--ink2); font-weight: 600; }
.sef .meter-track { height: 12px; border-radius: 6px; background: var(--track); overflow: hidden; margin: 10px 0 8px; }
.sef .meter-fill { height: 100%; background: var(--s1); border-radius: 6px 0 0 6px; }
.sef .big { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.sef .big small { font-size: 14px; font-weight: 400; color: var(--ink2); letter-spacing: 0; }
.sef .rows { display: flex; flex-direction: column; gap: 11px; }
.sef .row { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.sef .row .name { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.sef .row .track { height: 10px; display: flex; }
.sef .row .fill { height: 10px; background: var(--s1); border-radius: 0 4px 4px 0; min-width: 2px; }
.sef .row .num { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sef .row .num span { color: var(--ink2); }
.sef .rank { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 8px; }
.sef .row:hover .fill,
.sef .row:focus .fill { opacity: .78; }
.sef .row { outline: none; border-radius: 6px; }
.sef .row:focus-visible { outline: 2px solid var(--s1); outline-offset: 3px; }
.sef .watch { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--grid); }
.sef .watch h3 { font-size: 13px; font-weight: 650; margin-bottom: 8px; }
.sef .watch li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 3px 0; }
.sef .watch ul { list-style: none; margin: 0; padding: 0; }
.sef .watch .w { color: var(--ink2); white-space: nowrap; }
.sef .mini { display: flex; gap: 22px; flex-wrap: wrap; }
.sef .mini div { display: flex; flex-direction: column; }
.sef .mini b { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.sef .mini span { font-size: 12.5px; color: var(--ink2); }
.sef .heat { display: grid; grid-template-columns: 62px repeat(5, minmax(0, 1fr)) 84px; gap: 3px; align-items: stretch; }
.sef .heat .hd { color: var(--muted); font-size: 11.5px; text-align: center; padding-bottom: 2px; align-self: end; }
.sef .heat .rl { font-size: 13px; display: flex; align-items: center; }
.sef .heat .cell { height: 30px; border-radius: 4px; outline: none; }
.sef .heat .cell:hover,
.sef .heat .cell:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.sef .heat .tot { font-size: 13px; text-align: right; display: flex; align-items: center; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.sef .heat .tot span { color: var(--ink2); margin-left: 6px; }
.sef .scale { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink2); font-size: 12px; }
.sef .scale i { display: block; width: 22px; height: 10px; border-radius: 2px; }
.sef #tip { position: fixed; z-index: 50; pointer-events: none; background: var(--tip-bg); color: var(--tip-ink); border-radius: 8px; padding: 8px 11px; font-size: 12.5px; max-width: 260px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.sef #tip .t { color: var(--tip-ink2); margin-bottom: 4px; }
.sef #tip .r { display: flex; align-items: center; gap: 8px; }
.sef #tip .r b { font-weight: 650; }
.sef #tip .r span { color: var(--tip-ink2); }
.sef #tip .k { display: inline-block; width: 12px; height: 2px; border-radius: 1px; flex: none; }
.sef .foot { color: var(--muted); font-size: 12px; padding-top: 4px; }
@media (max-width: 960px) {
  .sef .span8,
  .sef .span7,
  .sef .span6,
  .sef .span5,
  .sef .span4 { grid-column: span 12; }
}
@media (max-width: 520px) {
  .sef .tile .value { font-size: 23px; }
  .sef .row { grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) auto; gap: 8px; }
  .sef .heat { grid-template-columns: 52px repeat(5, minmax(0, 1fr)) 64px; }
  .sef .heat .tot span { display: none; }
  .sef .card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sef .col .bar { transition: none; }
}