/* =============================================================
   pcp-currency-panel.css — Panel Moneda & Impuestos
   Encaja con el tema oscuro de VeryFactu / Prestax
   ============================================================= */

/* ── Contenedor principal ────────────────────────────────────── */
#pcp-currency-details.pcp-panel {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid rgba(21, 132, 63, 0.25);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
#pcp-currency-details.pcp-panel:hover {
  border-color: rgba(21, 132, 63, 0.45);
  box-shadow:
    0 0 0 3px rgba(21, 132, 63, 0.08),
    0 6px 24px rgba(0, 0, 0, 0.35);
}
#pcp-currency-details.pcp-panel[open] {
  border-color: rgba(21, 132, 63, 0.5);
  box-shadow:
    0 0 0 3px rgba(21, 132, 63, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── Summary (botón de apertura) ─────────────────────────────── */
#pcp-currency-details .pcp-panel__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(
    91deg,
    rgb(21 132 63) 0%,
    rgb(21 132 63 / 50%) 100%
  );
  border-bottom: 2px solid #000000;
  border-radius: 10px;
  transition: background 0.2s;
}
#pcp-currency-details .pcp-panel__summary::-webkit-details-marker {
  display: none;
}
#pcp-currency-details .pcp-panel__summary::marker {
  display: none;
}

#pcp-currency-details[open] .pcp-panel__summary {
  border-bottom-color: rgb(54 255 0);
  background: linear-gradient(135deg, rgb(0 95 36) 0%, rgb(1 17 7 / 85%) 100%);
}

#pcp-currency-details .pcp-panel__icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
#pcp-currency-details .pcp-panel__title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}
#pcp-currency-details .pcp-panel__sep {
  color: #ffd204;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 2px;
}
#pcp-currency-details .pcp-panel__chevron {
  color: rgb(0 0 0);
  display: flex;
  align-items: center;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.2s;
}
#pcp-currency-details[open] .pcp-panel__chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

/* ── Cuerpo ──────────────────────────────────────────────────── */
#pcp-currency-details .pcp-panel__body {
  padding: 9px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Sección (divisa / impuesto) ─────────────────────────────── */
#pcp-currency-details .pcp-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 16px;
}
#pcp-currency-details .pcp-section__header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
}
#pcp-currency-details .pcp-section__dot {
  width: 10px;
  height: 6px;
  border-radius: 50%;
  background: #15843f;
  box-shadow: 0 0 6px rgba(21, 132, 63, 0.7);
  flex-shrink: 0;
}
#pcp-currency-details .pcp-section__label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(25 69 1);
}

/* ── Divisor ─────────────────────────────────────────────────── */
#pcp-currency-details .pcp-divider {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(21, 132, 63, 0.3) 30%,
    rgba(21, 132, 63, 0.3) 70%,
    transparent 100%
  );
  margin: 0 0 16px;
}

/* ── Campo ───────────────────────────────────────────────────── */
#pcp-currency-details .pcp-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#pcp-currency-details .pcp-field--grow {
  flex: 1;
}

#pcp-currency-details .pcp-row2 {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: end;
}

/* ── Labels ──────────────────────────────────────────────────── */
#pcp-currency-details .pcp-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgb(0 0 0 / 50%);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Inputs & Selects ────────────────────────────────────────── */
#pcp-currency-details .pcp-input,
#pcp-currency-details .pcp-select {
  width: 100%;
  background: rgb(56 113 33 / 12%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  padding: 8px 10px;
  outline: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
#pcp-currency-details .pcp-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}
#pcp-currency-details .pcp-select option {
  background: #0f1622;
  color: rgba(255, 255, 255, 0.9);
}
#pcp-currency-details .pcp-input:focus,
#pcp-currency-details .pcp-select:focus {
  border-color: rgba(21, 132, 63, 0.7);
  background: rgba(21, 132, 63, 0.07);
  box-shadow: 0 0 0 3px rgba(21, 132, 63, 0.15);
}

/* Símbolo: centrado y grande */
#pcp-currency-details .pcp-input--symbol {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #15843f;
  padding: 6px 8px;
}

/* Input añadir tasa */
#pcp-currency-details .pcp-input--rate {
  width: 70px;
  text-align: right;
  padding: 7px 8px;
  border-radius: 8px 0 0 8px;
  border-right: none;
  flex-shrink: 0;
}
#pcp-currency-details .pcp-input--rate:focus {
  z-index: 1;
  position: relative;
}

/* ── Vista previa ────────────────────────────────────────────── */
#pcp-currency-details .pcp-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    135deg,
    rgba(21, 132, 63, 0.12) 0%,
    rgba(21, 132, 63, 0.05) 100%
  );
  border: 1px solid rgba(21, 132, 63, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 2px;
}
#pcp-currency-details .pcp-preview__lbl {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(0 0 0 / 71%);
}
#pcp-currency-details .pcp-preview__val {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #15843f;
  text-shadow: 0 0 16px rgba(21, 132, 63, 0.5);
  font-variant-numeric: tabular-nums;
  transition: all 0.2s;
}

/* ── Pills de tasas ──────────────────────────────────────────── */
#pcp-currency-details .pcp-rate-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 32px;
  padding: 2px 0 4px;
}
#pcp-currency-details .pcp-rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(21, 132, 63);
  border: 2px solid rgb(10 10 10);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 4px 5px 4px 11px;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  user-select: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.1s;
  cursor: default;
}
#pcp-currency-details .pcp-rate-pill:hover {
  background: rgba(21, 132, 63, 0.25);
  border-color: rgba(21, 132, 63, 0.6);
  transform: translateY(-1px);
}
#pcp-currency-details .pcp-pill-rm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: rgba(255, 255, 255, 1.5);
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0;
  margin: 0;
  transition:
    background 0.15s,
    color 0.15s;
}
#pcp-currency-details .pcp-pill-rm:hover {
  background: rgba(248, 113, 113, 0.3);
  color: #f87171;
}

/* ── Fila "añadir tasa" ──────────────────────────────────────── */
#pcp-currency-details .pcp-add-rate {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 8px;
}
#pcp-currency-details .pcp-add-rate__unit {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 7px 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}
#pcp-currency-details .pcp-btn {
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 7px 13px;
  transition:
    background 0.15s,
    transform 0.1s,
    box-shadow 0.15s;
  white-space: nowrap;
  margin-left: 6px;
}
#pcp-currency-details .pcp-btn:active {
  transform: scale(0.97);
}

#pcp-currency-details .pcp-btn--add {
  background: #15843f;
  color: #fff;
  box-shadow: 0 2px 8px rgba(21, 132, 63, 0.35);
}
#pcp-currency-details .pcp-btn--add:hover {
  background: #036027;
  box-shadow: 0 3px 12px rgba(21, 132, 63, 0.5);
}
#pcp-currency-details .pcp-btn--reset {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  padding: 7px 10px;
}
#pcp-currency-details .pcp-btn--reset:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

/* ── Nota informativa ────────────────────────────────────────── */
#pcp-currency-details .pcp-note {
  font-size: 1.08rem;
  line-height: 1.5;
  color: rgb(13 124 0);
  text-align: center;
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
