/* index.css */
:root {
  --blue: #0a84ff;
  --red: #ff453a;
  --green: #34c759;
  --indigo: #5e5ce6;

  --text: #0d0f14;
  --muted: rgba(13, 15, 20, 0.56);
  --muted-2: rgba(13, 15, 20, 0.34);
  --border: rgba(255, 255, 255, 0.6);

  /* Superfícies estáticas: mantêm o aspecto frosted sem amostrar o viewport. */
  --glass-surface-soft: linear-gradient(180deg, #f2f7fc 0%, #e7eef7 100%);
  --shadow-sm: 0 4px 14px rgba(31, 38, 135, 0.07), 0 1px 2px rgba(0, 0, 0, 0.035);
  --shadow: 0 8px 24px rgba(31, 38, 135, 0.08), 0 2px 6px rgba(0, 0, 0, 0.045);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.16);
  --modal-surface: linear-gradient(180deg, #f8fbff 0%, #edf3fa 100%);

  --r-lg: 28px;
  --r-md: 22px;
  --pill: 999px;

  --tabbar-height: 92px;
  --ocr-footer-height: 92px;
  --ocr-stay-height: 168px;
  --app-safe-top: env(safe-area-inset-top, 0px);
  --app-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #d9e0ea;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

body.app-gated {
  overflow: hidden;
}

body.app-blocked {
  overflow: hidden;
}

body.app-booting {
  overflow: hidden;
}

body.app-socket-loading {
  overflow: hidden;
}

body.app-action-loading {
  overscroll-behavior: contain;
}

body.app-popup-scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

body.app-booting .content-view,
body.app-booting .tab-bar,
body.app-booting .ocr-footer-actions {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 8% 6%, rgba(10, 132, 255, 0.14) 0%, transparent 54%),
    radial-gradient(ellipse 56% 42% at 94% 84%, rgba(94, 92, 230, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 48% 35% at 55% 48%, rgba(52, 199, 89, 0.06) 0%, transparent 56%),
    linear-gradient(160deg, #dce3ec 0%, #e6ebf4 44%, #d8deea 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

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

svg {
  display: block;
}

[hidden],
.hidden {
  display: none !important;
}

.content-view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(20px + var(--app-safe-top)) 20px calc(var(--tabbar-height) + 34px + var(--app-safe-bottom));
}

body.app-gated .content-view,
body.app-blocked .content-view,
body.app-booting .content-view,
body.app-socket-loading .content-view,
body.app-action-loading .content-view,
body.app-popup-scroll-locked .content-view {
  overflow: hidden;
  overscroll-behavior: none;
}

.app-employee-gate {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px + var(--app-safe-top)) 24px calc(24px + var(--app-safe-bottom));
  background: #102039 url("./preload-blur/pin.jpg") center / cover no-repeat;
}

.app-employee-gate::before,
.app-employee-gate::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.app-employee-gate::before {
  width: min(70vw, 480px);
  height: min(70vw, 480px);
  top: -180px;
  left: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 72%);
}

.app-employee-gate::after {
  width: min(66vw, 420px);
  height: min(66vw, 420px);
  bottom: -180px;
  right: -130px;
  background: radial-gradient(circle, rgba(95, 150, 255, 0.16) 0%, rgba(95, 150, 255, 0) 72%);
}

.app-system-gate {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px + var(--app-safe-top)) 24px calc(24px + var(--app-safe-bottom));
  background: #000;
}

.app-screen-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.app-screen-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.32;
}

.app-screen-orb.orb-1 {
  width: min(48vw, 320px);
  height: min(48vw, 320px);
  top: -10vh;
  left: -8vw;
  background: radial-gradient(circle, rgba(170, 198, 255, 0.32) 0%, rgba(170, 198, 255, 0) 72%);
}

.app-screen-orb.orb-2 {
  width: min(34vw, 240px);
  height: min(34vw, 240px);
  top: 18vh;
  right: -6vw;
  background: radial-gradient(circle, rgba(132, 171, 255, 0.26) 0%, rgba(132, 171, 255, 0) 72%);
}

.app-screen-orb.orb-3 {
  width: min(40vw, 280px);
  height: min(40vw, 280px);
  bottom: -12vh;
  left: 18vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 72%);
}

.app-screen-orb.orb-4 {
  width: min(28vw, 190px);
  height: min(28vw, 190px);
  bottom: 12vh;
  right: 10vw;
  background: radial-gradient(circle, rgba(117, 159, 255, 0.20) 0%, rgba(117, 159, 255, 0) 72%);
}

.app-socket-loading {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px + var(--app-safe-top)) 24px calc(24px + var(--app-safe-bottom));
  overflow: hidden;
  isolation: isolate;
  background-color: #eff6ff;
  background-image: url("./preload-blur/pin.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.app-socket-loading .app-screen-ambient {
  display: none;
}

.app-socket-loading-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 420px);
  text-align: center;
}

.app-socket-loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2.4px solid #b9d8f2;
  border-top-color: #1683d6;
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.08);
  animation: appSocketLoadingSpin .9s linear infinite;
}

.app-socket-loading-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.app-socket-loading-copy strong {
  display: block;
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.24);
}

.app-socket-loading-copy span {
  display: block;
  margin: 0;
  max-width: 26ch;
  font-size: .95rem;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.24);
}

.app-action-loading {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px + var(--app-safe-top)) 24px calc(24px + var(--app-safe-bottom));
  background-color: #eff6ff;
  background-image: url("./preload-blur/pin.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  touch-action: none;
  overscroll-behavior: contain;
}

.app-action-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(86vw, 320px);
  text-align: center;
}

.app-action-loading-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 4px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  animation: appSocketLoadingSpin .78s linear infinite;
  box-shadow: 0 10px 26px rgba(10, 132, 255, 0.12);
}

.app-action-loading-copy {
  margin: 0;
  max-width: 28ch;
  font-size: .98rem;
  line-height: 1.45;
  font-weight: 600;
  color: rgba(255, 255, 255, .96);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .24);
}

.loading-copy-reveal {
  animation: loadingCopySweepIn .52s cubic-bezier(.22, 1, .36, 1) both;
}

.app-socket-loading-copy span.loading-copy-reveal {
  animation-delay: .08s;
}

@keyframes appSocketLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loadingCopySweepIn {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-screen-orb,
  .app-employee-status-indicator span {
    animation: none;
  }

  .app-screen-orb {
    opacity: 0.18;
  }

  .loading-copy-reveal {
    animation: none;
    transform: none;
  }
}

.app-system-card {
  width: min(100%, 560px);
  padding: 28px 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.app-system-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ff6a61 0%, #f53b30 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(255, 69, 58, .28);
}

.app-system-icon span {
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
}

.app-system-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-system-badge {
  align-self: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--pill);
  background: rgba(255, 69, 58, .10);
  border: 1px solid rgba(255, 69, 58, .14);
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.app-system-copy h1 {
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -.85px;
  font-weight: 800;
  color: #fff;
}

.app-system-copy p {
  font-size: 15px;
  line-height: 1.5;
  color: #8e8e93;
}

.app-system-copy small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #8e8e93;
}

.app-employee-card {
  width: min(100%, 420px);
  padding: 10px 6px 8px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.app-employee-card::before {
  display: none;
}

.app-employee-kicker {
  display: block;
  margin: 0;
  text-align: center;
  font-size: 33px;
  line-height: 1.06;
  letter-spacing: -0.7px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.24);
}

.app-employee-title {
  margin-top: 8px;
  text-align: center;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.65px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.24);
}

