body.admin-page {
  --admin-shell-max: 1480px;
  --admin-shell-padding: 28px;
  --admin-sidebar-width: 236px;
  --admin-sidebar-collapsed-width: 88px;
  --admin-sidebar-gap: 18px;
  --admin-sidebar-offset: 14px;
  --admin-content-offset: calc(var(--admin-sidebar-width) + var(--admin-sidebar-gap));
  --admin-surface: #ffffff;
  --admin-surface-soft: #fbfcfd;
  --admin-surface-muted: #f6f7f9;
  --admin-line-strong: #e5e7eb;
  --admin-shadow-soft: 0 10px 28px rgba(31, 41, 55, 0.05);
  --admin-shadow-strong: 0 18px 40px rgba(31, 41, 55, 0.08);
  --admin-radius-xl: 10px;
  --admin-radius-lg: 10px;
  --admin-radius-md: 8px;
  background: #f6f7f9;
}

body.admin-page.admin-sidebar-collapsed {
  --admin-content-offset: calc(var(--admin-sidebar-collapsed-width) + var(--admin-sidebar-gap));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.desktop-only {
  display: inline-flex;
}

.admin-page .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
}

.admin-shell {
  width: min(var(--admin-shell-max), calc(100% - var(--admin-shell-padding)));
  margin: 0 auto;
  padding: 16px 0 44px;
  display: block;
  position: relative;
}

.admin-sidebar {
  position: fixed;
  top: var(--admin-sidebar-offset);
  left: max(calc(var(--admin-shell-padding) / 2), calc((100vw - var(--admin-shell-max)) / 2));
  width: var(--admin-sidebar-width);
  height: calc(100vh - var(--admin-sidebar-offset) - 24px);
  z-index: 45;
  transition: width 240ms ease;
}

body.admin-page.admin-sidebar-collapsed .admin-sidebar {
  width: var(--admin-sidebar-collapsed-width);
}

.admin-sidebar-backdrop {
  display: none;
}

.admin-sidebar-card {
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: var(--admin-radius-xl);
  background: #ffffff;
  box-shadow: var(--admin-shadow-soft);
  overflow: hidden;
}

.admin-sidebar-brand {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 4px 2px 8px;
}

.admin-sidebar-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

.admin-sidebar-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.admin-sidebar-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-sidebar-brand-copy strong {
  color: #1f2937;
  font-size: 0.94rem;
  line-height: 1.2;
}

.admin-sidebar-brand-copy span {
  color: #6b7280;
  font-size: 0.8rem;
}

.admin-sidebar-brand-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-sidebar-brand-actions [data-admin-sidebar-toggle] {
  display: none;
}

.admin-sidebar-icon-button,
.admin-page-menu-trigger,
.admin-favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.admin-sidebar-icon-button {
  width: 40px;
  height: 40px;
}

.admin-sidebar-icon-button:hover,
.admin-sidebar-icon-button:focus-visible,
.admin-page-menu-trigger:hover,
.admin-page-menu-trigger:focus-visible,
.admin-favorite-button:hover,
.admin-favorite-button:focus-visible {
  border-color: #d1d5db;
  background: #f9fafb;
  transform: translateY(-1px);
  outline: none;
}

.admin-sidebar-icon-button svg,
.admin-page-menu-trigger svg,
.admin-favorite-button svg,
.admin-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.admin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.admin-search-group-title,
.admin-topbar-dropdown-head {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-search-group-list,
.admin-topbar-dropdown-list {
  display: grid;
  gap: 8px;
}

.admin-search-result-item,
.admin-topbar-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(220, 232, 234, 0.95);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-search-result-item:hover,
.admin-search-result-item:focus-visible,
.admin-topbar-list-item:hover,
.admin-topbar-list-item:focus-visible {
  border-color: #bdd7db;
  color: var(--teal-dark);
  outline: none;
}

.admin-search-result-copy,
.admin-topbar-list-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-search-result-copy strong,
.admin-topbar-list-copy strong {
  color: inherit;
  font-size: 0.9rem;
}

.admin-search-result-copy small,
.admin-topbar-list-copy small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-topbar-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-sidebar-nav {
  display: grid;
  gap: 10px;
  padding: 0 2px;
  align-content: start;
  flex: 1;
  overflow: auto;
}

.admin-sidebar-group {
  display: grid;
  gap: 8px;
}

.admin-sidebar-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease;
}

.admin-sidebar-group-toggle:hover,
.admin-sidebar-group-toggle:focus-visible {
  border-color: #dbe1e8;
  background: #f9fafb;
  outline: none;
}

.admin-sidebar-group-folder-icon {
  color: #6b7280;
}

.admin-sidebar-group-title {
  margin: 0;
  color: #374151;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  flex: 1;
}

.admin-sidebar-group-icon {
  color: var(--muted);
  transition: transform 160ms ease;
}

.admin-sidebar-group:not(.is-open) .admin-sidebar-group-icon {
  transform: rotate(-90deg);
}

.admin-sidebar-links {
  display: grid;
  gap: 8px;
  padding: 0 0 0 18px;
}

.admin-sidebar-group:not(.is-open) .admin-sidebar-links {
  display: none;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #374151;
  background: transparent;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.admin-sidebar-link:hover,
.admin-sidebar-link:focus-visible {
  border-color: #e5e7eb;
  background: #f9fafb;
  color: #1f2937;
  transform: translateY(-1px);
  box-shadow: none;
  outline: none;
}

.admin-sidebar-link.is-active {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #2563eb;
  box-shadow: none;
}

.admin-sidebar-link.is-active::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 8px;
  width: 4px;
  border-radius: 999px;
  background: #2563eb;
}

.admin-sidebar-logout-link {
  color: #a63a2a;
}

.admin-sidebar-logout-link:hover,
.admin-sidebar-logout-link:focus-visible {
  color: #8f2f22;
  border-color: #edc9c3;
  background: #fff7f5;
}

.admin-sidebar-link-text {
  min-width: 0;
  flex: 1;
}

.admin-sidebar-badge {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #e8f6f4;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-sidebar-footer {
  display: block;
  padding-top: 8px;
  border-top: 1px solid rgba(219, 231, 234, 0.98);
}

.admin-user-menu {
  position: relative;
}

.admin-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: var(--admin-radius-lg);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(219, 231, 234, 0.98);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-sidebar-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0f766e 0%, #0b5f59 100%);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.admin-sidebar-profile-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-sidebar-profile-copy strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.admin-sidebar-profile-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-user-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(214, 227, 230, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--admin-shadow-strong);
  z-index: 20;
}

.admin-sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(219, 231, 234, 0.98);
  font-weight: 700;
}

.admin-sidebar-footer-link:hover,
.admin-sidebar-footer-link:focus-visible {
  border-color: #c7dde0;
  color: var(--teal-dark);
  outline: none;
}

.admin-sidebar-footer-link.is-danger {
  color: #a63a2a;
}

.admin-main {
  width: auto;
  margin: 0 0 0 var(--admin-content-offset);
  padding: 0;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-main > * {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.perfil-page .admin-main {
  margin-left: 0;
}

.admin-page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 48px;
  padding: 0 4px;
  position: sticky;
  top: 10px;
  z-index: 30;
  padding-block: 8px;
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(12px);
}

.admin-page-topbar-start,
.admin-page-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-page-topbar-start {
  min-width: 0;
}

.admin-page-topbar-actions {
  margin-left: auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.admin-page-menu-trigger {
  width: 44px;
}

.admin-favorite-button,
.admin-topbar-action-button {
  gap: 0;
  width: 44px;
  padding: 0;
  font: inherit;
  font-weight: 800;
}

.admin-favorite-button.is-active {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(232, 246, 244, 0.98);
}

.admin-topbar-menu {
  position: relative;
}

.admin-support-notification {
  position: relative;
  overflow: visible;
  color: #334155;
  text-decoration: none;
}

.admin-support-notification-badge {
  position: absolute;
  z-index: 5;
  top: -5px;
  right: -5px;
  min-width: 21px;
  height: 21px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #dc2626;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.admin-support-notification-badge.is-visible {
  display: inline-flex;
}

.support-request-list {
  display: grid;
  gap: 14px;
}

.support-request-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dfe7ea;
  border-radius: 12px;
  background: #fff;
}

.support-request-card.is-new {
  border-left: 5px solid #dc2626;
}

.support-request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #64748b;
  font-size: 0.9rem;
}

.support-request-observation {
  margin: 0;
  white-space: pre-wrap;
}

.support-request-diagnosis {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  background: #f8fafc;
}

.support-request-diagnosis dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 0;
}

.support-request-diagnosis dl > div {
  display: grid;
  gap: 3px;
}

.support-request-diagnosis dt {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.support-request-diagnosis dd {
  margin: 0;
  color: #172033;
  font-weight: 700;
}

.admin-topbar-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(214, 227, 230, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.admin-topbar-action-button:hover,
.admin-topbar-action-button:focus-visible {
  border-color: #bdd7db;
  background: #fff;
  transform: translateY(-1px);
  outline: none;
}

.admin-topbar-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(214, 227, 230, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--admin-shadow-strong);
  z-index: 35;
}

.admin-topbar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e8f6f4;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-favorite-button span:last-child {
  display: none;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.88rem;
}

.admin-breadcrumb a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.admin-breadcrumb strong {
  color: var(--ink);
}

.admin-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  background: #fff;
  box-shadow: var(--admin-shadow-soft);
}

.admin-heading.has-actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-heading h1 {
  max-width: 760px;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.2;
}

.admin-heading p {
  max-width: 760px;
  margin-top: 4px;
  color: #6b7280;
  line-height: 1.5;
  font-size: 0.92rem;
}

.admin-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: flex-start;
}

.admin-heading-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
}

.admin-heading-summary span + span {
  position: relative;
}

.admin-heading-summary span + span::before {
  content: "-";
  position: absolute;
  left: -12px;
  color: var(--line);
}

.admin-heading-summary strong {
  color: var(--teal-dark);
  font-size: 1rem;
}

.admin-heading-summary-revenue {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  white-space: nowrap;
}

.admin-heading-summary-revenue > span:first-child {
  color: var(--muted);
}

.admin-heading-summary-revenue span + span::before {
  content: none;
  position: static;
}

