:root {
  --bg-top: #f3efe5;
  --bg-bottom: #efe8dd;
  --surface: rgba(252, 248, 240, 0.86);
  --surface-strong: #fcf8f0;
  --text: #102018;
  --muted: #496155;
  --accent: #1b3022;
  --accent-strong: #163324;
  --pending: #a4875d;
  --paid: #57b86d;
  --finished: #4a8ed6;
  --ended: #c2c2c2;
  --canceled: #e6504f;
  --available: rgba(255, 255, 255, 0.6);
  --line: rgba(26, 50, 36, 0.12);
  --shadow: 0 24px 60px rgba(16, 32, 24, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(27, 48, 34, 0.08), transparent 33%), radial-gradient(circle at 85% 8%, rgba(164, 135, 93, 0.12), transparent 28%), linear-gradient(180deg, var(--bg-top) 0%, #f6f2e9 48%, var(--bg-bottom) 100%);
}

.app-shell {
  width: min(1120px, 100% - 1.5rem);
  margin: 1.25rem auto 2rem;
}

.hero {
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1rem;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(15, 31, 21, 0.08);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hero-logo {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #b4cdc0;
  background: #f4fdf8;
  box-shadow: 0 4px 14px rgba(12, 54, 45, 0.16);
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-strong);
}

h1 {
  margin: 0.3rem 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.top-links {
  margin-top: 0.7rem;
}

.top-links a {
  color: var(--accent-strong);
  font-weight: 700;
}

.business-contact {
  margin: 0.55rem 0 0;
  color: #335045;
  font-size: 0.88rem;
  font-weight: 600;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1rem;
  padding: 1.2rem;
  margin-top: 1rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(15, 31, 21, 0.08);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  border: 1px solid #b8c8be;
}

.dot.available {
  background: var(--available);
}

.dot.pending {
  background: var(--pending);
}

.dot.paid {
  background: var(--paid);
}

.dot.finished {
  background: var(--finished);
}

.dot.ended {
  background: var(--ended);
}

.dot.canceled {
  background: var(--canceled);
}

.dot.client-booked {
  background: #b9b9b9;
}

.dot.client-pending {
  background: var(--pending);
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.cabin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.cabin-card {
  margin-top: 0;
}

.cabin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
}

.cabin-price {
  margin: 0.25rem 0 0;
  color: #225348;
  font-size: 0.9rem;
  font-weight: 700;
}

.cabin-summary {
  border: 1px dashed #cadecf;
  border-radius: 0.65rem;
  padding: 0.5rem;
  margin: 0.65rem 0;
  background: #f9fcfb;
}

.cabin-summary p {
  margin: 0.15rem 0;
  font-size: 0.88rem;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: 1.18rem;
}

label {
  display: grid;
  gap: 0.32rem;
  margin-bottom: 0.75rem;
  font-size: 0.93rem;
  color: #40584d;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border: 1px solid #cbddd2;
  border-radius: 0.65rem;
  padding: 0.56rem 0.6rem;
  background: #fff;
}

.date-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.summary-box {
  border: 1px dashed #cadecf;
  border-radius: 0.7rem;
  background: #f8fcfa;
  padding: 0.6rem;
  margin-bottom: 0.8rem;
}

.summary-box p {
  margin: 0.15rem 0;
}

.summary-breakdown {
  display: grid;
  gap: 0.45rem;
  margin: 0.45rem 0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
  border: 1px solid #d5e4db;
  border-radius: 0.55rem;
  background: #f6fbf8;
  padding: 0.45rem 0.55rem;
}

.summary-line strong {
  display: block;
  margin-bottom: 0.12rem;
}

.summary-line span {
  color: #496155;
  font-size: 0.84rem;
}

.summary-line-right {
  display: grid;
  justify-items: end;
  gap: 0.28rem;
  white-space: nowrap;
}

.summary-line-right .ghost-btn {
  border: 1px solid rgba(27, 48, 34, 0.15);
  background: transparent;
  color: var(--accent);
  border-radius: 0.65rem;
  padding: 0.58rem 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.ghost-btn:hover {
  background: rgba(27, 48, 34, 0.05);
  border-color: rgba(27, 48, 34, 0.3);
}

.summary-line.muted {
  border-style: dashed;
  color: #5a6e63;
  background: #fbfdfc;
}

.booking-terms {
  border: 1px solid #cfddd4;
  border-radius: 0.75rem;
  background: #f8fbf9;
  padding: 0.7rem;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.booking-terms-brand {
  margin: 0;
  color: #10473f;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.booking-terms h3 {
  margin: 0;
  color: #1a4438;
  font-size: 1rem;
}

.booking-terms h4 {
  margin: 0.1rem 0 0;
  color: #214a3d;
  font-size: 0.92rem;
}

.booking-terms p,
.booking-terms li {
  margin: 0;
  color: #3f584d;
  font-size: 0.84rem;
  line-height: 1.45;
}

.booking-terms ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
}

.booking-terms-accept {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 0.55rem;
  border: 1px solid #c8dbcf;
  background: #eef7f2;
  color: #27493d;
  font-size: 0.84rem;
  font-weight: 600;
}

.booking-terms-accept input {
  margin-top: 0.15rem;
}

.form-stack {
  display: grid;
  gap: 0.2rem;
}

.primary-btn,
.danger-btn {
  border: 0;
  border-radius: 0.65rem;
  padding: 0.58rem 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn {
  background: var(--accent);
  color: #fcf8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(27, 48, 34, 0.2);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27, 48, 34, 0.25);
}

.danger-btn {
  background: #8f2c2b;
  color: #fff2f2;
}

.primary-btn:disabled,
.danger-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

a.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.reserve-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  padding: 0.55rem 0.7rem;
  background: var(--accent);
  color: #fcf8f0;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(27, 48, 34, 0.2);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.reserve-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27, 48, 34, 0.25);
}

.reserve-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-view-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.calendar-view-toggle .primary-btn {
  background: #e8f2ed;
  color: #20463a;
  border: 1px solid #b8d2c4;
}

.calendar-view-toggle .primary-btn.is-active {
  background: var(--accent);
  color: #effff9;
  border-color: #0f5d54;
}

.month-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.month-label {
  margin: 0;
  font-weight: 700;
  color: var(--accent-strong);
}

.month-btn {
  border: 1px solid #b2c9bd;
  border-radius: 0.55rem;
  width: 2rem;
  height: 2rem;
  background: #f6fcf8;
  color: #294137;
  cursor: pointer;
}

.weekdays,
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.weekdays {
  margin-bottom: 0.4rem;
}

.weekdays span {
  text-align: center;
  font-size: 0.75rem;
  color: #607267;
}

.day {
  border: 1px solid #d6e3db;
  border-radius: 0.55rem;
  min-height: 2.55rem;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--available);
  color: #2e453a;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.day.empty {
  background: transparent;
  border-style: dashed;
  cursor: default;
}

.day.pending,
.day.pendiente {
  background: var(--pending);
  border-color: #c99124;
}

.day.client-booked {
  background: #b9b9b9; /* naranja para días bloqueados/reservados */
  color: #2a1f12;
  border-color: #d97a28;
  cursor: not-allowed;
}

/* Conflict notice displayed inside booking modal */
.conflict-notice {
  background: #fff4e6;
  border: 1px solid #ffd1a8;
  color: #6b2f00;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  margin: 0.4rem 0 0.6rem;
  font-weight: 700;
}

.day.client-pending {
  background: var(--pending);
  color: #533709;
  border-color: #c99124;
  cursor: not-allowed;
}

.day.confirmado {
  background: var(--paid);
  color: #f1fff4;
  border-color: #3f9452;
}

.day.cancelado {
  background: var(--canceled);
  color: #fff2f2;
  border-color: #b23635;
}

.day.selected {
  background: #7fb8a0;
  border-color: #4f8f75;
  color: #17362c;
  outline: 2px solid #204e43;
  outline-offset: -2px;
}

.day.in-range {
  background: #9fd0bb;
  border-color: #6ea98f;
  color: #1b3e32;
}

.day.past {
  background: #f5f7f6;
  color: #9ca7a1;
  cursor: not-allowed;
}

.day:not(.past):not(.empty):hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.day.client-booked:hover {
  transform: none;
  filter: none;
}

.admin-calendar .admin-day {
  place-items: start;
  align-content: start;
  padding: 0.2rem;
  background: #f8fcfa;
  min-height: 4.3rem;
}

.admin-calendar .admin-day.has-bookings {
  background: #edf8f2;
}

.admin-calendar .admin-day.confirmado,
.admin-calendar .admin-day.confirmado.has-bookings {
  background: var(--paid);
  color: #f1fff4;
  border-color: #3f9452;
}

.admin-calendar .admin-day.finalizado,
.admin-calendar .admin-day.finalizado.has-bookings {
  background: var(--finished);
  color: #f1f7ff;
  border-color: #2f6fb2;
}

.admin-calendar .admin-day.cancelado,
.admin-calendar .admin-day.cancelado.has-bookings {
  background: var(--canceled);
  color: #fff2f2;
  border-color: #b23635;
}

.admin-calendar .admin-day.past,
.admin-calendar .admin-day.past.has-bookings {
  background: var(--ended);
  color: #474747;
  border-color: #9a9a9a;
}

.admin-calendar .admin-day.past .day-total {
  background: #cfcfcf;
  color: #444;
}

.admin-calendar-multi {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.mini-calendar {
  margin-top: 0;
  padding: 0.7rem;
}

.mini-calendar-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #1f4f40;
}

.mini-weekdays {
  margin-bottom: 0.35rem;
}

.mini-calendar-grid .day {
  min-height: 2.5rem;
}

.admin-day-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.day-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  padding: 0 0.35rem;
  background: #ddece3;
  color: #27493b;
  font-size: 0.72rem;
  line-height: 1;
}

.cabin-counts {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem;
  margin-top: 0.25rem;
}

.count-chip {
  border-radius: 999px;
  padding: 0.06rem 0.34rem;
  border: 1px solid #b9d4c5;
  background: #eaf7f0;
  color: #1f4f40;
  font-size: 0.66rem;
  font-weight: 700;
}

.count-chip.empty {
  background: #f5f7f6;
  border-color: #d8e0dc;
  color: #83968d;
}

.markers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: 0.2rem;
}