.app-employee-status {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.app-employee-status-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.app-employee-status-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  opacity: 0.34;
  animation: appEmployeeWaitingPulse 1.15s ease-in-out infinite;
}

.app-employee-status-indicator span:nth-child(2) {
  animation-delay: .14s;
}

.app-employee-status-indicator span:nth-child(3) {
  animation-delay: .28s;
}

.app-employee-status p {
  margin: 0;
  max-width: 220px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
  letter-spacing: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.24);
}
.app-employee-pin {
  margin-top: 26px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.app-employee-gate[data-loading="true"] .app-pin-grid,
.app-employee-gate[data-loading="true"] .app-pin-dots {
  pointer-events: none;
  opacity: 0.14;
  transform: scale(0.985);
  filter: blur(1.2px);
}

.app-pin-dots {
  width: fit-content;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: center;
  gap: 17px;
  margin: 0 auto 28px;
}

.app-pin-dots .dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.7px solid rgba(255, 255, 255, 0.72);
  background: #425d7b;
  transition: opacity .18s ease, transform .18s ease;
}

.app-pin-dots .dot.filled {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.98);
}

.app-pin-grid {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  gap: 16px;
  justify-content: center;
}

.app-pin-grid button {
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.18) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 10px 28px rgba(0, 0, 0, 0.18);
  font-size: 35px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.98);
  cursor: pointer;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  transition: opacity .18s ease, transform .12s ease;
}

.app-pin-grid button:hover {
  filter: brightness(1.08);
}

.app-pin-grid button:active {
  transform: scale(.965);
  background: rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 5px 12px rgba(0, 0, 0, 0.16);
}

.app-pin-grid button:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 6px 18px rgba(0, 0, 0, 0.14);
}

.app-pin-grid .action-btn {
  border: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  font-size: 19px;
  letter-spacing: 0;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.96);
  border-radius: 0;
}

.app-pin-grid .action-btn:hover,
.app-pin-grid .action-btn:active {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.app-pin-grid .action-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  border-radius: 12px;
}

.app-pin-grid .empty {
  width: 80px;
  height: 80px;
}

@media (max-width: 480px) {
  .app-employee-card {
    width: min(100%, 390px);
    padding: 0;
  }

  .app-employee-kicker {
    font-size: 29px;
  }

  .app-employee-title {
    font-size: 26px;
  }

  .app-pin-grid {
    grid-template-columns: repeat(3, 74px);
    gap: 14px;
  }

  .app-pin-grid button {
    width: 74px;
    height: 74px;
    font-size: 32px;
  }

  .app-pin-grid .action-btn {
    font-size: 18px;
  }

  .app-pin-grid .empty {
    width: 74px;
    height: 74px;
  }
}

body.ocr-mode .content-view {
  padding-bottom: calc(var(--ocr-footer-height) + 26px + var(--app-safe-bottom));
}

body.ocr-mode.ocr-stay-visible .content-view {
  padding-bottom: calc(var(--ocr-footer-height) + var(--ocr-stay-height) + 42px + var(--app-safe-bottom));
}

.page-content {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.page-content.active {
  display: flex;
}

#page-home {
  gap: 0;
}

#page-home > * + * {
  margin-top: 14px;
}

@keyframes appEmployeeWaitingPulse {
  0%, 100% {
    opacity: 0.28;
    transform: translateY(0) scale(0.92);
  }

  50% {
    opacity: 1;
    transform: translateY(-1px) scale(1.08);
  }
}

.section-header {
  padding: 2px 2px 0;
}

.section-kicker {
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .55px;
  font-weight: 800;
  color: var(--muted-2);
}

.section-title {
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -.85px;
  font-weight: 800;
}

.home-session-slot {
  display: flex;
  flex-direction: column;
}

.home-session-card {
  width: 100%;
  border: 0;
  border-radius: var(--r-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  background: var(--glass-surface-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.home-session-card.locked {
  border-color: rgba(255, 69, 58, .14);
}

.home-session-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-session-kicker {
  font-size: 10px;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted-2);
}

.home-session-copy strong {
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: -.35px;
  font-weight: 760;
}

.home-session-copy small {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.home-session-action {
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 132, 255, .10);
  color: var(--blue);
  border: 1px solid rgba(10, 132, 255, .14);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .45px;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-session-card.locked .home-session-action {
  background: rgba(255, 69, 58, .10);
  color: var(--red);
  border-color: rgba(255, 69, 58, .14);
}

.home-checkout-card {
  padding: 16px;
}

/* Evita o repintado caro de camadas de blur aninhadas durante o scroll no WebView. */
#page-home .home-checkout-card,
#page-home .home-checkout-card .guest-card {
  backface-visibility: hidden;
  transform: translateZ(0);
}

#page-home .home-checkout-card {
  contain: paint;
  background: #f2f7fc;
}

#page-home .home-checkout-card .guest-card {
  background: #f8fbff;
}

.home-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-panel-head .section-kicker {
  margin-bottom: 6px;
}

.home-empty-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-empty-card strong {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 760;
}

.home-empty-card small {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.stack-list,
.action-grid,
.room-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-grid {
  display: grid;
}

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

.home-document-actions {
  margin-bottom: 0;
}

.invoice-page-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.invoice-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  padding-bottom: 8px;
}

.invoice-section,
.invoice-summary-card {
  padding: 18px;
}

.invoice-section-heading {
  margin-bottom: 14px;
}

.invoice-section-heading .section-kicker {
  margin-bottom: 6px;
}

.invoice-section-heading h3 {
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -.35px;
  font-weight: 780;
}

.invoice-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 0;
}

.invoice-field > span {
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted-2);
}

.invoice-field .input-glass {
  background: linear-gradient(180deg, #f9fcff 0%, #f1f6fb 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 1px 3px rgba(31,38,135,.05);
}

.invoice-field .input-glass:focus {
  background: #fff;
}

.invoice-field .input-glass.is-invalid {
  border-color: rgba(255, 69, 58, .55);
  box-shadow: 0 0 0 3px rgba(255, 69, 58, .10), inset 0 1px 0 rgba(255,255,255,.95);
}

.invoice-field-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.invoice-field-hint.is-error {
  color: #c52f28;
  font-weight: 700;
}

.invoice-stay-options {
  margin-top: 18px;
}

.invoice-question-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invoice-subsection-label {
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.invoice-choice {
  min-height: 58px;
  padding: 12px 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(13,15,20,.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  cursor: pointer;
}

.invoice-choice + .invoice-choice {
  margin-top: 8px;
}

.invoice-choice input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.invoice-choice span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.invoice-choice strong {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 750;
}

.invoice-choice small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.invoice-recipient-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.invoice-choice-compact {
  min-height: 70px;
}

.invoice-choice-compact + .invoice-choice-compact {
  margin-top: 0;
}

.invoice-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}

.invoice-whatsapp-field {
  margin-top: 14px;
}

.invoice-field-wide {
  grid-column: 1 / -1;
}

.invoice-summary-card {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
}

.invoice-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invoice-summary-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.invoice-summary-list span {
  color: var(--muted);
  font-size: 12px;
}

.invoice-summary-list strong {
  max-width: 68%;
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  text-align: right;
}

.invoice-deadline-card {
  margin-top: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(10,132,255,.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}

.invoice-deadline-card span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .65px;
}

.invoice-deadline-card strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
}

.invoice-final-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.glass-card,
.hero-stat,
.room-panel,
.modal-sheet,
.action-card,
.ocr-panel,
.ocr-current-card,
.guest-list-item,
.processing-card,
.glass-action,
.secondary-button,
.primary-button,
.danger-button,
.ghost-button {
  position: relative;
  overflow: hidden;
}

.glass-card,
.hero-stat,
.room-panel,
.ocr-panel,
.ocr-current-card,
.guest-list-item,
.glass-action,
.secondary-button,
.ghost-button {
  background: var(--glass-surface-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.glass-card,
.room-panel,
.action-card,
.ocr-panel,
.ocr-current-card,
.glass-action,
.secondary-button,
.primary-button,
.danger-button,
.ghost-button,
.guest-list-item {
  border-radius: var(--r-lg);
}

.hero-stat {
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32);
}

.glass-card::before,
.hero-stat::before,
.room-panel::before,
.modal-sheet::before,
.action-card::before,
.ocr-panel::before,
.ocr-current-card::before,
.guest-list-item::before,
.glass-action::before,
.secondary-button::before,
.primary-button::before,
.danger-button::before,
.ghost-button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.04)),
    radial-gradient(circle at top left, rgba(255,255,255,.40), transparent 32%);
}

