/* Fælles styles for portalerne (fagperson, familie, tak). Bygger oven på styles.css. */

.portal { max-width: 760px; margin: 0 auto; padding: 28px 16px 90px; }
.portal h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px; margin-bottom: 20px;
}
.panel h2 { font-size: 1.3rem; margin-bottom: .5em; }
.muted { color: var(--muted); }
.hint { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.notice { padding: 14px 16px; border-radius: 14px; background: var(--sky); color: var(--ink); font-weight: 700; margin: 12px 0; }
.notice.warn { background: #FBEBC9; color: #5C4300; }
.notice.error { background: #FADAD1; color: #7A2A14; }
@media (prefers-color-scheme: dark) {
  .notice.warn { background: #4A3A10; color: #FBE5A6; }
  .notice.error { background: #4A2218; color: #F9C9BB; }
}

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 800; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--bg-soft); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.btn.small { padding: 9px 14px; font-size: .9rem; }
.btn.danger { color: #9B2D16; border-color: var(--line); }
.btn.danger:hover { border-color: #9B2D16; color: #9B2D16; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }

.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.status.ok   { background: #DDF3EC; color: #176C52; }
.status.wait { background: #FBEBC9; color: #7A5A00; }
.status.off  { background: var(--line); color: var(--muted); }
.status.done { background: #E3E9F8; color: #2B3F86; }
@media (prefers-color-scheme: dark) {
  .status.ok   { background: #1C3F35; color: #9FE0C7; }
  .status.wait { background: #4A3A10; color: #FBE5A6; }
  .status.done { background: #26304F; color: #BCC9F5; }
}

.list { display: grid; gap: 12px; }
.item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-soft);
}
.item .title { font-weight: 800; }
.item .sub { color: var(--muted); font-size: .9rem; }

.qr { display: grid; place-items: center; padding: 16px; background: #fff; border-radius: 16px; margin: 10px 0; }
.qr svg { width: 220px; height: 220px; }
.linkbox { display: flex; gap: 8px; }
.linkbox input { flex: 1; font: inherit; font-size: .9rem; padding: 11px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg-soft); color: var(--ink); min-width: 0; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tab {
  padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: transparent;
  font: inherit; font-weight: 800; cursor: pointer; color: var(--ink);
}
.tab.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.choice {
  display: grid; gap: 8px; padding: 14px; border-radius: 16px; border: 2px solid var(--line);
  background: var(--card); cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  transition: border-color .12s ease, transform .12s ease;
}
.choice:hover { transform: translateY(-1px); border-color: var(--teal); }
.choice.selected { border-color: var(--teal); background: var(--sky); }
.choice .ico { width: 40px; height: 40px; }
.choice .name { font-weight: 800; line-height: 1.2; }
.choice .price { color: var(--muted); font-size: .9rem; }

.wish { display: grid; gap: 10px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-soft); }
.wish-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.wish .ico { width: 44px; height: 44px; flex: none; }
.wish h3 { margin: 0; font-size: 1.1rem; }
.barcode { background: #fff; padding: 14px; border-radius: 16px; display: grid; place-items: center; gap: 8px; }
.barcode svg { max-width: 100%; height: auto; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.15rem; letter-spacing: .12em; color: #1F2A37; }
.reactions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.reactions button {
  font-size: 1.5rem; padding: 6px 14px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); cursor: pointer; line-height: 1;
}
.reactions button.selected { border-color: var(--teal); background: var(--sky); }
.steps-mini { display: flex; gap: 8px; align-items: center; font-weight: 800; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.steps-mini span.on { color: var(--teal); }
.welcome { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.welcome svg { width: 96px; height: 96px; }
@media (max-width: 480px) { .welcome { grid-template-columns: 1fr; } }

/* Nøgletal (virksomhedsportal) */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 16px 14px; border-radius: 16px; background: var(--sky); text-align: center; }
.stat-v { font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--teal-dark); }
.stat-k { font-size: .82rem; font-weight: 700; color: var(--muted); margin-top: 4px; }
@media (prefers-color-scheme: dark) { .stat-v { color: var(--teal); } }
.list.small .item { padding: 9px 12px; font-size: .92rem; }
.print-only { display: none; }

/* Print: ESG-rapporten er den samme side uden navigation og knapper. */
@media print {
  .no-print, .top, .toast { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .panel { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .stat { background: #eef5f6; }
}