.admin-heading-summary-revenue .dashboard-revenue-pagination {
  flex: 0 0 210px;
  width: 210px;
  min-height: 30px;
  gap: 4px;
  padding: 2px;
}

.admin-heading-summary-revenue .dashboard-revenue-pagination span {
  flex: 0 0 130px;
  width: 130px;
  min-width: 130px;
  max-width: 130px;
  padding-inline: 5px;
  color: #15324a;
  font-size: .74rem;
}

.manual-block-edit-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(90vh, 820px);
  overflow-y: auto;
}

.manual-block-edit-dialog .admin-table-header {
  align-items: flex-start;
}

.manual-block-edit-dialog .admin-table-header h2 {
  margin: 0;
}

.manual-block-edit-dialog .admin-actions {
  flex-wrap: nowrap;
  align-items: center;
}

.manual-block-edit-dialog .admin-actions > * {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 8px 14px;
  font-size: .78rem;
}

.manual-block-edit-dialog .admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex-direction: row !important;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  #manualBlocksTable tr {
    display: block;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
  }

  #manualBlocksTable td {
    display: none;
    border: 0;
    padding: 0;
  }

  #manualBlocksTable td:nth-child(1),
  #manualBlocksTable td:nth-child(2),
  #manualBlocksTable td:nth-child(3),
  #manualBlocksTable td:last-child {
    display: block;
  }

  #manualBlocksTable td:nth-child(1) strong {
    display: block;
    color: var(--teal-dark);
    font-size: .95rem;
  }

  #manualBlocksTable td:nth-child(1) small,
  #manualBlocksTable td:nth-child(3) small {
    display: none;
  }

  #manualBlocksTable td:nth-child(2) {
    margin-top: 3px;
    font-weight: 750;
  }

  #manualBlocksTable td:nth-child(3) {
    margin-top: 3px;
    color: var(--muted);
    font-size: .84rem;
  }

  #manualBlocksTable td:last-child {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  #manualBlocksTable td:last-child .admin-link,
  #manualBlocksTable td:last-child button {
    min-height: 34px;
    padding: 5px 10px;
    font-size: .78rem;
  }

  .manual-block-edit-dialog .admin-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end;
  }

  .manual-block-edit-dialog .admin-actions > button {
    width: auto !important;
    min-width: 92px;
    flex: 0 0 auto !important;
    padding: 8px 14px;
    font-size: .78rem;
  }
}

body.admin-page.admin-sidebar-collapsed .admin-sidebar-brand {
  grid-template-columns: 1fr;
  justify-items: center;
}

body.admin-page.admin-sidebar-collapsed .admin-sidebar-brand-copy,
body.admin-page.admin-sidebar-collapsed .admin-sidebar-search,
body.admin-page.admin-sidebar-collapsed .admin-sidebar-shortcuts,
body.admin-page.admin-sidebar-collapsed .admin-sidebar-group-title,
body.admin-page.admin-sidebar-collapsed .admin-sidebar-group-icon,
body.admin-page.admin-sidebar-collapsed .admin-sidebar-link-text,
body.admin-page.admin-sidebar-collapsed .admin-sidebar-badge,
body.admin-page.admin-sidebar-collapsed .admin-sidebar-profile-copy,
body.admin-page.admin-sidebar-collapsed .admin-sidebar-footer-link span {
  display: none;
}

body.admin-page.admin-sidebar-collapsed .admin-sidebar-card {
  padding-inline: 10px;
}

body.admin-page.admin-sidebar-collapsed .admin-sidebar-group-toggle,
body.admin-page.admin-sidebar-collapsed .admin-sidebar-link,
body.admin-page.admin-sidebar-collapsed .admin-sidebar-footer-link,
body.admin-page.admin-sidebar-collapsed .admin-sidebar-profile {
  justify-content: center;
  padding-inline: 0;
}

body.admin-page.admin-sidebar-collapsed .admin-sidebar-links {
  padding-left: 0;
}

body.admin-page.admin-sidebar-collapsed .admin-sidebar-link[data-tooltip] {
  position: relative;
}

body.admin-page.admin-sidebar-collapsed .admin-sidebar-link[data-tooltip]:hover::after,
body.admin-page.admin-sidebar-collapsed .admin-sidebar-link[data-tooltip]:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(18, 51, 58, 0.96);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(18, 51, 58, 0.22);
  pointer-events: none;
  z-index: 8;
}

.admin-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-anchor-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d7e6e8;
  border-radius: 999px;
  background: #f7fbfb;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-anchor-link:hover,
.admin-anchor-link:focus-visible {
  background: #eef8f8;
  border-color: #b8d8db;
  color: #0f5c58;
  transform: translateY(-1px);
  outline: none;
}

#dashboard-overview,
#quick-date-block,
#user-ip-blocks,
#email-health {
  scroll-margin-top: 110px;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.admin-overview article {
  position: relative;
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-overview article::before {
  display: none;
}

.pending-center-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfefe;
}

.pending-center-filters button {
  min-height: 38px;
  border: 1px solid #d3e7e8;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--teal-dark);
  background: #fff;
  font: inherit;
  font-size: .86rem;
  font-weight: 850;
  cursor: pointer;
}

.pending-center-filters button.is-active {
  color: #fff;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.pending-center-filters span {
  display: inline-flex;
  min-width: 22px;
  justify-content: center;
  margin-left: 5px;
}

.pending-center-message {
  padding: 12px 18px;
}

.pending-priority {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: .76rem;
  font-weight: 900;
}

.pending-priority.is-urgente {
  color: #991b1b;
  background: #fee2e2;
}

.pending-priority.is-alta {
  color: #9a3412;
  background: #ffedd5;
}

.pending-priority.is-media {
  color: #854d0e;
  background: #fef9c3;
}

.pending-priority.is-baixa {
  color: #166534;
  background: #dcfce7;
}

.admin-overview span {
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.admin-overview strong {
  color: #111827;
  font-size: clamp(1.3rem, 1.7vw, 1.85rem);
  line-height: 1;
}

.global-contract-clauses {
  display: grid;
  gap: 14px;
}

.global-contract-clause {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d8e6ea;
  border-radius: 12px;
  background: #f8fbfc;
}

.global-contract-clause-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.global-contract-preview-card {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #d8e6ea;
}

.global-contract-preview {
  max-width: 794px;
  margin: 0 auto;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.dashboard-card {
  border-radius: 10px;
}

.dashboard-revenue-kpi {
  display: grid;
  gap: 10px;
}

.dashboard-revenue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-revenue-pagination {
  padding: 0;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid #dbe5ec;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f6f9fb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dashboard-revenue-pagination span {
  min-width: 0;
  max-width: 180px;
  padding: 0 8px;
  color: #15324a;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-revenue-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #edf3f7;
  color: #1d455d;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.dashboard-revenue-nav:hover {
  background: #dfeaf1;
  color: #102a3b;
  transform: translateY(-1px);
}

.dashboard-revenue-nav:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.dashboard-revenue-note {
  color: #5f7280;
  font-size: 0.8rem;
  line-height: 1.45;
}

.dashboard-chart-card {
  grid-row: span 2;
}

.dashboard-occupancy-chart {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.dashboard-chart-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(110px, 160px);
  grid-template-areas:
    "date track rate"
    ". labels .";
  align-items: center;
  gap: 12px;
}

.dashboard-chart-row span,
.dashboard-chart-row strong {
  font-size: 0.84rem;
}

.dashboard-chart-row span {
  grid-area: date;
  color: #6b7280;
}

.dashboard-chart-row strong,
.dashboard-chart-rate {
  grid-area: rate;
  color: #1f2937;
  text-align: right;
}

.dashboard-chart-track {
  grid-area: track;
  height: 10px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.dashboard-chart-fill {
  display: flex;
  height: 100%;
  width: 100%;
  min-width: 0;
  border-radius: inherit;
}

.dashboard-chart-segment {
  display: block;
  height: 100%;
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.7);
}

.dashboard-chart-segment:last-child {
  border-right: 0;
}

.dashboard-chart-labels {
  grid-area: labels;
  display: flex;
  width: 100%;
  gap: 0;
}

.dashboard-chart-labels small {
  display: block;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
}

.dashboard-list {
  display: grid;
}

.dashboard-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid #f0f2f5;
}

.dashboard-list-item:first-child {
  border-top: 0;
}

.dashboard-list-item div {
  display: grid;
  gap: 4px;
}

.dashboard-list-item strong {
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 700;
}

.dashboard-list-item span {
  color: #6b7280;
  font-size: 0.82rem;
}

.marketing-admin-card {
  margin-top: 16px;
}

.marketing-page-header {
  margin-top: 4px;
}

.marketing-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #dce7e9;
  border-radius: 10px;
  background: #fbfdfd;
}

.marketing-toggle input {
  width: 20px !important;
  min-height: 20px !important;
  margin: 0;
}

.marketing-banner-panel {
  display: grid;
  align-content: start;
}

.marketing-upload-trigger {
  white-space: nowrap;
}

.marketing-banner-list {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.marketing-banner-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid #e5edf1;
  border-radius: 16px;
  background: #fff;
}

.marketing-banner-preview {
  overflow: hidden;
  min-height: 150px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dfecee, #edf5f6);
}

.marketing-banner-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marketing-banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.marketing-banner-body {
  display: grid;
  gap: 12px;
}

.marketing-banner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.marketing-banner-meta small {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.marketing-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marketing-banner-actions button {
  min-height: 40px;
  padding: 0 14px;
}

.marketing-empty {
  margin: 0;
  padding: 22px 16px;
}

.marketing-fallback-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.marketing-fallback-preview {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #d7e2ea;
  border-radius: 14px;
  background: #f8fbfc;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.marketing-fallback-preview img {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: cover;
}

.marketing-fallback-actions {
  display: flex;
  align-items: center;
}

.admin-overview-inline {
  margin: 0 18px 18px;
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid var(--line);
  background: #f7f9fb;
  color: var(--ink);
}

.audit-badge.is-success {
  border-color: #9fd6c4;
  background: #eefaf4;
  color: #1c7c54;
}

.audit-badge.is-error {
  border-color: #e8b3ad;
  background: #fff6f5;
  color: #9f2418;
}

.audit-badge.is-pending {
  border-color: #ead9a0;
  background: #fff9e8;
  color: #8a6b00;
}

.admin-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--admin-shadow-soft);
  overflow: hidden;
}