.marker {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  display: inline-block;
}

.marker.status-pendiente {
  background: var(--pending);
}

.marker.status-confirmado {
  background: var(--paid);
}

.marker.status-finalizado {
  background: var(--finished);
}

.marker.status-cancelado {
  background: var(--canceled);
}

.more-count {
  font-size: 0.68rem;
  color: #41584e;
}

.admin-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-toolbar {
  display: grid;
  gap: 0.4rem;
}

.legend-block {
  margin-top: 1rem;
}

.metrics-panel h2 {
  margin-bottom: 0.3rem;
}

.metrics-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
}

.metrics-range {
  margin: 0.25rem 0 0;
  color: #516359;
  font-size: 0.85rem;
}

.metrics-filters {
  display: grid;
  gap: 0.6rem;
  align-items: end;
}

.metrics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.metric-card {
  border: 1px solid #dbe7df;
  border-radius: 0.8rem;
  padding: 0.75rem;
  background: #f8fcfa;
}

.metric-label {
  margin: 0;
  color: #506258;
  font-size: 0.85rem;
  font-weight: 600;
}

.metric-value {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1c4337;
}

.metrics-split {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.metrics-table {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.metrics-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid #dbe7df;
  background: #f6fbf8;
  font-size: 0.9rem;
}

.metrics-row.metrics-head {
  background: #eaf3ee;
  font-weight: 700;
  color: #23463a;
}

.metrics-row.metrics-cabin {
  grid-template-columns: 1fr auto auto;
}

.twentyfour-card {
  grid-template-columns: 1fr;
  gap: 0.8rem;
  align-items: stretch;
  padding: 0.8rem;
}

.twentyfour-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.twentyfour-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.45rem;
}

