.recap-admin-page .admin-main-header,
.recap-workspace {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.recap-workspace {
  display: grid;
  align-items: start;
}

.recap-print-report {
  display: none;
}

.synthesis-period-header,
.section-heading,
.dog-group > header {
  position: static;
  width: auto;
  height: auto;
  min-height: 0;
  overflow: visible;
  background: transparent;
}

.synthesis-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid rgba(29, 26, 22, 0.08);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.97);
  box-shadow: 0 18px 50px rgba(92, 54, 36, 0.05);
  animation: synthesis-enter 0.42s ease both;
}

.synthesis-panel > * {
  min-width: 0;
}

@keyframes synthesis-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.synthesis-period-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row;
  gap: 28px;
  padding-bottom: 28px;
}

.synthesis-period-copy h2 {
  margin: 2px 0 0;
  color: var(--admin-ink);
  font-size: clamp(2.3rem, 3.4vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

#recapStatus {
  min-height: 20px;
  margin: 9px 0 0;
  color: var(--admin-muted);
  font-size: 1rem;
  font-weight: 600;
}

.synthesis-period-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 520px;
}

.period-choice {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 10px;
  background: rgba(242, 236, 229, 0.92);
}

.period-choice label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.period-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.period-choice span {
  display: grid;
  min-height: 44px;
  padding: 0 13px;
  place-items: center;
  border-radius: 7px;
  color: var(--admin-muted);
  font-size: 1rem;
  font-weight: 720;
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.period-choice input:checked + span {
  background: #fff;
  color: var(--admin-ink);
  box-shadow: 0 4px 12px rgba(92, 54, 36, 0.08);
}

.period-choice input:focus-visible + span {
  outline: 2px solid var(--admin-action);
  outline-offset: 2px;
}

.period-navigator {
  display: flex;
  align-items: center;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid rgba(29, 26, 22, 0.1);
  border-radius: 10px;
  background: #fff;
}

.period-arrow,
.period-picker,
.current-period-button {
  min-height: 44px;
}

.period-arrow {
  display: grid;
  width: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--admin-ink);
  font: inherit;
  cursor: pointer;
  place-items: center;
}

.period-arrow span {
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-1px);
}

.period-arrow:hover {
  background: var(--admin-action-soft);
  color: var(--admin-action-strong);
}

