/* /funcionalidades/pagos/ — the money ledger and the "Registrar un cobro"
   window over it. Only what pantallas-demo.css does not already draw: the
   figures' hint line, the ledger's date and document links, the date-range
   inputs of the toolbar, and the product's Modal (size 2xl) with its fields. */

/* StatCard's hint: "17 pagos" under the figure. */
.pn-frame[data-screen="payments"] .pm-hint {
  margin-top: -4px;
  color: var(--ac-dim);
  font-size: 9.5px;
}

/* The date leads the row, in the monospace accent the product links it in. */
.pn-frame[data-screen="payments"] .pm-date {
  color: var(--ac-accent);
  font-family: var(--ac-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.pn-frame[data-screen="payments"] .pm-doc {
  color: var(--ac-accent);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.pn-frame[data-screen="payments"] .pm-quiet {
  color: var(--ac-mut);
  font-size: 10.5px;
}

.pn-frame[data-screen="payments"] .pm-amount { font-weight: 600; }
.pn-frame[data-screen="payments"] .pm-amount.is-credit,
.pn-frame[data-screen="payments"] .pm-amount.is-credit .pn-cur { color: #b45309; }

/* "Desde [date]" and "Hasta [date]": the label beside a date input. */
.pn-frame[data-screen="payments"] .pm-range {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ac-mut);
  font-size: 10.5px;
  white-space: nowrap;
}

.pn-frame[data-screen="payments"] .pm-dateinput {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 27px;
  padding: 0 7px 0 8px;
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ac-ink);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.pn-frame[data-screen="payments"] .pm-dateinput svg {
  width: 12px;
  height: 12px;
  color: var(--ac-dim);
}

/* ---------- the window ---------- */

.pn-frame[data-screen="payments"] .pm-scrim {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(17 19 24 / 25%);
}

.pn-frame[data-screen="payments"] .pm-dialog {
  display: flex;
  flex-direction: column;
  width: 540px;
  overflow: hidden;
  border: 1px solid var(--ac-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgb(17 19 24 / 14%), 0 8px 10px -6px rgb(17 19 24 / 10%);
}

.pn-frame[data-screen="payments"] .pm-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 13px;
  border-bottom: 1px solid var(--ac-line);
}

.pn-frame[data-screen="payments"] .pm-dialog-head b {
  font-size: 14.5px;
  font-weight: 650;
}

.pn-frame[data-screen="payments"] .pm-close {
  width: 15px;
  height: 15px;
  color: var(--ac-dim);
}

.pn-frame[data-screen="payments"] .pm-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 15px 20px 18px;
}

.pn-frame[data-screen="payments"] .pm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 13px;
}

.pn-frame[data-screen="payments"] .pm-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pn-frame[data-screen="payments"] .pm-label {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ac-ink);
  font-size: 11px;
  font-weight: 550;
}

/* RequiredIndicator: a dot and "Obligatorio" in the accent. */
.pn-frame[data-screen="payments"] .pm-req {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgb(70 117 87 / 9%);
  box-shadow: inset 0 0 0 1px rgb(70 117 87 / 20%);
  color: var(--ac-accent);
  font-size: 8.5px;
  font-weight: 650;
  line-height: 1;
}

.pn-frame[data-screen="payments"] .pm-req::before {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.pn-frame[data-screen="payments"] .pm-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 1px rgb(17 19 24 / 3%);
  color: var(--ac-ink);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.pn-frame[data-screen="payments"] .pm-input em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pn-frame[data-screen="payments"] .pm-input.is-required { border-color: rgb(70 117 87 / 45%); }
.pn-frame[data-screen="payments"] .pm-input svg { flex-shrink: 0; color: var(--ac-dim); }

.pn-frame[data-screen="payments"] .pm-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pn-frame[data-screen="payments"] .pm-h3 {
  font-size: 11.5px;
  font-weight: 650;
}

.pn-frame[data-screen="payments"] .pm-help {
  margin-top: -5px;
  color: var(--ac-dim);
  font-size: 9.5px;
}

.pn-frame[data-screen="payments"] .pm-alloc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: end;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid var(--ac-line);
  border-radius: 9px;
}

.pn-frame[data-screen="payments"] .pm-alloc-doc {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 4px;
}

.pn-frame[data-screen="payments"] .pm-alloc-doc b {
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pn-frame[data-screen="payments"] .pm-alloc-doc em {
  color: var(--ac-dim);
  font-size: 9.5px;
}

.pn-frame[data-screen="payments"] .pm-alloc-doc .pn-cur { color: inherit; font-size: 1em; font-weight: inherit; margin-right: 3px; }

.pn-frame[data-screen="payments"] .pm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}
