/* Cobros y Reportes: one period bar, one money tile, one list card. */
.money-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 16px 0 14px;
  padding: 8px;
  border: 1px solid rgba(16, 32, 26, 0.06);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 32, 26, 0.03);
}
.money-tabs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: #eff0ec; }
.money-tabs button {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5f6b64;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.money-tabs button:hover { color: #10201a; }
.money-tabs button.is-on { background: #143d2b; color: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(16, 32, 26, 0.18); }
.money-tabs button:focus-visible { outline: 2px solid #143d2b; outline-offset: 2px; }
.money-nav { display: flex; align-items: center; gap: 8px; }
.money-label { min-width: 15em; color: #10201a; font-size: 14px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.money-label:empty::before { content: "…"; color: #9aa39d; }
.money-nav .dash-icon-button:disabled { opacity: 0.35; cursor: default; }

.money-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.money-stats[hidden] { display: none; }
.money-stat {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 32, 26, 0.06);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 32, 26, 0.03);
}
.money-stat > span { color: #7b867f; font-size: 12.5px; font-weight: 500; }
.money-stat strong { color: #10201a; font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.money-stat small { color: #8b958f; font-size: 12px; }
.money-stat.is-web { border-color: rgba(20, 61, 43, 0.22); }
.money-stat.is-web > span { color: #143d2b; font-weight: 600; }
.money-stat.is-owner,
.money-stat.is-roadless { background: #f3f6f2; }
.money-stat .is-negative { color: #b9603f; }

.money-note { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; background: #f3f4f1; color: #5f6b64; font-size: 13px; line-height: 1.5; }
.money-note[hidden] { display: none; }
.money-note.is-missing { background: #f6efdf; color: #8a5a1c; }

.money-list { margin: 14px 0 0; overflow: hidden; border: 1px solid rgba(16, 32, 26, 0.06); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16, 32, 26, 0.03), 0 8px 24px rgba(16, 32, 26, 0.04); }
.money-list .activity-list-heading { gap: 12px 16px; flex-wrap: wrap; }
.money-list .reportes-table { border: 0; border-radius: 0; }
.money-list #reportes-csv:disabled { opacity: 0.4; cursor: default; }
.money-foot { margin: 14px 2px 0; color: #8b958f; font-size: 12px; line-height: 1.6; }

/* Cobros uses the Corte table: Fecha, Placa, Pagado, Reembolsado, Forma de pago, Reembolsar. */
.corte-head.pay-row,
.corte-row.pay-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 0.8fr); }
.pay-provider { color: #5f6b64; text-decoration: underline; text-decoration-color: rgba(95, 107, 100, 0.35); text-underline-offset: 2px; }
.pay-provider:hover { color: #10201a; }
.pay-action { justify-self: end; }
.money-list #payments-pager { margin: 0; padding: 12px 20px 16px; }
@container (max-width: 720px) {
  .corte-row.pay-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "plate paid"
      "when tender"
      "refunded refunded"
      "action action";
  }
  .corte-row.pay-row::after { content: none; }
  .pay-action { grid-area: action; justify-self: start; }
  .pay-action:empty { display: none; }
}

@media (max-width: 1100px) {
  .money-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .money-period { flex-direction: column; align-items: stretch; }
  .money-tabs { display: flex; }
  .money-tabs button { flex: 1; height: 36px; padding: 0 8px; }
  .money-nav { justify-content: space-between; }
  .money-label { flex: 1; min-width: 0; }
  .money-stats { gap: 10px; }
  .money-stat { padding: 12px 14px; }
  .money-stat strong { font-size: 19px; }
}