.period-picker {
  display: grid;
  min-width: 72px;
  padding: 0 10px;
  border-top: 0;
  border-bottom: 0;
  border-right: 1px solid rgba(29, 26, 22, 0.08);
  border-left: 1px solid rgba(29, 26, 22, 0.08);
  background: transparent;
  place-items: center;
  color: var(--admin-muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.period-picker:hover {
  background: var(--admin-action-soft);
  color: var(--admin-action-strong);
}

.current-period-button {
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--admin-action-strong);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 750;
  cursor: pointer;
}

.current-period-button:hover {
  background: var(--admin-action-soft);
}

.period-arrow:disabled,
.current-period-button:disabled,
.period-picker:disabled {
  opacity: 0.45;
  cursor: wait;
}

.synthesis-metrics {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  border-top: 1px solid rgba(29, 26, 22, 0.09);
  border-bottom: 1px solid rgba(29, 26, 22, 0.09);
}

.synthesis-metric {
  display: flex;
  min-width: 0;
  min-height: 126px;
  padding: 22px clamp(18px, 2.4vw, 32px);
  border-right: 1px solid rgba(29, 26, 22, 0.09);
  flex-direction: column;
  justify-content: center;
}

.synthesis-metric:first-child {
  padding-left: 0;
}

.synthesis-metric:last-child {
  padding-right: 0;
  border-right: 0;
}

.synthesis-metric > strong {
  color: var(--admin-ink);
  font-size: clamp(3.2rem, 5vw, 5.8rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.synthesis-metric > span {
  margin-top: 10px;
  color: var(--admin-ink);
  font-size: 1.1rem;
  font-weight: 720;
  line-height: 1.25;
}

.synthesis-metric small {
  margin-top: 7px;
  color: var(--admin-muted);
  font-size: 0.98rem;
  font-weight: 620;
  line-height: 1.4;
}

.synthesis-payment-metric {
  gap: 9px;
}

.synthesis-payment-metric > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.98rem;
  font-weight: 650;
}

.synthesis-payment-metric > span strong {
  color: var(--admin-ink);
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.synthesis-payment-metric > span.is-unpaid strong {
  color: var(--admin-action-strong);
}

#absentSummary {
  padding-top: 4px;
  color: #786b5f;
}

.activity-section,
.clients-section {
  padding-top: 30px;
}

.clients-section {
  margin-top: 30px;
  border-top: 1px solid rgba(29, 26, 22, 0.09);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-direction: row;
  gap: 24px;
}

.section-heading h3 {
  margin: 2px 0 0;
  color: var(--admin-ink);
  font-size: clamp(1.8rem, 2.4vw, 2.55rem);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.section-heading > p,
.clients-heading > div > p:last-child {
  margin: 6px 0 0;
  color: var(--admin-muted);
  font-size: 0.98rem;
  font-weight: 620;
  line-height: 1.45;
}

.activity-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(29, 26, 22, 0.09);
  border-radius: 12px;
  background: rgba(29, 26, 22, 0.09);
}

.recap-calendar-weekday {
  display: grid;
  min-height: 38px;
  background: #f7f2ec;
  color: var(--admin-muted);
  place-items: center;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.recap-calendar-day {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-width: 0;
  min-height: 108px;
  padding: 12px;
  background: #fff;
  color: var(--admin-ink);
  text-decoration: none;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.activity-chart:not(.is-month) .recap-calendar-day {
  min-height: 132px;
}

.recap-calendar-day:hover {
  position: relative;
  z-index: 1;
  background: #fffaf5;
  box-shadow: inset 0 0 0 2px rgba(189, 101, 68, 0.26);
}

.recap-calendar-day.is-empty {
  min-height: 108px;
  background: #f8f5f1;
  pointer-events: none;
}

.recap-calendar-day.is-today {
  box-shadow: inset 0 0 0 2px rgba(189, 101, 68, 0.52);
}

.recap-calendar-day.has-activity {
  background: #fffdf9;
}

.recap-calendar-day-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.recap-calendar-day-header strong {
  font-size: 1.1rem;
  font-weight: 780;
}

.recap-calendar-day-header small {
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.recap-calendar-day-markers {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 5px;
}

.recap-calendar-day-markers i,
.recap-calendar-legend i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.recap-calendar-day-markers .is-done,
.recap-calendar-legend .is-done {
  background: #66806b;
}

.recap-calendar-day-markers .is-absent,
.recap-calendar-legend .is-absent {
  background: #a84b42;
}

.recap-calendar-day-summary {
  display: grid;
  gap: 1px;
}

.recap-calendar-day-summary strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.recap-calendar-day-summary small {
  color: var(--admin-muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.recap-calendar-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--admin-muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.recap-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.synthesis-metrics {
  margin-top: 30px;
}

.client-view-switcher {
  display: flex;
  align-items: center;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border-radius: 10px;
  background: rgba(242, 236, 229, 0.92);
  scrollbar-width: none;
}

.client-view-switcher::-webkit-scrollbar {
  display: none;
}

.client-view-switcher button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--admin-muted);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
}

.client-view-switcher button.is-active {
  background: #fff;
  color: var(--admin-ink);
  box-shadow: 0 4px 12px rgba(92, 54, 36, 0.08);
}

.client-view-switcher button span {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(29, 26, 22, 0.07);
  place-items: center;
  font-size: 0.82rem;
}

.client-view-switcher button.is-active span {
  background: var(--admin-action-soft);
  color: var(--admin-action-strong);
}

.recap-list {
  display: grid;
  margin-top: 20px;
  border-top: 1px solid rgba(29, 26, 22, 0.09);
}

.recap-list.is-busy {
  opacity: 0.62;
  pointer-events: none;
}

.recap-loading {
  display: grid;
}

.recap-loading span {
  height: 86px;
  border-bottom: 1px solid rgba(29, 26, 22, 0.08);
  background: linear-gradient(90deg, transparent, rgba(29, 26, 22, 0.055), transparent);
  background-size: 220% 100%;
  animation: recap-loading 1.05s ease-in-out infinite;
}

@keyframes recap-loading {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.client-group {
  border-bottom: 1px solid rgba(29, 26, 22, 0.09);
}

.client-summary-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(130px, 0.45fr) minmax(190px, 0.62fr) 28px;
  gap: 20px;
  width: 100%;
  min-height: 82px;
  padding: 16px 2px;
  border: 0;
  background: transparent;
  color: var(--admin-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, padding 0.18s ease;
}

.client-summary-row:hover,
.client-group.is-open .client-summary-row {
  padding-inline: 10px;
  background: rgba(189, 101, 68, 0.045);
}

.client-identity,
.client-volume,
.client-amount {
  display: flex;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
}

.client-identity strong {
  overflow: hidden;
  font-size: 1.24rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-identity small,
.client-volume small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--admin-muted);
  font-size: 0.94rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-volume {
  align-items: flex-start;
}

.client-volume strong {
  font-size: 1.45rem;
  font-weight: 740;
  line-height: 1;
}

.client-amount {
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.client-amount > strong {
  font-size: 1.28rem;
  font-weight: 760;
}

.client-row-arrow {
  display: grid;
  color: var(--admin-muted);
  font-size: 1.35rem;
  place-items: center;
  transition: transform 0.2s ease;
}

.client-group.is-open .client-row-arrow {
  transform: rotate(180deg);
}

.recap-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f7e7e1;
  color: #8a3927;
  font-size: 0.79rem;
  font-weight: 780;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.recap-badge.is-paid {
  background: #e7eee4;
  color: #40553f;
}

.recap-badge.is-neutral {
  background: #eeeae5;
  color: #6c6258;
}

.client-detail {
  padding: 0 10px 22px;
  animation: client-detail-reveal 0.22s ease both;
}

@keyframes client-detail-reveal {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.client-detail-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(242, 236, 229, 0.62);
  color: var(--admin-muted);
  font-size: 0.92rem;
  font-weight: 680;
}

.client-dog-list {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.dog-group {
  min-width: 0;
}

.dog-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 3px 9px;
  border-bottom: 1px solid rgba(29, 26, 22, 0.08);
}

.dog-group > header strong {
  color: var(--admin-ink);
  font-size: 1rem;
  font-weight: 760;
}

.dog-group > header span {
  color: var(--admin-muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.recap-walk-list {
  display: grid;
}

.recap-walk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  min-height: 54px;
  padding: 9px 3px;
  align-items: center;
  border-bottom: 1px solid rgba(29, 26, 22, 0.07);
}

.recap-walk-row:last-child {
  border-bottom: 0;
}

.walk-identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.walk-identity strong {
  overflow: hidden;
  color: var(--admin-ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.walk-identity small,
.walk-amount {
  color: var(--admin-muted);
  font-size: 0.88rem;
  font-weight: 620;
}

.walk-amount {
  color: var(--admin-ink);
  font-weight: 700;
}

.recap-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

.recap-actions .admin-button {
  min-height: 44px;
}

.recap-empty {
  display: grid;
  min-height: 220px;
  padding: 34px 20px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.recap-empty strong {
  color: var(--admin-ink);
  font-size: 1.4rem;
  font-weight: 740;
}

.recap-empty p {
  max-width: 430px;
  margin: 7px 0 16px;
  color: var(--admin-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.recap-empty.is-error strong {
  color: #84231a;
}

.payment-confirm-dialog {
  width: min(calc(100% - 32px), 540px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(29, 26, 22, 0.1);
  border-radius: 14px;
  background: var(--admin-panel);
  color: var(--admin-ink);
  box-shadow: 0 30px 100px rgba(29, 26, 22, 0.24);
}

.period-select-dialog {
  width: min(calc(100% - 32px), 520px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(29, 26, 22, 0.1);
  border-radius: 14px;
  background: var(--admin-panel);
  color: var(--admin-ink);
  box-shadow: 0 30px 100px rgba(29, 26, 22, 0.24);
  animation: period-dialog-enter 0.2s ease both;
}

.period-select-dialog::backdrop {
  background: rgba(29, 26, 22, 0.38);
  backdrop-filter: blur(4px);
}

@keyframes period-dialog-enter {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.period-select-header {
  position: static;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row;
  gap: 20px;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 24px 24px 18px;
  overflow: visible;
  background: transparent;
}

.period-select-header h2 {
  margin: 2px 0 6px;
  color: var(--admin-ink);
  font-size: 1.72rem;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.period-select-header p:not(.admin-eyebrow) {
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.period-select-close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(29, 26, 22, 0.1);
  border-radius: 50%;
  background: transparent;
  color: var(--admin-muted);
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.period-select-close:hover {
  background: var(--admin-action-soft);
  color: var(--admin-action-strong);
}

.period-select-navigation {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  margin: 0 24px;
  border-top: 1px solid rgba(29, 26, 22, 0.09);
  border-bottom: 1px solid rgba(29, 26, 22, 0.09);
}

.period-select-navigation button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--admin-ink);
  font: inherit;
  font-size: 1.65rem;
  place-items: center;
  cursor: pointer;
}

.period-select-navigation button:hover {
  color: var(--admin-action-strong);
}

.period-select-navigation strong {
  color: var(--admin-ink);
  font-size: 1rem;
  font-weight: 760;
  text-align: center;
}

.period-select-grid {
  display: grid;
  gap: 8px;
  padding: 20px 24px 24px;
}

.period-select-grid.is-month-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.period-select-grid button {
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid rgba(29, 26, 22, 0.08);
  border-radius: 9px;
  background: rgba(242, 236, 229, 0.42);
  color: var(--admin-ink);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 680;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.period-select-grid button:hover {
  border-color: rgba(189, 101, 68, 0.26);
  background: var(--admin-action-soft);
  color: var(--admin-action-strong);
  transform: translateY(-1px);
}

.period-select-grid button.is-selected {
  border-color: var(--admin-action);
  background: var(--admin-action);
  color: #fffdf9;
}

.period-select-grid.is-week-grid button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
}

.period-select-grid.is-week-grid button strong {
  font-size: 0.98rem;
  font-weight: 760;
}

.period-select-grid.is-week-grid button span {
  color: var(--admin-muted);
  font-size: 0.91rem;
  font-weight: 630;
}

.period-select-grid.is-week-grid button.is-selected span {
  color: rgba(255, 253, 249, 0.8);
}

.payment-confirm-dialog::backdrop {
  background: rgba(29, 26, 22, 0.42);
  backdrop-filter: blur(4px);
}

.payment-confirm-copy {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 26px;
}

.payment-confirm-icon {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--admin-action-soft);
  color: var(--admin-action-strong);
  font-size: 1.2rem;
  font-weight: 780;
  place-items: center;
}

.payment-confirm-dialog h2 {
  margin: 3px 0 8px;
  color: var(--admin-ink);
  font-size: 1.65rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.payment-confirm-dialog p:not(.admin-eyebrow) {
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

#paymentConfirmContext {
  display: block;
  margin-top: 13px;
  font-size: 1rem;
}

.payment-confirm-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 26px;
  border-top: 1px solid rgba(29, 26, 22, 0.08);
  background: rgba(242, 236, 229, 0.5);
}

.payment-confirm-dialog footer .admin-button {
  min-height: 44px;
}

.recap-toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: grid;
  gap: 8px;
  width: min(calc(100% - 48px), 380px);
  pointer-events: none;
}

.recap-toast {
  padding: 14px 16px;
  border: 1px solid rgba(64, 85, 63, 0.2);
  border-radius: 10px;
  background: #f4f8f2;
  color: #40553f;
  box-shadow: 0 18px 50px rgba(29, 26, 22, 0.16);
  font-size: 0.96rem;
  font-weight: 680;
  animation: recap-toast-enter 0.24s ease both;
}

.recap-toast.is-error {
  border-color: rgba(132, 35, 26, 0.2);
  background: #fff4f1;
  color: #84231a;
}

@keyframes recap-toast-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media only screen and (max-width: 900px) {
  .synthesis-period-header {
    align-items: stretch;
    flex-direction: column;
  }

  .synthesis-period-controls {
    justify-content: flex-start;
    max-width: none;
  }

  .synthesis-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .synthesis-metric-primary {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid rgba(29, 26, 22, 0.09);
  }

  .synthesis-metric-primary,
  .synthesis-metric:first-child {
    padding-left: 0;
  }

  .synthesis-metric:nth-child(2) {
    padding-left: 0;
  }

  .synthesis-metric:last-child {
    padding-right: 0;
  }

  .client-summary-row {
    grid-template-columns: minmax(180px, 1fr) 110px minmax(170px, 0.7fr) 26px;
    gap: 14px;
  }
}

@media only screen and (max-width: 680px) {
  .recap-admin-page .admin-main-header {
    align-items: flex-start;
  }

  .recap-admin-page .admin-header-actions {
    align-items: flex-end;
  }

  .synthesis-panel {
    padding: 20px;
  }

  .synthesis-period-controls {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .period-choice {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .current-period-button {
    padding-inline: 8px;
  }

  .synthesis-metric {
    min-height: 112px;
    padding: 18px;
  }

  .synthesis-metric > strong {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .activity-chart {
    gap: 1px;
  }

  .recap-calendar-day,
  .activity-chart:not(.is-month) .recap-calendar-day,
  .recap-calendar-day.is-empty {
    min-height: 88px;
    padding: 9px;
  }

  .clients-heading {
    gap: 16px;
  }

  .client-summary-row {
    grid-template-columns: minmax(0, 1fr) auto 24px;
    gap: 10px 14px;
    padding-block: 18px;
  }

  .client-identity {
    grid-column: 1 / 3;
  }

  .client-volume {
    grid-column: 1;
    grid-row: 2;
  }

  .client-amount {
    grid-column: 2;
    grid-row: 2;
  }

  .client-row-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .recap-walk-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .recap-walk-row .recap-badge {
    grid-column: 1 / -1;
  }

  .payment-confirm-copy {
    padding: 22px;
  }

  .payment-confirm-dialog footer {
    padding: 14px 22px;
  }
}

@media only screen and (max-width: 480px) {
  .recap-admin-page .admin-main-header {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .recap-admin-page .admin-main-header > div:first-child {
    display: grid;
    align-items: start;
    gap: 4px;
  }

  .recap-admin-page .admin-header-actions > span {
    display: none;
  }

  .recap-admin-page .admin-header-actions .admin-button {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 0.9rem;
  }

  .synthesis-panel {
    padding: 17px;
  }

  .synthesis-period-header {
    gap: 20px;
    padding-bottom: 22px;
  }

  .synthesis-period-copy h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .synthesis-period-controls {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .period-navigator {
    width: fit-content;
  }

  .current-period-button {
    justify-self: start;
  }

  .synthesis-metrics {
    grid-template-columns: 1fr;
  }

  .synthesis-metric,
  .synthesis-metric:nth-child(2) {
    min-height: 0;
    padding: 19px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(29, 26, 22, 0.09);
  }

  .synthesis-metric:last-child {
    border-bottom: 0;
  }

  .synthesis-payment-metric > span {
    justify-content: flex-start;
  }

  .activity-section,
  .clients-section {
    padding-top: 25px;
  }

  .clients-section {
    margin-top: 25px;
  }

  .activity-chart {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    margin-top: 18px;
  }

  .recap-calendar-weekday {
    min-height: 30px;
    font-size: 0.67rem;
  }

  .recap-calendar-day,
  .activity-chart:not(.is-month) .recap-calendar-day,
  .recap-calendar-day.is-empty {
    min-height: 72px;
    gap: 5px;
    padding: 7px 5px;
  }

  .recap-calendar-day-header strong {
    font-size: 0.9rem;
  }

  .recap-calendar-day-header small,
  .recap-calendar-day-summary small {
    display: none;
  }

  .recap-calendar-day-summary strong {
    font-size: 0.84rem;
  }

  .recap-calendar-legend span:last-child {
    flex-basis: 100%;
  }

  .client-view-switcher {
    width: 100%;
  }

  .client-view-switcher button {
    flex: 1;
    justify-content: center;
  }

  .client-detail {
    padding-inline: 0;
  }

  .client-detail-summary {
    gap: 7px 12px;
  }

  .recap-actions .admin-button {
    width: 100%;
  }

  .payment-confirm-copy {
    grid-template-columns: 1fr;
  }

  .period-select-dialog {
    width: min(calc(100% - 20px), 520px);
  }

  .period-select-header {
    padding: 20px 18px 16px;
  }

  .period-select-navigation {
    margin-inline: 18px;
  }

  .period-select-grid {
    padding: 16px 18px 20px;
  }

  .period-select-grid.is-month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-confirm-dialog footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .recap-toast-region {
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .synthesis-panel,
  .client-detail,
  .recap-loading span,
  .recap-toast,
  .period-select-dialog {
    animation: none;
  }

  .client-summary-row,
  .client-row-arrow,
  .period-choice span,
  .period-select-grid button {
    transition: none;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html,
  body,
  .admin-dashboard-page {
    min-height: 0 !important;
    background: #fff !important;
    color: #171713 !important;
  }

  .admin-auth-gate,
  .admin-sidebar,
  .admin-sidebar-toggle,
  .admin-main-header,
  .synthesis-panel > :not(.recap-print-report),
  .payment-confirm-dialog,
  .period-select-dialog,
  .recap-toast-region {
    display: none !important;
  }

  .admin-app-shell,
  .admin-main,
  .recap-workspace,
  .synthesis-panel {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
  }

  .recap-print-report {
    display: block !important;
    color: #171713;
    font-family: Poppins, Arial, sans-serif;
  }

  .print-report-header {
    position: static;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: row;
    gap: 24px;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0 0 8mm;
    overflow: visible;
    border-bottom: 1.5pt solid #171713;
    background: transparent;
  }

  .print-report-header p {
    margin: 0 0 2mm;
    font-size: 8pt;
    font-weight: 750;
    letter-spacing: 0.18em;
  }

  .print-report-header h2 {
    margin: 0;
    font-size: 22pt;
    font-weight: 700;
    letter-spacing: -0.025em;
  }

  .print-report-header > div:last-child {
    display: grid;
    gap: 1mm;
    text-align: right;
  }

  .print-report-header > div:last-child strong {
    font-size: 12pt;
  }

  .print-report-header > div:last-child span {
    color: #5f5a55;
    font-size: 8pt;
  }

  .print-report-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 7mm 0;
    border-top: 0.75pt solid #d9d5d0;
    border-bottom: 0.75pt solid #d9d5d0;
  }

  .print-report-summary div {
    display: grid;
    gap: 1.5mm;
    padding: 4mm 5mm;
    border-right: 0.75pt solid #d9d5d0;
  }

  .print-report-summary div:first-child {
    padding-left: 0;
  }

  .print-report-summary div:last-child {
    padding-right: 0;
    border-right: 0;
  }

  .print-report-summary span {
    color: #5f5a55;
    font-size: 8pt;
    font-weight: 650;
    text-transform: uppercase;
  }

  .print-report-summary strong {
    font-size: 16pt;
    font-weight: 750;
  }

  .print-report-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 8.5pt;
  }

  .print-report-table thead {
    display: table-header-group;
  }

  .print-report-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-report-table th,
  .print-report-table td {
    padding: 2.7mm 2.4mm;
    border-bottom: 0.65pt solid #dedad5;
    text-align: left;
    vertical-align: middle;
  }

  .print-report-table thead th {
    border-top: 1pt solid #171713;
    border-bottom: 1pt solid #171713;
    background: #f2eee9;
    font-size: 7.5pt;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .print-report-table tbody th {
    font-weight: 720;
  }

  .print-report-table .is-number {
    text-align: center;
  }

  .print-report-table .is-amount,
  .print-report-table tfoot td {
    text-align: right;
    white-space: nowrap;
  }

  .print-report-table tfoot th,
  .print-report-table tfoot td {
    padding-top: 3.5mm;
    border-top: 1pt solid #171713;
    border-bottom: 0;
    font-weight: 760;
  }

  .print-report-table th:nth-child(1) { width: 18%; }
  .print-report-table th:nth-child(2) { width: 18%; }
  .print-report-table th:nth-child(3) { width: 12%; }
  .print-report-table th:nth-child(4) { width: 10%; }
  .print-report-table th:nth-child(5) { width: 10%; }
  .print-report-table th:nth-child(6) { width: 16%; }
  .print-report-table th:nth-child(7) { width: 16%; }

  .print-empty-row {
    padding: 12mm 0 !important;
    color: #5f5a55;
    text-align: center !important;
  }
}