body.mercadopago-page .admin-main {
  display: grid;
  gap: 16px;
}

body.mercadopago-page .admin-card .admin-form {
  padding: 18px;
}

body.mercadopago-page .admin-table-header {
  padding-bottom: 0;
}

body.mercadopago-page .mercadopago-form-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

body.mercadopago-page .mercadopago-toggle-row,
body.mercadopago-page .mercadopago-field-row {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e3ecee;
  border-radius: 8px;
  background: #fcfdfd;
}

body.mercadopago-page .mercadopago-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.mercadopago-page .mercadopago-toggle-row input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

body.mercadopago-page .mercadopago-toggle-row span {
  color: var(--ink);
  font-size: .88rem;
  font-weight: 800;
}

body.mercadopago-page .mercadopago-field-row {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

body.mercadopago-page .mercadopago-field-row span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

body.mercadopago-page .mercadopago-field-row input {
  min-height: 40px;
  border-color: #dce7e9;
  background: #fff;
}

body.mercadopago-page .mercadopago-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}

body.mercadopago-page .mercadopago-status-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

body.mercadopago-page .mercadopago-status-grid span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

body.mercadopago-page .mercadopago-status-grid strong {
  color: var(--ink);
  font-size: 1rem;
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.admin-quick-form {
  border-right: 1px solid var(--line);
}

.admin-form-grid {
  display: grid;
  gap: 12px;
}

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

.admin-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-side-panel {
  display: grid;
  align-content: start;
}

.admin-side-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

.admin-side-panel-head h3 {
  font-size: 1.02rem;
  margin-top: 4px;
}

.admin-side-panel-count {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--teal-dark);
  background: #edf7f7;
  border: 1px solid #d3e7e8;
  font-size: 1.05rem;
  font-weight: 900;
}

.admin-blocks-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfefe;
}

.admin-blocks-toolbar.manual-blocks-toolbar {
  grid-template-columns: minmax(0, 1fr);
}

.admin-blocks-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 850;
}

.admin-blocks-toolbar input,
.admin-blocks-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.admin-blocks-toolbar input:focus,
.admin-blocks-toolbar select:focus {
  outline: none;
  border-color: rgba(7, 151, 154, 0.55);
  box-shadow: 0 0 0 3px rgba(7, 151, 154, 0.14);
}

.admin-blocks-overview {
  padding: 0 18px 18px;
  margin: 0;
}

.admin-table-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid #eef0f3;
}

.admin-table-header h2 {
  font-size: 1rem;
  line-height: 1.25;
  color: #1f2937;
}

.admin-table-header p {
  max-width: 340px;
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: right;
}

.reservations-search-field {
  width: min(100%, 340px);
}

.quick-block-calendar {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfb;
}

.quick-block-calendar-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.quick-block-calendar-head h3 {
  color: var(--ink);
  font-size: 1rem;
}

.quick-block-calendar-head p:last-child,
.quick-block-calendar-legend {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}

.quick-block-calendar .calendar-day {
  min-height: 64px;
}

.quick-block-calendar .calendar-day:disabled {
  cursor: not-allowed;
}

.quick-block-calendar-legend {
  margin-top: 12px;
}

.quick-block-calendar-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d9e3ea;
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: .82rem;
  line-height: 1.4;
}

.quick-block-calendar-details strong {
  flex-basis: 100%;
  color: var(--ink);
}

.quick-block-calendar-details span {
  display: inline-flex;
  gap: 4px;
}

.quick-block-calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.quick-block-calendar-actions button.is-danger {
  color: #fff;
  border-color: #a11b1b;
  background: #b42318;
}

.quick-block-client-fields {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 20px;
}

.quick-block-client-fields[hidden] {
  display: none;
}

.quick-block-client-fields-dialog {
  width: min(680px, 100%);
  margin: 0;
  border-width: 2px;
  text-align: left;
}

.quick-block-client-fields-dialog > p {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

.quick-block-client-choice {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
}

body.quick-block-modal-open {
  overflow: hidden;
}

.quick-block-client-choice[hidden] {
  display: none;
}

.quick-block-client-choice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(3px);
}

.quick-block-client-choice-dialog {
  position: relative;
  width: min(430px, 100%);
  margin: 0;
  padding: 26px 22px;
  border: 2px solid #0f766e;
  border-radius: 14px;
  color: var(--teal-dark);
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .25);
  font-size: 1.05rem;
  text-align: center;
}

.quick-block-client-choice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.quick-block-client-choice-dialog h3 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 1.1rem;
}

.quick-block-client-choice-dialog > p:not(.eyebrow) {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

.quick-block-unlock-confirmation .package-merge-dialog > p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

.quick-block-client-choice-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}

.quick-block-client-fields h3 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 1rem;
}

.admin-section-heading > p {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.4;
}

.quick-block-choice-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.quick-block-choice-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.quick-block-choice-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(25, 119, 121, .12);
}

.quick-block-choice-option span {
  display: grid;
  gap: 3px;
}

.quick-block-choice-option small {
  color: var(--muted);
}

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-section-heading h3 {
  margin-bottom: 0;
}

.admin-form label em {
  color: #b42318;
  font-style: normal;
  font-size: .8em;
}

@media (max-width: 700px) {
  .quick-block-choice-options {
    grid-template-columns: 1fr;
  }

  .admin-section-heading {
    display: block;
  }
}

.admin-table-wrap {
  overflow: hidden;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px 18px;
}

.admin-pagination span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-pagination .admin-link[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.94rem;
}

.admin-table th,
.admin-table td {
  padding: 16px;
  border-bottom: 1px solid #f0f2f5;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.admin-table th {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fbfcfd;
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-table tbody tr:nth-child(even) {
  background: #fcfcfd;
}

.admin-table tbody tr:hover {
  background: #f9fafb;
}

.admin-empty {
  padding: 16px 18px 18px;
  color: var(--muted);
  line-height: 1.5;
}

.admin-note {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.admin-inline-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.marketing-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d9e3ea;
  border-radius: 999px;
  background: #f8fbfc;
  font-size: 0.84rem;
  font-weight: 800;
}

.marketing-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #9aa4b2;
  box-shadow: 0 0 0 4px rgba(154, 164, 178, 0.14);
}

.admin-inline-note.is-error {
  color: #b42318;
  font-weight: 800;
}

.admin-inline-note.is-success {
  color: #1c7c54;
  font-weight: 900;
}

.marketing-status.is-pending {
  color: #8a6b00;
  border-color: #ead9a0;
  background: #fff9e8;
}

.marketing-status.is-pending::before {
  background: #d4a000;
  box-shadow: 0 0 0 4px rgba(212, 160, 0, 0.16);
}

.marketing-status.is-saving {
  color: #155eef;
  border-color: #bfd3ff;
  background: #eef4ff;
}

.marketing-status.is-saving::before {
  background: #155eef;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.16);
}

.marketing-status.is-success {
  border-color: #9fd6c4;
  background: #eefaf4;
}

.marketing-status.is-success::before {
  background: #1c7c54;
  box-shadow: 0 0 0 4px rgba(28, 124, 84, 0.16);
}

.marketing-status.is-error {
  border-color: #f2c4c0;
  background: #fff1f0;
}

.marketing-status.is-error::before {
  background: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14);
}

.admin-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.admin-form textarea {
  min-height: 104px;
  padding-top: 11px;
  resize: vertical;
}

.minimum-rule-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.minimum-rule-days legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 850;
}

.minimum-rule-days label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #d3e7e8;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #f7fbfb;
  font-size: .86rem;
  font-weight: 800;
}

.minimum-rule-days input {
  width: auto;
  min-height: 0;
  padding: 0;
}

.coupon-weekdays-picker {
  display: grid;
  gap: 12px;
}

.coupon-weekday-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coupon-weekday-range {
  display: grid;
  gap: 12px;
}

.coupon-weekday-range label {
  display: grid;
  gap: 7px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 850;
}

.coupon-weekday-range button {
  align-self: end;
}

.minimum-stay-preview {
  margin: 0;
  padding: 10px 11px;
  border: 2px solid #dc2626;
  border-radius: 8px;
  color: #991b1b;
  background: #fee2e2;
  font-size: .88rem;
  font-weight: 850;
  line-height: 1.35;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions button,
.admin-link,
.admin-table button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: #2563eb;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.admin-actions button:hover,
.admin-actions button:focus-visible,
.admin-link:hover,
.admin-link:focus-visible,
.admin-table button:hover,
.admin-table button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14);
}

.admin-actions button.secondary,
.admin-link,
.admin-table button.secondary {
  color: #374151;
  background: #ffffff;
  border-color: #e5e7eb;
}

.admin-link.is-active {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

.admin-heading-actions p {
  margin: 0;
  align-self: center;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.admin-actions button.is-danger,
.admin-table button.is-danger,
.client-file-actions button.is-danger,
.modal-close.is-danger {
  color: #b42318;
  background: #fff1f0;
  border-color: #f2c4c0;
}

.admin-table button {
  min-height: 38px;
  padding-inline: 12px;
}

.reservation-row-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.admin-table .reservation-row-actions button {
  width: auto;
  flex: 0 1 auto;
  white-space: nowrap;
}

.logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 10px 14px;
  color: var(--teal-dark);
  font: inherit;
  font-weight: 850;
}

.client-search-panel,
.apartment-search-panel,
.client-recent-panel,
.admin-editor-panel {
  margin-top: 0;
}

body.admin-page:not(.perfil-page):not(.login-page) .profile-account-body {
  width: 100%;
  min-width: 0;
}

body.admin-page:not(.perfil-page):not(.login-page) .profile-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 18px;
  width: 100%;
  min-width: 0;
  align-items: start;
}

