/* FM Elpris – arver temaets skrifttype. Farver kan overskrives via CSS-variablerne. */
.fm-elpris {
  --fm-el-accent: #1f5fbf;
  --fm-el-spot: #1f5fbf;
  --fm-el-net: #6f8fd6;
  --fm-el-en: #9fb6e6;
  --fm-el-afg: #c9d6f2;
  --fm-el-til: #e0a43a;
  --fm-el-moms: #b9b9b9;
  --fm-el-abo: #5b5b5b;
  --fm-el-billig: #1f9d55;
  --fm-el-border: #e3e6ec;
  --fm-el-bg: #f6f8fb;
  --fm-el-muted: #5f6672;
  border: 1px solid var(--fm-el-border);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  background: #fff;
  line-height: 1.45;
}
.fm-elpris *, .fm-elpris *::before, .fm-elpris *::after { box-sizing: border-box; }

.fm-el-form { display: grid; gap: 14px; margin-bottom: 18px; }
.fm-el-raekke { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fm-el-felt label { display: block; font-weight: 600; font-size: 0.95em; margin-bottom: 4px; }
.fm-el-felt small { display: block; color: var(--fm-el-muted); font-size: 0.82em; margin-top: 3px; }
.fm-elpris select, .fm-elpris input[type="text"], .fm-elpris input[type="number"] {
  width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #cfd4dc; border-radius: 8px; background: #fff; min-height: 44px;
}
.fm-elpris select:focus, .fm-elpris input:focus { outline: 2px solid var(--fm-el-accent); outline-offset: 1px; }

.fm-el-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fm-el-chips button, .fm-el-tabs button {
  font: inherit; font-size: 0.88em; padding: 6px 12px; border-radius: 999px; border: 1px solid #cfd4dc; background: #fff; cursor: pointer; color: inherit;
}
.fm-el-chips button:hover, .fm-el-tabs button:hover { border-color: var(--fm-el-accent); }
.fm-el-tabs { display: inline-flex; gap: 6px; }
.fm-el-tabs button[aria-selected="true"] { background: var(--fm-el-accent); border-color: var(--fm-el-accent); color: #fff; }

.fm-el-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.fm-el-top select { width: auto; flex: 1 1 220px; max-width: 360px; }

.fm-el-resultat, .fm-el-idag-ud { transition: opacity .2s; }
.fm-el-loading { opacity: .45; }

.fm-el-tal { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.fm-el-tal > div { background: var(--fm-el-bg); border-radius: 10px; padding: 12px 14px; }
.fm-el-tal span { display: block; font-size: 0.82em; color: var(--fm-el-muted); }
.fm-el-tal strong { display: block; font-size: 1.45em; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }

.fm-el-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--fm-el-bg); margin: 6px 0 14px; }
.fm-el-seg { display: block; height: 100%; }
.fm-el-spot { background: var(--fm-el-spot); } .fm-el-net { background: var(--fm-el-net); }
.fm-el-en { background: var(--fm-el-en); } .fm-el-afg { background: var(--fm-el-afg); }
.fm-el-til { background: var(--fm-el-til); } .fm-el-moms { background: var(--fm-el-moms); }
.fm-el-abo { background: var(--fm-el-abo); }
.fm-el-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.fm-el-billig-dot { background: var(--fm-el-billig); }

.fm-el-tabel { width: 100%; border-collapse: collapse; font-size: 0.92em; font-variant-numeric: tabular-nums; margin: 0; }
.fm-el-tabel th, .fm-el-tabel td { padding: 7px 8px; border-bottom: 1px solid var(--fm-el-border); text-align: right; }
.fm-el-tabel th:first-child, .fm-el-tabel td:first-child { text-align: left; }
.fm-el-tabel thead th { font-size: 0.85em; color: var(--fm-el-muted); font-weight: 600; }
.fm-el-tabel tbody th { font-weight: 400; }
.fm-el-nu-row td { background: #fff8e6; }

.fm-el-graf svg { width: 100%; height: auto; display: block; }
.fm-el-grid { stroke: var(--fm-el-border); stroke-width: 1; }
.fm-el-akse { font-size: 11px; fill: var(--fm-el-muted); }
.fm-el-soejle { fill: var(--fm-el-accent); opacity: .85; }
.fm-el-soejle:hover { opacity: 1; }
.fm-el-billig { fill: var(--fm-el-billig); }
.fm-el-nu { stroke: #111; stroke-width: 2; }
.fm-el-forklaring { font-size: 0.85em; color: var(--fm-el-muted); margin: 8px 0; }

.fm-el-detaljer { margin-top: 10px; }
.fm-el-detaljer summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.fm-el-detaljer .fm-el-tabel { margin-top: 6px; }

.fm-el-note, .fm-el-status { font-size: 0.82em; color: var(--fm-el-muted); margin: 12px 0 0; }
.fm-el-fejl { color: #a12a2a; margin: 0; }
.fm-el-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 560px) {
  .fm-elpris { padding: 14px; }
  .fm-el-raekke { grid-template-columns: 1fr; }
  .fm-el-tal { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fm-el-tal > div { padding: 10px; }
  .fm-el-tal strong { font-size: 1.15em; }
  .fm-el-akse { font-size: 20px; }
  .fm-el-detaljer .fm-el-tabel { font-size: 0.8em; }
  .fm-el-detaljer .fm-el-tabel th, .fm-el-detaljer .fm-el-tabel td { padding: 5px 4px; }
}
