/* APPICS Pro - PREIS-/WAEHRUNGS-EDITOR (ORDER 52, 19.10.2026, Stempel
   1019pcpe1, coco). Styles NUR fuer js/pro-content-price-editor.js.
   Komposition nach dem "Selected item"-Panel der Vorlage
   PRO-CONTENT-LIBRARY-K1 (Feld + Select + Mint-Aktion + Hinweiszeile),
   Tokens GEMESSEN aus css/app.css (sha256
   b87192534ff8d620ccab994767b63e5a6b4886c44d7ac503133115c20b21313c):
   --bg #14141e, --panel #1b1d2a, --panel-2 #232537, --input #2d2e40,
   --ink #eef0f6, --muted #8e92b2, --teal #35d0c5, --teal-deep #1fa89f,
   --mint #a9f3e1, --radius-s 12px, --font Outfit. Keine neue Schrift,
   keine App-Palette, keine Literale ausser den gemessenen Rueckfaellen.
   Eigener Praefix pcpe- (Kollisions-Check gegen css/*.css: 0 Treffer). */

:root {
  --pcpe-panel: var(--panel, #1b1d2a);
  --pcpe-panel-2: var(--panel-2, #232537);
  --pcpe-input: var(--input, #2d2e40);
  --pcpe-line: var(--line, rgba(255, 255, 255, .07));
  --pcpe-ink: var(--ink, #eef0f6);
  --pcpe-muted: var(--muted, #8e92b2);
  --pcpe-teal: var(--teal, #35d0c5);
  --pcpe-teal-deep: var(--teal-deep, #1fa89f);
  --pcpe-teal-soft: rgba(53, 208, 197, .14);
  --pcpe-mint: var(--mint, #a9f3e1);
  --pcpe-mint-ink: #0f2a26;
  --pcpe-red: var(--red, #ff5d6c);
  --pcpe-radius-s: var(--radius-s, 12px);
  --pcpe-font: var(--font, 'Outfit', system-ui, sans-serif);
}

.pcpe {
  display: flex; flex-direction: column; gap: 11px;
  background: var(--pcpe-panel); border: 1px solid var(--pcpe-line); border-radius: 14px;
  padding: 14px;
  color: var(--pcpe-ink);
  font: 400 13px/1.5 var(--pcpe-font);
}
.pcpe *, .pcpe *::before, .pcpe *::after { box-sizing: border-box; }
.pcpe :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.pcpe :where(button):disabled { cursor: default; }
.pcpe :focus-visible { outline: 2px solid var(--pcpe-teal); outline-offset: 2px; }
.pcpe svg { width: 15px; height: 15px; }

/* ---------- Kopf (wie .pco-panel-head der Vorlage) ---------- */
.pcpe-head { display: flex; align-items: center; gap: 8px; }
.pcpe-head-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px;
  background: var(--pcpe-teal-soft); color: var(--pcpe-teal); }
.pcpe-title { margin: 0; font: 600 14px/1.2 var(--pcpe-font); }

/* ---------- Gespeicherter Wert ---------- */
.pcpe-current { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pcpe-label { color: var(--pcpe-muted); font-size: 11.5px; }
.pcpe-current-val { font: 600 13px/1.3 var(--pcpe-font); overflow-wrap: anywhere; }
.pcpe-current-val.is-missing { color: var(--pcpe-muted); font-weight: 500; }
.pcpe-dirty {
  padding: 2px 8px; border-radius: 999px;
  background: var(--pcpe-teal-soft); color: var(--pcpe-teal);
  font: 600 10px/1.4 var(--pcpe-font); letter-spacing: .02em;
}

/* ---------- Formular (Felder wie .pco-field der Vorlage) ---------- */
.pcpe-form { display: flex; gap: 8px; }
.pcpe-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pcpe-field:first-child { flex: 1 1 auto; }
.pcpe-field:last-child { flex: 0 0 132px; }
.pcpe-field > span:first-child { color: var(--pcpe-muted); font-size: 11.5px; }
.pcpe-amount {
  width: 100%; height: 36px; padding: 0 10px;
  background: var(--pcpe-panel-2); border: 1px solid var(--pcpe-line); border-radius: 8px;
  color: var(--pcpe-ink); font: 500 12px/1 var(--pcpe-font); color-scheme: dark;
}
.pcpe-amount:focus { border-color: var(--pcpe-teal); outline: none; }
.pcpe-amount:disabled { opacity: .55; }
.pcpe-select {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 36px; padding: 0 26px 0 10px;
  background: var(--pcpe-panel-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa0b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 8px center / 12px;
  border: 1px solid var(--pcpe-line); border-radius: 8px;
  color: var(--pcpe-ink); font: 500 12px/1 var(--pcpe-font);
}
.pcpe-select:focus { border-color: var(--pcpe-teal); outline: none; }
.pcpe-select:disabled { opacity: .55; }
.pcpe-field.is-err > span:first-child { color: var(--pcpe-red); }
.pcpe-field.is-err .pcpe-amount, .pcpe-field.is-err .pcpe-select { border-color: var(--pcpe-red); }
.pcpe-fielderr {
  display: flex; gap: 8px; margin: 0; padding: 8px 11px;
  background: rgba(255, 93, 108, .1); border: 1px solid rgba(255, 93, 108, .3); border-radius: 10px;
  color: var(--pcpe-red); font-size: 11.5px; line-height: 1.45;
}
.pcpe-foreign { color: var(--pcpe-muted); font-size: 11.5px; line-height: 1.45; }
.pcpe-foreign b { color: var(--pcpe-ink); }

/* ---------- Verfuegbarkeits-/Riegel-Zeile (wie .pco-sell-note) ---------- */
.pcpe-avail {
  display: flex; gap: 8px; margin: 0; padding: 9px 11px;
  border-radius: 10px; font-size: 11.5px; line-height: 1.45;
}
.pcpe-avail svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
.pcpe-avail.is-ready { background: var(--pcpe-teal-soft); border: 1px solid rgba(53, 208, 197, .3); color: var(--pcpe-teal); }
.pcpe-avail.is-locked, .pcpe-avail.is-no-adapter {
  background: rgba(255, 93, 108, .1); border: 1px solid rgba(255, 93, 108, .3); color: var(--pcpe-red);
}

/* ---------- Aktionen (Mint wie .pco-plan, Geist wie .pco-toolbtn) ---------- */
.pcpe-actions { display: flex; gap: 8px; }
.pcpe-save {
  display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; border-radius: 10px;
  background: var(--pcpe-mint); color: var(--pcpe-mint-ink);
  font: 600 13px/1 var(--pcpe-font);
}
.pcpe-save:hover:not(:disabled) { filter: brightness(1.06); }
.pcpe-save:disabled { opacity: .5; }
.pcpe-cancel {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px;
  background: var(--pcpe-panel-2); border: 1px solid var(--pcpe-line); border-radius: 10px;
  color: var(--pcpe-ink); font: 500 12.5px/1 var(--pcpe-font);
}
.pcpe-cancel:hover:not(:disabled) { border-color: rgba(53, 208, 197, .4); }
.pcpe-cancel:disabled { opacity: .5; }

/* ---------- Notiz (Erfolg/Fehler, Fehlererhalt) ---------- */
.pcpe-note {
  display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px;
  border-radius: 10px; font-size: 11.5px; line-height: 1.45;
}
.pcpe-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
.pcpe-note.is-ok { background: var(--pcpe-teal-soft); border: 1px solid rgba(53, 208, 197, .3); color: var(--pcpe-teal); }
.pcpe-note.is-err { background: rgba(255, 93, 108, .1); border: 1px solid rgba(255, 93, 108, .3); color: var(--pcpe-red); }

/* ---------- Tore (Laden/Leere/Fan/Gast) ---------- */
.pcpe-gate { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 8px;
  text-align: center; color: var(--pcpe-muted); font-size: 12px; }
.pcpe-gate p { margin: 0; }
.pcpe-gate-ic { color: var(--pcpe-muted); }
.pcpe-gate-ic svg { width: 22px; height: 22px; }

/* ---------- Live-Region (nur Screenreader) ---------- */
.pcpe-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Mobil (Vorlage bricht unter ~1100px einspaltig) ---------- */
@media (max-width: 480px) {
  .pcpe-form { flex-direction: column; }
  .pcpe-field:last-child { flex: 1 1 auto; }
  .pcpe-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: no-preference) {
  .pcpe-save, .pcpe-cancel, .pcpe-select, .pcpe-amount { transition: border-color .15s ease, filter .15s ease, opacity .15s ease; }
}