.guest-card,
.history-card,
.cleaning-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.guest-card.is-overdue {
  border: 1px solid rgba(255, 69, 58, .18);
  box-shadow: 0 12px 32px rgba(255, 69, 58, .10), var(--shadow);
}

.guest-card.is-overdue .avatar-shell {
  color: var(--red);
  background: rgba(255, 69, 58, .10);
  border-color: rgba(255, 69, 58, .16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 6px 18px rgba(255,69,58,.10);
}

.guest-card.is-actionable {
  cursor: pointer;
  border: 1px solid rgba(10, 132, 255, .18);
}

.guest-card.is-actionable:active {
  transform: scale(.995);
}

.guest-card.is-overdue.is-actionable {
  border: 1px solid rgba(255, 69, 58, .18);
}

.avatar-shell {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  background: rgba(10, 132, 255, .10);
  border: 1px solid rgba(255,255,255,.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 6px 18px rgba(10,132,255,.08);
}

.avatar-shell.sm {
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.history-cleaning-avatar {
  color: #1097d4;
  background: rgba(100, 210, 255, .16);
  border-color: rgba(100, 210, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.44), 0 6px 18px rgba(100,210,255,.12);
}

.ui-icon {
  width: 22px;
  height: 22px;
}

.guest-card-body,
.history-body,
.cleaning-copy {
  flex: 1;
  min-width: 0;
}

.guest-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guest-name,
.history-name,
.cleaning-copy h3,
.room-title,
.action-card-copy strong {
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -.45px;
  font-weight: 760;
}

.guest-sub,
.history-sub,
.cleaning-copy p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 500;
}

.guest-sub-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reservation-reminder-details {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.guest-inline-overdue-tag {
  min-height: 20px;
  padding: 0 8px;
}

.guest-room-company-line {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 600;
}

.guest-card-meta,
.history-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.soft-tag,
.meta-chip,
.room-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 10px;
  border-radius: var(--pill);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .45px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
}

.soft-tag,
.meta-chip {
  background: rgba(10, 132, 255, .10);
  color: var(--blue);
  border-color: rgba(10, 132, 255, .14);
}

.meta-chip.is-overdue {
  background: rgba(255, 69, 58, .12);
  color: var(--red);
  border-color: rgba(255, 69, 58, .18);
}

.meta-chip.is-today {
  background: rgba(255, 159, 10, .14);
  color: #b76800;
  border-color: rgba(255, 159, 10, .20);
}

.meta-chip.reservation-tag {
  color: #7c3aed;
  background: #f3e8ff;
  border-color: rgba(124, 58, 237, .22);
}

.reservation-reminder-card .guest-card-top {
  position: relative;
  display: block;
}

.reservation-reminder-card .guest-card-meta {
  position: absolute;
  top: 0;
  right: 0;
}

.reservation-reminder-card .guest-name {
  padding-right: 96px;
}

.soft-tag-checkin {
  background: rgba(52, 199, 89, .11);
  color: var(--green);
  border-color: rgba(52, 199, 89, .16);
}

.soft-tag-checkout {
  background: rgba(255, 69, 58, .10);
  color: var(--red);
  border-color: rgba(255, 69, 58, .14);
}

.soft-tag-transfer {
  background: rgba(255, 159, 10, .11);
  color: #b76800;
  border-color: rgba(255, 159, 10, .18);
}

.soft-tag-cleaning {
  background: rgba(100, 210, 255, .14);
  color: #1097d4;
  border-color: rgba(100, 210, 255, .18);
}

.soft-tag-maintenance {
  background: rgba(194, 132, 43, .14);
  color: #9a5e16;
  border-color: rgba(194, 132, 43, .22);
}

.soft-tag-done {
  background: rgba(52, 199, 89, .11);
  color: var(--green);
  border-color: rgba(52, 199, 89, .16);
}

.meta-time {
  font-size: 11px;
  line-height: 1.1;
  color: var(--muted-2);
  font-weight: 700;
}

.meta-employee {
  font-size: 9px;
  line-height: 1.1;
  color: var(--muted-2);
  font-weight: 600;
  text-align: right;
}

.meta-time.is-overdue {
  color: #a82d24;
  font-weight: 800;
}

.history-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-meta {
  justify-content: center;
}

.action-card {
  width: 100%;
  border: 1px solid rgba(13, 15, 20, .08);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .94),
    0 3px 10px rgba(31, 38, 135, .07);
  transition: opacity .18s ease, transform .12s cubic-bezier(.34,1.56,.64,1);
}

.action-card::before {
  display: none;
}

.action-card.primary {
  --action-color: #218c4b;
}

.action-card.accent {
  --action-color: #0875df;
}

.action-card.invoice {
  --action-color: #5752c9;
}

.action-card.transfer {
  --action-color: #a96300;
}

.action-card.neutral {
  --action-color: #687384;
}

.action-card.danger {
  --action-color: #d9362e;
}

.action-card:active,
.tab-item:active,
.check-button:active,
.modal-action-btn:active,
.primary-button:active,
.secondary-button:active,
.danger-button:active,
.ghost-button:active,
.glass-action:active {
  transform: scale(.97);
}

.action-card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.action-card-copy small {
  font-size: 13px;
  line-height: 1.35;
  opacity: .9;
  font-weight: 500;
}

#homeActions .action-card,
.home-document-actions .action-card {
  min-height: 82px;
  padding: 18px;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
}

#homeActions .action-card[data-direct-action="transfer"] {
  grid-column: 1 / -1;
}

#homeActions .action-card-copy {
  gap: 0;
}

#homeActions .action-card-copy small {
  display: none;
}

#homeActions .action-card[data-direct-action="transfer"] .action-card-copy small {
  display: none;
}

.action-card-arrow,
#homeActions .action-card-arrow {
  align-self: center;
  flex: 0 0 auto;
  color: var(--action-color, var(--muted));
}

.home-developer-credit {
  margin-top: auto;
  margin-bottom: auto;
  padding: 6px 8px 4px;
  text-align: center;
  color: rgba(13, 15, 20, .44);
}

.home-developer-credit p,
.home-developer-credit small {
  margin: 0;
}

.home-developer-credit p {
  font-size: 12px;
  line-height: 1.35;
}

.home-developer-credit strong {
  color: rgba(13, 15, 20, .68);
  font-weight: 800;
}

.home-developer-credit small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .2px;
}

.action-card-arrow .ui-icon {
  width: 18px;
  height: 18px;
}

.check-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 14px;
  background: linear-gradient(180deg, #f5fbff 0%, #e6f2fa 100%);
  color: #4aa8d2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.46), 0 4px 14px rgba(0,0,0,.04);
  transition: opacity .18s ease, transform .18s ease;
}