body.admin-page:not(.perfil-page):not(.login-page) .profile-account-grid > * {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.admin-page:not(.perfil-page):not(.login-page) .profile-account-grid .admin-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.client-search-panel,
.apartment-search-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.client-search-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.client-search-actions {
  display: flex;
  align-items: center;
}

.client-search-field {
  display: grid;
  gap: 7px;
}

.client-search-field span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.client-search-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.client-list-wrap,
.apartment-list-wrap {
  padding: 18px;
}

.client-list,
.apartment-list {
  display: grid;
  gap: 12px;
}

.client-list-item,
.apartment-list-item {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--teal-dark);
  background: #f8fbfb;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.client-list-item strong,
.apartment-list-item strong {
  display: block;
  width: 100%;
  line-height: 1.3;
  white-space: normal;
}

.apartment-list-copy {
  display: grid;
  gap: 8px;
  width: 100%;
}

.apartment-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.apartment-list-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #e5f2f3;
  font-size: 0.8rem;
  font-weight: 800;
}

.apartment-list-meta .pet-status {
  min-width: 32px;
  padding: 4px 8px;
  gap: 6px;
}

.pet-status img {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
}

.pet-status small {
  display: block;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.pet-status.is-yes {
  color: var(--teal-dark);
  background: #e5f2f3;
}

.pet-status.is-yes img {
  filter: hue-rotate(118deg) saturate(0.42) brightness(0.86);
}

.client-list-item:hover,
.client-list-item:focus-visible,
.apartment-list-item:hover,
.apartment-list-item:focus-visible {
  background: #edf7f7;
  border-color: #c4dee0;
  box-shadow: 0 10px 24px rgba(18, 51, 58, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.apartment-list-item:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 2px;
}

.admin-toggle-field {
  justify-content: start;
  align-content: start;
}

.admin-toggle-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--teal-dark);
}

.admin-toggle-field small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.faq-admin-form {
  gap: 18px;
}

.faq-admin-list {
  display: grid;
  gap: 16px;
}

.faq-admin-item {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbfb;
}

.faq-admin-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-admin-item-head strong {
  color: var(--ink);
  font-size: 1rem;
}

.faq-admin-grid {
  display: grid;
  grid-template-columns: 120px 120px minmax(0, 1fr);
  gap: 14px;
}

body.faq-admin-page .admin-form .span-2 {
  grid-column: span 3;
}

.faq-admin-stat input[readonly] {
  background: #eef5f6;
  color: var(--muted);
  font-weight: 800;
}

.client-file-list {
  display: grid;
  gap: 10px;
}

.client-file-list article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfb;
}

.client-file-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.client-file-list a {
  color: var(--teal-dark);
  font-weight: 850;
}

.profile-box {
  padding: 18px;
}

.profile-detail {
  display: grid;
  gap: 8px;
}

.profile-detail strong {
  font-size: 1.25rem;
}

.profile-detail span {
  color: var(--muted);
}

body.perfil-page .profile-layout {
  display: grid;
  gap: 18px;
}

body.perfil-page .profile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

body.perfil-page .profile-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.perfil-page .profile-nav-link.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

body.perfil-page .profile-nav-action {
  margin-left: auto;
}

body.perfil-page [data-profile-section][hidden] {
  display: none !important;
}

body.perfil-page .admin-table tbody tr.profile-reservation-row.is-latest {
  background: #ecfdf3;
}

body.perfil-page .admin-table tbody tr.profile-reservation-row.is-latest:hover {
  background: #dcfce8;
}

body.perfil-page .admin-table tbody tr.profile-reservation-row.is-expired {
  background: #fef2f2;
}

body.perfil-page .admin-table tbody tr.profile-reservation-row.is-expired:hover {
  background: #fee2e2;
}

body.perfil-page .admin-table tbody tr.profile-reservation-row.is-hold {
  background: #fffbeb;
}

body.perfil-page .admin-table tbody tr.profile-reservation-row.is-hold:hover {
  background: #fef3c7;
}

body.perfil-page .profile-reservations-head,
body.perfil-page .profile-account-head {
  align-items: center;
}

body.perfil-page .profile-reservations-head p,
body.perfil-page .profile-account-head p {
  max-width: 460px;
  text-align: right;
}

body.perfil-page .profile-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.perfil-page .profile-form-grid:first-of-type {
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
}

body.perfil-page .profile-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

body.perfil-page .profile-section-head h3 {
  font-size: 1.04rem;
  margin-top: 4px;
}

body.perfil-page .profile-section-head span {
  max-width: 250px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: right;
}

body.perfil-page .profile-reservation-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
}

body.perfil-page .profile-reservation-modal[hidden] {
  display: none !important;
}

body.perfil-page .profile-reservation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 28, 31, 0.62);
  backdrop-filter: blur(6px);
}

body.perfil-page .profile-reservation-dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 68px rgba(18, 51, 58, 0.26);
}

body.perfil-page .profile-reservation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

body.perfil-page .profile-reservation-header h2 {
  font-size: 1.15rem;
  line-height: 1.2;
  margin-top: 4px;
}

body.perfil-page .profile-reservation-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

body.perfil-page .profile-modal-close-button {
  text-decoration: none;
}

body.perfil-page .profile-reservation-content {
  display: grid;
  gap: 16px;
  padding: 18px;
}

body.checkout-page .checkout-success-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
}

body.checkout-page .checkout-success-modal[hidden] {
  display: none !important;
}

body.checkout-page .checkout-success-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(13, 28, 31, 0.62);
  backdrop-filter: blur(6px);
}

body.checkout-page .checkout-success-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 68px rgba(18, 51, 58, 0.26);
  padding: 22px;
}

body.checkout-page .checkout-success-content {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

body.checkout-page .checkout-success-content h2 {
  font-size: 1.25rem;
  line-height: 1.2;
}

body.checkout-page .checkout-success-content p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

body.perfil-page .profile-reservation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.perfil-page .profile-reservation-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfb;
}

body.perfil-page .profile-reservation-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.perfil-page .profile-reservation-grid strong {
  font-size: 1rem;
  line-height: 1.35;
}

body.perfil-page .profile-reservation-actions {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

body.perfil-page .profile-reservation-buttons .admin-link {
  text-decoration: none;
}

body.perfil-page .profile-reservation-guests {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

body.perfil-page .profile-guest-form {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

body.perfil-page .profile-guest-list {
  display: grid;
  gap: 12px;
}

body.perfil-page .profile-guest-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfb;
}

body.perfil-page .profile-guest-card-head strong {
  font-size: 0.96rem;
}

body.perfil-page .profile-guest-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.perfil-page .profile-guest-fields {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr) minmax(180px, 0.45fr) minmax(120px, 0.25fr);
  gap: 12px;
}

body.perfil-page .profile-guest-document-type {
  display: grid;
  gap: 8px;
}

body.perfil-page .profile-guest-document-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

body.perfil-page .profile-guest-document-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

body.perfil-page .profile-guest-document-option input {
  accent-color: var(--accent);
}

body.perfil-page .profile-guest-document-option span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

body.perfil-page .profile-guest-document-option input:checked + span {
  border-color: #2f64e3;
  background: #eaf1ff;
  color: #173b7a;
}

body.perfil-page .profile-guest-document-option input:focus-visible + span {
  outline: 2px solid rgba(47, 100, 227, 0.25);
  outline-offset: 2px;
}

body.perfil-page .profile-guest-fields .is-wide {
  grid-column: span 1;
}

.checkout-timer {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff8dd;
}

.checkout-timer span,
.checkout-timer small {
  color: var(--muted);
}

.checkout-timer span {
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-timer strong {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--ink);
}

#checkoutMessage {
  width: 100%;
  text-align: center;
}

body.checkout-page .checkout-payment-methods {
  display: grid;
  gap: 18px;
}

body.checkout-page .profile-account-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.checkout-page .checkout-guest-form {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.checkout-page .checkout-guest-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid #d8e3ea;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(245, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 40px rgba(22, 35, 52, 0.08);
}

body.checkout-page .checkout-guest-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

body.checkout-page .checkout-guest-card-head h3 {
  margin: 4px 0 0;
  font-size: 1.3rem;
  color: #15324a;
}

body.checkout-page .checkout-guest-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e7f3ec;
  color: #1f6b49;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.checkout-page .checkout-guest-card-copy {
  margin: 0;
  color: #5f7280;
  line-height: 1.6;
}

body.checkout-page .checkout-guest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.checkout-page .checkout-guest-field {
  display: grid;
  gap: 8px;
}

body.checkout-page .checkout-guest-field-full {
  grid-column: 1 / -1;
}

