/* Residencial Madalena × Materialize
   Admin icons are pinned locally; this layer owns the existing component theme.
   This layer keeps the Madalena identity and existing Admin behavior intact. */

body.rm-admin {
  --rm-primary: #142f53;
  --rm-primary-hover: #0f2848;
  --rm-primary-soft: #e9eff7;
  --rm-accent: #d2aa61;
  --rm-accent-soft: #faf3e5;
  --rm-paper: #fff;
  --rm-body: #f7f7f9;
  --rm-heading: #303548;
  --rm-text: #676a7b;
  --rm-secondary: #9295a1;
  --rm-line: #e5e6e8;
  --rm-success: #56a66d;
  --rm-success-soft: #e9f6ed;
  --rm-info: #2684c7;
  --rm-info-soft: #e8f4fc;
  --rm-warning: #c28725;
  --rm-warning-soft: #fff4df;
  --rm-danger: #d94b48;
  --rm-danger-soft: #ffe8e7;

  --navy: var(--rm-primary);
  --navy-2: var(--rm-primary);
  --navy-3: #244a78;
  --gold: var(--rm-accent);
  --gold-strong: #a77a2f;
  --gold-soft: var(--rm-accent-soft);
  --canvas: var(--rm-body);
  --surface: var(--rm-paper);
  --surface-2: #f5f5f7;
  --ink: var(--rm-heading);
  --muted: var(--rm-text);
  --border: var(--rm-line);
  --success: var(--rm-success);
  --success-bg: var(--rm-success-soft);
  --warning: var(--rm-warning);
  --warning-bg: var(--rm-warning-soft);
  --danger: var(--rm-danger);
  --danger-bg: var(--rm-danger-soft);
  --info: var(--rm-info);
  --info-bg: var(--rm-info-soft);
  --shadow: var(--bs-box-shadow);
  --shadow-lg: var(--bs-box-shadow-lg);
  --radius: .625rem;

  min-height: 100vh;
  color: var(--rm-text);
  background: var(--rm-body);
  font-family: "Red Hat Display", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.375;
  letter-spacing: .1px;
}

body.rm-admin h1,
body.rm-admin h2,
body.rm-admin h3,
body.rm-admin h4,
body.rm-admin h5,
body.rm-admin h6 { color: var(--rm-heading); font-weight: 600; }
body.rm-admin strong,
body.rm-admin b { font-weight: 650; }

/* Shared Materialize component language */
body.rm-admin .button,
body.rm-admin .icon-button,
body.rm-admin .text-button {
  border-radius: .5rem;
  font-weight: 600;
  letter-spacing: .25px;
}
body.rm-admin .button,
body.rm-admin .icon-button {
  border: 1px solid var(--rm-line);
  background: var(--rm-paper);
  color: var(--rm-text);
  box-shadow: 0 .125rem .375rem rgba(38, 43, 67, .08);
  transition: color .2s ease, border-color .2s ease, background .2s ease,
    box-shadow .2s ease, transform .2s ease;
}
body.rm-admin .button { min-height: 40px; padding: .55rem 1.25rem; }
body.rm-admin .button:hover,
body.rm-admin .icon-button:hover {
  border-color: #bdc9d9;
  color: var(--rm-primary);
  background: var(--rm-primary-soft);
}
body.rm-admin .button.primary {
  border-color: var(--rm-primary);
  color: #fff;
  background: var(--rm-primary);
  box-shadow: 0 .125rem .375rem rgba(20, 47, 83, .28);
}
body.rm-admin .button.primary:hover {
  border-color: var(--rm-primary-hover);
  color: #fff;
  background: var(--rm-primary-hover);
  box-shadow: 0 .25rem .75rem rgba(20, 47, 83, .26);
}
body.rm-admin .button.secondary { border-color: var(--rm-line); color: var(--rm-primary); background: var(--rm-paper); }
body.rm-admin .button.danger { border-color: #f2bfbd; color: var(--rm-danger); background: var(--rm-danger-soft); }
body.rm-admin .icon-button { width: 38px; height: 38px; font-size: 1.2rem; }
body.rm-admin .text-button { color: var(--rm-primary); font-size: .8125rem; }

body.rm-admin input,
body.rm-admin select,
body.rm-admin textarea {
  min-height: 44px;
  border-color: var(--rm-line);
  border-radius: .5rem;
  color: var(--rm-heading);
  background-color: var(--rm-paper);
  box-shadow: none;
}
body.rm-admin input:focus,
body.rm-admin select:focus,
body.rm-admin textarea:focus {
  border-color: var(--rm-primary);
  box-shadow: 0 0 0 .15rem rgba(20, 47, 83, .14);
}

body.rm-admin .card,
body.rm-admin .stat-card,
body.rm-admin .face-card,
body.rm-admin .code-card {
  border: 0;
  border-radius: .625rem;
  background: var(--rm-paper);
  box-shadow: var(--bs-box-shadow);
}

/* Authentication and loading */
body.rm-admin .boot-loader {
  background:
    radial-gradient(circle at 70% 18%, rgba(210, 170, 97, .25), transparent 32%),
    linear-gradient(140deg, #0b1c32, #173d69);
}
body.rm-admin .loader-brand { border-radius: .625rem; box-shadow: var(--bs-box-shadow-lg); }
body.rm-admin .login-screen {
  background:
    radial-gradient(circle at 75% 18%, rgba(210, 170, 97, .28), transparent 32%),
    linear-gradient(135deg, rgba(11, 28, 50, .98), rgba(28, 66, 111, .94));
}
body.rm-admin .login-card {
  border: 0;
  border-radius: .75rem;
  box-shadow: var(--bs-box-shadow-lg);
}
body.rm-admin .login-card h1 { font-weight: 600; }

/* Materialize light navigation shell */
body.rm-admin .sidebar {
  width: var(--sidebar);
  color: var(--rm-text);
  background: var(--rm-body);
  border-right: 1px solid var(--rm-line);
  box-shadow: none;
}
body.rm-admin .sidebar-brand {
  position: relative;
  min-height: 72px;
  padding: 10px 20px;
  border-bottom: 0;
}
body.rm-admin .brand-tile {
  width: 190px;
  min-height: 48px;
  justify-items: start;
  padding: 6px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.rm-admin .sidebar-monogram { display: none; }
body.rm-admin .sidebar-collapse {
  position: absolute;
  z-index: 2;
  top: 21px;
  right: -14px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--rm-line);
  border-radius: 50%;
  color: var(--rm-primary);
  background: var(--rm-paper);
  box-shadow: var(--bs-box-shadow-sm);
  font-size: 1rem;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
body.rm-admin .sidebar-collapse:hover { color: #fff; background: var(--rm-primary); }
body.rm-admin .sidebar-nav { gap: 2px; padding: 8px 12px 16px; }
body.rm-admin .sidebar-nav > small {
  margin: 14px 12px 6px;
  color: var(--rm-secondary);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .06em;
}
body.rm-admin .nav-item {
  position: relative;
  min-height: 40px;
  grid-template-columns: 25px 1fr auto;
  gap: 8px;
  margin: 1px 0;
  padding: 0 12px;
  border-radius: .375rem;
  color: var(--rm-text);
  font-size: .9rem;
  font-weight: 500;
}
body.rm-admin .nav-item i { color: var(--rm-secondary); font-size: 1.25rem; }
body.rm-admin .nav-item b {
  display: none;
  min-width: 22px;
  height: 22px;
  color: var(--rm-text);
  background: #e9e9ec;
  font-size: .6875rem;
}
body.rm-admin .nav-item b.has-value { display: grid; }
body.rm-admin .nav-item b.warning { color: #805915; background: var(--rm-warning-soft); }
body.rm-admin .nav-item b.danger { color: #fff; background: var(--rm-danger); }
body.rm-admin .nav-item:hover { color: var(--rm-heading); background: #e9e9ec; }
body.rm-admin .nav-item.active {
  color: #fff;
  background: var(--rm-primary);
  box-shadow: 0 .125rem .375rem rgba(20, 47, 83, .26);
}
body.rm-admin .nav-item.active i { color: var(--rm-accent); }
body.rm-admin .nav-item.active b { color: var(--rm-primary); background: var(--rm-accent); }
body.rm-admin .nav-group { display: grid; gap: 2px; }
body.rm-admin .nav-parent { grid-template-columns: 25px 1fr auto 18px; }
body.rm-admin .nav-parent-chevron {
  justify-self: end;
  font-size: 1rem;
  transition: transform .2s ease;
}
body.rm-admin .nav-group.open .nav-parent-chevron { transform: rotate(180deg); }
body.rm-admin .nav-submenu {
  display: grid;
  max-height: 0;
  gap: 2px;
  overflow: hidden;
  opacity: 0;
  transition: max-height .2s ease, opacity .2s ease;
}
body.rm-admin .nav-group.open .nav-submenu { max-height: 104px; opacity: 1; }
body.rm-admin .nav-subitem {
  display: grid;
  min-height: 38px;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 8px;
  margin-left: 33px;
  padding: 0 10px;
  border: 0;
  border-radius: .375rem;
  color: var(--rm-text);
  background: transparent;
  text-align: left;
  font-size: .85rem;
  font-weight: 500;
}
body.rm-admin .nav-subitem i { color: var(--rm-secondary); font-size: 1.05rem; }
body.rm-admin .nav-subitem:hover { color: var(--rm-heading); background: #e9e9ec; }
body.rm-admin .nav-subitem.active { color: var(--rm-primary); background: var(--rm-primary-soft); font-weight: 650; }
body.rm-admin .nav-subitem.active i { color: var(--rm-primary); }
body.rm-admin .sidebar-footer {
  margin: 12px;
  padding: 12px;
  border: 0;
  border-radius: .5rem;
  color: var(--rm-text);
  background: var(--rm-paper);
  box-shadow: var(--bs-box-shadow-sm);
}
body.rm-admin .sidebar-footer strong { color: var(--rm-heading); }
body.rm-admin .sidebar-footer small { color: var(--rm-secondary); }
body.rm-admin .admin-avatar {
  border: 0;
  border-radius: .5rem;
  color: #fff;
  background: var(--rm-primary);
}
body.rm-admin .sidebar-close { color: var(--rm-text); border-color: var(--rm-line); background: var(--rm-paper); }

body.rm-admin .topbar {
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(38, 43, 67, .08);
  background: rgba(247, 247, 249, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
body.rm-admin .sidebar,
body.rm-admin .workspace { transition: width .28s ease, margin-left .28s ease, transform .22s ease; }

@media (min-width: 1181px) {
  body.rm-admin .app-shell.sidebar-collapsed { --sidebar: 84px; }
  body.rm-admin .app-shell.sidebar-collapsed .sidebar-brand { justify-content: center; padding-right: 12px; padding-left: 12px; }
  body.rm-admin .app-shell.sidebar-collapsed .brand-tile { display: none; }
  body.rm-admin .app-shell.sidebar-collapsed .sidebar-monogram {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: .5rem;
    color: #fff;
    background: var(--rm-primary);
    box-shadow: 0 .125rem .375rem rgba(20, 47, 83, .28);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
  }
  body.rm-admin .app-shell.sidebar-collapsed .sidebar-nav { padding-right: 10px; padding-left: 10px; }
  body.rm-admin .app-shell.sidebar-collapsed .sidebar-nav > small,
  body.rm-admin .app-shell.sidebar-collapsed .nav-item > span,
  body.rm-admin .app-shell.sidebar-collapsed .nav-parent-chevron,
  body.rm-admin .app-shell.sidebar-collapsed .sidebar-footer > div:last-child { display: none; }
  body.rm-admin .app-shell.sidebar-collapsed .nav-item {
    width: 48px;
    min-height: 44px;
    grid-template-columns: 1fr;
    justify-items: center;
    margin-right: auto;
    margin-left: auto;
    padding: 0;
  }
  body.rm-admin .app-shell.sidebar-collapsed .nav-item i { font-size: 1.3rem; }
  body.rm-admin .app-shell.sidebar-collapsed .nav-item b.has-value {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid var(--rm-body);
    font-size: .625rem;
  }
  body.rm-admin .app-shell.sidebar-collapsed .nav-submenu { display: none; }
  body.rm-admin .app-shell.sidebar-collapsed .sidebar-footer {
    grid-template-columns: 40px;
    justify-content: center;
    margin: 10px;
    padding: 10px 12px;
  }
}
body.rm-admin .topbar-heading small { color: var(--rm-secondary); font-weight: 500; }
body.rm-admin .topbar-heading h1 { font-size: 1.125rem; font-weight: 600; }
body.rm-admin .sync-status {
  min-height: 32px;
  border: 0;
  color: var(--rm-text);
  background: var(--rm-paper);
  box-shadow: var(--bs-box-shadow-sm);
  font-weight: 500;
}
body.rm-admin .content { padding: 24px; }

/* Dashboard surfaces */
body.rm-admin .hero-card {
  min-height: 190px;
  padding: 30px;
  border-radius: .75rem;
  background:
    radial-gradient(circle at 87% 20%, rgba(210, 170, 97, .22), transparent 30%),
    linear-gradient(125deg, #102845, #1d4a7c);
  box-shadow: var(--bs-box-shadow);
}
body.rm-admin .hero-card::after { border-color: rgba(210, 170, 97, .14); }
body.rm-admin .hero-card h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; }
body.rm-admin .hero-date { border-radius: .5rem; }
body.rm-admin .stats-grid { gap: 24px; margin: 24px 0; }
body.rm-admin .stat-card {
  min-height: 108px;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 20px;
}
body.rm-admin .stat-icon {
  display: grid;
  width: 46px;
  height: 46px;
  font-size: 24px;
  border-radius: .5rem;
  color: var(--rm-primary);
  background: var(--rm-primary-soft);
}
body.rm-admin .stat-card strong { color: var(--rm-heading); font-size: 1.75rem; font-weight: 600; }
body.rm-admin .stat-card small { color: var(--rm-text); font-weight: 500; }
body.rm-admin .stat-card span { color: var(--rm-secondary); }
body.rm-admin .dashboard-grid { gap: 24px; }
body.rm-admin .card-head { padding: 20px; border-color: var(--rm-line); }
body.rm-admin .card-head h2 { font-size: 1.125rem; font-weight: 600; }
body.rm-admin .card-head p { color: var(--rm-secondary); font-size: .8125rem; }
body.rm-admin .next-access-item { padding: 16px 20px; border-color: var(--rm-line); }
body.rm-admin .next-date { border-radius: .5rem; }
body.rm-admin .provider-row { border: 0; background: #f7f7f9; }
body.rm-admin .provider-icon { border-radius: .5rem; }

/* Page headings, filters and data tables */
body.rm-admin .page-intro { align-items: center; margin-bottom: 24px; padding: 0; }
body.rm-admin .page-intro h2 { margin-bottom: 5px; font-size: 1.5rem; font-weight: 600; }
body.rm-admin .page-intro p { color: var(--rm-text); font-size: .8125rem; }
body.rm-admin .eyebrow {
  margin-bottom: 5px;
  color: #a77a2f;
  font-size: .6875rem;
  font-weight: 650;
  letter-spacing: .08em;
}
body.rm-admin .toolbar { flex-wrap: nowrap; gap: 12px; margin-bottom: 24px; padding: 14px 16px; }
body.rm-admin .filter-chip {
  min-height: 34px;
  border-color: var(--rm-line);
  border-radius: .5rem;
  color: var(--rm-text);
  font-weight: 600;
}
body.rm-admin .filter-chip:hover { color: var(--rm-primary); background: var(--rm-primary-soft); }
body.rm-admin .filter-chip.active { border-color: var(--rm-primary); color: #fff; background: var(--rm-primary); }
body.rm-admin .lock-table-shell,
body.rm-admin .reservation-table-shell { border-radius: .625rem; }
body.rm-admin .lock-table th,
body.rm-admin .reservation-table th {
  padding-top: 13px;
  padding-bottom: 13px;
  color: var(--rm-secondary);
  background: #f5f5f7;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .035em;
}
body.rm-admin .lock-table td,
body.rm-admin .reservation-table td { border-color: var(--rm-line); }
body.rm-admin .lock-table tbody tr,
body.rm-admin .reservation-table tbody tr { transition: background .18s ease; }
body.rm-admin .lock-table tbody tr:hover,
body.rm-admin .reservation-table tbody tr:hover { background: #fafafd; }
body.rm-admin .cell-primary,
body.rm-admin .face-identity strong,
body.rm-admin .code-card-identity strong { color: var(--rm-heading); }
body.rm-admin .date-cell,
body.rm-admin .reservation-date { color: var(--rm-primary); }
body.rm-admin .mini-icon-button { border-color: var(--rm-line); border-radius: .375rem; color: var(--rm-primary); }
body.rm-admin .reservation-slots { color: var(--rm-primary); background: var(--rm-accent-soft); }
body.rm-admin .reservation-row-action { min-height: 34px; }

/* Status and operational cards */
body.rm-admin .status-badge { min-height: 26px; padding: 0 9px; font-weight: 650; letter-spacing: .02em; }
body.rm-admin .status-badge.success { color: #367849; background: var(--rm-success-soft); }
body.rm-admin .status-badge.warning { color: #96661d; background: var(--rm-warning-soft); }
body.rm-admin .status-badge.danger { color: #b23836; background: var(--rm-danger-soft); }
body.rm-admin .status-badge.info { color: #236e9f; background: var(--rm-info-soft); }
body.rm-admin .status-badge.neutral { color: var(--rm-text); background: #eeeef0; }
body.rm-admin .provider-notice,
body.rm-admin .default-slots-intro,
body.rm-admin .checkin-info-code,
body.rm-admin .integration-next {
  border-color: #ead6ae;
  border-radius: .5rem;
  background: var(--rm-accent-soft);
}
body.rm-admin .code-card { padding: 18px 20px; }
body.rm-admin .code-rail { border-color: #ead6ae; border-radius: .5rem; background: var(--rm-accent-soft); }
body.rm-admin .code-digits b { border-radius: .375rem; }
body.rm-admin .integration-grid { gap: 24px; }
body.rm-admin .integration-card { padding: 24px; }
body.rm-admin .integration-logo { border-radius: .5rem; color: var(--rm-primary); background: var(--rm-primary-soft); }
body.rm-admin .integration-card dl div { border-radius: .5rem; }
body.rm-admin .bridge-notice { padding: 18px 20px; }
body.rm-admin .bridge-icon,
body.rm-admin .face-avatar,
body.rm-admin .face-photo-preview,
body.rm-admin .checkin-person-avatar { border-radius: .5rem; }
body.rm-admin .portaria-device { border: 0; border-radius: 50rem; box-shadow: var(--bs-box-shadow-sm); }
body.rm-admin .face-card { padding: 18px; }
body.rm-admin .credential-chip { color: var(--rm-primary); background: var(--rm-primary-soft); }
body.rm-admin .credential-pin { border-color: #c9d4e2; color: var(--rm-primary); background: #f4f7fb; }

/* Check-in and lock detail panels */
body.rm-admin .checkin-reservation-summary {
  border-radius: .625rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(210, 170, 97, .2), transparent 32%),
    linear-gradient(125deg, #102845, #1d4a7c);
}
body.rm-admin .checkin-summary-photo,
body.rm-admin .lock-detail-panel,
body.rm-admin .lock-detail-grid > div,
body.rm-admin .lock-detail-codes > div,
body.rm-admin .checkin-settings-card,
body.rm-admin .checkin-link-panel,
body.rm-admin .checkin-people-panel,
body.rm-admin .checkin-person,
body.rm-admin .access-kind label > span,
body.rm-admin .face-photo-picker { border-radius: .5rem; }
body.rm-admin .checkin-settings-card,
body.rm-admin .lock-detail-panel,
body.rm-admin .access-kind label > span,
body.rm-admin .face-photo-picker { border-color: var(--rm-line); background: #f7f7f9; }
body.rm-admin .checkin-link-panel,
body.rm-admin .checkin-people-panel { border-color: #c9d4e2; background: #f4f7fb; }
body.rm-admin .access-kind input:checked + span {
  border-color: var(--rm-primary);
  background: var(--rm-primary-soft);
  box-shadow: 0 0 0 .15rem rgba(20, 47, 83, .1);
}

/* Materialize modal treatment */
body.rm-admin .modal {
  background: rgba(25, 28, 42, .58);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
body.rm-admin .modal-card {
  border: 0;
  border-radius: .75rem;
  background: var(--rm-paper);
  box-shadow: var(--bs-box-shadow-lg);
}
body.rm-admin .modal-head {
  padding: 18px 20px;
  border-color: var(--rm-line);
  background: rgba(255, 255, 255, .96);
}
body.rm-admin .modal-head h2 { font-size: 1.25rem; font-weight: 600; }
body.rm-admin .modal-body { padding: 20px; }
body.rm-admin .modal-actions { border-color: var(--rm-line); }
/* Owner request (14 September 2026): the footer actions stay pinned to the
   bottom of the modal while its content scrolls (.modal-card is the scroller). */
body.rm-admin .modal-card form.modal-body > .modal-actions {
  position: sticky;
  bottom: -20px;
  z-index: 3;
  margin: 22px -20px -20px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 -6px 16px rgba(16, 40, 69, .06);
}
body.rm-admin .toast { border-radius: .5rem; background: var(--rm-primary); box-shadow: var(--bs-box-shadow-lg); }

@media (max-width: 1180px) {
  body.rm-admin .sidebar { box-shadow: var(--bs-box-shadow-lg); }
  body.rm-admin .sidebar-collapse,
  body.rm-admin .sidebar-monogram { display: none; }
}

@media (max-width: 780px) {
  body.rm-admin .topbar {
    min-height: calc(64px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 14px 0;
    color: var(--rm-text);
    border-bottom-color: rgba(38, 43, 67, .08);
    background: rgba(247, 247, 249, .96);
  }
  body.rm-admin .topbar-heading small { color: var(--rm-secondary); }
  body.rm-admin .topbar-heading h1 { color: var(--rm-heading); }
  body.rm-admin .topbar .icon-button {
    color: var(--rm-text);
    border-color: var(--rm-line);
    background: var(--rm-paper);
    box-shadow: var(--bs-box-shadow-sm);
  }
  body.rm-admin .content { padding: 16px 13px 34px; }
  body.rm-admin .hero-card { min-height: 220px; padding: 24px; }
  body.rm-admin .stats-grid { gap: 12px; margin: 16px 0; }
  body.rm-admin .dashboard-grid,
  body.rm-admin .integration-grid { gap: 16px; }
  body.rm-admin .page-intro { gap: 14px; margin-bottom: 16px; }
  body.rm-admin .toolbar { margin-bottom: 16px; }
}

@media (max-width: 480px) {
  body.rm-admin .login-card { border-radius: .625rem; }
  body.rm-admin .stat-card { padding: 14px; }
  body.rm-admin .modal-head,
  body.rm-admin .modal-body { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body.rm-admin *,
  body.rm-admin *::before,
  body.rm-admin *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Dense operational typography and single-line Admin tables */
body.rm-admin { font-size: 12px; }
body.rm-admin .button,
body.rm-admin .text-button,
body.rm-admin .sync-status,
body.rm-admin .status-badge,
body.rm-admin .cell-primary,
body.rm-admin .cell-secondary,
body.rm-admin .cell-muted,
body.rm-admin .date-cell,
body.rm-admin .reservation-date,
body.rm-admin .reservation-row-action,
body.rm-admin .passcode-inline code,
body.rm-admin .detail-emergency-code code { font-size: 12px; }
body.rm-admin small,
body.rm-admin .eyebrow { font-size: 12px; }
body.rm-admin input,
body.rm-admin select,
body.rm-admin textarea { font-size: 12px; }

body.rm-admin .toolbar-search-only { justify-content: flex-start; }
body.rm-admin .toolbar-search-only .search-field { width: min(680px, 100%); }

body.rm-admin .lock-table {
  min-width: 1020px;
  table-layout: auto;
}
body.rm-admin .lock-table th,
body.rm-admin .reservation-table th {
  padding: 10px 8px;
  font-size: 12px;
}
body.rm-admin .lock-table td,
body.rm-admin .reservation-table td {
  height: 50px;
  padding: 7px 8px;
  font-size: 12px;
  white-space: nowrap;
}
body.rm-admin .lock-table th:first-child,
body.rm-admin .lock-table td:first-child { padding-left: 12px; }
body.rm-admin .lock-table th:last-child,
body.rm-admin .lock-table td:last-child { padding-right: 12px; }
body.rm-admin .lock-table td:nth-child(1) { width: 122px; }
body.rm-admin .lock-table td:nth-child(2) { width: 82px; }
body.rm-admin .lock-table td:nth-child(3) { width: 78px; }
body.rm-admin .lock-table td:nth-child(4) { width: 150px; }
body.rm-admin .lock-table td:nth-child(5),
body.rm-admin .lock-table td:nth-child(6) { width: 112px; }
body.rm-admin .lock-table td:nth-child(7),
body.rm-admin .lock-table td:nth-child(8) { width: 120px; }
body.rm-admin .lock-table td:nth-child(9) { width: 76px; }
body.rm-admin .lock-table td:nth-child(10) { width: 46px; }
body.rm-admin .lock-name-cell .cell-primary,
body.rm-admin .lock-guest-cell .cell-primary,
body.rm-admin .lock-guest-cell .cell-muted {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.rm-admin .lock-status-cell .status-badge {
  min-height: 24px;
  margin: 0;
  padding: 0 8px;
  font-size: 12px;
}
body.rm-admin .mini-icon-button {
  width: 28px;
  height: 28px;
}
/* Reservation modal: responsible guest contact under the name. */
body.rm-admin .reservation-contact {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin: 4px 0 2px;
  padding: 12px 14px;
  border: 1px solid var(--rm-line);
  border-radius: 10px;
  background: #f8fafc;
}
body.rm-admin .reservation-contact > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
body.rm-admin .reservation-contact .reservation-contact-source { display: block; }
body.rm-admin .reservation-contact dt { color: var(--rm-text); font-size: 12px; }
body.rm-admin .reservation-contact dd { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 8px; min-width: 0; margin: 0; }
body.rm-admin .reservation-contact-value { min-width: 0; overflow: hidden; color: var(--rm-primary); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin a.reservation-contact-value { text-decoration: none; }
body.rm-admin .reservation-whatsapp { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; color: #fff !important; background: #25a35a; font-weight: 650; }
body.rm-admin .reservation-whatsapp i { font-size: 16px; }
body.rm-admin .reservation-contact .mini-icon-button { flex: 0 0 auto; }
/* Guest accounts: last login on one line, e-mail state on its own line. */
body.rm-admin .account-login-cell strong,
body.rm-admin .account-login-cell small { display: block; }
body.rm-admin .account-login-cell small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--rm-muted, #6b7684);
}
body.rm-admin .account-login-cell small i { font-size: 13px; }
body.rm-admin .account-login-cell small.is-verified { color: #367849; }
body.rm-admin .account-login-cell small.is-unverified { color: #96661d; }
/* Copy confirmation on the button itself (no toast). */
body.rm-admin .button.is-copied,
body.rm-admin .mini-icon-button.is-copied {
  color: #367849 !important;
  border-color: #9fd3b0 !important;
  background: var(--rm-success-soft) !important;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
body.rm-admin .button.is-copy-failed,
body.rm-admin .mini-icon-button.is-copy-failed {
  color: #b23836 !important;
  border-color: #f0b3b1 !important;
  background: var(--rm-danger-soft) !important;
}
body.rm-admin .reservation-table { min-width: 980px; }
body.rm-admin .reservation-table tr.current-stay { background: #fffaf0; }
body.rm-admin .reservation-table tr.current-stay:hover { background: #fff6e2; }
body.rm-admin .reservation-date.is-checked-in { color: #367849; }

body.rm-admin .table-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 2px 10px;
}
body.rm-admin .table-section-head h3 { margin: 0; font-size: 1.05rem; }
body.rm-admin .table-section-head .eyebrow { margin-bottom: 3px; }
body.rm-admin .table-count {
  display: inline-grid;
  min-width: 34px;
  min-height: 28px;
  place-items: center;
  padding: 0 9px;
  border-radius: 99px;
  color: var(--rm-primary);
  background: var(--rm-primary-soft);
  font-weight: 650;
}
body.rm-admin .history-head { margin-top: 26px; }

body.rm-admin .face-table-shell {
  position: relative;
  overflow-x: auto;
  padding: 0;
}
body.rm-admin .face-table {
  width: 100%;
  min-width: 1322px;
  border-collapse: collapse;
  table-layout: fixed;
}
body.rm-admin .face-table th {
  padding: 10px 8px;
  color: var(--rm-secondary);
  background: #f5f5f7;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}
body.rm-admin .face-table td {
  height: 76px;
  padding: 7px 8px;
  border-top: 1px solid var(--rm-line);
  vertical-align: middle;
  font-size: 12px;
  white-space: nowrap;
}
body.rm-admin .face-table tbody tr { transition: background .18s ease; }
body.rm-admin .face-table tbody tr:hover { background: #fafafd; }
body.rm-admin .face-table tbody tr[data-edit-face] { cursor: pointer; }
body.rm-admin .face-table tbody tr[data-edit-face]:focus-visible { outline: 2px solid var(--rm-primary); outline-offset: -2px; }
body.rm-admin .face-table th:first-child,
body.rm-admin .face-table td:first-child { width: 72px; padding-left: 12px; }
body.rm-admin .face-table th:last-child,
body.rm-admin .face-table td:last-child { padding-right: 12px; }
body.rm-admin .face-table th:nth-child(2),
body.rm-admin .face-table td:nth-child(2) { width: 150px; }
body.rm-admin .face-table th:nth-child(3) { width: 200px; }
body.rm-admin .face-table th:nth-child(4),
body.rm-admin .face-table th:nth-child(5) { width: 52px; }
body.rm-admin .face-table th:nth-child(6),
body.rm-admin .face-table th:nth-child(7) { width: 126px; }
body.rm-admin .face-table th:nth-child(8) { width: 144px; }
body.rm-admin .face-table th:nth-child(9) { width: 180px; }
body.rm-admin .face-table th:nth-child(10) { width: 120px; }
body.rm-admin .face-table td:nth-child(3) { width: 215px; }
body.rm-admin .face-table td:nth-child(4) { width: 58px; padding-right: 4px; text-align: right; }
body.rm-admin .face-table td:nth-child(5) { width: 58px; padding-left: 4px; text-align: left; }
body.rm-admin .face-table th:nth-child(4) { padding-right: 7px; text-align: right; }
body.rm-admin .face-table th:nth-child(5) { padding-left: 7px; text-align: left; }
body.rm-admin .face-table td:nth-child(6),
body.rm-admin .face-table td:nth-child(7) { width: 112px; }
body.rm-admin .face-table td:nth-child(8) { width: 92px; }
body.rm-admin .face-table td:nth-child(9) { width: 150px; }
body.rm-admin .face-table td:nth-child(10) { width: 102px; }
body.rm-admin .face-row-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border-radius: .5rem;
  color: var(--rm-primary);
  background: var(--rm-accent-soft);
  font-size: 24px;
}
body.rm-admin .face-row-avatar img { width: 100%; height: 100%; object-fit: cover; }
body.rm-admin .face-row-name strong,
body.rm-admin .face-row-origin,
body.rm-admin .face-row-message span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.rm-admin .face-row-name strong { max-width: 150px; color: var(--rm-heading); }
body.rm-admin .face-role-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
  line-height: 18px;
  text-transform: uppercase;
}
body.rm-admin .face-role-tag.guest { color: #236e9f; background: var(--rm-info-soft); }
body.rm-admin .face-role-tag.visitor { color: #96661d; background: var(--rm-warning-soft); }
body.rm-admin .checkin-person-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0 2px;
}
body.rm-admin .checkin-person-tags .face-role-tag { margin-top: 0; }
body.rm-admin .checkin-person-tags .status-badge { min-height: 20px; margin: 0; padding: 0 8px; font-size: 11px; }
body.rm-admin .checkin-person.is-inactive .checkin-person-avatar { opacity: .55; }
body.rm-admin .face-row-origin { max-width: 215px; }
body.rm-admin .face-row-message {
  display: flex;
  max-width: 150px;
  align-items: center;
  gap: 6px;
  color: var(--rm-text);
}
body.rm-admin .face-row-message i { flex: 0 0 auto; color: var(--rm-primary); font-size: 16px; }
body.rm-admin .face-row-message span { max-width: 128px; }
body.rm-admin .credential-check {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 800;
}
body.rm-admin .credential-check.yes { color: var(--rm-success); background: var(--rm-success-soft); }
body.rm-admin .credential-check.no { color: #a8adb7; background: #f2f3f5; font-size: 14px; }
body.rm-admin .face-table .face-actions .button { font-size: 12px; }
body.rm-admin .face-table .face-actions { flex-wrap: nowrap; }
body.rm-admin .face-table .face-actions .button {
  min-height: 34px;
  padding: 0 10px;
}
body.rm-admin .permanent-access { display: inline-flex; align-items: center; gap: 5px; }

body.rm-admin .activity-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
body.rm-admin .activity-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
body.rm-admin .activity-summary-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: .5rem;
  color: var(--rm-primary);
  background: var(--rm-primary-soft);
  font-size: 1.25rem;
}
body.rm-admin .activity-summary-icon.success { color: #367849; background: var(--rm-success-soft); }
body.rm-admin .activity-summary-icon.danger { color: var(--rm-danger); background: var(--rm-danger-soft); }
body.rm-admin .activity-summary small,
body.rm-admin .activity-summary strong { display: block; }
body.rm-admin .activity-summary small { color: var(--rm-secondary); }
body.rm-admin .activity-summary strong { margin-top: 2px; color: var(--rm-heading); font-size: 1.25rem; }
body.rm-admin .activity-toolbar { justify-content: space-between; }
body.rm-admin .activity-toolbar .search-field { width: min(620px, 100%); }
body.rm-admin .activity-toolbar .compact-select { display: flex; align-items: center; gap: 8px; }
body.rm-admin .activity-toolbar .compact-select > span { color: var(--rm-secondary); font-weight: 600; }
body.rm-admin .activity-toolbar select { min-width: 140px; }
body.rm-admin .activity-table-shell { overflow-x: auto; padding: 0; }
body.rm-admin .activity-table { width: 100%; min-width: 1080px; border-collapse: collapse; table-layout: fixed; }
body.rm-admin .activity-table th {
  padding: 10px 12px;
  color: var(--rm-secondary);
  background: #f5f5f7;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}
body.rm-admin .activity-table td { height: 52px; padding: 8px 12px; border-top: 1px solid var(--rm-line); vertical-align: middle; }
body.rm-admin .activity-table tbody tr:hover { background: #fafafd; }
body.rm-admin .activity-table th:nth-child(1) { width: 155px; }
body.rm-admin .activity-table th:nth-child(2) { width: 180px; }
body.rm-admin .activity-table th:nth-child(3) { width: 115px; }
body.rm-admin .activity-table th:nth-child(4) { width: 70px; }
body.rm-admin .activity-table th:nth-child(5) { width: 110px; }
body.rm-admin .activity-table th:nth-child(6) { width: 165px; }
body.rm-admin .activity-table th:nth-child(7) { width: 112px; }
body.rm-admin .activity-table th:nth-child(8) { width: 150px; }
body.rm-admin .activity-person { color: var(--rm-heading); font-weight: 650; }
body.rm-admin .activity-method { display: inline-flex; align-items: center; gap: 6px; }
body.rm-admin .activity-method i { color: var(--rm-primary); font-size: 1rem; }
body.rm-admin .activity-image-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(30, 116, 68, .22);
  border-radius: 999px;
  color: #28663d;
  background: var(--rm-success-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
body.rm-admin .activity-image-button:hover { border-color: rgba(30, 116, 68, .38); background: #e6f3e9; }
body.rm-admin .activity-image-button i { font-size: 1rem; }
body.rm-admin .activity-occupancy-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(180, 120, 20, .24);
  border-radius: 999px;
  color: #805b12;
  background: #fff4d8;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
body.rm-admin .activity-occupancy-button.success { color: #28663d; border-color: rgba(30, 116, 68, .22); background: var(--rm-success-soft); }
body.rm-admin .activity-occupancy-button.danger { color: var(--rm-danger); border-color: rgba(181, 51, 51, .24); background: var(--rm-danger-soft); }
body.rm-admin .activity-occupancy-button:hover { filter: brightness(.97); }
body.rm-admin .activity-image-missing { color: var(--rm-secondary); }
body.rm-admin .activity-privacy-note { display: flex; align-items: center; gap: 7px; margin: 11px 2px 0; color: var(--rm-secondary); }
body.rm-admin .activity-privacy-note i { color: #367849; font-size: 1rem; }
body.rm-admin .activity-image-modal-card { width: min(920px, 100%); }
body.rm-admin .activity-image-body { display: grid; gap: 12px; }
body.rm-admin .activity-image-body img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 230px);
  object-fit: contain;
  border-radius: .65rem;
  background: #111;
}
body.rm-admin .activity-image-body p { margin: 0; color: var(--rm-secondary); text-align: center; }

body.rm-admin .code-table-shell {
  position: relative;
  overflow-x: auto;
  padding: 0;
}
body.rm-admin .codes-header-panel { margin: 0 0 20px; border: 1px solid var(--rm-line); border-radius: 10px; overflow: hidden; background: var(--rm-paper); }
body.rm-admin .codes-health-row { display: flex; align-items: center; gap: 20px; padding: 16px; }
body.rm-admin .codes-health-row:has(.warning) { background: #faf4e6; }
body.rm-admin .codes-health-row #ezviz-automation-status { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
body.rm-admin .codes-health-row .button { flex-shrink: 0; min-height: 36px; padding: 0 12px; font-size: 12px; box-shadow: none; }
body.rm-admin .codes-guidance { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--rm-line); color: var(--rm-text); font-size: 12px; line-height: 1.6; }
body.rm-admin .codes-guidance i { flex-shrink: 0; color: #a87d34; font-size: 18px; }
body.rm-admin .codes-guidance p { margin: 0; }
@media (max-width: 780px) {
  body.rm-admin .codes-health-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  body.rm-admin .codes-health-row .button { align-self: flex-end; max-width: 100%; }
}
body.rm-admin .code-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
}
body.rm-admin .code-table th {
  padding: 10px 8px;
  color: var(--rm-secondary);
  background: #f5f5f7;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}
body.rm-admin .code-table td {
  height: 54px;
  padding: 7px 8px;
  border-top: 1px solid var(--rm-line);
  vertical-align: middle;
  font-size: 12px;
  white-space: nowrap;
}
body.rm-admin .code-table tbody tr { transition: background .18s ease, opacity .18s ease; }
body.rm-admin .code-table tbody tr:hover { background: #fafafd; }
body.rm-admin .code-table tbody tr.revoked { opacity: .58; }
body.rm-admin .code-table th:first-child,
body.rm-admin .code-table td:first-child { width: 78px; padding-left: 12px; }
body.rm-admin .code-table th:last-child,
body.rm-admin .code-table td:last-child { width: 105px; padding-right: 12px; }
body.rm-admin .code-table td:nth-child(2) { width: 155px; }
body.rm-admin .code-table td:nth-child(3) { width: 112px; }
body.rm-admin .code-table td:nth-child(4) { width: 132px; }
body.rm-admin .code-table td:nth-child(5) { width: 132px; }
body.rm-admin .code-table td:nth-child(6) { width: 75px; }
body.rm-admin .code-table td:nth-child(7) { width: 112px; }
body.rm-admin .code-return-note { position: relative; margin-top: 3px; font-size: 11px; }
body.rm-admin .code-return-note summary { cursor: pointer; color: var(--rm-primary); }
body.rm-admin .code-return-note > div { white-space: normal; min-width: 190px; max-width: 260px; padding: 8px 0; line-height: 1.45; }
/* 7 Oct 2026 - fixed emergency code on a blocked temporary-code row (Códigos). Stacked: the column is 132 px. */
body.rm-admin .code-emergency { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
body.rm-admin .code-emergency-tag { display: inline-block; padding: 0 7px; border-radius: 999px; color: #7a5a1c; background: #fbf3e1; font-size: 10px; font-weight: 650; letter-spacing: .04em; line-height: 16px; text-transform: uppercase; }
body.rm-admin .code-emergency .mini-icon-button { border-color: #e2cf9f; background: #fffaf0; color: #7a5a1c; }
body.rm-admin .code-guest-cell strong,
body.rm-admin .code-row-detail > span,
body.rm-admin .code-row-detail .code-progress span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.rm-admin .code-guest-cell strong { max-width: 155px; color: var(--rm-heading); }
body.rm-admin .code-row-detail > span {
  display: flex;
  max-width: 230px;
  align-items: center;
  gap: 6px;
}
body.rm-admin .code-row-detail > span i { flex: 0 0 auto; color: var(--rm-primary); font-size: 16px; }
body.rm-admin .code-table .code-progress {
  max-width: 230px;
  margin: 0;
  padding: 6px 8px;
  font-size: 12px;
}
body.rm-admin .code-table .code-progress span { max-width: 195px; }
body.rm-admin .code-row-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 6px; }
body.rm-admin .code-row-actions .button { min-height: 34px; padding: 0 10px; font-size: 12px; }

/* One page heading; table headers and frozen identities share one scroll surface. */
body.rm-admin .topbar { padding-top: 12px; padding-bottom: 12px; gap: 16px; }
body.rm-admin .page-heading-copy { min-width: 0; margin: 0 0 24px; }
body.rm-admin #page-context { display: block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--rm-secondary); }
body.rm-admin #page-title { margin: 6px 0; font-size: 28px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
body.rm-admin #page-description { margin: 5px 0 0; max-width: 900px; font-size: 13px; line-height: 1.5; color: var(--rm-text); }
body.rm-admin #page-description[hidden] { display: none; }
body.rm-admin .topbar-actions { flex-shrink: 0; }
body.rm-admin .page-intro { justify-content: flex-end; }
body.rm-admin .settings-section-title { font-size: 17px; margin: 24px 0 12px; }
body.rm-admin .settings-section-title:first-child { margin-top: 0; }
body.rm-admin .reservation-table-shell { overflow-x: auto; max-height: none; isolation: isolate; scrollbar-gutter: auto; }
body.rm-admin .lock-table-shell { overflow-x: auto; max-height: none; isolation: isolate; scrollbar-gutter: auto; }
body.rm-admin .reservation-table,
body.rm-admin .lock-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: 100%; min-width: 980px; }
body.rm-admin .reservation-table { --unit-width: 88px; --guest-width: 190px; min-width: 1092px; }
body.rm-admin .reservation-form-col { width: 112px; }
body.rm-admin .reservation-unit-col { width: var(--unit-width); }
body.rm-admin .reservation-guest-col { width: var(--guest-width); }
body.rm-admin .reservation-table th[aria-sort] { padding: 0; }
body.rm-admin .table-sort { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 10px 8px; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; white-space: nowrap; }
body.rm-admin .table-sort .sort-indicator { width: 10px; color: var(--rm-secondary); }
body.rm-admin th[aria-sort="ascending"] .table-sort,
body.rm-admin th[aria-sort="descending"] .table-sort { color: var(--rm-primary); }
body.rm-admin .table-sort:focus-visible { outline: 2px solid var(--rm-primary); outline-offset: -3px; border-radius: 4px; }
body.rm-admin .lock-identity-col { width: 112px; }
body.rm-admin .lock-battery-col { width: 90px; }
body.rm-admin .lock-status-col { width: 104px; }
body.rm-admin .lock-date-col { width: 140px; }
body.rm-admin .lock-code-col { width: 150px; }
body.rm-admin .lock-settings-col { width: 56px; }
body.rm-admin .lock-emergency-settings { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px; margin-top: 16px; border: 1px solid #e5d0a8; border-radius: 10px; background: #f8f0df; }
body.rm-admin .lock-table th { white-space: normal; line-height: 1.4; overflow-wrap: anywhere; }
body.rm-admin .reservation-table :is(th,td):nth-child(n),
body.rm-admin .lock-table :is(th,td):nth-child(n) { box-sizing: border-box; width: auto; min-width: 0; }
body.rm-admin .reservation-table th,
body.rm-admin .lock-table th { position: sticky; top: 0; z-index: 3; background: #f5f5f7; border-bottom: 1px solid var(--rm-line); }
body.rm-admin .reservation-table :is(th,td):first-child,
body.rm-admin .lock-table :is(th,td):first-child { position: sticky; left: 0; z-index: 2; background: var(--rm-paper); }
body.rm-admin .reservation-table :is(th,td):first-child { box-shadow: 2px 0 0 var(--rm-line); }
body.rm-admin .reservation-table th:first-child,
body.rm-admin .lock-table th:first-child { z-index: 4; background: #f5f5f7; }
body.rm-admin .reservation-table td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; }
body.rm-admin .reservation-table .reservation-date { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: center; gap: 4px 6px; max-width: 100%; }
body.rm-admin .reservation-table .reservation-date > span { white-space: normal; overflow-wrap: anywhere; }
body.rm-admin .reservation-table tr.current-stay td:first-child { background: #fffaf0; }
body.rm-admin .reservation-table tbody tr:hover td:first-child,
body.rm-admin .lock-table tbody tr:hover td:first-child { background: #fafafd; }
body.rm-admin .reservation-table tr.current-stay:hover td:first-child { background: #fff6e2; }
body.rm-admin .lock-table td:first-child { box-shadow: 2px 0 0 var(--rm-line); }
body.rm-admin .lock-device-label { display: block; max-width: 148px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; color: var(--rm-text); }
body.rm-admin .lock-table { table-layout: auto; }
body.rm-admin .lock-table :is(th,td):nth-child(1) { min-width: 112px; }
body.rm-admin .lock-table :is(th,td):nth-child(2) { min-width: 90px; }
body.rm-admin .lock-table :is(th,td):nth-child(3) { min-width: 104px; }
body.rm-admin .lock-table :is(th,td):nth-child(5),
body.rm-admin .lock-table :is(th,td):nth-child(6) { min-width: 140px; }
body.rm-admin .lock-table :is(th,td):nth-child(7),
body.rm-admin .lock-table :is(th,td):nth-child(8) { min-width: 150px; }
body.rm-admin .lock-table :is(th,td):nth-child(9) { min-width: 58px; }
body.rm-admin .lock-table .lock-guest-cell .cell-primary { max-width: none; white-space: nowrap; overflow-wrap: normal; }
body.rm-admin .lock-table .lock-battery-cell .status-badge { min-height: 22px; font-size: 11px; margin: 0; }
body.rm-admin .lock-readonly { padding: 12px 0; min-width: 0; }
body.rm-admin .lock-readonly > span { display: block; color: var(--rm-text); font-size: 12px; margin-bottom: 6px; }
body.rm-admin .lock-readonly strong { font-size: 15px; overflow-wrap: anywhere; }
body.rm-admin .lock-modal-card { max-width: 600px; }
body.rm-admin #lock-modal-battery { margin-top: 8px; }
body.rm-admin .reservation-access-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
body.rm-admin .reservation-access-card { min-width: 0; padding: 16px; border: 1px solid var(--rm-line); border-radius: 12px; background: var(--rm-paper); }
body.rm-admin .reservation-access-card.emergency { background: var(--rm-accent-soft); }
body.rm-admin .reservation-access-card h3 { margin: 0 0 10px; font-size: 15px; }
body.rm-admin .reservation-access-card p,
body.rm-admin .reservation-access-card small { font-size: 12px; line-height: 1.5; color: var(--rm-text); }
body.rm-admin .reservation-access-card small { display: block; margin-top: 12px; }
body.rm-admin .reservation-access-card [role="alert"] { color: #9b2828; }
body.rm-admin .reservation-access-card .code-actions { margin-top: 12px; flex-wrap: wrap; }
body.rm-admin .reservation-access-card .code-actions:empty { display: none; }
body.rm-admin .reservation-access-card .status-badge { white-space: normal; }
body.rm-admin .reservation-access-card .checkin-info-code-value code { font-size: 19px; letter-spacing: .04em; }
body.rm-admin :is(.reservation-table-shell,.lock-table-shell):focus-visible { outline: 2px solid var(--rm-primary); outline-offset: 3px; }
@media (max-width: 780px) {
  body.rm-admin .topbar { align-items: flex-start; padding: calc(12px + env(safe-area-inset-top)) 13px 12px; gap: 8px; }
  body.rm-admin .topbar-heading { gap: 8px; flex: 1; }
  body.rm-admin .topbar-heading .menu-button { flex-shrink: 0; }
  body.rm-admin #page-title { font-size: 26px; }
  body.rm-admin #page-context { font-size: 10px; }
  body.rm-admin .page-heading-copy { margin-bottom: 18px; }
  body.rm-admin .topbar-actions { gap: 5px; }
  body.rm-admin .topbar-actions .icon-button { width: 34px; min-width: 34px; height: 38px; }
  body.rm-admin .reservation-table { --unit-width: 88px; --guest-width: 144px; }
  body.rm-admin .reservation-access-panels { grid-template-columns: 1fr; }
  body.rm-admin .reservation-access-card .checkin-info-code-value { flex-direction: row; align-items: center; }
  body.rm-admin .reservation-access-card .checkin-info-code-value .button { width: auto; }
}

@media (max-width: 780px) {
  body.rm-admin .activity-summary-grid { grid-template-columns: 1fr; gap: 10px; }
  body.rm-admin .activity-toolbar { align-items: stretch; }
  body.rm-admin .activity-toolbar .compact-select { justify-content: space-between; }
  body.rm-admin input:not([type="checkbox"]):not([type="radio"]),
  body.rm-admin select,
  body.rm-admin textarea { font-size: 16px; }
}

/* Reservation detail: compact layout with separate Madalena access cards. */
body.rm-admin .checkin-modal-card { width: min(640px, 100%); }
body.rm-admin .checkin-modal-card .modal-head { padding: 14px 20px; }
body.rm-admin .checkin-modal-card .modal-head h2 { margin: 0; font-size: 17px; }
body.rm-admin .checkin-modal-card .modal-body { padding: 16px 20px; }
body.rm-admin .checkin-modal-card .button { box-shadow: none; min-height: 32px; height: 32px; padding: 0 10px; font-size: 12px; gap: 5px; border-radius: 6px; }
body.rm-admin .checkin-modal-card .checkin-reservation-summary { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 12px; padding: 0 0 14px; margin: 0 0 14px; border: 0; border-bottom: 1px solid var(--rm-line); border-radius: 0; color: var(--rm-primary); background: none; }
body.rm-admin .checkin-modal-card .checkin-summary-photo { width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f1f3f6; color: var(--rm-primary); font-size: 12px; }
body.rm-admin .checkin-modal-card .checkin-reservation-summary strong { margin: 0 0 4px; color: var(--rm-primary); font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
body.rm-admin .checkin-modal-card .checkin-reservation-summary small { color: var(--rm-text); font-size: 12px; }
body.rm-admin .reservation-stay-dates { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 2px 0 0; }
body.rm-admin .reservation-stay-dates > div { min-width: 0; }
body.rm-admin .reservation-stay-dates dt { margin-bottom: 2px; color: var(--rm-text); font-size: 12px; }
body.rm-admin .reservation-stay-dates dd { margin: 0; font-size: 12px; font-weight: 600; }
body.rm-admin .reservation-section-title { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
body.rm-admin .reservation-access-panels { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 0 0 16px; border: 0; border-radius: 0; }
body.rm-admin .reservation-access-card { display: grid; grid-template-columns: minmax(0,1fr) 80px; grid-template-rows: minmax(48px,auto) 32px auto; align-content: start; align-items: center; gap: 8px; margin: 0; padding: 14px; border: 1px solid #243f60; border-radius: 12px; color: #fff; background: #193452; }
body.rm-admin .reservation-access-card + .reservation-access-card { border-color: #e2d1ad; }
body.rm-admin .reservation-access-card.emergency { color: #233b55; background: #f8f0df; }
body.rm-admin .reservation-access-card h3 { margin: 0 0 5px; color: #f1d39d; font-size: 13px; font-weight: 600; }
body.rm-admin .reservation-access-card .status-badge { min-height: 22px; padding: 2px 7px; font-size: 10px; }
body.rm-admin .reservation-access-card .checkin-info-code-value { display: contents; }
body.rm-admin .reservation-access-card .checkin-info-code-value code { grid-column: 1; grid-row: 2; display: flex; justify-content: flex-start; min-width: 0; min-height: 32px; padding: 0; border: 0; border-radius: 0; color: #fff; background: transparent; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 21px; font-weight: 600; letter-spacing: .04em; }
body.rm-admin .reservation-access-card .checkin-info-code-value .button { grid-column: 2; grid-row: 2; width: 80px; padding: 0 8px; font-size: 11px; color: #193452; border-color: #fff; background: #fff; }
body.rm-admin .reservation-access-card .code-actions { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; margin: 0; }
body.rm-admin .reservation-access-card .code-actions .button { width: auto; min-width: 80px; height: 32px; padding: 0 10px; font-size: 11px; line-height: 1.3; white-space: nowrap; }
body.rm-admin .reservation-access-card .code-actions .primary { background: #edc77e; border-color: #edc77e; color: #193452; }
body.rm-admin .reservation-access-card .code-actions .primary:hover:not(:disabled) { background: #f6dca6; border-color: #f6dca6; }
body.rm-admin .reservation-access-card .code-actions .danger { background: #ffe4df; border-color: #f3b7ac; color: #922b21; }
body.rm-admin .reservation-access-card .code-actions .danger:hover:not(:disabled) { background: #ffd0c6; }
body.rm-admin .reservation-access-card .code-actions:empty { display: none; }
body.rm-admin .reservation-access-card small { margin: 0; color: #d1dbe7; font-size: 11px; }
body.rm-admin .reservation-access-card .reservation-access-note { grid-column: 1 / -1; padding-top: 0; }
body.rm-admin .reservation-access-card [role="alert"] { grid-column: 1 / -1; margin: 0; color: #ffd2cb; }
body.rm-admin .reservation-code-placeholder { grid-column: 1 / -1; grid-row: 2; color: #d1dbe7; font-size: 12px; }
body.rm-admin .checkin-modal-card .checkin-link-panel { padding: 0 0 14px; margin: 0 0 14px; border: 0; border-bottom: 1px solid var(--rm-line); border-radius: 0; background: none; }
body.rm-admin .checkin-modal-card .checkin-link-heading strong { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
body.rm-admin .checkin-modal-card .checkin-link-heading small { display: block; color: var(--rm-text); font-size: 12px; }
body.rm-admin .checkin-modal-card .checkin-settings-card { grid-template-columns: minmax(0,1fr) 156px; align-items: center; gap: 28px; padding: 6px 0; margin: 0; border: 0; border-radius: 0; background: none; }
body.rm-admin .checkin-modal-card .checkin-settings-card h3 { margin: 0 0 6px; font-size: 13px; }
body.rm-admin .checkin-modal-card .checkin-settings-card p { font-size: 12px; line-height: 1.5; }
body.rm-admin .checkin-modal-card .checkin-settings-card label span { margin-bottom: 8px; white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--rm-text); }
body.rm-admin .checkin-modal-card .checkin-settings-card input { min-height: 32px; height: 32px; font-size: 14px; font-weight: 600; }
body.rm-admin .checkin-modal-card .checkin-capacity-summary { gap: 12px; margin-top: 4px; }
body.rm-admin .checkin-modal-card .checkin-capacity-summary span { padding: 0; border-radius: 0; background: none; font-size: 12px; }
body.rm-admin .checkin-modal-card .checkin-people-panel { padding: 20px 0 0; margin: 20px 0 0; border: 0; border-top: 1px solid var(--rm-line); border-radius: 0; background: none; }
body.rm-admin .checkin-modal-card form.modal-body > .modal-actions { bottom: -16px; margin: 14px -20px -16px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); }
body.rm-admin .checkin-modal-card .checkin-people-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
body.rm-admin .checkin-modal-card .checkin-people-actions .button { height: 32px; min-height: 32px; padding: 0 10px; font-size: 11px; white-space: nowrap; }
body.rm-admin .checkin-modal-card .checkin-people-actions .danger { border-color: #f3b7ac; color: #922b21; background: #ffe4df; }
body.rm-admin .checkin-modal-card .checkin-people-actions .danger:hover:not(:disabled) { background: #ffd0c6; }
body.rm-admin .checkin-modal-card .checkin-people-actions small { flex: 1 0 100%; color: var(--rm-text); font-size: 12px; }
body.rm-admin .checkin-modal-card .checkin-people-actions small:empty { display: none; }
body.rm-admin .checkin-visitor-form .checkin-visitor-intro { margin: 0 0 14px; color: var(--rm-text); font-size: 12px; line-height: 1.5; }
body.rm-admin .checkin-visitor-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
body.rm-admin .checkin-visitor-form label { margin-bottom: 14px; }
body.rm-admin .checkin-visitor-form label > span { font-size: 12px; font-weight: 500; color: var(--rm-text); }
body.rm-admin .checkin-visitor-form input:not([type="file"]):not([type="checkbox"]) { min-height: 32px; height: 32px; font-size: 14px; }
body.rm-admin .checkin-visitor-form input[type="file"] { width: 100%; min-height: 0; padding: 6px 0; border: 0; border-radius: 0; font-size: 12px; }
body.rm-admin .checkin-visitor-form .confirm-row { font-size: 12px; font-weight: 500; }
body.rm-admin .checkin-visitor-form .error-text { margin: 10px 0 0; color: var(--rm-danger); font-size: 12px; }
body.rm-admin .checkin-visitor-form .error-text:empty { display: none; }

body.rm-admin .reservation-access-heading { grid-column: 1 / -1; grid-row: 1; }
body.rm-admin .reservation-access-card:not(.emergency) .reservation-access-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
body.rm-admin .reservation-access-card:not(.emergency) .reservation-access-heading h3 { margin: 0; }
body.rm-admin .checkin-modal-card .checkin-link-heading .button,
body.rm-admin .checkin-modal-card .modal-actions .button { width: 96px; flex: 0 0 96px; font-size: 11px; white-space: nowrap; }
body.rm-admin .checkin-modal-card .checkin-link-heading .button i,
body.rm-admin .checkin-modal-card .modal-actions .button i { display: none; }
body.rm-admin .checkin-modal-card #checkin-copy-link { color: #193452; background: #d2aa61; border-color: #d2aa61; }
body.rm-admin .checkin-modal-card #checkin-copy-link:hover:not(:disabled) { background: #dfbc7a; border-color: #dfbc7a; }
body.rm-admin .checkin-modal-card .modal-head .icon-button { width: 30px; min-width: 30px; height: 30px; box-shadow: none; }
@media (max-width: 620px) {
  body.rm-admin .checkin-modal-card .modal-head { padding: 12px 14px; }
  body.rm-admin .checkin-modal-card .modal-body { padding: 14px; }
  body.rm-admin .reservation-access-panels { grid-template-columns: 1fr; gap: 10px; }
  body.rm-admin .reservation-access-card { padding: 12px; }
  body.rm-admin .checkin-modal-card .checkin-settings-card { grid-template-columns: 1fr; gap: 18px; }
  body.rm-admin .checkin-modal-card .checkin-settings-card label { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  body.rm-admin .checkin-modal-card .checkin-settings-card label span { margin-bottom: 0; }
  body.rm-admin .checkin-modal-card .checkin-settings-card input { width: 88px; flex: 0 0 88px; }
  body.rm-admin .checkin-modal-card .checkin-link-heading { flex-wrap: nowrap; gap: 10px; }
  body.rm-admin .checkin-modal-card .checkin-link-heading small { max-width: 210px; }
  body.rm-admin .checkin-modal-card .checkin-people-actions .button { flex: 1 1 calc(50% - 4px); }
}

body.rm-admin .reservation-access-card.emergency h3 { color: #73551f; }
body.rm-admin .reservation-access-card.emergency .checkin-info-code-value code { color: #193452; }
body.rm-admin .reservation-access-card.emergency small { color: #715d3b; }
body.rm-admin .reservation-access-card.emergency .checkin-info-code-value .button { border-color: #decca8; background: #fffaf0; }
body.rm-admin .reservation-access-card .reservation-access-note { font-size: 10px; line-height: 1.4; }

body.rm-admin .account-modal-card .account-facts { margin-top: 16px; }
body.rm-admin .account-modal-card .account-protected-files { margin-top: 14px; }
body.rm-admin .account-modal-card .account-protected-files > div > i { color: #193452; background-color: currentColor; }
body.rm-admin .account-modal-card .account-protected-files small { white-space: normal; overflow: visible; line-height: 1.5; }
body.rm-admin .account-edit-note { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 10px; margin: 16px 0 0; padding: 14px; border: 1px solid #e2d1ad; border-radius: 8px; color: #715d3b; background: #fbf7ed; font-size: 12px; line-height: 1.6; }
body.rm-admin .account-edit-note > i { color: #a87d34; font-size: 18px; line-height: 1.6; }
body.rm-admin .account-edit-note p { margin: 0; }
body.rm-admin .account-edit-note p + p { margin-top: 8px; }
body.rm-admin .account-modal-card .modal-actions { margin-top: 20px; }
@media (max-width: 620px) {
  body.rm-admin .account-modal-card .account-facts,
  body.rm-admin .account-modal-card .account-protected-files { grid-template-columns: 1fr; }
}

/* Sticky modal footer on phones: match the 16px side padding. */
@media (max-width: 480px) {
  body.rm-admin .modal-card form.modal-body > .modal-actions,
  body.rm-admin .checkin-modal-card form.modal-body > .modal-actions { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
}

/* 14 Sep 23:15 — reservation modal fixes.
   The modal never scrolls sideways; the sticky footer bleeds exactly into the
   body padding (20px desktop, 14px at <=620px). */
body.rm-admin .modal-card { overflow-x: hidden; overscroll-behavior: contain; }
body.rm-admin .checkin-modal-card form.modal-body > .modal-actions { align-items: center; }
body.rm-admin .checkin-modal-card .checkin-whatsapp-button { margin-right: auto; color: #fff; border-color: #25a35a; background: #25a35a; text-decoration: none; }
body.rm-admin .checkin-modal-card .checkin-whatsapp-button:hover { color: #fff; background: #1f8f4e; border-color: #1f8f4e; }
body.rm-admin .checkin-modal-card .modal-actions .checkin-whatsapp-button i { display: inline-block; margin: 0; font-size: 18px; line-height: 1; }
/* Icon-only square button; corners inherit the modal buttons' radius. */
body.rm-admin .checkin-modal-card .modal-actions .checkin-whatsapp-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; flex: 0 0 32px; padding: 0; }
body.rm-admin .checkin-modal-card .modal-actions .checkin-whatsapp-button.hidden { display: none !important; }
/* Copy buttons share one right edge: the contact box and the link row use the
   same inner right inset as the code cards (padding + 1px border). */
body.rm-admin .checkin-modal-card .reservation-contact { padding: 12px 14px; }
body.rm-admin .checkin-modal-card .checkin-link-heading { padding-right: 15px; }
body.rm-admin .checkin-modal-card #checkin-copy-link { width: 80px; flex: 0 0 80px; }
@media (max-width: 620px) {
  body.rm-admin .checkin-modal-card form.modal-body > .modal-actions { bottom: -14px; margin: 14px -14px -14px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); }
  body.rm-admin .checkin-modal-card .reservation-contact { padding: 10px 12px; }
  body.rm-admin .checkin-modal-card .checkin-link-heading { padding-right: 13px; }
}

/* 14 Sep 23:20 — pinned guest summary + even footer padding in the reservation modal. */
body.rm-admin .checkin-modal-card .checkin-reservation-summary {
  position: sticky;
  top: calc(var(--checkin-head-h, 56px) - 1px);
  z-index: 2;
  align-items: center;
  margin: -16px -20px 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--rm-line);
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
body.rm-admin .checkin-modal-card .checkin-reservation-details { display: grid; gap: 12px; margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px solid var(--rm-line); }
body.rm-admin .checkin-modal-card .checkin-reservation-details .reservation-contact,
body.rm-admin .checkin-modal-card .checkin-reservation-details .reservation-stay-dates { margin: 0; }
body.rm-admin .checkin-modal-card .checkin-reservation-details:empty { display: none; }
body.rm-admin .checkin-modal-card form.modal-body > .modal-actions { padding: 12px 20px; }
@media (max-width: 620px) {
  body.rm-admin .checkin-modal-card .checkin-reservation-summary { margin: -14px -14px 12px; padding: 10px 14px; }
  body.rm-admin .checkin-modal-card form.modal-body > .modal-actions { padding: 12px 14px; }
}
body.rm-admin .checkin-modal-card .checkin-summary-photo.is-guest { overflow: hidden; border-radius: 50%; background: #eef2f6; }
body.rm-admin .checkin-modal-card .checkin-summary-photo.is-guest img { width: 100%; height: 100%; object-fit: cover; }
/* 14 Sep 23:31 — no line between the modal head and the pinned guest summary. */
body.rm-admin .checkin-modal-card .modal-head { border-bottom: 0; }
/* 14 Sep 23:34 — the pinned footer sticks at the card's bottom edge while
   scrolling (a negative sticky offset left it cut off until the end). */
body.rm-admin .modal-card form.modal-body > .modal-actions,
body.rm-admin .checkin-modal-card form.modal-body > .modal-actions { bottom: 0; }
@media (max-width: 620px) {
  body.rm-admin .checkin-modal-card form.modal-body > .modal-actions { bottom: 0; }
}
/* 14 Sep 23:40 — phones: modals centred with the same gap above and below
   (the base theme started them 72px from the top but only 24px from the bottom). */
@media (max-width: 780px) {
  body.rm-admin .modal {
    align-items: center;
    padding-top: max(24px, calc(env(safe-area-inset-top) + 16px));
    padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
  }
  body.rm-admin .modal-card {
    max-height: calc(100dvh - max(24px, calc(env(safe-area-inset-top) + 16px)) - max(24px, calc(env(safe-area-inset-bottom) + 16px)));
  }
}

/* 14 Sep 23:50 — check-in link and visitors as feature cards. */
body.rm-admin .checkin-modal-card .checkin-feature-card {
  display: block;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid var(--rm-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 40, 69, .04);
}
body.rm-admin .checkin-modal-card .checkin-feature-card .checkin-link-heading {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-right: 0;
}
body.rm-admin .checkin-feature-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: #8a6a24;
  background: #f8f0df;
  font-size: 18px;
}
body.rm-admin .checkin-feature-copy { min-width: 0; }
body.rm-admin .checkin-feature-copy strong { display: block; margin: 0 0 4px; color: var(--rm-primary); font-size: 14px; font-weight: 650; }
body.rm-admin .checkin-feature-note { display: block; color: var(--rm-text); font-size: 12px; line-height: 1.45; }
body.rm-admin .checkin-link-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
}
body.rm-admin .checkin-link-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
body.rm-admin .checkin-link-status.pending { color: #96661d; background: var(--rm-warning-soft); }
body.rm-admin .checkin-link-status.done { color: #367849; background: var(--rm-success-soft); }
body.rm-admin .checkin-link-status.unavailable { color: #6b7684; background: #eeeef0; }
body.rm-admin .checkin-modal-card #checkin-copy-link { width: 80px; flex: 0 0 80px; }
body.rm-admin .checkin-link-preview {
  display: block;
  margin-top: 12px;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px dashed #decca8;
  border-radius: 8px;
  color: #5b4a26;
  background: #fffaf0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.rm-admin .checkin-capacity-bar { height: 8px; margin: 14px 0 8px; overflow: hidden; border-radius: 999px; background: #eef1f5; }
body.rm-admin .checkin-capacity-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c9a45c, #e2c07d); transition: width .2s ease; }
body.rm-admin .checkin-modal-card .checkin-feature-card .checkin-capacity-summary { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
body.rm-admin .checkin-modal-card .checkin-feature-card .checkin-capacity-summary span { color: var(--rm-text); font-size: 12px; }
body.rm-admin .checkin-modal-card .checkin-feature-card .checkin-capacity-summary b { color: var(--rm-primary); font-size: 14px; }
body.rm-admin .checkin-modal-card .checkin-slots-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rm-line);
}
body.rm-admin .checkin-modal-card .checkin-slots-field > span:first-child { margin: 0; color: var(--rm-primary); font-size: 13px; font-weight: 600; white-space: nowrap; }
body.rm-admin .checkin-slots-stepper { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--rm-line); border-radius: 8px; background: #fff; }
body.rm-admin .checkin-slots-step { width: 34px; height: 34px; border: 0; color: var(--rm-primary); background: #f5f7fa; font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer; }
body.rm-admin .checkin-slots-step:disabled { color: #b8c0cb; cursor: default; }
body.rm-admin .checkin-modal-card .checkin-slots-stepper input {
  width: 48px !important;
  min-height: 34px;
  height: 34px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  text-align: center;
  font-size: 15px;
  font-weight: 650;
  -moz-appearance: textfield;
}
body.rm-admin .checkin-slots-stepper input::-webkit-outer-spin-button,
body.rm-admin .checkin-slots-stepper input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
@media (max-width: 620px) {
  body.rm-admin .checkin-modal-card .checkin-feature-card { padding: 12px; }
  body.rm-admin .checkin-modal-card .checkin-feature-card .checkin-link-heading { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; }
  body.rm-admin .checkin-feature-icon { width: 32px; height: 32px; font-size: 16px; }
}
body.rm-admin .checkin-modal-card .checkin-settings-card label .checkin-slots-stepper { margin: 0; white-space: nowrap; }
body.rm-admin .checkin-modal-card .checkin-settings-card .checkin-slots-stepper input { flex: 0 0 48px; }

/* 14 Sep 23:55 — compact apartment access card and autosaved visitor slots. */
body.rm-admin .checkin-modal-card #checkin-reservation-codes { display: block; margin: 0 0 12px; }
body.rm-admin .access-compact {
  overflow: hidden;
  border: 1px solid var(--rm-line);
  border-radius: 12px;
  background: #fff;
}
body.rm-admin .access-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 12px 14px;
}
body.rm-admin .access-row + .access-row { border-top: 1px solid var(--rm-line); }
body.rm-admin .access-row.emergency { background: #fffaf0; }
body.rm-admin .access-row-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; }
body.rm-admin .access-row-label > span:first-child { color: var(--rm-primary); font-size: 12px; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; }
body.rm-admin .access-row.emergency .access-row-label > span:first-child { color: #8a6a24; }
body.rm-admin .access-row-label small { color: var(--rm-text); font-size: 11px; }
body.rm-admin .access-row-label .status-badge { min-height: 20px; margin: 0; padding: 0 8px; font-size: 10px; }
body.rm-admin .access-row-value { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 10px; min-width: 0; }
body.rm-admin .access-row-value code {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  color: var(--rm-primary);
  background: none;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.rm-admin .access-row-empty { color: var(--rm-text); font-size: 13px; }
body.rm-admin .access-row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
body.rm-admin .checkin-modal-card .access-row-actions .button { height: 30px; min-height: 30px; padding: 0 10px; font-size: 11px; }
body.rm-admin .checkin-modal-card .access-row-actions .danger { border-color: #f3b7ac; color: #922b21; background: #fff1ee; }
body.rm-admin .access-row-extra { grid-column: 1 / -1; font-size: 12px; }
body.rm-admin .access-row-extra p { margin: 0; color: #b23836; }
body.rm-admin .access-compact-note { margin: 0; padding: 8px 14px; border-top: 1px solid var(--rm-line); color: var(--rm-text); background: #f8fafc; font-size: 11px; }

body.rm-admin .checkin-slots-state { display: inline-grid; width: 18px; height: 18px; margin-left: 8px; place-items: center; vertical-align: middle; font-style: normal; }
body.rm-admin .checkin-slots-state.is-saved { color: #367849; font-size: 16px; }
body.rm-admin .checkin-slots-state.is-error { color: #b23836; font-size: 16px; }
body.rm-admin .checkin-slots-spinner { width: 14px; height: 14px; border: 2px solid #d9e2eb; border-top-color: var(--rm-primary); border-radius: 50%; animation: checkin-slots-spin .7s linear infinite; }
@keyframes checkin-slots-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { body.rm-admin .checkin-slots-spinner { animation-duration: 2s; } }
@media (max-width: 620px) {
  body.rm-admin .access-row { padding: 10px 12px; }
  body.rm-admin .access-row-value code { font-size: 18px; }
  body.rm-admin .access-compact-note { padding: 8px 12px; }
}
/* 14 Sep 23:58 — brand colour on the compact reservation modal. */
body.rm-admin .checkin-modal-card .reservation-section-title { color: #8a6a24; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
/* Contact: soft navy tint with a navy accent edge. */
body.rm-admin .checkin-modal-card .reservation-contact { border-color: #d6e2f0; border-left: 3px solid #1d4a7c; background: linear-gradient(135deg, #f3f7fc, #eaf1f9); }
body.rm-admin .checkin-modal-card .reservation-contact dt { color: #4d6380; font-weight: 600; }
body.rm-admin .checkin-modal-card .reservation-contact .mini-icon-button { border-color: #cddbeb; background: #fff; color: #1d4a7c; }
/* Stay dates: two small cream tiles. */
body.rm-admin .checkin-modal-card .checkin-reservation-details .reservation-stay-dates { gap: 10px; }
body.rm-admin .checkin-modal-card .checkin-reservation-details .reservation-stay-dates > div { padding: 10px 12px; border: 1px solid #eadfc6; border-radius: 10px; background: #fffaf0; }
body.rm-admin .checkin-modal-card .checkin-reservation-details .reservation-stay-dates dt { color: #8a6a24; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
body.rm-admin .checkin-modal-card .checkin-reservation-details .reservation-stay-dates dd { color: #193452; font-size: 14px; font-weight: 650; }
/* Access: temporary row in navy with white digits, emergency row in warm gold. */
body.rm-admin .access-compact { border-color: #1d3452; }
body.rm-admin .access-row:not(.emergency) { color: #fff; background: linear-gradient(125deg, #102845, #1d4a7c); }
body.rm-admin .access-row:not(.emergency) .access-row-label > span:first-child { color: #edc77e; }
body.rm-admin .access-row:not(.emergency) .access-row-value code { color: #fff; }
body.rm-admin .access-row:not(.emergency) .access-row-empty { color: #c9d6e6; }
body.rm-admin .access-row:not(.emergency) .access-copy { border-color: rgba(255,255,255,.35); color: #193452; background: #fff; }
body.rm-admin .access-row:not(.emergency) .access-row-extra,
body.rm-admin .access-row:not(.emergency) .access-row-extra p { color: #ffd6cf; }
body.rm-admin .checkin-modal-card .access-row:not(.emergency) .access-row-actions .danger { border-color: rgba(255, 196, 184, .6); color: #ffd6cf; background: rgba(178, 56, 54, .22); }
body.rm-admin .checkin-modal-card .access-row:not(.emergency) .access-row-actions .primary { border-color: #edc77e; color: #193452; background: #edc77e; }
body.rm-admin .access-row + .access-row { border-top: 0; }
body.rm-admin .access-row.emergency { border-left: 3px solid #d2aa61; background: linear-gradient(135deg, #fbf3e1, #f6e8c9); }
body.rm-admin .access-row.emergency .access-row-label > span:first-child { color: #7a5a1c; }
body.rm-admin .access-row.emergency .access-row-label small { color: #8a7348; }
body.rm-admin .access-row.emergency .access-copy { border-color: #e2cf9f; background: #fffaf0; color: #7a5a1c; }
body.rm-admin .access-compact-note { border-top-color: #eadfc6; color: #715d3b; background: #fffaf0; }
/* Feature cards: gold accent edge and warm icon tile. */
body.rm-admin .checkin-modal-card .checkin-feature-card { border-left: 3px solid #d2aa61; }
body.rm-admin .checkin-feature-icon { color: #fff; background: linear-gradient(135deg, #b78529, #d8ad52); box-shadow: 0 4px 10px rgba(183, 133, 41, .25); }
/* 15 Sep 00:00 — stay dates in the style of the guest check-in page. */
body.rm-admin .admin-stay-period {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid #e6dcc4;
  border-radius: 14px;
  background: linear-gradient(#eadfc6, #eadfc6) center / 1px 100% no-repeat, #fff;
  box-shadow: 0 8px 22px rgba(13, 30, 53, .06);
}
body.rm-admin .admin-stay-period > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 7px;
  min-width: 0;
  padding: 13px 16px 12px 20px;
}
body.rm-admin .admin-stay-period i {
  display: grid;
  width: 16px;
  height: 16px;
  place-content: center;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(135deg, #b78529, #d8ad52);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}
body.rm-admin .admin-stay-period span { color: #a07c2c; font-size: 10px; font-weight: 800; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
body.rm-admin .admin-stay-period strong { grid-column: 1 / -1; margin-top: 8px; color: #193452; font-size: 16px; font-weight: 750; line-height: 1.2; }
body.rm-admin .admin-stay-period em { grid-column: 1 / -1; margin-top: 2px; color: #5b6b82; font-size: 13px; font-style: normal; font-weight: 650; }
body.rm-admin .admin-stay-period > b {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 26px;
  height: 26px;
  place-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #b78529, #d8ad52);
  box-shadow: 0 4px 10px rgba(183, 133, 41, .28);
  font-size: 13px;
  font-weight: 900;
  transform: translate(-50%, -50%);
}
/* 15 Sep 00:05 — no thick left accent stripes (owner). */
body.rm-admin .checkin-modal-card .checkin-feature-card { border-left: 1px solid var(--rm-line); }
body.rm-admin .checkin-modal-card .reservation-contact { border-left: 1px solid #d6e2f0; }
body.rm-admin .access-row.emergency { border-left: 0; }
/* 15 Sep 00:10 — stay card: content centred in each half, stay progress bar. */
body.rm-admin .admin-stay-period > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 22px 13px;
  text-align: center;
}
body.rm-admin .admin-stay-label { display: inline-flex; align-items: center; gap: 7px; color: #a07c2c; font-size: 10px; font-weight: 800; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
body.rm-admin .admin-stay-period strong { margin-top: 8px; }
body.rm-admin .admin-stay-block { display: grid; gap: 0; }
body.rm-admin .admin-stay-block .admin-stay-period { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
body.rm-admin .admin-stay-progress {
  padding: 11px 16px 12px;
  border: 1px solid #e6dcc4;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #fffaf0;
  box-shadow: 0 8px 22px rgba(13, 30, 53, .06);
}
body.rm-admin .admin-stay-progress-bar { position: relative; height: 8px; overflow: hidden; border-radius: 999px; background: #efe5cf; }
body.rm-admin .admin-stay-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b78529, #e2c07d); transition: width .3s ease; }
body.rm-admin .admin-stay-progress.done .admin-stay-progress-bar span { background: linear-gradient(90deg, #4f9a66, #7cc493); }
body.rm-admin .admin-stay-progress-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 8px; }
body.rm-admin .admin-stay-progress-label strong { color: #193452; font-size: 13px; font-weight: 700; }
body.rm-admin .admin-stay-progress-label small { color: #8a7348; font-size: 11px; font-weight: 600; white-space: nowrap; }
/* 15 Sep 00:12 - Area do hospede card: note under the title (status pill removed). */
body.rm-admin .checkin-modal-card .checkin-link-panel .checkin-feature-note { margin-top: 2px; }

/* 15 Sep 00:15 - one size for every copy icon button in the reservation modal. */
body.rm-admin .checkin-modal-card .mini-icon-button,
body.rm-admin .checkin-modal-card .access-copy,
body.rm-admin .checkin-modal-card .reservation-contact .mini-icon-button {
  display: inline-grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border-radius: 8px;
  font-size: 15px;
}
body.rm-admin .checkin-modal-card .reservation-contact dd,
body.rm-admin .access-row-value { grid-template-columns: minmax(0, 1fr) 32px; }
/* 15 Sep 00:20 - role and access pills in the people cards share one size and baseline. */
body.rm-admin .checkin-person-tags { align-items: center; }
body.rm-admin .checkin-person-tags .face-role-tag,
body.rm-admin .checkin-person-tags .status-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  vertical-align: middle;
}
/* 15 Sep 00:24 - Revogar on the navy code row: clear red tint. */
body.rm-admin .checkin-modal-card .access-row:not(.emergency) .access-row-actions .danger {
  border-color: #e0605a;
  color: #fff;
  background: linear-gradient(135deg, #c8423c, #a8322e);
  box-shadow: 0 4px 10px rgba(168, 50, 46, .35);
}
body.rm-admin .checkin-modal-card .access-row:not(.emergency) .access-row-actions .danger:hover:not(:disabled) { background: linear-gradient(135deg, #d24c46, #b3372f); }
body.rm-admin .checkin-modal-card .access-row:not(.emergency) .access-row-actions .danger i { color: #fff; }
/* 15 Sep 00:08 - feature card titles alone, vertically centred with the icon. */
body.rm-admin .checkin-modal-card .checkin-feature-copy { display: flex; align-items: center; min-height: 36px; }
body.rm-admin .checkin-modal-card .checkin-feature-copy strong { margin: 0; line-height: 1.25; }

/* 15 Sep 00:12 - stay bar starts empty width until script sets the remaining share. */
body.rm-admin .admin-stay-progress-bar span { width: 0; }

/* 15 Sep 00:30 - Portaria activity summary: three compact tiles in one row, also on phones. */
body.rm-admin .activity-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
body.rm-admin .activity-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 12px;
}
body.rm-admin .activity-summary-icon { width: 30px; height: 30px; min-width: 30px; border-radius: 8px; font-size: 16px; }
body.rm-admin .activity-summary > div { display: flex; flex-direction: column-reverse; min-width: 0; }
body.rm-admin .activity-summary strong { margin: 0; font-size: 22px; line-height: 1.1; }
body.rm-admin .activity-summary small { margin-top: 3px; font-size: 11px; line-height: 1.25; }
@media (max-width: 420px) {
  body.rm-admin .activity-summary { padding: 10px; }
  body.rm-admin .activity-summary strong { font-size: 20px; }
  body.rm-admin .activity-summary small { font-size: 10.5px; }
}
/* 15 Sep 00:35 - XPE activity table without Dispositivo/Acompanhamento; "Ver foto" on one line. */
body.rm-admin .xpe-activity-table { min-width: 760px; }
body.rm-admin .xpe-activity-table th:nth-child(1) { width: 150px; }
body.rm-admin .xpe-activity-table th:nth-child(2) { width: 190px; }
body.rm-admin .xpe-activity-table th:nth-child(3) { width: 120px; }
body.rm-admin .xpe-activity-table th:nth-child(4) { width: 70px; }
body.rm-admin .xpe-activity-table th:nth-child(5) { width: 110px; }
body.rm-admin .xpe-activity-table th:nth-child(6) { width: 120px; }
body.rm-admin .activity-image-button,
body.rm-admin .activity-occupancy-button { white-space: nowrap; }/* 15 Sep 00:40 - "Ver foto" never wraps: fixed content width, label kept on one line. */
body.rm-admin .activity-image-button { width: max-content; flex-wrap: nowrap; }
body.rm-admin .activity-image-button span,
body.rm-admin .activity-occupancy-button span { white-space: nowrap; }
body.rm-admin .xpe-activity-table td .status-badge { white-space: nowrap; }
/* 15 Sep 00:45 - Portaria activity: slim notice rows and horizontal stat tiles. */
body.rm-admin #xpe-activity-notice.bridge-notice,
body.rm-admin #occupancy-pilot-notice.bridge-notice {
  grid-template-columns: 32px minmax(0, 1fr) auto !important;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
}
body.rm-admin #xpe-activity-notice .bridge-icon,
body.rm-admin #occupancy-pilot-notice .bridge-icon { width: 32px; height: 32px; border-radius: 8px; font-size: 16px; }
body.rm-admin #xpe-activity-notice strong,
body.rm-admin #occupancy-pilot-notice strong { overflow: hidden; font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin #xpe-activity-notice p,
body.rm-admin #occupancy-pilot-notice p { margin-top: 1px; overflow: hidden; font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin #xpe-activity-notice > .status-badge,
body.rm-admin #occupancy-pilot-notice > .status-badge { grid-column: 3 !important; justify-self: end !important; min-height: 20px; margin: 0; padding: 0 8px; font-size: 10px; }
body.rm-admin .activity-summary-grid { margin-top: 4px; }
body.rm-admin .activity-summary {
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px !important;
}
body.rm-admin .activity-summary-icon { flex: 0 0 28px !important; width: 28px !important; height: 28px !important; min-width: 28px !important; font-size: 15px !important; }
body.rm-admin .activity-summary > div { flex-direction: column-reverse; }
body.rm-admin .activity-summary strong { font-size: 18px !important; }
body.rm-admin .activity-summary small { margin-top: 1px; font-size: 10.5px !important; white-space: nowrap; }
/* 15 Sep 00:50 - all modal footers: sticky at the edge, even padding, no safe-area gap; phone body padding 14px. */
body.rm-admin .modal-card form.modal-body > .modal-actions { bottom: 0; margin: 16px -20px -20px; padding: 12px 20px; }
@media (max-width: 620px) {
  body.rm-admin .modal-card .modal-head { padding: 12px 14px; }
  body.rm-admin .modal-card form.modal-body { padding: 14px; }
  body.rm-admin .modal-card form.modal-body > .modal-actions { margin: 14px -14px -14px; padding: 12px 14px; }
}

/* Lock settings modal in the style of the reservation modal. */
body.rm-admin .lock-modal-card .modal-head { border-bottom: 0; align-items: flex-start; }
body.rm-admin .lock-modal-card .modal-head h2 { margin: 2px 0 6px; font-size: 17px; }
body.rm-admin .lock-modal-card .modal-head .eyebrow { font-size: 10px; letter-spacing: .12em; }
body.rm-admin .lock-modal-card .modal-head .icon-button { width: 30px; min-width: 30px; height: 30px; box-shadow: none; }
body.rm-admin .lock-modal-card #lock-modal-battery { min-height: 20px; padding: 0 8px; font-size: 10px; }
body.rm-admin .lock-modal-card form.modal-body { display: grid; gap: 12px; }
body.rm-admin .lock-modal-card form.modal-body > label { margin: 0; }
body.rm-admin .lock-modal-card label > span { margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--rm-text); }
body.rm-admin .lock-modal-card input:not([type="hidden"]),
body.rm-admin .lock-modal-card select { min-height: 40px; height: 40px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
body.rm-admin .lock-modal-card label small { font-size: 11px; line-height: 1.4; }
body.rm-admin .lock-modal-card .form-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid #d6e2f0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3f7fc, #eaf1f9);
}
body.rm-admin .lock-modal-card .lock-readonly { padding: 10px 12px; }
body.rm-admin .lock-modal-card .lock-readonly + .lock-readonly { border-left: 1px solid #d6e2f0; }
body.rm-admin .lock-modal-card .lock-readonly > span { margin-bottom: 3px; color: #4d6380; font-size: 11px; font-weight: 600; }
body.rm-admin .lock-modal-card .lock-readonly strong { display: block; overflow: hidden; color: #193452; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .lock-modal-card .lock-emergency-settings {
  margin: 0;
  padding: 10px 12px;
  border-color: #e2cf9f;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbf3e1, #f6e8c9);
  flex-wrap: nowrap;
}
body.rm-admin .lock-modal-card .lock-emergency-settings strong { color: #7a5a1c; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
body.rm-admin .lock-modal-card .lock-emergency-settings .button { height: 32px; min-height: 32px; padding: 0 12px; font-size: 12px; border-color: #e2cf9f; background: #fffaf0; box-shadow: none; }
body.rm-admin .lock-modal-card #lock-building-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 10px;
  padding: 12px;
  border: 1px solid var(--rm-line);
  border-radius: 12px;
  background: #fff;
}
body.rm-admin .lock-modal-card #lock-building-settings.hidden { display: none !important; }
body.rm-admin .lock-modal-card #lock-building-settings > label { grid-column: 1 / -1; margin: 0; }
body.rm-admin .lock-modal-card #lock-building-settings > label small { display: block; margin-top: 6px; color: var(--rm-text); }
body.rm-admin .lock-modal-card #lock-building-error:empty { display: none; }
body.rm-admin .lock-modal-card #lock-building-error { grid-column: 1 / -1; margin: 0; }
body.rm-admin .lock-modal-card #lock-building-save { grid-column: 1 / -1; justify-self: start; height: 32px; min-height: 32px; padding: 0 12px; font-size: 12px; box-shadow: none; }
body.rm-admin .lock-modal-card .provider-notice { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 11px; line-height: 1.4; }
body.rm-admin .lock-modal-card .modal-actions .button { height: 36px; min-height: 36px; padding: 0 14px; font-size: 13px; box-shadow: none; }
/* Reservation modal body is 16px top/bottom on desktop: keep its footer bleed matched. */
@media (min-width: 621px) { body.rm-admin .checkin-modal-card form.modal-body > .modal-actions { margin: 14px -20px -16px; } }

/* 15 Sep 00:55 - home page without the connections card: arrivals take the full width. */
body.rm-admin .dashboard-grid { grid-template-columns: minmax(0, 1fr); }

/* 15 Sep 00:40 - XPE activity table without the Relé column (5 columns). */
body.rm-admin .xpe-activity-table { min-width: 660px; }
body.rm-admin .xpe-activity-table th:nth-child(1) { width: 150px; }
body.rm-admin .xpe-activity-table th:nth-child(2) { width: 200px; }
body.rm-admin .xpe-activity-table th:nth-child(3) { width: 120px; }
body.rm-admin .xpe-activity-table th:nth-child(4) { width: 110px; }
body.rm-admin .xpe-activity-table th:nth-child(5) { width: 120px; }
body.rm-admin .xpe-activity-table th:nth-child(6) { width: auto; }
/* 15 Sep 00:50 - Códigos on phones: one card per code instead of a wide table. */
@media (max-width: 780px) {
  body.rm-admin .code-table-shell { overflow: visible; padding: 0; background: none; box-shadow: none; border: 0; }
  body.rm-admin .code-table,
  body.rm-admin .code-table tbody { display: block; width: 100%; min-width: 0; }
  body.rm-admin .code-table thead { display: none; }
  body.rm-admin .code-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "unit status"
      "guest guest"
      "code dates"
      "start detail"
      "actions actions";
    align-items: center;
    gap: 6px 12px;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--rm-line);
    border-radius: 12px;
    background: #fff;
  }
  body.rm-admin .code-table tbody tr:hover { background: #fff; }
  body.rm-admin .code-table tbody td { display: block; width: auto !important; height: auto; min-width: 0; padding: 0 !important; border: 0; }
  body.rm-admin .code-table tbody td:nth-child(1) { grid-area: unit; }
  body.rm-admin .code-table tbody td:nth-child(1) .cell-primary { font-size: 15px; }
  body.rm-admin .code-table tbody td:nth-child(2) { grid-area: guest; }
  body.rm-admin .code-table tbody td:nth-child(2) strong { max-width: 100%; font-size: 13px; }
  body.rm-admin .code-table tbody td:nth-child(3) { grid-area: status; justify-self: end; }
  body.rm-admin .code-table tbody td:nth-child(3) .status-badge { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 22px; padding: 0 8px; font-size: 10px; }
  body.rm-admin .code-table tbody td:nth-child(4) { grid-area: code; }
  body.rm-admin .code-table tbody td:nth-child(5) { grid-area: dates; justify-self: end; text-align: right; }
  body.rm-admin .code-table tbody td:nth-child(6) { grid-area: start; }
  body.rm-admin .code-table tbody td:nth-child(7) { grid-area: detail; justify-self: end; text-align: right; }
  body.rm-admin .code-table tbody td:nth-child(8) { grid-area: actions; }
  body.rm-admin .code-table tbody td:nth-child(5)::before,
  body.rm-admin .code-table tbody td:nth-child(6)::before { display: block; margin-bottom: 1px; color: var(--rm-text); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  body.rm-admin .code-table tbody td:nth-child(5)::before { content: "Validade"; }
  body.rm-admin .code-table tbody td:nth-child(6)::before { content: "Geração"; }
  body.rm-admin .code-table tbody td:nth-child(5),
  body.rm-admin .code-table tbody td:nth-child(6) { font-size: 12px; }
  body.rm-admin .code-table tbody td:nth-child(7) { font-size: 12px; }
  body.rm-admin .code-table .code-return-note > div { min-width: 0; max-width: 100%; text-align: left; }
  body.rm-admin .code-table tbody td:nth-child(8):has(.code-row-actions:empty) { display: none; }
  body.rm-admin .code-row-actions { justify-content: stretch; margin-top: 4px; }
  body.rm-admin .code-row-actions .button { flex: 1 1 0; height: 34px; min-height: 34px; box-shadow: none; }
  body.rm-admin .code-table tbody td[colspan] { grid-column: 1 / -1; }
}
/* 15 Sep 00:55 - account edit modal in the style of the reservation modal. */
body.rm-admin .account-modal-card .modal-head { border-bottom: 0; }
body.rm-admin .account-modal-card .modal-head h2 { margin: 2px 0 0; font-size: 17px; }
body.rm-admin .account-modal-card .modal-head .eyebrow { font-size: 10px; letter-spacing: .12em; }
body.rm-admin .account-modal-card .modal-head .icon-button { width: 30px; min-width: 30px; height: 30px; box-shadow: none; }
body.rm-admin .account-modal-card form.modal-body { display: grid; gap: 12px; }
body.rm-admin .account-modal-card .account-profile-head { align-items: center; gap: 12px; padding: 10px 12px; border-color: #d6e2f0; border-radius: 12px; background: linear-gradient(135deg, #f3f7fc, #eaf1f9); }
body.rm-admin .account-modal-card .account-face-preview { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; font-size: 20px; }
body.rm-admin .account-modal-card .account-profile-head strong { font-size: 15px; }
body.rm-admin .account-modal-card .account-profile-head span { font-size: 11px; }
body.rm-admin .account-modal-card .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; margin: 0; }
body.rm-admin .account-modal-card .form-grid label { margin: 0; }
body.rm-admin .account-modal-card .form-grid label > span { margin-bottom: 5px; font-size: 12px; font-weight: 600; color: var(--rm-text); }
body.rm-admin .account-modal-card input:not([type="hidden"]) { min-height: 40px; height: 40px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
body.rm-admin .account-modal-card .account-facts { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0 !important; margin: 0; overflow: hidden; border: 1px solid #eadfc6; border-radius: 12px; background: #fffaf0; }
body.rm-admin .account-modal-card .account-facts > div { min-height: 0; padding: 9px 10px; border: 0; border-radius: 0; background: none; }
body.rm-admin .account-modal-card .account-facts > div + div { border-left: 1px solid #eadfc6; }
body.rm-admin .account-modal-card .account-facts small { margin-bottom: 2px; color: #8a6a24; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
body.rm-admin .account-modal-card .account-facts strong { color: #193452; font-size: 12px; font-weight: 650; line-height: 1.3; }
body.rm-admin .account-modal-card .account-protected-files { margin: 0; gap: 8px; }
body.rm-admin .account-modal-card .account-protected-files > div { padding: 10px 12px; border-radius: 12px; }
body.rm-admin .account-modal-card .account-edit-note { padding: 10px 12px; border-radius: 12px; font-size: 11px; line-height: 1.4; }
body.rm-admin .account-modal-card .account-edit-note p { margin: 0 0 4px; }
body.rm-admin .account-modal-card .account-edit-note p:last-child { margin: 0; }
body.rm-admin .account-modal-card .modal-actions .button { height: 36px; min-height: 36px; padding: 0 14px; font-size: 13px; box-shadow: none; }
@media (max-width: 620px) {
  body.rm-admin .account-modal-card .form-grid { grid-template-columns: 1fr !important; }
  body.rm-admin .account-modal-card .account-facts { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body.rm-admin .account-modal-card .account-facts strong { font-size: 11px; }
  body.rm-admin .account-modal-card .account-protected-files { grid-template-columns: 1fr; }
}
/* 15 Sep 08:40 - reservation search modal (top-bar search button). */
body.rm-admin .search-modal-card { width: min(520px, 100%); height: min(640px, calc(100dvh - 48px)); display: flex; flex-direction: column; overflow: hidden; }
body.rm-admin .search-modal-card .modal-head { flex: none; border-bottom: 0; padding: 16px 18px 6px; }
body.rm-admin .search-modal-card .modal-head h2 { margin: 0; font-size: 17px; }
body.rm-admin .search-modal-card .modal-head .icon-button { width: 30px; min-width: 30px; height: 30px; box-shadow: none; }
body.rm-admin .search-modal-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 18px 0; }
body.rm-admin .search-modal-field { position: relative; display: block; flex: none; margin: 0; }
body.rm-admin .search-modal-field > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #a07a2c; font-size: 18px; pointer-events: none; }
body.rm-admin .search-modal-field input { width: 100%; height: 44px; min-height: 44px; margin: 0; padding: 0 12px 0 40px; border: 1px solid #e3d6b8; border-radius: 12px; background: #fffaf0; color: #193452; font-size: 16px; box-shadow: none; }
body.rm-admin .search-modal-field input:focus { border-color: #c9a55a; background: #fff; outline: 0; box-shadow: 0 0 0 3px rgba(201, 165, 90, .22); }
body.rm-admin .search-modal-count { flex: none; margin: 10px 2px 6px; color: #8a6a24; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
body.rm-admin .search-modal-results { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -18px; padding: 0 18px 16px; display: grid; align-content: start; gap: 8px; }
body.rm-admin .search-result { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 0; margin: 0; padding: 10px 12px; border: 1px solid #e8edf3; border-radius: 12px; background: #fff; color: inherit; text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; }
body.rm-admin .search-result:hover, body.rm-admin .search-result:focus-visible { border-color: #d9c08a; background: #fffaf0; outline: 0; }
body.rm-admin .search-result-unit { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 30px; padding: 0 4px; border-radius: 9px; background: linear-gradient(135deg, #1e3a5f, #193452); color: #f3dfb0; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
body.rm-admin .search-result.is-current .search-result-unit { background: linear-gradient(135deg, #c9a55a, #a9832f); color: #fff; }
body.rm-admin .search-result-copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
body.rm-admin .search-result-copy strong { overflow: hidden; color: #193452; font-size: 14px; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .search-result-copy small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: #6b7384; font-size: 12px; line-height: 1.3; }
body.rm-admin .search-result-copy small i { color: #a07a2c; font-size: 13px; }
body.rm-admin .search-result-copy small .search-result-arrow { margin: 0 2px; color: #b8bfca; }
body.rm-admin .search-result-chevron { flex: none; color: #b8bfca; font-size: 20px; }
body.rm-admin .search-modal-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 28px 12px; color: #6b7384; font-size: 13px; }
body.rm-admin .search-modal-empty i { color: #a07a2c; font-size: 18px; }
@media (max-width: 780px) {
  body.rm-admin #search-modal { align-items: flex-start; }
  body.rm-admin .search-modal-card { height: min(560px, calc(100dvh - max(24px, calc(env(safe-area-inset-top) + 16px)) - max(24px, calc(env(safe-area-inset-bottom) + 16px)))); }
}
/* 15 Sep 08:35 - search list rows never shrink (iOS Safari squashed grid rows inside the scroller). */
body.rm-admin .search-modal-results { display: block; -webkit-overflow-scrolling: touch; }
body.rm-admin .search-modal-results > .search-result { flex-shrink: 0; height: auto; min-height: 58px; margin: 0 0 8px; }
body.rm-admin .search-result-copy { display: flex; flex-direction: column; justify-content: center; gap: 3px; }
body.rm-admin .search-result-copy strong, body.rm-admin .search-result-copy small { display: block; }
body.rm-admin .search-result-copy small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.rm-admin .search-result-copy small i { display: inline-block; vertical-align: -2px; margin-right: 3px; }
body.rm-admin .search-result-copy small .search-result-arrow { margin: 0 5px 0 3px; }
/* 15 Sep 08:45 - subtle remaining-days bar on search rows for stays in progress. */
body.rm-admin .search-result-copy .search-result-stay { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
body.rm-admin .search-result-stay-bar { position: relative; flex: 1; min-width: 0; height: 3px; overflow: hidden; border-radius: 999px; background: #efe6d2; }
body.rm-admin .search-result-stay-bar > span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #d9bd7c, #b48a36); }
body.rm-admin .search-result-stay em { flex: none; color: #8a6a24; font-size: 10.5px; font-style: normal; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
/* 15 Sep 13:00 - Reservas: whole row opens the reservation; phones get one card per stay (no sideways scroll). */
body.rm-admin .reservation-table tbody tr.reservation-row { cursor: pointer; }
body.rm-admin .reservation-table tbody tr.reservation-row:focus-visible { outline: 2px solid #c9a55a; outline-offset: -2px; }
@media (max-width: 780px) {
  body.rm-admin .reservation-table-shell { overflow: visible; padding: 0; border: 0; background: none; box-shadow: none; }
  body.rm-admin .reservation-table,
  body.rm-admin .reservation-table tbody { display: block; width: 100%; min-width: 0 !important; }
  body.rm-admin .reservation-table colgroup,
  body.rm-admin .reservation-table thead { display: none; }
  body.rm-admin .reservation-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: 60px auto auto minmax(0, 1fr) 16px;
    grid-template-areas:
      "unit guest guest guest chev"
      "unit in out out chev"
      "unit slots state form chev";
    align-items: center;
    gap: 4px 10px;
    margin: 0 0 8px;
    padding: 12px 12px 12px 12px;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #fff;
  }
  body.rm-admin .reservation-table tbody tr.current-stay { border-color: #ecdcb6; background: #fffdf7; }
  body.rm-admin .reservation-table tbody tr:hover,
  body.rm-admin .reservation-table tbody tr.current-stay:hover { background: #fffaf0; }
  body.rm-admin .reservation-table tbody tr.hidden { display: none !important; }
  body.rm-admin .reservation-table tbody tr::after { content: "\203A"; grid-area: chev; align-self: center; justify-self: end; color: #b8bfca; font-size: 22px; line-height: 1; }
  body.rm-admin .reservation-table tbody td { position: static !important; display: block; width: auto !important; height: auto !important; min-width: 0; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; text-align: left !important; }
  body.rm-admin .reservation-table tbody td:nth-child(1) { grid-area: unit; align-self: center; }
  body.rm-admin .reservation-table tbody td:nth-child(1) .cell-primary { display: flex; align-items: center; justify-content: center; width: 60px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #1e3a5f, #193452); color: #f3dfb0; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
  body.rm-admin .reservation-table tbody tr.current-stay td:nth-child(1) .cell-primary { background: linear-gradient(135deg, #c9a55a, #a9832f); color: #fff; }
  body.rm-admin .reservation-table tbody td:nth-child(2) { grid-area: guest; }
  body.rm-admin .reservation-table tbody td:nth-child(2) .cell-primary { display: block; overflow: hidden; color: #193452; font-size: 14px; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  body.rm-admin .reservation-table tbody td:nth-child(3) { grid-area: in; }
  body.rm-admin .reservation-table tbody td:nth-child(4) { grid-area: out; }
  body.rm-admin .reservation-table tbody td:is(:nth-child(3), :nth-child(4)) .reservation-date { display: inline-flex; align-items: center; gap: 4px; color: #6b7384; font-size: 12px; font-weight: 500; white-space: nowrap; }
  body.rm-admin .reservation-table tbody td:is(:nth-child(3), :nth-child(4)) .reservation-date > span { white-space: nowrap; color: #4b5566; }
  body.rm-admin .reservation-table tbody td:is(:nth-child(3), :nth-child(4)) .reservation-date i { color: #a07a2c; font-size: 13px; }
  body.rm-admin .reservation-table tbody td:nth-child(3)::after { content: "\2192"; margin-left: 6px; color: #b8bfca; font-size: 12px; }
  body.rm-admin .reservation-table tbody td:nth-child(3) { display: flex; align-items: center; }
  body.rm-admin .reservation-table tbody td:nth-child(5) { grid-area: slots; display: flex; align-items: center; gap: 4px; margin-top: 2px; color: #6b7384; font-size: 11px; }
  body.rm-admin .reservation-table tbody td:nth-child(5)::after { content: "vagas"; }
  body.rm-admin .reservation-table tbody td:nth-child(5) .reservation-slots { min-width: 0; margin: 0; font-size: 12px; font-weight: 700; color: #193452; }
  body.rm-admin .reservation-table tbody td:nth-child(6) { grid-area: state; margin-top: 2px; }
  body.rm-admin .reservation-table tbody td:nth-child(6) .reservation-state { width: 22px; height: 22px; min-width: 22px; font-size: 13px; }
  body.rm-admin .reservation-table tbody td:nth-child(7) { grid-area: form; justify-self: end; margin-top: 2px; }
  body.rm-admin .reservation-table tbody td:nth-child(7) .status-badge { min-height: 20px; margin: 0; padding: 0 8px; font-size: 9.5px; }
  body.rm-admin .reservation-table tbody td:nth-child(8) { display: none; }
  body.rm-admin .reservation-table tbody td[colspan] { grid-column: 1 / -1; }
  body.rm-admin .reservation-table tbody tr:has(td[colspan]) { display: block; cursor: default; }
  body.rm-admin .reservation-table tbody tr:has(td[colspan])::after { content: none; }
}@media (max-width: 780px) {
  body.rm-admin .reservation-table tbody td:nth-child(5) .reservation-slots { display: inline; width: auto; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; line-height: 1.2; }
  body.rm-admin .reservation-table tbody td:nth-child(3) .reservation-date { gap: 4px; }
}
/* 15 Sep 13:15 - Reservas phone cards v2: white header (gold apartment + name, line below), clearer dates, avatar under the apartment, "Check-in feito" with a check mark. */
body.rm-admin .reservation-card-avatar,
body.rm-admin .reservation-card-status { display: none; }
@media (max-width: 780px) {
  body.rm-admin .reservation-table tbody tr {
    grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-areas:
      "unit guest guest chev"
      "avatar in out out"
      "avatar slots state form";
    gap: 0 10px;
    padding: 0 0 12px;
    overflow: hidden;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    background: #fbfaf7;
    box-shadow: 0 1px 2px rgba(25, 52, 82, .05);
  }
  body.rm-admin .reservation-table tbody tr.current-stay { border-color: #e8d7ac; background: #fdfaf2; }
  body.rm-admin .reservation-table tbody tr:hover,
  body.rm-admin .reservation-table tbody tr.current-stay:hover { background: #fffaf0; }
  body.rm-admin .reservation-table tbody tr::before { content: ""; grid-column: 1 / -1; grid-row: 1; align-self: stretch; border-bottom: 1px solid #eceff4; background: #fff; }
  body.rm-admin .reservation-table tbody tr::after { grid-area: chev; grid-row: 1; padding-right: 12px; font-size: 24px; color: #b3bac6; }
  body.rm-admin .reservation-table tbody td:nth-child(1) { display: contents; }
  body.rm-admin .reservation-table tbody td:nth-child(1) .cell-primary { grid-area: unit; align-self: center; justify-self: start; width: 58px; height: 30px; margin: 11px 0 11px 12px; border-radius: 9px; background: linear-gradient(135deg, #cfae63, #a9832f) !important; color: #fff !important; font-size: 12.5px; box-shadow: 0 1px 2px rgba(169, 131, 47, .35); }
  body.rm-admin .reservation-table tbody td:nth-child(1) .reservation-card-avatar { display: block; grid-area: avatar; align-self: start; width: 46px; height: 46px; margin: 12px 0 0 18px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; background: #f1ead9; box-shadow: 0 0 0 1px #e8d7ac; }
  body.rm-admin .reservation-table tbody td:nth-child(2) { grid-area: guest; align-self: center; padding: 11px 0 !important; }
  body.rm-admin .reservation-table tbody td:nth-child(2) .cell-primary { font-size: 15px; font-weight: 700; color: #16304d; }
  body.rm-admin .reservation-table tbody td:is(:nth-child(3), :nth-child(4)) { display: grid; align-content: start; gap: 2px; padding-top: 12px !important; }
  body.rm-admin .reservation-table tbody td:nth-child(3)::after { content: none; }
  body.rm-admin .reservation-table tbody td:nth-child(3)::before,
  body.rm-admin .reservation-table tbody td:nth-child(4)::before { color: #8a6a24; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  body.rm-admin .reservation-table tbody td:nth-child(3)::before { content: "Check-in"; }
  body.rm-admin .reservation-table tbody td:nth-child(4)::before { content: "Checkout"; }
  body.rm-admin .reservation-table tbody td:is(:nth-child(3), :nth-child(4)) .reservation-date { gap: 5px; }
  body.rm-admin .reservation-table tbody td:is(:nth-child(3), :nth-child(4)) .reservation-date > span { color: #16304d; font-size: 15px; font-weight: 700; }
  body.rm-admin .reservation-table tbody td:is(:nth-child(3), :nth-child(4)) .reservation-date i { font-size: 15px; }
  body.rm-admin .reservation-table tbody td:nth-child(5),
  body.rm-admin .reservation-table tbody td:nth-child(6),
  body.rm-admin .reservation-table tbody td:nth-child(7) { align-self: center; margin-top: 10px; }
  body.rm-admin .reservation-table tbody td:nth-child(7) { padding-right: 12px !important; }
  body.rm-admin .reservation-table tbody td:nth-child(7) .status-badge { display: none; }
  body.rm-admin .reservation-table tbody td:nth-child(7) .reservation-card-status { display: inline-flex; align-items: center; gap: 4px; color: #7b8494; font-size: 12px; font-weight: 600; white-space: nowrap; }
  body.rm-admin .reservation-table tbody td:nth-child(7) .reservation-card-status i { font-size: 14px; }
  body.rm-admin .reservation-table tbody td:nth-child(7) .reservation-card-status.is-done { color: #2e7d4f; }
  body.rm-admin .reservation-table tbody td:nth-child(7) .reservation-card-status.is-done i { font-size: 16px; font-weight: 700; }
  body.rm-admin .reservation-table tbody tr:has(td[colspan])::before { content: none; }
  body.rm-admin .reservation-table tbody tr:has(td[colspan]) { padding: 12px; background: #fff; }
}@media (max-width: 780px) {
  body.rm-admin .reservation-table tbody tr {
    grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1fr) 24px;
    grid-template-areas:
      "unit guest guest chev"
      "avatar in out out"
      "avatar slots form form";
    column-gap: 8px;
  }
  body.rm-admin .reservation-table tbody tr::after { padding-right: 10px; }
  body.rm-admin .reservation-table tbody td:nth-child(6) { grid-area: slots; justify-self: end; }
  body.rm-admin .reservation-table tbody td:nth-child(7) { justify-self: end; }
  body.rm-admin .reservation-table tbody td:is(:nth-child(3), :nth-child(4)) .reservation-date > span { font-size: 14px; }
  body.rm-admin .reservation-table tbody td:is(:nth-child(3), :nth-child(4)) .reservation-date i { font-size: 14px; }
}
/* 15 Sep 13:20 - Reservas phone cards v3 (modern): floating white card, gold apartment, modal-style date box with centred arrow, days-left bar for stays in progress, no code status. */
body.rm-admin .reservation-card-stay { display: none; }
@media (max-width: 780px) {
  body.rm-admin .reservation-table tbody tr {
    grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr) 44px;
    grid-template-areas:
      "unit guest guest chev"
      "avatar in out out"
      "avatar bar bar bar"
      "avatar slots form form";
    column-gap: 0;
    margin: 0 0 12px;
    padding: 0 0 14px;
    border: 1px solid rgba(22, 48, 77, .07);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 20px -10px rgba(16, 24, 40, .14);
  }
  body.rm-admin .reservation-table tbody tr.current-stay { border-color: rgba(201, 165, 90, .38); background: #fff; }
  body.rm-admin .reservation-table tbody tr:hover,
  body.rm-admin .reservation-table tbody tr.current-stay:hover { background: #fff; }
  body.rm-admin .reservation-table tbody tr:active { transform: scale(.992); }
  body.rm-admin .reservation-table tbody tr::before { border-bottom: 1px solid #f0f2f6; background: #fff; }
  body.rm-admin .reservation-table tbody tr::after { content: "\203A"; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 12px; padding: 0 0 2px; border-radius: 50%; background: #f4f6f9; color: #8c95a4; font-size: 20px; line-height: 1; }
  body.rm-admin .reservation-table tbody td:nth-child(1) .cell-primary { width: 58px; height: 32px; margin: 12px 0 12px 12px; border-radius: 10px; background: linear-gradient(140deg, #d8b86e 0%, #b38b37 100%) !important; font-size: 12.5px; letter-spacing: .03em; box-shadow: 0 4px 10px -4px rgba(169, 131, 47, .6); }
  body.rm-admin .reservation-table tbody td:nth-child(1) .reservation-card-avatar { width: 48px; height: 48px; margin: 14px 0 0 17px; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #e2cd98, 0 4px 10px -4px rgba(16, 24, 40, .25); }
  body.rm-admin .reservation-table tbody td:nth-child(2) { padding: 12px 8px 12px 2px !important; }
  body.rm-admin .reservation-table tbody td:nth-child(2) .cell-primary { font-size: 16px; font-weight: 700; letter-spacing: -.005em; color: #10243e; }
  /* date box */
  body.rm-admin .reservation-table tbody td:is(:nth-child(3), :nth-child(4)) { position: relative !important; display: grid; justify-items: center; align-content: center; gap: 3px; margin-top: 14px; padding: 9px 8px !important; border: 1px solid #efe5cb !important; background: #fcf9f1 !important; }
  body.rm-admin .reservation-table tbody td:nth-child(3) { z-index: 2; border-right: 0 !important; border-radius: 12px 0 0 12px; }
  body.rm-admin .reservation-table tbody td:nth-child(4) { z-index: 1; margin-right: 12px; border-radius: 0 12px 12px 0; }
  body.rm-admin .reservation-table tbody td:nth-child(4)::after { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; border-left: 1px solid #efe5cb; }
  body.rm-admin .reservation-table tbody td:nth-child(3)::after { content: "\2192"; position: absolute; top: 50%; right: -11px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: -11px 0 0; border-radius: 50%; background: linear-gradient(140deg, #d8b86e, #b38b37); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 0 0 3px #fcf9f1; z-index: 3; }
  body.rm-admin .reservation-table tbody td:is(:nth-child(3), :nth-child(4))::before { color: #a07a2c; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
  body.rm-admin .reservation-table tbody td:is(:nth-child(3), :nth-child(4)) .reservation-date i { display: none; }
  body.rm-admin .reservation-table tbody td:is(:nth-child(3), :nth-child(4)) .reservation-date > span { color: #10243e; font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
  /* code status hidden on cards (owner) */
  body.rm-admin .reservation-table tbody td:nth-child(6) { display: none !important; }
  /* days-left bar */
  body.rm-admin .reservation-table tbody td:nth-child(8) { display: none; }
  body.rm-admin .reservation-table tbody td:nth-child(8):has(.reservation-card-stay) { display: block; grid-area: bar; margin: 10px 12px 0 0; }
  body.rm-admin .reservation-table tbody td:nth-child(8) .button { display: none !important; }
  body.rm-admin .reservation-table tbody td:nth-child(8) .reservation-card-stay { display: flex; align-items: center; gap: 10px; }
  body.rm-admin .reservation-card-stay-bar { position: relative; flex: 1; min-width: 0; height: 5px; overflow: hidden; border-radius: 999px; background: #f2ebdb; }
  body.rm-admin .reservation-card-stay-bar > span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #e2c889, #b38b37); }
  body.rm-admin .reservation-card-stay em { flex: none; color: #9a7428; font-size: 11px; font-style: normal; font-weight: 650; white-space: nowrap; }
  /* footer line */
  body.rm-admin .reservation-table tbody td:nth-child(5) { grid-area: slots; margin-top: 12px; color: #7b8494; font-size: 12px; }
  body.rm-admin .reservation-table tbody td:nth-child(5) .reservation-slots { color: #10243e; font-size: 13px; }
  body.rm-admin .reservation-table tbody td:nth-child(7) { margin-top: 12px; padding-right: 14px !important; }
  body.rm-admin .reservation-table tbody td:nth-child(7) .reservation-card-status { font-size: 12.5px; }
  body.rm-admin .reservation-table tbody td:nth-child(7) .reservation-card-status.is-done { color: #23875a; }
}@media (max-width: 780px) {
  body.rm-admin .reservation-table tbody tr:not(:has(.reservation-card-avatar)) {
    grid-template-areas:
      "unit guest guest chev"
      "in in out out"
      "bar bar bar bar"
      "slots slots form form";
  }
  body.rm-admin .reservation-table tbody tr:not(:has(.reservation-card-avatar)) td:nth-child(3) { margin-left: 12px; }
  body.rm-admin .reservation-table tbody tr:not(:has(.reservation-card-avatar)) td:nth-child(8):has(.reservation-card-stay) { margin-left: 12px; }
  body.rm-admin .reservation-table tbody tr:not(:has(.reservation-card-avatar)) td:nth-child(5) { padding-left: 14px !important; }
}/* 15 Sep 13:25 - v3: symmetric date halves (arrow exactly on the divider); chevron positioned in the header. */
@media (max-width: 780px) {
  body.rm-admin .reservation-table tbody tr {
    position: relative;
    grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "unit guest guest"
      "avatar in out"
      "avatar bar bar"
      "avatar slots form";
    padding: 0 12px 14px 0;
  }
  body.rm-admin .reservation-table tbody tr::before { margin-right: -12px; }
  body.rm-admin .reservation-table tbody tr::after { position: absolute; top: 14px; right: 12px; margin: 0; }
  body.rm-admin .reservation-table tbody td:nth-child(2) { padding-right: 44px !important; }
  body.rm-admin .reservation-table tbody td:nth-child(4) { margin-right: 0; }
  body.rm-admin .reservation-table tbody td:nth-child(8):has(.reservation-card-stay) { margin-right: 0; }
  body.rm-admin .reservation-table tbody td:nth-child(7) { padding-right: 2px !important; }
  body.rm-admin .reservation-table tbody tr:not(:has(.reservation-card-avatar)) {
    grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr) 70px;
    grid-template-areas:
      "unit guest guest guest"
      "in in out out"
      "bar bar bar bar"
      "slots slots form form";
    padding: 0 12px 14px;
  }
  body.rm-admin .reservation-table tbody tr:not(:has(.reservation-card-avatar))::before { margin: 0 -12px; }
  body.rm-admin .reservation-table tbody tr:not(:has(.reservation-card-avatar)) td:nth-child(1) .cell-primary { margin-left: 0; }
  body.rm-admin .reservation-table tbody tr:not(:has(.reservation-card-avatar)) td:nth-child(3),
  body.rm-admin .reservation-table tbody tr:not(:has(.reservation-card-avatar)) td:nth-child(8):has(.reservation-card-stay) { margin-left: 0; }
  body.rm-admin .reservation-table tbody tr:not(:has(.reservation-card-avatar)) td:nth-child(5) { padding-left: 2px !important; }
}/* 15 Sep 13:28 - apartment badge: gold for stays in progress, navy for future stays (as in search). */
@media (max-width: 780px) {
  body.rm-admin .reservation-table tbody tr:not(.current-stay) td:nth-child(1) .cell-primary { background: linear-gradient(140deg, #24466f 0%, #16304d 100%) !important; color: #f3dfb0 !important; box-shadow: 0 4px 10px -4px rgba(22, 48, 77, .55); }
}
/* 15 Sep 13:40 - Reservas month separators (check-in order): "Hospedados agora", then one break per check-in month. */
body.rm-admin .reservation-table tbody tr.reservation-month-row td { position: static; height: auto; padding: 16px 16px 6px !important; border-top: 0; background: #f7f5ef !important; box-shadow: none !important; }
body.rm-admin .reservation-table tbody tr.reservation-month-row:hover td { background: #f7f5ef !important; }
body.rm-admin .reservation-table tbody tr.reservation-month-row td { font-size: 0; }
body.rm-admin .reservation-month-label { color: #16304d; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
body.rm-admin .reservation-month-row.is-current .reservation-month-label { color: #9a7428; }
body.rm-admin .reservation-month-row small { margin-left: 10px; color: #8a93a3; font-size: 11px; font-weight: 600; }
@media (max-width: 780px) {
  body.rm-admin .reservation-table tbody tr.reservation-month-row { display: flex !important; align-items: baseline; gap: 10px; margin: 18px 2px 10px; padding: 0 !important; border: 0; border-radius: 0; background: none !important; box-shadow: none; cursor: default; }
  body.rm-admin .reservation-table tbody tr.reservation-month-row:first-child { margin-top: 2px; }
  body.rm-admin .reservation-table tbody tr.reservation-month-row.hidden { display: none !important; }
  body.rm-admin .reservation-table tbody tr.reservation-month-row::before { content: none !important; }
  body.rm-admin .reservation-table tbody tr.reservation-month-row::after { content: "" !important; position: static !important; flex: 1; width: auto; height: 1px; margin: 0 0 0 2px; padding: 0; border-radius: 0; background: linear-gradient(90deg, #e2d5b3, rgba(226, 213, 179, 0)); align-self: center; }
  body.rm-admin .reservation-table tbody tr.reservation-month-row:active { transform: none; }
  body.rm-admin .reservation-table tbody tr.reservation-month-row td { display: flex !important; align-items: baseline; gap: 8px; padding: 0 !important; background: none !important; }
  body.rm-admin .reservation-month-label { font-size: 13px; }
  body.rm-admin .reservation-month-row small { margin-left: 0; }
}
/* 15 Sep 13:50 - tiny guest history under the card avatar (visits, since). */
body.rm-admin .reservation-card-history { display: none; }
@media (max-width: 780px) {
  body.rm-admin .reservation-table tbody td:nth-child(1) .reservation-card-history { display: flex; flex-direction: column; align-items: center; grid-area: avatar; align-self: start; justify-self: start; width: 80px; margin-top: 70px; gap: 1px; text-align: center; line-height: 1.2; }
  body.rm-admin .reservation-card-history b { color: #9a7428; font-size: 10.5px; font-weight: 700; letter-spacing: .01em; }
  body.rm-admin .reservation-card-history small { color: #9aa2b1; font-size: 9.5px; font-weight: 500; }
  body.rm-admin .reservation-card-history small:empty { display: none; }
}
/* 15 Sep 13:55 - card status: text first, icon after; icons share one fixed-width slot so they line up on the right edge. */
@media (max-width: 780px) {
  body.rm-admin .reservation-table tbody td:nth-child(7) .reservation-card-status { flex-direction: row-reverse; gap: 6px; line-height: 1; }
  body.rm-admin .reservation-table tbody td:nth-child(7) .reservation-card-status i,
  body.rm-admin .reservation-table tbody td:nth-child(7) .reservation-card-status.is-done i { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; font-size: 15px; }
}
/* 15 Sep 14:05 - floating back-to-top button. */
body.rm-admin .scroll-top-button { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 40; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0; padding: 0; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: linear-gradient(140deg, #24466f 0%, #16304d 100%); color: #f3dfb0; font-size: 22px; box-shadow: 0 10px 24px -8px rgba(16, 36, 62, .55), 0 2px 6px rgba(16, 36, 62, .18); cursor: pointer; animation: rm-scroll-top-in .18s ease-out; -webkit-tap-highlight-color: transparent; }
body.rm-admin .scroll-top-button:hover { background: linear-gradient(140deg, #2b5283 0%, #1a3a5d 100%); }
body.rm-admin .scroll-top-button:active { transform: scale(.94); }
body.rm-admin .scroll-top-button:focus-visible { outline: 2px solid #c9a55a; outline-offset: 3px; }
body.rm-admin .scroll-top-button[hidden] { display: none !important; }
body.rm-admin:has(.modal:not(.hidden)) .scroll-top-button { display: none; }
@keyframes rm-scroll-top-in { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.rm-admin .scroll-top-button { animation: none; } }
/* 15 Sep 14:10 - reservation modal: Área do hóspede card sits above Acesso ao apartamento. */
body.rm-admin .checkin-modal-card .checkin-link-panel.checkin-feature-card { margin: 0 0 18px; }
/* 15 Sep 16:00 - Contas: whole row opens the account; phones get one card per account (like Reservas). */
body.rm-admin .account-table tbody tr.account-row { cursor: pointer; }
body.rm-admin .account-table tbody tr.account-row:focus-visible { outline: 2px solid #c9a55a; outline-offset: -2px; }
@media (max-width: 780px) {
  body.rm-admin .account-table-shell { overflow: visible; padding: 0; border: 0; background: none; box-shadow: none; }
  body.rm-admin .account-table,
  body.rm-admin .account-table tbody { display: block; width: 100%; min-width: 0 !important; }
  body.rm-admin .account-table thead { display: none; }
  body.rm-admin .account-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "id id"
      "email email"
      "phone phone"
      "login bookings"
      "media media";
    gap: 0 12px;
    margin: 0 0 12px;
    padding: 0 14px 14px;
    overflow: hidden;
    border: 1px solid rgba(22, 48, 77, .07);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 20px -10px rgba(16, 24, 40, .14);
  }
  body.rm-admin .account-table tbody tr:hover { background: #fff; }
  body.rm-admin .account-table tbody tr:active { transform: scale(.992); }
  body.rm-admin .account-table tbody tr.hidden { display: none !important; }
  body.rm-admin .account-table tbody tr::before { content: ""; grid-column: 1 / -1; grid-row: 1; margin: 0 -14px; border-bottom: 1px solid #f0f2f6; background: #fff; }
  body.rm-admin .account-table tbody tr::after { content: "\203A"; position: absolute; top: 16px; right: 12px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding-bottom: 2px; border-radius: 50%; background: #f4f6f9; color: #8c95a4; font-size: 20px; line-height: 1; }
  body.rm-admin .account-table tbody td { display: block; width: auto !important; height: auto !important; min-width: 0; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; font-size: 13px; }
  body.rm-admin .account-table tbody td:nth-child(1) { grid-area: id; z-index: 1; padding: 12px 44px 12px 0 !important; }
  body.rm-admin .account-table .account-identity { min-width: 0; gap: 12px; }
  body.rm-admin .account-table .account-initials { width: 42px; height: 42px; background: linear-gradient(140deg, #d8b86e, #b38b37); color: #fff; font-size: 13px; letter-spacing: .02em; box-shadow: 0 4px 10px -4px rgba(169, 131, 47, .6); }
  body.rm-admin .account-table .account-identity strong { color: #10243e; font-size: 16px; font-weight: 700; }
  body.rm-admin .account-table .account-identity small { margin-top: 3px; }
  body.rm-admin .account-table .account-identity .status-badge { min-height: 0; margin: 0; padding: 0; border: 0; background: none; color: #23875a; font-size: 11.5px; font-weight: 650; letter-spacing: 0; text-transform: none; }
  body.rm-admin .account-table .account-identity .status-badge.neutral { color: #8a93a3; }
  body.rm-admin .account-table tbody td:nth-child(2),
  body.rm-admin .account-table tbody td:nth-child(3) { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
  body.rm-admin .account-table tbody td:nth-child(2) { grid-area: email; }
  body.rm-admin .account-table tbody td:nth-child(3) { grid-area: phone; margin-top: 6px; }
  body.rm-admin .account-table tbody td:nth-child(2)::before,
  body.rm-admin .account-table tbody td:nth-child(3)::before,
  body.rm-admin .account-table tbody td:nth-child(4)::before,
  body.rm-admin .account-table tbody td:nth-child(5)::before { flex: none; color: #a07a2c; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  body.rm-admin .account-table tbody td:nth-child(2)::before { content: "E-mail"; width: 66px; }
  body.rm-admin .account-table tbody td:nth-child(3)::before { content: "WhatsApp"; width: 66px; }
  body.rm-admin .account-table .account-contact { max-width: none; min-width: 0; color: #10243e; font-size: 13.5px; }
  body.rm-admin .account-table tbody td:nth-child(4),
  body.rm-admin .account-table tbody td:nth-child(5) { margin-top: 12px; padding: 9px 10px !important; border: 1px solid #efe5cb !important; background: #fcf9f1 !important; }
  body.rm-admin .account-table tbody td:nth-child(4) { grid-area: login; border-radius: 12px; }
  body.rm-admin .account-table tbody td:nth-child(5) { grid-area: bookings; border-radius: 12px; }
  body.rm-admin .account-table tbody td:nth-child(4)::before { content: "Último login"; display: block; margin-bottom: 3px; }
  body.rm-admin .account-table tbody td:nth-child(5)::before { content: "Reservas"; display: block; margin-bottom: 3px; }
  body.rm-admin .account-table .account-login-cell strong { color: #10243e; font-size: 13px; font-weight: 700; }
  body.rm-admin .account-table .account-login-cell small { margin-top: 3px; font-size: 11px; }
  body.rm-admin .account-table .account-booking-total { color: #10243e; font-size: 16px; font-weight: 750; }
  body.rm-admin .account-table .account-last-stay { display: block; margin-top: 2px; color: #7b8494; font-size: 11px; }
  body.rm-admin .account-table tbody td:nth-child(6) { grid-area: media; margin-top: 10px; }
  body.rm-admin .account-table .account-media-state { padding: 0; background: none !important; font-size: 12px; font-weight: 650; }
  body.rm-admin .account-table tbody td:nth-child(7) { display: none; }
  body.rm-admin .account-table tbody td[colspan] { grid-column: 1 / -1; }
  body.rm-admin .account-table tbody tr:has(td[colspan]) { display: block; padding: 12px; cursor: default; }
  body.rm-admin .account-table tbody tr:has(td[colspan])::before,
  body.rm-admin .account-table tbody tr:has(td[colspan])::after { content: none; }
}@media (max-width: 780px) {
  body.rm-admin .account-table tbody td.account-identity { display: flex !important; align-items: center; }
  body.rm-admin .account-table tbody td.account-identity > div { flex: 1; min-width: 0; }
}
/* 15 Sep 16:10 - Contas cards: calmer typography (icons instead of spaced labels, quiet tile captions, no overflow). */
body.rm-admin .account-card-icon { display: none; }
@media (max-width: 780px) {
  body.rm-admin .account-table tbody td:nth-child(2)::before,
  body.rm-admin .account-table tbody td:nth-child(3)::before { content: none !important; }
  body.rm-admin .account-table tbody td:nth-child(2),
  body.rm-admin .account-table tbody td:nth-child(3) { display: block; margin-top: 12px; }
  body.rm-admin .account-table tbody td:nth-child(3) { margin-top: 7px; }
  body.rm-admin .account-table .account-contact { display: flex; align-items: center; gap: 10px; overflow: hidden; color: #334155; font-size: 14px; font-weight: 500; letter-spacing: 0; }
  body.rm-admin .account-table .account-contact > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.rm-admin .account-table .account-card-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: #f6f1e4; color: #a07a2c; font-size: 15px; }
  body.rm-admin .account-table tbody td:nth-child(3) .account-card-icon { background: #e9f6ee; color: #23875a; }
  body.rm-admin .account-table tbody td:nth-child(4),
  body.rm-admin .account-table tbody td:nth-child(5) { margin-top: 14px; padding: 10px 12px !important; border-color: #f0ebdd !important; background: #fbf9f4 !important; overflow: hidden; }
  body.rm-admin .account-table tbody td:nth-child(4)::before,
  body.rm-admin .account-table tbody td:nth-child(5)::before { margin-bottom: 4px; color: #8b93a1; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
  body.rm-admin .account-table .account-login-cell strong { color: #16304d; font-size: 14px; font-weight: 650; }
  body.rm-admin .account-table .account-login-cell small { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.rm-admin .account-table .account-booking-total { color: #16304d; font-size: 14px; font-weight: 650; line-height: 1.35; }
  body.rm-admin .account-table .account-last-stay { margin-top: 4px; color: #8b93a1; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.rm-admin .account-table tbody td:nth-child(6) { margin-top: 12px; }
  body.rm-admin .account-table .account-media-state { gap: 6px; font-size: 12.5px; font-weight: 500; }
  body.rm-admin .account-table .account-identity strong { font-size: 16px; font-weight: 650; letter-spacing: -.005em; }
  body.rm-admin .account-table .account-identity .status-badge { font-size: 12px; font-weight: 500; }
}
/* 15 Sep 16:20 - account origin label and account modal WhatsApp button (same look as the reservation modal). */
body.rm-admin .account-origin { display: inline; margin-left: 6px; color: #8b93a1; font-size: 11px; font-weight: 500; }
body.rm-admin .account-origin::before { content: "·"; margin-right: 6px; color: #c2c8d2; }
body.rm-admin .account-origin.checkin_link { color: #9a7428; }
body.rm-admin .account-modal-card .modal-actions .account-whatsapp-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; min-width: 36px; flex: 0 0 36px; margin-right: auto; padding: 0; color: #fff; border-color: #25a35a; background: #25a35a; text-decoration: none; }
body.rm-admin .account-modal-card .modal-actions .account-whatsapp-button:hover { color: #fff; background: #1f8f4e; border-color: #1f8f4e; }
body.rm-admin .account-modal-card .modal-actions .account-whatsapp-button i { display: inline-block; margin: 0; font-size: 19px; line-height: 1; }
body.rm-admin .account-modal-card .modal-actions .account-whatsapp-button.hidden { display: none !important; }
body.rm-admin .account-modal-card .account-reset-status { margin: 0; padding: 9px 12px; border: 1px solid #bddfce; border-radius: 10px; color: #246448; background: #e9f7ef; font-size: 12px; font-weight: 700; }
body.rm-admin .account-modal-card .account-reset-status.is-error { border-color: #efc6ca; color: #9e2f35; background: #fdebed; }
body.rm-admin .account-modal-card .account-reset-button { margin-right: auto; }
body.rm-admin .account-modal-card .modal-actions:has(.account-whatsapp-button:not(.hidden)) .account-reset-button { margin-right: 0; }
@media (max-width: 640px) {
  body.rm-admin .account-modal-card .modal-actions { flex-wrap: wrap; }
  body.rm-admin .account-modal-card .account-reset-button { order: 2; width: calc(100% - 44px); }
  body.rm-admin .account-modal-card .modal-actions [data-close-modal] { order: 3; margin-left: auto; }
  body.rm-admin .account-modal-card .modal-actions button[type="submit"] { order: 4; }
}
@media (max-width: 780px) {
  body.rm-admin .account-table .account-identity small { display: flex; align-items: baseline; flex-wrap: wrap; }
}
/* 15 Sep 16:30 - stacked viewer for protected documents/photos (above any open modal). */
body.rm-admin .media-viewer-modal { z-index: 130; }
body.rm-admin .media-viewer-card { width: min(720px, 100%); }
body.rm-admin .media-viewer-card .modal-head { border-bottom: 0; }
body.rm-admin .media-viewer-card .modal-head h2 { margin: 2px 0 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .media-viewer-card .modal-head .eyebrow { font-size: 10px; letter-spacing: .12em; }
body.rm-admin .media-viewer-card .modal-head .icon-button { width: 30px; min-width: 30px; height: 30px; box-shadow: none; }
body.rm-admin .media-viewer-body { display: grid; gap: 12px; padding-top: 4px; }
body.rm-admin .media-viewer-status { margin: 0; padding: 28px 12px; border-radius: 12px; background: #f6f7f9; color: #6b7384; font-size: 13px; text-align: center; }
body.rm-admin .media-viewer-image { display: block; width: 100%; max-height: min(70dvh, 760px); object-fit: contain; border-radius: 12px; background: #0f1b2b; }
body.rm-admin .media-viewer-video { display: block; width: 100%; max-height: min(70dvh, 760px); border-radius: 12px; background: #0f1b2b; }
body.rm-admin .media-viewer-audio { display: block; width: 100%; min-height: 48px; }
body.rm-admin .media-viewer-image[hidden],
body.rm-admin .media-viewer-video[hidden],
body.rm-admin .media-viewer-audio[hidden],
body.rm-admin .media-viewer-status[hidden],
body.rm-admin #media-viewer-download[hidden] { display: none !important; }
body.rm-admin .media-viewer-actions { display: flex; justify-content: flex-end; gap: 8px; }
body.rm-admin .media-viewer-actions .button { height: 36px; min-height: 36px; padding: 0 14px; font-size: 13px; box-shadow: none; text-decoration: none; }
/* 15 Sep 16:50 - Guesty conversation modal (read + send) and its button next to WhatsApp. */
body.rm-admin .checkin-modal-card .modal-actions .checkin-whatsapp-button { margin-right: 0; }
body.rm-admin .checkin-modal-card .modal-actions .checkin-chat-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; flex: 0 0 32px; margin-right: auto; padding: 0; color: #f3dfb0; border-color: #1e3a5f; background: linear-gradient(140deg, #24466f, #16304d); box-shadow: none; }
body.rm-admin .checkin-modal-card .modal-actions .checkin-chat-button:hover { color: #fff; }
body.rm-admin .checkin-modal-card .modal-actions .checkin-chat-button i { margin: 0; font-size: 17px; line-height: 1; }
body.rm-admin .guesty-chat-modal { z-index: 125; }
body.rm-admin .guesty-chat-card { display: flex; flex-direction: column; width: min(560px, 100%); height: min(760px, calc(100dvh - 48px)); overflow: hidden; }
body.rm-admin .guesty-chat-card .modal-head { flex: none; border-bottom: 1px solid #eef0f4; padding: 14px 16px; }
body.rm-admin .guesty-chat-card .modal-head h2 { margin: 2px 0 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .guesty-chat-card .modal-head .eyebrow { font-size: 10px; letter-spacing: .12em; }
body.rm-admin .guesty-chat-card .modal-head .icon-button { width: 30px; min-width: 30px; height: 30px; box-shadow: none; }
body.rm-admin .guesty-chat-status { flex: none; margin: 0; padding: 6px 16px; border-bottom: 1px solid #f1f2f5; background: #fff; color: #8b93a1; font-size: 11.5px; }
body.rm-admin .guesty-chat-status.is-error { color: #a4462b; }
body.rm-admin .guesty-chat-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 12px 16px; background: #f6f3ec; }
body.rm-admin .guesty-chat-empty { padding: 40px 12px; color: #8b93a1; font-size: 13px; text-align: center; }
body.rm-admin .guesty-chat-day { display: flex; justify-content: center; margin: 10px 0 8px; }
/* CHAT-day-sticky (owner 28 Oct 2026): the current day pill stays pinned at the top of the message list until the next one covers it. */
body.rm-admin .guesty-chat-list > .guesty-chat-day:not(.is-system) { position: sticky; top: 0; z-index: 3; pointer-events: none; }
body.rm-admin .guesty-chat-list > .guesty-chat-day:not(.is-system) span { pointer-events: auto; display: inline-block; min-width: 13em; text-align: center; background: #fff; } /* equal width + opaque: the newest pill fully covers the older stuck ones */
body.rm-admin .guesty-chat-day span { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #7b8494; font-size: 11px; font-weight: 600; box-shadow: 0 1px 1px rgba(16, 24, 40, .05); }
body.rm-admin .guesty-chat-message { display: flex; margin: 0 0 6px; }
body.rm-admin .guesty-chat-message.is-host { justify-content: flex-end; }
body.rm-admin .guesty-chat-bubble { max-width: 82%; padding: 7px 10px 6px; border-radius: 14px; background: #fff; color: #1f2937; box-shadow: 0 1px 1px rgba(16, 24, 40, .06); }
body.rm-admin .guesty-chat-message.is-guest .guesty-chat-bubble { border-top-left-radius: 4px; }
body.rm-admin .guesty-chat-message.is-host .guesty-chat-bubble { border-top-right-radius: 4px; background: #fbeecf; }
body.rm-admin .guesty-chat-message.is-auto .guesty-chat-bubble { background: #f1ece0; color: #4b5563; }
body.rm-admin .guesty-chat-author { display: block; margin-bottom: 2px; color: #a07a2c; font-size: 11px; font-weight: 700; }
body.rm-admin .guesty-chat-message.is-guest .guesty-chat-author { color: #24466f; }
body.rm-admin .guesty-chat-bubble p { margin: 0; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
body.rm-admin .guesty-chat-bubble small { display: block; margin-top: 3px; color: #8b93a1; font-size: 10.5px; text-align: right; }
body.rm-admin .guesty-chat-message.is-pending .guesty-chat-bubble { opacity: .85; }
body.rm-admin .guesty-chat-message.is-failed .guesty-chat-bubble { background: #fde8e3; }
body.rm-admin .guesty-chat-message.is-failed small,
body.rm-admin .guesty-chat-message.is-uncertain small { color: #a4462b; font-weight: 600; }
body.rm-admin .guesty-chat-composer { flex: none; display: grid; gap: 8px; margin: 0; padding: 10px 12px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid #eef0f4; background: #fff; }
body.rm-admin .guesty-chat-channels { display: flex; gap: 6px; overflow-x: auto; }
body.rm-admin .guesty-chat-channel { flex: none; min-height: 28px; height: 28px; margin: 0; padding: 0 12px; border: 1px solid #e3e6ec; border-radius: 999px; background: #fff; color: #4b5563; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer; }
body.rm-admin .guesty-chat-channel.is-active { border-color: #16304d; background: #16304d; color: #f3dfb0; }
body.rm-admin .guesty-chat-input-row { display: flex; align-items: flex-end; gap: 8px; }
body.rm-admin .guesty-chat-input-row textarea { flex: 1; min-height: 42px; max-height: 140px; margin: 0; padding: 10px 12px; border: 1px solid #e3e6ec; border-radius: 14px; background: #f9fafb; color: #111827; font-family: inherit; font-size: 16px; line-height: 1.35; resize: none; box-shadow: none; }
body.rm-admin .guesty-chat-input-row textarea:focus { border-color: #c9a55a; background: #fff; outline: 0; box-shadow: 0 0 0 3px rgba(201, 165, 90, .2); }
body.rm-admin .guesty-chat-send { display: inline-flex; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; box-shadow: none; }
body.rm-admin .guesty-chat-send i { margin: 0; font-size: 18px; }
@media (max-width: 780px) {
  body.rm-admin #guesty-chat-modal { padding: 0; align-items: stretch; }
  body.rm-admin .guesty-chat-card { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  body.rm-admin .guesty-chat-card .modal-head { padding-top: max(14px, env(safe-area-inset-top)); }
}
/* 15 Sep 18:15 - search modal full screen on phones (was capped at 560px). */
@media (max-width: 780px) {
  body.rm-admin #search-modal { padding: 0; align-items: stretch; }
  body.rm-admin #search-modal .search-modal-card { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  body.rm-admin #search-modal .search-modal-card .modal-head { padding-top: max(16px, env(safe-area-inset-top)); }
  body.rm-admin #search-modal .search-modal-results { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
/* 15 Sep 18:20 - chat button icon was hidden by the footer rule that hides button icons. */
body.rm-admin .checkin-modal-card .modal-actions .checkin-chat-button i { display: inline-block; margin: 0; color: #f3dfb0; font-size: 18px; line-height: 1; }
body.rm-admin .checkin-modal-card .modal-actions .checkin-chat-button:hover i { color: #fff; }
/* 15 Sep 18:25 - chat header: one compact messaging-app bar (avatar, name, unit/status line). */
body.rm-admin .guesty-chat-card .modal-head.guesty-chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-bottom: 1px solid #eef0f4; background: #fff; }
body.rm-admin .guesty-chat-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(140deg, #d8b86e, #b38b37); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
body.rm-admin .guesty-chat-head-copy { flex: 1; min-width: 0; }
body.rm-admin .guesty-chat-head-actions { display: flex; flex: none; align-items: center; gap: 6px; }
body.rm-admin .guesty-chat-head-actions .icon-button { flex: 0 0 34px; width: 34px; min-width: 34px; height: 34px; margin: 0; box-shadow: none; }
body.rm-admin .guesty-chat-header-action[hidden] { display: none; }
body.rm-admin .guesty-chat-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
body.rm-admin .guesty-chat-card .modal-head.guesty-chat-head h2 { flex: 0 1 auto; min-width: 0; margin: 0; color: #10243e; font-size: 16px; font-weight: 650; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .guesty-chat-face-status { display: inline-flex; flex: 0 0 34px; align-items: center; justify-content: center; width: 34px; min-width: 34px; height: 34px; margin: 0; padding: 0; border: 1px solid currentColor; border-radius: 50%; font: inherit; font-size: 17px; line-height: 1; box-shadow: none; cursor: pointer; }
body.rm-admin .guesty-chat-face-status.is-entered { color: #2b7c59; background: #e9f7ef; }
body.rm-admin .guesty-chat-face-status.is-registered { color: #6d4aff; background: #f1edff; }
body.rm-admin .guesty-chat-face-status.is-missing { color: #6b7280; background: #f3f4f6; }
body.rm-admin .guesty-chat-face-status[hidden] { display: none; }
body.rm-admin .guesty-chat-face-status:focus-visible { outline: 3px solid rgba(223, 189, 117, .34); outline-offset: 2px; }
body.rm-admin .face-activity-modal { z-index: 129; }
body.rm-admin .face-activity-card { width: min(520px, 100%); max-height: min(720px, calc(100vh - 32px)); }
body.rm-admin .face-activity-card .modal-head { align-items: flex-start; }
body.rm-admin .face-activity-subtitle { margin: 3px 0 0; color: var(--rm-text); font-size: 12px; }
body.rm-admin .face-activity-body { display: grid; gap: 14px; overflow-y: auto; }
body.rm-admin .face-activity-state { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid currentColor; border-radius: 14px; }
body.rm-admin .face-activity-state > i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #6b7280; color: #fff; font-size: 20px; }
body.rm-admin .face-activity-state.is-entered > i { background: #2b7c59; }
body.rm-admin .face-activity-state.is-registered > i { background: #6d4aff; }
body.rm-admin .face-activity-state div { display: grid; gap: 2px; }
body.rm-admin .face-activity-state strong { font-size: 14px; }
body.rm-admin .face-activity-state small { color: var(--rm-text); font-size: 11px; }
body.rm-admin .face-activity-state.is-entered { color: #2b7c59; background: #e9f7ef; }
body.rm-admin .face-activity-state.is-registered { color: #6d4aff; background: #f1edff; }
body.rm-admin .face-activity-state.is-missing { color: #6b7280; background: #f3f4f6; }
body.rm-admin .media-gallery-modal { z-index: 129; }
body.rm-admin .media-gallery-card { width: min(680px, 100%); max-height: min(820px, calc(100dvh - 24px)); }
body.rm-admin .media-gallery-card .modal-head { align-items: flex-start; }
body.rm-admin .media-gallery-subtitle { margin: 3px 0 0; color: var(--rm-text); font-size: 12px; }
body.rm-admin .media-gallery-body { min-height: 160px; overflow-y: auto; }
body.rm-admin .media-gallery-status { margin: 0; padding: 44px 12px; color: #6b7384; font-size: 13px; text-align: center; }
body.rm-admin .media-gallery-status[hidden] { display: none; }
body.rm-admin .media-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body.rm-admin .media-gallery-item { display: grid; align-content: start; width: 100%; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid #e1e5eb; border-radius: 12px; background: #fff; color: #10243e; font: inherit; text-align: left; letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer; }
body.rm-admin .media-gallery-item > img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #eef1f5; }
body.rm-admin .media-gallery-kind { display: grid; place-items: center; gap: 7px; width: 100%; aspect-ratio: 1; background: linear-gradient(145deg, #102c4d, #071a31); color: #f5ead2; }
body.rm-admin .media-gallery-kind i { margin: 0; font-size: 30px; }
body.rm-admin .media-gallery-kind strong { font-size: 12px; }
body.rm-admin .media-gallery-copy { display: grid; gap: 3px; padding: 8px; }
body.rm-admin .media-gallery-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .media-gallery-copy small { overflow: hidden; color: #6b7384; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) {
  body.rm-admin .media-gallery-card { height: 100dvh; max-height: none; border-radius: 0; }
  body.rm-admin .media-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.rm-admin .guesty-chat-head-actions { gap: 4px; }
}
body.rm-admin .face-activity-state.is-inactive { color: #b53a42; background: #fdebed; }
body.rm-admin .face-activity-list { display: grid; gap: 8px; }
body.rm-admin .face-activity-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%; min-height: 66px; margin: 0; padding: 10px 12px; border: 1px solid var(--rm-line); border-radius: 14px; background: #fff; color: var(--rm-primary); text-align: left; box-shadow: none; }
body.rm-admin button.face-activity-item { cursor: pointer; }
body.rm-admin button.face-activity-item:hover { border-color: #d5bc7f; background: #fffdf8; }
body.rm-admin .face-activity-item-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e9f7ef; color: #2b7c59; font-size: 18px; }
body.rm-admin .face-activity-item.is-failure .face-activity-item-icon { background: #fdebed; color: #b53a42; }
body.rm-admin .face-activity-item-copy { display: grid; gap: 2px; min-width: 0; }
body.rm-admin .face-activity-item-copy strong { overflow: hidden; color: var(--rm-primary); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .face-activity-item-copy small { color: var(--rm-text); font-size: 11px; }
body.rm-admin .face-activity-item > .ri-camera-line { color: #b08a38; font-size: 18px; }
body.rm-admin .face-activity-empty { display: grid; place-items: center; gap: 8px; min-height: 130px; padding: 20px; border: 1px dashed var(--rm-line); border-radius: 14px; color: var(--rm-text); text-align: center; }
body.rm-admin .face-activity-empty i { color: #b08a38; font-size: 28px; }
body.rm-admin .face-activity-empty strong { color: var(--rm-primary); font-size: 14px; }
body.rm-admin .face-activity-empty p { margin: 0; font-size: 12px; }
@media (max-width: 620px) {
  body.rm-admin .face-activity-modal { padding: 12px; align-items: flex-end; }
  body.rm-admin .face-activity-card { width: 100%; max-height: min(78vh, 680px); border-radius: 22px 22px 14px 14px; }
}
body.rm-admin .guesty-chat-card .guesty-chat-status { margin: 2px 0 0; padding: 0; border: 0; background: none; color: #8b93a1; font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .guesty-chat-card .guesty-chat-status.is-error { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
body.rm-admin .guesty-chat-card .modal-head.guesty-chat-head .icon-button { flex: none; width: 34px; min-width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f4f6f9; box-shadow: none; }
@media (max-width: 780px) {
  body.rm-admin .guesty-chat-card .modal-head.guesty-chat-head { padding-top: max(10px, env(safe-area-inset-top)); }
}
/* 15 Sep 18:30 - phone sheets (chat, search) follow the visual viewport above the iOS keyboard; solid backdrop so the page never shows behind. */
@media (max-width: 780px) {
  body.rm-admin #guesty-chat-modal,
  body.rm-admin #search-modal { inset: 0 0 auto 0; height: 100dvh; overflow: hidden; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; overscroll-behavior: contain; }
  body.rm-admin #guesty-chat-modal .modal-card,
  body.rm-admin #search-modal .modal-card { box-shadow: none; }
}
/* 15 Sep 18:35 - chat wallpaper: tileable Madalena line doodles (assets/chat-pattern.svg) on warm beige. */
body.rm-admin .guesty-chat-list { background-color: #f1ebdf; background-image: url("chat-pattern.svg?v=1"); background-size: 320px 320px; background-repeat: repeat; }
body.rm-admin .guesty-chat-message.is-guest .guesty-chat-bubble { box-shadow: 0 1px 1.5px rgba(16, 24, 40, .1); }
/* 15 Sep 18:40 - chat contrast on the wallpaper: team bubbles solid navy (automatic slightly lighter), guest white; white page/status area while a phone sheet is open. */
body.rm-admin .guesty-chat-message.is-host .guesty-chat-bubble { background: #1e3a5f; color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .18); }
body.rm-admin .guesty-chat-message.is-host .guesty-chat-bubble p { color: #fff; }
body.rm-admin .guesty-chat-message.is-host .guesty-chat-author { color: #e9c97f; }
body.rm-admin .guesty-chat-message.is-host .guesty-chat-bubble small { color: rgba(255, 255, 255, .7); }
body.rm-admin .guesty-chat-message.is-host.is-auto .guesty-chat-bubble { background: #3a5a82; color: #fff; }
body.rm-admin .guesty-chat-message.is-host.is-pending .guesty-chat-bubble { opacity: .78; }
body.rm-admin .guesty-chat-message.is-host.is-failed .guesty-chat-bubble { background: #fde8e3; color: #7a2d1c; box-shadow: 0 0 0 1px #f2b8a8; }
body.rm-admin .guesty-chat-message.is-host.is-failed .guesty-chat-bubble p { color: #5b2114; }
body.rm-admin .guesty-chat-message.is-host.is-failed .guesty-chat-author { color: #a4462b; }
body.rm-admin .guesty-chat-message.is-host.is-uncertain .guesty-chat-bubble small { color: #ffd6c9; font-weight: 600; }
body.rm-admin .guesty-chat-message.is-guest .guesty-chat-bubble { background: #fff; color: #1f2937; }
html.rm-sheet-open,
html.rm-sheet-open body.rm-admin { background: #fff !important; }
/* 15 Sep 18:50 - phone sheets: full-screen white backdrop stays behind the translucent iOS keyboard; only the card tracks the visual viewport; no safe-area gap above the keyboard. */
@media (max-width: 780px) {
  body.rm-admin #guesty-chat-modal,
  body.rm-admin #search-modal { inset: 0; height: auto; min-height: 100lvh; display: block; padding: 0; }
  body.rm-admin #guesty-chat-modal .modal-card,
  body.rm-admin #search-modal .modal-card { margin: 0; }
  body.rm-admin #guesty-chat-modal.is-keyboard-open .guesty-chat-composer { padding-bottom: 8px; }
  body.rm-admin #search-modal.is-keyboard-open .search-modal-results { padding-bottom: 8px; }
}
/* 15 Sep 19:00 - desktop: Guesty chat docked as a right panel (non-modal); page content shifts left and stays usable. */
@media (min-width: 781px) {
  body.rm-admin { --chat-dock-w: 420px; }
  body.rm-admin #guesty-chat-modal { inset: 0 0 0 auto; width: var(--chat-dock-w); height: 100vh; min-height: 0; display: block; padding: 0; overflow: visible; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
  body.rm-admin #guesty-chat-modal .guesty-chat-card { pointer-events: auto; width: var(--chat-dock-w); height: 100vh; max-height: none; margin: 0; border-radius: 0; border-left: 1px solid #e3e6ec; box-shadow: -18px 0 36px -24px rgba(16, 24, 40, .45); }
  body.rm-admin.rm-chat-docked .workspace { padding-right: var(--chat-dock-w); }
  body.rm-admin.rm-chat-docked .modal:not(#guesty-chat-modal):not(#media-viewer-modal) { right: var(--chat-dock-w); }
  body.rm-admin.rm-chat-docked .scroll-top-button { right: calc(var(--chat-dock-w) + 16px); }
}

/* Price editing uses the calendar's existing validated form in a focused dialog. */
body.rm-admin.rm-ari-price-modal #ari-panel { position: fixed; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto; background: rgba(15, 25, 43, .46); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); pointer-events: auto; z-index: 250; }
body.rm-admin.rm-ari-price-modal #ari-panel .modal-card { width: min(100%, 430px); height: auto; max-height: calc(100vh - 40px); margin: auto; border: 1px solid #e3e6ec; border-radius: 15px; box-shadow: 0 24px 70px rgba(16, 24, 40, .25); }
body.rm-admin.rm-ari-price-modal #ari-panel .ari-dates,
body.rm-admin.rm-ari-price-modal #ari-units-wrap,
body.rm-admin.rm-ari-price-modal #ari-weekdays,
body.rm-admin.rm-ari-price-modal #ari-action,
body.rm-admin.rm-ari-price-modal #ari-form .credential-heading,
body.rm-admin.rm-ari-price-modal #ari-rates-fields label:not(:first-child),
body.rm-admin.rm-ari-price-modal #ari-rates-fields .ari-owned-note { display: none !important; }
body.rm-admin.rm-ari-price-modal #ari-rates-fields .form-grid { display: block; }
body.rm-admin.rm-ari-price-modal #ari-nights { margin: 0 0 16px; color: #627184; }
body.rm-admin.rm-ari-price-modal #ari-panel-eyebrow { display: block; max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 781px) and (max-width: 1180px) {
  body.rm-admin { --chat-dock-w: 360px; }
}
/* 15 Sep 19:10 - desktop chat dock rail: open conversations as initials with unread badges; collapse and close-all at the bottom. */
body.rm-admin .guesty-chat-rail { display: none; }
body.rm-admin .guesty-chat-collapse { display: none; }
@media (min-width: 781px) {
  body.rm-admin { --chat-rail-w: 64px; }
  body.rm-admin .guesty-chat-rail { position: fixed; top: 0; right: 0; bottom: 0; z-index: 126; display: flex; flex-direction: column; align-items: center; width: var(--chat-rail-w); padding: 12px 0; border-left: 1px solid #e3e6ec; background: #fff; box-shadow: -10px 0 24px -20px rgba(16, 24, 40, .35); }
  body.rm-admin .guesty-chat-rail.hidden { display: none !important; }
  body.rm-admin .guesty-chat-rail-list { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; padding: 4px 0; overflow-y: auto; }
  body.rm-admin .guesty-chat-rail-avatar { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; min-height: 42px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(140deg, #d8b86e, #b38b37); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: none; box-shadow: 0 3px 8px -4px rgba(169, 131, 47, .6); cursor: pointer; }
  body.rm-admin .guesty-chat-rail-avatar:hover { filter: brightness(1.05); }
  body.rm-admin .guesty-chat-rail-avatar.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #16304d; }
  body.rm-admin .guesty-chat-rail-badge { position: absolute; top: -4px; right: -6px; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; background: #d64545; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
  body.rm-admin .guesty-chat-rail-actions { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid #eef0f4; width: 100%; }
  body.rm-admin .guesty-chat-rail-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f4f6f9; color: #4b5563; font-size: 20px; box-shadow: none; cursor: pointer; }
  body.rm-admin .guesty-chat-rail-button:hover { background: #e9edf3; color: #16304d; }
  body.rm-admin .guesty-chat-rail-button.is-close:hover { background: #fde8e3; color: #a4462b; }
  body.rm-admin .guesty-chat-rail-button i { margin: 0; line-height: 1; }
  body.rm-admin .guesty-chat-collapse { display: inline-flex; }
  body.rm-admin .guesty-chat-card .modal-head.guesty-chat-head .guesty-chat-collapse { flex: none; width: 34px; min-width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f4f6f9; box-shadow: none; font-size: 20px; }
  body.rm-admin.rm-chat-rail #guesty-chat-modal { right: var(--chat-rail-w); }
  body.rm-admin.rm-chat-rail .workspace { padding-right: var(--chat-rail-w); }
  body.rm-admin.rm-chat-rail.rm-chat-docked .workspace { padding-right: calc(var(--chat-dock-w) + var(--chat-rail-w)); }
  body.rm-admin.rm-chat-rail .modal:not(#guesty-chat-modal):not(#media-viewer-modal) { right: var(--chat-rail-w); }
  body.rm-admin.rm-chat-rail.rm-chat-docked .modal:not(#guesty-chat-modal):not(#media-viewer-modal) { right: calc(var(--chat-dock-w) + var(--chat-rail-w)); }
  body.rm-admin.rm-chat-rail .scroll-top-button { right: calc(var(--chat-rail-w) + 16px); }
  body.rm-admin.rm-chat-rail.rm-chat-docked .scroll-top-button { right: calc(var(--chat-dock-w) + var(--chat-rail-w) + 16px); }
}
/* 15 Sep 19:20 - chat rail/header show the guest avatar or check-in photo; first name under each rail bubble. */
@media (min-width: 781px) {
  body.rm-admin .guesty-chat-rail-list { gap: 12px; overflow-x: hidden; }
  body.rm-admin .guesty-chat-rail-item { position: relative; flex: none; height: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; max-width: 60px; min-height: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; text-transform: none; letter-spacing: 0; cursor: pointer; }
  body.rm-admin .guesty-chat-rail-item .guesty-chat-rail-avatar { pointer-events: none; }
  body.rm-admin .guesty-chat-rail-item:hover .guesty-chat-rail-avatar { filter: brightness(1.05); }
  body.rm-admin .guesty-chat-rail-name { display: block; width: 52px; overflow: hidden; color: #4b5563; font-size: 10.5px; font-weight: 600; line-height: 1.2; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  body.rm-admin .guesty-chat-rail-item.is-active .guesty-chat-rail-name { color: #16304d; font-weight: 700; }
}
body.rm-admin .guesty-chat-rail-avatar.has-image,
body.rm-admin .guesty-chat-avatar.has-image { overflow: visible; background: #f1ead9; padding: 0; }
body.rm-admin .guesty-chat-rail-avatar.has-image img,
body.rm-admin .guesty-chat-avatar.has-image img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
/* 16 Sep 21:30 - Mensagens page (WhatsApp-style conversation list), platform pills on every bubble, unmistakable selected platform. */
body.rm-admin .message-threads-card { padding: 0; overflow: hidden; }
body.rm-admin .message-threads { display: flex; flex-direction: column; }
body.rm-admin .message-threads .empty-state { padding: 40px 16px; }
body.rm-admin .message-thread { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px 14px 10px 12px; border-bottom: 1px solid #eef0f4; background: #fff; cursor: pointer; text-align: left; outline: none; }
body.rm-admin .message-thread:last-child { border-bottom: 0; }
body.rm-admin .message-thread:hover { background: #f7f8fb; }
body.rm-admin .message-thread:focus-visible { box-shadow: inset 0 0 0 2px #c29a4b; }
body.rm-admin .message-thread-avatar { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(140deg, #d8b86e, #b38b37); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; overflow: hidden; }
body.rm-admin .message-thread-avatar.has-image { background: #f1ead9; }
body.rm-admin .message-thread-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.rm-admin .message-thread-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
body.rm-admin .message-thread-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
body.rm-admin .message-thread-name { flex: 1; min-width: 0; overflow: hidden; color: #10243e; font-size: 15.5px; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .message-thread-unit { flex: none; padding: 1px 7px; border-radius: 999px; background: #fbeecf; color: #8a6a1f; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
body.rm-admin .message-thread-time { flex: none; color: #8b93a1; font-size: 12px; font-variant-numeric: tabular-nums; }
body.rm-admin .message-thread-bottom { display: flex; align-items: center; gap: 8px; min-width: 0; }
body.rm-admin .message-thread-preview { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; overflow: hidden; color: #5b6472; font-size: 13.5px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
body.rm-admin .message-thread-preview > :last-child { overflow: hidden; text-overflow: ellipsis; }
body.rm-admin .message-thread-preview em { color: #9aa2ae; font-style: normal; }
body.rm-admin .message-thread-you { color: #8b93a1; font-weight: 600; }
body.rm-admin .message-thread.is-unread .message-thread-preview { color: #10243e; font-weight: 600; }
body.rm-admin .message-thread-badge { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #1f8f4f; box-shadow: 0 0 0 3px rgba(31, 143, 79, .15); }
body.rm-admin .message-thread-stay { color: #9aa2ae; font-size: 11.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .message-thread.is-inquiry .message-thread-unit { background: #e8f0fb; color: #24466f; }
body.rm-admin .message-thread.is-ended .message-thread-avatar { filter: saturate(.6); }
body.rm-admin .message-archive { border-top: 1px solid #eef0f4; }
body.rm-admin .message-archive.hidden { display: none; }
body.rm-admin .message-archive > summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: #6b7482; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
body.rm-admin .message-archive > summary::-webkit-details-marker { display: none; }
body.rm-admin .message-archive > summary i { font-size: 17px; }
body.rm-admin .message-archive > summary small { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: #eef0f4; color: #6b7482; font-size: 11px; font-weight: 700; }
body.rm-admin .message-archive > summary small:empty { display: none; }
body.rm-admin .message-archive-empty { margin: 0; padding: 0 14px 14px; color: #9aa2ae; font-size: 13px; }
body.rm-admin .message-threads.is-archived .message-thread { background: #fbfbfc; }
/* Platform pill: the same mark on the list preview, on every bubble and on the composer chips. */
body.rm-admin .chat-platform { display: inline-flex; align-items: center; gap: 3px; flex: none; padding: 1px 7px 1px 5px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1.5; letter-spacing: .01em; white-space: nowrap; }
body.rm-admin .chat-platform i { font-size: 12px; line-height: 1; }
body.rm-admin .chat-platform.is-airbnb { background: #ffe5ea; color: #c2103c; }
body.rm-admin .chat-platform.is-whatsapp { background: #dff5e6; color: #14804a; }
body.rm-admin .chat-platform.is-sms { background: #ece6fb; color: #5b3fb5; }
body.rm-admin .chat-platform.is-booking { background: #e3ecfb; color: #1a4fa3; }
body.rm-admin .chat-platform.is-other { background: #eef0f4; color: #4b5563; }
body.rm-admin .chat-platform.is-small { padding: 0 6px 0 4px; font-size: 10px; }
body.rm-admin .guesty-chat-bubble small { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 6px; margin-top: 4px; }
body.rm-admin .guesty-chat-bubble small > span:last-child { min-width: 0; text-align: right; white-space: normal; }
body.rm-admin .guesty-chat-message.is-host .guesty-chat-bubble .chat-platform { background: rgba(255, 255, 255, .16); color: #fff; }
body.rm-admin .guesty-chat-message.is-host.is-failed .guesty-chat-bubble .chat-platform { background: rgba(122, 45, 28, .12); color: #7a2d1c; }
body.rm-admin .guesty-chat-message.is-host.is-failed .guesty-chat-bubble small { color: #a4462b; }
/* Composer chips: the selected platform is filled, checked and labelled; the others stay outlined. */
body.rm-admin .guesty-chat-channels { align-items: center; gap: 6px; padding-bottom: 2px; }
body.rm-admin .guesty-chat-channels-label { flex: none; margin-right: 2px; color: #8b93a1; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
body.rm-admin .guesty-chat-channel { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; height: 30px; padding: 0 12px 0 9px; border: 1.5px solid #d9dee6; border-radius: 999px; background: #fff; color: #4b5563; font-size: 12.5px; font-weight: 600; }
body.rm-admin .guesty-chat-channel i { font-size: 15px; line-height: 1; }
body.rm-admin .guesty-chat-channel.is-airbnb i { color: #c2103c; }
body.rm-admin .guesty-chat-channel.is-whatsapp i { color: #14804a; }
body.rm-admin .guesty-chat-channel:hover { border-color: #b9c2cf; background: #f7f8fb; }
body.rm-admin .guesty-chat-channel.is-active,
body.rm-admin .guesty-chat-channel.is-active:hover { border-color: #16304d; background: #16304d; color: #fff; box-shadow: 0 0 0 3px rgba(22, 48, 77, .16); }
body.rm-admin .guesty-chat-channel.is-active i { color: #f3dfb0; }
@media (max-width: 480px) {
  body.rm-admin .guesty-chat-channels-label { display: none; }
  body.rm-admin .guesty-chat-channels { gap: 5px; }
  body.rm-admin .guesty-chat-channel { padding: 0 10px 0 8px; font-size: 12px; }
}
/* 16 Sep 21:50 - WhatsApp assistant conversations in Mensagens: green tag, 24 h window countdown, blocked composer after it closes. */
body.rm-admin .message-thread.is-wa .message-thread-unit { background: #dff5e6; color: #14804a; }
body.rm-admin .message-thread.is-wa .message-thread-stay { color: #14804a; font-weight: 600; }
body.rm-admin .message-thread.is-wa.is-window-closed .message-thread-stay { color: #a4462b; }
/* 16 Sep 22:30 (theme103) - window timer is a quiet label beside the platform chips, not a green banner (owner). */
body.rm-admin .guesty-chat-route { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.rm-admin .guesty-chat-route .guesty-chat-channels { flex: 0 1 auto; min-width: 0; }
body.rm-admin .guesty-chat-window { flex: none; display: inline-flex; align-items: center; gap: 4px; margin: 0 0 2px; padding: 0; background: none; color: #8b93a1; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
body.rm-admin .guesty-chat-window[hidden] { display: none; }
body.rm-admin .guesty-chat-window i { margin: 0; font-size: 13px; line-height: 1; }
body.rm-admin .guesty-chat-window.is-soon { color: #b7791f; }
body.rm-admin .guesty-chat-window.is-closed { color: #c2410c; }
body.rm-admin .guesty-chat-composer.is-window-closed textarea { background: #f4f5f7; color: #9aa2ae; cursor: not-allowed; }
/* 17 Sep 2026 (browser smoke): a blocked composer can't be typed in, so its long hint (invite / no route / window closed) gets two full lines instead of being cut off. */
body.rm-admin .guesty-chat-composer.is-window-closed textarea { min-height: 62px; font-size: 14px; line-height: 1.35; }
body.rm-admin .guesty-chat-composer.is-window-closed .guesty-chat-send { opacity: .45; cursor: not-allowed; }
/* 16 Sep 22:20 - floating messages button + full-screen WhatsApp-style inbox sheet (search on top, archived row, floating filter bar). */
/* Owner request (16 Sep 2026): transparent like WhatsApp — frosted glass, with a
   gentle entrance, lift/press feedback and a soft green pulse while unread. */
body.rm-admin .messages-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 41; display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin: 0; padding: 0; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(2.5px) saturate(170%); backdrop-filter: blur(2.5px) saturate(170%); color: #14804a; font-size: 26px; box-shadow: 0 10px 26px -12px rgba(16, 36, 62, .38), 0 0 0 .5px rgba(16, 36, 62, .14), inset 0 1px 1px rgba(255, 255, 255, .85), inset 0 -8px 14px -10px rgba(16, 36, 62, .16); cursor: pointer; overflow: visible; isolation: isolate; animation: rm-fab-in .42s cubic-bezier(.2, .9, .3, 1.25) backwards; transition: transform .18s cubic-bezier(.2, .8, .2, 1), background .18s ease, box-shadow .18s ease; -webkit-tap-highlight-color: transparent; }
body.rm-admin .messages-fab::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(150deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, 0) 55%); pointer-events: none; }
body.rm-admin .messages-fab::after { content: ""; position: absolute; inset: -1px; z-index: -2; border-radius: inherit; pointer-events: none; }
body.rm-admin .messages-fab.has-unread::after { animation: rm-fab-pulse 2.6s ease-out infinite; }
body.rm-admin .messages-fab:hover { background: rgba(255, 255, 255, .26); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(16, 36, 62, .45), 0 0 0 .5px rgba(16, 36, 62, .16), inset 0 1px 1px rgba(255, 255, 255, .9), inset 0 -8px 14px -10px rgba(16, 36, 62, .16); }
body.rm-admin .messages-fab:active { transform: scale(.9); background: rgba(255, 255, 255, .36); transition-duration: .08s; }
body.rm-admin .messages-fab:focus-visible { outline: 2px solid #c9a55a; outline-offset: 3px; }
body.rm-admin .messages-fab i { margin: 0; line-height: 1; filter: drop-shadow(0 1px 1px rgba(20, 128, 74, .25)); }
@keyframes rm-fab-in { from { opacity: 0; transform: translateY(14px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes rm-fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 143, 79, .45); } 70% { box-shadow: 0 0 0 16px rgba(31, 143, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 143, 79, 0); } }
@media (prefers-reduced-motion: reduce) { body.rm-admin .messages-fab, body.rm-admin .messages-fab.has-unread::after { animation: none; } }
body.rm-admin .messages-fab-badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border: 2px solid #fff; border-radius: 999px; background: #d64545; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-sizing: border-box; }
body.rm-admin .messages-fab-badge[hidden] { display: none; }
body.rm-admin .scroll-top-button { bottom: max(90px, calc(env(safe-area-inset-bottom) + 82px)); }
body.rm-admin:has(.modal:not(.hidden)) .messages-fab,
body.rm-admin.rm-messages-open .messages-fab { display: none; }
@media (min-width: 781px) {
  body.rm-admin.rm-chat-docked .messages-fab { right: calc(var(--chat-dock-w) + 16px); }
  body.rm-admin.rm-chat-rail .messages-fab { right: calc(var(--chat-rail-w) + 16px); }
  body.rm-admin.rm-chat-rail.rm-chat-docked .messages-fab { right: calc(var(--chat-dock-w) + var(--chat-rail-w) + 16px); }
}
body.rm-admin.rm-messages-open { overflow: hidden; }
body.rm-admin .messages-sheet { position: fixed; inset: 0; z-index: 127; display: flex; justify-content: flex-end; background: rgba(16, 24, 40, 0); transition: background .22s ease; }
body.rm-admin .messages-sheet.hidden { display: none !important; }
body.rm-admin .messages-sheet.is-open { background: rgba(16, 24, 40, .28); }
body.rm-admin .messages-sheet-card { position: relative; display: flex; flex-direction: column; width: 100%; height: 100dvh; background: #fff; transform: translateX(100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
body.rm-admin .messages-sheet.is-open .messages-sheet-card { transform: none; }
@media (min-width: 781px) { body.rm-admin .messages-sheet-card { width: min(460px, 100%); box-shadow: -18px 0 36px -24px rgba(16, 24, 40, .45); } }
body.rm-admin .messages-sheet-head { flex: none; display: flex; align-items: center; gap: 6px; padding: max(10px, env(safe-area-inset-top)) 16px 2px 8px; }
body.rm-admin .messages-sheet-head h2 { margin: 0; color: #10243e; font-size: 30px; font-weight: 750; letter-spacing: -.01em; line-height: 1.15; }
body.rm-admin .messages-sheet-head .icon-button { flex: none; width: 40px; min-width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f4f6f9; box-shadow: none; font-size: 26px; }
body.rm-admin .messages-sheet-search { flex: none; display: flex; align-items: center; gap: 10px; margin: 8px 16px 10px; padding: 0 16px; height: 44px; border-radius: 999px; background: #f1f3f6; color: #8b93a1; font-size: 19px; cursor: text; }
body.rm-admin .messages-sheet-search input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #10243e; font-size: 16px; outline: none; }
body.rm-admin .messages-sheet-search input::-webkit-search-cancel-button { cursor: pointer; }
body.rm-admin .messages-sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
body.rm-admin .messages-sheet-body .message-threads[hidden] { display: none; }
body.rm-admin .messages-sheet-body .message-thread { padding-left: 16px; }
body.rm-admin .messages-sheet-archive { display: flex; align-items: center; gap: 22px; width: 100%; min-height: 54px; margin: 0; padding: 0 18px 0 30px; border: 0; border-bottom: 1px solid #eef0f4; border-radius: 0; background: #fff; color: #4b5563; font-size: 15.5px; font-weight: 650; letter-spacing: 0; text-align: left; text-transform: none; box-shadow: none; cursor: pointer; }
body.rm-admin .messages-sheet-archive[hidden] { display: none; }
body.rm-admin .messages-sheet-archive i { margin: 0; color: #6b7482; font-size: 21px; }
body.rm-admin .messages-sheet-archive small { margin-left: auto; color: #8b93a1; font-size: 13px; font-weight: 700; }
body.rm-admin .messages-sheet-archive[aria-expanded="true"] { background: #f7f8fb; }
body.rm-admin .messages-sheet-tabs { position: absolute; left: 50%; bottom: max(14px, calc(env(safe-area-inset-bottom) + 6px)); z-index: 2; display: flex; gap: 2px; padding: 5px; border: 1px solid rgba(16, 36, 62, .08); border-radius: 999px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 14px 32px -12px rgba(16, 24, 40, .38); transform: translateX(-50%); }
body.rm-admin .messages-sheet-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 76px; height: 56px; margin: 0; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: #4b5563; font-size: 11.5px; font-weight: 650; letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer; }
body.rm-admin .messages-sheet-tabs button i { margin: 0; font-size: 22px; line-height: 1; }
body.rm-admin .messages-sheet-tabs button.is-active { background: #e3eaf4; color: #10243e; }
body.rm-admin .messages-sheet-tabs button b { position: absolute; top: 2px; right: 12px; min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; background: #1f8f4f; color: #fff; font-size: 10px; font-weight: 800; line-height: 15px; box-sizing: border-box; }
body.rm-admin .messages-sheet-tabs button b:empty { display: none; }
@media (max-width: 380px) { body.rm-admin .messages-sheet-tabs button { min-width: 64px; font-size: 10.5px; } }
/* 16 Sep 23:20 (theme108) - owner: guests currently checked in ("hospedado") get the blue apartment tag; future stays keep gold; inquiries move to neutral grey so blue only means hosted. */
body.rm-admin .message-thread.is-hosted .message-thread-unit { background: #dfe9f7; color: #1d4a86; }
body.rm-admin .message-thread.is-inquiry .message-thread-unit { background: #eef0f4; color: #5b6472; }
/* 16 Sep 23:15 (theme108) - owner: WhatsApp-like squishy slide of the active filter pill (admin.js moveSheetIndicator) and a small bounce of the tapped icon. */
body.rm-admin .messages-sheet-indicator { position: absolute; top: 5px; left: 0; z-index: 0; display: block; width: 76px; height: 56px; margin: 0; border-radius: 999px; background: rgba(16, 36, 62, .1); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55); transform-origin: 50% 50%; pointer-events: none; will-change: transform; }
body.rm-admin .messages-sheet-tabs.has-indicator button.is-active { background: transparent; }
body.rm-admin .messages-sheet-tabs button.is-pressed i { animation: rm-tab-bounce .3s cubic-bezier(.3, .7, .3, 1); }
@keyframes rm-tab-bounce { 0% { transform: scale(1, 1); } 30% { transform: scale(.8, .88); } 65% { transform: scale(1.14, 1.06); } 100% { transform: scale(1, 1); } }
@media (prefers-reduced-motion: reduce) { body.rm-admin .messages-sheet-tabs button.is-pressed i { animation: none; } }
/* 16 Sep 23:05 (theme107) - owner: WhatsApp window as a plain "23:55" clock, under the tag in the rows and inside the WhatsApp chip in the chat. */
body.rm-admin .message-thread-window { flex: none; width: 58px; color: #1f8f4f; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; text-align: center; }
body.rm-admin .message-thread-window[hidden] { display: none; }
body.rm-admin .message-thread-window.is-soon { color: #b7791f; }
body.rm-admin .guesty-chat-channel-clock { margin-left: 3px; padding-left: 7px; border-left: 1px solid currentColor; font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1; }
body.rm-admin .guesty-chat-channel-clock[hidden] { display: none; }
body.rm-admin .guesty-chat-channel:not(.is-active) .guesty-chat-channel-clock { color: #1f8f4f; }
body.rm-admin .guesty-chat-channel:not(.is-active) .guesty-chat-channel-clock.is-soon { color: #b7791f; }
body.rm-admin .guesty-chat-channel.is-active .guesty-chat-channel-clock.is-soon { color: #ffcf7a; }
/* 16 Sep 23:05 (theme107) - owner: a subtle continuous effect behind the floating filter bar: two soft colour glows drifting under the glass and three small sparkles twinkling in turn (transform/opacity only; off with reduced motion). */
body.rm-admin .messages-sheet-tabs::before,
body.rm-admin .messages-sheet-tabs::after { content: ""; position: absolute; top: 50%; left: 50%; z-index: -1; width: 130px; height: 66px; margin: -33px 0 0 -65px; border-radius: 50%; filter: blur(18px); opacity: .65; pointer-events: none; will-change: transform, opacity; }
body.rm-admin .messages-sheet-tabs::before { background: rgba(31, 170, 92, .62); animation: rm-tabs-glow-a 11s ease-in-out infinite alternate; }
body.rm-admin .messages-sheet-tabs::after { background: rgba(214, 168, 70, .7); animation: rm-tabs-glow-b 14s ease-in-out infinite alternate; }
@keyframes rm-tabs-glow-a { 0% { transform: translateX(-120px) scale(.9); opacity: .35; } 50% { opacity: .6; } 100% { transform: translateX(110px) scale(1.15); opacity: .4; } }
@keyframes rm-tabs-glow-b { 0% { transform: translateX(120px) scale(1.1); opacity: .45; } 50% { opacity: .25; } 100% { transform: translateX(-110px) scale(.9); opacity: .55; } }
body.rm-admin .messages-sheet-spark { position: absolute; z-index: 0; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, rgba(236, 196, 104, .95) 48%, rgba(236, 196, 104, 0) 76%); box-shadow: 0 0 10px 3px rgba(214, 168, 70, .5); opacity: 0; pointer-events: none; animation: rm-tabs-spark 4.8s ease-in-out infinite; }
body.rm-admin .messages-sheet-spark::before,
body.rm-admin .messages-sheet-spark::after { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 2px; margin: -1px 0 0 -10px; border-radius: 2px; background: linear-gradient(90deg, rgba(214, 168, 70, 0), rgba(214, 168, 70, .95) 50%, rgba(214, 168, 70, 0)); }
body.rm-admin .messages-sheet-spark::after { transform: rotate(90deg); }
body.rm-admin .messages-sheet-spark:nth-of-type(1) { top: 7px; left: 9%; animation-delay: 0s; }
body.rm-admin .messages-sheet-spark:nth-of-type(2) { bottom: 7px; left: 49%; animation-delay: 1.6s; }
body.rm-admin .messages-sheet-spark:nth-of-type(3) { bottom: 12px; left: 91%; animation-delay: 3.2s; }
@keyframes rm-tabs-spark { 0%, 62%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 22% { opacity: 1; transform: scale(1) rotate(45deg); } 40% { opacity: .15; transform: scale(.55) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) {
  body.rm-admin .messages-sheet-tabs::before, body.rm-admin .messages-sheet-tabs::after { animation: none; }
  body.rm-admin .messages-sheet-spark { display: none; }
}
/* 16 Sep 22:58 (theme106) - owner: the floating filter bar must be see-through glass like WhatsApp (it was 90 % white with a heavy blur, so it read as a solid white pill). */
body.rm-admin .messages-sheet-tabs { border: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .34); -webkit-backdrop-filter: blur(9px) saturate(180%); backdrop-filter: blur(9px) saturate(180%); box-shadow: 0 10px 28px -10px rgba(16, 24, 40, .32), 0 0 0 .5px rgba(16, 36, 62, .12), inset 0 1px 1px rgba(255, 255, 255, .85); }
body.rm-admin .messages-sheet-tabs button { color: #1f2937; text-shadow: 0 0 8px rgba(255, 255, 255, .9); }
body.rm-admin .messages-sheet-tabs button.is-active { background: rgba(16, 36, 62, .1); color: #10243e; }
body.rm-admin .messages-sheet-tabs button b { border-color: rgba(255, 255, 255, .9); text-shadow: none; }
/* 16 Sep 22:50 (theme105) - WhatsApp chip disabled while the guest's 24 h window is closed (owner). */
body.rm-admin .guesty-chat-channel:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
body.rm-admin .guesty-chat-channel:disabled:hover { border-color: #d9dee6; background: #fff; }
body.rm-admin .guesty-chat-channel.is-active:disabled { opacity: .55; }
/* 16 Sep 22:45 (theme104) - owner: apartment tag fixed at the right edge with the last-message time left of it, so every row lines up; settled phone sheet backdrop is white (lock-screen return showed the Admin header). */
body.rm-admin .message-thread-top .message-thread-time { margin-left: auto; text-align: right; }
body.rm-admin .message-thread-unit { display: inline-flex; align-items: center; justify-content: center; width: 58px; padding: 1px 0; box-sizing: border-box; line-height: 1.45; white-space: nowrap; }
body.rm-admin .message-thread-unit i { margin: 0; font-size: 13px; line-height: 1; }
@media (max-width: 780px) { body.rm-admin .messages-sheet.is-settled { background: #fff; transition: none; } }
/* 16 Sep 22:25 (theme103) - while typing in a phone sheet, layers under it are hidden (admin.js syncSheetViewport) so the iOS keyboard area shows only white. */
html.rm-sheet-open body.rm-admin > .rm-behind-sheet { visibility: hidden !important; }
/* 16 Sep 22:30 (theme102) - the search keyboard on iPhone pushed the card up and showed the Admin below it: backdrop covers the large viewport and turns white while typing, the card tracks the visual viewport (admin.js syncSheetViewport), the floating tabs hide above the keyboard like WhatsApp. */
@media (max-width: 780px) {
  body.rm-admin .messages-sheet { bottom: auto; height: auto; min-height: 100lvh; align-items: flex-start; }
  body.rm-admin .messages-sheet-card { margin: 0; }
  body.rm-admin .messages-sheet.is-keyboard-open { background: #fff; transition: none; }
  body.rm-admin .messages-sheet.is-keyboard-open .messages-sheet-tabs { display: none; }
  body.rm-admin .messages-sheet.is-keyboard-open .messages-sheet-body { padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  body.rm-admin .messages-sheet, body.rm-admin .messages-sheet-card { transition: none; }
}
/* 17 Oct 2026 (Mensagens speed): rows outside the viewport skip style, layout and paint (250+ rows in the page list and
   the sheet); `auto` keeps each row's last real height, so the scrollbar does not jump. The tab bar's glows and sparkles
   hold still while the list scrolls under the glass (admin.js adds .is-scrolling for 180 ms after the last scroll). */
body.rm-admin .message-threads > .message-thread { content-visibility: auto; contain-intrinsic-size: auto 77px; }
body.rm-admin .messages-sheet-tabs.is-scrolling::before,
body.rm-admin .messages-sheet-tabs.is-scrolling::after,
body.rm-admin .messages-sheet-tabs.is-scrolling .messages-sheet-spark { animation-play-state: paused; }
/* 15 Sep 19:40 - webhook-driven reservation refresh: slim gold bar at the top while a pass runs (no banners). */
body.rm-admin .rm-sync-bar { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 3000; height: 3px; overflow: hidden; background: rgba(199, 164, 92, .16); pointer-events: none; }
body.rm-admin .rm-sync-bar::before { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 45%; border-radius: 3px; background: linear-gradient(90deg, rgba(199, 164, 92, 0), #c29a4b 35%, #e3c681 65%, rgba(199, 164, 92, 0)); animation: rm-sync-slide 1.15s ease-in-out infinite; }
@keyframes rm-sync-slide { 0% { left: -45%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { body.rm-admin .rm-sync-bar::before { left: 0; width: 100%; animation: none; opacity: .75; } }
/* 15 Sep 20:30, revised 22:45 - desktop: the reservation modal continues the docked
   chat. Both run the full height of the window (the owner saw grey bands above and
   below a capped panel), square corners and no right border, so the pair reads as
   one extension of the right rail. Phones are untouched (min-width gate). */
@media (min-width: 1181px) {
  body.rm-admin.rm-chat-joined.rm-chat-docked #guesty-chat-modal { display: flex; align-items: stretch; }
  body.rm-admin.rm-chat-joined.rm-chat-docked #guesty-chat-modal .guesty-chat-card { height: 100vh; max-height: none; border-radius: 0; border-right: 0; border-left: 1px solid #e6e9ef; box-shadow: none; }
  body.rm-admin.rm-chat-joined.rm-chat-docked #checkin-modal { align-items: stretch; justify-items: end; padding: 0; }
  body.rm-admin.rm-chat-joined.rm-chat-docked #checkin-modal .modal-card { height: 100vh; max-height: 100vh; margin: 0; border-right: 0; border-radius: 0; box-shadow: -26px 0 54px -34px rgba(12, 24, 44, .45); }
  body.rm-admin.rm-chat-joined.rm-chat-docked #checkin-modal .modal-card .modal-head { border-radius: 0; }
}
/* 16 Sep 03:55 - people rows: the document/photo/avatar buttons take their own
   line, so the name, the role pill and "Ativo na portaria" keep the full width and
   stop breaking mid-word next to the docked chat (owner screenshot). */
body.rm-admin .checkin-person { grid-template-columns: 44px minmax(0, 1fr); row-gap: 9px; align-items: start; }
body.rm-admin .checkin-person .checkin-person-avatar { align-self: center; }
body.rm-admin .checkin-person .checkin-person-files { grid-column: 1 / -1; }
body.rm-admin .checkin-person-tags .face-role-tag,
body.rm-admin .checkin-person-tags .status-badge { white-space: nowrap; }
body.rm-admin .checkin-person-copy strong { line-height: 1.3; }
body.rm-admin .checkin-person-copy small { line-height: 1.35; }

/* 16 Sep 04:10 - owner: "Área do hóspede" leaves the body and becomes a gold button
   in the footer, before WhatsApp. It copies the guest link and the shared copy
   feedback turns it into "Copiado". */
body.rm-admin .checkin-modal-card .modal-actions #checkin-copy-link.checkin-guest-link-button { width: auto; min-width: 0; flex: 0 0 auto; padding: 0 12px; border: 0; color: #3f2f0c; background: linear-gradient(135deg, #e0c579, #c39b3f); box-shadow: 0 6px 16px -12px rgba(120, 90, 20, .9); font-size: 11.5px; white-space: nowrap; }
body.rm-admin .checkin-modal-card .modal-actions #checkin-copy-link.checkin-guest-link-button i { display: inline-block; margin: 0 6px 0 0; font-size: 14px; line-height: 1; }
body.rm-admin .checkin-modal-card .modal-actions #checkin-copy-link.checkin-guest-link-button:hover { color: #2d2107; background: linear-gradient(135deg, #e8d193, #cda74a); }
body.rm-admin .checkin-modal-card .modal-actions #checkin-copy-link.checkin-guest-link-button:disabled { color: #8b8574; background: #efe7d3; box-shadow: none; }
body.rm-admin .checkin-modal-card .modal-actions #checkin-copy-link.checkin-guest-link-button.is-copied { color: #1f4d33; background: linear-gradient(135deg, #cfe6d5, #a9d3b6); }

/* 16 Sep 04:30 - owner: the two people actions sit centred under the list, and the
   note under the access codes is gone (removed in admin.js). */
body.rm-admin .checkin-modal-card .checkin-people-actions { justify-content: center; }
body.rm-admin .checkin-modal-card .checkin-people-actions small { flex: 1 0 100%; text-align: center; }
@media (max-width: 620px) {
  body.rm-admin .checkin-modal-card .checkin-people-actions .button { flex: 0 1 auto; }
}

/* 16 Sep 04:55 - owner: standing on its own, the reservation panel had no border at
   all (0px none), so its right edge read as a cut. It now carries a real border on
   every side; attached to the chat it stays flat on the seam side. */
body.rm-admin .checkin-modal-card { border: 1px solid var(--rm-line); }
body.rm-admin.rm-chat-joined.rm-chat-docked #checkin-modal .modal-card { border-right: 0; }

/* 16 Sep 20:00 - Consultas as the Reservas table (owner: "just like the reservation table").
   The table carries the reservation-table classes; only the inquiry extras live here. */
body.rm-admin .inquiry-table .inquiry-count-col { width: 84px; }
body.rm-admin .inquiry-table .inquiry-price-col { width: 136px; }
body.rm-admin .inquiry-table .inquiry-action-col { width: 150px; }
body.rm-admin .inquiry-row-meta { display: block; margin-top: 2px; overflow: hidden; color: #8b93a1; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .inquiry-card-extra { display: none; }
body.rm-admin .inquiry-price { color: var(--rm-primary); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.rm-admin .inquiry-row-actions { display: flex; align-items: center; gap: 6px; }
body.rm-admin .inquiry-row-actions .reservation-row-action { flex: 1; width: auto; min-width: 0; }
body.rm-admin .inquiry-row-actions .inquiry-whatsapp { flex: none; width: 34px; min-width: 34px; min-height: 34px; padding: 0; justify-content: center; color: #1f8f55; }
body.rm-admin .inquiry-row-actions .inquiry-whatsapp i { margin: 0; font-size: 16px; }
@media (max-width: 780px) {
  body.rm-admin .inquiry-table tbody td:nth-child(2) .inquiry-row-meta { margin-top: 3px; font-size: 12px; }
  body.rm-admin .inquiry-table tbody td:nth-child(5)::after { content: none; }
  body.rm-admin .inquiry-table tbody td:nth-child(5) .inquiry-card-extra { display: inline; }
  body.rm-admin .inquiry-table tbody td:nth-child(7) .inquiry-price { color: #10243e; font-size: 15px; font-weight: 750; }
}

/* 16 Sep 17:40 - Calendário: apartments as rows, days as columns from today, a bar
   per stay inset so a same-day changeover shows both, cleaning dot per unit. The
   palette is Madalena navy and gold instead of the wallboard colours. */
body.rm-admin .calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 12px; }
body.rm-admin .calendar-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
body.rm-admin .calendar-key { display: inline-flex; align-items: center; gap: 6px; color: #5b6472; font-size: 11.5px; font-weight: 600; }
body.rm-admin .calendar-swatch { width: 14px; height: 10px; border-radius: 3px; }
body.rm-admin .calendar-swatch.is-direct { background: #16304d; }
body.rm-admin .calendar-swatch.is-airbnb { background: #b8544e; }
body.rm-admin .calendar-swatch.is-booking { background: #33507d; }
body.rm-admin .calendar-swatch.is-other { background: #7b8595; }
body.rm-admin .calendar-turnover-key { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1px solid #c39b3f; border-radius: 50%; background: #fff; color: #a9832f; font-size: 10px; }
body.rm-admin .calendar-dot { width: 9px; height: 9px; border-radius: 50%; background: #c7ccd4; }
body.rm-admin .calendar-dot.is-clean { background: #2f7d5c; }
body.rm-admin .calendar-dot.is-dirty { background: #c04f45; }
body.rm-admin .calendar-dot.is-unknown { background: #c7ccd4; }
body.rm-admin .calendar-range { display: flex; align-items: center; gap: 6px; }
body.rm-admin .calendar-range span { min-width: 124px; color: #16304d; font-size: 12.5px; font-weight: 650; text-align: center; }
body.rm-admin .calendar-toolbar { position: relative; z-index: 8; }
body.rm-admin .calendar-filter-wrap { position: relative; }
body.rm-admin .calendar-filter-toggle { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
body.rm-admin .calendar-filter-toggle.is-active { border-color: #c39b3f; background: #fbf5e8; color: #75591f; }
body.rm-admin .calendar-filter-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 20; width: min(260px, calc(100vw - 24px)); max-height: min(65vh, 440px); overflow: auto; padding: 12px; border: 1px solid #e2e4e8; border-radius: 12px; background: #fff; box-shadow: 0 16px 36px rgba(16, 36, 62, .16); }
body.rm-admin .calendar-filter-menu[hidden] { display: none; }
body.rm-admin .calendar-filter-menu fieldset { display: grid; gap: 2px; margin: 0 0 11px; padding: 0; border: 0; }
body.rm-admin .calendar-filter-menu legend { margin-bottom: 5px; color: #16304d; font-size: 12px; font-weight: 750; }
body.rm-admin .calendar-filter-menu label { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 3px 6px; border-radius: 6px; color: #37475a; font-size: 12px; cursor: pointer; }
body.rm-admin .calendar-filter-menu label:hover { background: #f5f7fa; }
body.rm-admin .calendar-filter-menu input { accent-color: #a9832f; }
body.rm-admin .calendar-filter-clear { width: 100%; padding: 8px; border: 1px solid #e2e4e8; border-radius: 7px; background: #fff; color: #16304d; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
body.rm-admin .calendar-filter-clear:hover { background: #f5f7fa; }

body.rm-admin .calendar-shell { --cal-unit-w: 132px; --cal-days: 7; --cal-row-h: 44px; padding: 0; overflow: hidden; }
body.rm-admin .calendar-head,
body.rm-admin .calendar-row { display: grid; grid-template-columns: var(--cal-unit-w) repeat(var(--cal-days), minmax(0, 1fr)); }
body.rm-admin .calendar-head { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--rm-line); background: #f7f8fa; }
body.rm-admin .calendar-unit-head { display: flex; align-items: center; padding: 0 12px; color: #8b93a1; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
body.rm-admin .calendar-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 7px 2px; border-left: 1px solid #eef0f4; }
body.rm-admin .calendar-day small { color: #8b93a1; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
body.rm-admin .calendar-day strong { color: #16304d; font-size: 13px; font-weight: 650; }
body.rm-admin .calendar-day.is-weekend { background: #f3f5f9; }
body.rm-admin .calendar-day.is-today { background: linear-gradient(180deg, #f7ecd2, #f2e3bf); }
body.rm-admin .calendar-day.is-today strong { color: #6f5710; }
body.rm-admin .calendar-rows { display: block; }
body.rm-admin .calendar-row { position: relative; min-height: var(--cal-row-h); border-top: 1px solid #eef0f4; }
body.rm-admin .calendar-row:first-child { border-top: 0; }
body.rm-admin .calendar-unit { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #fff; }
body.rm-admin .calendar-unit-code { color: #16304d; font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }
body.rm-admin .calendar-cell { border-left: 1px solid #eef0f4; }
body.rm-admin .calendar-cell.is-weekend { background: #fafbfd; }
body.rm-admin .calendar-cell.is-today { background: #fdf8ec; }
body.rm-admin .calendar-stay { position: absolute; top: 50%; z-index: 4; display: flex; align-items: center; height: 26px; padding: 0 8px; border: 0; border-radius: 6px; color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateY(-50%); box-shadow: 0 4px 10px -8px rgba(12, 24, 44, .8); cursor: pointer; }
body.rm-admin .calendar-stay.is-direct { background: linear-gradient(135deg, #1d3c5f, #16304d); }
body.rm-admin .calendar-stay.is-airbnb { background: linear-gradient(135deg, #c4605a, #a84a44); }
body.rm-admin .calendar-stay.is-booking { background: linear-gradient(135deg, #3a5a89, #2b4570); }
body.rm-admin .calendar-stay.is-other { background: linear-gradient(135deg, #868f9d, #6c7684); }
body.rm-admin .calendar-stay.is-continuing { border-top-left-radius: 0; border-bottom-left-radius: 0; }
body.rm-admin .calendar-stay.is-ongoing { border-top-right-radius: 0; border-bottom-right-radius: 0; }
body.rm-admin .calendar-stay:hover { filter: brightness(1.08); }
body.rm-admin .calendar-turnover { position: absolute; top: 50%; z-index: 6; display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid #c39b3f; border-radius: 50%; background: #fff; color: #a9832f; font-size: 10px; line-height: 1; transform: translate(-50%, -50%); }

@media (max-width: 780px) {
  body.rm-admin .calendar-shell { --cal-unit-w: 92px; --cal-row-h: 40px; }
  body.rm-admin .calendar-toolbar { padding: 10px 12px; }
  body.rm-admin .calendar-legend { gap: 8px 12px; }
  body.rm-admin .calendar-stay { height: 23px; font-size: 11px; padding: 0 6px; }
  body.rm-admin .calendar-range span { min-width: 104px; }
  body.rm-admin .calendar-range { flex-wrap: wrap; justify-content: flex-end; }
}

/* 17 Sep 2026 (theme110) - Mensagens R1: stored timeline with a fixed history row, real
   Airbnb/WhatsApp logos (Simple Icons, CC0, embedded as CSS masks - never hotlinked), copy
   button and WhatsApp ticks on bubbles, logo-only route chips with the invite states, and
   roomier conversation rows with a red unread balloon on the avatar and grey times. */
body.rm-admin .guesty-chat-list { overflow-anchor: none; }
body.rm-admin .guesty-chat-history { display: flex; align-items: center; justify-content: center; gap: 8px; height: 34px; min-height: 34px; margin: 0 0 2px; color: #8b93a1; font-size: 11.5px; }
body.rm-admin .guesty-chat-history-start { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .72); color: #7b8494; font-weight: 600; }
body.rm-admin .guesty-chat-history-error { color: #a4462b; font-weight: 600; }
body.rm-admin .guesty-chat-history-retry,
body.rm-admin .guesty-chat-empty-retry { display: inline-flex; align-items: center; min-height: 26px; height: 26px; margin: 0; padding: 0 10px; border: 1px solid #d9dee6; border-radius: 999px; background: #fff; color: #16304d; font-size: 11.5px; font-weight: 650; letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer; }
body.rm-admin .guesty-chat-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; }
body.rm-admin .guesty-chat-history-spinner,
body.rm-admin .guesty-chat-channel-spinner { display: inline-block; flex: none; width: 16px; height: 16px; border: 2px solid rgba(22, 48, 77, .18); border-top-color: #16304d; border-radius: 50%; box-sizing: border-box; animation: rm-chat-spin .8s linear infinite; }
body.rm-admin .guesty-chat-channel-spinner { width: 13px; height: 13px; margin-left: 2px; }
body.rm-admin .guesty-chat-channel-spinner[hidden] { display: none; }
@keyframes rm-chat-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  body.rm-admin .guesty-chat-history-spinner,
  body.rm-admin .guesty-chat-channel-spinner { animation-duration: 2.4s; }
}
body.rm-admin .brand-logo { display: inline-block; flex: none; width: 14px; height: 14px; margin: 0; vertical-align: middle; background-color: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; }
body.rm-admin .brand-logo.is-airbnb { background-color: #FF385C; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.001 18.275c-1.353-1.697-2.148-3.184-2.413-4.457-.263-1.027-.16-1.848.291-2.465.477-.71 1.188-1.056 2.121-1.056s1.643.345 2.12 1.063c.446.61.558 1.432.286 2.465-.291 1.298-1.085 2.785-2.412 4.458zm9.601 1.14c-.185 1.246-1.034 2.28-2.2 2.783-2.253.98-4.483-.583-6.392-2.704 3.157-3.951 3.74-7.028 2.385-9.018-.795-1.14-1.933-1.695-3.394-1.695-2.944 0-4.563 2.49-3.927 5.382.37 1.565 1.352 3.343 2.917 5.332-.98 1.085-1.91 1.856-2.732 2.333-.636.344-1.245.558-1.828.609-2.679.399-4.778-2.2-3.825-4.88.132-.345.395-.98.845-1.961l.025-.053c1.464-3.178 3.242-6.79 5.285-10.795l.053-.132.58-1.116c.45-.822.635-1.19 1.351-1.643.346-.21.77-.315 1.246-.315.954 0 1.698.558 2.016 1.007.158.239.345.557.582.953l.558 1.089.08.159c2.041 4.004 3.821 7.608 5.279 10.794l.026.025.533 1.22.318.764c.243.613.294 1.222.213 1.858zm1.22-2.39c-.186-.583-.505-1.271-.9-2.094v-.03c-1.889-4.006-3.642-7.608-5.307-10.844l-.111-.163C15.317 1.461 14.468 0 12.001 0c-2.44 0-3.476 1.695-4.535 3.898l-.081.16c-1.669 3.236-3.421 6.843-5.303 10.847v.053l-.559 1.22c-.21.504-.317.768-.345.847C-.172 20.74 2.611 24 5.98 24c.027 0 .132 0 .265-.027h.372c1.75-.213 3.554-1.325 5.384-3.317 1.829 1.989 3.635 3.104 5.382 3.317h.372c.133.027.239.027.265.027 3.37.003 6.152-3.261 4.802-6.975z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.001 18.275c-1.353-1.697-2.148-3.184-2.413-4.457-.263-1.027-.16-1.848.291-2.465.477-.71 1.188-1.056 2.121-1.056s1.643.345 2.12 1.063c.446.61.558 1.432.286 2.465-.291 1.298-1.085 2.785-2.412 4.458zm9.601 1.14c-.185 1.246-1.034 2.28-2.2 2.783-2.253.98-4.483-.583-6.392-2.704 3.157-3.951 3.74-7.028 2.385-9.018-.795-1.14-1.933-1.695-3.394-1.695-2.944 0-4.563 2.49-3.927 5.382.37 1.565 1.352 3.343 2.917 5.332-.98 1.085-1.91 1.856-2.732 2.333-.636.344-1.245.558-1.828.609-2.679.399-4.778-2.2-3.825-4.88.132-.345.395-.98.845-1.961l.025-.053c1.464-3.178 3.242-6.79 5.285-10.795l.053-.132.58-1.116c.45-.822.635-1.19 1.351-1.643.346-.21.77-.315 1.246-.315.954 0 1.698.558 2.016 1.007.158.239.345.557.582.953l.558 1.089.08.159c2.041 4.004 3.821 7.608 5.279 10.794l.026.025.533 1.22.318.764c.243.613.294 1.222.213 1.858zm1.22-2.39c-.186-.583-.505-1.271-.9-2.094v-.03c-1.889-4.006-3.642-7.608-5.307-10.844l-.111-.163C15.317 1.461 14.468 0 12.001 0c-2.44 0-3.476 1.695-4.535 3.898l-.081.16c-1.669 3.236-3.421 6.843-5.303 10.847v.053l-.559 1.22c-.21.504-.317.768-.345.847C-.172 20.74 2.611 24 5.98 24c.027 0 .132 0 .265-.027h.372c1.75-.213 3.554-1.325 5.384-3.317 1.829 1.989 3.635 3.104 5.382 3.317h.372c.133.027.239.027.265.027 3.37.003 6.152-3.261 4.802-6.975z'/%3E%3C/svg%3E"); }
body.rm-admin .brand-logo.is-whatsapp { background-color: #25D366; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E"); }
body.rm-admin .platform-logo { flex: none; margin: 0; color: #6b7482; font-size: 14px; line-height: 1; }
/* Bubble footer: copy (guest), logo, time, notes, ticks (WhatsApp outgoing). */
body.rm-admin .guesty-chat-bubble small.guesty-chat-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 6px; margin-top: 4px; }
body.rm-admin .guesty-chat-logo { display: inline-flex; flex: none; align-items: center; justify-content: center; line-height: 1; }
body.rm-admin .guesty-chat-logo .brand-logo,
body.rm-admin .guesty-chat-logo .platform-logo { width: 13px; height: 13px; font-size: 13px; }
body.rm-admin .guesty-chat-message.is-host .guesty-chat-logo { width: 19px; height: 19px; border-radius: 50%; background: rgba(255, 255, 255, .88); }
body.rm-admin .guesty-chat-message.is-host .guesty-chat-logo .platform-logo { color: #4b5563; }
body.rm-admin .guesty-chat-caption { padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 700; letter-spacing: .02em; }
body.rm-admin .guesty-chat-note.is-failed { color: #ffd6c9; font-weight: 700; }
body.rm-admin .guesty-chat-message.is-invite .guesty-chat-bubble { box-shadow: inset 0 0 0 1px rgba(37, 211, 102, .55), 0 1px 2px rgba(16, 24, 40, .18); }
body.rm-admin .guesty-chat-tick { display: inline-flex; align-items: center; gap: 3px; color: rgba(255, 255, 255, .7); line-height: 1; }
body.rm-admin .guesty-chat-tick i { margin: 0; font-size: 14px; line-height: 1; }
body.rm-admin .guesty-chat-tick.is-read { color: #34B7F1; }
body.rm-admin .guesty-chat-tick.is-failed { color: #ff6b61; }
body.rm-admin .guesty-chat-tick.is-unconfirmed { color: #f5b942; }
body.rm-admin .guesty-chat-tick-text { font-size: 10.5px; font-weight: 700; }
body.rm-admin .guesty-chat-copy { display: inline-flex; align-items: center; justify-content: center; width: 32px; min-width: 32px; height: 32px; min-height: 32px; margin: -9px auto -9px -8px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #6b7482; opacity: .55; letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer; }
body.rm-admin .guesty-chat-copy i { margin: 0; font-size: 15px; line-height: 1; }
body.rm-admin .guesty-chat-copy:hover,
body.rm-admin .guesty-chat-copy:focus-visible { opacity: .9; background: rgba(16, 24, 40, .05); }
body.rm-admin .guesty-chat-copy.is-copied { color: #1f8f4f; opacity: .9; }
body.rm-admin .guesty-chat-copy.is-copy-failed { color: #a4462b; opacity: .9; }
/* Route chips: logo only, active = filled tint + ring; closed WhatsApp may be an invite. */
body.rm-admin .guesty-chat-channels { padding: 5px 5px 5px 5px; }
body.rm-admin .guesty-chat-channel { justify-content: center; gap: 6px; min-width: 38px; height: 32px; min-height: 32px; padding: 0 10px; }
body.rm-admin .guesty-chat-channel .brand-logo { width: 17px; height: 17px; }
body.rm-admin .guesty-chat-channel.is-active,
body.rm-admin .guesty-chat-channel.is-active:hover { border-color: #16304d; background: #eef3f9; color: #16304d; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #16304d; }
body.rm-admin .guesty-chat-channel.is-airbnb.is-active { background: #fff0f3; }
body.rm-admin .guesty-chat-channel.is-whatsapp.is-active { background: #e7f9ee; }
body.rm-admin .guesty-chat-channel.is-active .guesty-chat-channel-clock { color: #14804a; }
body.rm-admin .guesty-chat-channel.is-active .guesty-chat-channel-clock.is-soon { color: #b7791f; }
body.rm-admin .guesty-chat-channel[aria-disabled="true"] { opacity: .42; box-shadow: none; }
body.rm-admin .guesty-chat-channel[aria-disabled="true"]:hover { border-color: #d9dee6; background: #fff; }
body.rm-admin .guesty-chat-channel.is-invite { cursor: pointer; }
body.rm-admin .guesty-chat-channel.is-pending { cursor: progress; }
/* Conversation rows: taller, avatar with the red unread balloon, inset divider, grey times. */
body.rm-admin .message-thread { gap: 14px; min-height: 84px; padding: 12px 16px; border-bottom: 0; }
body.rm-admin .messages-sheet-body .message-thread { padding-left: 16px; }
body.rm-admin .message-thread-avatar-wrap { position: relative; flex: none; display: inline-flex; overflow: visible; }
body.rm-admin .message-thread-avatar { width: 52px; height: 52px; }
body.rm-admin .message-thread-unread { position: absolute; top: -3px; right: -5px; display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; box-sizing: border-box; font-variant-numeric: tabular-nums; }
body.rm-admin .message-thread-unread[hidden] { display: none; }
body.rm-admin .message-thread-body { position: relative; align-self: stretch; justify-content: center; gap: 4px; }
body.rm-admin .message-thread-body::after { content: ""; position: absolute; left: 0; right: -16px; bottom: -12px; height: 1px; background: #eef0f4; pointer-events: none; }
body.rm-admin .message-thread:last-child .message-thread-body::after { display: none; }
body.rm-admin .message-thread-time,
body.rm-admin .message-thread.is-unread .message-thread-time { color: #8b93a1; font-weight: 500; }
body.rm-admin .message-thread.is-unread .message-thread-name { font-weight: 800; }
body.rm-admin .message-thread.is-unread .message-thread-preview { color: #10243e; font-weight: 650; }
body.rm-admin .message-thread-stay { color: #a3aab5; font-size: 11.5px; }
body.rm-admin .message-thread-preview .brand-logo,
body.rm-admin .message-thread-preview .platform-logo { width: 15px; height: 15px; font-size: 15px; }
body.rm-admin .message-thread-window-wrap { flex: none; display: inline-flex; align-items: center; gap: 3px; color: #1f8f4f; }
body.rm-admin .message-thread-window-wrap[hidden] { display: none; }
body.rm-admin .message-thread-window-wrap i { margin: 0; font-size: 13px; line-height: 1; }
body.rm-admin .message-thread-window-wrap .message-thread-window { width: auto; min-width: 38px; text-align: left; }
body.rm-admin .messages-sheet-tabs button b { background: #e5484d; }
body.rm-admin .guesty-chat-rail-badge { background: #e5484d; }
body.rm-admin .guesty-chat-rail-badge[hidden] { display: none; }
/* 17 Sep 2026: the EZVIZ action error box had these rules as an inline style attribute, which the Admin CSP (style-src 'self') blocks.
   z-index 110 (fix-check round 1): above the reservation/search modals (100), below the Mensagens sheet (118), the chat sheet/dock (125)
   and the media viewer (130), so it never covers the phone chat composer (syncSheetViewport also hides it behind a settled sheet). */
body.rm-admin #ezviz-action-error { position: fixed; bottom: 24px; left: 24px; right: 24px; z-index: 110; max-width: 720px; margin: auto; padding: 16px; }
/* 17 Sep 2026 - quick messages: a "+" left of the composer opens a small glass menu above it (inserts a text, never sends).
   The menu is absolutely placed, so opening it never moves the composer or the conversation. */
body.rm-admin .guesty-chat-composer { position: relative; }
body.rm-admin .guesty-chat-quick { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 42px; min-height: 42px; margin: 0; padding: 0; border: 1px solid #e3e6ec; border-radius: 50%; background: #f4f6f9; color: #16304d; letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body.rm-admin .guesty-chat-quick[hidden] { display: none; }
body.rm-admin .guesty-chat-quick i { margin: 0; font-size: 22px; line-height: 1; transition: transform .18s ease; }
body.rm-admin .guesty-chat-quick:hover { border-color: #cfd6e0; background: #eaeef4; }
body.rm-admin .guesty-chat-quick:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(201, 165, 90, .35); }
body.rm-admin .guesty-chat-quick.is-open,
body.rm-admin .guesty-chat-quick.is-open:hover { border-color: #16304d; background: #16304d; color: #f3dfb0; }
body.rm-admin .guesty-chat-quick.is-open i { transform: rotate(45deg); }
body.rm-admin .guesty-chat-attach { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 42px; min-height: 42px; margin: 0; padding: 0; border: 1px solid #e3e6ec; border-radius: 50%; background: #f4f6f9; color: #16304d; letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body.rm-admin .guesty-chat-attach[hidden] { display: none; }
body.rm-admin .guesty-chat-attach i { margin: 0; font-size: 20px; line-height: 1; }
body.rm-admin .guesty-chat-attach:hover { border-color: #cfd6e0; background: #eaeef4; }
body.rm-admin .guesty-chat-attach:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(201, 165, 90, .35); }
body.rm-admin .guesty-chat-attach:disabled { opacity: .45; cursor: not-allowed; }
body.rm-admin .guesty-chat-media { display: block; width: min(280px, 70vw); max-width: 100%; margin: 4px 0 6px; border: 0; border-radius: 10px; background: rgba(0, 0, 0, .07); color: inherit; box-shadow: none; }
body.rm-admin button.guesty-chat-media { height: auto; min-height: 0; padding: 0; overflow: hidden; cursor: zoom-in; }
body.rm-admin .guesty-chat-media img { display: block; width: 100%; max-height: 330px; object-fit: cover; }
body.rm-admin button.guesty-chat-media.is-video,
body.rm-admin button.guesty-chat-media.is-audio { display: flex; align-items: center; gap: 10px; width: min(240px, 70vw); min-height: 46px; padding: 10px 12px; border: 1px solid rgba(22, 48, 77, .12); color: #16304d; font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
body.rm-admin button.guesty-chat-media.is-video > i:first-child,
body.rm-admin button.guesty-chat-media.is-audio > i:first-child { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 0; border-radius: 50%; background: #16304d; color: #f3dfb0; font-size: 16px; }
body.rm-admin button.guesty-chat-media.is-video > span,
body.rm-admin button.guesty-chat-media.is-audio > span { flex: 1; min-width: 0; }
body.rm-admin button.guesty-chat-media.is-video > i:last-child,
body.rm-admin button.guesty-chat-media.is-audio > i:last-child { margin: 0; font-size: 18px; }
body.rm-admin .guesty-chat-media-status { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; margin: 4px 0 6px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.45); color: #697386; font-size: 12px; font-weight: 650; }
body.rm-admin .guesty-chat-media-status i { margin: 0; font-size: 16px; }
body.rm-admin .guesty-chat-media-status:not(.is-failed) i { animation: rm-media-spin .9s linear infinite; }
body.rm-admin .guesty-chat-media-status.is-failed { color: #a4462b; }
body.rm-admin .guesty-chat-transcript { width: min(280px, 70vw); max-width: 100%; margin: 0 0 7px; padding: 9px 11px; border: 1px solid rgba(22, 48, 77, .11); border-radius: 9px; background: rgba(255, 255, 255, .52); color: #283e57; }
body.rm-admin .guesty-chat-transcript > span { display: block; margin: 0 0 3px; color: #796126; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
body.rm-admin .guesty-chat-transcript > p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: inherit; font-size: 12px; line-height: 1.42; }
body.rm-admin .guesty-chat-transcript.is-pending { display: inline-flex; align-items: center; gap: 7px; width: auto; min-height: 30px; padding: 6px 9px; color: #697386; font-size: 11px; font-weight: 650; }
body.rm-admin .guesty-chat-transcript.is-pending > span { margin: 0; color: inherit; font: inherit; letter-spacing: 0; text-transform: none; }
body.rm-admin .guesty-chat-transcript.is-pending i { margin: 0; animation: rm-media-spin .9s linear infinite; }
@keyframes rm-media-spin { to { transform: rotate(360deg); } }
body.rm-admin .guesty-chat-quick-menu { position: absolute; left: 10px; bottom: calc(100% + 8px); z-index: 6; display: grid; gap: 2px; width: min(340px, calc(100% - 20px)); max-height: min(75dvh, 500px); margin: 0; padding: 6px; overflow-y: auto; scrollbar-width: none; border: 1px solid rgba(16, 36, 62, .08); border-radius: 16px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 16px 36px -14px rgba(16, 24, 40, .4), 0 0 0 .5px rgba(16, 36, 62, .1), inset 0 1px 1px rgba(255, 255, 255, .85); transform-origin: 26px 100%; animation: rm-quick-menu-in .14s ease-out; overscroll-behavior: contain; }
body.rm-admin .guesty-chat-quick-menu[hidden] { display: none; }
@keyframes rm-quick-menu-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
body.rm-admin .guesty-chat-quick-item { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 50px; height: auto; margin: 0; padding: 7px 10px 7px 7px; border: 0; border-radius: 11px; background: transparent; color: #10243e; font: inherit; line-height: 1.25; text-align: left; letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
body.rm-admin .guesty-chat-quick-item:hover,
body.rm-admin .guesty-chat-quick-item:focus-visible,
body.rm-admin .guesty-chat-quick-item:focus { outline: 0; background: #eef2f7; }
body.rm-admin .guesty-chat-quick-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #16304d; color: #f3dfb0; }
body.rm-admin .guesty-chat-quick-icon i { margin: 0; font-size: 17px; line-height: 1; }
body.rm-admin .guesty-chat-quick-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
body.rm-admin .guesty-chat-quick-copy strong { overflow: hidden; color: #10243e; font-size: 13.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .guesty-chat-quick-copy small { display: none; }
body.rm-admin .guesty-chat-quick-menu::-webkit-scrollbar { display: none; }
body.rm-admin .guesty-chat-quick-item[aria-disabled="true"] { cursor: default; }
body.rm-admin .guesty-chat-quick-item[aria-disabled="true"]:hover { background: transparent; }
body.rm-admin .guesty-chat-quick-item[aria-disabled="true"]:focus-visible,
body.rm-admin .guesty-chat-quick-item[aria-disabled="true"]:focus { background: #f4f5f7; }
body.rm-admin .guesty-chat-quick-item:focus-visible { box-shadow: inset 0 0 0 2px #c29a4b; }
body.rm-admin .guesty-chat-quick-item[aria-disabled="true"] .guesty-chat-quick-icon { background: #eceef2; color: #a3aab5; }
body.rm-admin .guesty-chat-quick-item[aria-disabled="true"] .guesty-chat-quick-copy strong { color: #8b93a1; }
body.rm-admin .guesty-chat-quick-item[aria-disabled="true"] .guesty-chat-quick-reason { color: #a3aab5; }
@media (max-width: 780px) {
  body.rm-admin .guesty-chat-quick-menu { left: 8px; width: min(340px, calc(100% - 16px)); }
}
@media (prefers-reduced-motion: reduce) {
  body.rm-admin .guesty-chat-quick-menu { animation: none; }
  body.rm-admin .guesty-chat-quick i { transition: none; }
}
/* 17 Sep 2026 13:10 (theme112) - owner: tell active, future, inquiry and ended rows apart at a glance.
   Tag colour + coloured state word with a dot: Hospedado blue, Reserva gold, Consulta purple, Saiu grey. */
body.rm-admin .message-thread-status { font-weight: 700; }
body.rm-admin .message-thread-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
body.rm-admin .message-thread.is-hosted .message-thread-unit { background: #dfe9f7; color: #1d4a86; }
body.rm-admin .message-thread.is-hosted .message-thread-status { color: #1d4a86; }
body.rm-admin .message-thread.is-future .message-thread-unit { background: #fbeecf; color: #8a6a1f; }
body.rm-admin .message-thread.is-future .message-thread-status { color: #9a7424; }
body.rm-admin .message-thread.is-inquiry .message-thread-unit { background: #efe8fb; color: #5b3a93; }
body.rm-admin .message-thread.is-inquiry .message-thread-status { color: #5b3a93; }
body.rm-admin .message-thread.is-ended .message-thread-unit { background: #eef0f4; color: #7b8491; }
body.rm-admin .message-thread.is-ended .message-thread-status { color: #8b93a1; }
/* 17 Sep 2026 13:15 (theme114) - owner, with the Buscar reservas screenshot: same colours as the search
   cards - current stay gold (#c9a55a -> #a9832f, white text), future stay navy (#1e3a5f -> #193452, gold text). */
body.rm-admin .message-thread.is-hosted .message-thread-unit { background: linear-gradient(135deg, #c9a55a, #a9832f); color: #fff; }
body.rm-admin .message-thread.is-hosted .message-thread-status { color: #a9832f; }
body.rm-admin .message-thread.is-future .message-thread-unit { background: linear-gradient(135deg, #1e3a5f, #193452); color: #f3dfb0; }
body.rm-admin .message-thread.is-future .message-thread-status { color: #1e3a5f; }

/* 19 Sep 2026 (theme115) - approved WhatsApp notices with per-recipient report. */
body.rm-admin .message-toolbar .search-field { flex: 1; min-width: 0; max-width: 680px; }
body.rm-admin .message-toolbar > .button { flex: none; }
body.rm-admin .messages-sheet-broadcast { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; height: 34px; margin: 0 0 0 auto; padding: 0 12px; border: 0; border-radius: 999px; background: #16304d; color: #f3dfb0; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer; }
body.rm-admin .messages-sheet-broadcast i { margin: 0; font-size: 15px; }
body.rm-admin .broadcast-modal { z-index: 128; }
body.rm-admin .broadcast-modal-card { width: min(760px, 100%); }
body.rm-admin .broadcast-body { display: grid; gap: 18px; }
body.rm-admin .broadcast-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 180px; color: #6b7482; font-size: 13px; }
body.rm-admin .broadcast-loading.hidden { display: none; }
body.rm-admin .broadcast-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
body.rm-admin .broadcast-fields label:last-child:nth-child(odd) { grid-column: 1 / -1; }
body.rm-admin .broadcast-preview { margin: 16px 0 20px; padding: 14px 16px; border: 1px solid #dfe4eb; border-radius: 14px; background: #f4f8f4; }
body.rm-admin .broadcast-preview > span { display: block; margin-bottom: 7px; color: #6b7482; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
body.rm-admin .broadcast-preview p { margin: 0; color: #253348; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
body.rm-admin .broadcast-recipient-head,
body.rm-admin .broadcast-report-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
body.rm-admin .broadcast-recipient-head h3,
body.rm-admin .broadcast-report-head h3 { margin: 2px 0 0; color: #10243e; font-size: 18px; }
body.rm-admin .broadcast-recipient-head > strong { flex: none; color: #16304d; font-size: 12px; }
body.rm-admin .broadcast-cost-note { margin: 5px 0 10px; color: #7b8491; font-size: 11.5px; line-height: 1.4; }
body.rm-admin .broadcast-recipients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 280px; padding: 2px; overflow-y: auto; overscroll-behavior: contain; }
body.rm-admin .broadcast-recipient { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 10px 12px; border: 1px solid #e2e6ec; border-radius: 12px; background: #fff; cursor: pointer; }
body.rm-admin .broadcast-recipient:has(input:checked) { border-color: #b99042; background: #fffaf0; box-shadow: inset 0 0 0 1px rgba(185, 144, 66, .2); }
body.rm-admin .broadcast-recipient input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #16304d; }
body.rm-admin .broadcast-recipient > span { display: grid; flex: 1; min-width: 0; gap: 2px; }
body.rm-admin .broadcast-recipient strong { color: #10243e; font-size: 13px; }
body.rm-admin .broadcast-recipient small { overflow: hidden; color: #6b7482; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .broadcast-recipient > i { flex: none; margin: 0; color: #25a95b; font-size: 18px; }
body.rm-admin .broadcast-skipped-wrap { margin-top: 10px; border: 1px solid #e5e8ed; border-radius: 12px; background: #fafbfc; }
body.rm-admin .broadcast-skipped-wrap summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: #6b7482; font-size: 12px; font-weight: 700; cursor: pointer; }
body.rm-admin .broadcast-skipped-wrap summary small { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: auto; border-radius: 999px; background: #e9edf2; color: #4b5563; }
body.rm-admin .broadcast-skipped { display: grid; gap: 1px; padding: 0 12px 10px; }
body.rm-admin .broadcast-skipped-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 8px; padding: 7px 0; border-top: 1px solid #eceff3; color: #6b7482; font-size: 11.5px; }
body.rm-admin .broadcast-skipped-row strong { color: #4b5563; }
body.rm-admin .broadcast-skipped-row small { color: #a4462b; }
body.rm-admin .broadcast-error { min-height: 18px; margin: 10px 0 0; color: #a4462b; font-size: 12px; font-weight: 600; }
body.rm-admin .broadcast-report-totals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin: 16px 0; }
body.rm-admin .broadcast-report-totals > span { display: grid; gap: 2px; min-width: 0; padding: 9px 6px; border-radius: 10px; background: #f3f5f8; text-align: center; }
body.rm-admin .broadcast-report-totals strong { color: #10243e; font-size: 18px; font-variant-numeric: tabular-nums; }
body.rm-admin .broadcast-report-totals small { overflow: hidden; color: #6b7482; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .broadcast-report-totals .is-failed { background: #fff0ed; }
body.rm-admin .broadcast-report-totals .is-read,
body.rm-admin .broadcast-report-totals .is-delivered { background: #edf8f1; }
body.rm-admin .broadcast-report-items { display: grid; max-height: 430px; overflow-y: auto; border: 1px solid #e3e7ed; border-radius: 13px; overscroll-behavior: contain; }
body.rm-admin .broadcast-report-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 11px 13px; border-bottom: 1px solid #edf0f4; }
body.rm-admin .broadcast-report-row:last-child { border-bottom: 0; }
body.rm-admin .broadcast-report-row > span { display: grid; min-width: 0; gap: 2px; }
body.rm-admin .broadcast-report-row > span strong { color: #10243e; font-size: 13px; }
body.rm-admin .broadcast-report-row > span small { overflow: hidden; color: #6b7482; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .broadcast-report-row > div { display: grid; flex: 0 1 52%; justify-items: end; gap: 2px; text-align: right; }
body.rm-admin .broadcast-report-row > div b { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; color: #5d6877; font-size: 11.5px; }
body.rm-admin .broadcast-report-row .guesty-chat-tick { color: currentColor; }
body.rm-admin .broadcast-report-row .guesty-chat-tick.is-read { color: #1684b6; }
body.rm-admin .broadcast-report-row .guesty-chat-tick-text { display: none; }
body.rm-admin .broadcast-report-row > div small { color: #a4462b; font-size: 10.5px; line-height: 1.3; }
body.rm-admin .broadcast-report-row.is-read > div b,
body.rm-admin .broadcast-report-row.is-delivered > div b { color: #1f8f4f; }
body.rm-admin .broadcast-report-row.is-failed > div b { color: #a4462b; }
body.rm-admin .broadcast-report-row.is-pending > div b { color: #b7791f; }
@media (max-width: 780px) {
  body.rm-admin .message-toolbar { flex-direction: row; align-items: center; }
  body.rm-admin .message-toolbar > .button { min-width: 42px; padding: 0 12px; }
  body.rm-admin .message-toolbar > .button span { display: none; }
  body.rm-admin .messages-sheet-head h2 { font-size: 27px; }
  body.rm-admin .messages-sheet-broadcast span { display: none; }
  body.rm-admin .messages-sheet-broadcast { width: 36px; min-width: 36px; padding: 0; justify-content: center; }
  body.rm-admin .broadcast-modal { padding: 0; align-items: stretch; }
  body.rm-admin .broadcast-modal-card { width: 100%; min-height: 100dvh; max-height: 100dvh; border-radius: 0; }
  body.rm-admin .broadcast-modal-card .modal-head { padding-top: max(14px, env(safe-area-inset-top)); }
  body.rm-admin .broadcast-fields,
  body.rm-admin .broadcast-recipients { grid-template-columns: 1fr; }
  body.rm-admin .broadcast-report-totals { grid-template-columns: repeat(3, 1fr); }
  body.rm-admin .broadcast-report-items { max-height: none; }
  body.rm-admin .broadcast-skipped-row { grid-template-columns: 62px minmax(0, 1fr); }
  body.rm-admin .broadcast-skipped-row small { grid-column: 2; }
  body.rm-admin .broadcast-report-row > div { flex-basis: 48%; }
}

/* 26 Sep 2026: apartment and stay dates in the conversation header. */
body.rm-admin .guesty-chat-card .modal-head.guesty-chat-head { flex-wrap: wrap; }
body.rm-admin .guesty-chat-stay { flex: 0 0 100%; display: grid; grid-template-columns: .85fr 1fr 1fr; gap: 10px; padding: 10px 0 2px; border-top: 1px solid #eef0f4; }
body.rm-admin .guesty-chat-stay[hidden] { display: none; }
body.rm-admin .guesty-chat-stay > div { min-width: 0; display: grid; gap: 3px; }
body.rm-admin .guesty-chat-stay span { color: #818998; font-size: 10px; line-height: 1.2; }
body.rm-admin .guesty-chat-stay strong { color: #193452; font-size: 12px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
body.rm-admin .guesty-chat-stay > div:first-child strong { color: #a9832f; }

/* Madalena Admin — Channex Phase 1 (Imóveis, Calendário ARI, Integrações → Channex)
   Proposed additions to assets/materialize-madalena.css (append at the end, keep CRLF
   when merging). Every rule below exists only because no shipped rule covers the
   case; each one mirrors a shipped rule, cited by file and line of the replica build
   (.codex-staging/madalena-channex-replica-20261005/build). Nothing else is new:
   tables, badges, buttons, modals, forms, chips and the calendar shell reuse the
   existing classes unchanged. Load order: after materialize-madalena.css. */

/* 1. Free night content (price + rule markers). The shipped .calendar-cell
   (theme 2846) is an empty grid cell; the typography mirrors the day header
   .calendar-day small / strong (theme 2836–2837) and the muted key colour of
   .calendar-key (theme 2816). */
body.rm-admin .calendar-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; padding: 4px 2px; }
body.rm-admin .calendar-rate { color: #16304d; font-size: 11.5px; font-weight: 650; line-height: 1; white-space: nowrap; }
body.rm-admin .calendar-rules { display: inline-flex; align-items: center; gap: 3px; color: #a9832f; font-size: 10px; line-height: 1; }
body.rm-admin .calendar-rules i { font-size: 11px; }
body.rm-admin .calendar-rules small { color: #8b93a1; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* 2. Selectable night. Pointer/hover mirror the row hover of the tables
   (admin.css 316 `tbody tr:hover { background: #fbfcfe }`); the keyboard ring
   mirrors input:focus (admin.css 92: gold 3px ring). */
body.rm-admin .calendar-cell[role="button"] { cursor: pointer; }
body.rm-admin .calendar-cell[role="button"]:hover { background: #fbfcfe; }
body.rm-admin .calendar-cell[role="button"]:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px rgba(210, 170, 97, .2), inset 0 0 0 1px var(--gold-strong); }

/* 3. Selected night mirrors the checked radio card
   .access-kind input:checked + span (admin.css 539: navy border, #eef5ff). */
body.rm-admin .calendar-cell.is-selected,
body.rm-admin .calendar-cell.is-selected:hover { background: #eef5ff; box-shadow: inset 0 0 0 2px var(--rm-primary); }

/* 4. Closed night (availability 0 or stop sell) mirrors .status-badge.neutral
   (theme 463: #eeeef0 on var(--rm-text)). */
body.rm-admin .calendar-cell.is-closed { background: #eeeef0; }
body.rm-admin .calendar-cell.is-closed .calendar-rate { color: var(--rm-text); }

/* 5. Past or booked night is not editable; the dimming mirrors
   .code-card.revoked / .code-table tr.revoked (admin.css 391, theme 1030: opacity .58). */
body.rm-admin .calendar-cell.is-past { opacity: .58; }
body.rm-admin .calendar-cell.is-past[role="button"] { cursor: default; }
body.rm-admin .calendar-cell.is-past[role="button"]:hover { background: inherit; }

/* 6. Pending marker (change accepted by the PMS, not yet confirmed by Channex)
   mirrors the muted "Check-in pendente" colour of .reservation-card-status
   (theme 2028: #7b8494 with ri-time-line). */
body.rm-admin .calendar-pending { color: #7b8494; }

/* 7. Legend swatch for closed nights mirrors .calendar-swatch (theme 2817) with the
   neutral badge fill and the "unknown" dot border colour (theme 2826: #c7ccd4). */
body.rm-admin .calendar-swatch.is-closed { background: #eeeef0; box-shadow: inset 0 0 0 1px #c7ccd4; }
body.rm-admin .calendar-key > i.ri { font-size: 14px; color: #a9832f; }
body.rm-admin .calendar-key > i.ri.calendar-pending { color: #7b8494; }

/* 8. Desktop dock of the action panel. Exact mirror of the Guesty chat dock
   (theme 2494–2499): the panel pins to the right edge, the page keeps working
   and shifts left by --chat-dock-w (already defined on body.rm-admin ≥ 781px,
   theme 2495 and 2503). Phones keep the ordinary centred modal (admin.css 703). */
@media (min-width: 781px) {
  body.rm-admin #ari-panel { inset: 0 0 0 auto; width: var(--chat-dock-w); height: 100vh; min-height: 0; display: block; padding: 0; overflow: visible; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
  body.rm-admin #ari-panel.hidden { display: none !important; }
  body.rm-admin #ari-panel .modal-card { pointer-events: auto; width: var(--chat-dock-w); height: 100vh; max-height: none; margin: 0; border-radius: 0; border-left: 1px solid #e3e6ec; box-shadow: -18px 0 36px -24px rgba(16, 24, 40, .45); }
  body.rm-admin.rm-ari-docked .workspace { padding-right: var(--chat-dock-w); }
  body.rm-admin.rm-ari-docked .scroll-top-button { right: calc(var(--chat-dock-w) + 16px); }
}

/* 9. Occupancy stepper outside the reservation modal. The shipped input rule is
   scoped to .checkin-modal-card (theme 1431–1445); this is the same declaration
   scoped to the property modal. .checkin-slots-stepper / .checkin-slots-step
   themselves are global (theme 1428–1430) and need nothing. */
body.rm-admin #property-modal .checkin-slots-stepper input { width: 48px !important; min-height: 34px; height: 34px; padding: 0; border: 0 !important; border-radius: 0; box-shadow: none !important; text-align: center; font-size: 15px; font-weight: 650; -moz-appearance: textfield; }
body.rm-admin #property-modal .account-facts .checkin-slots-stepper { margin-top: 4px; }

/* 10. Wizard sections are plain <section> blocks inside the form; the gap between
   them mirrors the label spacing of the form (admin.css 79: margin-bottom 18px). */
body.rm-admin #property-form > section + section { margin-top: 18px; }

/* 11. Phones: the account modal pins its fact tiles to three columns with
   !important (theme 1870 and 1883), which clips the −/+ steppers and the review
   tiles at 390 px. This restores the generic phone rule of admin.css 743
   (.account-facts → one column at ≤ 480 px) for the property modal only. */
@media (max-width: 480px) {
  body.rm-admin #property-modal .account-facts { grid-template-columns: 1fr !important; }
}

/* ---- Property page (Imóvel view) -------------------------------------------- */

/* 12. Photo card states in the shipped gallery grid (.media-gallery-item, theme 2422).
   Dragged and "to be removed" cards dim like .code-card.revoked / tr.revoked
   (admin.css 391, theme 1030); the drop target and the cover take the checked
   looks that already exist: .access-kind input:checked + span (admin.css 539)
   and .broadcast-recipient:has(input:checked) (theme 3063). The card is an
   <article> here, not the gallery's button, so it keeps the default cursor. */
body.rm-admin .media-gallery-item.is-dragging,
body.rm-admin .media-gallery-item.is-removed { opacity: .58; }
body.rm-admin .media-gallery-item.is-drop-target { background: #eef5ff; box-shadow: inset 0 0 0 2px var(--rm-primary); }
body.rm-admin .media-gallery-item.is-cover { border-color: #b99042; background: #fffaf0; box-shadow: inset 0 0 0 1px rgba(185, 144, 66, .2); }
body.rm-admin article.media-gallery-item { cursor: default; }
body.rm-admin article.media-gallery-item[draggable="true"] { cursor: grab; }

/* 13. The caption field and the action row sit inside the gallery card's copy
   block (padding 8px, theme 2427); the form label spacing of admin.css 79 is too
   tall there, so the label takes the same 7px gap the picker hint uses
   (admin.css 545) and the action row keeps its shipped 11px top margin. */
body.rm-admin .media-gallery-copy label { margin: 6px 0 0; }
body.rm-admin .media-gallery-copy .code-actions { flex-wrap: wrap; }
/* The ↑ ↓ pair wraps as one unit; in the two-column phone grid (theme 2432) the row
   becomes Capa + ↑↓ on one line and Remover on the next. */
body.rm-admin .photo-move { display: inline-flex; flex: none; gap: 7px; }
@media (max-width: 520px) {
  body.rm-admin .media-gallery-copy .code-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  body.rm-admin .media-gallery-copy .code-actions .button { min-width: 0; padding-right: 10px; padding-left: 10px; }
  body.rm-admin .media-gallery-copy .code-actions .button.danger { grid-column: 1 / -1; }
}
/* The badge row wraps inside the narrow card like the calendar legend does (theme 2815). */
body.rm-admin .media-gallery-copy .chip-group { flex-wrap: wrap; overflow: visible; }

/* 14. Section tabs are the shipped filter chips in a .toolbar.card (admin.css
   239–246, theme 421–429); the pending glyph inside a chip mirrors the pending
   marker colour already used in the calendar (rule 6). The chip row wraps on a
   computer and scrolls on phones exactly like the chip groups do (admin.css 674). */
body.rm-admin #property-tabs { flex-wrap: wrap; }
@media (max-width: 780px) {
  body.rm-admin #property-tabs { flex-wrap: nowrap; }
}
body.rm-admin .filter-chip > i.calendar-pending { font-size: 12px; }
/* The icon stylesheet sets .ri { display: inline-block }, which beats the UA [hidden] rule;
   same fix the theme uses for its chat spinner (theme 2871: [hidden] { display: none }). */
body.rm-admin .filter-chip > i.calendar-pending[hidden] { display: none; }

/* 15. Sections and card rows (property page v2, 5 Oct 2026). A section is a grid
   with the dashboard rhythm (admin.css 201 / theme 381: 24 px; 16 px on phones,
   theme 577); two-column card rows mirror .integration-grid (admin.css 398; theme
   475) and collapse like it (admin.css 679). Each card is a flex column so its
   Salvar row (.modal-actions, admin.css 422) sits at the bottom of the row. */
body.rm-admin .property-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
body.rm-admin .property-section > * { min-width: 0; }
body.rm-admin .property-section > .stats-grid { margin: 0; }
body.rm-admin .property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
body.rm-admin .property-grid > .card { display: flex; flex-direction: column; min-width: 0; }
body.rm-admin .property-grid > .card > form.modal-body { display: flex; flex: 1; flex-direction: column; }
body.rm-admin .property-grid > .card > form.modal-body:last-child > .modal-actions { margin-top: auto; padding-top: 18px; }
body.rm-admin .property-grid > .card > form.modal-body:last-child > .form-error:not(.hidden) + .modal-actions { margin-top: 22px; }
body.rm-admin .property-section .history-head { margin-top: 0; }
body.rm-admin .property-section .card-head > .status-badge { flex: none; white-space: nowrap; }
@media (max-width: 980px) {
  body.rm-admin .property-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  body.rm-admin .property-section,
  body.rm-admin .property-grid { gap: 16px; }
  /* The "Aguardando Channex" badge drops under the card copy instead of squeezing it. */
  body.rm-admin .property-section .card-head { flex-wrap: wrap; }
}

/* 16. Hero. The dashboard .hero-card is reused as is (admin.css 181–187; theme
   369–380: navy gradient, gold ring, white h2, .eyebrow.light). The cover photo is
   a static <img> behind the copy (object-fit: cover like .checkin-summary-photo img,
   admin.css 482; only its src ever changes) under a scrim that copies the login
   screen overlay (admin.css 68–71) and eases to .28 on the right so the picture
   shows through while the shipped text colours keep their contrast. */
body.rm-admin .property-hero { min-height: 250px; align-items: flex-end; margin-bottom: 24px; }
body.rm-admin .property-hero > .property-hero-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
body.rm-admin .property-hero > .property-hero-photo[hidden] { display: none; }
body.rm-admin .property-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(9, 27, 49, .86), rgba(9, 27, 49, .1) 62%), linear-gradient(105deg, rgba(11, 28, 50, .92), rgba(11, 28, 50, .66) 46%, rgba(17, 49, 85, .28)); }
body.rm-admin .property-hero.has-photo::after { border-color: rgba(210, 170, 97, .2); }
body.rm-admin .property-hero-copy { display: grid; gap: 4px; min-width: 0; }
body.rm-admin .property-hero h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.15; overflow-wrap: anywhere; }
body.rm-admin .property-hero-address { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: rgba(255, 255, 255, .78); font-size: .875rem; }
body.rm-admin .property-hero-address i { flex: none; color: var(--rm-accent); font-size: 16px; }
body.rm-admin .property-hero-address span { min-width: 0; overflow-wrap: anywhere; }

/* 17. Hero chips mirror the glass .hero-date pill (admin.css 186–187: white at .08,
   hairline at .15, blur 8 px, gold icon). Tones use the theme tokens at low alpha —
   --rm-success #56a66d, --rm-info #2684c7, --rm-accent #d2aa61, --rm-danger #d94b48
   (theme 9–23) — with the light icon colours the Admin already uses on navy:
   #f1d69e (.eyebrow.light, admin.css 76), #ffd6cf (theme 1527), #c9d6e6 (theme 1526). */
body.rm-admin .property-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
body.rm-admin .property-hero-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; margin: 0; padding: 0 12px 0 10px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .08); font: inherit; font-size: 12px; font-weight: 650; line-height: 1; letter-spacing: 0; text-transform: none; white-space: nowrap; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none; }
body.rm-admin .property-hero-chip i { font-size: 15px; color: var(--rm-accent); }
body.rm-admin .property-hero-chip.success { border-color: rgba(86, 166, 109, .55); background: rgba(86, 166, 109, .24); }
body.rm-admin .property-hero-chip.success i { color: #a7dfb8; }
body.rm-admin .property-hero-chip.info { border-color: rgba(38, 132, 199, .6); background: rgba(38, 132, 199, .26); }
body.rm-admin .property-hero-chip.info i { color: #c9d6e6; }
body.rm-admin .property-hero-chip.warning { border-color: rgba(210, 170, 97, .6); background: rgba(210, 170, 97, .22); }
body.rm-admin .property-hero-chip.warning i { color: #f1d69e; }
body.rm-admin .property-hero-chip.danger { border-color: rgba(217, 75, 72, .6); background: rgba(217, 75, 72, .26); }
body.rm-admin .property-hero-chip.danger i { color: #ffd6cf; }
body.rm-admin button.property-hero-chip { cursor: pointer; }
body.rm-admin button.property-hero-chip:hover { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .16); }
body.rm-admin button.property-hero-chip:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(210, 170, 97, .45); }

/* 18. Hero actions. Secondary buttons on the navy take the phone top bar's glass
   icon-button look (admin.css 655: white text, hairline at .2, white at .08); the
   primary call to action is the gold-on-navy button of the access row (theme 1530:
   #edc77e on #193452) with the warm shadow of .checkin-feature-icon (theme 1539). */
body.rm-admin .property-hero-actions { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
body.rm-admin .property-hero .button.secondary { border-color: rgba(255, 255, 255, .2); color: #fff; background: rgba(255, 255, 255, .08); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body.rm-admin .property-hero .button.secondary:hover:not(:disabled) { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .16); }
body.rm-admin .property-hero .button.primary { border-color: #edc77e; color: #193452; background: #edc77e; box-shadow: 0 4px 10px rgba(183, 133, 41, .25); }
body.rm-admin .property-hero .button.primary:hover:not(:disabled) { border-color: #f1d69e; color: #193452; background: #f1d69e; }
body.rm-admin .property-hero .button.primary i { color: #193452; }
@media (max-width: 780px) {
  /* The phone hero is already a column (admin.css 657); chips scroll like a chip group
     (admin.css 674) and the actions take the two-column grid of .payment-mode-actions
     (admin.css 685), the call to action spanning both columns. */
  body.rm-admin .property-hero { min-height: 0; margin-bottom: 16px; }
  body.rm-admin .property-hero-copy { width: 100%; }
  body.rm-admin .property-hero h2 { font-size: 1.5rem; }
  body.rm-admin .property-hero-badges { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  body.rm-admin .property-hero-chip { flex: 0 0 auto; }
  body.rm-admin .property-hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: 14px; }
  body.rm-admin .property-hero-actions .button { min-width: 0; padding-right: 10px; padding-left: 10px; font-size: 12px; }
  body.rm-admin .property-hero-actions .button.primary { grid-column: 1 / -1; }
}

/* 19. Read-only tiles (Código, Tipo de unidade, Moeda) and the occupancy tiles take
   the tinted strips the Admin already uses for facts: the lock modal's blue
   read-only grid (theme 1753–1764) and the account modal's warm facts strip
   (theme 1870–1874). The stepper input rule is the reservation modal's
   (theme 1431–1445), scoped to this page like rule 9 scopes it to the modal. */
body.rm-admin .property-readonly-grid { gap: 0; overflow: hidden; border: 1px solid #d6e2f0; border-radius: 12px; background: linear-gradient(135deg, #f3f7fc, #eaf1f9); }
body.rm-admin .property-readonly-grid .lock-readonly { padding: 10px 12px; }
body.rm-admin .property-readonly-grid .lock-readonly + .lock-readonly { border-left: 1px solid #d6e2f0; }
body.rm-admin .property-readonly-grid .lock-readonly > span { margin-bottom: 3px; color: #4d6380; font-size: 11px; font-weight: 600; }
body.rm-admin .property-readonly-grid .lock-readonly strong { display: block; overflow: hidden; color: #193452; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .property-occupancy { gap: 0; margin-bottom: 18px; overflow: hidden; border: 1px solid #eadfc6; border-radius: 12px; background: #fffaf0; }
body.rm-admin .property-occupancy > div { min-height: 0; padding: 10px 12px; border: 0; border-radius: 0; background: none; }
body.rm-admin .property-occupancy > div + div { border-left: 1px solid #eadfc6; }
body.rm-admin .property-occupancy small { margin-bottom: 6px; color: #8a6a24; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
body.rm-admin [data-page="property"] .checkin-slots-stepper input { width: 48px !important; min-height: 34px; height: 34px; padding: 0; border: 0 !important; border-radius: 0; box-shadow: none !important; text-align: center; font-size: 15px; font-weight: 650; -moz-appearance: textfield; }
body.rm-admin [data-page="property"] .credential-heading { margin-bottom: 10px; }
@media (max-width: 780px) {
  body.rm-admin .property-readonly-grid { grid-template-columns: 1fr 1fr; }
  /* Three tiles do not fit a 116 px stepper at 375 px: each occupancy becomes a row
     with the label left and the stepper right, the reservation modal's own
     .checkin-slots-field arrangement (theme 1427). */
  body.rm-admin .property-occupancy { grid-template-columns: 1fr; }
  body.rm-admin .property-occupancy > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; }
  body.rm-admin .property-occupancy > div + div { border-left: 0; border-top: 1px solid #eadfc6; }
  body.rm-admin .property-occupancy small { margin: 0; }
}

/* 20. Channex fact tiles (ids, webhook, last sync) take the same blue read-only grid
   (theme 1753–1764); the inner hairlines follow the three columns of .account-facts
   (admin.css 581) and its one phone column (admin.css 743). */
body.rm-admin #property-channex-facts { gap: 0; overflow: hidden; border: 1px solid #d6e2f0; border-radius: 12px; background: linear-gradient(135deg, #f3f7fc, #eaf1f9); }
body.rm-admin #property-channex-facts > div { min-height: 0; padding: 11px 12px; border: 0; border-top: 1px solid #d6e2f0; border-left: 1px solid #d6e2f0; border-radius: 0; background: none; }
body.rm-admin #property-channex-facts > div:nth-child(-n+3) { border-top: 0; }
body.rm-admin #property-channex-facts > div:nth-child(3n+1) { border-left: 0; }
body.rm-admin #property-channex-facts small { margin-bottom: 4px; color: #4d6380; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
body.rm-admin #property-channex-facts strong { color: #193452; font-size: 12px; font-weight: 650; line-height: 1.3; }
@media (max-width: 780px) {
  body.rm-admin #property-channex-facts > div { border-left: 0; border-top: 1px solid #d6e2f0; }
  body.rm-admin #property-channex-facts > div:first-child { border-top: 0; }
}

/* 21. Amenities on a page: the broadcast grid (theme 3061) is sized for a 620 px modal
   (two columns, 280 px inner scroller); here it has no inner scroll and four columns
   on a wide screen, three on a laptop, the shipped two on phones. Permissions share
   the same two-column rhythm (.confirm-row, admin.css 415). */
body.rm-admin #property-amenities .broadcast-recipients { max-height: none; overflow: visible; grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.rm-admin #property-amenities .table-section-head:first-child { margin-top: 0; }
body.rm-admin .property-permissions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
body.rm-admin .property-permissions .confirm-row { margin: 0; }
@media (max-width: 1180px) {
  body.rm-admin #property-amenities .broadcast-recipients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  body.rm-admin #property-amenities .broadcast-recipients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.rm-admin .property-permissions { grid-template-columns: 1fr; }
}

/* 22. Photo grid on a page: three columns is the 680 px gallery modal (theme 2415,
   2421); the full-width card takes four on a wide screen. */
@media (min-width: 1181px) {
  body.rm-admin #property-photos.media-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Madalena Admin — Mensagens automáticas module (Phase-1 automations).
   Proposed addition to assets/materialize-madalena.css (appended after the Imóveis/Calendário
   block by tools/madalena_channex_automation_patches.py, keeping CRLF). Only one rule exists
   because no shipped selector covers the case; it mirrors a shipped declaration, cited by file
   and line of the replica build (.codex-staging/madalena-channex-replica-20261005/build).
   Everything else on both views — tables, badges, buttons, cards, form fields, checkbox rows,
   notices, the preview block and the Configurações state card — reuses the existing classes
   unchanged. */

/* 1. The ten variable chips sit in a .chip-group inside the message card. The shipped .chip-group
   (admin.css 244) is a non-wrapping flex row sized for 3–4 filter chips in a toolbar, and on
   phones it scrolls sideways (admin.css 674); ten chips would spill out of the card on a
   computer. Wrapping mirrors .calendar-legend (theme 2815: `display: flex; flex-wrap: wrap`),
   the shipped wrapping chip row of the Calendário toolbar. Phones wrap too: scrolling ten
   insert buttons sideways would hide most of them. */
body.rm-admin #automation-variables { flex-wrap: wrap; }

/* Madalena Admin — Mensagens via Channex + Avaliações automáticas (Channex S4 UI, 6 Oct 2026).
   Appended to assets/materialize-madalena.css after the Mensagens automáticas rule by
   tools/madalena_channex_messages_patches.py (line endings kept). The rules are the ones of
   DESIGN-MESSAGES-CHANNEX.md §2.3 (nine) and DESIGN-AUTO-REVIEWS.md §12 (two), each a copy of a
   shipped rule of the captured Admin (cited as theme:line = materialize-madalena.css, admin.css:line),
   plus the few integration rules the real page needs (marked "integration"). */

/* 1. The shipped stay strip (#guesty-chat-stay, theme 3121–3126) with four columns for Channex threads
   (gap 10→6px, padding 10→7px, fourth "Valor" cell); values never wrap (head title rule, theme 2392);
   a replaced date or price is struck in the strip's caption colour (theme 3124). */
body.rm-admin .guesty-chat-stay > div[hidden] { display: none; }
body.rm-admin .guesty-chat-stay.is-four { grid-template-columns: .8fr 1fr 1fr 1.05fr; gap: 6px; padding: 7px 0 1px; }
body.rm-admin .guesty-chat-stay.is-four strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; }
body.rm-admin .guesty-chat-stay.is-four s { margin-left: 4px; color: #818998; font-weight: 500; text-decoration: line-through; }
@media (max-width: 480px) {
  body.rm-admin .guesty-chat-stay.is-four { gap: 5px; }
  body.rm-admin .guesty-chat-stay.is-four strong { font-size: 11.5px; }
}

/* 2. The second line of the head (only while a decision or a review is open): a full-width flex row
   (the head is flex-wrap, theme 3120); text in the strip's value typography (theme 3125); the inline
   deadline is the shipped timer (.guesty-chat-window, theme 2617); the pills are the Consultas row
   button (.reservation-row-action, admin.css 332) in the chat chip's pill shape (theme 2597). */
body.rm-admin .guesty-chat-line { flex: 0 0 100%; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; min-height: 34px; padding: 2px 0 0; }
body.rm-admin .guesty-chat-line[hidden] { display: none; }
body.rm-admin .guesty-chat-line > strong { flex: 0 1 auto; min-width: 0; overflow: hidden; color: #193452; font-size: 12px; font-weight: 650; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
body.rm-admin .guesty-chat-line > strong:empty { display: none; }
body.rm-admin .guesty-chat-line > strong.is-error { color: #a4462b; white-space: normal; }
body.rm-admin .guesty-chat-line > strong i { margin-right: 2px; color: #b99042; vertical-align: -1px; }
body.rm-admin .guesty-chat-line > .guesty-chat-window { flex: 0 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; }
body.rm-admin .guesty-chat-line > .guesty-chat-window > span { overflow: hidden; text-overflow: ellipsis; }
body.rm-admin .guesty-chat-line > .guesty-chat-window[hidden] { display: none; }
body.rm-admin .guesty-chat-line > .inquiry-row-actions { flex: none; gap: 6px; margin-left: auto; }
body.rm-admin .guesty-chat-line .reservation-row-action { flex: none; display: inline-flex; align-items: center; gap: 5px; width: auto; min-width: 0; height: 34px; min-height: 34px; padding: 0 13px 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; box-shadow: none; }
body.rm-admin .guesty-chat-line .reservation-row-action i { margin: 0; font-size: 15px; }
body.rm-admin .guesty-chat-line .reservation-row-action.primary i { color: #f3dfb0; }
body.rm-admin .guesty-chat-line.has-three .guesty-chat-window > span { display: none; }

/* 3. Narrow phones (admin.css 743 breakpoint): the same pills, slightly tighter, labels never shortened. */
@media (max-width: 480px) {
  body.rm-admin .guesty-chat-line > .inquiry-row-actions { gap: 5px; }
  body.rm-admin .guesty-chat-line .reservation-row-action { padding: 0 11px 0 9px; font-size: 12px; }
  body.rm-admin .guesty-chat-line.has-three .reservation-row-action { padding: 0 9px 0 8px; font-size: 11.5px; gap: 4px; }
}

/* 4. Timeline event pill: the day pill (theme 2344–2345) with an icon, a bold summary and the time,
   in the modal title navy (theme 2363). */
body.rm-admin .guesty-chat-day.is-system span { display: inline-flex; align-items: center; gap: 5px; max-width: 92%; color: #16304d; font-weight: 600; text-align: center; }
body.rm-admin .guesty-chat-day.is-system span i { flex: none; font-size: 13px; }
body.rm-admin .guesty-chat-day.is-system span b { font-weight: 700; }

/* 5. Non-image attachment: the audio/video card of the chat (button.guesty-chat-media, theme 2972–2973). */
body.rm-admin .guesty-chat-media.is-file { display: flex; align-items: center; gap: 8px; padding: 9px 10px; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
body.rm-admin .guesty-chat-media.is-file i:last-child { margin-left: auto; }

/* 6. Score steppers outside the reservation modal (theme 1431–1445 rescoped, as ui/channex.css rule 9):
   the guest-review modal of Mensagens and the two forms of Avaliações automáticas (DESIGN-AUTO-REVIEWS §12.2). */
body.rm-admin #guest-review-modal .checkin-slots-stepper input,
body.rm-admin #review-scores .checkin-slots-stepper input,
body.rm-admin #review-stay-modal .checkin-slots-stepper input { width: 48px !important; min-height: 34px; height: 34px; padding: 0; border: 0 !important; border-radius: 0; box-shadow: none !important; text-align: center; font-size: 15px; font-weight: 650; -moz-appearance: textfield; }
body.rm-admin #guest-review-modal label > .checkin-slots-stepper,
body.rm-admin #review-scores label > .checkin-slots-stepper,
body.rm-admin #review-stay-modal label > .checkin-slots-stepper { margin-top: 4px; }

/* 7. The route chip of a Booking.com thread shows the suitcase glyph at the size of the brand masks (theme 2916). */
body.rm-admin .guesty-chat-channel .platform-logo { font-size: 17px; }

/* 8. Docked chat on a mouse-driven screen (owner, 6 Oct: "the buttons from the chat look just too big"):
   head icon buttons 34→32px, avatar 40px, clip 42→32px, send 42→36px, channel pill 32→28px at 13px,
   decision pills 34→30px (the line keeps 30px in every state, nothing shifts). */
@media (pointer: fine) and (min-width: 781px) {
  body.rm-admin .guesty-chat-card .modal-head.guesty-chat-head .icon-button,
  body.rm-admin .guesty-chat-card .modal-head.guesty-chat-head .guesty-chat-collapse { width: 32px; min-width: 32px; height: 32px; font-size: 18px; }
  body.rm-admin .guesty-chat-card .modal-head.guesty-chat-head .guesty-chat-face-status { flex-basis: 32px; width: 32px; min-width: 32px; height: 32px; font-size: 16px; }
  body.rm-admin .guesty-chat-avatar { width: 40px; height: 40px; }
  body.rm-admin .guesty-chat-attach { width: 32px; min-width: 32px; height: 32px; min-height: 32px; font-size: 16px; }
  body.rm-admin .guesty-chat-send { width: 36px; min-width: 36px; height: 36px; min-height: 36px; }
  body.rm-admin .guesty-chat-channel { min-height: 28px; height: 28px; padding: 0 10px 0 8px; font-size: 13px; }
  body.rm-admin .guesty-chat-channel .brand-logo { width: 15px; height: 15px; }
  body.rm-admin .guesty-chat-channel .platform-logo { font-size: 15px; }
  body.rm-admin .guesty-chat-channels-label { font-size: 11px; }
  body.rm-admin .guesty-chat-line { min-height: 30px; }
  body.rm-admin .guesty-chat-line .reservation-row-action { height: 30px; min-height: 30px; padding: 0 12px 0 10px; font-size: 12.5px; }
  body.rm-admin .guesty-chat-line .reservation-row-action i { font-size: 14px; }
}

/* 9. Phones and touch screens keep the shipped ≥ 40px hit areas; only the channel pill gets a little smaller. */
@media (pointer: coarse), (max-width: 780px) {
  body.rm-admin .guesty-chat-channel { min-height: 30px; height: 30px; font-size: 12px; }
}

/* 10. DESIGN-AUTO-REVIEWS §12.1: the variable chips of the rule editor wrap inside the card (ui/automations/
   automations.css rule 1); the Airbnb tag chips of both review forms wrap the same way. */
body.rm-admin #review-variables,
body.rm-admin #review-tags,
body.rm-admin #review-stay-tags,
body.rm-admin #guest-review-tags { flex-wrap: wrap; }

/* 11. Integration: the dialogs opened from the chat or over the reservation modal stack above the chat
   sheet/dock (125), at the face-activity / media-gallery level (theme 2399, 2414). */
body.rm-admin .cx-dialog { z-index: 129; }

/* 12. Integration: a stay past its checkout opens the reservation modal reduced to its summary and the
   Channex cards (the shipped sections hold access codes and visitors of current stays only). */
body.rm-admin #checkin-modal.cx-review-only #checkin-form > :not(#checkin-reservation-summary):not(#cx-checkin-cards):not(.modal-actions):not(input) { display: none !important; }
body.rm-admin #checkin-modal.cx-review-only #checkin-copy-link,
body.rm-admin #checkin-modal.cx-review-only #checkin-whatsapp { display: none !important; }

/* 13. Integration: the reservation modal centres one-line card titles (theme 1665, "card titles only");
   the Channex cards carry a title and a note, so their copy stacks (title above the note). */
body.rm-admin .checkin-modal-card #cx-checkin-cards .checkin-feature-copy { flex-direction: column; align-items: flex-start; justify-content: center; }
body.rm-admin .checkin-modal-card #cx-checkin-cards .checkin-feature-copy strong { margin: 0 0 2px; }

/* Madalena Admin — Reservas diretas / Nova reserva (DESIGN-DIRECT-BOOKING.md §5, owner-approved 6 Oct 2026).
   Appended to assets/materialize-madalena.css by tools/madalena_channex_direct_patches.py (line endings kept).
   The rules are the prototype's (direct-booking-dashboard-prototype/proto.css §5.4, rules 2–11), each a copy of a
   shipped rule of the captured Admin (cited as theme:line = materialize-madalena.css, admin.css:line), minus the
   cleaning-fee rows the owner removed, plus the few integration rules the real page needs (marked "integration"). */

/* 1 (integration). Stacking: the Nova reserva card sits above the chat sheet/dock (theme 2334: 125, rail 126) so the
   "Criar reserva" quick action can open it from a phone chat; its compact dialogs stack like .cx-dialog (theme 3522). */
body.rm-admin .direct-modal { z-index: 127; }
body.rm-admin .direct-dialog { z-index: 129; }

/* 2. The Nova reserva card: the reservation modal width (admin.css .checkin-modal-card = 760px). */
body.rm-admin .direct-modal-card { width: min(760px, 100%); }
body.rm-admin .direct-modal-card .reservation-section-title { margin: 18px 0 10px; }
body.rm-admin .direct-modal-card .reservation-section-title:first-child { margin-top: 0; }
body.rm-admin .direct-modal-card .access-kind { margin-bottom: 12px; }
body.rm-admin .direct-modal-card #direct-mode-notice { margin: 0 0 14px; }
body.rm-admin .direct-modal-card .modal-head .status-badge { margin-left: auto; }

/* 3. Guest steppers inside the account facts tiles (theme .account-modal-card .account-facts; stepper admin.css .checkin-slots-stepper). */
body.rm-admin .direct-guests > div { display: grid; justify-items: start; gap: 6px; }
body.rm-admin .direct-guests .checkin-slots-stepper { margin: 0; }
body.rm-admin .direct-guests .checkin-slots-stepper input { width: 52px; min-height: 34px; height: 34px; padding: 0; border: 0; text-align: center; font-size: 14px; font-weight: 700; }
body.rm-admin .direct-guests .checkin-slots-step { width: 32px; height: 34px; }

/* 4. Quote block: the lock detail panel (admin.css .lock-detail-panel) with rows typed like .code-window. */
body.rm-admin .direct-quote { gap: 8px; margin: 0 0 14px; }
body.rm-admin .direct-quote p { margin: 0; }
body.rm-admin .direct-quote-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 12px; }
body.rm-admin .direct-quote-row strong { color: var(--navy); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
body.rm-admin .direct-quote-row small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; }
body.rm-admin .direct-quote-row.is-discount strong { color: var(--success); }
body.rm-admin .direct-quote-row.is-manual > span::after { content: " · manual"; color: var(--gold-strong); font-size: 10px; font-weight: 800; }
body.rm-admin .direct-quote-total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; }
body.rm-admin .direct-quote-total strong { font-size: 18px; }
body.rm-admin .direct-quote-meta { display: flex; flex-wrap: wrap; gap: 6px; }
body.rm-admin .direct-quote-nightly { margin-top: 2px; }
body.rm-admin .direct-quote-nightly summary { color: var(--navy-2); font-size: 11px; font-weight: 800; cursor: pointer; }
body.rm-admin .direct-quote-nightly ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; }
body.rm-admin .direct-quote-nightly li { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
body.rm-admin .direct-quote-nightly li b { color: var(--ink); font-weight: 600; }
body.rm-admin .direct-quote-refusal { display: flex; align-items: center; gap: 8px; color: var(--danger); font-size: 12px; font-weight: 700; }
body.rm-admin .direct-quote-refusal i { flex: none; font-size: 18px; }
body.rm-admin .direct-quote-note { color: var(--muted); font-size: 11px; font-weight: 600; }

/* 5. "Ajustes manuais": the collapsed recipients block (index.php 616 .broadcast-skipped-wrap) styled as the lock detail panel. */
body.rm-admin .direct-adjust { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
body.rm-admin .direct-adjust summary { display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
body.rm-admin .direct-adjust summary::-webkit-details-marker { display: none; }
body.rm-admin .direct-adjust summary i { color: var(--gold-strong); font-size: 17px; }
body.rm-admin .direct-adjust summary small { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 700; }
body.rm-admin .direct-adjust[open] summary { margin-bottom: 12px; }
body.rm-admin .direct-adjust textarea,
body.rm-admin .direct-manual-fields textarea { width: 100%; min-height: 56px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; resize: vertical; }
/* integration: the text font in every direct textarea (the browser default is monospace); sizes stay the theme's
   (16px on phones, theme 1171, so iOS does not zoom on focus). */
body.rm-admin .direct-modal-card textarea,
body.rm-admin .direct-dialog textarea { font-family: inherit; }
/* integration: the inline "Já recebido" fields reuse the mark-paid dialog's blocks (rule 7 spacing). */
body.rm-admin .direct-manual-fields { display: grid; gap: 12px; margin: 0 0 14px; }
body.rm-admin .direct-manual-fields .default-slots-intro,
body.rm-admin .direct-manual-fields .form-grid,
body.rm-admin .direct-manual-fields .confirm-row { margin: 0; }

/* 6. Payment view: four fact tiles (theme .account-modal-card .account-facts is forced to 3 columns). */
body.rm-admin .direct-modal-card .direct-facts { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; margin: 0 0 12px; }
body.rm-admin .direct-modal-card .direct-payment-details { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin-top: 12px; }
body.rm-admin .direct-modal-card .direct-payment-details > div { min-width: 0; background: #fff; }
body.rm-admin .direct-modal-card .direct-payment-details strong { font-size: 13px; overflow-wrap: anywhere; user-select: text; }
body.rm-admin .direct-modal-card .direct-summary { margin-bottom: 12px; }
body.rm-admin .direct-timer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--muted); font-size: 12px; font-weight: 600; }
body.rm-admin .direct-timer i { color: var(--gold-strong); font-size: 16px; }
body.rm-admin .direct-timer b { color: var(--navy); font-variant-numeric: tabular-nums; }
body.rm-admin .direct-timer b.is-soon { color: var(--danger); }
body.rm-admin .direct-timer.is-done { color: var(--success); }
body.rm-admin .direct-timer.is-done i { color: var(--success); }
body.rm-admin .direct-timer.is-off { color: var(--muted); }
body.rm-admin .direct-timer.is-off i { color: var(--muted); }

/* 7. Feature cards in the payment view: the reservation modal's feature card (theme .checkin-modal-card .checkin-feature-card). */
body.rm-admin .direct-modal-card .checkin-feature-card { display: block; margin: 0 0 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(16, 40, 69, .04); }
body.rm-admin .direct-modal-card .checkin-feature-card.hidden { display: none !important; }
body.rm-admin .direct-modal-card .checkin-feature-card .checkin-link-heading { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
body.rm-admin .direct-modal-card .checkin-feature-copy strong { display: block; color: var(--navy); font-size: 13px; }
body.rm-admin .direct-modal-card .checkin-feature-copy small { display: block; color: var(--muted); font-size: 10.5px; overflow-wrap: anywhere; }
body.rm-admin .direct-modal-card .checkin-link-field { margin-top: 12px; }
body.rm-admin .direct-modal-card .checkin-link-field input { font-size: 11px; }
body.rm-admin .direct-modal-card .checkin-link-actions { flex-wrap: wrap; justify-content: flex-start; }
body.rm-admin .direct-modal-card .checkin-link-actions .button { min-height: 36px; padding: 0 11px; font-size: 10px; text-decoration: none; }
body.rm-admin .direct-modal-card .checkin-link-actions a.button.is-disabled { opacity: .5; pointer-events: none; }
body.rm-admin .direct-modal-card .checkin-feature-card.is-done { border-color: #cfe5d8; background: #f6fbf8; }
body.rm-admin .direct-modal-card .checkin-feature-card.is-off { opacity: .55; }

/* 8. Pix block: the QR in the face-photo preview frame (admin.css .face-photo-preview), the code in the link field. */
body.rm-admin .direct-pix-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 12px; }
body.rm-admin .direct-pix-body.hidden { display: none !important; }
body.rm-admin .direct-pix-qr { display: grid; width: 150px; height: 150px; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
body.rm-admin .direct-pix-qr img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
body.rm-admin .direct-pix-body .checkin-link-field { margin: 0; }
body.rm-admin #direct-pix-actions { align-items: flex-end; }
body.rm-admin .direct-inline-field { display: grid; flex: 1 1 180px; gap: 4px; margin: 0; }
body.rm-admin .direct-inline-field span { color: var(--navy); font-size: 10px; font-weight: 800; }
body.rm-admin .direct-inline-field input { min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #bfd1e7; border-radius: 8px; color: var(--ink); background: #fff; font-size: 12px; }

/* 9. Reservas row: the pending clock next to the badge (admin.css .code-window typography) and the "Direta" tag. */
body.rm-admin .direct-clock { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0 6px; color: var(--muted); font-size: 9px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
body.rm-admin .direct-clock i { color: var(--gold-strong); font-size: 12px; }
body.rm-admin .direct-clock b { color: var(--navy); font-variant-numeric: tabular-nums; }
body.rm-admin .direct-clock b.is-soon { color: var(--danger); }
body.rm-admin .direct-source { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
/* integration: phone cards (theme 1931–2100, final areas "unit guest" / "in out" / "bar" / "slots form") — the hold has no
   visitor slots, so its "Direta" tag takes the footer's slots cell; the badge and the clock stay in the form cell. */
@media (max-width: 780px) {
  body.rm-admin .reservation-table tbody tr.is-direct-hold td:nth-child(5) { display: none !important; }
  body.rm-admin .reservation-table tbody tr.is-direct-hold td:nth-child(1) .direct-source { grid-area: slots; align-self: center; justify-self: start; margin: 12px 0 0 14px; padding: 3px 8px; border-radius: 999px; background: #eef2f7; color: #16304d; font-size: 9.5px; }
  body.rm-admin .reservation-table tbody tr.is-direct-hold td:nth-child(7) { display: flex !important; align-items: center; justify-content: flex-end; gap: 6px; }
  body.rm-admin .reservation-table tbody tr.is-direct-hold td:nth-child(7) .status-badge { display: inline-flex; }
  body.rm-admin .reservation-table tbody tr.is-direct-hold td:nth-child(7) .direct-clock { margin: 0; font-size: 11px; }
}

/* 10. Calendário: the hold is a dashed navy bar and legend swatch (DESIGN.md §4.1; bar = theme 2849 .calendar-stay). */
body.rm-admin .calendar-swatch.is-pending { border: 2px dashed #16304d; background: #fff; }
body.rm-admin .calendar-stay.is-pending { border: 2px dashed #16304d; color: #16304d; background: #fff; box-shadow: none; }
body.rm-admin .calendar-stay.is-pending:hover { background: #f3f6fb; filter: none; }
/* integration: "Nova reserva" in the action panel needs no weekday chips nor unit picker. */
body.rm-admin #ari-form.is-direct > .credential-heading,
body.rm-admin #ari-form.is-direct > #ari-weekdays,
body.rm-admin #ari-form.is-direct > #ari-units-wrap { display: none; }

/* 11. The action names carry this compact menu; disabled reasons remain available through aria-label. */

/* integration: "Alterar datas" — the Nova reserva stay grid and quote block inside a compact dialog (rules 2 and 4), and the
   last change / difference notice in the payment view (the #direct-mode-notice spacing). */
body.rm-admin #direct-move-modal .default-slots-intro,
body.rm-admin #direct-move-modal .form-grid { margin: 0 0 12px; }
body.rm-admin #direct-move-modal .reservation-section-title { margin: 4px 0 10px; }
body.rm-admin #direct-move-modal .provider-notice { margin: 0 0 12px; }
body.rm-admin .direct-modal-card #direct-move-notice { margin: 0 0 12px; }

/* 12. Step 2 of the date-first Nova reserva (owner, 6 Oct 2026) — "Apartamentos disponíveis": the action panel's unit rows
   (#ari-units, theme .broadcast-recipients / .broadcast-recipient: 2 columns, 280 px scroll, gold when checked, 1 column
   ≤ 780 px) as a radio list. The price block types like the quote rows (rule 4); the empty state (admin.css .empty-state)
   spans the grid; the pending spinner is the button's (admin.css .button.is-loading i); the hint chips are .status-badge
   neutral pills in the quote's meta row (rule 4). The grid is a cleared list, so the shipped rule keeps its hover/checked look. */
body.rm-admin .direct-units-heading { margin: 14px 0 8px; }
body.rm-admin .direct-units { margin: 0 0 10px; }
body.rm-admin .direct-units .broadcast-recipient > span strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .direct-units .direct-unit-price { flex: none; margin-left: auto; color: var(--navy); font-size: 13px; font-weight: 700; text-align: right; white-space: nowrap; }
body.rm-admin .direct-units .direct-unit-price small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; }
body.rm-admin .direct-units .empty-state { grid-column: 1 / -1; min-height: 110px; padding: 16px; }
body.rm-admin .direct-units .empty-state i.is-spinning { animation: spin .7s linear infinite; }
body.rm-admin .direct-units .empty-state .button { margin-top: 4px; }
body.rm-admin .direct-units-hints { margin: 0 0 14px; }
body.rm-admin .direct-units-hints.hidden { display: none !important; }
body.rm-admin .direct-quote-meta .button.compact { min-height: 26px; padding: 0 9px; font-size: 10px; }
/* "Alterar datas" (p29): the same unit list inside the compact dialog, one column, a little shorter. */
body.rm-admin #direct-move-modal .direct-units { grid-template-columns: 1fr; max-height: 232px; }
body.rm-admin #direct-move-modal .direct-units-heading { margin-top: 4px; }
body.rm-admin #direct-move-units-block.hidden { display: none !important; }

/* integration: settings dialog facts (theme .account-facts tiles, two per row in the compact card). */
body.rm-admin .direct-settings-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin: 0 0 12px; }

@media (max-width: 620px) {
  /* integration: the head badge and each card's badge/button wrap under the text instead of squeezing it. */
  body.rm-admin .direct-modal-card .modal-head { flex-wrap: wrap; row-gap: 8px; }
  body.rm-admin .direct-modal-card .modal-head > div { flex: 1 1 calc(100% - 56px); min-width: 0; }
  body.rm-admin .direct-modal-card #direct-booking-badge { order: 3; margin-left: 0; }
  body.rm-admin .direct-modal-card .checkin-feature-card .checkin-link-heading { grid-template-columns: 32px minmax(0, 1fr); row-gap: 8px; }
  body.rm-admin .direct-modal-card .checkin-feature-card .checkin-link-heading > :nth-child(3) { grid-column: 2; justify-self: start; }
  body.rm-admin .direct-modal-card .direct-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.rm-admin .direct-modal-card .direct-payment-details { grid-template-columns: 1fr !important; }
  body.rm-admin .direct-pix-body { grid-template-columns: 1fr; justify-items: center; }
  body.rm-admin .direct-pix-body .checkin-link-field { width: 100%; }
  body.rm-admin .direct-quote-nightly ul { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body.rm-admin .direct-guests { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body.rm-admin .direct-guests .checkin-slots-stepper input { width: 36px; }
  body.rm-admin .direct-guests .checkin-slots-step { width: 26px; }
}

/* Channex nav groups (6 Oct 2026): Segurança and Configurações reuse the Portaria dropdown. */
body.rm-admin .nav-group[data-nav-group="seguranca"] .nav-parent,
body.rm-admin .nav-group[data-nav-group="configuracoes"] .nav-parent { grid-template-columns: 25px 1fr 18px; }
body.rm-admin .nav-group[data-nav-group="seguranca"].open .nav-submenu { max-height: 164px; }
body.rm-admin .nav-group[data-nav-group="configuracoes"].open .nav-submenu { max-height: 124px; }
body.rm-admin .nav-subitem:has(> b) { grid-template-columns: 22px 1fr auto; }
body.rm-admin .nav-subitem > b {
  display: none;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 99px;
  color: var(--rm-text);
  background: #e9e9ec;
  font-size: .6875rem;
}
body.rm-admin .nav-subitem > b.has-value { display: grid; }
body.rm-admin .nav-subitem > b.warning { color: #805915; background: var(--rm-warning-soft); }
body.rm-admin .nav-subitem > b.danger { color: #fff; background: var(--rm-danger); }
body.rm-admin .nav-subitem.active > b:not(.warning):not(.danger) { color: var(--rm-primary); background: #fff; }
/* A closed group still shows that one of its pages needs attention. */
body.rm-admin .nav-group:not(.open):has(.nav-subitem > b.has-value.warning) .nav-parent::after,
body.rm-admin .nav-group:not(.open):has(.nav-subitem > b.has-value.danger) .nav-parent::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 34px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--rm-warning);
}
body.rm-admin .nav-group:not(.open):has(.nav-subitem > b.has-value.danger) .nav-parent::after { background: var(--rm-danger); }
@media (min-width: 1181px) {
  body.rm-admin .app-shell.sidebar-collapsed .nav-group:has(.nav-subitem > b.has-value.warning) .nav-parent::after,
  body.rm-admin .app-shell.sidebar-collapsed .nav-group:has(.nav-subitem > b.has-value.danger) .nav-parent::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    margin-top: 0;
    border-radius: 50%;
    background: var(--rm-warning);
  }
  body.rm-admin .app-shell.sidebar-collapsed .nav-group:has(.nav-subitem > b.has-value.danger) .nav-parent::after { background: var(--rm-danger); }
}
/* J-modal-scroll (12 Oct 2026; owner iPhone screenshot 12:44, Mensagens > Airbnb consulta > Enviar oferta especial):
   with a dialog open the page could still be dragged and a white strip showed under the dimmed backdrop (the iOS
   keyboard and the installed app move or shorten the fixed layer). Phones only, like the sheet fixes above
   (15 Sep 18:50, theme102-104); the white sheets and their keyboard tracking (admin.js syncSheetViewport) are unchanged.
   1. Any open modal or the Mensagens sheet keeps the page still: body overflow hidden (it propagates to the viewport,
      so the sticky top bar keeps its place; html overflow itself stays visible) and no rubber-band on the root.
   2. A dimmed dialog paints an opaque spread shadow past its own box (no layout change) in #787a83, the tone of its
      backdrop over white: whatever iOS reveals around it shows that one tone, never the page or a white sheet below
      it, and never a darker band (a translucent spread over the dimmed canvas of 3 would double the dimming).
   3. The canvas behind everything takes the same #787a83 while a dimmed dialog is the top layer. */
@media (max-width: 780px) {
  body.rm-admin:has(.modal:not(.hidden)) { overflow: hidden; }
  html:has(> body.rm-admin .modal:not(.hidden)),
  html:has(> body.rm-admin.rm-messages-open) { overscroll-behavior: none; }
  body.rm-admin .modal { overscroll-behavior: contain; }
  body.rm-admin .modal:not(#guesty-chat-modal):not(#search-modal) { box-shadow: 0 0 0 100vh #787a83; box-shadow: 0 0 0 100lvh #787a83; }
  html:not(.rm-sheet-open):has(> body.rm-admin .modal:not(.hidden):not(#guesty-chat-modal):not(#search-modal)) { background: #787a83; }
  html.rm-sheet-open:has(> body.rm-admin :is(.cx-dialog, .direct-modal, .direct-dialog, .broadcast-modal, .face-activity-modal, .media-gallery-modal, .media-viewer-modal):not(.hidden)),
  html.rm-sheet-open:has(> body.rm-admin :is(.cx-dialog, .direct-modal, .direct-dialog, .broadcast-modal, .face-activity-modal, .media-gallery-modal, .media-viewer-modal):not(.hidden)) body.rm-admin { background: #787a83 !important; }
}
/* /J-modal-scroll */
/* K (12 Oct 2026): cleaning state of the conversation's apartment in the chat header (palette of the Calendário dot) */
body.rm-admin .guesty-chat-clean-status { display: inline-flex; flex: 0 0 34px; align-items: center; justify-content: center; width: 34px; min-width: 34px; height: 34px; margin: 0; padding: 0; border: 1px solid currentColor; border-radius: 50%; box-sizing: border-box; font-size: 17px; line-height: 1; }
body.rm-admin .guesty-chat-clean-status.is-clean { color: #2f7d5c; background: #e9f7ef; }
body.rm-admin .guesty-chat-clean-status.is-dirty { color: #c04f45; background: #fdebed; }
body.rm-admin .guesty-chat-clean-status.is-unknown { color: #8a929e; background: #f3f4f6; }
body.rm-admin .guesty-chat-clean-status[hidden] { display: none; }
@media (pointer: fine) and (min-width: 781px) {
  body.rm-admin .guesty-chat-card .modal-head.guesty-chat-head .guesty-chat-clean-status { flex-basis: 32px; width: 32px; min-width: 32px; height: 32px; font-size: 16px; }
}

/* 14 Oct 2026: reservation source logo in its own compact column. */
body.rm-admin .reservation-table { min-width: 1180px; }
body.rm-admin .reservation-type-col { width: 88px; }
body.rm-admin .reservation-table th:nth-child(8),
body.rm-admin .reservation-table td.reservation-type-cell { text-align: center; }
body.rm-admin .reservation-type { display: inline-flex; align-items: center; justify-content: center; width: 78px; max-width: 100%; min-height: 28px; vertical-align: middle; }
body.rm-admin .reservation-type .brand-logo.is-airbnb { width: 23px; height: 23px; }
body.rm-admin .reservation-type img { display: block; width: 24px; height: 24px; object-fit: contain; }
body.rm-admin .reservation-type.is-other { color: #58677b; font-size: 11px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 780px) {
  body.rm-admin .reservation-table tbody tr {
    grid-template-areas:
      "unit guest guest"
      "avatar in out"
      "avatar bar bar"
      "avatar slots form"
      "avatar type type";
  }
  body.rm-admin .reservation-table tbody tr:not(:has(.reservation-card-avatar)) {
    grid-template-areas:
      "unit guest guest guest"
      "in in out out"
      "bar bar bar bar"
      "slots slots form form"
      "type type type type";
  }
  body.rm-admin .reservation-table tbody td:nth-child(8).reservation-type-cell { display: block; grid-area: type; justify-self: start; margin: 10px 0 0 2px; text-align: left; }
  body.rm-admin .reservation-table tbody tr:not(:has(.reservation-card-avatar)) td:nth-child(8).reservation-type-cell { margin-left: 12px; }
  body.rm-admin .reservation-table tbody td:nth-child(9) { display: none; }
  body.rm-admin .reservation-table tbody td:nth-child(9):has(.reservation-card-stay) { display: block; grid-area: bar; margin: 10px 0 0; }
  body.rm-admin .reservation-table tbody tr:not(:has(.reservation-card-avatar)) td:nth-child(9):has(.reservation-card-stay) { margin-left: 12px; }
  body.rm-admin .reservation-table tbody td:nth-child(9) .button { display: none !important; }
body.rm-admin .reservation-table tbody td:nth-child(9) .reservation-card-stay { display: flex; align-items: center; gap: 10px; }
}

/* 15 Oct 2026: compact, angled booking bands. The translucent fill leaves the
   day grid visible; a same-day departure/arrival has a narrow open gap. */
body.rm-admin .calendar-stay {
  height: 30px;
  gap: 6px;
  padding: 0 12px;
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
body.rm-admin .calendar-stay.is-continuing { clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
body.rm-admin .calendar-stay.is-ongoing { clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); }
body.rm-admin .calendar-stay.is-continuing.is-ongoing { clip-path: none; }
body.rm-admin .calendar-stay.is-direct { background: rgba(22, 48, 77, .88); }
body.rm-admin .calendar-stay.is-airbnb { background: rgba(143, 42, 48, .88); }
body.rm-admin .calendar-stay.is-booking { background: rgba(37, 69, 112, .88); }
body.rm-admin .calendar-stay.is-other { background: rgba(73, 86, 103, .88); }
body.rm-admin .calendar-stay.is-pending { background: rgba(255, 255, 255, .86); box-shadow: none; }
body.rm-admin .calendar-stay-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin .calendar-stay-icon { display: inline-grid; flex: 0 0 20px; place-items: center; width: 20px; height: 20px; overflow: hidden; border-radius: 50%; background: #fff; color: #16304d; font-size: 12px; }
body.rm-admin .calendar-stay-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.rm-admin .calendar-stay-icon .brand-logo.is-airbnb { width: 14px; height: 14px; }
body.rm-admin .calendar-booking-mark { color: #164f86; font-size: 12px; line-height: 1; }
body.rm-admin .calendar-cell.is-closed { background: repeating-linear-gradient(135deg, #e4e6ea 0 6px, #f2f3f5 6px 12px); }
body.rm-admin .calendar-swatch.is-closed { background: repeating-linear-gradient(135deg, #e4e6ea 0 4px, #f2f3f5 4px 8px); }
@media (max-width: 780px) {
  body.rm-admin .calendar-stay { height: 27px; gap: 4px; padding: 0 10px; }
  body.rm-admin .calendar-stay-icon { flex-basis: 17px; width: 17px; height: 17px; font-size: 10px; }
  body.rm-admin .calendar-stay-icon .brand-logo.is-airbnb { width: 12px; height: 12px; }
}

/* 15 Oct owner correction: keep booked-night prices visible above the band. */
body.rm-admin .calendar-shell { --cal-row-h: 58px; }
body.rm-admin .calendar-cell { justify-content: flex-start; padding-top: 5px; }
body.rm-admin .calendar-cell.is-booked { background: #f3f7fb; }
body.rm-admin .calendar-cell.is-booked.is-weekend { background: #eef3f9; }
body.rm-admin .calendar-cell.is-booked.is-today { background: #f9f1dd; }
body.rm-admin .calendar-cell.is-booked.is-closed { background: repeating-linear-gradient(135deg, #e4e6ea 0 6px, #f2f3f5 6px 12px); }
body.rm-admin .calendar-stay { top: 61%; height: 28px; clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
body.rm-admin .calendar-stay.is-continuing { clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
body.rm-admin .calendar-stay.is-ongoing { clip-path: polygon(3px 0, 100% 0, 100% 100%, 0 100%); }
body.rm-admin .calendar-stay-icon { position: relative; }
body.rm-admin .calendar-stay-icon .calendar-guest-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 780px) {
  body.rm-admin .calendar-shell { --cal-row-h: 54px; }
  body.rm-admin .calendar-stay { height: 26px; }
}

/* Owner correction: centre prices on available dates and use Airbnb coral-pink. */
body.rm-admin .calendar-shell { --cal-row-h: 44px; }
body.rm-admin .calendar-cell { justify-content: center; padding-top: 4px; }
body.rm-admin .calendar-stay { top: 50%; height: 30px; }
body.rm-admin .calendar-stay.is-airbnb { background: rgba(214, 33, 82, .9); }
@media (max-width: 780px) { body.rm-admin .calendar-shell { --cal-row-h: 40px; } body.rm-admin .calendar-stay { height: 27px; } }

/* A checkout leaves the right half of its date free. Keep that price beside the departing bar.
   An arrival, including a same-day turnover, is occupied and has no price. */
body.rm-admin .calendar-cell.is-departure:not(.is-booked) .calendar-rate,
body.rm-admin .calendar-cell.is-departure:not(.is-booked) .calendar-rules { width: 50%; flex: 0 0 auto; align-self: flex-end; text-align: center; justify-content: center; }

/* Automation rows: compact actions stay inside their own column. */
body.rm-admin .automation-table .automation-state-cell { width: 184px; min-width: 184px; vertical-align: middle; }
body.rm-admin .automation-table .automation-state-actions { display: grid; grid-template-columns: 72px 70px; align-items: center; gap: 8px; white-space: nowrap; }
body.rm-admin .automation-table .automation-state-action { flex: 0 0 auto; width: auto; min-width: 70px; min-height: 32px; height: 32px; padding: 0 10px; margin: 0; border-radius: 8px; box-shadow: none; font-size: 12px; line-height: 1; }
body.rm-admin .automation-table .automation-state-actions .status-badge { flex: 0 0 auto; margin: 0; font-size: 11px; }
/* WhatsApp coupon picker */
body.rm-admin .wl-coupon-modal[hidden], body.rm-admin .wl-coupon-modal [hidden] { display: none !important; }
body.rm-admin .wl-coupon-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 14px; box-sizing: border-box; }
body.rm-admin .wl-coupon-backdrop { position: absolute; inset: 0; background: rgba(13, 26, 43, .56); }
body.rm-admin .wl-coupon-sheet { position: relative; width: min(100%, 520px); max-height: calc(100dvh - 28px); overflow: auto; padding: 24px; box-sizing: border-box; border-radius: 18px; background: #fff; color: #26384c; box-shadow: 0 25px 70px rgba(8, 20, 40, .28); }
body.rm-admin .wl-coupon-sheet header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
body.rm-admin .wl-coupon-sheet header small { color: #92763c; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
body.rm-admin .wl-coupon-sheet h2 { margin: 3px 0 0; font-size: 23px; line-height: 1.2; }
body.rm-admin .wl-coupon-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: #eef1f5; color: #26384c; cursor: pointer; font-size: 20px; }
body.rm-admin .wl-coupon-intro { margin: 12px 0 18px; color: #697888; font-size: 14px; }
body.rm-admin .wl-coupon-error { margin: 8px 0; color: #aa3535; font-size: 13px; }
body.rm-admin .wl-coupon-list { display: grid; gap: 8px; max-height: 260px; overflow: auto; }
body.rm-admin .wl-coupon-list > p { margin: 8px 0; color: #697888; font-size: 14px; }
body.rm-admin .wl-coupon-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid #e1e5ea; border-radius: 12px; background: #fff; color: #26384c; text-align: left; cursor: pointer; }
body.rm-admin .wl-coupon-item:hover, body.rm-admin .wl-coupon-item:focus-visible { border-color: #b39551; background: #fffbf0; }
body.rm-admin .wl-coupon-item span { display: grid; gap: 2px; min-width: 0; }
body.rm-admin .wl-coupon-item strong { overflow-wrap: anywhere; font-size: 13px; }
body.rm-admin .wl-coupon-item small { color: #697888; font-size: 11px; }
body.rm-admin .wl-coupon-item b { flex-shrink: 0; font-size: 13px; }
body.rm-admin .wl-coupon-new { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; padding: 7px 0; border: 0; background: transparent; color: #143f70; font-weight: 700; cursor: pointer; }
body.rm-admin .wl-coupon-sheet form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 10px; }
body.rm-admin .wl-coupon-sheet form label { display: grid; gap: 5px; color: #536273; font-size: 12px; font-weight: 700; }
body.rm-admin .wl-coupon-sheet form input, body.rm-admin .wl-coupon-sheet form select, body.rm-admin .wl-coupon-preview textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #d8dfe6; border-radius: 9px; background: #fff; color: #26384c; font: inherit; }
body.rm-admin .wl-coupon-sheet form button[type="submit"] { align-self: end; min-height: 42px; border: 0; border-radius: 9px; background: #203e61; color: #fff; font-weight: 700; cursor: pointer; }
body.rm-admin .wl-coupon-sheet form button:disabled { opacity: .6; cursor: wait; }
body.rm-admin .wl-coupon-preview { display: grid; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e5e8ec; }
body.rm-admin .wl-coupon-preview label { font-size: 13px; font-weight: 700; }
body.rm-admin .wl-coupon-preview textarea { resize: vertical; min-height: 88px; font-size: 13px; line-height: 1.5; }
body.rm-admin .wl-coupon-preview button { justify-self: end; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: #dfc979; color: #23344a; font-weight: 700; cursor: pointer; }
@media (max-width: 480px) { body.rm-admin .wl-coupon-sheet { padding: 18px; } body.rm-admin .wl-coupon-sheet form { grid-template-columns: 1fr; } body.rm-admin .wl-coupon-item { align-items: flex-start; flex-direction: column; gap: 5px; } }

/* HDR-title (owner, 23 Oct 2026): the page title sits in the top bar next to the menu controls, compact and on one line
   (ellipsis), on every page; the large in-page heading block is gone, so each page starts higher. The context eyebrow and
   the description stay in the DOM (heading tooltip), hidden. */
body.rm-admin .topbar { align-items: center; }
body.rm-admin .topbar-heading { flex: 1 1 auto; min-width: 0; }
body.rm-admin .topbar-heading .page-heading-copy { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; margin: 0; }
body.rm-admin .topbar-heading #page-context,
body.rm-admin .topbar-heading #page-description { display: none; }
body.rm-admin .topbar-heading #page-title { min-width: 0; margin: 0; overflow: hidden; color: var(--rm-heading); font-size: 1.125rem; font-weight: 600; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; }
@media (min-width: 1181px) {
  body.rm-admin .topbar-heading { padding-left: 6px; } /* clear the round collapse button that overhangs the bar's left edge */
}
@media (max-width: 780px) {
  body.rm-admin .topbar { align-items: center; }
  body.rm-admin .topbar-heading #page-title { font-size: 1.0625rem; }
}
/* With the chat docked the bar is narrow: the sync pill keeps only its status dot so the page title is not cut. */
@media (min-width: 781px) {
  body.rm-admin.rm-chat-docked .topbar .sync-status > span { display: none; }
  body.rm-admin.rm-chat-docked .topbar .sync-status { padding: 0 11px; }
}

/* FILTER-ui (owner, 23 Oct 2026): Calendário "Filtros" as a compact chip popover in the app's style. It sits above the
   sticky date header (z-index over its 20) and becomes a bottom sheet on phones. Inputs stay native radios (keyboard:
   Tab into a group, arrows to change), visually replaced by the chip. */
body.rm-admin .calendar-filter-toggle { gap: 6px; }
body.rm-admin .calendar-filter-toggle .calendar-filter-icon { flex: none; width: 15px; height: 15px; }
body.rm-admin .calendar-filter-count { display: inline-grid; min-width: 18px; height: 18px; place-items: center; padding: 0 5px; border-radius: 99px; background: #16304d; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; }
body.rm-admin .calendar-filter-count[hidden] { display: none; }
body.rm-admin .calendar-filter-menu { z-index: 45; width: 304px; max-width: calc(100vw - 24px); max-height: min(70vh, 460px); padding: 12px 14px 14px; border-radius: 12px; }
body.rm-admin .calendar-filter-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
body.rm-admin .calendar-filter-head strong { flex: 1 1 auto; color: #16304d; font-size: 13px; font-weight: 700; }
body.rm-admin .calendar-filter-menu .calendar-filter-clear { width: auto; padding: 2px 2px; border: 0; border-radius: 4px; background: none; color: #8a6a25; font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
body.rm-admin .calendar-filter-menu .calendar-filter-clear:hover { background: none; color: #16304d; }
body.rm-admin .calendar-filter-close { display: none; }
body.rm-admin .calendar-filter-menu fieldset { display: block; min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
body.rm-admin .calendar-filter-menu fieldset:last-of-type { margin-bottom: 0; }
body.rm-admin .calendar-filter-menu legend { display: block; margin: 0 0 6px; padding: 0; color: #7b8494; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
body.rm-admin .calendar-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body.rm-admin .calendar-filter-menu label.calendar-filter-chip { position: relative; display: inline-flex; gap: 0; min-height: 0; padding: 0; border-radius: 99px; cursor: pointer; }
body.rm-admin .calendar-filter-menu label.calendar-filter-chip:hover { background: none; }
body.rm-admin .calendar-filter-menu .calendar-filter-chip input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
body.rm-admin .calendar-filter-chip span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 1px solid #dfe3e9; border-radius: 99px; background: #fff; color: #37475a; font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
body.rm-admin .calendar-filter-chip:hover span { border-color: #c9ced6; background: #f6f7f9; }
body.rm-admin .calendar-filter-chip input:checked + span { border-color: #16304d; background: #16304d; color: #fff; }
body.rm-admin .calendar-filter-chip input:focus-visible + span { outline: 2px solid #c39b3f; outline-offset: 2px; }
body.rm-admin .calendar-filter-backdrop { display: none; }
/* The toolbar is a stacking context (z-index 8, calendar-dnd.css) under the sticky dates (20): lift it while the popover is open. */
body.rm-admin .calendar-toolbar:has(.calendar-filter-wrap.is-open) { z-index: 29; }
@media (max-width: 780px) {
  body.rm-admin .calendar-toolbar:has(.calendar-filter-wrap.is-open) { z-index: 150; }
  body.rm-admin .calendar-filter-menu { position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 141; width: auto; max-width: none; max-height: min(78dvh, 520px); padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); border: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -12px 32px rgba(16, 36, 62, .2); }
  body.rm-admin .calendar-filter-menu::before { content: ""; display: block; width: 36px; height: 4px; margin: 0 auto 10px; border-radius: 99px; background: #d5d9e0; }
  body.rm-admin .calendar-filter-wrap.is-open .calendar-filter-backdrop { position: fixed; inset: 0; z-index: 140; display: block; padding: 0; border: 0; background: rgba(6, 16, 29, .38); }
  body.rm-admin .calendar-filter-close { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #e2e4e8; border-radius: 50%; background: #fff; color: #37475a; font-size: 16px; }
  body.rm-admin .calendar-filter-chip span { min-height: 36px; padding: 0 14px; font-size: 13px; }
}

/* KPI-compact (owner, 23 Oct 2026, replaces KPI-cards): the desktop Calendário KPIs are compact chips (~46 px) inside the
   toolbar row, between the date navigation and the stacked Hoje/Filtros, sharing the free width. Same metric nodes (moved by
   admin.js); phones (<= 780 px) keep the Info button and dialog exactly as before (icon tiles, trend chips, meters hidden).
   #calendar-kpis is an inline-size container: one row when wide enough, otherwise three columns (two lines); below its minimum
   width it wraps under the date navigation, Hoje/Filtros still on the right. Labels/values end in an ellipsis, never overflow.
   Selectors start at .calendar-range so they beat calendar-dnd.css (loaded later) and the generic .calendar-range span rule. */
body.rm-admin .calendar-metric-icon,
body.rm-admin .calendar-metric-trend,
body.rm-admin .calendar-metric-meter,
body.rm-admin .calendar-kpis { display: none; }
@media (min-width: 781px) {
  body.rm-admin .calendar-range > .calendar-kpis:not(:empty) { display: block; flex: 1 1 0; min-width: min(100%, 540px); margin: 0; container-type: inline-size; }
  body.rm-admin .calendar-range > .calendar-kpis > .calendar-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 6px; width: 100%; min-width: 0; max-width: none; margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  @container (min-width: 860px) {
    body.rm-admin .calendar-range > .calendar-kpis > .calendar-metrics { display: flex; flex-wrap: nowrap; }
    body.rm-admin .calendar-range > .calendar-kpis > .calendar-metrics > .calendar-metric { flex: 1 1 auto; }
  }
  body.rm-admin .calendar-range > .calendar-kpis .calendar-metric { position: relative; display: grid; grid-template-columns: 24px minmax(0, max-content) minmax(0, 1fr); grid-template-areas: "icon value trend" "icon label label"; align-items: center; align-content: center; column-gap: 6px; row-gap: 1px; box-sizing: border-box; min-width: 0; min-height: 46px; padding: 6px 10px 7px; overflow: hidden; border: 1px solid rgba(38, 43, 67, .08); border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(38, 43, 67, .05); }
  body.rm-admin .calendar-range > .calendar-kpis span { min-width: 0; text-align: left; }
  body.rm-admin .calendar-range > .calendar-kpis .calendar-metric-icon { display: grid; grid-area: icon; width: 24px; height: 24px; margin-right: 2px; place-items: center; border-radius: 7px; }
  body.rm-admin .calendar-range > .calendar-kpis .calendar-metric-icon svg { width: 14px; height: 14px; }
  body.rm-admin .calendar-range > .calendar-kpis .is-navy .calendar-metric-icon { color: #16304d; background: #e8edf4; }
  body.rm-admin .calendar-range > .calendar-kpis .is-gold .calendar-metric-icon { color: #8a6a25; background: #f8f0dc; }
  body.rm-admin .calendar-range > .calendar-kpis .is-green .calendar-metric-icon { color: #1f7a45; background: #e5f5eb; }
  body.rm-admin .calendar-range > .calendar-kpis .is-blue .calendar-metric-icon { color: #2a5ea8; background: #e6effa; }
  body.rm-admin .calendar-range > .calendar-kpis .is-violet .calendar-metric-icon { color: #6a4bb0; background: #efeafa; }
  body.rm-admin .calendar-range > .calendar-kpis .calendar-metric strong { grid-area: value; min-width: 0; overflow: hidden; color: #16304d; font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; }
  body.rm-admin .calendar-range > .calendar-kpis .calendar-metric small { grid-area: label; min-width: 0; overflow: hidden; color: #6b7686; font-size: 11px; font-weight: 500; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
  body.rm-admin .calendar-range > .calendar-kpis .calendar-metric-trend:not([hidden]) { display: inline-flex; grid-area: trend; align-items: center; justify-self: start; padding: 1px 5px; border-radius: 99px; font-size: 10.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
  body.rm-admin .calendar-range > .calendar-kpis .calendar-metric-trend[data-tone="up"] { color: #1f7a45; background: #e5f5eb; }
  body.rm-admin .calendar-range > .calendar-kpis .calendar-metric-trend[data-tone="down"] { color: #b3362b; background: #fdecea; }
  body.rm-admin .calendar-range > .calendar-kpis .calendar-metric-trend[data-tone="flat"] { color: #5f6b7a; background: #eef0f3; }
  body.rm-admin .calendar-range > .calendar-kpis .calendar-metric-meter:not([hidden]) { display: block; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; overflow: hidden; background: #eef1f5; }
  body.rm-admin .calendar-range > .calendar-kpis .calendar-metric-meter i { display: block; width: var(--kpi-fill, 0%); height: 100%; background: linear-gradient(90deg, #c39b3f, #16304d); transition: width .4s ease; }
  body.rm-admin .calendar-range .calendar-toolbar-actions { display: grid; grid-template-columns: max-content; justify-items: stretch; gap: 4px; }
  body.rm-admin .calendar-range .calendar-toolbar-actions > .button,
  body.rm-admin .calendar-range .calendar-toolbar-actions > .calendar-filter-wrap > .button { justify-content: center; width: 100%; min-height: 28px; padding-block: 3px; }
}
/* 781-960 px (sidebar is an overlay there): the row cannot hold the date nav, the chips and Hoje/Filtros, so the chips take
   their own full-width line under them and Hoje/Filtros stay on the right of the first line. */
@media (min-width: 781px) and (max-width: 960px) {
  body.rm-admin .calendar-range > .calendar-kpis:not(:empty) { order: 3; flex: 1 1 100%; min-width: 0; }
}

/* CAL-gap (owner, 24 Oct 2026): the first Calendário content starts 24 px under the top bar like every other page. On desktop
   the toolbar loses calendar-dnd.css's 2 px top padding and the row items (date nav, KPI chips, Hoje/Filtros) are top-aligned
   instead of centred on the tallest item. Selectors outrank calendar-dnd.css (loaded later). Phones unchanged. */
@media (min-width: 781px) {
  body.rm-admin .view .calendar-toolbar.card { padding-top: 0; }
  body.rm-admin .calendar-toolbar > .calendar-range { align-items: flex-start; }
}

/* CAL-header (owner, 24 Oct 2026): the Calendário header uses the Limpeza header layout on desktop (>= 781 px).
   Row 1: #calendar-kpis (moved out of the toolbar row in index.php; admin.js still moves the five metric nodes into it) as
   equal cards with the Limpeza .lz-kpis/.lz-kpi values (8 px gap, 46 px, 24 px icon tile, 15/11 px, card radius/border/shadow;
   trend chip after the value, 3 px meter on the bottom edge as before). Row 2: one toolbar card with the .lz-toolbar values
   (10px 12px padding, 8px 10px gaps): date nav as .lz-datenav, Hoje, the Canal chips (.lz-chip values after LIMPEZA-v4b),
   Filtros, and the gold month button on the right (.lz-gold / .lz-mode-menu). Up to 1440 px the chips take their own line
   below the controls, as on Limpeza. The first card still starts 24 px under the top bar (CAL-gap). Phones (<= 780 px) are
   unchanged: the chips and the gold button are hidden there and the KPIs stay in the Info dialog. */
body.rm-admin .calendar-chips,
body.rm-admin .calendar-view-wrap { display: none; }
@media (min-width: 781px) {
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis:not(:empty) { display: block; min-width: 0; margin: 0 0 12px; container-type: normal; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis > .calendar-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 8px; width: 100%; min-width: 0; max-width: none; margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .calendar-metric { position: relative; display: grid; grid-template-columns: 24px minmax(0, max-content) minmax(0, 1fr); grid-template-areas: "icon value trend" "icon label label"; align-items: center; align-content: center; column-gap: 8px; row-gap: 1px; box-sizing: border-box; min-width: 0; min-height: 46px; margin: 0; padding: 6px 12px 7px 10px; overflow: hidden; border: 1px solid rgba(38, 43, 67, .08); border-radius: var(--radius, .625rem); background: #fff; box-shadow: 0 1px 3px rgba(38, 43, 67, .05); }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis span { min-width: 0; text-align: left; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .calendar-metric-icon { display: grid; grid-area: icon; width: 24px; height: 24px; place-items: center; border-radius: 7px; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .calendar-metric-icon svg { width: 14px; height: 14px; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .is-navy .calendar-metric-icon { color: #16304d; background: #e8edf4; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .is-gold .calendar-metric-icon { color: #8a6a25; background: #f8f0dc; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .is-green .calendar-metric-icon { color: #1f7a45; background: #e5f5eb; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .is-blue .calendar-metric-icon { color: #2a5ea8; background: #e6effa; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .is-violet .calendar-metric-icon { color: #6a4bb0; background: #efeafa; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .calendar-metric strong { grid-area: value; min-width: 0; overflow: hidden; color: #16304d; font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .calendar-metric small { grid-area: label; min-width: 0; overflow: hidden; color: #6b7686; font-size: 11px; font-weight: 500; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .calendar-metric-trend:not([hidden]) { display: inline-flex; grid-area: trend; align-items: center; justify-self: start; padding: 1px 5px; border-radius: 99px; font-size: 10.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .calendar-metric-trend[data-tone="up"] { color: #1f7a45; background: #e5f5eb; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .calendar-metric-trend[data-tone="down"] { color: #b3362b; background: #fdecea; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .calendar-metric-trend[data-tone="flat"] { color: #5f6b7a; background: #eef0f3; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .calendar-metric-meter:not([hidden]) { display: block; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; overflow: hidden; background: #eef1f5; }
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis .calendar-metric-meter i { display: block; width: var(--kpi-fill, 0%); height: 100%; background: linear-gradient(90deg, #c39b3f, #16304d); transition: width .4s ease; }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar.card { display: block; margin: 0 0 12px; padding: 10px 12px; border: 0; border-radius: .625rem; background: var(--rm-paper, #fff); box-shadow: var(--bs-box-shadow); }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 10px; min-width: 0; }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range .calendar-toolbar-actions { display: contents; }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range > .calendar-date-nav { display: inline-flex; flex: none; order: 1; align-items: center; gap: 2px; }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range > .calendar-date-nav .icon-button { width: 32px; height: 32px; font-size: 1.1rem; }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range > .calendar-date-nav #calendar-range-label { min-width: 172px; color: #16304d; font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; white-space: nowrap; }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range .calendar-toolbar-actions > .button,
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range .calendar-toolbar-actions > .calendar-filter-wrap > .button,
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range > .calendar-view-wrap > .button { width: auto; min-height: 40px; padding: .55rem 1.25rem; font-size: 12px; }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range .calendar-toolbar-actions > [data-calendar-move="0"] { flex: none; order: 2; }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range .calendar-toolbar-actions > .calendar-filter-wrap { flex: none; order: 4; }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range .calendar-toolbar-actions > .calendar-filter-wrap > .button { gap: 6px; }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range > .calendar-chips { display: flex; flex: 1 1 260px; flex-wrap: wrap; order: 3; align-items: center; gap: 6px; min-width: 0; padding: 2px; }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range > .calendar-view-wrap { display: block; position: relative; flex: none; order: 5; margin-left: auto; }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range > .calendar-view-wrap > .button { gap: 6px; }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range .calendar-chips span, body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range .calendar-view-wrap span { min-width: 0; color: inherit; font-size: inherit; font-weight: inherit; text-align: inherit; }
  body.rm-admin .calendar-chip { display: inline-flex; flex: none; align-items: center; gap: 7px; box-sizing: border-box; height: 40px; margin: 0; padding: 0 1.25rem; border: 1px solid var(--rm-line); border-radius: .5rem; color: #344255; background: #fff; box-shadow: 0 .125rem .375rem rgba(38, 43, 67, .08); font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
  body.rm-admin .calendar-chip:has(.calendar-swatch) { padding-left: .9rem; }
  body.rm-admin .calendar-chip:hover { border-color: #c8d0dc; }
  body.rm-admin .calendar-chip[aria-checked="true"] { border-color: #16304d; color: #16304d; background: #eef2f7; font-weight: 700; box-shadow: 0 0 0 1px #16304d inset, 0 .125rem .375rem rgba(38, 43, 67, .08); }
  body.rm-admin .calendar-chip:focus-visible { outline: 2px solid #c39b3f; outline-offset: 1px; }
  body.rm-admin .calendar-chip .calendar-swatch { flex: none; width: 10px; height: 10px; border-radius: 3px; }
  body.rm-admin .calendar-chip .calendar-swatch.is-airbnb { background: #d62152; }
  body.rm-admin .calendar-chip .calendar-swatch.is-booking { background: #006ce4; }
  body.rm-admin .calendar-view-menu { min-width: 230px; }
  body.rm-admin .calendar-view-menu[hidden] { display: none; }
  body.rm-admin .calendar-toolbar:has(.calendar-view-wrap.is-open) { z-index: 29; }
}
@media (min-width: 781px) and (max-width: 1440px) {
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range > .calendar-chips { order: 9; flex: 1 1 100%; }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range .calendar-toolbar-actions > .calendar-filter-wrap { margin-left: auto; }
  body.rm-admin .view[data-page="calendar"] > .calendar-toolbar > .calendar-range > .calendar-view-wrap { margin-left: 0; }
}
@media (min-width: 781px) and (max-width: 1180px) {
  body.rm-admin .view[data-page="calendar"] > .calendar-kpis > .calendar-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Page title only (owner, 23 Oct 2026): no visible breadcrumb/eyebrow in the header.
   The existing base rule keeps page-context hidden; the title uses the normal centred flex row. */
body.rm-admin .topbar-heading #page-title { color: #16304d; font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.012em; }
@media (min-width: 781px) {
  body.rm-admin .topbar-heading #page-title { font-size: 23px; line-height: 1.15; }
}

/* BOOKING-mark (owner, 23 Oct 2026): the drawn Booking.com tile, sized like the Airbnb/WhatsApp marks of each place. */
body.rm-admin .booking-logo { display: inline-block; flex: none; width: 1em; height: 1em; margin: 0; line-height: 0; vertical-align: middle; }
body.rm-admin .booking-logo svg { display: block; width: 100%; height: 100%; }
body.rm-admin .reservation-type .booking-logo { width: 22px; height: 22px; }
body.rm-admin .calendar-stay-icon .booking-logo { width: 16px; height: 16px; }
body.rm-admin .channel-portal .booking-logo { width: 18px; height: 18px; }
@media (max-width: 780px) { body.rm-admin .calendar-stay-icon .booking-logo { width: 14px; height: 14px; } }

/* LIMPEZA (owner, 24 Oct 2026): Limpeza board (.lz-*). Desktop grids only >= 781 px, built from the Calendário grid classes and FIXED (no drag & drop); phones get KPI buttons + a stacked day list.
   Same language as the Calendário KPI-compact chips (46 px, 24 px icon tile, 15/11 px), gold primary view button, circular
   avatars (initials; an <img> fills the circle if a photo ever exists). Geometry of timeline blocks/now line is CSSOM (CSP). */
body.rm-admin .lz-board { display: grid; gap: 12px; min-width: 0; }
body.rm-admin .lz-board [hidden] { display: none !important; }
body.rm-admin .lz-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; }
body.rm-admin .lz-kpi { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "icon value" "icon label"; align-items: center; align-content: center; column-gap: 8px; row-gap: 1px; box-sizing: border-box; min-width: 0; min-height: 46px; margin: 0; padding: 6px 12px 7px 10px; overflow: hidden; border: 1px solid rgba(38, 43, 67, .08); border-radius: var(--radius, .625rem); color: inherit; background: #fff; box-shadow: 0 1px 3px rgba(38, 43, 67, .05); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
body.rm-admin .lz-kpi:hover { border-color: rgba(22, 48, 77, .22); }
body.rm-admin .lz-kpi:focus-visible { outline: 2px solid #c39b3f; outline-offset: 2px; }
body.rm-admin .lz-kpi[aria-pressed="true"] { border-color: #16304d; box-shadow: 0 0 0 1px #16304d inset, 0 1px 3px rgba(38, 43, 67, .08); }
body.rm-admin .lz-kpi-icon { display: grid; grid-area: icon; width: 24px; height: 24px; place-items: center; border-radius: 7px; }
body.rm-admin .lz-kpi-icon svg { width: 14px; height: 14px; }
body.rm-admin .lz-kpi strong { grid-area: value; min-width: 0; overflow: hidden; color: #16304d; font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; }
body.rm-admin .lz-kpi small { grid-area: label; min-width: 0; overflow: hidden; color: #6b7686; font-size: 11px; font-weight: 500; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
body.rm-admin .lz-kpi.is-navy .lz-kpi-icon { color: #16304d; background: #e8edf4; }
body.rm-admin .lz-kpi.is-gold .lz-kpi-icon { color: #8a6a25; background: #f8f0dc; }
body.rm-admin .lz-kpi.is-green .lz-kpi-icon { color: #1f7a45; background: #e5f5eb; }
body.rm-admin .lz-kpi.is-blue .lz-kpi-icon { color: #2a5ea8; background: #e6effa; }
body.rm-admin .lz-kpi.is-red .lz-kpi-icon { color: #b4322f; background: #fbe9e8; }

body.rm-admin .lz-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; margin: 0; padding: 10px 12px; }
body.rm-admin .lz-datenav { display: inline-flex; flex: none; align-items: center; gap: 2px; }
body.rm-admin .lz-datenav .icon-button { width: 32px; height: 32px; font-size: 1.1rem; }
body.rm-admin .lz-datenav .icon-button:disabled { opacity: .35; cursor: default; }
body.rm-admin .lz-datenav strong { min-width: 172px; color: #16304d; font-size: 14px; font-weight: 700; text-align: center; white-space: nowrap; }
body.rm-admin .lz-staff { display: flex; flex: 1 1 260px; align-items: center; gap: 6px; min-width: 0; padding: 2px; overflow-x: auto; scrollbar-width: thin; }
body.rm-admin .lz-chip { display: inline-flex; flex: none; align-items: center; gap: 7px; height: 34px; margin: 0; padding: 0 12px 0 4px; border: 1px solid #e3e7ee; border-radius: 999px; color: #344255; background: #fff; font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
body.rm-admin .lz-chip:hover { border-color: #c8d0dc; }
body.rm-admin .lz-chip[aria-checked="true"] { border-color: #16304d; color: #16304d; background: #eef2f7; font-weight: 700; box-shadow: 0 0 0 1px #16304d inset; }
body.rm-admin .lz-chip:focus-visible { outline: 2px solid #c39b3f; outline-offset: 1px; }
/* LIMPEZA-v4b (owner, 24 Oct 2026): staff chips are squarer, matching the toolbar buttons beside them (Hoje / Filtros): the
   theme .button radius (.5rem), 40 px height, 1px var(--rm-line) border, .button shadow and 1.25rem padding on the text side
   (.55rem before the avatar). The selected chip keeps its navy ring/tint at the same radius; avatars stay round. */
body.rm-admin .lz-chip { box-sizing: border-box; height: 40px; padding: 0 1.25rem 0 .55rem; border: 1px solid var(--rm-line); border-radius: .5rem; box-shadow: 0 .125rem .375rem rgba(38, 43, 67, .08); }
body.rm-admin .lz-chip[aria-checked="true"] { box-shadow: 0 0 0 1px #16304d inset, 0 .125rem .375rem rgba(38, 43, 67, .08); }
body.rm-admin .lz-filter-wrap, body.rm-admin .lz-mode-wrap { position: relative; flex: none; }
body.rm-admin .lz-filter-toggle { gap: 6px; }
body.rm-admin .lz-mode-wrap { margin-left: auto; }
body.rm-admin .button.lz-gold { gap: 6px; border-color: var(--rm-accent, #d2aa61); color: #193452; background: var(--rm-accent, #d2aa61); font-weight: 700; }
body.rm-admin .button.lz-gold:hover, body.rm-admin .button.lz-gold[aria-expanded="true"] { border-color: var(--gold-strong, #a77a2f); color: #fff; background: var(--gold-strong, #a77a2f); }
body.rm-admin .lz-filter-menu, body.rm-admin .lz-mode-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; box-sizing: border-box; min-width: 260px; padding: 12px; border: 1px solid rgba(38, 43, 67, .1); border-radius: var(--radius, .625rem); background: #fff; box-shadow: 0 12px 32px rgba(22, 48, 77, .16); }
body.rm-admin .lz-filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #16304d; font-size: 14px; }
body.rm-admin .lz-filter-clear { padding: 2px 6px; border: 0; color: #8a6a25; background: none; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
body.rm-admin .lz-filter-menu fieldset { margin: 0 0 10px; padding: 0; border: 0; }
body.rm-admin .lz-filter-menu legend { margin-bottom: 6px; color: #8a94a3; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
body.rm-admin .lz-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body.rm-admin .lz-fchip { padding: 5px 10px; border: 1px solid #e3e7ee; border-radius: 999px; color: #344255; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
body.rm-admin .lz-fchip[aria-pressed="true"] { border-color: #16304d; color: #fff; background: #16304d; }
body.rm-admin .lz-filter-check { display: flex; align-items: center; gap: 8px; color: #344255; font-size: 13px; cursor: pointer; }
/* CAL-header (owner, 24 Oct 2026): a normal 16 px theme checkbox (the generic input rule gave it min-height 44 px). */
body.rm-admin .lz-filter-check input[type="checkbox"] { flex: none; box-sizing: border-box; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; border-radius: 4px; accent-color: var(--rm-primary, #16304d); cursor: pointer; }
body.rm-admin .lz-mode-menu { min-width: 250px; padding: 6px; }
body.rm-admin .lz-mode-menu button { display: grid; width: 100%; gap: 1px; padding: 8px 10px 8px 30px; border: 0; border-radius: var(--radius, .625rem); color: #16304d; background: none; font: inherit; text-align: left; cursor: pointer; position: relative; }
body.rm-admin .lz-mode-menu button:hover, body.rm-admin .lz-mode-menu button:focus-visible { background: #f5f7fa; outline: none; }
body.rm-admin .lz-mode-menu button[aria-checked="true"]::before { content: "✓"; position: absolute; top: 8px; left: 10px; color: #a77a2f; font-weight: 800; }
body.rm-admin .lz-mode-menu strong { font-size: 13px; }
body.rm-admin .lz-mode-menu small { color: #6b7686; font-size: 11.5px; }

body.rm-admin .lz-av { display: inline-grid; flex: none; width: 26px; height: 26px; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: #5b6675; font-size: 10.5px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
body.rm-admin .lz-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.rm-admin .lz-av svg { width: 14px; height: 14px; }
body.rm-admin .lz-av-all { color: #fff; background: #16304d; }
body.rm-admin .lz-av-none { color: #2a5ea8; background: #e6effa; }
body.rm-admin .lz-tone-0 { background: #24456b; }
body.rm-admin .lz-tone-1 { background: #1f7f86; }
body.rm-admin .lz-tone-2 { background: #6a4bb0; }
body.rm-admin .lz-tone-3 { background: #b5562f; }
body.rm-admin .lz-tone-4 { background: #6f7a2a; }
body.rm-admin .lz-tone-5 { background: #5b6675; }

body.rm-admin .lz-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 9px 12px; border: 1px solid #f0dfae; border-radius: var(--radius, .625rem); color: #6d5418; background: #fdf7e6; font-size: 13px; line-height: 1.4; }
body.rm-admin .lz-notice.is-error { border-color: #f1c4c1; color: #8d2623; background: #fdf0ef; }
body.rm-admin .lz-card { min-width: 0; border: 1px solid rgba(38, 43, 67, .08); border-radius: var(--radius, .625rem); background: #fff; box-shadow: 0 1px 3px rgba(38, 43, 67, .05); }
body.rm-admin .lz-grid-card { min-width: 0; }
body.rm-admin .lz-board.is-switching .lz-grid-card, body.rm-admin .lz-board.is-switching .lz-mobile { opacity: .55; transition: opacity .2s ease .15s; }
body.rm-admin .lz-empty { margin: 0; padding: 28px 16px; color: #6b7686; font-size: 13px; text-align: center; }

/* status tokens */
body.rm-admin .lz-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #c9cfd8; }
body.rm-admin .lz-dot.is-done { background: #1f9d55; }
body.rm-admin .lz-dot.is-run { background: #2a6fd1; }
body.rm-admin .lz-dot.is-pend { background: #d9a636; }
body.rm-admin .lz-dot.is-late { background: #d64541; }
body.rm-admin .lz-status-pill { display: inline-flex; align-items: center; justify-self: end; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
body.rm-admin .lz-status-pill.is-done { color: #1f7a45; background: #e5f5eb; }
body.rm-admin .lz-status-pill.is-run { color: #2a5ea8; background: #e6effa; }
body.rm-admin .lz-status-pill.is-pend { color: #8a6a25; background: #fbf1d6; }
body.rm-admin .lz-status-pill.is-late { color: #b4322f; background: #fbe9e8; }
body.rm-admin .lz-status-pill.is-none { color: #6b7686; background: #f1f3f6; }

body.rm-admin .lz-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 2px 4px; color: #6b7686; font-size: 12px; list-style: none; }
body.rm-admin .lz-legend li { display: inline-flex; align-items: center; gap: 6px; }
body.rm-admin .lz-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: #d9dee6; }
body.rm-admin .lz-legend .is-done::before { background: #1f9d55; }
body.rm-admin .lz-legend .is-run::before { background: #2a6fd1; }
body.rm-admin .lz-legend .is-pend::before { background: #d9a636; }
body.rm-admin .lz-legend .is-late::before { background: #d64541; }

/* rows shared by the Hoje panel and the phone list */
body.rm-admin .lz-trow, body.rm-admin .lz-mcard { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; grid-template-areas: "main pill chev" "meta pill chev"; align-items: center; gap: 3px 10px; box-sizing: border-box; min-width: 0; padding: 9px 10px 9px 12px; border: 1px solid #edf0f4; border-radius: var(--radius, .625rem); background: #fff; }
body.rm-admin .lz-trow.is-link, body.rm-admin .lz-mcard.is-link { cursor: pointer; }
body.rm-admin .lz-trow.is-link:hover, body.rm-admin .lz-mcard.is-link:hover { border-color: #d5dbe4; background: #fafbfc; }
body.rm-admin .lz-trow:focus-visible, body.rm-admin .lz-mcard:focus-visible { outline: 2px solid #c39b3f; outline-offset: 1px; }
/* LIMPEZA-progress (owner, 24 Oct 2026): phone day list, a started cleaning shows a thin green progress bar (same rule and variable). */
body.rm-admin .lz-mcard[data-lz-a] { position: relative; overflow: hidden; }
body.rm-admin .lz-mbar { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: #1f9d55; transform: scaleX(var(--lz-progress, 0)); transform-origin: left center; pointer-events: none; }
body.rm-admin .lz-trow-main { display: flex; grid-area: main; align-items: center; gap: 8px; min-width: 0; }
body.rm-admin .lz-trow-unit { flex: none; } /* .calendar-unit-code: the Calendário unit label */
body.rm-admin .lz-trow-staff { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: #344255; font-size: 12.5px; }
body.rm-admin .lz-trow-staff > span:last-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body.rm-admin .lz-trow-staff .lz-av { width: 22px; height: 22px; font-size: 9.5px; }
body.rm-admin .lz-trow-meta { display: flex; flex-wrap: wrap; grid-area: meta; align-items: baseline; gap: 2px 8px; min-width: 0; }
body.rm-admin .lz-trow-time { color: #16304d; font-size: 12px; font-weight: 600; white-space: nowrap; }
body.rm-admin .lz-trow-meta small { color: #6b7686; font-size: 11.5px; }
body.rm-admin .lz-trow .lz-status-pill, body.rm-admin .lz-mcard .lz-status-pill { grid-area: pill; }
body.rm-admin .lz-chev { grid-area: chev; color: #9aa3af; font-size: 18px; }

@media (min-width: 781px) {
  body.rm-admin .lz-mobile { display: none; }
  /* staff chips wrap instead of a clipped scroll strip on desktop (review fix: 3 chips were cut at 1280 px) */
  body.rm-admin .lz-staff { flex-wrap: wrap; overflow: visible; }
  body.rm-admin .lz-main { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 12px; }
  body.rm-admin .lz-board[data-lz-mode="periodo"] .lz-main { grid-template-columns: minmax(0, 1fr) 380px; }

  /* Grid = the Calendário grid (owner correction, 24 Oct 2026): .calendar-shell/.calendar-head/.calendar-row/.calendar-unit/
     .calendar-cell keep their materialize + calendar-dnd look (sticky dates and unit column, soft gold today, weekend shading,
     --cal-row-h, borders). Only these scoped rules differ: a smaller minimum column so 12 days fit beside the Hoje panel and
     the read-only cell content. FIXED board: no grab/move cursor, no selection. */
  /* The unit column is the Calendário's own (--cal-unit-w from calendar-dnd.css: 104 px, 78 px on phones) and the row height
     its --cal-row-h (56 px); only the minimum day/hour column width is scoped so 12 days fit beside the Hoje panel. */
  body.rm-admin .calendar-shell.lz-shell { --lz-col-min: 52px; margin: 0; }
  body.rm-admin .calendar-shell.lz-shell[data-mode="dia"] { --lz-col-min: 64px; }
  body.rm-admin .lz-shell .calendar-head,
  body.rm-admin .lz-shell .calendar-row { min-width: calc(var(--cal-unit-w) + var(--cal-days, 12) * var(--lz-col-min)); grid-template-columns: var(--cal-unit-w) repeat(var(--cal-days, 12), minmax(var(--lz-col-min), 1fr)); }
  body.rm-admin .lz-shell, body.rm-admin .lz-shell * { cursor: default; -webkit-user-select: none; user-select: none; }
  body.rm-admin .lz-shell [data-open-reservation-row], body.rm-admin .lz-shell [data-open-reservation-row] * { cursor: pointer; }
  body.rm-admin .lz-shell img { -webkit-user-drag: none; pointer-events: none; }
  body.rm-admin .lz-shell .lz-empty { grid-column: 1 / -1; }
  body.rm-admin .calendar-dot.lz-dot.is-done { background: #1f9d55; }
  body.rm-admin .calendar-dot.lz-dot.is-run { background: #2a6fd1; }
  body.rm-admin .calendar-dot.lz-dot.is-pend { background: #d9a636; }
  body.rm-admin .calendar-dot.lz-dot.is-late { background: #d64541; }
  body.rm-admin .calendar-dot.lz-dot.is-none { background: #c7ccd4; }

  /* Dia: the ten hour columns are .calendar-day / .calendar-cell; cleanings are blocks on a layer over them (.lz-tl). */
  body.rm-admin .lz-shell[data-mode="dia"] .calendar-day { position: relative; align-items: flex-start; padding-left: 6px; }
  body.rm-admin .lz-shell[data-mode="dia"] .calendar-day strong { font-size: 12px; }
  body.rm-admin .lz-hour-end { position: absolute; right: 5px; bottom: 7px; color: #16304d !important; font-size: 12px !important; font-weight: 650; letter-spacing: 0 !important; }
  body.rm-admin .lz-tl { position: absolute; top: 0; right: 0; bottom: 0; left: var(--cal-unit-w); z-index: 3; pointer-events: none; }
  body.rm-admin .lz-shell.has-now .lz-tl::after { content: ""; position: absolute; top: 0; bottom: -1px; left: calc(100% * var(--lz-now-f, 0)); border-left: 2px dashed var(--rm-accent, #d2aa61); transform: translateX(-1px); }
  body.rm-admin .lz-now-pill { position: absolute; top: 3px; left: calc(var(--cal-unit-w) + (100% - var(--cal-unit-w)) * var(--lz-now-f, 0)); z-index: 2; padding: 2px 9px; border-radius: 999px; color: #193452; background: var(--rm-accent, #d2aa61); box-shadow: 0 2px 6px rgba(167, 122, 47, .35); font-size: 11px; font-weight: 800; line-height: 1.3; transform: translateX(-50%); }
  /* LIMPEZA-v3 (owner, 24 Oct 2026): Dia cleanings are event cards like the Zelofy board (soft status tint, thin border of the
     same hue, 10 px rounded rectangle, round avatar left, bold dark name over the grey time range, vertically centred, small
     check on Concluída) in the MADALENA status palette (green/blue/gold/red). Still fixed: no drag, cursor only on links. */
  body.rm-admin .lz-block { position: absolute; top: 50%; z-index: 1; display: flex; align-items: center; gap: 8px; box-sizing: border-box; height: 44px; min-width: 0; padding: 0 8px 0 7px; overflow: hidden; border: 1px solid #dfe4ea; border-radius: 10px; color: #16304d; background: #f4f6f9; font-size: 12px; font-weight: 600; line-height: 1; text-align: left; transform: translateY(-50%); pointer-events: auto; container-type: inline-size; transition: box-shadow .15s ease; }
  body.rm-admin .lz-block.is-done { border-color: #bfe3cc; background: #e5f5eb; }
  body.rm-admin .lz-block.is-run { border-color: #c4d8f3; background: #e6effa; }
  body.rm-admin .lz-block.is-pend { border-color: #ecd9a6; background: #fbf1d6; }
  body.rm-admin .lz-block.is-late { border-color: #f1c4c1; background: #fbe9e8; }
  /* a pending window (not a start time): the same card with a dashed border in a slightly stronger tone of its hue */
  body.rm-admin .lz-block.kind-window { border-style: dashed; }
  body.rm-admin .lz-block.kind-window.is-pend { border-color: #d2ae5c; }
  body.rm-admin .lz-block.kind-window.is-late { border-color: #e0918d; }
  body.rm-admin .lz-block.kind-window.is-run { border-color: #8fb1e3; }
  body.rm-admin .lz-block.kind-window.is-done { border-color: #86c79f; }
  body.rm-admin .lz-block[data-open-reservation-row]:hover { box-shadow: 0 6px 16px rgba(22, 48, 77, .12); z-index: 2; }
  body.rm-admin .lz-block:focus-visible { outline: 2px solid #c39b3f; outline-offset: 2px; z-index: 2; }
  body.rm-admin .lz-btext { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; overflow: hidden; }
  body.rm-admin .lz-bname { min-width: 0; overflow: hidden; color: #16304d; font-size: 12.5px; font-weight: 700; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; }
  body.rm-admin .lz-btime { min-width: 0; overflow: hidden; color: #6b7686; font-size: 11.5px; font-weight: 500; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }
  body.rm-admin .lz-lanes-2 .lz-btext { display: flex; gap: 6px; align-items: baseline; }
  body.rm-admin .lz-check { display: grid; flex: none; width: 16px; height: 16px; place-items: center; margin-left: auto; border-radius: 50%; color: #fff; background: #1f9d55; font-size: 10px; font-style: normal; font-weight: 800; line-height: 1; }
  body.rm-admin .lz-block .lz-av { flex-basis: 26px; width: 26px; height: 26px; font-size: 10.5px; }
  body.rm-admin .lz-block .lz-av-none { color: #6b7686; background: #fff; box-shadow: 0 0 0 1px #dfe4ea inset; }
  /* two overlapping cleanings: two half-height cards (one text line) inside the same row height (the Calendário's 56 px) */
  body.rm-admin .lz-lanes-2 .lz-block { top: 3px; height: 24px; gap: 6px; padding: 0 6px 0 4px; border-radius: 8px; transform: none; }
  body.rm-admin .lz-lanes-2 .lz-block.is-lane-1 { top: 29px; }
  body.rm-admin .lz-lanes-2 .lz-block .lz-av { flex-basis: 18px; width: 18px; height: 18px; font-size: 8px; }
  body.rm-admin .lz-lanes-2 .lz-bname { font-size: 11.5px; }
  body.rm-admin .lz-lanes-2 .lz-btime { font-size: 10.5px; }
  body.rm-admin .lz-lanes-2 .lz-check { width: 14px; height: 14px; font-size: 9px; }
  /* short cards: the check goes first, then the text (full text stays in title/aria-label) */
  @container (max-width: 110px) { body.rm-admin .lz-block .lz-check { display: none; } }
  @container (max-width: 62px) { body.rm-admin .lz-block .lz-btext { display: none; } }
  /* LIMPEZA-progress (owner, 24 Oct 2026): a started cleaning (data-lz-a) is filled Madalena green from its start up to the now line;
     the rest keeps the status tint. One variable (--lz-progress 0..1, set by the now tick) scales a pseudo-element: no markup change,
     no image reload. Avatar, text and check stay above the fill; the time text is darker so it keeps >= 4.5:1 on the fill and on
     the tint. The atrasada border stays visible around the fill. Pending cards never carry data-lz-a. */
  body.rm-admin .lz-block[data-lz-a]::before { content: ""; position: absolute; inset: 0; z-index: 0; background: #c6ead3; transform: scaleX(var(--lz-progress, 0)); transform-origin: left center; pointer-events: none; }
  body.rm-admin .lz-block[data-lz-a] > * { position: relative; z-index: 1; }
  body.rm-admin .lz-block[data-lz-a] .lz-btime { color: #4a5563; }
  /* LIMPEZA-v4 (owner, 24 Oct 2026): blocks sit at their Zelofy planned times, so a 40-minute cleaning is narrow; like the
     Zelofy board (BLOCK_MIN_PX 164) a card is at least 164 px wide, its left edge still at the exact start (admin.js lzMinSpan). */
  body.rm-admin .lz-shell[data-mode="dia"] .lz-block { min-width: 164px; }
  /* LIMPEZA-v4b (owner, 24 Oct 2026): only the page scrolls. The Calendário's .calendar-shell is its own scroller (overflow:auto +
     a viewport max-height, calendar-dnd.css); the Limpeza grid renders every row instead and keeps only the horizontal scroll
     when the days truly do not fit. Período: both columns end together (the grid card stretches to the Hoje card, which just
     ends), and the empty area under the last row keeps the unit column, the column lines (#eef0f4) and the today tint. */
  body.rm-admin .calendar-shell.lz-shell { max-height: none; overflow-y: visible; }
  /* owner 24 Oct 2026: the mouse wheel / trackpad did not scroll the PAGE while the pointer was over the Limpeza grid (Período and
     Dia). Cause: the board reuses .calendar-shell, whose overscroll-behavior-block/inline: none (calendar-dnd.css, the Calendário's
     iPhone rubber-band fix) stops scroll chaining; with overflow-x auto, overflow-y visible computes to auto, so the grid is a scroll
     container that never scrolls vertically and swallowed every vertical wheel. Chaining is restored here; the horizontal scroll
     inside the grid stays (only when the days overflow; shift+wheel scrolls it). */
  body.rm-admin .calendar-shell.lz-shell { overscroll-behavior: auto; }
  body.rm-admin .lz-board[data-lz-mode="periodo"] .lz-main { align-items: stretch; }
  body.rm-admin .lz-board[data-lz-mode="periodo"] .lz-today { align-self: start; }
  body.rm-admin .lz-board[data-lz-mode="periodo"] .lz-grid-card { display: flex; flex-direction: column; }
  body.rm-admin .lz-board[data-lz-mode="periodo"] .lz-shell { display: flex; flex: 1 0 auto; flex-direction: column; }
  body.rm-admin .lz-shell[data-mode="periodo"] > .lz-rows { display: flex; flex: 1 0 auto; flex-direction: column; }
  body.rm-admin .lz-shell[data-mode="periodo"]:has(.calendar-day[data-lz-col="0"].is-today) { --lz-ti: 0; }
  body.rm-admin .lz-shell[data-mode="periodo"]:has(.calendar-day[data-lz-col="1"].is-today) { --lz-ti: 1; }
  body.rm-admin .lz-shell[data-mode="periodo"]:has(.calendar-day[data-lz-col="2"].is-today) { --lz-ti: 2; }
  body.rm-admin .lz-shell[data-mode="periodo"]:has(.calendar-day[data-lz-col="3"].is-today) { --lz-ti: 3; }
  body.rm-admin .lz-shell[data-mode="periodo"]:has(.calendar-day[data-lz-col="4"].is-today) { --lz-ti: 4; }
  body.rm-admin .lz-shell[data-mode="periodo"]:has(.calendar-day[data-lz-col="5"].is-today) { --lz-ti: 5; }
  body.rm-admin .lz-shell[data-mode="periodo"]:has(.calendar-day[data-lz-col="6"].is-today) { --lz-ti: 6; }
  body.rm-admin .lz-shell[data-mode="periodo"]:has(.calendar-day[data-lz-col="7"].is-today) { --lz-ti: 7; }
  body.rm-admin .lz-shell[data-mode="periodo"]:has(.calendar-day[data-lz-col="8"].is-today) { --lz-ti: 8; }
  body.rm-admin .lz-shell[data-mode="periodo"]:has(.calendar-day[data-lz-col="9"].is-today) { --lz-ti: 9; }
  body.rm-admin .lz-shell[data-mode="periodo"]:has(.calendar-day[data-lz-col="10"].is-today) { --lz-ti: 10; }
  body.rm-admin .lz-shell[data-mode="periodo"]:has(.calendar-day[data-lz-col="11"].is-today) { --lz-ti: 11; }
  body.rm-admin .lz-shell[data-mode="periodo"] > .lz-rows::after {
    content: ""; flex: 1 0 0; min-width: calc(var(--cal-unit-w) + var(--cal-days, 12) * var(--lz-col-min)); border-top: 1px solid #eef0f4;
    background:
      repeating-linear-gradient(to right, #eef0f4 0 1px, transparent 1px calc(100% / var(--cal-days, 12))) var(--cal-unit-w) 0 / calc(100% - var(--cal-unit-w)) 100% no-repeat,
      linear-gradient(to right, #fff 0 var(--cal-unit-w), transparent var(--cal-unit-w)) 0 0 / 100% 100% no-repeat;
  }
  body.rm-admin .lz-shell[data-mode="periodo"]:has(.calendar-day.is-today) > .lz-rows::after {
    background:
      repeating-linear-gradient(to right, #eef0f4 0 1px, transparent 1px calc(100% / var(--cal-days, 12))) var(--cal-unit-w) 0 / calc(100% - var(--cal-unit-w)) 100% no-repeat,
      linear-gradient(to right, transparent calc(var(--cal-unit-w) + (100% - var(--cal-unit-w)) * var(--lz-ti, 0) / var(--cal-days, 12)), #fdf8ec 0, #fdf8ec calc(var(--cal-unit-w) + (100% - var(--cal-unit-w)) * (var(--lz-ti, 0) + 1) / var(--cal-days, 12)), transparent 0) 0 0 / 100% 100% no-repeat,
      linear-gradient(to right, #fff 0 var(--cal-unit-w), transparent var(--cal-unit-w)) 0 0 / 100% 100% no-repeat;
  }

  /* Período: day cells are .calendar-cell (is-today / is-weekend backgrounds unchanged); only their content is new. */
  body.rm-admin .lz-cell { justify-content: center; gap: 3px; padding: 4px 2px; }
  body.rm-admin .lz-cell small { color: #6b7686; font-size: 10.5px; font-weight: 600; line-height: 1; }
  body.rm-admin .lz-cmark { position: relative; display: inline-grid; border-radius: 50%; }
  body.rm-admin .lz-cmark[data-open-reservation-row]:hover { box-shadow: 0 0 0 3px rgba(210, 170, 97, .35); }
  body.rm-admin .lz-cmark:focus-visible { outline: 2px solid #c39b3f; outline-offset: 2px; }
  body.rm-admin .lz-cell .lz-av { width: 24px; height: 24px; font-size: 9.5px; }
  body.rm-admin .lz-cell .lz-av.is-run { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #2a6fd1; }
  body.rm-admin .lz-cell .lz-av.is-pend { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #d9a636; }
  body.rm-admin .lz-dot-none { width: 5px; height: 5px; border-radius: 50%; background: #d9dee6; }
  body.rm-admin .lz-mark { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
  body.rm-admin .lz-mark-done { background: #1f9d55; }
  body.rm-admin .lz-mark-late { background: #d64541; }
  body.rm-admin .lz-mark-clock { color: #2a5ea8; background: #e6effa; box-shadow: 0 0 0 1px #c4d8f3 inset; }
  body.rm-admin .lz-more { position: absolute; top: -6px; right: -12px; padding: 0 4px; border-radius: 999px; color: #fff; background: #16304d; font-size: 9px; font-weight: 700; line-height: 14px; }

  /* Hoje panel */
  body.rm-admin .lz-today { display: grid; align-content: start; gap: 12px; padding: 16px; }
  body.rm-admin .lz-today-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  body.rm-admin .lz-today-head strong { color: #16304d; font-size: 15px; font-weight: 700; }
  body.rm-admin .lz-pill { padding: 3px 10px; border-radius: 999px; color: #8a6a25; background: var(--rm-accent-soft, #faf3e5); font-size: 12px; font-weight: 700; white-space: nowrap; }
  body.rm-admin .lz-progress { display: flex; gap: 2px; height: 8px; overflow: hidden; border-radius: 999px; background: #eef1f5; }
  body.rm-admin .lz-progress i { flex: 0 1 0; min-width: 0; }
  body.rm-admin .lz-progress .is-done { background: #1f9d55; }
  body.rm-admin .lz-progress .is-run { background: #2a6fd1; }
  body.rm-admin .lz-progress .is-late { background: #d64541; }
  body.rm-admin .lz-progress .is-pend { background: #d9a636; }
  body.rm-admin .lz-today-summary { margin: -4px 0 0; color: #6b7686; font-size: 12.5px; }
  body.rm-admin .lz-group { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid #f1f3f6; }
  body.rm-admin .lz-group-head { display: flex; align-items: center; gap: 8px; color: #16304d; font-size: 13px; }
  body.rm-admin .lz-gdot { width: 8px; height: 8px; border-radius: 50%; }
  body.rm-admin .lz-gdot.is-run { background: #2a6fd1; }
  body.rm-admin .lz-gdot.is-pend { background: #d9a636; }
  body.rm-admin .lz-gdot.is-late { background: #d64541; }
  body.rm-admin .lz-gdot.is-done { background: #1f9d55; }
  body.rm-admin .lz-group-head b { padding: 0 7px; border-radius: 999px; color: #556273; background: #eef1f5; font-size: 11px; line-height: 18px; }
  body.rm-admin .lz-more-btn { margin-left: auto; padding: 2px 4px; border: 0; color: #8a6a25; background: none; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
  body.rm-admin .lz-glist { display: grid; gap: 6px; }
  body.rm-admin .lz-group:not(.is-expanded) .lz-glist > :nth-child(n+5) { display: none; }
  body.rm-admin .lz-gempty { margin: 0; color: #9aa3af; font-size: 12px; }
}
@media (min-width: 781px) and (max-width: 1440px) {
  body.rm-admin .lz-board[data-lz-mode="periodo"] .lz-main { grid-template-columns: minmax(0, 1fr) 330px; }
  body.rm-admin .lz-staff { order: 9; flex: 1 1 100%; } /* chips get their own toolbar line below the controls */
  body.rm-admin .lz-filter-wrap { margin-left: auto; }
  body.rm-admin .lz-mode-wrap { margin-left: 0; }
  body.rm-admin .calendar-shell.lz-shell { --lz-col-min: 38px; }
  body.rm-admin .calendar-shell.lz-shell[data-mode="dia"] { --lz-col-min: 58px; }
}
@media (min-width: 781px) and (max-width: 1180px) {
  body.rm-admin .lz-board[data-lz-mode="periodo"] .lz-main { grid-template-columns: minmax(0, 1fr); }
  body.rm-admin .lz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  body.rm-admin .lz-grid-card, body.rm-admin .lz-today, body.rm-admin .lz-mode-wrap { display: none !important; }
  body.rm-admin .lz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.rm-admin .lz-toolbar { padding: 8px; }
  body.rm-admin .lz-datenav { flex: 1 1 auto; justify-content: space-between; }
  body.rm-admin .lz-datenav strong { min-width: 0; font-size: 13.5px; }
  body.rm-admin .lz-staff { flex: 1 1 100%; order: 3; }
  body.rm-admin .lz-filter-wrap { position: static; }
  body.rm-admin .lz-filter-menu { right: 8px; left: 8px; min-width: 0; }
  body.rm-admin .lz-toolbar { position: relative; }
  body.rm-admin .lz-mobile { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
  body.rm-admin .lz-mcard { grid-template-areas: "main pill chev" "meta meta chev"; }
  body.rm-admin .lz-mcard .lz-trow-main { flex-wrap: wrap; row-gap: 4px; }
  body.rm-admin .lz-mcard .lz-trow-staff { flex-basis: 100%; }
  body.rm-admin .lz-mcard.is-idle { display: flex; gap: 8px; color: #6b7686; font-size: 12.5px; background: #f8f9fb; }
  body.rm-admin .lz-mempty { padding: 20px 12px; border: 1px dashed #dfe4ea; border-radius: var(--radius, .625rem); color: #6b7686; font-size: 13px; text-align: center; }
  body.rm-admin .lz-legend { font-size: 11.5px; gap: 4px 12px; }
}

/* Analytics units: the lower page section only. Existing upper graphs and business controls are unchanged. */
body.rm-admin .analytics-properties-panel.anu-panel { padding:0; border:0; background:none; box-shadow:none; }
body.rm-admin .anu-panel .analytics-panel-head { margin-bottom:18px; }
body.rm-admin .anu-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:20px; }
body.rm-admin .anu-summary article { display:flex; align-items:center; gap:15px; min-width:0; padding:20px; border:1px solid #edf0f4; border-radius:18px; background:#fff; box-shadow:0 4px 20px #18314d03; }
body.rm-admin .anu-summary-icon { display:grid; flex:none; place-items:center; width:54px; height:54px; border-radius:50%; font-size:27px; font-weight:700; }
body.rm-admin .anu-summary-icon.is-gold { color:#b4934e; background:#faf4e6; }
body.rm-admin .anu-summary-icon.is-green { color:#5f9f6d; background:#eaf4ec; }
body.rm-admin .anu-summary article>div { display:grid; gap:3px; min-width:0; }
body.rm-admin .anu-summary small { color:#68758a; font-size:12px; font-weight:600; }
body.rm-admin .anu-summary strong { color:#14243f; font-size:27px; line-height:1.25; font-weight:800; white-space:nowrap; }
body.rm-admin .anu-summary span:not(.anu-summary-icon) { color:#8590a1; font-size:10.5px; line-height:1.5; }
body.rm-admin .anu-summary .anu-trend { color:#559b68!important; font-weight:700; }
body.rm-admin .anu-summary .anu-trend.is-down { color:#b37545!important; }
body.rm-admin .anu-workspace { display:grid; min-width:0; align-items:start; gap:18px; }
body.rm-admin .anu-table-wrap { min-width:0; overflow:auto; border:1px solid #e8edf2; border-radius:17px; background:#fff; }
body.rm-admin .anu-table { width:100%; min-width:900px; border-collapse:separate; border-spacing:0; table-layout:auto; }
body.rm-admin .anu-table th { padding:18px 14px; border:0; background:#fbfcfe; color:#576981; font-size:11px; font-weight:700; line-height:1.5; white-space:nowrap; text-align:left; }
body.rm-admin .anu-table th small { display:block; font-size:10px; font-weight:500; color:#8a95a6; }
body.rm-admin .anu-table td { padding:15px 14px; border:0; border-top:1px solid #eef1f5; color:#536278; background:none; vertical-align:middle; }
body.rm-admin .anu-table tbody tr { cursor:pointer; transition:background .15s; }
body.rm-admin .anu-table tbody tr:hover { background:#f8faff; }
body.rm-admin .anu-table tbody tr[aria-selected="true"] { background:#f2f6ff; box-shadow:inset 0 0 0 1.5px #bad0fc; }
body.rm-admin .anu-table tbody tr:focus-visible { outline:2px solid #7398dc; outline-offset:-3px; }
body.rm-admin .anu-table td strong { display:block; color:#192b49; font-size:13px; font-weight:750; white-space:nowrap; }
body.rm-admin .anu-table td small { display:block; color:#8994a5; font-size:10.5px; margin-top:3px; }
body.rm-admin .anu-table .anu-rank { width:25px; padding-right:2px; font-size:11px; color:#8c98a7; }
body.rm-admin .anu-property { display:flex; gap:14px; align-items:center; min-width:180px; }
body.rm-admin .anu-property img,body.rm-admin .anu-photo-empty { display:grid; flex:none; width:84px; height:62px; border-radius:8px; object-fit:cover; background:#edf1f5; }
body.rm-admin .anu-photo-empty { place-items:center; color:#b59b66; font-size:32px; }
body.rm-admin .anu-property>div { min-width:0; max-width:180px; }
body.rm-admin .anu-property>div strong { font-size:15px; }
body.rm-admin .anu-property>div small { display:-webkit-box; overflow:hidden; -webkit-line-clamp:2; -webkit-box-orient:vertical; white-space:normal; line-height:1.45; }
body.rm-admin .anu-property .anu-draft { color:#a27e42; font-size:9px; }
body.rm-admin .anu-meter { display:block; width:90px; max-width:100%; margin-top:9px; }
body.rm-admin .anu-meter svg { display:block; width:100%; height:5px; }
body.rm-admin .anu-money { white-space:nowrap; }
body.rm-admin .anu-review-link { display:flex; align-items:center; gap:10px; padding:4px 0; border:0; border-radius:6px; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; }
body.rm-admin .anu-star { color:#c5a052; font-weight:700; white-space:nowrap; }
body.rm-admin .anu-review-link>.anu-star { font-size:24px; }
body.rm-admin .anu-review-preview { display:flex; align-items:center; gap:12px; min-width:180px; max-width:300px; }
body.rm-admin .anu-avatar { display:grid; flex:none; place-items:center; width:34px; height:34px; border-radius:50%; background:#d74366; color:#fff; font-size:15px; font-weight:600; }
body.rm-admin .anu-review-preview p { display:-webkit-box; overflow:hidden; -webkit-line-clamp:2; -webkit-box-orient:vertical; margin:0; color:#7a879a; font-size:11px; line-height:1.6; }
body.rm-admin .anu-chevron { margin-left:auto; color:#546681; font-size:23px; }
body.rm-admin #analytics-unit-detail { inset:10px 10px 10px auto; width:min(480px,calc(100% - 20px)); max-width:none; max-height:calc(100dvh - 20px); margin:0; padding:10px; border:1px solid #edf0f4; border-radius:19px; background:#fff; color:#273b58; overflow:auto; box-shadow:0 20px 70px #10213733; }
body.rm-admin #analytics-unit-detail::backdrop { background:#15233966; }
body.rm-admin #analytics-unit-detail:not([open]) { display:none; }
body.rm-admin .anu-cover-box { position:relative; min-height:190px; overflow:hidden; border-radius:12px; background:linear-gradient(135deg,#2c4769,#18304d); }
body.rm-admin #anu-cover { display:block; width:100%; height:210px; object-fit:cover; }
body.rm-admin #anu-cover[hidden] { display:none; }
body.rm-admin .anu-cover-box::after { position:absolute; inset:0; content:""; background:linear-gradient(180deg,#0f233e66,transparent 70%); pointer-events:none; }
body.rm-admin .anu-cover-copy { position:absolute; z-index:1; inset:15px 52px auto 15px; color:#fff; }
body.rm-admin .anu-cover-copy>div { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
body.rm-admin .anu-cover-copy h3 { margin:0; color:#fff; font-size:24px; font-weight:800; line-height:1.3; }
body.rm-admin #anu-tier { padding:5px 10px; border-radius:99px; background:#fff3d8; color:#806331; font-size:10px; font-weight:700; }
body.rm-admin .anu-cover-copy p { margin:4px 0 0; color:#fff; font-size:12px; line-height:1.4; }
body.rm-admin .anu-close { position:absolute; z-index:2; right:13px; top:13px; display:grid; place-items:center; width:32px; height:32px; border:0; border-radius:9px; background:#ffffff45; color:#fff; font-size:23px; cursor:pointer; }
body.rm-admin .anu-tabs { display:flex; justify-content:space-between; gap:12px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; flex-shrink:0; margin:12px 12px 0; padding:0; border-bottom:1px solid #eef1f5; }
body.rm-admin .anu-tabs::-webkit-scrollbar { display:none; width:0; height:0; }
body.rm-admin .anu-tabs button { position:relative; flex:none; padding:13px 0; border:0; border-radius:0; background:none; color:#8b97a8; font:inherit; font-size:11px; font-weight:600; line-height:1.4; cursor:pointer; }
body.rm-admin .anu-tabs button.is-active { color:#223856; }
body.rm-admin .anu-tabs button.is-active::after { content:""; position:absolute; inset:auto 0 -1px; height:3px; border-radius:3px; background:#293a59; }
body.rm-admin .anu-detail-metrics { display:grid; grid-template-columns:1.65fr 1fr .85fr; align-items:center; gap:10px; margin:0 12px; padding:22px 0; border-bottom:1px solid #eef1f5; }
body.rm-admin .anu-detail-metrics>div+div { align-self:stretch; display:flex; flex-direction:column; justify-content:center; gap:5px; padding-left:12px; border-left:1px solid #eef1f5; }
body.rm-admin .anu-ring-wrap { display:flex; align-items:center; gap:9px; }
body.rm-admin .anu-ring-wrap svg { width:66px; height:66px; flex:none; }
body.rm-admin .anu-ring-wrap text { fill:#223451; font:800 14px sans-serif; }
body.rm-admin .anu-ring-wrap>div { display:grid; gap:4px; }
body.rm-admin .anu-detail-metrics strong { color:#1b2e4d; font-size:14px; font-weight:800; line-height:1.4; white-space:nowrap; }
body.rm-admin .anu-detail-metrics small { display:block; color:#8a96a7; font-size:9px; line-height:1.5; }
body.rm-admin .anu-ring-wrap b { font-size:10px; }
body.rm-admin .anu-detail-metrics .anu-star { color:#c1a15a; font-size:20px; }
body.rm-admin .anu-content { padding:0 12px 16px; }
body.rm-admin .anu-facts { display:grid; grid-template-columns:1.3fr .8fr 1fr; gap:12px; padding:20px 0; border-bottom:1px solid #eef1f5; }
body.rm-admin .anu-facts small { display:block; margin-bottom:6px; color:#8a96a8; font-size:10px; }
body.rm-admin .anu-facts strong { display:block; color:#61718a; font-size:10.5px; font-weight:500; line-height:1.6; overflow-wrap:anywhere; }
body.rm-admin .anu-content h3 { margin:22px 0 14px; color:#203551; font-size:14px; line-height:1.4; font-weight:750; }
body.rm-admin .anu-content h3 span { color:#8b97a8; font-weight:500; }
body.rm-admin .anu-section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
body.rm-admin .anu-section-head button { border:0; padding:5px 0; background:none; color:#7190bc; font:inherit; font-size:10px; cursor:pointer; }
body.rm-admin .anu-review { margin:0 0 12px; padding:14px; border:1px solid #ebeff4; border-radius:12px; background:#fff; }
body.rm-admin .anu-review-head { display:flex; align-items:center; gap:10px; }
body.rm-admin .anu-review-head>div { min-width:0; flex:1; }
body.rm-admin .anu-review-head strong { display:block; color:#273b56; font-size:11px; font-weight:700; }
body.rm-admin .anu-review-head small { display:block; margin-top:4px; color:#9aa3b1; font-size:9px; line-height:1.5; }
body.rm-admin .anu-review-head .anu-star { font-size:15px; }
body.rm-admin .anu-review p { margin:12px 0 0; color:#718097; font-size:11px; line-height:1.7; overflow-wrap:anywhere; white-space:pre-line; }
body.rm-admin .anu-content[data-tab="overview"] .anu-review p { display:-webkit-box; overflow:hidden; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
body.rm-admin .anu-cleaning { display:block; margin-top:8px; color:#9aa4b0; font-size:9px; line-height:1.5; }
body.rm-admin .anu-chart { margin:22px 0 0; padding:0; }
body.rm-admin .anu-chart figcaption { display:grid; gap:5px; }
body.rm-admin .anu-chart figcaption strong { font-size:14px; font-weight:750; }
body.rm-admin .anu-chart figcaption span,body.rm-admin .anu-chart p { color:#929daf; font-size:9px; line-height:1.6; }
body.rm-admin .anu-chart svg { display:block; width:100%; height:auto; margin-top:12px; }
body.rm-admin .anu-chart text { fill:#99a2af; font:9px sans-serif; }
body.rm-admin .anu-chart p { margin:0; }
body.rm-admin .anu-photos { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
body.rm-admin .anu-photos a { display:block; overflow:hidden; border-radius:10px; }
body.rm-admin .anu-photos img { display:block; width:100%; height:130px; object-fit:cover; }
body.rm-admin .anu-calendar { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
body.rm-admin .anu-calendar>div { padding:10px 7px; border:1px solid #e4e9ef; border-radius:8px; background:#fff; text-align:center; }
body.rm-admin .anu-calendar .is-booked { background:#eaf4ed; border-color:#d8e9de; }
body.rm-admin .anu-calendar .is-blocked { background:#edf0f4; }
body.rm-admin .anu-calendar small { display:block; margin-bottom:5px; font-size:9px; color:#8e9aab; }
body.rm-admin .anu-calendar strong { font-size:10px; }
body.rm-admin .anu-history>div { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; padding:11px 0; border-bottom:1px solid #edf0f5; font-size:11px; }
body.rm-admin .anu-history strong { text-align:right; }
body.rm-admin .anu-note,body.rm-admin .anu-empty { padding:15px 0; color:#8995a7; font-size:11px; line-height:1.6; }
body.rm-admin .anu-table .anu-empty { padding:30px; text-align:center; }
@media(min-width:1500px) {
  body.rm-admin .anu-workspace:has(>#analytics-unit-detail[open]) { grid-template-columns:minmax(0,1fr) 420px; }
  body.rm-admin #analytics-unit-detail[open] { position:sticky; inset:76px auto auto; width:auto; max-height:calc(100dvh - 90px); box-shadow:0 4px 25px #142c4805; }
}
@media(max-width:1100px) {
  body.rm-admin .anu-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  body.rm-admin .anu-summary { gap:8px; }
  body.rm-admin .anu-summary article { gap:9px; padding:12px; border-radius:13px; }
  body.rm-admin .anu-summary-icon { width:36px; height:36px; font-size:20px; }
  body.rm-admin .anu-summary strong { font-size:20px; }
  body.rm-admin .anu-summary small { font-size:10px; }
  body.rm-admin .anu-summary span:not(.anu-summary-icon) { font-size:9px; }
  body.rm-admin .anu-panel .analytics-panel-head { align-items:stretch; }
  body.rm-admin #analytics-unit-detail { padding:7px; }
  body.rm-admin #anu-cover { height:185px; }
  body.rm-admin .anu-detail-metrics { gap:6px; margin:0 8px; }
  body.rm-admin .anu-ring-wrap { gap:5px; }
  body.rm-admin .anu-ring-wrap svg { width:54px; height:54px; }
  body.rm-admin .anu-detail-metrics strong { font-size:12px; }
  body.rm-admin .anu-detail-metrics small { font-size:8px; }
  body.rm-admin .anu-detail-metrics>div+div { padding-left:7px; }
  body.rm-admin .anu-tabs { gap:13px; }
}
@media(prefers-reduced-motion:reduce) { body.rm-admin .anu-table tbody tr { transition:none; } }

/* ANALYTICS-UNIT-SORT: native header buttons, quiet direction indicator. */
body.rm-admin .anu-table th button[data-anu-sort]{display:flex;align-items:center;justify-content:flex-start;gap:5px;width:100%;min-height:44px;padding:0;border:0;border-radius:5px;background:transparent;box-shadow:none;color:inherit;font:inherit;text-align:left;cursor:pointer;white-space:normal}
body.rm-admin .anu-table th button[data-anu-sort]:hover,body.rm-admin .anu-table th button[data-anu-sort].is-active{color:#203656;background:transparent}
body.rm-admin .anu-table th button[data-anu-sort]:focus-visible{outline:2px solid #537fbd;outline-offset:3px}
body.rm-admin .anu-table .anu-sort-arrow{flex:0 0 auto;font-size:12px;line-height:1;opacity:.45}
body.rm-admin .anu-table button.is-active .anu-sort-arrow{opacity:1;color:#203656}

/* ANALYTICS-THEME: restrained Madalena navy/gold, scoped to this page. No data/render changes. */
body.rm-admin .analytics-page { color:#203455; }
body.rm-admin .analytics-page .analytics-card,
body.rm-admin .analytics-page .analytics-history-card,
body.rm-admin .analytics-page .analytics-panel,
body.rm-admin .analytics-page .anu-summary>article { border-radius:8px;border-color:#e4e8ef;box-shadow:none; }
body.rm-admin .analytics-page .analytics-panel { padding:20px;margin-bottom:16px; }
body.rm-admin .analytics-page .analytics-card,
body.rm-admin .analytics-page .analytics-history-card { padding:16px;gap:9px; }
body.rm-admin .analytics-page .analytics-cards,
body.rm-admin .analytics-page .analytics-history-cards,
body.rm-admin .analytics-page .analytics-charts,
body.rm-admin .analytics-page .anu-summary { gap:12px; }
body.rm-admin .analytics-page .analytics-panel-head h3 { color:#203455;font-weight:700; }
body.rm-admin .analytics-page .analytics-card-label { color:#64738a; }
body.rm-admin .analytics-page .analytics-chip,
body.rm-admin .analytics-page .analytics-card-top .analytics-chip { border-radius:7px;background:#f4f0e5;color:#a48235; }
body.rm-admin .analytics-page .analytics-card-top .analytics-chip { width:36px;height:36px;font-size:18px; }
body.rm-admin .analytics-page .analytics-chip.is-airbnb { background:#fff1f4;color:#e31c5f; }
body.rm-admin .analytics-page .analytics-chip.is-solid-navy { background:#203455;color:#fff; }
body.rm-admin .analytics-page .analytics-chip.is-solid-gold { background:#b28e44;color:#fff; }
body.rm-admin .analytics-page .analytics-history-card-best { background:#203455;border-color:#203455; }
body.rm-admin .analytics-page .analytics-history-card-best .analytics-card-label { color:#ead8ae; }
body.rm-admin .analytics-page .analytics-card-estimate { background:#fbf8ef;border-color:#e8ddc3;border-left-color:#b28e44; }
body.rm-admin .analytics-page .analytics-ring-value { stroke-linecap:butt; }
body.rm-admin .analytics-page .analytics-legend li::before { border-radius:2px; }
body.rm-admin .analytics-page .analytics-history-track,
body.rm-admin .analytics-page .analytics-history-bar rect { rx:3px;ry:3px; }
body.rm-admin .analytics-page .analytics-history-record-pill { rx:3px;ry:3px; }
body.rm-admin .analytics-page .ana-daily-day rect { rx:2px;ry:2px; }
body.rm-admin .analytics-page .ana-top-track,
body.rm-admin .analytics-page .ana-top-fill,
body.rm-admin .analytics-page .ana-src-bar rect { rx:2px;ry:2px; }
body.rm-admin .analytics-page .ana-src-gauge path { stroke-linecap:butt; }
body.rm-admin .analytics-page .ana-top-badge { border-radius:6px; }
body.rm-admin .analytics-page .ana-top-val em,
body.rm-admin .analytics-page .ana-src-pct,
body.rm-admin .analytics-page .ana-foot-chip { border-radius:4px; }
body.rm-admin .analytics-page .ana-top-row:hover { transform:none; }
body.rm-admin .analytics-page .anu-summary-icon { width:48px;height:48px;border-radius:8px; }
body.rm-admin .analytics-page .anu-detail { border-radius:10px;box-shadow:0 3px 16px #2034550a; }
body.rm-admin .analytics-page .anu-review,
body.rm-admin .analytics-page .anu-chart,
body.rm-admin .analytics-page .anu-photos a { border-radius:6px; }
body.rm-admin .analytics-page .anu-cover-box,
body.rm-admin .analytics-page .anu-cover-box img { border-radius:8px 8px 0 0; }
body.rm-admin .analytics-page .anu-cover-copy #anu-tier { border-radius:5px; }
body.rm-admin .analytics-page .anu-property img,
body.rm-admin .analytics-page .anu-photo-empty { border-radius:5px; }
body.rm-admin .analytics-page .anu-calendar>div,
body.rm-admin .analytics-page .anu-tabs button { border-radius:4px; }
@media(max-width:780px){
 body.rm-admin .analytics-page .analytics-panel { padding:16px; }
 body.rm-admin .analytics-page .analytics-card,
 body.rm-admin .analytics-page .analytics-history-card { padding:14px; }
 body.rm-admin .analytics-page .analytics-cards,
 body.rm-admin .analytics-page .analytics-history-cards { gap:10px; }
}

/* Keep the table and detail shell consistent with the page panels. */
body.rm-admin .analytics-page .anu-table-wrap{border-radius:8px}
body.rm-admin .analytics-page #analytics-unit-detail{border-radius:10px;box-shadow:0 3px 16px #2034550a}

/* BOOT-splash (owner, 24 Oct 2026): calm, modern boot splash. Deep navy with two slow soft lights (transform only, no blur),
   the white logo fading up with one masked gold sheen, a thin gold indeterminate line and a small letter-spaced status.
   The page and status-bar area stay navy while it is up (iOS takes the page background there). It leaves with a 260 ms
   crossfade (admin.js hideBootLoader) over the app, which is revealed exactly when it was before. #boot-loader selectors
   win over the older admin.css/calendar-dnd.css splash rules, which stay for an exact revert. */
html:has(> body.rm-admin > #boot-loader:not(.hidden):not(.is-leaving)),
html:has(> body.rm-admin > #boot-loader:not(.hidden):not(.is-leaving)) > body.rm-admin { background: #0b1c32; }
body.rm-admin #boot-loader {
  --bs-ease: cubic-bezier(0.23, 1, 0.32, 1);
  isolation: isolate;
  overflow: hidden;
  gap: 0;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  color: #fff;
  background: #0b1c32 linear-gradient(170deg, #0b1c32 0%, #11284a 52%, #0c1f38 100%);
  transition: opacity 260ms var(--bs-ease), transform 260ms var(--bs-ease);
}
body.rm-admin #boot-loader::before,
body.rm-admin #boot-loader::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 96vmax;
  height: 96vmax;
  margin: -48vmax 0 0 -48vmax;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
body.rm-admin #boot-loader::before {
  background: radial-gradient(closest-side, rgba(214, 172, 96, .11), rgba(214, 172, 96, .035) 46%, rgba(214, 172, 96, 0) 70%);
  transform: translate3d(-16%, -24%, 0);
  animation: bs-drift-a 17s ease-in-out infinite alternate;
}
body.rm-admin #boot-loader::after {
  background: radial-gradient(closest-side, rgba(58, 116, 204, .24), rgba(58, 116, 204, .07) 50%, rgba(58, 116, 204, 0) 74%);
  transform: translate3d(18%, 26%, 0) scale(1.06);
  animation: bs-drift-b 21s ease-in-out infinite alternate;
}
body.rm-admin #boot-loader .loader-brand {
  position: relative;
  width: min(272px, 66vw);
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: bs-rise 640ms var(--bs-ease) both;
}
body.rm-admin #boot-loader .loader-brand img { width: 100%; height: auto; }
/* One soft gold sheen across the letters only (the logo itself is the mask), once, after the entrance. */
body.rm-admin #boot-loader .loader-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(240, 214, 160, 0) 44%, rgba(244, 222, 176, .95) 50%, rgba(240, 214, 160, 0) 56%) no-repeat;
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-mask: url("logo-madalena-white.png") center / 100% auto no-repeat;
  mask: url("logo-madalena-white.png") center / 100% auto no-repeat;
  animation: bs-sheen 1500ms cubic-bezier(0.77, 0, 0.175, 1) 700ms 1 both;
}
body.rm-admin #boot-loader .loader-line {
  position: relative;
  display: block;
  width: 112px;
  height: 2px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, .1);
  animation: bs-fade 520ms var(--bs-ease) 160ms both;
}
body.rm-admin #boot-loader .loader-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(210, 170, 97, 0), #d2aa61 40%, #ecd29e 60%, rgba(210, 170, 97, 0));
  transform: translateX(-100%);
  animation: bs-line 1400ms cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
body.rm-admin #boot-loader p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  animation: bs-fade 520ms var(--bs-ease) 220ms both;
}
body.rm-admin #boot-loader.is-leaving { opacity: 0; transform: scale(1.015); pointer-events: none; }
@keyframes bs-drift-a { from { transform: translate3d(-16%, -24%, 0) scale(1); } to { transform: translate3d(-4%, -12%, 0) scale(1.12); } }
@keyframes bs-drift-b { from { transform: translate3d(18%, 26%, 0) scale(1.06); } to { transform: translate3d(6%, 12%, 0) scale(.94); } }
@keyframes bs-rise { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes bs-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes bs-line { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes bs-fade { from { opacity: 0; } to { opacity: 1; } }
/* Reduced motion: the global rule above already ends every animation/transition at once; keep a static logo and a static
   gold line (same convention as .rm-sync-bar), the exit is instant. */
@media (prefers-reduced-motion: reduce) {
  body.rm-admin #boot-loader.is-leaving { transform: none; }
  body.rm-admin #boot-loader::before,
  body.rm-admin #boot-loader::after,
  body.rm-admin #boot-loader .loader-brand,
  body.rm-admin #boot-loader .loader-line,
  body.rm-admin #boot-loader p { animation: none; }
  body.rm-admin #boot-loader .loader-brand::after { content: none; }
  body.rm-admin #boot-loader .loader-line::before { width: 100%; transform: none; animation: none; opacity: .7; }
}

/* GS1: shared, quiet figures in the top bar; no cards, icons, meters or trend chips. */
body.rm-admin .topbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; }
body.rm-admin .topbar-heading { flex:0 1 auto; min-width:0; }
body.rm-admin .topbar-actions { margin-left:0; flex:0 0 auto; }
body.rm-admin .header-stats { display:flex; align-items:center; justify-content:flex-end; flex:1 1 auto; gap:0; min-width:0; }
body.rm-admin .header-stat { display:flex; flex-direction:column; gap:3px; min-width:0; padding:0 16px; border-left:1px solid #e3e7ee; }
body.rm-admin .header-stat:first-child { border-left:0; }
body.rm-admin .header-stat small { font-size:10px; line-height:1.3; font-weight:500; color:#7b8496; white-space:nowrap; }
body.rm-admin .header-stat strong { font-size:15px; line-height:1.3; color:#1f3152; font-weight:700; font-variant-numeric:tabular-nums; white-space:normal; }
body.rm-admin .header-stats[data-state="stale"] .header-stat small,
body.rm-admin .header-stats[data-state="unavailable"] .header-stat small { color:#9a7025; }
body.rm-admin .header-stats[data-state="stale"]::before,
body.rm-admin .header-stats[data-state="unavailable"]::before { content:'!'; color:#9a7025; font-size:12px; font-weight:700; padding-right:5px; }
@media (max-width:1500px) {
  body.rm-admin .topbar-heading { flex:1 1 auto; }
  body.rm-admin .header-stats { order:3; flex:1 0 100%; justify-content:space-between; padding-top:10px; border-top:1px solid #e8ebf0; }
  body.rm-admin .header-stat { flex:1 1 0; padding:0 14px; }
  body.rm-admin .header-stat:first-child { padding-left:0; }
  body.rm-admin .header-stat:last-child { padding-right:0; }
}
body.rm-admin.rm-chat-docked .topbar-heading { flex:1 1 auto; }
body.rm-admin.rm-chat-docked .header-stats { order:3; flex:1 0 100%; justify-content:space-between; padding-top:10px; border-top:1px solid #e8ebf0; }
body.rm-admin.rm-chat-docked .header-stat { flex:1 1 0; padding:0 10px; }
@media (max-width:780px) {
  body.rm-admin .topbar { gap:10px 8px; padding-bottom:10px; }
  body.rm-admin .topbar-heading { min-width:0; }
  body.rm-admin .header-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); row-gap:10px; column-gap:8px; justify-items:start; padding-top:10px; }
  body.rm-admin .header-stat,
  body.rm-admin.rm-chat-docked .header-stat { width:100%; padding:0; border:0; }
  body.rm-admin .header-stat small { font-size:9.5px; }
  body.rm-admin .header-stat strong { font-size:13px; }
  body.rm-admin .header-stats[data-state="stale"]::before,
  body.rm-admin .header-stats[data-state="unavailable"]::before { position:absolute; right:12px; }
}
@media (max-width:350px) {
  body.rm-admin .header-stat strong { font-size:11.5px; }
  body.rm-admin .header-stat small { font-size:9px; }
}

/* PT1: page title belongs to the selected page's content, with the same stable IDs. */
body.rm-admin .page-content-heading { display:block; margin:0 0 20px; min-width:0; }
body.rm-admin .page-content-heading #page-context,
body.rm-admin .page-content-heading #page-description { display:none; }
body.rm-admin .page-content-heading #page-title { margin:0; color:#1f3152; font-size:28px; font-weight:700; line-height:1.2; letter-spacing:-.02em; overflow-wrap:anywhere; }
@media (min-width:1181px) {
  body.rm-admin .topbar-heading { display:none; }
  body.rm-admin:not(.rm-chat-docked) .topbar .header-stats { order:0; flex:1 1 auto; justify-content:flex-start; border-top:0; padding-top:0; }
  body.rm-admin:not(.rm-chat-docked) .topbar .header-stat:first-child { padding-left:0; }
}
@media (max-width:780px) {
  body.rm-admin .page-content-heading { margin-bottom:16px; }
  body.rm-admin .page-content-heading #page-title { font-size:23px; }
}

/* HS1: persistent left search, anchored results, right-side shared figures. */
body.rm-admin .topbar { position:relative; z-index:30; overflow:visible; }
body.rm-admin .header-search { position:relative; flex:1 1 260px; min-width:180px; max-width:460px; order:1; }
body.rm-admin .header-search .search-modal-field { margin:0; display:block; }
body.rm-admin .header-search .search-modal-field > i { color:#7b8496; }
body.rm-admin .header-search .search-modal-field input { height:40px; min-height:40px; border:1px solid #e0e5ed; border-radius:8px; background:#fff; font-size:14px; padding-right:12px; box-sizing:border-box; }
body.rm-admin .header-search .search-modal-field input:focus { border-color:#b59a59; box-shadow:0 0 0 2px #b59a591c; }
body.rm-admin .header-search-dropdown { position:absolute; top:calc(100% + 8px); left:0; width:min(540px,calc(100vw - 40px)); max-height:min(520px,65dvh); background:#fff; border:1px solid #e0e5ed; border-radius:10px; box-shadow:0 12px 32px #1f31521f; padding:10px 12px 4px; z-index:100; box-sizing:border-box; }
body.rm-admin .header-search-dropdown .search-modal-count { margin:2px 2px 10px; color:#7b8496; font-size:10px; }
body.rm-admin .header-search-dropdown .search-modal-results { max-height:min(450px,52dvh); overflow:auto; margin:0; padding:0 0 4px; }
body.rm-admin .header-search-dropdown .search-result { width:100%; border-radius:6px; }
body.rm-admin .header-search-dropdown .search-result[aria-selected="true"] { background:#f2f5fa; border-color:#a8b7cf; outline:0; }
body.rm-admin .topbar .header-stats,
body.rm-admin:not(.rm-chat-docked) .topbar .header-stats,
body.rm-admin.rm-chat-docked .topbar .header-stats { order:2; flex:0 0 auto; margin-left:auto; justify-content:flex-end; padding-top:0; border-top:0; display:flex; }
body.rm-admin .topbar .topbar-actions { order:3; }
body.rm-admin .topbar .header-stat { flex:0 0 auto; padding:0 14px; }
body.rm-admin .topbar .header-stat strong { white-space:nowrap; }
body.rm-admin .topbar .topbar-heading { flex:0 0 auto; order:0; }
@media (max-width:1180px) {
  body.rm-admin .topbar .header-stats,
  body.rm-admin:not(.rm-chat-docked) .topbar .header-stats,
  body.rm-admin.rm-chat-docked .topbar .header-stats { order:4; flex:1 0 100%; padding-top:8px; border-top:1px solid #e8ebf0; }
  body.rm-admin .header-search { max-width:none; }
}
@media (max-width:780px) {
  body.rm-admin .topbar .topbar-actions { margin-left:auto; }
  body.rm-admin .header-search { order:3; flex:1 0 100%; min-width:0; }
  body.rm-admin .topbar .topbar-actions { order:1; }
  body.rm-admin .header-search-dropdown { width:100%; max-height:55dvh; }
  body.rm-admin .header-search-dropdown .search-modal-results { max-height:45dvh; }
  body.rm-admin .topbar .header-stats { justify-content:flex-end; gap:10px; }
  body.rm-admin .topbar .header-stat { padding:0; flex:1 1 0; }
  body.rm-admin .header-search .search-modal-field input { font-size:16px; }
}

/* HM1: phones keep a quiet header; search and figures open only on demand. */
body.rm-admin .topbar .header-phone-button { display:none; }
@media (max-width:780px) {
  body.rm-admin .topbar .header-phone-button { display:inline-flex; }
  body.rm-admin .topbar .topbar-actions { gap:4px; }
  body.rm-admin .topbar .topbar-actions .icon-button { width:32px; min-width:32px; height:36px; min-height:36px; padding:0; }
  body.rm-admin .topbar .topbar-heading .icon-button { width:32px; min-width:32px; }
  body.rm-admin .topbar .header-search { display:none; position:absolute; left:13px; right:13px; top:calc(100% + 8px); width:auto; margin:0; max-width:none; padding:8px; background:#fff; border:1px solid #e0e5ed; border-radius:10px; box-shadow:0 12px 32px #1f31521f; z-index:2; }
  body.rm-admin .topbar .header-search.is-open { display:block; }
  body.rm-admin .header-search .header-search-dropdown { top:calc(100% + 4px); left:0; right:0; width:100%; }
  body.rm-admin .topbar .header-stats,
  body.rm-admin:not(.rm-chat-docked) .topbar .header-stats,
  body.rm-admin.rm-chat-docked .topbar .header-stats { display:none; position:absolute; top:calc(100% + 8px); right:13px; width:min(340px,calc(100vw - 26px)); margin:0; padding:16px; box-sizing:border-box; border:1px solid #e0e5ed; border-radius:10px; background:#fff; box-shadow:0 12px 32px #1f31521f; z-index:2; gap:14px; }
  body.rm-admin .topbar .header-stats.is-open,
  body.rm-admin:not(.rm-chat-docked) .topbar .header-stats.is-open,
  body.rm-admin.rm-chat-docked .topbar .header-stats.is-open { display:flex; }
  body.rm-admin .topbar .header-stat { flex:1 1 0; min-width:0; }
  body.rm-admin .topbar .header-stat strong { white-space:normal; }
}

/* PH1: quiet, aligned phone header controls; no oversized outlined tiles. */
@media (max-width:780px) {
  body.rm-admin .topbar { padding:10px 12px; gap:8px; min-height:60px; align-items:center; }
  body.rm-admin .topbar .topbar-actions { gap:2px; flex-wrap:nowrap; flex:0 0 auto; margin-left:auto; }
  body.rm-admin .topbar .topbar-actions .icon-button,
  body.rm-admin .topbar .topbar-heading .icon-button { display:inline-flex; align-items:center; justify-content:center; width:36px; min-width:36px; height:40px; min-height:40px; margin:0; padding:0; border:0; border-radius:7px; background:transparent; box-shadow:none; color:#626d80; line-height:1; flex:0 0 36px; }
  body.rm-admin .topbar .topbar-actions .icon-button > i,
  body.rm-admin .topbar .topbar-heading .icon-button > i { font-size:20px; line-height:1; width:20px; height:20px; }
  body.rm-admin .topbar .topbar-actions .icon-button > svg { width:20px; height:20px; flex:none; }
  body.rm-admin .topbar .topbar-actions .icon-button:hover,
  body.rm-admin .topbar .topbar-actions .icon-button:active,
  body.rm-admin .topbar .topbar-actions .icon-button[aria-expanded="true"] { background:#1f31520a; color:#1f3152; }
  body.rm-admin .topbar .topbar-actions .icon-button:focus-visible,
  body.rm-admin .topbar .topbar-heading .icon-button:focus-visible { outline:2px solid #b59a59; outline-offset:1px; }
  body.rm-admin .topbar .notification-indicator { width:7px; height:7px; top:7px; right:6px; border-width:1px; }
}

/* LIMPEZA-colors (owner, 24 Oct 2026): avatars keep the cleaner's Zelofy colour (admin.js lz-hue rules); status is drawn
   AROUND the avatar (2 px white gap + 1.5 px ring: pendente gold, em andamento blue, atrasada red + "!" badge), never as its
   fill. Concluída keeps its green check (no ring), an unassigned cleaning keeps the clock placeholder. Período, Dia, the Hoje
   panel and phones use the same rule; the staff chips carry no status. */
body.rm-admin .lz-av:not(.lz-av-none).is-pend { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #d9a636; }
body.rm-admin .lz-av:not(.lz-av-none).is-run { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #2a6fd1; }
body.rm-admin .lz-av:not(.lz-av-none).is-late { overflow: visible; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #d64541; }
body.rm-admin .lz-av.is-late img { border-radius: 50%; }
body.rm-admin .lz-lanes-2 .lz-block .lz-av:not(.lz-av-none):is(.is-pend, .is-run, .is-late) { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--lz-ring, #d9a636); }
body.rm-admin .lz-lanes-2 .lz-block .lz-av.is-run { --lz-ring: #2a6fd1; }
body.rm-admin .lz-lanes-2 .lz-block .lz-av.is-late { --lz-ring: #d64541; }
body.rm-admin .lz-trow-staff .lz-av:not(.lz-av-none):is(.is-pend, .is-run, .is-late) { margin: 0 2px; }
body.rm-admin .lz-bang { position: absolute; top: -6px; right: -7px; display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; color: #fff; background: #d64541; box-shadow: 0 0 0 1.5px #fff; font-size: 9px; font-style: normal; font-weight: 800; line-height: 1; pointer-events: none; }
body.rm-admin .lz-trow-staff .lz-bang, body.rm-admin .lz-lanes-2 .lz-bang { width: 11px; height: 11px; font-size: 8px; }

/* Final-day conversation facts, same stable header/avatars and existing theme. */
.chat-checkout-summary { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.25fr) minmax(0,1fr) auto; gap: 10px; align-items: center; width: 100%; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border, #e6e8ee); }
.chat-checkout-summary[hidden] { display: none !important; }
.chat-checkout-summary > div { min-width: 0; }
.chat-checkout-summary span { display: block; font-size: 12px; line-height: 1.4; color: #87909d; white-space: nowrap; }
.chat-checkout-summary strong { display: block; margin-top: 3px; color: #1d3348; font-size: 15px; line-height: 1.4; font-weight: 700; }
.chat-checkout-summary [data-checkout="unit"] { color: #a48b43; }
.chat-checkout-summary small { display: block; color: #6b7788; font-size: 11px; line-height: 1.35; }
.chat-checkout-summary > div:nth-child(2) { white-space: nowrap; font-size: 13px; }
.chat-checkout-summary > div:nth-child(2) span { margin-bottom: 3px; }
.chat-checkout-summary > div:nth-child(2) strong, .chat-checkout-summary > div:nth-child(2) small { display: inline; font-size: inherit; line-height: 1.4; font-weight: 700; color: #1d3348; }
.chat-checkout-summary > div:nth-child(2) small { margin-left: 4px; }
.chat-checkout-late { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 8px 11px; border: 1px solid #d8c79b; border-radius: 7px; background: #faf6e9; color: #776027; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: default; }
.chat-checkout-late svg { width: 15px; height: 15px; flex: 0 0 auto; }
@media (max-width: 780px) {
 .chat-checkout-summary { gap: 8px; padding-top: 10px; margin-top: 10px; }
 .chat-checkout-summary > div:nth-child(2) { font-size: 12px; }
 .chat-checkout-summary span { font-size: 10px; }
 .chat-checkout-summary strong { font-size: 12px; }
 .chat-checkout-summary small { font-size: 10px; }
 .chat-checkout-late { min-height: 38px; padding: 7px 8px; font-size: 10px; }
 .chat-checkout-late svg { display: none; }
}
@media (max-width: 360px) {
 .chat-checkout-summary { grid-template-columns: 50px minmax(78px,1.1fr) minmax(55px,1fr) auto; gap: 5px; }
 .chat-checkout-summary span { font-size: 9px; }
 .chat-checkout-summary > div:nth-child(2) { font-size: 10.5px; }
 .chat-checkout-late { padding: 7px 6px; font-size: 9px; }
}

/* Chat facts open the existing reservation modal without replacing the conversation. */
[data-chat-reservation-details] { cursor: pointer; }
[data-chat-reservation-details]:focus-visible { outline: 2px solid var(--primary, #3153ad); outline-offset: 3px; border-radius: 4px; }
body.rm-admin #checkin-modal.chat-reservation-front { z-index: 127; }

/* LATE-checkout (25 Oct 2026, -lc2): late checkout selector in the chat checkout header + reservation detail marker */
.chat-checkout-summary { position: relative; z-index: 6; }
.chat-checkout-late[aria-disabled="false"] { cursor: pointer; }
.chat-checkout-late[aria-disabled="false"]:hover { background: #f4ebcf; }
.chat-checkout-late[aria-disabled="true"] { opacity: .78; }
.chat-checkout-late.is-set { opacity: 1; border-color: #c7a85a; background: #f3e6bf; color: #5f4b17; font-weight: 700; }
.chat-checkout-late[aria-busy="true"] { cursor: progress; }
.chat-late-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; display: flex; gap: 6px; max-width: min(320px, calc(100vw - 24px)); padding: 6px; border: 1px solid #e6e8ee; border-radius: 10px; background: #fff; box-shadow: 0 10px 24px rgba(16,24,40,.14); }
.chat-late-menu[hidden] { display: none !important; }
.chat-late-menu button { min-width: 64px; min-height: 40px; padding: 8px 10px; border: 1px solid #d8c79b; border-radius: 8px; background: #faf6e9; color: #5f4b17; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.chat-late-menu button[aria-checked="true"] { border-color: #a48b43; background: #e9d79f; }
.chat-late-menu button:hover, .chat-late-menu button:focus-visible { background: #f1e5c2; outline: none; }
.chat-late-menu .chat-late-note { margin: 0; padding: 4px 6px; color: #5b6575; font-size: 13px; line-height: 1.35; white-space: normal; }
/* LATE-feasibility (26 Oct 2026, -lf1): a time the Zelofy cleaning plan cannot fit stays in its place, muted; reason in its title. */
.chat-late-menu [data-late-time][aria-disabled="true"], .chat-late-menu [data-late-time][aria-disabled="true"]:hover, .chat-late-menu [data-late-time][aria-disabled="true"]:focus-visible { border-style: dashed; border-color: #ddd8c8; background: #f6f6f3; color: #9aa1ad; cursor: not-allowed; }
body.rm-admin .lz-blate { color: #776027; font-weight: 700; }
.admin-stay-period .admin-stay-late { display: block; margin-top: 2px; color: #776027; font-size: 12px; font-weight: 700; }
/* CHAT-late-agendando (26 Oct 2026, -ag1): a recorded late checkout the Zelofy plan does not show yet. A class on the existing
   chip (no re-render) puts a small ring + "Agendando…" on a second line under "Late checkout 11:30", inside the same chip
   (as wide as the label, no taller than 38 px); the clock icon steps aside and the provisional cleaning time is dimmed.
   transform-only spin; static under reduced motion. */
.chat-checkout-late.is-agendando { flex-wrap: wrap-reverse; width: min-content; column-gap: 4px; row-gap: 2px; padding-top: 4px; padding-bottom: 4px; }
.chat-checkout-late.is-agendando svg { display: none; }
.chat-checkout-late.is-agendando::before { content: ""; order: -2; flex: 0 0 auto; box-sizing: border-box; width: 9px; height: 9px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; opacity: .7; animation: chat-agenda-spin .9s linear infinite; }
.chat-checkout-late.is-agendando::after { content: "Agendando…"; order: -1; font-size: max(9px, .85em); font-weight: 500; opacity: .75; }
.chat-checkout-summary [data-checkout="cleaning"] { transition: opacity .2s ease; }
.chat-checkout-summary:has(.chat-checkout-late.is-agendando) [data-checkout="cleaning"] { opacity: .5; }
@keyframes chat-agenda-spin { to { transform: rotate(360deg); } }
@media (max-width: 780px) {
 .chat-checkout-late.is-agendando::before { width: 8px; height: 8px; border-width: 1.25px; }
}
@media (prefers-reduced-motion: reduce) {
 .chat-checkout-late.is-agendando::before { animation: none; border-right-color: currentColor; border-style: dotted; }
 .chat-checkout-summary [data-checkout="cleaning"] { transition: none; }
}

/* Full-row native hit target; the existing facts/images are never rebuilt. */
body.rm-admin #guesty-chat-stay, body.rm-admin #chat-checkout-summary { position: relative; }
body.rm-admin .guesty-chat-head .chat-reservation-hit { position: absolute; inset: 0; z-index: 1; display: block; width: auto; height: auto; min-width: 0; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 4px; background: transparent; box-shadow: none; cursor: pointer; appearance: none; touch-action: manipulation; }
body.rm-admin .guesty-chat-head .chat-reservation-hit[hidden] { display: none !important; }
body.rm-admin .guesty-chat-head .chat-reservation-hit:focus-visible { outline: 2px solid var(--primary, #3153ad); outline-offset: 3px; }
body.rm-admin #chat-checkout-summary > .chat-checkout-late { position: relative; z-index: 2; }
/* Keep the conversation mounted, but remove it from the foreground while details are open.
   The ordinary modal stack stays intact for nested guest/access dialogs. */
body.rm-admin.rm-chat-reservation-focus #guesty-chat-modal,
body.rm-admin.rm-chat-reservation-focus #guesty-chat-rail,
body.rm-admin.rm-chat-reservation-focus #messages-sheet { visibility: hidden; pointer-events: none; }
body.rm-admin.rm-chat-reservation-focus .modal:not(#guesty-chat-modal) { right: 0; }
body.rm-admin #checkin-modal.chat-reservation-front { z-index: 100; }

/* One scroll region: the summary and action bar cannot be dragged into the content. */
body.rm-admin #checkin-modal .checkin-modal-card { display: flex; flex-direction: column; overflow: hidden; }
body.rm-admin #checkin-modal .modal-head { flex: 0 0 auto; position: static; }
body.rm-admin #checkin-modal #checkin-form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; padding: 0; }
body.rm-admin #checkin-modal #checkin-form.hidden { display: none; }
body.rm-admin #checkin-modal #checkin-reservation-summary { flex: 0 0 auto; position: static; margin: 0; padding: 10px 20px 14px; }
body.rm-admin #checkin-modal .checkin-scroll-region { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px 20px; }
body.rm-admin #checkin-modal #checkin-form > .modal-actions { flex: 0 0 auto; position: static; margin: 0; padding: 12px 20px 12px; background: #fff; border-top: 1px solid var(--rm-line); }
body.rm-admin #checkin-modal .checkin-summary-photo.is-initials { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#d6bc72,#af8c39); font-size: 16px; font-weight: 700; }
body.rm-admin #checkin-modal #wl-reservation { display: none !important; }
body.rm-admin #checkin-modal.cx-review-only #checkin-form > .checkin-scroll-region { display: block !important; }
body.rm-admin #checkin-modal.cx-review-only .checkin-scroll-region > :not(#cx-checkin-cards) { display: none !important; }
body.rm-admin #checkin-modal .reservation-finance { padding: 14px; border: 1px solid var(--rm-line); border-radius: 12px; background: #f8fafc; }
body.rm-admin #checkin-modal .reservation-finance h3 { margin: 0 0 12px; font-size: 13px; color: var(--rm-primary); }
body.rm-admin #checkin-modal .reservation-finance dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 16px; margin: 0; }
body.rm-admin #checkin-modal .reservation-finance dt { color: var(--rm-text); font-size: 11px; line-height: 1.4; }
body.rm-admin #checkin-modal .reservation-finance dd { margin: 3px 0 0; font-size: 14px; font-weight: 650; color: var(--rm-primary); overflow-wrap: anywhere; }
body.rm-admin #checkin-modal .reservation-finance small { display: block; margin-top: 12px; font-size: 11px; color: var(--rm-text); }
body.rm-admin #checkin-modal #checkin-auto-review { padding: 12px 14px; }
body.rm-admin #checkin-modal .stay-review-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
body.rm-admin #checkin-modal .stay-review-label { padding: 0; border: 0; background: transparent; color: var(--rm-primary); font: inherit; font-size: 13px; font-weight: 650; text-align: left; cursor: pointer; }
body.rm-admin #checkin-modal .stay-review-label:disabled { opacity: 1; cursor: default; }
body.rm-admin #checkin-modal .stay-review-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 68px; min-height: 34px; padding: 5px 12px; border: 1px solid #d6dce4; border-radius: 18px; color: #536075; background: #f4f5f7; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
body.rm-admin #checkin-modal .stay-review-toggle::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #a0a9b7; }
body.rm-admin #checkin-modal .stay-review-toggle.is-on { color: #27634e; border-color: #b9d7c9; background: #eaf6ef; }
body.rm-admin #checkin-modal .stay-review-toggle.is-on::before { background: #3f8b68; }
body.rm-admin #checkin-modal .stay-review-toggle:disabled { cursor: default; }
body.rm-admin #checkin-modal .stay-review-toggle:focus-visible, body.rm-admin #checkin-modal .stay-review-label:focus-visible { outline: 2px solid var(--rm-primary); outline-offset: 3px; }
@media(max-width:620px) {
 body.rm-admin #checkin-modal #checkin-reservation-summary { padding-left: 14px; padding-right: 14px; }
 body.rm-admin #checkin-modal .checkin-scroll-region { padding: 14px; }
 body.rm-admin #checkin-modal #checkin-form > .modal-actions { padding-left: 14px; padding-right: 14px; }
}
@media(max-width:780px) {
 html.rm-sheet-open body.rm-admin.rm-chat-returning > #messages-sheet { visibility: visible !important; z-index: 124; pointer-events: none; }
 body.rm-admin.rm-chat-returning #messages-sheet .messages-sheet-card { transform: none; transition: none; }
 body.rm-admin.rm-chat-returning #guesty-chat-modal { pointer-events: none; }
}

/* Safari does not reliably emit focusin for programmatically focused buttons. Never inherit the old sheet's hidden state. */
html body.rm-admin #checkin-modal.chat-reservation-front:not(.hidden) { visibility: visible !important; }
@media(max-width:780px) {
 html.rm-sheet-open body.rm-admin.rm-chat-entering > #messages-sheet { visibility: visible !important; z-index: 124; pointer-events: none; }
 body.rm-admin.rm-chat-entering #messages-sheet .messages-sheet-card { transform: none; transition: none; }
}

body.rm-admin #guest-history-modal { z-index: 132; }
body.rm-admin #guest-history-modal:not(.hidden) { visibility: visible !important; }
body.rm-admin .guest-history-card { display: flex; flex-direction: column; width: min(620px,100%); overflow: hidden; }
body.rm-admin .guest-history-card > .modal-head { position: static; flex: 0 0 auto; }
body.rm-admin .guest-history-card .modal-head small { display: block; margin-top: 4px; color: var(--rm-text); font-size: 12px; }
body.rm-admin .guest-history-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px 20px; }
body.rm-admin .guest-history-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0 0 14px; }
body.rm-admin .guest-history-summary > div { padding: 12px; background: #f8fafc; border: 1px solid var(--rm-line); border-radius: 10px; min-width: 0; }
body.rm-admin .guest-history-summary dt { color: var(--rm-text); font-size: 11px; white-space: nowrap; }
body.rm-admin .guest-history-summary dd { margin: 5px 0 0; font-size: 15px; color: var(--rm-primary); font-weight: 650; overflow-wrap: anywhere; }
body.rm-admin .guest-history-row { padding: 14px 0; border-top: 1px solid var(--rm-line); }
body.rm-admin .guest-history-row > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.rm-admin .guest-history-row p { margin: 6px 0; font-size: 13px; }
body.rm-admin .guest-history-row small { display: block; color: var(--rm-text); font-size: 12px; }
body.rm-admin .guest-history-row button { margin-top: 8px; }
body.rm-admin button.checkin-summary-photo, body.rm-admin button#guesty-chat-avatar { padding: 0; border: 0; min-height: 0; box-shadow: none; cursor: pointer; font-family: inherit; }
body.rm-admin button.checkin-summary-photo:focus-visible, body.rm-admin button#guesty-chat-avatar:focus-visible { outline: 2px solid var(--rm-primary); outline-offset: 3px; }
body.rm-admin button#guesty-chat-avatar:disabled { cursor: default; }
/* All + options are visible; short landscape screens use two columns. */
body.rm-admin #guesty-chat-quick-menu { max-height: none; overflow: visible; }
@media(max-height:560px) and (min-width:500px) {
 body.rm-admin #guesty-chat-quick-menu { width: min(680px,calc(100% - 20px)); grid-template-columns: repeat(2,minmax(0,1fr)); }
 body.rm-admin #guesty-chat-quick-menu .guesty-chat-quick-item { min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
}

body.rm-admin #cx-checkin-move .inline-move-label { display: block; margin: 0 0 9px; color: var(--rm-primary); font-size: 13px; font-weight: 650; }
body.rm-admin #cx-checkin-move .inline-move-controls { display: flex; align-items: center; gap: 10px; }
body.rm-admin #cx-checkin-move select { flex: 1 1 auto; min-width: 0; min-height: 38px; margin: 0; }
body.rm-admin #cx-checkin-move button { flex: 0 0 auto; min-height: 38px; height: auto; }
body.rm-admin #cx-checkin-move .form-error { margin: 10px 0 0; }

body.rm-admin #hist-dialog .hist-item[data-hist-reservation] { cursor: pointer; }
body.rm-admin #hist-dialog .hist-item[data-hist-reservation]:hover { background: #f4f7fc; }
body.rm-admin #hist-dialog .hist-item[data-hist-reservation]:focus-visible { outline: 2px solid var(--rm-primary); outline-offset: -2px; border-radius: 10px; }
body.rm-admin #checkin-modal.checkin-display-only .checkin-scroll-region::before { content: 'Detalhes da reserva · somente leitura'; display: block; margin-bottom: 12px; color: var(--rm-text); font-size: 12px; }
body.rm-admin #checkin-modal.checkin-display-only #cx-checkin-cards,
body.rm-admin #checkin-modal.checkin-display-only .reservation-section-title,
body.rm-admin #checkin-modal.checkin-display-only #checkin-reservation-codes,
body.rm-admin #checkin-modal.checkin-display-only .checkin-settings-card,
body.rm-admin #checkin-modal.checkin-display-only #checkin-visitors-panel,
body.rm-admin #checkin-modal.checkin-display-only .access-row-actions,
body.rm-admin #checkin-modal.checkin-display-only #checkin-reservation-codes .code-actions { display: none !important; }

/* One inbox/one conversation, without the old open-chat rail. */
body.rm-admin #guesty-chat-rail { display: none !important; }
@media (min-width: 781px) {
  body.rm-admin { --chat-rail-w: 0px; }
  body.rm-admin #guesty-chat-modal { right: 0; z-index: 128; }
  body.rm-admin #messages-sheet .messages-sheet-card { width: var(--chat-dock-w); }
  body.rm-admin #messages-sheet { z-index: 127; }
  body.rm-admin.rm-chat-reservation-focus #guesty-chat-modal { visibility: visible; pointer-events: none; }
  body.rm-admin.rm-chat-reservation-focus #guesty-chat-modal .guesty-chat-card { pointer-events: auto; }
  body.rm-admin.rm-chat-joined.rm-chat-docked #checkin-modal.chat-reservation-front,
  body.rm-admin.rm-chat-joined.rm-chat-docked #checkin-modal { right: var(--chat-dock-w); z-index: 129; align-items: stretch; justify-items: end; padding: 0; }
  body.rm-admin.rm-chat-joined.rm-chat-docked #checkin-modal .checkin-modal-card { width: min(720px,calc(100vw - var(--chat-dock-w))); height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; box-shadow: -20px 0 45px -30px #10203b66; }
  body.rm-admin.rm-chat-joined.rm-chat-docked #checkin-modal .modal-head { border-radius: 0; }
  body.rm-admin.rm-chat-joined.rm-chat-docked #guesty-chat-modal .guesty-chat-card { border-left: 1px solid var(--rm-line); box-shadow: none; }
  body.rm-admin.rm-chat-returning #messages-sheet { visibility: visible; pointer-events: none; }
  body.rm-admin.rm-chat-returning #messages-sheet .messages-sheet-card { transform: none; transition: none; }
  body.rm-admin.rm-chat-entering #messages-sheet .messages-sheet-card { transform: none; transition: none; }
}
/* Zelofy uses the reservation event's ordinary text metrics. */
body.rm-admin .calendar-block-band.is-zelofy { font-family: inherit; font-size: 11.5px; font-weight: 600; line-height: 1.1; }
body.rm-admin .calendar-block-band.is-zelofy .calendar-zelofy-label strong { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font: inherit; letter-spacing: normal; text-shadow: none; }
body.rm-admin .calendar-block-band.is-zelofy .calendar-zelofy-label small { font-family: inherit; font-size: 10px; font-weight: 600; line-height: 1.1; }
body.rm-admin .calendar-block-band.calendar-restriction-event > .calendar-restriction-tag.is-zelofy-rule,
body.rm-admin .calendar-block-band.calendar-restriction-event > .calendar-restriction-tag.is-zelofy-held { font-family: inherit; font-weight: 600; text-shadow: none; }
@media (max-width: 780px) { body.rm-admin .calendar-block-band.is-zelofy { font-size: 11px; } }

/* The Portaria history and event picture stay above the conversation on every width. */
body.rm-admin #face-activity-modal { z-index: 133; }
body.rm-admin #media-viewer-modal { z-index: 134; }
body.rm-admin #face-activity-modal:not(.hidden), body.rm-admin #media-viewer-modal:not(.hidden) { visibility: visible !important; }
body.rm-admin .face-activity-card { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
body.rm-admin .face-activity-card > .modal-head { flex: 0 0 auto; position: static; }
body.rm-admin .face-activity-body { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
body.rm-admin #face-activity-status { margin: 0; color: var(--rm-text); font-size: 12px; }
body.rm-admin #media-viewer-caption { margin: 4px 0 0; color: var(--rm-text); font-size: 12px; }
@media (max-height: 700px) {
  body.rm-admin #guesty-chat-quick-menu:has(> [data-quick-share]:nth-child(8)) { width: min(680px,calc(100% - 20px)); grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.rm-admin #guesty-chat-quick-menu:has(> [data-quick-share]:nth-child(8)) .guesty-chat-quick-item { min-height: 44px; padding: 4px 8px; gap: 8px; }
  body.rm-admin #guesty-chat-quick-menu:has(> [data-quick-share]:nth-child(8)) .guesty-chat-quick-copy strong { font-size: 12px; }
}

/* Compact saved WhatsApp delivery state in apartment-ready history events. */
body.rm-admin .hist-delivery { display: inline-flex; align-items: center; gap: 3px; min-height: 28px; padding: 1px 7px; border: 0; border-radius: 999px; background: transparent; color: #8b929e; font: inherit; cursor: pointer; }
body.rm-admin .hist-delivery .ri-whatsapp-line { color: #329c65; font-size: 17px; }
body.rm-admin .hist-delivery .ri-check-line, body.rm-admin .hist-delivery .ri-check-double-line { font-size: 17px; }
body.rm-admin .hist-delivery.is-delivered .ri-check-double-line { color: #31a2d7; }
body.rm-admin .hist-delivery.is-failed .ri-check-line { color: #bf5360; }
body.rm-admin .hist-delivery:hover, body.rm-admin .hist-delivery:focus-visible { background: #eef3f6; }
body.rm-admin .hist-delivery-popover { max-width: min(320px, calc(100vw - 40px)); padding: 14px 18px; border: 1px solid #dfe4ec; border-radius: 12px; color: #193452; background: #fff; font: inherit; box-shadow: 0 10px 30px #19345226; }

/* Account-linked Portaria history; preserve loaded photo nodes on refresh/reopen. */
body.rm-admin #face-activity-profile { display:flex; align-items:center; gap:12px; width:100%; margin:0 0 14px; padding:12px; border:1px solid var(--rm-line); border-radius:12px; background:#f8fafb; color:var(--rm-primary); font:inherit; text-align:left; cursor:pointer; }
body.rm-admin #face-activity-profile[hidden] { display:none; }
body.rm-admin #face-activity-profile:disabled { cursor:default; opacity:1; }
body.rm-admin #face-activity-profile img { width:48px; height:56px; border-radius:8px; object-fit:cover; flex:none; }
body.rm-admin #face-activity-profile strong, body.rm-admin #face-activity-profile small { display:block; }
body.rm-admin #face-activity-profile small { margin-top:4px; font-size:12px; color:var(--rm-text); }

/* Guest-written Airbnb reviews: compact footer action, same native top-layer feed cards. */
body.rm-admin .checkin-modal-card .modal-actions .checkin-chat-button { margin-right:0; }
body.rm-admin .checkin-modal-card .modal-actions #checkin-reviews { display:inline-flex; align-items:center; justify-content:center; flex:0 0 32px; width:32px; min-width:32px; padding:0; margin-right:auto; color:#886517; border-color:#dbc991; background:#fbf6e9; box-shadow:none; }
body.rm-admin #checkin-reviews svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; }
body.rm-admin #guest-reviews-count { padding:0 20px; margin:12px 0 0; color:var(--rm-muted); font-size:12px; }
@media(max-width:600px) {
 body.rm-admin .checkin-modal-card .modal-actions { gap:6px; }
 body.rm-admin .checkin-modal-card .modal-actions [data-close-modal] { min-width:58px; width:auto; flex:0 0 auto; padding:0 10px; }
 body.rm-admin .checkin-modal-card .modal-actions #checkin-copy-link { padding:0 9px; }
}
@media(max-width:360px) {
 body.rm-admin .checkin-modal-card .modal-actions { gap:5px; }
 body.rm-admin .checkin-modal-card .modal-actions #checkin-copy-link.checkin-guest-link-button { padding:0 7px; font-size:10.5px; }
 body.rm-admin .checkin-modal-card .modal-actions #checkin-copy-link i { margin-right:4px; }
 body.rm-admin .checkin-modal-card .modal-actions [data-close-modal] { min-width:50px; padding:0 7px; }
}

/* MSG-list-touch-paint (29 Oct 2026): on touch screens (iPhone) the skipped rows painted blank during momentum scroll and the
   77 px estimate made the list jump; rows are painted normally there. Desktop keeps the 17 Oct rule above. */
@media (hover: none) and (pointer: coarse) {
  body.rm-admin .message-threads > .message-thread { content-visibility: visible; contain-intrinsic-size: none; }
}

/* EXTEND-stay (owner, 23 Nov 2026): the reservation modal footer's "Área do hóspede" is an icon button like WhatsApp, chat and
   reviews (same 32 px square, gold kept), followed by the new "Estender hospedagem" icon; then its dialog (.direct-dialog). */
body.rm-admin #checkin-modal .checkin-modal-card .modal-actions #checkin-copy-link.checkin-guest-link-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; min-width: 32px; flex: 0 0 32px; padding: 0; }
body.rm-admin #checkin-modal .checkin-modal-card .modal-actions #checkin-copy-link.checkin-guest-link-button i { margin: 0; font-size: 17px; line-height: 1; }
body.rm-admin #checkin-modal .checkin-modal-card .modal-actions .checkin-extend-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; min-width: 32px; flex: 0 0 32px; padding: 0; color: #193452; border-color: #d2aa61; background: #fbf6e9; box-shadow: none; }
body.rm-admin #checkin-modal .checkin-modal-card .modal-actions .checkin-extend-button:hover { color: #0f2238; background: #f3e6c4; }
body.rm-admin #checkin-modal .checkin-modal-card .modal-actions .checkin-extend-button i { display: inline-block; margin: 0; font-size: 17px; line-height: 1; } /* EXTEND-icon */
body.rm-admin #checkin-modal .checkin-modal-card .modal-actions .checkin-extend-button.hidden,
body.rm-admin #checkin-modal.cx-review-only #checkin-extend { display: none !important; }
body.rm-admin #cx-extend-modal .cx-extend-card { width: min(620px, 100%); }
/* EXTEND-paid: payment choice radios sized like the checkbox rows. */
body.rm-admin #cx-extend-modal .cx-ext-paykind { display: grid; gap: 8px; margin: 0 0 10px; }
body.rm-admin #cx-extend-modal .cx-ext-paykind .direct-whatsapp-choice { margin: 0; padding: 10px 12px; border: 1px solid var(--line, #e3e6ec); border-radius: 12px; }
body.rm-admin #cx-extend-modal .cx-ext-paykind .direct-whatsapp-choice:has(input:checked) { border-color: #d2aa61; background: #fdf8ec; }
body.rm-admin #cx-extend-modal .direct-whatsapp-choice input[type="radio"] { flex: 0 0 18px; width: 18px; min-width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; box-shadow: none; }
body.rm-admin #cx-extend-modal .direct-whatsapp-choice > span { flex: 1 1 auto; min-width: 0; display: block; }
/* EXTEND-sametag: the apartment tag in the extension list; the same apartment in bold gold. */
body.rm-admin #cx-extend-modal .cx-ext-tag { font-weight: 600; color: inherit; }
body.rm-admin #cx-extend-modal .cx-ext-tag.is-same { font-weight: 800; color: #9a7025; }
body.rm-admin #cx-extend-modal .default-slots-intro { margin: 0 0 12px; }
body.rm-admin #cx-extend-modal .reservation-section-title { margin: 16px 0 8px; }
body.rm-admin #cx-extend-modal .direct-units .broadcast-recipient.is-blocked { opacity: .6; cursor: default; }
body.rm-admin #cx-extend-modal .direct-units .broadcast-recipient > span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.rm-admin #cx-extend-modal .cx-ext-nights { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 4px; }
body.rm-admin #cx-extend-modal .cx-ext-nights .checkin-slots-stepper { margin: 0; }
body.rm-admin #cx-extend-modal .cx-ext-nights .checkin-slots-stepper input { width: 52px; min-height: 34px; height: 34px; padding: 0; border: 0; text-align: center; font-size: 14px; font-weight: 700; }
body.rm-admin #cx-extend-modal .cx-ext-nights .checkin-slots-step { width: 32px; height: 34px; }
body.rm-admin #cx-extend-modal .cx-ext-nights small { color: var(--muted); font-size: 11px; font-weight: 600; }
body.rm-admin #cx-extend-modal .direct-quote { margin: 0 0 12px; }
body.rm-admin #cx-extend-modal .cx-ext-total-row { align-items: end; margin: 0 0 4px; }
body.rm-admin #cx-extend-modal .cx-ext-total-reset { display: flex; align-items: center; min-height: 40px; }
body.rm-admin #cx-extend-modal .direct-whatsapp-choice { display: flex; align-items: flex-start; gap: 10px; width: 100%; margin: 12px 0 0; }
/* EXTEND-check: the WhatsApp row is a normal checkbox + text (it inherited the dialog's text-field sizing). */
body.rm-admin #cx-extend-modal .direct-whatsapp-choice input[type="checkbox"] { flex: 0 0 18px; width: 18px; min-width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; border-radius: 4px; box-shadow: none; font-size: inherit; }
body.rm-admin #cx-extend-modal .direct-whatsapp-choice > span { flex: 1 1 auto; min-width: 0; display: block; }
body.rm-admin #cx-extend-modal .direct-whatsapp-choice strong { display: block; font-size: 13px; }
body.rm-admin #cx-extend-modal .direct-whatsapp-choice small { display: block; margin-top: 2px; white-space: normal; }
body.rm-admin #cx-extend-modal #cx-ext-error { margin: 12px 0 0; }
/* Review fixes: with the reservation modal docked beside the chat (z 129), the payment view opened on success (normally 127)
   would sit behind it (F3): docked, it rises to 130 and the direct dialogs (this one, Marcar pago, Cancelar, ...) to 131 so they
   stay above it; still below guest history (132), faces (133) and the media viewer (134). A blocked unit's reason may wrap;
   a refreshing quote stays visible, dimmed (F8). */
body.rm-admin #cx-extend-modal .direct-units .broadcast-recipient.is-blocked > span small { white-space: normal; }
body.rm-admin #cx-extend-modal #cx-ext-quote[aria-busy="true"] { opacity: .55; transition: opacity .15s ease; }
@media (min-width: 781px) {
  body.rm-admin.rm-chat-joined.rm-chat-docked #direct-booking-modal.direct-modal { z-index: 130; }
  body.rm-admin.rm-chat-joined.rm-chat-docked .modal.direct-dialog { z-index: 131; }
}
@media (max-width: 600px) {
  body.rm-admin #checkin-modal .checkin-modal-card .modal-actions #checkin-copy-link.checkin-guest-link-button { padding: 0; }
  body.rm-admin #cx-extend-modal .cx-ext-total-reset { min-height: 0; }
}

/* SCROLL-ui (owner, 2 Dec 2026): phones show no scrollbar and no empty band after the last card. */
@media (max-width: 780px) {
  html, body.rm-admin, body.rm-admin * { scrollbar-width: none; }
  html::-webkit-scrollbar, body.rm-admin::-webkit-scrollbar, body.rm-admin *::-webkit-scrollbar { display: none; width: 0; height: 0; }
  body.rm-admin .content { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