.check-button:not(.done) {
  border-color: rgba(100, 210, 255, .35);
}

.check-button:not(.done)::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(100, 210, 255, .28);
  background: rgba(100, 210, 255, .10);
}

.check-button:not(.done):focus-visible {
  outline: 2px solid rgba(10, 132, 255, .34);
  outline-offset: 2px;
}

.check-button.done {
  background: linear-gradient(145deg, #1a8fff 0%, #0076ef 100%);
  color: #fff;
  border-color: rgba(10,132,255,.32);
  box-shadow: 0 8px 20px rgba(10,132,255,.26), inset 0 1px 0 rgba(255,255,255,.22);
}

.check-button .ui-icon {
  width: 17px;
  height: 17px;
  position: relative;
  z-index: 1;
}

.cleaning-card.done {
  opacity: .92;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 2px;
}

#roomsStats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

#roomsStats .hero-stat {
  min-width: 0;
  padding: 12px 8px;
}

#roomsStats .hero-stat-label {
  font-size: 9px;
  letter-spacing: .28px;
  white-space: nowrap;
}

#roomsStats .hero-stat-value {
  margin-top: 4px;
  font-size: 20px;
}

.hero-stat {
  padding: 14px 12px;
  text-align: center;
}

.hero-stat-label {
  display: block;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: .45px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted-2);
}

.hero-stat-value {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.7px;
  font-weight: 800;
}

.room-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.rooms-search-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: -2px 0 6px;
}

.rooms-search-input-shell {
  position: relative;
}

.rooms-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  display: inline-flex;
  z-index: 2;
}

.rooms-search-input.input-glass {
  position: relative;
  z-index: 1;
  padding-left: 44px;
  padding-right: 44px;
}

.rooms-search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 3;
}

.rooms-search-clear-btn:hover {
  color: var(--text);
}

.rooms-search-clear-btn:focus-visible {
  outline: 2px solid rgba(10, 132, 255, .35);
  outline-offset: 1px;
}

.rooms-search-clear-btn[hidden] {
  display: none;
}

.rooms-search-summary {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 600;
}

.room-panel {
  padding: 18px;
  cursor: pointer;
  transition: opacity .18s ease, transform .14s ease;
}

.room-panel:active {
  transform: translateY(1px);
}

.room-panel:focus-visible {
  outline: 2px solid rgba(10, 132, 255, .42);
  outline-offset: 2px;
}

.room-panel-glow {
  position: absolute;
  inset: auto -28px -28px auto;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  opacity: .26;
  pointer-events: none;
}

.room-panel.is-occupied .room-panel-glow { background: radial-gradient(circle, rgba(255, 69, 58, .34) 0%, rgba(255, 69, 58, 0) 72%); }
.room-panel.is-free .room-panel-glow { background: radial-gradient(circle, rgba(52, 199, 89, .34) 0%, rgba(52, 199, 89, 0) 72%); }
.room-panel.is-cleaning .room-panel-glow { background: radial-gradient(circle, rgba(100, 210, 255, .36) 0%, rgba(100, 210, 255, 0) 72%); }
.room-panel.is-partial .room-panel-glow { background: radial-gradient(circle, rgba(255, 214, 10, .32) 0%, rgba(255, 214, 10, 0) 72%); }
.room-panel.is-maintenance .room-panel-glow { background: radial-gradient(circle, rgba(194, 132, 43, .34) 0%, rgba(194, 132, 43, 0) 72%); }
.room-panel.has-overdue-checkout .room-panel-glow { background: radial-gradient(circle, rgba(255, 69, 58, .38) 0%, rgba(255, 69, 58, 0) 72%); }

.room-panel.has-overdue-checkout {
  border: 1px solid rgba(255, 69, 58, .18);
  box-shadow: var(--shadow);
}

.room-panel-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.room-panel-copy {
  min-width: 0;
  flex: 1;
}

.room-panel-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  text-align: right;
}

.room-status-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.room-guest-summary {
  margin-top: 8px;
  line-height: 1.35;
}

.room-guest-match {
  margin-top: 3px;
  color: var(--blue);
  font-weight: 700;
}

.room-status-pill.is-occupied {
  background: rgba(255, 69, 58, .10);
  color: var(--red);
  border-color: rgba(255, 69, 58, .14);
}

.room-status-pill.is-free {
  background: rgba(52, 199, 89, .12);
  color: var(--green);
  border-color: rgba(52, 199, 89, .16);
}

.room-status-pill.is-reserved {
  background: rgba(175, 110, 255, .12);
  color: #7a42c5;
  border-color: rgba(175, 110, 255, .2);
}

.room-status-pill.is-cleaning {
  background: rgba(100, 210, 255, .14);
  color: #1097d4;
  border-color: rgba(100, 210, 255, .18);
}

.room-status-pill.is-partial {
  background: rgba(255, 214, 10, .14);
  color: #b88a00;
  border-color: rgba(255, 214, 10, .22);
}

.room-status-pill.is-maintenance {
  background: rgba(194, 132, 43, .14);
  color: #9a5e16;
  border-color: rgba(194, 132, 43, .22);
}

.room-status-pill.is-overdue-departure {
  background: rgba(255, 69, 58, .12);
  color: var(--red);
  border-color: rgba(255, 69, 58, .18);
}

.room-status-pill.is-occupancy {
  background: rgba(255, 255, 255, .76);
  color: #5f6672;
  border-color: rgba(148, 158, 173, .28);
  text-transform: none;
  letter-spacing: .12px;
  font-size: 11px;
}

.room-search-empty {
  margin-top: 4px;
}

.tab-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  gap: 4px;
  min-height: var(--tabbar-height);
  padding: 12px 10px calc(12px + var(--app-safe-bottom));
  background: linear-gradient(180deg, #eef3f9 0%, #e1e8f2 100%);
  border-top: 1px solid rgba(255,255,255,.64);
}

body.ocr-mode .tab-bar {
  display: none;
}

.tab-item {
  appearance: none;
  border: 0;
  background: transparent;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  padding: 8px 4px 10px;
  border-radius: 18px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: opacity .16s ease, transform .12s cubic-bezier(.34,1.56,.64,1);
}

.tab-item.active {
  color: var(--blue);
  background: #e7f0fb;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.tab-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-item.active .tab-icon-wrap {
  background: #e0efff;
  border: 1px solid rgba(10,132,255,.2);
}

.tab-icon {
  width: 20px;
  height: 20px;
}

.tab-label {
  font-size: 10px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.1px;
  white-space: nowrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 18px calc(18px + var(--app-safe-bottom));
  background: rgba(6, 10, 18, .48);
}

.modal-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 36px - var(--app-safe-bottom));
  max-height: calc(100dvh - 36px - var(--app-safe-bottom));
  padding: 12px 12px 14px;
  border-radius: 30px;
  background: var(--modal-surface);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: var(--shadow-lg);
}

.modal-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.modal-sheet.modal-sheet-solid {
  background: linear-gradient(180deg, #fbfdff 0%, #f1f6fb 100%);
  border-color: rgba(255,255,255,.92);
  box-shadow: var(--shadow-lg);
}

.modal-handle {
  width: 42px;
  height: 5px;
  margin: 2px auto 12px;
  border-radius: 999px;
  background: rgba(13, 15, 20, .14);
}

.modal-title {
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -.5px;
  font-weight: 800;
}

.modal-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.modal-field span {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.modal-field input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3fa 100%);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.modal-field select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3fa 100%);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.modal-field input:focus,
.modal-field select:focus {
  outline: 2px solid rgba(10, 132, 255, .18);
  border-color: rgba(10, 132, 255, .42);
}

