/* Reportes: the total and how it splits by method, the web money and where it
   goes, then every car of the period. One color per method everywhere. */
.rep-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #c5ccc8; }
:is(.rep-dot, .rep-bar > span)[data-method="web"] { background: #1f5c40; }
:is(.rep-dot, .rep-bar > span)[data-method="card"] { background: #5b84b1; }
:is(.rep-dot, .rep-bar > span)[data-method="cash"] { background: #c2a46b; }
:is(.rep-dot, .rep-bar > span)[data-method="unrecorded"] { background: repeating-linear-gradient(-45deg, #c2a46b 0 2px, #eadcbf 2px 4px); }
.rep-dot[data-method="unrecorded"] { background: none; box-shadow: inset 0 0 0 1.5px #c2a46b; }
.rep-dot[data-method="fee"] { background: #d3d8d2; }
.rep-dot[data-method="owner"] { background: #8fa89a; }
.rep-dot[data-method="roadless"] { background: #1f5c40; }

.rep-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 14px; margin: 0 0 14px; }
.rep-card { min-width: 0; padding: 20px 22px; 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); }
.rep-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; color: #5f6b64; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.rep-big { display: block; margin: 6px 0 4px; color: #10201a; font-size: 40px; font-weight: 650; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rep-big.is-negative { color: #b9603f; }
.rep-note { margin: 0; color: #7b867f; font-size: 13px; line-height: 1.45; font-variant-numeric: tabular-nums; }

.rep-bar { display: flex; gap: 2px; height: 12px; margin: 18px 0 8px; overflow: hidden; border-radius: 6px; background: #f0f1ee; }
.rep-bar > span { flex: 0 1 0; min-width: 4px; }
.rep-methods { margin: 0; padding: 0; list-style: none; }
.rep-methods li + li { border-top: 1px solid #f3f4f1; }
.rep-method {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 48px 128px;
  align-items: center;
  gap: 12px;
  width: calc(100% + 16px);
  margin: 0 -8px;
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #10201a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.rep-method:hover { background: #f7f7f4; }
.rep-method.is-on { background: #eef3ef; }
.rep-method:focus-visible { outline: 2px solid #143d2b; outline-offset: -2px; }
.rep-method-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 550; }
.rep-method-count, .rep-method-pct { color: #8b958f; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-method-money { font-size: 15px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-method-money.is-estimated { color: #8a5a1c; }
.rep-by {
  display: block;
  margin: -2px 0 8px 16px;
  padding: 0;
  border: 0;
  background: none;
  color: #5f6b64;
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.rep-by:hover { color: #143d2b; }

.rep-web .rep-big { color: #143d2b; }
.rep-ledger { margin: 16px 0 0; }
.rep-ledger[hidden] { display: none; }
.rep-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #f0f1ee; }
.rep-line dt { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; color: #3d4a43; font-size: 14px; }
.rep-line dt small { flex-basis: 100%; padding-left: 16px; color: #8b958f; font-size: 12px; }
.rep-line dt > span:first-child { padding-left: 16px; }
.rep-line dd { margin: 0; color: #3d4a43; font-size: 14px; font-weight: 550; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-line.is-total { border-top-color: #dfe3de; }
.rep-line.is-total dt, .rep-line.is-total dd { color: #10201a; font-weight: 650; }
.rep-line.is-total dd { font-size: 17px; }
.rep-line .is-negative { color: #b9603f; }

.rep-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 18px 20px 10px; }
.rep-list-head .dash-h2 { margin: 0; }
#reportes-sub { margin: 2px 0 0; color: #7b867f; font-size: 13px; font-variant-numeric: tabular-nums; }
.rep-tools { display: flex; align-items: center; gap: 8px; }
#reportes-find { flex: 1; width: 0; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: #10201a; font: inherit; font-size: 13px; }
#reportes-find::placeholder { color: #9aa39d; }
#reportes-csv { flex: none; white-space: nowrap; }
#reportes-csv:disabled { opacity: 0.4; cursor: default; }
.rep-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 20px 14px; }
.rep-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid rgba(16, 32, 26, 0.1); border-radius: 999px; background: #fff; color: #3d4a43; font: inherit; font-size: 13px; font-weight: 550; white-space: nowrap; cursor: pointer; }
.rep-chip small { color: #8b958f; font-size: 12px; font-variant-numeric: tabular-nums; }
.rep-chip:hover { border-color: rgba(20, 61, 43, 0.3); }
.rep-chip.is-on { border-color: #143d2b; background: #143d2b; color: #fff; }
.rep-chip.is-on small { color: rgba(255, 255, 255, 0.7); }

.reportes-table { overflow: hidden; border-top: 1px solid #f0f1ee; background: #fff; }
.reportes-head,
.reportes-row {
  display: grid;
  grid-template-columns: 128px minmax(140px, 1fr) minmax(160px, 1.2fr) minmax(120px, 0.8fr) 140px;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
}
.reportes-head { border-bottom: 1px solid #f0f1ee; background: #fbfbf9; color: #8b958f; font-size: 12px; font-weight: 500; }
.reportes-rows { margin: 0; padding: 0; list-style: none; }
.reportes-row { border-top: 1px solid #f3f4f1; font-size: 14px; }
.reportes-row:first-child { border-top: 0; }
.reportes-head .is-num, .reportes-row .is-num { text-align: right; }
.reportes-row .is-empty { color: #c5ccc8; }
.rep-plate { justify-self: start; padding: 3px 8px; border: 0; border-radius: 7px; background: #f3f4f1; color: #10201a; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; }
.rep-plate:hover { background: #e8ebe6; }
.rep-plate.is-empty { background: none; cursor: default; }
.rep-when, .rep-row-method { display: grid; gap: 2px; min-width: 0; }
.rep-when > span { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-when small, .rep-row-method small { color: #8b958f; font-size: 12px; line-height: 1.35; }
.rep-row-method-name { display: flex; align-items: center; gap: 6px; min-width: 0; color: #3d4a43; }
.rep-who { min-width: 0; overflow: hidden; color: #3d4a43; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.rep-amount { display: grid; justify-items: end; gap: 2px; }
.rep-amount-value { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rep-amount-value.is-estimated { color: #8a5a1c; }
.rep-amount-value.is-refunded { color: #9aa39d; text-decoration: line-through; }
.rep-amount .is-refund { color: #b9603f; font-size: 12px; }
#reportes-empty { margin: 0; padding: 40px 20px; color: #8b958f; text-align: center; }
#reportes-more { margin: 16px auto; }
#reportes-cap { margin: 12px 0 0; color: #8b958f; font-size: 13px; }

@media (max-width: 1080px) {
  .rep-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .rep-card { padding: 16px; }
  .rep-big { font-size: 32px; }
  .rep-method { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .rep-method-count { grid-column: 1; grid-row: 2; padding-left: 16px; text-align: left; font-size: 12px; }
  .rep-method-pct { display: none; }
  .rep-method-money { grid-column: 2; grid-row: 1 / span 2; }
  .rep-list-head { padding: 16px 14px 10px; }
  .rep-tools { flex: 1 1 100%; min-width: 0; }
  .rep-tools .visits-find { flex: 1; width: auto; min-width: 0; height: 40px; }
  .rep-filters { flex-wrap: nowrap; overflow-x: auto; padding: 2px 14px 12px; scrollbar-width: none; }
  .rep-chip { height: 34px; }
  .reportes-head { display: none; }
  .reportes-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "plate amount" "when amount" "method method" "who who"; gap: 6px 12px; padding: 12px 14px; }
  .reportes-row > .rep-plate { grid-area: plate; }
  .reportes-row > .rep-when { grid-area: when; }
  .reportes-row > .rep-row-method { grid-area: method; font-size: 13px; }
  .reportes-row > .rep-who { grid-area: who; font-size: 13px; }
  .reportes-row > .rep-who.is-empty { display: none; }
  .reportes-row > .rep-amount { grid-area: amount; align-self: start; }
  .rep-when > span { font-size: 13px; color: #3d4a43; }
}