.twentyfour-summary p {
  margin: 0;
  border: 1px solid #d7e4dc;
  border-radius: 0.55rem;
  background: #f2f8f5;
  padding: 0.45rem 0.55rem;
  font-size: 0.86rem;
}

.twentyfour-terms {
  border: 1px solid #cfddd4;
  border-radius: 0.7rem;
  background: #f8fbf9;
  padding: 0.7rem;
  display: grid;
  gap: 0.45rem;
}

.twentyfour-terms-brand {
  margin: 0;
  color: #10473f;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.twentyfour-terms h4 {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  color: #1e4338;
}

.twentyfour-terms p,
.twentyfour-terms li {
  margin: 0;
  color: #3f584d;
  font-size: 0.84rem;
  line-height: 1.45;
}

.twentyfour-terms ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
}

.twentyfour-accept {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 0.55rem;
  border: 1px solid #c8dbcf;
  background: #eef7f2;
  color: #27493d;
  font-size: 0.84rem;
  font-weight: 600;
}

.twentyfour-accept input {
  margin-top: 0.15rem;
}

.twentyfour-actions {
  margin-top: 0.2rem;
}

.metrics-empty {
  margin: 0.2rem 0 0;
  color: #4f6459;
  font-size: 0.9rem;
}

.legend-title {
  margin: 0 0 0.55rem;
  font-weight: 700;
}