.modal-field-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.modal-action-btn {
  width: 100%;
  border: 0;
  border-radius: 22px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
}

.modal-action-btn strong {
  display: block;
  font-size: 17px;
  line-height: 1.12;
  letter-spacing: -.3px;
  font-weight: 760;
}

.modal-action-btn small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  opacity: .82;
}

.modal-action-btn:disabled {
  opacity: .62;
  cursor: not-allowed;
}

.modal-action-btn.confirm {
  color: #fff;
  background: linear-gradient(145deg, #3ecf78 0%, #17a34a 100%);
  box-shadow: 0 10px 28px rgba(52, 199, 89, .24);
}

.modal-action-btn.cancel {
  color: var(--text);
  background: linear-gradient(180deg, #f3f8fd 0%, #e7eef7 100%);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: var(--shadow-sm);
}

.checkin-receipt-modal-sheet {
  max-width: 560px;
}

.checkin-receipt-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkin-receipt-top {
  display: flex;
  flex-direction: column;
}

.checkin-receipt-intro {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f5faff 0%, #e9f1f9 100%);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: var(--shadow-sm);
}

.checkin-receipt-intro strong {
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -.2px;
}

.checkin-receipt-intro small {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.checkin-receipt-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(52vh, 420px);
  padding-right: 2px;
  overflow-y: auto;
}

.checkin-receipt-guest-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f6faff 0%, #e9f0f8 100%);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: var(--shadow-sm);
}

.checkin-receipt-guest-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.checkin-receipt-guest-copy strong {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -.2px;
}

.checkin-receipt-guest-copy span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  word-break: break-word;
}

.checkin-receipt-download-btn {
  width: auto;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
  justify-self: end;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, #3498ff 0%, #1463f3 100%);
  box-shadow: 0 10px 26px rgba(20, 99, 243, .24);
  transition: opacity .18s ease, transform .18s ease;
}

.checkin-receipt-download-btn:not(:disabled):active {
  transform: translateY(1px);
}

.checkin-receipt-download-btn:disabled {
}

.checkin-receipt-download-btn.is-progress:disabled {
  opacity: .84;
}

.checkin-receipt-download-btn.is-success,
.checkin-receipt-download-btn.is-success:disabled {
  opacity: 1;
  background: linear-gradient(145deg, #3ecf78 0%, #17a34a 100%);
  box-shadow: 0 10px 26px rgba(52, 199, 89, .24);
}

.checkin-receipt-download-btn.is-error {
  background: linear-gradient(145deg, #ff8d88 0%, #df4b57 100%);
  box-shadow: 0 10px 26px rgba(223, 75, 87, .22);
}

.checkin-receipt-download-btn__content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkin-receipt-download-btn__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.checkin-receipt-download-btn__icon.is-spinner {
  animation: checkin-receipt-spin .9s linear infinite;
}

.checkin-receipt-download-btn strong {
  display: block;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -.2px;
}

.checkin-receipt-actions {
  margin-top: 2px;
}

@keyframes checkin-receipt-spin {
  to {
    transform: rotate(360deg);
  }
}

.checkin-receipt-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f4f9fd 0%, #e8f0f7 100%);
  border: 1px solid rgba(255,255,255,.74);
  text-align: center;
}

.checkin-receipt-empty small {
  color: var(--muted);
}

.room-details-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.room-details-top {
  display: flex;
  flex-direction: column;
}

.room-details-top .modal-text {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.room-details-guest-list {
  margin-top: 2px;
}

.room-details-guest-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f6faff 0%, #e9f0f8 100%);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: var(--shadow-sm);
}

.room-details-guest-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.room-details-guest-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.room-details-guest-copy strong {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -.2px;
}

.room-details-guest-copy span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  word-break: break-word;
}

.room-details-guest-card .checkin-receipt-download-btn {
  min-width: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.room-details-guest-card .checkin-receipt-download-btn__content {
  gap: 0;
}

.room-details-maintenance-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f4f8fc 0%, #e7eef6 100%);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  line-height: 1.25;
  color: var(--text);
  font-weight: 700;
}

.room-details-maintenance-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.room-details-actions {
  margin-top: 2px;
}

/* OCR */
.page-ocr {
  gap: 16px;
}

#page-stay-payment {
  gap: 14px;
}

.ocr-header {
  padding-bottom: 2px;
}

.ocr-subtitle {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
  max-width: 720px;
}

.ocr-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.glass-action {
  width: 100%;
  border: 0;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: opacity .18s ease, transform .12s cubic-bezier(.34,1.56,.64,1);
}

.glass-action:disabled,
.glass-action.is-disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.glass-action.is-offline {
  background: linear-gradient(180deg, rgba(255, 69, 58, .16) 0%, rgba(255, 69, 58, .10) 100%);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), 0 10px 24px rgba(255, 69, 58, .12);
}

.glass-action.is-offline .action-icon-shell {
  background: rgba(255, 69, 58, .14);
  color: var(--red);
}

.glass-action.is-offline .action-card-copy strong,
.glass-action.is-offline .action-card-copy small {
  color: var(--red);
}

.action-leading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-icon-shell,
.inline-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(10, 132, 255, .10);
  color: var(--blue);
  border: 1px solid rgba(255,255,255,.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42);
}

.glass-action .action-card-copy strong {
  font-size: 16px;
}

.glass-action .action-card-copy small {
  color: var(--muted);
  opacity: 1;
}

.stay-payment-card {
  padding: 18px;
}

#stayPaymentProofSection #stayPaymentProofButton {
  margin-top: 10px;
}

#stayPaymentProofSection #stayPaymentProofHint {
  margin-top: 10px;
  line-height: 1.45;
}

.stay-payment-summary-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.stay-payment-summary-empty {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.stay-payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stay-payment-summary-card {
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, #f4f8fc 0%, #e7eef6 100%);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), var(--shadow-sm);
}

.stay-payment-summary-card span {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .45px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted-2);
}

.stay-payment-summary-card strong {
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.1;
  letter-spacing: -.45px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.stay-payment-summary-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.stay-payment-summary-card--accent {
  background:
    linear-gradient(160deg, rgba(10,132,255,.14) 0%, rgba(100,210,255,.12) 100%),
    linear-gradient(180deg, #f2faff 0%, #e3f1ff 100%);
  border-color: rgba(10, 132, 255, .16);
}

.stay-payment-summary-empty {
  min-height: 176px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(160deg, #f8fbff 0%, #eaf0f7 100%);
}

.stay-payment-summary-empty strong {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -.45px;
  font-weight: 800;
}

.stay-payment-summary-empty p,
.stay-payment-summary-empty small {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.stay-payment-proof-preview {
  display: block;
  margin-top: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #f3f7fb;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-sm);
}

.stay-payment-proof-image {
  width: 100%;
  display: block;
  max-height: 220px;
  border-radius: 14px;
  object-position: center;
  object-fit: cover;
  background: rgba(191, 196, 212, 0.46);
}

.checkout-settlement-modal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-settlement-top {
  display: flex;
  flex-direction: column;
}

.checkout-settlement-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(42vh, 320px);
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.checkout-settlement-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.checkout-settlement-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f6faff 0%, #e9f0f8 100%);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: var(--shadow-sm);
}

.checkout-settlement-card.is-chargeable {
  background:
    radial-gradient(circle at top right, rgba(10,132,255,.12), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #e7f2ff 100%);
  border-color: rgba(10, 132, 255, .18);
}

.checkout-settlement-card-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.checkout-settlement-card-copy strong {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -.2px;
}

.checkout-settlement-card-copy span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  word-break: break-word;
}

.checkout-settlement-card-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.checkout-settlement-card-amount strong {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -.3px;
}

.checkout-settlement-card-amount small {
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}

.checkout-settlement-total {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(62, 207, 120, .16), transparent 34%),
    linear-gradient(180deg, #f7fcf8 0%, #e9f5ec 100%);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: var(--shadow-sm);
}

.checkout-settlement-total span {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.checkout-settlement-total strong {
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.05;
  letter-spacing: -.55px;
  font-weight: 800;
}

.checkout-settlement-total small,
.checkout-settlement-hint {
  margin: 0;
  line-height: 1.45;
}

.checkout-settlement-modal .stay-payment-proof-preview {
  margin-top: 0;
}

.checkout-settlement-modal #checkoutSettlementProofButton {
  margin-top: -2px;
}

.checkout-settlement-modal #checkoutSettlementProofHint {
  margin-top: 2px;
  text-align: center;
}

.checkout-settlement-modal .modal-actions {
  margin-top: 0;
}

.stay-payment-actions {
  margin-top: 0;
}

.stay-payment-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 640px) {
  .stay-payment-proof-preview {
    grid-template-columns: 1fr;
  }

  .stay-payment-proof-image {
    height: 180px;
  }

  .stay-payment-summary-grid {
    grid-template-columns: 1fr;
  }
}

.ocr-panel,
.ocr-current-card {
  padding: 18px;
}

.ocr-current-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 69, 58, 0.12);
  color: var(--red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48);
}

