@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800;900&display=swap");
.back-link{display:inline-flex!important;min-height:2.25rem!important;align-items:center!important;gap:.45rem!important;border:1px solid #fde68a!important;border-radius:.5rem!important;background:#fffbeb!important;padding:0 .7rem!important;color:#b45309!important;font-size:.78rem!important;font-weight:600!important;text-decoration:none!important}.back-link:hover{border-color:#fde68a!important;background:#fffbeb!important;color:#b45309!important}.back-link svg{width:1rem!important;height:1rem!important}.icon-back-button,.icon-back-button:hover{border-color:#fde68a!important;background:#fffbeb!important;color:#b45309!important}.icon-back-button img{filter:invert(35%) sepia(78%) saturate(1500%) hue-rotate(359deg) brightness(89%) contrast(92%)}

:root {
  color-scheme: light;
  --bg: #f6f3ea;
  --ink: #20251f;
  --muted: #667064;
  --line: #d7d0c0;
  --surface: #fffdf8;
  --accent: #087f8c;
  --accent-2: #d95d39;
  --danger: #b42318;
  --shadow: 0 12px 36px rgba(32, 37, 31, 0.12);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.back-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.icon-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 52px;
  padding-inline: 12px;
}

.icon-back-button img {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 8px 0 2px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: clamp(25px, 4vw, 42px);
}

.step-card h2 {
  font-weight: 400;
}

.step-denomination-value {
  font-weight: 900;
}

.date-badge,
.context-badge {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.date-badge {
  padding: 10px 12px;
}

.context-badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 8px;
  font-size: 12px;
}

.header-month-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.header-month-summary .metric {
  min-width: 210px;
}

.metric-action {
  min-width: 210px;
  display: grid;
  align-content: center;
  text-align: left;
  border: 1px solid #2a76d2;
  background: #eaf3ff;
  color: #184f9b;
  cursor: pointer;
}

.metric-action strong,
.metric-action span {
  color: inherit;
}

.metric-action:hover {
  background: #dcecff;
}

.month-filter {
  min-width: 190px;
}

.month-filter span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

main {
  padding: 18px 24px 28px;
}

.mode-picker {
  margin-bottom: 16px;
}

.mode-picker-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mode-picker-card::after {
  content: "";
  position: absolute;
  inset: 0 -10px 0 auto;
  width: min(58%, 400px);
  height: 100%;
  background: url("assets/notas.jpg") center / cover no-repeat;
  opacity: 0.42;
  pointer-events: none;
  filter: saturate(0.95) contrast(1.03);
  mask-image: linear-gradient(270deg, rgba(0, 0, 0, 1) 92%, rgba(0, 0, 0, 0.18) 100%);
  -webkit-mask-image: linear-gradient(270deg, rgba(0, 0, 0, 1) 92%, rgba(0, 0, 0, 0.18) 100%);
}

.mode-picker-card > * {
  position: relative;
  z-index: 1;
}

.mode-picker-card .eyebrow {
  margin-bottom: 14px;
}

.mode-picker-card h2 {
  margin-bottom: 14px;
}

.mode-picker-card .step-hint {
  margin-bottom: 32px;
}

.mode-picker-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
}

.mode-picker-actions button {
  min-width: 220px;
  border-color: var(--accent);
  background: #e8f6ee;
  color: var(--accent);
}

.mode-picker-actions button.secondary {
  border-color: #d8c27a;
  background: #fff8dc;
  color: #9a6b00;
}

.mode-picker-actions button.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

.retroactive-step {
  display: grid;
  gap: 18px;
}

.retroactive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.retroactive-step textarea {
  width: 100%;
  min-height: 96px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  padding: 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  resize: vertical;
}

.review-card-retroactive,
.retroactive-detail-card {
  border-color: #f59e0b;
  background: #fffbeb;
}

.review-card-retroactive span,
.retroactive-detail-card span {
  color: #92400e;
}

.retroactive-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 4px;
  padding: 0 8px;
  border: 1px solid #dc2626;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

button.quiet {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(32, 37, 31, 0.4);
}

.confirm-action-dialog {
  width: min(420px, calc(100vw - 32px));
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 28px 60px rgba(32, 37, 31, 0.22);
  padding: 22px;
}

.confirm-action-dialog strong {
  display: block;
  font-size: 24px;
}

