/* Skadeskort — genbrugelig komponent (PaintPilot Modul 4). Tokens fra app.css
   (petrol-teal/Blød B) med fallback, så den også virker standalone. ALDRIG guld. */
.skadeskort { --sk-ac: var(--accent, #0E7C86); --sk-surf: var(--surface, #fff); --sk-s2: var(--surface2, #eef0f3);
  --sk-txt: var(--text, #242a31); --sk-mut: var(--text-muted, #646b74); --sk-bd: var(--border, #e2e6ea);
  color: var(--sk-txt); }
.sk-loading, .sk-empty { color: var(--sk-mut, #646b74); padding: 16px; text-align: center; font-size: 14px; }

.sk-types { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sk-type { min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--sk-bd, #e2e6ea);
  background: var(--sk-surf, #fff); color: var(--sk-txt, #242a31); font-size: 13px; font-weight: 600; cursor: pointer; }
.sk-type.active { background: var(--sk-ac, #0E7C86); color: var(--accent-fg, #fff); border-color: var(--sk-ac, #0E7C86); }
.sk-type-ro { font-size: 13px; color: var(--sk-mut, #646b74); margin-bottom: 10px; font-weight: 600; }

.sk-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sk-tab { flex: 1 1 auto; min-width: 72px; min-height: 44px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--sk-bd); background: var(--sk-surf); color: var(--sk-txt); font-size: 14px;
  font-weight: 600; cursor: pointer; }
.sk-tab.active { background: var(--sk-ac); color: var(--accent-fg, #fff); border-color: var(--sk-ac); }
.sk-ct { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: rgba(0,0,0,.18);
  font-size: 11px; font-weight: 700; vertical-align: middle; }

.sk-stage { display: flex; flex-direction: column; align-items: center; margin-bottom: 14px; }
.sk-svgbox { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1/1; border: 1px solid var(--sk-bd);
  border-radius: 12px; background: var(--sk-surf); color: var(--sk-mut); touch-action: manipulation; cursor: crosshair; }
.sk-svgbox.ro { cursor: default; }
.sk-svgbox svg { width: 100%; height: 100%; display: block; }
.sk-hint { margin-top: 8px; font-size: 13px; color: var(--sk-mut); }
.sk-mark { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: none; border-radius: 50%;
  background: var(--sk-ac); color: var(--accent-fg, #fff); font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }

.sk-list { display: flex; flex-direction: column; gap: 6px; }
.sk-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--sk-bd);
  border-radius: 8px; background: var(--sk-surf); cursor: pointer; }
.sk-rn { min-width: 26px; height: 26px; border-radius: 50%; background: var(--sk-ac); color: var(--accent-fg, #fff);
  font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sk-rt { flex: 1; font-size: 13px; word-break: break-word; }
.sk-rp { font-size: 13px; font-weight: 600; white-space: nowrap; }
.sk-del { border: none; background: transparent; color: var(--sk-mut); font-size: 16px; cursor: pointer; padding: 4px 8px; }
.sk-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.sk-b-kunde { background: rgba(220,38,38,.14); color: #dc2626; }
.sk-b-slit { background: rgba(34,197,94,.14); color: #16a34a; }
.sk-b-uafk { background: rgba(120,120,120,.16); color: var(--sk-mut); }

/* Editor-bund-ark */
.sk-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9000; display: flex;
  align-items: flex-end; justify-content: center; }
.sk-sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--surface, #fff);
  color: var(--text, #242a31); border-radius: 16px 16px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 620px) { .sk-overlay { align-items: center; } .sk-sheet { border-radius: 16px; } }
.sk-sh-head { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.sk-close { border: none; background: transparent; font-size: 20px; cursor: pointer; color: var(--text-muted, #646b74); }
.sk-lbl { display: block; font-size: 12px; color: var(--text-muted, #646b74); margin: 14px 0 6px; font-weight: 600; }
.sk-bg { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-opt { min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border, #e2e6ea);
  background: var(--surface2, #eef0f3); color: var(--text, #242a31); font-size: 14px; font-weight: 600; cursor: pointer; }
.sk-opt.active { background: var(--accent, #0E7C86); color: var(--accent-fg, #fff); border-color: var(--accent, #0E7C86); }
.sk-inp { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border, #e2e6ea);
  background: var(--surface, #fff); color: var(--text, #242a31); font-size: 16px; font-family: inherit; }
textarea.sk-inp { min-height: 60px; }
.sk-fotos { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-fotos img { height: 60px; border-radius: 6px; border: 1px solid var(--border, #e2e6ea); }
.sk-camera { display: block; margin-top: 10px; text-align: center; min-height: 48px; line-height: 48px;
  border: 1px dashed var(--accent, #0E7C86); border-radius: 10px; color: var(--accent, #0E7C86); font-weight: 700; cursor: pointer; }
.sk-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.sk-btn-save { background: var(--accent, #0E7C86); color: var(--accent-fg, #fff); border: none; border-radius: 10px;
  padding: 14px 24px; font-size: 16px; font-weight: 700; cursor: pointer; }
.sk-btn-del { background: transparent; color: #dc2626; border: 1px solid #dc2626; border-radius: 10px;
  padding: 12px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