.inline-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}

.single-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.field {
  margin-top: 12px;
}

.field:first-child {
  margin-top: 0;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted-2);
}

.field input {
  width: 100%;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: #f5f9fd;
  padding: 14px 14px;
  font-size: 16px;
  outline: none;
  color: #111;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 1px 3px rgba(0,0,0,.04);
  transition: opacity .15s ease, transform .15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(10, 132, 255, 0.16), inset 0 1px 0 rgba(255,255,255,.95);
}

#inpIdadeCalculada {
  background: #e9eef6;
  color: var(--muted);
  font-size: 14px;
}

.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview {
  position: absolute;
  width: 100%;
  height: 250%;
  top: -75%;
  left: 0;
  object-fit: cover;
  object-position: center;
  animation: previewIn .28s ease-out;
}

@keyframes previewIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.verso-needed-box {
  background: linear-gradient(140deg, #ff5d53 0%, #f53b30 100%);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  box-shadow: 0 10px 32px rgba(255, 69, 58, 0.34);
  animation: cardIn .24s cubic-bezier(.34,1.56,.64,1);
}

.verso-needed-box::before {
  content: none;
}

.verso-needed-media,
.verso-needed-badge,
.verso-needed-kicker,
.verso-needed-steps {
  display: none;
}

.verso-needed-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.verso-needed-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verso-needed-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.verso-needed-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.verso-needed-body {
  margin: 0;
  font-size: 13px;
  opacity: .9;
  line-height: 1.3;
  color: #fff;
}

.verso-needed-missing {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,.84);
  font-weight: 700;
}

body.ocr-awaiting-back #page-ocr .ocr-section {
  gap: 16px;
}

body.ocr-awaiting-back #page-ocr #ocrActionRow {
  grid-template-columns: minmax(0, 1fr);
}

body.ocr-awaiting-back #page-ocr #btnCapture {
  border-color: rgba(10,132,255,.18);
  box-shadow: 0 16px 38px rgba(10, 132, 255, .14), var(--shadow);
}

body.ocr-awaiting-back #page-ocr #btnCapture .action-icon-shell {
  background: rgba(10, 132, 255, .12);
  color: var(--blue);
}

body.ocr-awaiting-back #page-ocr #btnSemDocumento,
body.ocr-awaiting-back #page-ocr #cpfCheckSection,
body.ocr-awaiting-back #page-ocr #checkoutSelectionSection {
  display: none !important;
}

.ocr-summary {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.guest-photo {
  width: 88px;
  height: 108px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: rgba(190, 196, 214, 0.60);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.guest-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  animation: faceFade .22s ease-out;
}

@keyframes faceFade {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}

.guest-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.07);
}

.guest-photo-fallback.no-face {
  flex-direction: column;
  gap: 5px;
  color: #b54708;
  background: rgba(245, 158, 11, 0.12);
}

.guest-photo-fallback-text {
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
}

.guest-summary-data {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 2px;
  min-width: 0;
}

.guest-summary-data p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.summary-main-row,
.summary-inline-row {
  min-width: 0;
}

.ocr-current-card.is-checkout-preview .guest-summary-data {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 9px;
}

.ocr-current-card.is-checkout-preview .summary-main-row {
  grid-column: 1 / -1;
}

.summary-label {
  font-size: 10px;
  color: var(--muted-2);
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.guest-summary-data strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-label {
  font-size: 10px;
  color: var(--muted-2);
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.info-row .input-glass {
  min-height: 30px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 14px;
}

.company-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.company-picker-trigger:disabled {
  cursor: not-allowed;
}

.company-picker-trigger-icon {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.company-picker-select {
  display: none;
}

.card-divider {
  height: 1px;
  background: rgba(0,0,0,.06);
  margin: 14px 0;
}

.manual-fields {
  margin-top: 14px;
}

.add-to-list-row {
  margin-bottom: 4px;
}

.ocr-list-section {
  animation: cardIn .24s cubic-bezier(.34,1.56,.64,1);
}

.ocr-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}

.guest-list-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.guest-list-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.10);
  padding: 3px 9px;
  border-radius: 999px;
}

.guest-list-items {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.guest-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.guest-list-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 132, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  border: 1px solid var(--border);
}

.guest-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.guest-list-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guest-list-info strong {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guest-list-info span {
  font-size: 12px;
  color: var(--muted);
}

.guest-empresa-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(94, 92, 230, 0.10);
  color: var(--indigo);
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(94, 92, 230, 0.15);
  width: fit-content;
  margin-top: 2px;
}

.guest-list-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 69, 58, 0.09);
  color: var(--red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.primary-button,
.danger-button,
.secondary-button,
.ghost-button {
  border: 0;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .18s ease, transform .12s cubic-bezier(.34,1.56,.64,1);
}

.primary-button.is-disabled,
.danger-button.is-disabled,
.secondary-button.is-disabled,
.ghost-button.is-disabled,
.primary-button:disabled,
.danger-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  opacity: .56;
  cursor: not-allowed;
  transform: none;
}

.primary-button {
  color: #fff;
  background: linear-gradient(145deg, #1a8fff 0%, #0076ef 100%);
  box-shadow: 0 10px 28px rgba(10, 132, 255, .24), inset 0 1px 0 rgba(255,255,255,.18);
}

.danger-button {
  color: #fff;
  background: linear-gradient(145deg, #ff6a61 0%, #f53b30 100%);
  box-shadow: 0 10px 28px rgba(255, 69, 58, .24), inset 0 1px 0 rgba(255,255,255,.18);
}

.secondary-button {
  color: var(--blue);
}

.ghost-button {
  background: transparent;
  color: var(--blue);
  border: 1px solid rgba(10,132,255,.2);
  box-shadow: none;
}

.full-width {
  width: 100%;
}

.ocr-footer-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  gap: 10px;
  padding: 6px 20px calc(6px + var(--app-safe-bottom));
  background: #d9e0ea;
  border-top: 0;
}

body.ocr-mode .ocr-footer-actions {
  display: flex;
}

.ocr-footer-actions .full-width {
  flex: 1 1 0;
  width: auto;
}

body.document-mode .tab-bar {
  display: none;
}

body.document-mode .content-view {
  padding-bottom: calc(var(--ocr-footer-height) + 26px + var(--app-safe-bottom));
}

body.document-mode .invoice-final-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 6px 20px calc(6px + var(--app-safe-bottom));
  background: #d9e0ea;
}