.confirm-action-dialog p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.warning-dialog {
  border: 1px solid #facc15;
  background: #fffbeb;
}

.warning-dialog strong {
  color: #92400e;
}

.warning-dialog p {
  color: #78350f;
  white-space: pre-line;
}

.warning-dialog button {
  border-color: #d97706;
  background: #d97706;
  color: #fff;
}

.store-deposit-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 28px 60px rgba(32, 37, 31, 0.22);
}

.store-deposit-dialog-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.store-deposit-dialog-bar strong {
  display: block;
  font-size: 22px;
}

.store-deposit-dialog-body {
  padding: 16px 18px;
}

.store-deposit-dialog-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.store-deposit-dialog-table table {
  min-width: 760px;
}

.store-deposit-dialog-table .collector-input {
  width: 100%;
  min-width: 220px;
}

.deposit-select-input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: #0f766e;
}

.store-deposit-dialog-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.store-deposit-dialog-actions button {
  min-width: 132px;
  min-height: 40px;
  border-color: #0f766e;
  border-radius: 8px;
  background: #0f766e;
  padding: 8px 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.store-deposit-dialog-actions button:hover {
  background: #0d655f;
}

.store-deposit-dialog-bar .quiet {
  min-width: 104px;
  min-height: 38px;
  border-color: #dc2626;
  border-radius: 8px;
  background: #fef2f2;
  padding: 8px 14px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.store-deposit-dialog-bar .quiet:hover {
  background: #fee2e2;
}

.confirm-action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.wizard-shell,
.table-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.wizard-shell {
  padding: 16px;
}

.wizard-progress {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ded0;
}

.progress-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 160ms ease;
}

.wizard-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 16px;
  margin-top: 16px;
}

.wizard-form.partial-mode {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
}

.wizard-form.simple-mode {
  grid-template-columns: minmax(0, 1fr);
}

.step-card {
  min-height: 330px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.step-hint {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.step-title-light {
  font-weight: 400;
}

label {
  max-width: 430px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.money-visual {
  width: min(430px, 100%);
  display: grid;
  gap: 8px;
  margin: 0;
}

.money-photo .money-photo-frame {
  display: contents;
}

.money-photo img {
  display: block;
  width: min(430px, 100%);
  max-height: 176px;
  object-fit: contain;
  border: 0;
  background: transparent;
}

.money-image {
  min-height: 176px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.94), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 243, 234, 0.72)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(8, 127, 140, 0.06) 18px 19px);
}

.money-coin {
  grid-template-columns: repeat(3, 88px);
  gap: 0;
}

.coin-shape {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin-left: calc(var(--shift) * -18px);
  border: 8px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  outline: 2px solid rgba(32, 37, 31, 0.18);
  box-shadow:
    inset 0 12px 18px rgba(255, 255, 255, 0.58),
    inset 0 -14px 20px rgba(32, 37, 31, 0.24),
    inset 0 0 0 9px rgba(255, 255, 255, 0.18),
    0 12px 24px rgba(32, 37, 31, 0.22);
}

.coin-shape:nth-child(2) {
  transform: translateY(-10px);
}

.coin-shape:nth-child(3) {
  transform: translateY(7px);
}

.coin-shape i {
  position: absolute;
  inset: 20px;
  border: 2px solid rgba(32, 37, 31, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.55), transparent 24%),
    radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(32, 37, 31, 0.06));
}

.coin-shape b {
  position: relative;
  z-index: 1;
  color: rgba(32, 37, 31, 0.78);
  font-size: 20px;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 -1px 0 rgba(32, 37, 31, 0.12);
}

.note-shape {
  position: relative;
  width: min(330px, 86%);
  aspect-ratio: 2.25 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.42),
    inset 0 0 0 12px rgba(255, 255, 255, 0.13),
    inset 0 -24px 38px rgba(32, 37, 31, 0.18),
    0 14px 28px rgba(32, 37, 31, 0.18);
}

.note-shape::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 5px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0 2px, transparent 2px 12px),
    radial-gradient(circle at 76% 48%, rgba(255, 255, 255, 0.26), transparent 24%);
}

.note-shape::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.22) 39%, transparent 48%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 7px);
}

.system-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: start;
  width: min(920px, 100%);
}

.system-step label {
  font-size: 13px;
  font-weight: 700;
}

.system-step label span {
  font-weight: 700;
}