body.checkout-page .checkout-guest-field span {
  color: #486070;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.checkout-page .checkout-guest-field input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #d3dde6;
  border-radius: 12px;
  background: #fff;
  color: #15324a;
  font-size: 1rem;
  font-weight: 600;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

body.checkout-page .checkout-guest-field input::placeholder {
  color: #93a4b2;
  font-weight: 500;
}

body.checkout-page .checkout-guest-field input:focus {
  outline: 0;
  border-color: #88b9a2;
  box-shadow: 0 0 0 4px rgba(136, 185, 162, 0.16);
  background: #fcfffd;
}

body.checkout-page .checkout-guest-note {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #d9e4eb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

body.checkout-page .checkout-guest-note strong {
  color: #15324a;
  font-size: 0.92rem;
}

body.checkout-page .checkout-guest-note span {
  color: #5f7280;
  line-height: 1.55;
}

body.checkout-page .checkout-guest-actions {
  justify-content: flex-end;
}

body.checkout-page .checkout-guest-actions button {
  min-height: 48px;
  padding-inline: 22px;
}

body.checkout-page #checkoutPaymentMethods[hidden],
body.checkout-page #checkoutGuestForm[hidden],
body.checkout-page #checkoutStatusPanel[hidden],
body.checkout-page #checkoutTimer[hidden],
body.checkout-page #checkoutSuccessModal[hidden] {
  display: none !important;
}

body.checkout-page .checkout-method-card {
  display: grid;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

body.checkout-page .checkout-secure-note {
  margin: 0;
  color: #6b7280;
  font-size: 0.86rem;
  text-align: center;
}

body.checkout-page .checkout-payment-choice {
  display: grid;
  gap: 10px;
  margin: 4px 0 6px;
  text-align: left;
}

body.checkout-page .checkout-payment-choice > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.checkout-page .checkout-payment-choice__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.checkout-page .checkout-payment-choice__buttons button {
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 14px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

body.checkout-page .checkout-payment-choice__buttons button:hover,
body.checkout-page .checkout-payment-choice__buttons button.is-active {
  border-color: #2563eb;
  background: #f8fbff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

body.checkout-page .checkout-method-card.is-unavailable {
  background: #fff7f7;
}

body.checkout-page .checkout-method-head {
  display: grid;
  gap: 8px;
}

body.checkout-page .checkout-method-head p:not(.eyebrow) {
  margin: 0;
  color: #6b7280;
  line-height: 1.5;
}

body.checkout-page .checkout-environment-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.checkout-page .checkout-value-block {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  text-align: center;
}

body.checkout-page .checkout-value-block span {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 700;
}

body.checkout-page .checkout-value-block strong {
  color: #111827;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

body.checkout-page .checkout-trust-list {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

body.checkout-page .checkout-trust-list span {
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.55;
}

body.checkout-page .checkout-confirm-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
}

body.checkout-page .checkout-confirm-actions button {
  min-width: min(320px, 100%);
}

body.payment-status-page .admin-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 180px);
}

body.payment-status-page .payment-status-card {
  width: min(100%, 620px);
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

body.payment-status-page .payment-status-card > img {
  width: 148px;
  height: auto;
}

body.payment-status-page .payment-status-card > img.payment-status-hero {
  width: min(100%, 220px);
  justify-self: center;
}

body.payment-status-page .payment-status-card > img.payment-recovery-hero,
body.payment-status-page .payment-status-card > img.payment-support-hero {
  width: min(100%, 240px);
  max-height: 360px;
  object-fit: contain;
  justify-self: center;
  border-radius: 12px;
}

body.payment-status-page .payment-status-card > p {
  margin: 0;
  text-align: center;
}

body.payment-status-page .payment-status-grid {
  display: grid;
  gap: 12px;
}

body.payment-status-page .payment-status-grid > div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #f9fafb;
}

body.payment-status-page .payment-status-grid dt {
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.payment-status-page .payment-status-grid dd {
  margin: 0;
  color: #111827;
  font-weight: 700;
}

body.payment-status-page .payment-status-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

body.payment-status-page .payment-status-actions .admin-link {
  text-align: center;
}

body.checkout-page .checkout-bricks-shell,
body.checkout-page .checkout-status-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

body.checkout-page .checkout-payment-brick,
body.checkout-page .checkout-status-brick {
  min-height: 160px;
}

body.checkout-page .checkout-payment-brick > div,
body.checkout-page .checkout-status-brick > div {
  width: 100%;
}

body.checkout-page .checkout-method-picker {
  display: grid;
  gap: 10px;
}

body.checkout-page .checkout-method-picker > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.checkout-page .checkout-method-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

body.checkout-page .checkout-method-option:hover {
  border-color: #cbd5e1;
  background: #fbfdff;
}

body.checkout-page .checkout-method-option input {
  margin-top: 3px;
}

body.checkout-page .checkout-method-option strong,
body.checkout-page .checkout-method-option small {
  grid-column: 2;
}

body.checkout-page .checkout-method-option strong {
  color: var(--ink);
  font-size: 0.95rem;
}

body.checkout-page .checkout-method-option small {
  color: var(--muted);
  line-height: 1.45;
}

body.checkout-page .checkout-method-option:has(input:checked) {
  border-color: #2563eb;
  background: #f8fbff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

body.checkout-page .checkout-method-picker.is-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.checkout-page .checkout-method-picker.is-compact .checkout-method-option {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
}

body.checkout-page .checkout-method-picker.is-compact .checkout-method-option strong {
  grid-column: 2;
  font-size: 0.92rem;
}

body.checkout-page .checkout-method-picker.is-compact .checkout-method-option small {
  display: none;
}

body.checkout-page .checkout-card-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

body.checkout-page .checkout-card-header {
  display: grid;
  gap: 4px;
}

body.checkout-page .checkout-card-header strong {
  color: var(--ink);
  font-size: 1rem;
}

body.checkout-page .checkout-card-header span {
  color: var(--muted);
  line-height: 1.5;
}

body.checkout-page .checkout-card-form {
  display: grid;
  gap: 16px;
}

body.checkout-page .checkout-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.checkout-page .checkout-card-grid label {
  display: grid;
  gap: 8px;
}

body.checkout-page .checkout-card-grid label.is-wide {
  grid-column: 1 / -1;
}

body.checkout-page .checkout-card-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.checkout-page .checkout-card-grid input,
body.checkout-page .checkout-card-grid select,
body.checkout-page .checkout-sdk-field {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

body.checkout-page .checkout-card-grid input,
body.checkout-page .checkout-card-grid select {
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
}

body.checkout-page .checkout-sdk-field {
  padding: 10px 12px;
}

body.checkout-page .checkout-card-progress {
  width: 100%;
  height: 4px;
}

body.checkout-page .checkout-brand-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
  border-top: 1px solid #eef2f7;
}

body.checkout-page .checkout-brand-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.checkout-page .checkout-brand-footer small {
  color: var(--muted);
  line-height: 1.4;
}

@media (min-width: 1101px) {
  body.coupons-page .coupon-desktop-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 24px;
  }

  body.coupons-page #couponForm .profile-form-grid,
  body.coupons-page .coupon-target-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.coupons-page .coupon-weekday-range {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }

  body.coupons-page .coupon-desktop-layout > .admin-card {
    align-self: start;
  }

  body.coupons-page .coupon-desktop-layout > .admin-card .admin-table-wrap {
    overflow-x: auto;
  }

  body.coupons-page .coupon-desktop-layout.is-list-only > .admin-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  body.coupons-page .coupon-desktop-layout {
    grid-template-columns: 1fr;
  }

  body.coupons-page .coupon-target-grid {
    display: grid;
    gap: 14px;
  }

  body.coupons-page .coupon-weekday-range {
    display: grid;
    gap: 14px;
  }
}

body.coupons-page .coupon-list-header {
  margin-bottom: 12px;
}

body.coupons-page #couponForm[hidden] {
  display: none;
}

body.admin-page.coupons-page.coupon-form-page .profile-account-grid.coupon-desktop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: none;
}

body.admin-page.coupons-page.coupon-form-page #couponForm {
  width: 100%;
  max-width: none;
  grid-column: 1 / -1;
}

body.coupon-form-page .coupon-desktop-layout > .admin-card[hidden] {
  display: none;
}

body.coupons-page .coupon-list-header > button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--teal-dark);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

@media (min-width: 901px) {
  body.checkout-page .admin-main {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;
  }

  body.checkout-page .admin-heading,
  body.checkout-page .admin-table-header {
    text-align: center;
  }

  body.checkout-page .admin-heading {
    justify-content: center;
  }

  body.checkout-page .admin-heading > div:first-child,
  body.checkout-page .admin-table-header > div:first-child {
    margin-inline: auto;
  }

  body.checkout-page #checkoutSummary,
  body.checkout-page #checkoutSummary .profile-reservation-grid article,
  body.checkout-page .checkout-timer {
    text-align: center;
  }

  body.checkout-page #checkoutSummary .admin-actions {
    justify-content: center;
  }

  body.checkout-page .checkout-method-card,
  body.checkout-page .checkout-method-head {
    text-align: left;
  }
}