body.document-mode .invoice-tracking-actions {
  grid-template-columns: 1fr;
}

.processing-overlay {
  position: fixed;
  inset: 0;
  background-color: #eff6ff;
  background-image: url("./preload-blur/pin.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px + var(--app-safe-top)) 24px calc(24px + var(--app-safe-bottom));
}

.processing-card {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(400px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.processing-gif-shell {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(10,132,255,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 10px 24px rgba(10,132,255,.08);
}

.processing-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

.processing-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.processing-title {
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 820;
  color: var(--text);
}

.processing-wait {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: #7f8ea3;
  background-image: linear-gradient(
    90deg,
    #7f8ea3 0%,
    #7f8ea3 28%,
    #dbe8f7 45%,
    #7f8ea3 62%,
    #7f8ea3 100%
  );
  background-size: 220% 100%;
  background-position: -120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity .18s ease, transform .18s ease;
}

.processing-wait.processing-wave-active {
  animation: processingTextReveal var(--processing-wave-duration, 2180ms) ease-out 1 both;
}

.processing-wait.is-changing {
  opacity: .28;
  transform: translateY(2px);
}

#btnAddToList:disabled,
#btnAddToList.is-busy {
  opacity: .76;
  cursor: progress;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.44), 0 8px 22px rgba(10, 132, 255, .12);
}

@media (max-width: 560px) {
  .home-developer-credit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    row-gap: 4px;
    column-gap: 12px;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }

  .home-developer-credit p,
  .home-developer-credit small {
    white-space: nowrap;
  }

  .home-developer-credit small {
    display: inline;
    margin-top: 0;
    text-align: right;
  }

  .processing-card {
    align-items: center;
    gap: 14px;
    padding: 16px;
  }

  .processing-gif-shell {
    width: 82px;
    height: 82px;
    padding: 8px;
  }

  .processing-title {
    font-size: 19px;
  }

  .processing-wait {
    font-size: 13px;
  }

  .verso-needed-box {
    padding: 16px 18px;
  }

  .verso-needed-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

}

@keyframes processingTextReveal {
  0% {
    opacity: .56;
    transform: translateY(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.54);
  z-index: 9999;
}

.alert-overlay.active {
  display: flex;
}

.alert-box {
  width: min(300px, calc(100vw - 40px));
  border-radius: 22px;
  background: #ffffff;
  overflow: hidden;
  border: 1px solid #e5eaf0;
  box-shadow: var(--shadow-lg);
}

.alert-content {
  padding: 20px 18px 16px;
  text-align: center;
}

.alert-title {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.alert-message {
  color: #333;
  line-height: 1.4;
  font-size: 14px;
}

.alert-buttons {
  border-top: 1px solid rgba(0,0,0,0.06);
}

.alert-btn {
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: var(--blue);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 520px) {
  .invoice-fields-grid,
  .invoice-recipient-options {
    grid-template-columns: 1fr;
  }

  .invoice-field-wide {
    grid-column: auto;
  }

  .section-title { font-size: 26px; }
  .guest-card,
  .history-card,
  .cleaning-card,
  .ocr-panel,
  .ocr-current-card { padding: 15px; }

  .action-row {
    grid-template-columns: 1fr;
  }

  .ocr-summary {
    grid-template-columns: 76px 1fr;
  }

  .guest-photo {
    width: 76px;
    height: 96px;
  }

  .cleaning-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "copy action"
      "status status";
    align-items: start;
    gap: 12px;
  }

  .cleaning-copy {
    grid-area: copy;
  }

  .cleaning-copy p {
    margin-top: 4px;
    line-height: 1.35;
  }

  .check-button {
    grid-area: action;
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .cleaning-status {
    grid-area: status;
  }

  #checkoutSelectionSection {
    gap: 12px;
  }

  .checkin-receipt-download-btn {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 390px) {
  :root {
    --ocr-stay-height: 208px;
  }

  .content-view {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ocr-footer-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-title { font-size: 24px; }

  .guest-name,
  .history-name,
  .cleaning-copy h3,
  .room-title,
  .action-card-copy strong { font-size: 16px; }

  .avatar-shell {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .avatar-shell.sm {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .ui-icon {
    width: 20px;
    height: 20px;
  }

  #homeActions .action-card,
  .home-document-actions .action-card {
    min-height: 76px;
    padding: 14px;
  }

  #homeActions .action-card-copy small {
    display: none;
  }

  .tab-label { font-size: 9px; }

  #roomsStats {
    gap: 6px;
  }

  #roomsStats .hero-stat {
    padding: 10px 6px;
  }

  #roomsStats .hero-stat-label {
    font-size: 8px;
    letter-spacing: .22px;
  }

  #roomsStats .hero-stat-value {
    font-size: 18px;
  }
}

.input-glass {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--glass-surface-soft);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  appearance: none;
}

.input-glass:focus {
  border-color: rgba(10,132,255,.45);
  box-shadow: 0 0 0 3px rgba(10,132,255,.10), var(--shadow);
}

.input-glass:disabled {
  opacity: .72;
  cursor: not-allowed;
}

.field-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.company-picker-modal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-picker-top-chrome {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 2px;
}

.company-picker-top-chrome::after {
  content: none;
}

.company-picker-search {
  min-height: 48px;
}

.company-picker-results-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
  --company-picker-top-mask: 0px;
  --company-picker-bottom-mask: 28px;
}

.company-picker-results-shell::before,
.company-picker-results-shell::after {
  content: none;
}

.company-picker-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(52vh, 360px);
  overflow-y: auto;
  padding: 10px 2px 0;
  padding-right: 2px;
  scrollbar-gutter: stable;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 var(--company-picker-top-mask),
    #000 calc(100% - var(--company-picker-bottom-mask)),
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 var(--company-picker-top-mask),
    #000 calc(100% - var(--company-picker-bottom-mask)),
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.company-picker-footer {
  position: relative;
  z-index: 4;
  padding: 0 0 4px;
  display: flex;
  align-items: flex-end;
}

.company-picker-footer::before {
  content: none;
}

.company-picker-footer .modal-action-btn {
  width: 100%;
}

.company-picker-option {
  width: 100%;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 20px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f4f8fc 0%, #e7eef6 100%);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.company-picker-option strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 760;
}

.company-picker-option span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.company-picker-add-option {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  padding: 12px 14px;
  border-color: rgba(10,132,255,.28);
  background: linear-gradient(180deg, rgba(237,246,255,.96) 0%, rgba(226,240,255,.88) 100%);
  box-shadow: 0 8px 22px rgba(20,99,243,.12);
}

.company-picker-add-option strong {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.2px;
}

.company-picker-add-option-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(13,73,191,.26);
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #e8f1ff 68%, #d8e8ff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 18px rgba(18,89,214,.22);
  color: #2169d8;
  flex-shrink: 0;
}

.company-picker-add-option-icon-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  display: block;
  transform: translate(-50%, -50%);
}

.company-picker-add-option:hover,
.company-picker-add-option:focus-visible {
  border-color: rgba(10,132,255,.42);
  box-shadow: 0 10px 24px rgba(20,99,243,.2);
}

.company-cnpj-modal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-cnpj-field {
  margin-top: 8px;
}

.company-cnpj-error {
  color: #c6352b;
  font-weight: 600;
}