.system-visual {
  display: grid;
  justify-items: center;
  align-items: start;
  margin: 0;
  min-height: 300px;
  background: transparent;
}

.system-visual img {
  display: block;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: transparent;
}

.simple-mode .live-summary {
  display: none;
}

.simple-count-wrap {
  width: min(760px, 100%);
  display: grid;
  gap: 10px;
}

.simple-count-table-wrap {
  overflow-x: auto;
}

.simple-count-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: #fff;
}

.simple-count-table th,
.simple-count-table td {
  padding: 6px 10px;
  border: 1px solid #c7d2e1;
  text-align: right;
  line-height: 1.1;
}

.simple-count-table thead th {
  background: #dce8f6;
  color: #1f3a5f;
  font-size: 12px;
}

.simple-count-table th:first-child,
.simple-count-table td:first-child {
  text-align: left;
  font-weight: 800;
}

.simple-count-table td:nth-child(2),
.simple-count-table th:nth-child(2) {
  width: 180px;
}

.simple-count-table td input {
  width: 100%;
  min-height: 34px;
  padding: 4px 8px;
  text-align: right;
}

.simple-count-table tfoot th {
  background: #dce8f6;
  color: #0b1f32;
  font-size: 14px;
}

.system-visual {
  border: 0;
}

.note-band {
  position: absolute;
  left: 0;
  width: 30%;
  height: 100%;
  background: rgba(255, 255, 255, 0.16);
  border-right: 2px solid rgba(255, 255, 255, 0.22);
}

.note-medallion {
  position: absolute;
  right: 28px;
  width: 62px;
  height: 62px;
  border: 3px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.23), transparent 58%),
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.25) 0 8deg, transparent 8deg 16deg);
}

.note-shape b {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 1;
  text-shadow: 0 3px 10px rgba(32, 37, 31, 0.35);
}

