/* Shared styles for the Börs list pages (insyn, blankning, kalender). The
   landing and instrument pages keep their own page-local styles. */
.wrap { max-width: 1000px; margin: 0 auto; padding: 22px 16px 56px; }
.lede { color: var(--ink-muted); font-size: 15px; margin: 4px 0 18px; line-height: 1.5; }

.filters { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; align-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 5px 13px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.chip:hover { background: var(--surface-sunken); color: var(--ink); }
.chip.active { background: var(--gold-wash); border-color: var(--gold); color: var(--gold-deep); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px 18px 10px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.panel h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); margin: 14px 0 6px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; } }

.row { display: grid; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; text-decoration: none; color: inherit; }
.row:last-child { border-bottom: none; }
.row:hover .r-name, .row:hover .r-title { text-decoration: underline; }
.r-date { color: var(--ink-faint); font-variant-numeric: tabular-nums; font-size: 12px; white-space: nowrap; }
.r-sym { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-sym small { display: block; font-weight: 400; color: var(--ink-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.r-name, .r-title { color: var(--ink); line-height: 1.35; }
.r-sub { color: var(--ink-muted); font-size: 12px; }
.r-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.r-num.big { font-weight: 700; }
.buy { color: var(--positive); font-weight: 700; }
.sell { color: var(--danger); font-weight: 700; }
.up { color: var(--positive); }
.down { color: var(--danger); }
.badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--gold-wash); color: var(--gold-deep); white-space: nowrap; }
.badge.muted { background: var(--surface-sunken); color: var(--ink-muted); }

.day-head { font-size: 13px; font-weight: 700; color: var(--ink); margin: 18px 0 2px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.day-head small { font-weight: 400; color: var(--ink-faint); margin-left: 8px; }

.more { display: block; margin: 16px auto 0; padding: 8px 20px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.more:hover { background: var(--surface-sunken); color: var(--ink); }
.more:disabled { opacity: .5; cursor: default; }
.state { color: var(--ink-faint); font-size: 14px; padding: 14px 0; }
.muted { color: var(--ink-faint); font-size: 12px; margin: 26px 0 0; line-height: 1.5; }
.muted a { color: inherit; text-decoration: underline; }
.badge.muted { margin: 0; font-size: 10px; line-height: normal; }   /* .muted above must not restyle badges */

/* Filter bar: segmented control + selects + search on one line. */
.bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); overflow: hidden; }
.seg button { padding: 6px 14px; border: none; background: none; color: var(--ink-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.active { background: var(--gold-wash); color: var(--gold-deep); }
.bar select, .bar input { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-size: 13px; }
.bar input[type="search"] { min-width: 200px; }
.bar label { font-size: 12px; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 6px; }
.bar .spacer { flex: 1; }
.bar .reset { font-size: 12px; color: var(--ink-faint); background: none; border: none; cursor: pointer; text-decoration: underline; }

/* Data table */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); white-space: nowrap; }
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover { color: var(--ink); }
.tbl th.sorted::after { content: " ↓"; }
.tbl th.sorted.asc::after { content: " ↑"; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.big { font-weight: 700; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: var(--surface-sunken); }
.tbl a { color: inherit; text-decoration: none; }
.tbl a:hover { text-decoration: underline; }
.tbl .sym { font-weight: 700; white-space: nowrap; }
.tbl span.sub { color: var(--ink-muted); font-size: 12px; display: block; }
.tbl td.sub { color: var(--ink-muted); font-size: 12px; }
.tbl .date { color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; text-transform: none; }
.tbl .neutral { color: var(--ink-muted); }
.tbl tr.child td { background: var(--surface-sunken); font-size: 13px; }
.tbl .expand { font-size: 11px; color: var(--ink-faint); background: none; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 1px 7px; cursor: pointer; margin-left: 6px; }
@media (max-width: 720px) { .tbl .hide-sm { display: none; } }

/* Summary tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px 18px 10px; box-shadow: var(--shadow-sm); }
.tile h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); margin: 14px 0 6px; }
.tile .row { grid-template-columns: 1fr auto; padding: 8px 0; }
.kv { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); margin: 0 0 10px; }
.kv b { color: var(--ink); font-variant-numeric: tabular-nums; }