@media (max-width: 900px) {
  body.perfil-page .profile-account-grid,
  body.perfil-page .profile-reservation-grid,
  body.perfil-page .profile-guest-fields {
    grid-template-columns: 1fr;
  }

  body.perfil-page .profile-account-grid .admin-form + .admin-form {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  body.checkout-page .checkout-card-grid {
    grid-template-columns: 1fr;
  }

  body.checkout-page .checkout-method-picker.is-compact {
    grid-template-columns: 1fr;
  }

  body.checkout-page .checkout-payment-choice__buttons {
    grid-template-columns: 1fr;
  }

  body.checkout-page .checkout-confirm-actions,
  body.payment-status-page .payment-status-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.checkout-page .checkout-confirm-actions button,
  body.checkout-page .checkout-confirm-actions .admin-link,
  body.payment-status-page .payment-status-actions > * {
    width: 100%;
    text-align: center;
  }

  body.checkout-page .checkout-guest-card {
    padding: 18px;
    border-radius: 16px;
  }

  body.checkout-page .checkout-guest-card-head {
    display: grid;
  }

  body.checkout-page .checkout-guest-grid {
    grid-template-columns: 1fr;
  }

  body.checkout-page .checkout-guest-field-full {
    grid-column: auto;
  }

  body.perfil-page .profile-form-grid,
  body.perfil-page .profile-form-grid:first-of-type {
    grid-template-columns: 1fr;
  }

  .dashboard-revenue-head {
    display: grid;
  }

  .dashboard-revenue-pagination {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  body.perfil-page .profile-nav-action {
    margin-left: 0;
  }

  body.perfil-page .profile-reservations-head,
  body.perfil-page .profile-account-head,
  body.perfil-page .profile-section-head,
  body.perfil-page .profile-reservation-header {
    display: grid;
  }

  body.perfil-page .profile-reservations-head p,
  body.perfil-page .profile-account-head p,
  body.perfil-page .profile-section-head span {
    max-width: none;
    text-align: left;
  }
}

@media (min-width: 1200px) {
  body.admin-page {
    --admin-shell-max: 1520px;
    --admin-shell-padding: 36px;
  }

  .admin-main {
    gap: 22px;
  }

  .admin-page-topbar,
  .admin-heading,
  .admin-overview,
  .dashboard-panels,
  .admin-card {
    min-width: 0;
  }

  .admin-overview {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }

  .admin-overview article {
    min-height: 110px;
  }

  .dashboard-panels {
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.9fr);
    gap: 20px;
    align-items: start;
  }

  .dashboard-chart-card {
    grid-row: span 2;
  }

  .admin-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .admin-table-header {
    align-items: center;
  }
}

@media (min-width: 1600px) {
  body.admin-page {
    --admin-shell-max: 1600px;
  }
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  justify-items: stretch;
}

.login-page .site-header {
  width: 100%;
  align-self: start;
  justify-self: stretch;
}

.login-page > .login-shell,
.login-page > .wizard-shell,
.login-page > .completion-shell {
  align-self: center;
  justify-self: center;
}

.login-shell {
  width: min(520px, calc(100% - 24px));
  padding: 28px 0;
}

.client-login-shell {
  width: min(540px, calc(100% - 24px));
}

.completion-shell {
  width: min(920px, calc(100% - 24px));
  padding: 28px 0;
}

.login-panel {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-brand img {
  width: 210px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
}

.login-panel h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1.04;
}

.login-panel p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.login-panel .login-ip {
  margin-top: 14px;
  text-align: center;
  color: var(--teal-dark);
  font-size: .88rem;
}

.login-panel .login-ip strong {
  font-variant-numeric: tabular-nums;
}

.login-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.login-choice[hidden],
.login-form[hidden],
.login-alt[hidden] {
  display: none !important;
}

.login-choice-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: var(--teal-dark);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.login-choice-button.secondary {
  color: var(--teal-dark);
  background: #edf7f7;
  border-color: #d3e7e8;
}

.login-form,
.completion-form {
  padding: 0;
}

.password-toggle-field {
  position: relative;
  display: block;
}

.password-toggle-field input {
  width: 100%;
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  min-height: 0 !important;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  border: 1px solid #d3e7e8 !important;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #fff !important;
  box-shadow: none !important;
  line-height: 1;
  transform: translateY(-50%);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle.is-visible {
  background: #eef7f5 !important;
}

.login-form button,
.completion-form button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: var(--teal-dark);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.login-form .link-button {
  min-height: auto;
  justify-self: start;
  padding: 0;
  color: var(--teal-dark);
  background: transparent;
}

.login-alt {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.login-alt a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
}

.login-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.login-message.is-error {
  color: #b42318;
}

.login-alert {
  position: fixed;
  top: 24px;
  top: calc(constant(safe-area-inset-top) + 24px);
  top: calc(env(safe-area-inset-top, 0px) + 24px);
  left: 50%;
  z-index: 90;
  width: min(520px, calc(100vw - 24px));
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid #d3e7e8;
  border-radius: 8px;
  background: #f8fbfb;
  box-shadow: 0 18px 40px rgba(18, 51, 58, 0.18);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.login-alert.is-error {
  border-color: #e8b3ad;
  background: #fff6f5;
}

.completion-panel h1 {
  max-width: none;
}

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

.completion-grid .password-match-note {
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.completion-grid .password-match-note.is-valid {
  color: #1c7c54;
}

.completion-grid .password-match-note.is-invalid {
  color: #b42318;
}

.completion-grid .password-help {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.completion-grid .password-field input {
  border-width: 2px;
}

.completion-grid .password-field.is-valid input {
  border-color: #a7d8d1;
  box-shadow: 0 0 0 3px rgba(167, 216, 209, 0.22);
}

.completion-grid .password-field.is-invalid input {
  border-color: #e8b3ad;
  box-shadow: 0 0 0 3px rgba(232, 179, 173, 0.2);
}

.completion-step {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.completion-step h2 {
  font-size: 1.18rem;
}

.completion-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.completion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.completion-actions button.secondary {
  color: var(--teal-dark);
  background: #edf7f7;
  border-color: #d3e7e8;
}

.camera-box {
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.camera-box [hidden] {
  display: none !important;
}

.camera-box span {
  color: var(--muted);
  font-weight: 850;
  text-align: center;
  padding: 18px;
}

.camera-box video,
.camera-box img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.body-link {
  color: var(--teal-dark);
  font-weight: 850;
}

body.cadastro-clientes-page .client-search-panel,
body.apartments-page .apartment-search-panel {
  margin-top: 0;
}

body.cadastro-clientes-page .admin-table-header,
body.apartments-page .admin-table-header {
  align-items: center;
}

body.cadastro-clientes-page .admin-table-header p,
body.apartments-page .admin-table-header p {
  max-width: 360px;
}

body.cadastro-clientes-page .admin-empty,
body.apartments-page .admin-empty {
  padding: 0 18px 18px;
}

body.cadastro-clientes-page .admin-editor-panel,
body.apartments-page .admin-editor-panel {
  margin-top: 18px;
}

body.apartments-editor-page .admin-editor-panel {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

body.apartments-editor-page .admin-form {
  gap: 12px;
  padding: 16px;
}

body.apartments-editor-page .admin-table-header {
  padding-bottom: 2px;
}

body.apartments-editor-page .admin-table-header p {
  max-width: 620px;
}

body.apartments-editor-page .apartment-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 2px;
}

body.apartments-editor-page .apartment-editor-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

body.apartments-editor-page .apartment-editor-tab.is-active {
  border-color: #9fd6c4;
  background: #eefaf4;
  color: var(--teal-dark);
}

body.apartments-editor-page .apartment-editor-panel-section[hidden] {
  display: none !important;
}

body.apartments-editor-page .apartment-editor-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

body.apartments-editor-page .apartment-editor-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.apartments-editor-page .apartment-editor-section-head strong {
  font-size: 0.98rem;
  color: var(--ink);
}

body.apartments-editor-page .apartment-editor-grid {
  display: grid;
  gap: 12px;
}

body.apartments-editor-page .apartment-editor-grid-main {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.apartments-editor-page .apartment-editor-grid-upload {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

body.apartments-editor-page .admin-form .span-2 {
  grid-column: span 2;
}

body.apartments-editor-page .compact-actions {
  justify-content: flex-end;
}

body.apartments-editor-page .rich-editor-field {
  display: grid;
  gap: 10px;
}

body.apartments-editor-page .rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
}

body.apartments-editor-page .rich-editor-tool,
body.apartments-editor-page .rich-editor-color {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d6dde6;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

body.apartments-editor-page .rich-editor-tool {
  cursor: pointer;
}

body.apartments-editor-page .rich-editor-color {
  padding-right: 8px;
}

body.apartments-editor-page .rich-editor-color span {
  font-size: 0.9rem;
}

body.apartments-editor-page .rich-editor-color input {
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

body.apartments-editor-page .apartment-occupancy-color-field {
  display: grid;
  gap: 8px;
}

body.apartments-editor-page .apartment-occupancy-color-field input[type="color"] {
  width: 52px;
  height: 38px;
  padding: 4px;
  border: 1px solid #d6dde6;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

body.apartments-editor-page .apartment-occupancy-color-field small {
  color: var(--muted);
}

body.apartments-editor-page .rich-editor-input {
  min-height: 240px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body.apartments-editor-page .rich-editor-input:focus {
  outline: 0;
  border-color: #9fd6c4;
  box-shadow: 0 0 0 3px rgba(159, 214, 196, 0.2);
}

body.apartments-editor-page .rich-editor-input[data-empty="true"]::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

body.apartments-editor-page .rich-editor-input p,
body.apartments-editor-page .rich-editor-input h3,
body.apartments-editor-page .rich-editor-input ul,
body.apartments-editor-page .rich-editor-input ol {
  margin: 0 0 0.9em;
}

body.apartments-editor-page .rich-editor-input ul,
body.apartments-editor-page .rich-editor-input ol {
  padding-left: 1.4em;
}

body.cadastro-clientes-page .admin-editor-note {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

body.cadastro-clientes-page .admin-editor-body {
  padding: 0 18px 18px;
}

body.cadastro-clientes-page .admin-editor-body[hidden] {
  display: none !important;
}

.apartment-contract-vars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.5;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefe;
}

.apartment-contract-vars code {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.apartment-contract-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.apartment-contract-preview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.apartment-contract-preview {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fbfefe;
  color: var(--ink);
}

.apartment-contract-preview p {
  margin: 0 0 14px;
  line-height: 1.6;
  white-space: normal;
}

.apartment-contract-preview p:last-child {
  margin-bottom: 0;
}

.apartment-rates-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.apartment-rates-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.apartment-rates-toolbar {
  justify-content: space-between;
}

.apartment-rates-grid {
  min-height: 300px;
}

.apartment-rate-day {
  width: 100%;
  border-color: #d9dee7;
  background: #ffffff;
}

.apartment-rate-day.has-custom-rate {
  border-color: #d9dee7;
  background: #ffffff;
}

.apartment-rate-day.has-package-rate {
  border-color: #6bb58f;
  background: #e5f6eb;
}

.apartment-rate-day.is-no-rate {
  border-color: #d5d8de;
  background: #eef1f5;
}

.apartment-rate-day.is-selected-range {
  border-color: #7fb0ff;
  background: #eaf2ff;
  box-shadow: inset 0 0 0 2px rgba(31, 92, 255, 0.22);
}

.apartment-rate-day.is-selected-start,
.apartment-rate-day.is-selected-end {
  border-color: #1f5cff;
  background: #dbe7ff;
  box-shadow: 0 0 0 3px rgba(31, 92, 255, 0.22);
}

.apartment-rate-day.is-selected-start strong,
.apartment-rate-day.is-selected-start span,
.apartment-rate-day.is-selected-end strong,
.apartment-rate-day.is-selected-end span {
  color: #17324d;
}

.apartment-rates-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.apartment-rates-section-head {
  display: grid;
  gap: 4px;
}

.apartment-rates-section-head strong {
  color: var(--ink);
  font-size: .96rem;
}

.apartment-rates-section-head span {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.apartment-rates-actions label {
  display: grid;
  gap: 7px;
}

.apartment-rates-actions span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.apartment-rates-actions input,
.apartment-rates-actions select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.apartment-rates-list {
  display: grid;
  gap: 8px;
}

.apartment-rates-list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.apartment-rates-list-toolbar .admin-field {
  min-width: 220px;
  margin: 0;
}

.apartment-rates-bulk {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfefe;
}

.apartment-rates-bulk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.apartment-rates-bulk-grid label {
  display: grid;
  gap: 7px;
}

.apartment-rates-bulk-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.apartment-rates-bulk-grid input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.apartment-rates-weekday-picker {
  background: #fff;
}

.apartment-rates-pending {
  display: grid;
  gap: 8px;
}

.apartment-rate-pending-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.apartment-rate-pending-item strong {
  font-size: .95rem;
}

.apartment-rate-pending-item span {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.apartment-rate-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfefe;
  text-align: left;
}

.apartment-rate-item.is-package {
  border-color: #9fd6c4;
  background: #eefaf4;
}

.apartment-rate-item.is-selected {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.14);
}

.apartment-rate-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.apartment-rate-item-copy strong,
.apartment-rate-item-copy span {
  min-width: 0;
}

.apartment-rate-item-copy span {
  color: var(--muted);
  font-size: .9rem;
}

.apartment-rate-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.apartment-rate-item-actions button {
  min-height: 38px;
}

body.cadastro-clientes-page .client-recent-panel,
body.cadastro-clientes-page .client-files-panel {
  margin-top: 18px;
}

body.cadastro-clientes-page .admin-editor-panel[hidden],
body.apartments-page .admin-editor-panel[hidden] {
  display: none !important;
}

body.apartments-page .admin-table-header {
  text-align: center;
}

body.apartments-page .admin-table-header p {
  text-align: center;
}

body.apartments-page .apartment-list-wrap {
  padding-top: 6px;
}

body.apartments-page .apartment-list {
  gap: 14px;
}

body.apartments-editor-page .admin-note:last-child {
  margin-top: 2px;
}

body.cadastro-clientes-page .client-list {
  gap: 14px;
}

body.cadastro-clientes-page .client-list-item {
  width: 100%;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

body.cadastro-clientes-page .client-list-photo {
  width: 72px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d7e1e5;
  border-radius: 8px;
  color: var(--muted);
  background: #f1f5f7;
  font-size: 0.75rem;
  font-weight: 800;
}

body.cadastro-clientes-page .client-list-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.cadastro-clientes-page .client-list-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.cadastro-clientes-page .client-list-copy strong {
  font-size: 1.05rem;
}

body.cadastro-clientes-page .client-list-copy span,
body.cadastro-clientes-page .client-list-copy small {
  overflow-wrap: anywhere;
  color: var(--muted);
}

body.cadastro-clientes-page .client-list-actions,
body.cadastro-clientes-page .client-record-actions,
.cliente-ficha-page .client-profile-actions {
  display: grid;
  gap: 8px;
}

body.cadastro-clientes-page .client-list-actions button,
body.cadastro-clientes-page .client-record-actions button,
.cliente-ficha-page .client-profile-actions > * {
  min-height: 40px;
  justify-content: center;
}

.cliente-ficha-page #profileEdit {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 0.84rem;
  line-height: 1.2;
}

body.cadastro-clientes-page .client-record-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

body.cadastro-clientes-page .client-record-layout.is-new-client {
  grid-template-columns: minmax(0, 1fr);
}

body.cadastro-clientes-page .client-record-profile[hidden] {
  display: none !important;
}

body.cadastro-clientes-page .client-record-profile {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfb;
}

body.cadastro-clientes-page .client-record-photo,
.cliente-ficha-page .client-profile-photo {
  width: 150px;
  height: 200px;
  display: grid;
  place-items: center;
  justify-self: center;
  overflow: hidden;
  border: 1px solid #d7e1e5;
  border-radius: 10px;
  color: var(--muted);
  background: #eef3f5;
  font-weight: 800;
}

body.cadastro-clientes-page .client-record-photo img,
.cliente-ficha-page .client-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.cadastro-clientes-page .client-record-identity {
  display: grid;
  gap: 5px;
  text-align: center;
}

body.cadastro-clientes-page .client-record-identity span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

body.cadastro-clientes-page .new-client-files {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfb;
}

body.cadastro-clientes-page .client-cep-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

body.cadastro-clientes-page .client-cep-control button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

body.cadastro-clientes-page #clientCepStatus {
  min-height: 1.1em;
  color: var(--muted);
}

body.cadastro-clientes-page #clientCepStatus.is-error {
  color: #b42318;
}

@media (max-width: 520px) {
  body.cadastro-clientes-page .client-cep-control {
    grid-template-columns: 1fr;
  }
}

body.cadastro-clientes-page .new-client-files[hidden] {
  display: none !important;
}

body.cadastro-clientes-page .new-client-files legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 850;
}

body.cadastro-clientes-page .new-client-files > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

body.cadastro-clientes-page .new-client-files label {
  min-width: 0;
}

@media (max-width: 900px) {
  body.cadastro-clientes-page .new-client-files {
    grid-template-columns: 1fr;
  }
}

.cliente-ficha-page .client-profile-sheet {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.cliente-ficha-page .client-profile-side,
.cliente-ficha-page .client-profile-content,
.cliente-ficha-page .client-profile-section {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.cliente-ficha-page .client-profile-side,
.cliente-ficha-page .client-profile-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.cliente-ficha-page .client-profile-side h2,
.cliente-ficha-page .client-profile-side p,
.cliente-ficha-page .client-profile-section h3,
.cliente-ficha-page .client-profile-section p {
  margin: 0;
}

.cliente-ficha-page .client-profile-side h2,
.cliente-ficha-page .client-profile-side p {
  text-align: center;
}

.cliente-ficha-page .client-profile-side h2 {
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.cliente-ficha-page .client-profile-actions {
  min-width: 0;
  width: 100%;
}

.cliente-ficha-page .client-profile-actions > * {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-inline: 12px;
  text-align: center;
}

.cliente-ficha-page .client-profile-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.cliente-ficha-page .client-profile-data > div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafb;
}

.cliente-ficha-page .client-profile-data dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cliente-ficha-page .client-profile-data dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.cliente-ficha-page .client-profile-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.cliente-ficha-page .client-profile-file {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.cliente-ficha-page .client-profile-file img,
.cliente-ficha-page .client-profile-file > span {
  width: 100%;
  height: 100px;
  display: grid;
  place-items: center;
  object-fit: cover;
  border-radius: 6px;
  background: #eef3f5;
}

@media (max-width: 760px) {
  body.cadastro-clientes-page .client-list-item,
  body.cadastro-clientes-page .client-record-layout,
  .cliente-ficha-page .client-profile-sheet {
    grid-template-columns: 1fr;
  }

  body.cadastro-clientes-page .client-list-photo {
    justify-self: center;
  }

  .cliente-ficha-page .client-profile-data {
    grid-template-columns: 1fr;
  }
}

body.cadastro-clientes-page .client-files-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 18px 18px;
}

body.cadastro-clientes-page .client-add-file {
  margin: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

body.cadastro-clientes-page .client-files-panel[hidden] {
  display: none !important;
}

body.cadastro-clientes-page .client-add-file summary {
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

body.cadastro-clientes-page .client-add-file .client-upload-form {
  padding: 0 16px 16px;
}

body.cadastro-clientes-page .client-selfie-card {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fbfb;
}

body.cadastro-clientes-page .client-selfie-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.cadastro-clientes-page .client-selfie-head h3 {
  font-size: 1.02rem;
  margin-top: 4px;
}

body.cadastro-clientes-page .client-selfie-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

body.cadastro-clientes-page .client-selfie-preview span {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  padding: 18px;
}

body.cadastro-clientes-page .client-selfie-open {
  width: 100%;
  min-height: 220px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

body.cadastro-clientes-page .client-selfie-open img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

body.cadastro-clientes-page .client-file-list {
  padding: 0 18px 18px;
}

body.cadastro-clientes-page .client-file-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

body.cadastro-clientes-page .client-file-thumb {
  flex: 0 0 86px;
  width: 86px;
  height: 64px;
  overflow: hidden;
  border: 1px solid #d3e7e8;
  border-radius: 8px;
  padding: 0;
  color: var(--teal-dark);
  background: #f7fbfb;
  cursor: pointer;
}

body.cadastro-clientes-page .client-file-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.cadastro-clientes-page .client-file-thumb.is-file {
  display: grid;
  place-items: center;
  font-weight: 900;
}

body.cadastro-clientes-page .client-file-item strong {
  display: block;
  font-size: 0.98rem;
}

body.cadastro-clientes-page .client-file-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

body.cadastro-clientes-page .client-file-actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
  min-width: 126px;
}

body.cadastro-clientes-page .client-file-actions button {
  width: 100%;
  min-height: 40px;
  justify-content: center;
}

body.cadastro-clientes-page .client-file-actions button.is-danger {
  background: #fff6f5;
  border-color: #e8b3ad;
  color: #9f2418;
  font-weight: 850;
}

body.cadastro-clientes-page .client-file-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}

body.cadastro-clientes-page .client-file-modal[hidden] {
  display: none !important;
}

body.cadastro-clientes-page .client-file-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 28, 31, 0.62);
  backdrop-filter: blur(6px);
}

body.cadastro-clientes-page .client-file-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 68px rgba(18, 51, 58, 0.26);
}

body.cadastro-clientes-page .client-file-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

body.cadastro-clientes-page .client-file-modal-header h2 {
  font-size: 1.15rem;
  line-height: 1.2;
  margin-top: 4px;
}

body.cadastro-clientes-page .modal-close {
  min-height: 40px;
  border: 1px solid #d3e7e8;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--teal-dark);
  background: #edf7f7;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

body.cadastro-clientes-page .client-file-modal-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 16px;
  padding: 18px;
}

body.apartments-editor-page .apartment-media-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}

body.apartments-editor-page .apartment-media-modal[hidden] {
  display: none !important;
}

body.apartments-editor-page .apartment-media-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(13, 28, 31, 0.62);
  backdrop-filter: blur(6px);
}

body.apartments-editor-page .apartment-media-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 68px rgba(18, 51, 58, 0.26);
}

body.apartments-editor-page .apartment-media-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

body.apartments-editor-page .apartment-media-modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

body.apartments-editor-page .apartment-media-modal-content {
  display: grid;
  gap: 16px;
  padding: 18px;
}

body.apartments-editor-page .apartment-media-modal-content label {
  display: grid;
  gap: 8px;
}

body.cadastro-clientes-page .client-file-preview {
  display: grid;
  place-items: center;
  min-height: 175px;
  max-height: 175px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
  overflow: hidden;
}

body.cadastro-clientes-page .client-file-preview img,
body.cadastro-clientes-page .client-file-preview iframe {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 175px;
  border: 0;
  object-fit: contain;
  background: #fff;
}

body.apartments-editor-page .apartment-photo-list {
  display: grid;
  gap: 12px;
  padding-inline: 0;
}

body.apartments-editor-page .apartment-photo-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

body.apartments-editor-page .apartment-photo-thumb {
  width: 110px;
  height: 80px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #edf7f7;
  cursor: pointer;
  position: relative;
}

body.apartments-editor-page .apartment-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.apartments-editor-page .apartment-photo-thumb.is-video::after {
  content: "YouTube";
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(210, 45, 32, .88);
  font-size: 0.72rem;
  font-weight: 800;
}

body.apartments-editor-page .apartment-photo-meta {
  display: grid;
  gap: 4px;
}

body.apartments-editor-page .apartment-photo-meta strong {
  font-size: 0.98rem;
}

body.apartments-editor-page .apartment-photo-meta span {
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

body.apartments-editor-page .apartment-photo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.apartments-editor-page .apartment-photo-actions .secondary {
  min-width: 96px;
}

body.apartments-editor-page .apartment-photo-actions [data-photo-main] {
  background: #edf7f7;
  border-color: #cfe4e5;
  color: var(--teal-dark);
}

body.apartments-editor-page .apartment-photo-actions .is-danger {
  background: #fff6f5;
  border-color: #e8b3ad;
  color: #9f2418;
}

@media (max-width: 720px) {
  body.apartments-editor-page .apartment-editor-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.apartments-editor-page .apartment-editor-grid-main,
  body.apartments-editor-page .apartment-editor-grid-upload,
  .apartment-contract-time-grid {
    grid-template-columns: 1fr;
  }

  .apartment-rates-actions {
    grid-template-columns: 1fr;
  }

  .apartment-rates-bulk-grid {
    grid-template-columns: 1fr;
  }

  .apartment-rate-item {
    grid-template-columns: 1fr;
  }

  .apartment-rate-item-actions {
    justify-content: stretch;
  }

  .apartment-rate-item-actions button {
    width: 100%;
  }

  body.apartments-editor-page .admin-form .span-2 {
    grid-column: auto;
  }

  body.apartments-editor-page .compact-actions {
    justify-content: stretch;
  }

  body.apartments-editor-page .compact-actions button {
    width: 100%;
  }
}

body.cadastro-clientes-page .client-file-preview p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  padding: 18px;
}

body.cadastro-clientes-page .client-file-details {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

body.cadastro-clientes-page .client-file-details p {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 920px) {
  .admin-heading,
  .completion-grid,
  .admin-quick-grid {
    grid-template-columns: 1fr;
  }

  body.admin-page {
    --admin-content-offset: 0px;
  }

  body.admin-page.admin-sidebar-collapsed {
    --admin-content-offset: 0px;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 240ms ease;
    z-index: 70;
    pointer-events: none;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .admin-sidebar-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 24, 0.48);
    opacity: 0;
    transition: opacity 240ms ease;
  }

  .admin-sidebar.is-open .admin-sidebar-backdrop {
    opacity: 1;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-sidebar-card {
    position: relative;
    width: min(92vw, 420px);
    max-width: 100vw;
    min-height: 100vh;
    height: 100vh;
    border-radius: 0 24px 24px 0;
    padding: 18px;
    box-shadow: var(--admin-shadow-strong);
  }

  .admin-sidebar-brand-actions [data-admin-sidebar-toggle] {
    display: inline-flex;
  }

  .admin-page-topbar {
    align-items: stretch;
  }

  .admin-page-topbar-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .admin-topbar-dropdown {
    right: auto;
    left: 0;
    min-width: min(92vw, 320px);
  }

  .admin-heading-actions {
    justify-content: flex-start;
  }

  .desktop-only {
    display: none !important;
  }

  body.admin-page:not(.perfil-page):not(.login-page) .profile-account-grid {
    grid-template-columns: 1fr;
  }

  .admin-quick-form {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .admin-page .nav {
    justify-content: flex-start;
  }

  .admin-shell {
    width: min(100% - 16px, 1380px);
    padding: 14px 0 28px;
    gap: 14px;
  }

  .admin-main {
    gap: 14px;
  }


  .admin-heading {
    padding: 18px;
  }

  .admin-heading-summary-revenue {
    flex-wrap: wrap;
    white-space: normal;
  }

  .admin-heading h1 {
    font-size: 1.8rem;
  }

  .admin-page-topbar {
    padding: 0;
  }

  .admin-page-topbar-actions {
    gap: 8px;
    justify-content: flex-start;
  }

  .admin-breadcrumb {
    font-size: 0.86rem;
    padding-inline: 12px;
  }

  .admin-favorite-button span:last-child,
  .admin-topbar-action-button span:not(.admin-icon):not(.admin-topbar-badge) {
    display: none;
  }

  .admin-topbar-action-button,
  .admin-favorite-button {
    padding-inline: 12px;
  }

  .admin-sidebar-card {
    width: 100vw;
    border-radius: 0;
    padding: 16px;
  }

  .admin-overview {
    gap: 10px;
  }

  .admin-overview article {
    min-height: 92px;
    padding: 14px;
  }

  .dashboard-grid {
    gap: 10px;
  }

  .dashboard-action {
    min-height: 148px;
    padding: 16px;
  }

  .client-search-panel,
  .apartment-search-panel,
  .admin-card .admin-form {
    padding: 14px;
  }

  .admin-form-grid-2,
  .admin-form-grid-3,
  .admin-blocks-toolbar {
    grid-template-columns: 1fr;
  }

  .marketing-banner-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .marketing-fallback-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-panels {
    grid-template-columns: 1fr;
  }

  .dashboard-chart-card {
    grid-row: auto;
  }

  .dashboard-chart-row {
    grid-template-columns: 64px minmax(0, 1fr) 42px;
    grid-template-areas:
      "date track rate"
      ". labels .";
    gap: 10px;
  }

  .dashboard-chart-labels {
    justify-content: flex-start;
  }

  .dashboard-chart-row strong,
  .dashboard-chart-rate {
    text-align: left;
  }

  .dashboard-chart-labels {
    margin-top: -2px;
  }

  .dashboard-chart-labels small {
    text-align: center;
  }

  .dashboard-list-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.mercadopago-page .mercadopago-status-grid {
    grid-template-columns: 1fr;
    padding: 0 14px 14px;
  }

  body.mercadopago-page .mercadopago-field-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.mercadopago-page .mercadopago-toggle-row,
  body.mercadopago-page .mercadopago-field-row {
    padding: 12px;
  }

  .admin-side-panel-head {
    padding: 14px 14px 0;
  }

  .admin-blocks-overview {
    padding: 0 14px 14px;
  }

  body.cadastro-clientes-page .client-files-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  body.cadastro-clientes-page .client-file-list {
    padding: 0 14px 14px;
  }

  body.cadastro-clientes-page .client-file-item {
    align-items: start;
    flex-direction: column;
  }

  body.cadastro-clientes-page .client-file-actions {
    width: 100%;
    min-width: 0;
  }

  body.cadastro-clientes-page .client-file-actions button {
    width: 100%;
  }

  body.apartments-editor-page .apartment-photo-item {
    grid-template-columns: 1fr;
  }

  body.apartments-editor-page .apartment-photo-thumb {
    width: 100%;
    height: 180px;
  }

  body.apartments-editor-page .apartment-photo-actions {
    justify-content: stretch;
  }

  body.apartments-editor-page .apartment-photo-actions .secondary {
    width: 100%;
    min-width: 0;
  }

  body.cadastro-clientes-page .client-file-modal-content {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  body.cadastro-clientes-page .client-file-preview img,
  body.cadastro-clientes-page .client-file-preview iframe {
    min-height: 260px;
  }

  .admin-table-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 14px 12px;
  }

  .admin-table-header p {
    max-width: none;
    text-align: left;
  }

  .client-list-wrap,
  .apartment-list-wrap {
    padding: 14px;
  }

  .client-list,
  .apartment-list {
    gap: 12px;
  }

  .client-list-item,
  .apartment-list-item {
    min-height: 56px;
    padding: 14px;
  }

  .admin-actions {
    flex-direction: column;
  }

  .admin-actions button,
  .admin-link,
  .admin-table button {
    width: 100%;
  }

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

  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .admin-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

  body.perfil-page .admin-table tr.profile-reservation-row.is-latest {
    background: #ecfdf3;
  }

  body.perfil-page .admin-table tr.profile-reservation-row.is-expired {
    background: #fef2f2;
  }

  body.perfil-page .admin-table tr.profile-reservation-row.is-hold {
    background: #fffbeb;
  }

  .admin-table td {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 0;
    border: 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .admin-table td[data-label="Acoes"],
  .admin-table td[data-label="Ações"] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-table td[data-label="Acoes"] button,
  .admin-table td[data-label="Ações"] button,
  .admin-table td[data-label="Acoes"] .secondary,
  .admin-table td[data-label="Ações"] .secondary {
    flex: 1 1 120px;
  }

  body.cadastro-clientes-page .admin-empty,
  body.apartments-page .admin-empty {
    padding: 0 14px 14px;
  }

  body.cadastro-clientes-page .client-selfie-preview {
    min-height: 180px;
  }

  body.cadastro-clientes-page .client-selfie-open,
  body.cadastro-clientes-page .client-selfie-open img {
    height: 180px;
    min-height: 180px;
  }
}

@media (max-width: 520px) {
  .admin-overview {
    grid-template-columns: 1fr;
  }

  .admin-table td {
    grid-template-columns: 1fr;
  }

  .admin-table td::before {
    margin-bottom: -2px;
  }

  .admin-table td[data-label="Acoes"],
  .admin-table td[data-label="Ações"] {
    flex-direction: column;
  }

  .admin-table td[data-label="Acoes"] button,
  .admin-table td[data-label="Ações"] button,
  .admin-table td[data-label="Acoes"] .secondary,
  .admin-table td[data-label="Ações"] .secondary {
    width: 100%;
    flex: 1 1 auto;
  }

  .admin-heading h1 {
    font-size: 1.6rem;
  }

  .admin-heading.has-actions {
    grid-template-columns: 1fr;
  }

  .admin-heading.has-actions .admin-heading-actions {
    justify-content: flex-start;
  }

  .client-search-field input {
    min-height: 44px;
  }

  body.cadastro-clientes-page .client-file-modal {
    padding: 10px;
  }

  .client-list-item,
  .apartment-list-item {
    padding: 13px;
  }
}

.admin-table td[data-label="Ações"] .reservation-row-actions,
.admin-table td[data-label="Acoes"] .reservation-row-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
}

.admin-table td[data-label="Ações"] .reservation-row-actions button,
.admin-table td[data-label="Acoes"] .reservation-row-actions button {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  padding-inline: 10px;
}
.checkout-pix-result {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-color, #d9e2ec);
  border-radius: 0.75rem;
}

.checkout-pix-result img {
  width: min(240px, 100%);
  height: auto;
}

.checkout-pix-result input {
  width: 100%;
}