.note-shape small {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.money-visual figcaption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.money-copper {
  background: linear-gradient(135deg, #d98b52, #f3c48f 48%, #99522d);
}

.money-silver {
  background: linear-gradient(135deg, #b5c0c7, #eef3f5 48%, #8d9aa1);
}

.money-blue {
  background: linear-gradient(135deg, #246ca8, #56b7d9 48%, #124b78);
}

.money-purple {
  background: linear-gradient(135deg, #7b4aa7, #c08ad6 48%, #583482);
}

.money-red {
  background: linear-gradient(135deg, #b5353f, #e97974 48%, #7e2430);
}

.money-yellow {
  background: linear-gradient(135deg, #c58d13, #f2ca63 48%, #8f6407);
}

.money-brown {
  background: linear-gradient(135deg, #7a573c, #c49b72 48%, #4d3525);
}

.money-teal {
  background: linear-gradient(135deg, #127d7a, #5ec4b6 48%, #075451);
}

input,
select {
  min-height: 50px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 22px;
  font-weight: 800;
}

select {
  font-size: 16px;
}

.live-summary {
  display: grid;
  gap: 10px;
  align-content: start;
}

.summary-card,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
}

.summary-card span,
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-card strong,
.metric strong {
  display: block;
  margin-top: 5px;
  font-size: 26px;
}

.summary-card-primary {
  border-color: #2a76d2;
  background: #eaf3ff;
}

.summary-card-primary span,
.summary-card-primary strong {
  color: #184f9b;
}

.summary-card-secondary {
  border-color: #b7c6d8;
  background: #f6f9fd;
}

.partial-mode .summary-card-primary,
.partial-mode .summary-card-secondary:not(:last-child) {
  display: none;
}

.partial-mode .summary-card-secondary:last-child {
  border-color: var(--danger);
  background: #fff7f6;
}

.partial-mode .summary-card-secondary:last-child span,
.partial-mode .summary-card-secondary:last-child strong {
  color: var(--danger);
}

.metric-pending {
  border-color: #e2b203;
  background: #fff8d9;
}

.metric-pending span,
.metric-pending strong {
  color: #7a5200;
}

.metric-collected {
  border-color: #2f8f54;
  background: #e7f8ee;
}

.metric-collected span,
.metric-collected strong {
  color: #176238;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  grid-column: 1 / -1;
}

.post-save-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.wizard-shell.saved-view .wizard-progress,
.wizard-form.saved-mode .step-card,
.wizard-form.saved-mode .live-summary,
.wizard-form.saved-mode .wizard-actions,
.wizard-form.saved-mode .post-save-actions {
  display: none;
}

.wizard-form.saved-mode {
  grid-template-columns: 1fr;
}

.saved-detail {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #2a76d2;
  border-radius: 8px;
  background: #f4f8ff;
}

.saved-detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.saved-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.saved-detail-content {
  display: grid;
  gap: 12px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.review-save-hero {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.review-save-button {
  width: min(420px, 100%);
  min-height: 78px;
  border-color: #0f766e;
  border-radius: 12px;
  background: #0f766e;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.review-save-button:hover {
  background: #0d655f;
}

.review-card {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.review-card strong {
  font-size: 22px;
}

.review-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.review-card-primary {
  border-color: #2a76d2;
  background: #eaf3ff;
}

.review-card-primary span,
.review-card-primary strong {
  color: #184f9b;
}

.partial-review-grid {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.review-card-deposit {
  border-color: #e2b203;
  background: #fff8d9;
}

.review-card-deposit span,
.review-card-deposit strong {
  color: #7a5200;
}

.review-card-opening {
  border-color: #2f8f54;
  background: #e7f8ee;
}

.review-card-opening span,
.review-card-opening strong {
  color: #176238;
}

.review-table-wrap {
  overflow: visible;
}

.detail-separator td {
  background: #eaf3ff;
  color: #184f9b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.detail-strong td {
  font-weight: 900;
}

button {
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 800;
}

button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

button.delete {
  min-height: 34px;
  border-color: #efd0cc;
  background: #fff;
  color: var(--danger);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.store-deposit-summary {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.store-deposit-rows {
  display: grid;
}

.store-deposit-row {
  display: grid;
  grid-template-columns: minmax(170px, 260px) 1fr;
  gap: 12px;
  align-items: stretch;
  border-top: 1px solid var(--line);
  padding: 12px 14px;
}

.store-deposit-row > strong {
  align-self: center;
  font-size: 18px;
}

.store-deposit-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.store-total {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.store-total small {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.store-total b {
  font-size: 22px;
}

.store-total-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.store-total-count {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.store-total-pending {
  border-color: #e2b203;
  background: #fff8d9;
  color: #7a5200;
}

.store-total-collected {
  border-color: #2f8f54;
  background: #e7f8ee;
  color: #176238;
}

.store-total-action {
  place-items: center;
  border-color: #d4d4d8;
  background: #fafafa;
  color: #0f766e;
  padding: 8px 10px;
}

.store-total-action .store-total-inline {
  justify-content: center;
  width: 100%;
  height: 100%;
}

.store-total-action button {
  width: min(100%, 220px);
  min-height: 36px;
  border-color: #0f766e;
  border-radius: 7px;
  background: #0f766e;
  padding: 6px 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.store-total-action button:hover {
  background: #0d655f;
}

.store-total-action button:disabled {
  border-color: #d4d4d8;
  background: #e4e4e7;
  color: #71717a;
}

.table-shell {
  overflow: auto;
}

.deposit-section {
  margin-bottom: 16px;
  padding-top: 14px;
}

.section-title {
  padding: 0 14px 12px;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: center;
  vertical-align: middle;
}

th {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}

td:nth-child(3) {
  text-align: left;
}

.change-opening-cell {
  background: #e8f5ff;
  color: #075985;
  font-weight: 900;
}

.status-pill {
  min-width: 96px;
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pending {
  border: 1px solid #e2b203;
  background: #fff4bf;
  color: #7a5200;
}

.status-collected {
  border: 1px solid #2f8f54;
  background: #dff7e8;
  color: #176238;
}

td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.collector-input {
  min-height: 38px;
  min-width: 180px;
  font-size: 15px;
}

.review-box {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.wizard-form.review-mode .step-card,
.wizard-form.partial-mode .step-card {
  position: relative;
}

.review-mode .review-box,
.partial-mode .review-box {
  padding-top: 58px;
}

.review-mode .review-save-hero,
.partial-mode .review-save-hero {
  position: absolute;
  top: 34px;
  right: 24px;
  width: min(420px, calc(50% - 32px));
  margin: 0;
}

.review-mode .review-save-button,
.partial-mode .review-save-button {
  width: 100%;
}

.step-input-slot,
.review-grid,
.review-card {
  min-width: 0;
}

.wizard-form.review-mode,
.wizard-form.partial-mode {
  grid-template-columns: minmax(0, 1fr);
}

.review-mode .live-summary,
.partial-mode .live-summary {
  display: none;
}

.review-mode .review-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .review-mode .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-mode .review-box,
  .partial-mode .review-box {
    padding-top: 0;
  }

  .review-mode .review-save-hero,
  .partial-mode .review-save-hero {
    position: static;
    width: 100%;
    margin-bottom: 12px;
  }
}

@media (max-width: 560px) {
  .retroactive-grid,
  .review-mode .review-grid,
  .partial-review-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.empty-state {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.negative {
  color: var(--danger);
}

.positive {
  color: #15803d;
}

.closing-diff-critical {
  color: var(--danger);
  font-weight: 900;
}

.closing-diff-critical.negative {
  color: var(--danger);
}

@media (max-width: 860px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  main {
    padding: 14px;
  }

  .wizard-form {
    grid-template-columns: 1fr;
  }

  .mode-picker-card::after {
    width: 50%;
    opacity: 0.38;
  }

  .step-card {
    min-height: 260px;
  }

  .wizard-actions {
    flex-direction: column-reverse;
  }

  .post-save-actions {
    justify-content: stretch;
  }

  .post-save-actions .secondary {
    width: 100%;
  }

  .store-deposit-row,
  .store-deposit-values {
    grid-template-columns: 1fr;
  }

  .date-badge {
    width: 100%;
    text-align: center;
  }

  .header-month-summary {
    grid-template-columns: 1fr;
  }

  .header-month-summary .metric,
  .metric-action,
  .month-filter {
    width: 100%;
    min-width: 0;
  }

  .table-shell {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  td {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(118px, 146px) minmax(0, 1fr);
    gap: 10px;
    border-right: 0;
    padding: 10px 12px;
    text-align: left !important;
    align-items: center;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  td[data-label="Detalhe"],
  td[data-label="Acao"] {
    grid-template-columns: 1fr;
  }

  td[data-label="Detalhe"]::before,
  td[data-label="Acao"]::before {
    margin-bottom: 2px;
  }

  .empty-state {
    display: block;
  }

  .empty-state::before {
    content: none;
  }
}

/* Tema moderno: somente apresentação. Imagens e fluxo permanecem intactos. */
:root{--bg:#fafafa;--ink:#18181b;--muted:#71717a;--line:#e4e4e7;--surface:#fff;--accent:#0f766e;--accent-2:#047857;--shadow:0 1px 2px rgba(0,0,0,.03),0 8px 24px rgba(0,0,0,.035);font-family:"Inter",ui-sans-serif,system-ui,sans-serif}body{background:#fafafa;color:#18181b;-webkit-font-smoothing:antialiased}.app-header{position:sticky;top:0;z-index:40;display:block;padding:0;border-color:rgba(228,228,231,.8);background:rgba(255,255,255,.94);backdrop-filter:blur(16px)}.header-container{width:min(1280px,100%);margin:0 auto;padding:12px 24px}.header-main-row,.header-brand-block,.header-badges{display:flex;align-items:center}.header-main-row{justify-content:space-between;gap:16px}.header-brand-block{min-width:0;gap:12px}.header-divider{width:1px;height:32px;background:#e4e4e7}.module-mark{display:grid;width:40px;height:40px;flex:0 0 auto;place-items:center;border-radius:11px;background:#faf5ff;color:#7e22ce}.module-mark svg{width:19px;height:19px}.header-brand{margin:0;color:#71717a;font-size:12px;font-weight:500}.app-header h1{margin:1px 0 0;font-size:18px;font-weight:600;letter-spacing:-.02em}.back-link{min-height:36px;gap:7px;border:1px solid #e4e4e7;border-radius:8px;background:#fff;padding:0 11px;color:#3f3f46;font-size:13px;font-weight:600}.back-link img{width:15px;height:15px}.header-badges{justify-content:flex-end;gap:8px}.context-badge,.date-badge{display:inline-flex;min-height:34px;align-items:center;margin:0;border:1px solid #e4e4e7;border-radius:8px;background:#fafafa;padding:0 11px;color:#52525b;font-size:12px;font-weight:600}.context-badge{border-color:#d1fae5;background:#ecfdf5;color:#047857}
.header-month-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:12px}.header-month-summary .metric{min-height:62px;border:1px solid #e4e4e7;border-radius:10px;background:#fafafa;padding:10px 12px;box-shadow:none}.header-month-summary .metric span{color:#71717a;font-size:10px;font-weight:600;letter-spacing:.06em}.header-month-summary .metric strong{margin-top:4px;font-size:14px;font-weight:600}.header-month-summary .month-filter select{min-height:30px;border:0;background:transparent;padding:0;font-size:13px;font-weight:600}.header-month-summary .metric-pending{border-color:#fed7aa;background:#fff7ed}.header-month-summary .metric-collected{border-color:#bbf7d0;background:#f0fdf4}.header-month-summary .metric-action{color:#fff;background:#18181b}
main{width:min(1280px,100%);margin:0 auto;padding:24px}.wizard-shell,.table-shell,.store-deposit-summary,.entry-panel{border-color:#e4e4e7;border-radius:16px;background:#fff;box-shadow:var(--shadow)}.mode-picker-card{border-color:#e4e4e7;border-radius:16px;background:#fff;box-shadow:0 24px 60px rgba(24,24,27,.15)}.mode-picker-card::after{opacity:.1}.mode-picker-card h2,.step-card h2{font-weight:600;letter-spacing:-.025em}.mode-picker-actions button,.wizard-actions button,.saved-detail-actions button,.post-save-actions button,.confirm-action-buttons button,.deposit-section button{min-height:40px;border-radius:8px;background:#18181b;padding:0 14px;font-size:12px;font-weight:600;box-shadow:none}.mode-picker-actions button.secondary,.wizard-actions button.secondary,.saved-detail-actions button.secondary,.post-save-actions button.secondary,.confirm-action-buttons button.secondary{border:1px solid #e4e4e7;background:#fff;color:#3f3f46}.mode-picker-actions button.selected{border-color:#0f766e;background:#0f766e;color:#fff}.wizard-progress{border-color:#e4e4e7}.progress-track{background:#e4e4e7}.progress-track i{background:#0f766e}.wizard-form{gap:16px}.step-card{border-color:#e4e4e7;border-radius:12px;background:#fff;padding:22px}.step-card .eyebrow{color:#0f766e;font-size:11px;font-weight:600;letter-spacing:.14em}.step-hint{color:#71717a;font-weight:500}.step-denomination-value{color:#0f766e}.money-photo img,.system-visual img{filter:none}.money-image{border-color:#e4e4e7;border-radius:12px;background:#fafafa}.money-visual figcaption{color:#71717a;font-size:11px;font-weight:600}label{color:#52525b;font-size:11px;font-weight:600;letter-spacing:.06em}input,select{min-height:48px;border-color:#d4d4d8;border-radius:8px;background:#fff;font-weight:600;outline:none}input:focus,select:focus{border-color:#0f766e;box-shadow:0 0 0 3px rgba(13,148,136,.12)}.summary-card,.metric{border-color:#e4e4e7;border-radius:10px;background:#fafafa}.summary-card span,.metric span{color:#71717a;font-size:10px;font-weight:600}.summary-card strong,.metric strong{font-weight:600}.summary-card-primary{border-color:#dbeafe;background:#eff6ff}.summary-card-secondary{border-color:#e4e4e7;background:#fafafa}.closing-diff-critical{border-color:#fecaca!important;background:#fef2f2!important}.saved-detail{border-color:#e4e4e7;border-radius:12px}.saved-detail-bar{background:#fafafa}.store-deposit-row{border-color:#e4e4e7;border-radius:10px;background:#fafafa}.table-shell{overflow:auto}table{border-collapse:collapse}th{background:#fafafa;color:#71717a;font-size:10px;font-weight:600}th,td{border-color:#e4e4e7}.status-pill{border-radius:999px;font-size:10px;font-weight:600}.confirm-action-dialog{border:1px solid #e4e4e7;border-radius:16px;background:#fff;box-shadow:0 28px 70px rgba(0,0,0,.2)}
@media(max-width:900px){.header-container{padding:12px 16px}.header-month-summary{grid-template-columns:repeat(2,1fr)}.header-month-summary .metric-action{grid-column:1/-1}.header-divider{display:none}.back-link span{display:none}main{padding:16px}}@media(max-width:560px){.header-badges{align-items:flex-end;flex-direction:column}.date-badge{display:none}.header-month-summary{grid-template-columns:1fr}.header-month-summary .metric-action{grid-column:auto}}

/* Campo numérico do passo atual: compacto, destacado e centralizado. */
#stepInputSlot input#stepValue{width:min(260px,100%);min-height:62px;margin-right:0;margin-left:0;padding:8px 14px;text-align:center;font-size:30px;font-weight:800;letter-spacing:.02em}

/* Botões primários precisam manter contraste sobre o fundo escuro. */
.wizard-actions button:not(.secondary),.saved-detail-actions button:not(.secondary),.post-save-actions button:not(.secondary),.confirm-action-buttons button:not(.secondary),.deposit-section button{border-color:#0f766e;background:#0f766e;color:#fff}.wizard-actions button:not(.secondary):hover,.saved-detail-actions button:not(.secondary):hover,.post-save-actions button:not(.secondary):hover,.confirm-action-buttons button:not(.secondary):hover,.deposit-section button:hover{background:#0d655f}.header-month-summary .metric-action span,.header-month-summary .metric-action strong{color:#fff}

.mode-picker-actions button{border:1px solid #e4e4e7;background:#fff;color:#3f3f46}
.mode-picker-actions button:hover{background:#f8fafc}
.mode-picker-actions button.selected,.mode-picker-actions button.selected:hover{border-color:#0f766e;background:#0f766e;color:#fff}

/* Botao "Ver Detalhes" no padrao verde claro da visao gerencial. */
button[data-detail] {
  min-height: 34px;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  background: #d1fae5;
  color: #047857;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}

button[data-detail]:hover {
  border-color: #86efac;
  background: #bbf7d0;
  color: #047857;
}

/* Fechamento diario compacto: conteudo no topo, sem alterar a logica do fluxo. */
.wizard-form:not(.review-mode):not(.partial-mode) {
  align-items: start;
  margin-top: 12px;
}

.wizard-form:not(.review-mode):not(.partial-mode) .step-card {
  min-height: 230px;
  align-content: start;
  padding: 18px;
}

.wizard-form:not(.review-mode):not(.partial-mode) .live-summary {
  gap: 8px;
}

.wizard-form:not(.review-mode):not(.partial-mode) .summary-card {
  padding: 10px 12px;
}

.wizard-form:not(.review-mode):not(.partial-mode) .summary-card strong {
  margin-top: 4px;
  font-size: 22px;
}

/* Cards de saquinho no topo com o mesmo porte dos cards laterais do fechamento. */
.header-month-summary .metric-pending,
.header-month-summary .metric-collected {
  min-height: 70px;
  align-content: center;
  padding: 10px 12px;
}

.header-month-summary .metric-pending strong,
.header-month-summary .metric-collected strong {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 600;
}

/* Resumo gerencial por loja mais compacto para evitar rolagem vertical. */
.store-deposit-summary .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
}

.metric-retroactive-action {
  display: grid;
  align-content: center;
  text-align: left;
  border-color: #facc15;
  background: #facc15;
  color: #713f12;
  cursor: pointer;
}

.metric-retroactive-action strong,
.metric-retroactive-action span {
  color: inherit;
}

.metric-retroactive-action:hover {
  border-color: #eab308;
  background: #eab308;
}

.header-month-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .header-month-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-month-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-month-summary .metric-action {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .header-month-summary {
    grid-template-columns: 1fr;
  }
}

.store-deposit-row {
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 10px;
  padding: 9px 12px;
}

.store-deposit-row > strong {
  font-size: 15px;
}

.store-deposit-values {
  gap: 8px;
}

.store-total {
  gap: 3px;
  min-height: 58px;
  padding: 8px 10px;
}

.store-total small {
  font-size: 10px;
}

.store-total b {
  font-size: 16px;
}

.store-total-count {
  font-size: 10px;
}

.store-total-pending .store-total-inline {
  gap: 4px;
}

/* Acoes iniciais do contador: botoes mais informativos e faceis de escanear. */
.mode-picker-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mode-picker-actions .mode-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 66px;
  padding: 10px 14px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
  color: #27272a;
  text-align: left;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.mode-picker-actions .mode-action:hover {
  border-color: #b6c5d1;
  background: #f8fafc;
  box-shadow: 0 10px 24px rgba(24, 24, 27, 0.08);
  transform: translateY(-1px);
}

.mode-picker-actions .mode-action.selected,
.mode-picker-actions .mode-action.selected:hover {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #064e3b;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12), 0 10px 24px rgba(15, 118, 110, 0.12);
}

.mode-action-icon {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 8px;
  background: #f4f4f5;
  color: #0f766e;
}

.mode-action-day .mode-action-icon {
  background: #ecfdf5;
}

.mode-action-partial .mode-action-icon {
  background: #eff6ff;
  color: #2563eb;
}

.mode-action-count .mode-action-icon {
  background: #fff7ed;
  color: #c2410c;
}

.mode-action-day .mode-action-icon::before {
  content: "";
  width: 18px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 5px;
  box-sizing: border-box;
  box-shadow: inset 0 5px 0 rgba(15, 118, 110, 0.16);
}

.mode-action-day .mode-action-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, 2px);
}

.mode-action-partial .mode-action-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}

.mode-action-partial .mode-action-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(3px, -2px);
  transform-origin: left bottom;
}

.mode-action-count .mode-action-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 5px;
  box-sizing: border-box;
  box-shadow: inset 0 -6px 0 rgba(194, 65, 12, 0.16);
}

.mode-action-count .mode-action-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
  transform: translateY(-4px);
}

.mode-action-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mode-action-copy strong,
.mode-action-copy small {
  overflow-wrap: anywhere;
}

.mode-action-copy strong {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.mode-action-copy small {
  color: #71717a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.mode-picker-actions .mode-action.selected .mode-action-copy small {
  color: #047857;
}

@media (max-width: 760px) {
  .mode-picker-actions {
    grid-template-columns: 1fr;
  }
}

/* Avisos seguem o visual limpo do projeto, sem parecer alerta nativo. */
.warning-dialog {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(24, 24, 27, 0.18);
}

.warning-dialog::backdrop {
  background: rgba(24, 24, 27, 0.36);
  backdrop-filter: blur(2px);
}

.warning-dialog-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.warning-dialog-icon {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 8px;
  background: #fff7ed;
  color: #c2410c;
}

.warning-dialog-icon::before {
  content: "";
  width: 0;
  height: 0;
  border-right: 10px solid transparent;
  border-bottom: 18px solid currentColor;
  border-left: 10px solid transparent;
  transform: translateY(-1px);
}

.warning-dialog-icon::after {
  content: "!";
  position: absolute;
  top: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.warning-dialog .warning-dialog-header strong {
  color: #18181b;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.warning-dialog p {
  margin: 16px 0 0;
  color: #3f3f46;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-line;
}

.warning-dialog .confirm-action-buttons {
  margin-top: 22px;
}

.warning-dialog button,
.warning-dialog .confirm-action-buttons button {
  min-width: 96px;
  min-height: 40px;
  border: 1px solid #0f766e;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}

.warning-dialog button:hover,
.warning-dialog .confirm-action-buttons button:hover {
  border-color: #0d655f;
  background: #0d655f;
}

/* Resumo mensal: cards mais compactos e separados no topo. */
.header-month-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 16px !important;
  column-gap: 16px !important;
  row-gap: 12px !important;
}

.header-month-summary .metric {
  min-width: 0 !important;
  width: 100%;
  box-sizing: border-box;
  min-height: 62px;
  padding: 9px 12px;
}

.header-month-summary .metric span {
  font-size: 10px;
  line-height: 1.2;
}

.header-month-summary .metric strong {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.2;
}

.header-month-summary .metric-pending,
.header-month-summary .metric-collected {
  min-height: 62px;
}

.header-month-summary .metric-pending strong,
.header-month-summary .metric-collected strong {
  font-size: 21px;
}

.header-month-summary .metric-retroactive-action {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.header-month-summary .metric-retroactive-action span,
.header-month-summary .metric-retroactive-action strong {
  color: #991b1b;
}

.header-month-summary .metric-retroactive-action:hover {
  border-color: #fca5a5;
  background: #fee2e2;
}

.header-month-summary .month-filter input[type="month"] {
  width: 100%;
  min-height: 30px;
  margin-top: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #18181b;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.header-month-summary .month-filter input[type="month"]:focus {
  box-shadow: none;
}

@media (max-width: 1100px) {
  .header-month-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-month-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-month-summary .metric-action {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .header-month-summary {
    grid-template-columns: 1fr;
  }
}