.admin-card h3 {
  margin: 0;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.admin-card-head p {
  margin: 0.2rem 0;
  color: #42594f;
}

.admin-row {
  display: flex;
  gap: 1.1rem;
  margin: 0.45rem 0;
}

.admin-row p {
  margin: 0;
}

.admin-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.56rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: lowercase;
  height: fit-content;
}

.status-pendiente {
  background: #f7d891;
  color: #533709;
}

.status-confirmado {
  background: #98e1aa;
  color: #1d4e2a;
}

.status-finalizado {
  background: #a8c9f0;
  color: #163b64;
}

.status-cancelado {
  background: #f2a3a3;
  color: #5b1414;
}

.empty {
  margin: 0;
  color: #4f6459;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(150%);
  background: #11332d;
  color: #f3fff9;
  padding: 0.7rem 0.95rem;
  border-radius: 0.7rem;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  transition: transform 220ms ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

body.has-modal {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 28, 23, 0.42);
}

.modal-panel {
  position: relative;
  width: min(680px, calc(100% - 1.1rem));
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  border: 1px solid #bfd6ca;
  border-radius: 1rem;
  background: #fffcf7;
  box-shadow: var(--shadow);
  padding: 0.95rem;
}

.confirm-panel {
  width: min(520px, calc(100% - 1.1rem));
  background: linear-gradient(180deg, #fffdf8 0%, #f1f8f4 100%);
  animation: auth-pop 180ms ease;
}

.cancel-panel {
  width: min(520px, calc(100% - 1.1rem));
  background: linear-gradient(180deg, #fffdf8 0%, #fff4f0 100%);
  animation: auth-pop 180ms ease;
}

.confirm-message {
  display: grid;
  gap: 0.45rem;
  margin: 0.2rem 0 0.85rem;
}

.confirm-message p {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid #d2e3d9;
  background: #f2f9f5;
  color: #2c4037;
  font-size: 0.92rem;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.auth-panel {
  width: min(440px, calc(100% - 1.1rem));
  background: linear-gradient(180deg, #fffdf8 0%, #f4fbf6 100%);
  animation: auth-pop 180ms ease;
}

.auth-header {
  align-items: flex-start;
  gap: 0.75rem;
}

.auth-subtitle {
  margin-top: 0.2rem;
  font-size: 0.92rem;
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.auth-label {
  margin-bottom: 0;
}

.auth-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.auth-input-row input {
  flex: 1;
}

.auth-error {
  min-height: 1.1rem;
  margin: 0;
  color: #9b2c2a;
  font-weight: 600;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.ghost-btn {
  border: 1px solid #b8d2c4;
  border-radius: 0.65rem;
  padding: 0.55rem 0.75rem;
  background: #e9f3ee;
  color: #20463a;
  font-weight: 700;
  cursor: pointer;
}

.ghost-btn:hover {
  filter: brightness(0.98);
}

@keyframes auth-pop {
  from {
    transform: translateY(10px);
    opacity: 0.7;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.icon-btn {
  border: 1px solid #b7cdc1;
  border-radius: 0.55rem;
  width: 2rem;
  height: 2rem;
  background: #f6fcf8;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

@media (min-width: 720px) {
  .app-shell {
    width: min(1120px, 100% - 2rem);
    margin-top: 1.8rem;
  }

  .grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-toolbar {
    grid-template-columns: 1fr 2fr auto;
    align-items: end;
  }

  .metrics-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-actions {
    justify-content: flex-end;
  }

  .metrics-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cabin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-calendar-multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .auth-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .ghost-btn {
    width: 100%;
  }

  .confirm-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .confirm-actions .primary-btn {
    width: 100%;
  }
}

@media (min-width: 1040px) {
  .cabin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-calendar-multi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