.company-picker-option.is-empty {
  border-style: dashed;
}

.muted-text-action {
  width: 100%;
  padding: 4px 2px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.muted-text-action::before {
  display: none;
}

.muted-text-action:hover,
.muted-text-action:focus-visible {
  color: var(--text);
}

.muted-text-action:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* ROOM PLANNER */
.planner-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.planner-feedback,
.planner-room-card,
.planner-guest-row,
.planner-empty-state {
  background: var(--glass-surface-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--r-lg);
}

.planner-feedback,
.planner-room-card,
.planner-empty-state {
  padding: 18px;
}

.planner-feedback strong,
.planner-room-title {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -.4px;
  font-weight: 800;
}

.planner-feedback p,
.planner-room-subtitle,
.planner-empty-state p,
.planner-empty-state p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
}

.planner-error {
  color: #7a1d17;
  border-color: rgba(255, 69, 58, .18);
  background: linear-gradient(180deg, #fff6f5 0%, #ffe9e6 100%);
}

.planner-guest-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
}

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

.planner-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.planner-summary-item {
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.54);
  background: #edf3f8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
}

.planner-summary-item strong {
  display: block;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.5px;
  font-weight: 800;
}

.planner-summary-item span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
  font-weight: 700;
}

.planner-rooms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.planner-room-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.planner-room-guest-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.planner-guest-row {
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.5);
  background: #f0f5fa;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

.planner-guest-info {
  min-width: 0;
  flex: 1;
}

.planner-guest-name {
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: -.25px;
  font-weight: 760;
}

.planner-move-select {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255,255,255,.58);
  background: #f5f8fc;
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}

.planner-empty-state {
  text-align: center;
}

.planner-footer-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ===== ROOM PLANNER CLEAN / IOS ===== */

body.planner-mode .tab-bar {
  display: none;
}

body.planner-mode .content-view {
  padding-bottom: 0;
}

body.room-transfer-mode .content-view {
  padding-bottom: calc(72px + var(--app-safe-bottom));
}

body.stay-payment-mode .tab-bar {
  display: none;
}

body.stay-payment-mode .content-view {
  padding-bottom: 0;
}

.planner-header {
  padding-top: 6px;
}

.planner-subtitle {
  max-width: 420px;
  margin-top: 8px;
}

.planner-stats-row {
  margin-bottom: 4px;
}

.planner-layout {
  gap: 12px;
}

.planner-rooms {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.planner-rooms-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.planner-room-card {
  padding: 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f8fbff 0%, #eaf1f8 100%);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .08);
}

.planner-guest-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.planner-guest-head-copy {
  min-width: 0;
  flex: 1;
}

.planner-guest-avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e4f1ff;
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.planner-guest-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.planner-guest-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.planner-room-title {
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -.4px;
  font-weight: 760;
}

.planner-room-subtitle {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 600;
}

.planner-room-guest-list {
  display: block;
}

.planner-guest-row-compact {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  border-radius: 22px;
  background: #f0f5fa;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.planner-guest-info {
  min-width: 0;
}

.planner-guest-name {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 760;
  color: var(--text);
}

.planner-selection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.planner-selection-room {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.planner-selection-room-empty {
  color: var(--muted);
}

.planner-selection-meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 500;
}

.planner-room-actions {
  width: 100%;
}

.planner-move-select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 18px;
  background: #f7faff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 1px 4px rgba(0,0,0,.04);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.planner-move-select:focus {
  border-color: rgba(10,132,255,.42);
  box-shadow: 0 0 0 4px rgba(10,132,255,.12), inset 0 1px 0 rgba(255,255,255,.94);
}

.planner-footer-actions-compact {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 6px;
  padding-bottom: max(4px, var(--app-safe-bottom));
  background: linear-gradient(180deg, #d9e0ea 0%, #d9e0ea 100%);
}

#page-room-transfer .planner-footer-actions-compact {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 6px 20px calc(6px + var(--app-safe-bottom));
  border-top: 1px solid rgba(255,255,255,.68);
}

#page-room-transfer .planner-footer-actions-compact > .full-width {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
}

#btnPlannerBack,
#btnPlannerCancel {
  min-height: 50px;
  border-radius: 18px;
}

#btnPlannerConfirm {
  min-height: 54px;
  border-radius: 18px;
}

#btnPlannerConfirm:disabled,
#btnPlannerConfirm.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Superficies internas: separacao opaca entre conteudo e card externo. */
.home-session-card,
#page-home .home-checkout-card .guest-card,
.invoice-choice,
.invoice-deadline-card,
.guest-list-item,
.room-details-guest-card,
.room-details-maintenance-toggle,
.checkin-receipt-intro,
.checkin-receipt-guest-card,
.checkin-receipt-empty,
.stay-payment-summary-card,
.stay-payment-summary-empty,
.checkout-settlement-card,
.planner-summary-item,
.planner-guest-row,
.planner-move-select,
.company-picker-option,
.glass-action,
.secondary-button,
.ghost-button,
.modal-action-btn.cancel,
.input-glass {
  background: #ffffff;
}

/* Todos os carregamentos usam a mesma tela de espera. */
body.app-booting,
.app-socket-loading,
.app-action-loading,
.processing-overlay {
  background: #d9e0ea url("./preload-blur/pin.jpg") center / cover no-repeat;
}
.invoice-tracking-menu-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.invoice-tracking-menu-button strong {
    flex: 1;
}

.client-notification-dot {
    display: block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
    animation: client-notification-pulse 1.5s ease-in-out infinite;
}

.home-document-actions .action-card.invoice {
    position: relative;
}

.home-document-actions .action-card.invoice > .client-notification-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
}

@keyframes client-notification-pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.75; }
    50% { transform: scale(1.15); opacity: 1; }
}

.fiscal-note-tracking-card {
    display: block;
    min-width: 0;
    padding: 0;
    border-radius: 22px;
    background: linear-gradient(180deg, #f6faff 0%, #e9f0f8 100%);
    border: 1px solid rgba(255,255,255,.74);
    box-shadow: var(--shadow-sm);
}

.fiscal-note-tracking-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    row-gap: 4px;
    column-gap: 12px;
    padding: 16px;
    list-style: none;
    cursor: pointer;
}

.fiscal-note-tracking-summary::-webkit-details-marker {
    display: none;
}

.fiscal-note-tracking-name {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.fiscal-note-tracking-document {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.fiscal-note-expand-hint {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.fiscal-note-expand-hint i {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 3px rgba(10,132,255,.12);
    animation: client-notification-pulse 1.5s ease-in-out infinite;
}

.fiscal-note-status {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
}

.fiscal-note-status.is-success { color: #15803d; background: rgba(21, 128, 61, .1); }
.fiscal-note-status.is-warning { color: #b45309; background: rgba(180, 83, 9, .1); }
.fiscal-note-status.is-error { color: #be123c; background: rgba(190, 18, 60, .1); }

.fiscal-note-tracking-expanded {
    display: grid;
    gap: 12px;
    margin: 0 16px;
    padding: 14px 0 16px;
    border-top: 1px solid var(--line-soft);
}

.fiscal-note-tracking-card:not([open]) .fiscal-note-tracking-expanded {
    display: none;
}

.fiscal-note-tracking-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.fiscal-note-tracking-details > div {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: #ffffff;
}

.fiscal-note-tracking-details span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.fiscal-note-tracking-details strong {
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.fiscal-note-tracking-wide {
    grid-column: 1 / -1;
}

.fiscal-note-install-button {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
}

@media (max-width: 560px) {
    .fiscal-note-tracking-summary { row-gap: 4px; column-gap: 10px; }
}
