﻿:root {
  --ui-scale: 0.9;
  --bg: #060b16;
  --bg-soft: #0b1220;
  --panel: rgba(13, 21, 37, 0.92);
  --panel-strong: rgba(10, 16, 28, 0.96);
  --panel-alt: rgba(16, 28, 48, 0.88);
  --line: rgba(133, 157, 201, 0.18);
  --line-strong: rgba(133, 157, 201, 0.3);
  --text: #ecf2ff;
  --muted: #91a4c7;
  --muted-soft: #6a7b99;
  --accent: #4f8cff;
  --accent-strong: #2f6be8;
  --accent-soft: rgba(79, 140, 255, 0.18);
  --success: #33d1a1;
  --warning: #f4b84c;
  --danger: #ff6e7a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sidebar-width: 294px;
  --container-width: 1500px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  font-size: 15px;
  font-family: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
  background: radial-gradient(circle at top, #0e1730 0%, #060b16 46%, #04070f 100%);
  color: var(--text);
}

body {
  min-height: calc(100vh / var(--ui-scale));
  width: calc(100% / var(--ui-scale));
  transform: scale(var(--ui-scale));
  transform-origin: top left;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.app-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.ambient-one {
  width: 320px;
  height: 320px;
  background: rgba(79, 140, 255, 0.25);
  top: -50px;
  left: -40px;
}

.ambient-two {
  width: 380px;
  height: 380px;
  background: rgba(43, 100, 202, 0.22);
  right: 10%;
  top: 12%;
}

.ambient-three {
  width: 420px;
  height: 420px;
  background: rgba(30, 41, 73, 0.45);
  right: -40px;
  bottom: -80px;
}

.login-view,
.app-shell {
  position: relative;
  z-index: 1;
}

.login-view {
  min-height: calc(100vh / var(--ui-scale));
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(380px, 480px) minmax(420px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.login-panel,
.login-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.96), rgba(8, 13, 24, 0.93));
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.login-panel {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

.login-brand,
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--accent), #10284a);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 30px rgba(41, 107, 255, 0.28);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.login-brand h1,
.sidebar-brand h2,
.login-copy h2,
.section-heading h3,
.topbar h1,
.page-section h2 {
  margin: 0;
}

.login-brand h1 {
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  line-height: 1.08;
}

.login-copy h2 {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.15;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
  max-width: 46ch;
}

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

.field {
  display: grid;
  gap: 10px;
}

.field span,
.field legend,
.input-help {
  color: var(--muted);
  font-size: 0.84rem;
}

.field input,
.field select,
.field textarea,
.filter-select,
.search-box input,
.room-location-trigger,
.booking-picker-trigger {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(9, 16, 28, 0.88);
  color: var(--text);
  border-radius: 14px;
  padding: 11px 13px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

form[data-form="guest"] textarea[name="address"],
form[data-form="guest"] textarea[name="notes"] {
  min-height: 64px;
}

form[data-form="guest"] .field {
  align-content: start;
}

.room-location-picker-field {
  align-content: start;
  position: relative;
}

.room-location-picker-field.open {
  z-index: 8;
}

.room-location-trigger {
  text-align: left;
  cursor: pointer;
  position: relative;
  padding-right: 38px;
}

.room-location-trigger::after {
  content: "\25BE";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.84rem;
  color: var(--muted);
  pointer-events: none;
}

.room-location-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 14;
  border: 1px solid var(--line);
  background: rgba(9, 16, 28, 0.96);
  border-radius: 12px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px;
  display: none;
  gap: 4px;
  box-shadow: var(--shadow-soft);
}

.room-location-picker-field.open .room-location-options {
  display: grid;
}

.room-location-option {
  border: 0;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.room-location-option:hover,
.room-location-option.active {
  background: rgba(79, 140, 255, 0.14);
}

.room-location-empty {
  color: var(--muted);
  font-size: 0.84rem;
  padding: 6px 8px;
}

.booking-picker-field {
  align-content: start;
  position: relative;
}

.booking-picker-field.open {
  z-index: 10;
}

.booking-picker-trigger {
  text-align: left;
  cursor: pointer;
  position: relative;
  padding-right: 38px;
}

.booking-picker-trigger::after {
  content: "\25BE";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.84rem;
  color: var(--muted);
  pointer-events: none;
}

.booking-picker-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 15;
  border: 1px solid var(--line);
  background: rgba(9, 16, 28, 0.96);
  border-radius: 12px;
  padding: 8px;
  display: none;
  gap: 8px;
  box-shadow: var(--shadow-soft);
}

.booking-picker-field.open .booking-picker-options {
  display: grid;
}

.booking-picker-search {
  border-radius: 10px;
  padding: 9px 11px;
}

.booking-picker-list {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.booking-picker-option {
  border: 0;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.booking-picker-option:hover,
.booking-picker-option.active {
  background: rgba(79, 140, 255, 0.14);
}

.booking-picker-empty {
  color: var(--muted);
  font-size: 0.84rem;
  padding: 6px 8px;
}

.guest-name-picker-field {
  align-content: start;
  position: relative;
}

.guest-name-picker-field.open {
  z-index: 8;
}

.guest-name-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 22px;
  cursor: pointer;
  outline: none;
}

.guest-name-selected:focus-visible {
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.2);
}

.guest-name-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 170, 248, 0.32);
  background: rgba(21, 38, 66, 0.82);
  color: #d8e8ff;
  font-size: 0.82rem;
}

.guest-name-empty {
  color: var(--muted);
  font-size: 0.84rem;
}

.guest-name-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 14;
  border: 1px solid var(--line);
  background: rgba(9, 16, 28, 0.96);
  border-radius: 12px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px;
  display: none;
  gap: 4px;
  box-shadow: var(--shadow-soft);
}

.guest-name-picker-field.open .guest-name-options {
  display: grid;
}

.guest-name-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.guest-name-option:hover {
  background: rgba(79, 140, 255, 0.12);
}

.guest-name-option:has(input[type="checkbox"]:checked) {
  background: rgba(79, 140, 255, 0.16);
}

.guest-name-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--accent);
}

.guest-name-option small {
  color: var(--muted);
  font-size: 0.76rem;
}

.file-picker {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  background: rgba(9, 16, 28, 0.88);
  border-radius: 14px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.file-picker-btn {
  border: 1px solid rgba(147, 171, 218, 0.3);
  background: rgba(255, 255, 255, 0.95);
  color: #1a2437;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

.file-picker-name {
  color: var(--text);
}

.file-picker:focus-within {
  border-color: rgba(79, 140, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.16);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-box input:focus,
.filter-select:focus,
.room-location-trigger:focus,
.booking-picker-trigger:focus,
.booking-picker-search:focus {
  border-color: rgba(79, 140, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.16);
}

.btn {
  border: 0;
  border-radius: 13px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition),
    opacity var(--transition);
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.2;
}

.btn:hover,
.icon-btn:hover,
.nav-item:hover,
.room-preview-card:hover,
.metric-card:hover,
.panel-card:hover,
.booking-chip:hover {
  transform: translateY(-1px);
}

.btn:active,
.icon-btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 28px rgba(57, 111, 230, 0.34);
}

.btn-primary:hover {
  box-shadow: 0 18px 36px rgba(57, 111, 230, 0.4);
}

.btn-secondary {
  background: rgba(20, 31, 53, 0.98);
  border: 1px solid var(--line);
}

.btn-building-edit {
  background: linear-gradient(135deg, #15c9ff, #4f8cff 48%, #7a6bff);
  border: 1px solid rgba(152, 198, 255, 0.5);
  color: #f3f8ff;
  box-shadow: 0 10px 24px rgba(63, 121, 255, 0.34);
}

.btn-building-edit:hover {
  box-shadow: 0 16px 30px rgba(63, 121, 255, 0.42);
  filter: saturate(1.1);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
}

.btn-danger {
  background: rgba(255, 110, 122, 0.12);
  color: #ffb4bb;
  border: 1px solid rgba(255, 110, 122, 0.22);
}

.btn-payment-add {
  background: linear-gradient(135deg, #26c6ff 0%, #4f8cff 48%, #7a5cff 100%);
  border: 1px solid rgba(151, 200, 255, 0.58);
  color: #f2f7ff;
  box-shadow: 0 14px 28px rgba(66, 128, 255, 0.34);
}

.btn-payment-add:hover {
  box-shadow: 0 20px 34px rgba(71, 136, 255, 0.42);
  filter: saturate(1.08);
}

.btn-payment-edit {
  background: linear-gradient(135deg, #13cdb0 0%, #1ea7c8 45%, #3c7cf8 100%);
  border: 1px solid rgba(126, 236, 227, 0.34);
  color: #ecfbff;
  box-shadow: 0 10px 22px rgba(30, 130, 192, 0.3);
}

.btn-payment-edit:hover {
  box-shadow: 0 16px 28px rgba(36, 126, 196, 0.42);
  filter: saturate(1.06);
}

.btn-payment-type {
  background: linear-gradient(135deg, #f59f35 0%, #f06a5a 52%, #dd4db7 100%);
  border: 1px solid rgba(255, 203, 143, 0.34);
  color: #fff4ee;
  box-shadow: 0 10px 22px rgba(237, 117, 92, 0.3);
}

.btn-payment-type:hover {
  box-shadow: 0 16px 28px rgba(232, 102, 123, 0.4);
  filter: saturate(1.08);
}

.btn-payment-edit,
.btn-payment-type {
  white-space: nowrap;
  min-width: 96px;
  text-align: center;
}

.btn-payment-edit {
  min-width: 78px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 16, 28, 0.88);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

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

.credential-card {
  appearance: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 27, 47, 0.96), rgba(10, 18, 31, 0.92));
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
}

.credential-role {
  color: #c4d4f3;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential-card strong {
  font-size: 0.92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.login-visual {
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(3, 9, 18, 0.55), rgba(6, 11, 22, 0.96)),
    radial-gradient(circle at top right, rgba(79, 140, 255, 0.32), transparent 40%),
    radial-gradient(circle at bottom left, rgba(36, 64, 121, 0.42), transparent 38%);
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.03) 0%, transparent 38%),
    linear-gradient(180deg, transparent 0%, rgba(4, 7, 14, 0.1) 100%);
  pointer-events: none;
}

.visual-card {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(8, 15, 29, 0.76), rgba(10, 18, 32, 0.94));
  border: 1px solid rgba(147, 171, 218, 0.12);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hero-card {
  min-height: 340px;
  display: grid;
  gap: 24px;
}

.hero-header,
.suite-preview,
.topbar,
.section-heading,
.page-toolbar,
.summary-list li,
.list-item,
.modal-header,
.invoice-summary li,
.data-grid .data-item,
.top-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hero-header span,
.status-pill,
.tag,
.pill {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-header span,
.pill {
  background: rgba(79, 140, 255, 0.16);
  color: #bed4ff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-metrics article,
.summary-stat {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(147, 171, 218, 0.08);
  display: grid;
  gap: 10px;
}

.hero-metrics span,
.summary-stat span,
.summary-mini span {
  color: var(--muted);
}

.hero-metrics strong,
.summary-stat strong {
  font-size: 1.6rem;
}

.hero-chart {
  position: relative;
  min-height: 120px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.12), rgba(79, 140, 255, 0.02));
  overflow: hidden;
}

.chart-line {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 26px;
  top: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(120deg, transparent 0 12%, rgba(79, 140, 255, 0.32) 12% 14%, transparent 14%),
    linear-gradient(180deg, transparent 0 40%, rgba(79, 140, 255, 0.18) 40% 41%, transparent 41%),
    linear-gradient(transparent 0 57%, rgba(255, 255, 255, 0.06) 57% 58%, transparent 58%);
}

.chart-line::after {
  content: "";
  position: absolute;
  inset: 18px 0 12px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(85, 157, 255, 0.1), rgba(58, 102, 204, 0.4));
  clip-path: polygon(0 82%, 17% 66%, 35% 72%, 52% 40%, 69% 51%, 86% 24%, 100% 36%, 100% 100%, 0 100%);
}

.chart-dots {
  position: absolute;
  inset: 0 26px 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.chart-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dcebff;
  border: 3px solid rgba(79, 140, 255, 0.48);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

@media (min-width: 1081px) {
  .login-view {
    height: calc(100vh / var(--ui-scale));
    overflow: hidden;
  }
}

.suite-image {
  flex: 0 0 132px;
  height: 106px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.2)),
    radial-gradient(circle at top left, rgba(107, 154, 255, 0.6), transparent 35%),
    linear-gradient(135deg, #1d355e, #0b1220 45%, #21385d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.suite-details {
  display: grid;
  gap: 8px;
}

.suite-details span {
  color: var(--muted);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh / var(--ui-scale));
}

.sidebar {
  position: sticky;
  top: 0;
  height: calc(100vh / var(--ui-scale));
  padding: 22px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.98), rgba(10, 17, 29, 0.95));
  border-right: 1px solid var(--line);
  box-shadow: 14px 0 40px rgba(0, 0, 0, 0.22);
}

.sidebar-header {
  display: grid;
  gap: 16px;
}

.mobile-only,
.mobile-toggle {
  display: none;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(133, 157, 201, 0.45) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(133, 157, 201, 0.4);
  border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(133, 157, 201, 0.56);
}

.nav-item {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 18px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition),
    transform var(--transition);
}

.nav-item .nav-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(17, 28, 46, 0.88);
  border: 1px solid rgba(147, 171, 218, 0.12);
  display: grid;
  place-items: center;
  font-size: 0.96rem;
}

.nav-item .nav-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
  align-content: center;
}

.nav-item .nav-copy strong {
  display: block;
  line-height: 1.2;
}

.nav-item .nav-copy .table-subtext {
  display: block;
  line-height: 1.25;
}

.nav-item.active {
  background: linear-gradient(180deg, rgba(21, 34, 58, 0.92), rgba(13, 22, 38, 0.88));
  border-color: rgba(79, 140, 255, 0.24);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.nav-item.active .nav-icon {
  background: rgba(79, 140, 255, 0.16);
  border-color: rgba(79, 140, 255, 0.24);
}

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

.nav-item-toggle {
  position: relative;
}

.nav-item-toggle .nav-caret {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
  margin-left: 8px;
}

.nav-group.open .nav-item-toggle .nav-caret,
.nav-item-toggle.active .nav-caret {
  color: var(--text);
}

.nav-submenu {
  display: grid;
  gap: 7px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-left: 56px;
  transition: max-height var(--transition), opacity var(--transition);
}

.nav-group.open .nav-submenu {
  max-height: 260px;
  opacity: 1;
}

.nav-item-child {
  border-radius: 12px;
  padding: 9px 12px;
  gap: 10px;
}

.nav-child-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(133, 157, 201, 0.52);
  flex: 0 0 7px;
}

.nav-item-child .nav-copy strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-item-child.active .nav-child-dot {
  background: rgba(79, 140, 255, 0.95);
}

.sidebar-preview {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 20, 35, 0.96), rgba(9, 15, 26, 0.9));
  display: grid;
  align-content: start;
  gap: 16px;
}

.room-preview-list {
  display: grid;
  gap: 12px;
}

.room-preview-card {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(147, 171, 218, 0.12);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.room-preview-card .thumb,
.table-thumb,
.room-card .thumb {
  width: 100%;
  height: 66px;
  border-radius: 14px;
  overflow: hidden;
  background: #12203a center / cover no-repeat;
}

.room-preview-card strong,
.room-card h4 {
  display: block;
  margin-bottom: 6px;
}

.room-preview-card span,
.subtle-text,
.table-subtext {
  color: var(--muted);
  font-size: 0.9rem;
}

.sidebar-footer {
  padding-top: 6px;
}

.sidebar-overlay {
  display: none;
}

.main-shell {
  padding: 18px;
  max-width: calc(var(--container-width) - 10px);
  width: 100%;
}

.topbar {
  display: none;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.94), rgba(9, 14, 25, 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.topbar-left,
.topbar-right,
.stack-inline,
.toolbar-group,
.status-group,
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(300px, 30vw);
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(14, 22, 39, 0.9);
  border: 1px solid var(--line);
}

.search-box span {
  color: var(--muted);
}

.search-box input {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 9px 0;
  font-size: 0.96rem;
}

.profile-pill {
  padding: 6px 10px 6px 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(14, 22, 39, 0.94);
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-avatar,
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(79, 140, 255, 0.92), rgba(17, 38, 74, 0.96));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.profile-pill span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.content {
  display: grid;
  gap: 14px;
}

.page-section {
  display: grid;
  gap: 14px;
}

.page-toolbar,
.filters-bar {
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(12, 19, 34, 0.94), rgba(10, 17, 29, 0.92));
  border: 1px solid var(--line);
}

.filters-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.filters-bar .search-box {
  min-width: 0;
  width: 100%;
}

.app-shell .eyebrow {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.topbar h1 {
  font-size: clamp(1.65rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.page-section h2 {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.2;
}

.guest-details-toolbar {
  align-items: stretch;
}

.guest-inline-summary {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guest-inline-item {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: center;
}

.guest-inline-item > span {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guest-inline-item > strong {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guest-inline-status .status-pill {
  width: max-content;
}

.metric-grid,
.stats-grid,
.panel-grid,
.split-grid,
.three-grid,
.settings-grid,
.room-grid,
.cards-grid,
.report-grid,
.form-grid {
  display: grid;
  gap: 18px;
}

.metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel-grid {
  grid-template-columns: 1.45fr 1fr;
}

.split-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

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

.settings-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.room-grid,
.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

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

.metric-card,
.panel-card,
.room-card,
.service-card,
.list-card,
.summary-card,
.timeline-card {
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 21, 36, 0.95), rgba(9, 15, 26, 0.92));
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.metric-card,
.panel-card,
.service-card,
.summary-card,
.timeline-card {
  padding: 20px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -20px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.18), transparent 70%);
}

.metric-card .label,
.panel-title p,
.kpi-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.metric-card strong,
.report-card strong,
.big-number {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.metric-card .delta,
.good {
  color: var(--success);
}

.warn {
  color: var(--warning);
}

.bad {
  color: var(--danger);
}

.panel-card {
  display: grid;
  gap: 18px;
}

.panel-title h3,
.modal-header h3,
.summary-card h3,
.timeline-card h3,
.service-card h3 {
  margin: 0;
}

.canvas-wrap {
  position: relative;
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 15, 27, 0.6), rgba(13, 22, 37, 0.3));
}

.canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.table-card {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 21, 36, 0.95), rgba(9, 15, 26, 0.92));
  box-shadow: var(--shadow-soft);
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 16px 18px;
  text-align: left;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(133, 157, 201, 0.08);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-thumb {
  width: 56px;
  height: 46px;
  border-radius: 12px;
  flex: 0 0 56px;
}

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

.bookings-table thead th:last-child,
.bookings-table tbody td:last-child {
  width: 1%;
  white-space: nowrap;
}

.bookings-table {
  min-width: 1420px;
}

.bookings-table tbody td:last-child {
  vertical-align: middle;
}

.bookings-table tbody td {
  vertical-align: middle;
}

.bookings-table .booking-id-text {
  white-space: nowrap;
}

.bookings-table .booking-stay-main {
  white-space: nowrap;
  display: inline-block;
}

.bookings-table .table-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

@media (min-width: 561px) {
  .bookings-table td[data-label="Action"] .table-actions,
  .bookings-table td[data-label="Status"] {
    min-height: 44px;
  }
}

.bookings-table .table-actions .btn {
  min-width: 82px;
  padding: 7px 11px;
  font-size: 0.86rem;
  line-height: 1.1;
  border-radius: 11px;
  white-space: nowrap;
  text-align: center;
}

.guests-table thead th:last-child,
.guests-table tbody td:last-child {
  width: 1%;
  white-space: nowrap;
}

.guests-table tbody td:last-child {
  vertical-align: middle;
}

.guests-table .table-actions {
  flex-wrap: nowrap;
}

.guests-table .table-actions .btn {
  white-space: nowrap;
  min-width: 106px;
  text-align: center;
}

.payment-settings-table thead th:last-child,
.payment-settings-table tbody td:last-child {
  text-align: right;
}

.payment-settings-table thead th:last-child {
  width: 1%;
  white-space: nowrap;
  padding-right: 24px;
}

.payment-settings-action-cell .table-actions {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: 100%;
}

.payment-settings-action-cell {
  vertical-align: middle;
}

.status-pill {
  background: rgba(133, 157, 201, 0.1);
  color: #d2def8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.status-available,
.status-completed,
.status-paid,
.status-active {
  background: rgba(51, 209, 161, 0.12);
  color: #8ef3d1;
}

.status-booked,
.status-pending {
  background: rgba(79, 140, 255, 0.14);
  color: #bad2ff;
}

.status-occupied,
.status-checkedin {
  background: rgba(244, 184, 76, 0.14);
  color: #ffd48f;
}

.status-maintenance,
.status-cancelled,
.status-due,
.status-inactive {
  background: rgba(255, 110, 122, 0.13);
  color: #ffbac0;
}

.room-card {
  overflow: hidden;
}

.room-card .thumb {
  height: 170px;
  border-radius: 0;
}

.room-card .room-card-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.room-card-meta,
.meta-row,
.summary-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.room-card .amenities,
.badges-row,
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  color: #c8d7f4;
}

.list-card {
  padding: 0;
}

.list-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.list-body {
  display: grid;
}

.list-item {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(133, 157, 201, 0.08);
}

.list-item:last-child {
  border-bottom: 0;
}

.booking-chip {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 10px;
  transition: transform var(--transition), border-color var(--transition);
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(133, 157, 201, 0.1);
  display: grid;
  gap: 10px;
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.modal-root {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.7);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 30;
}

.modal-panel {
  width: min(920px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(10, 17, 30, 0.98), rgba(8, 14, 25, 0.98));
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.modal-panel.compact {
  width: min(520px, 100%);
}

.modal-panel.booking-modal {
  width: min(1180px, 100%);
  max-height: min(95vh, 980px);
}

.modal-panel.booking-modal .modal-header,
.modal-panel.booking-modal .modal-footer {
  padding: 12px 18px;
}

.modal-panel.booking-modal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-panel.booking-modal .modal-body {
  padding: 14px 18px;
  gap: 10px;
}

.modal-panel.booking-modal .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.modal-panel.booking-modal .booking-form {
  position: relative;
}

.modal-panel.booking-modal .booking-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.modal-panel.booking-modal .booking-price-row input[name="pricePerNight"] {
  width: 100%;
}

.modal-panel.booking-modal .booking-pay-now-btn {
  height: 42px;
  padding: 0 16px;
  white-space: nowrap;
  border: 1px solid rgba(146, 216, 255, 0.4);
  background: linear-gradient(135deg, #15c9ff 0%, #4f8cff 56%, #6b67ff 100%);
  color: #eff7ff;
  box-shadow: 0 10px 22px rgba(56, 121, 255, 0.36);
}

.modal-panel.booking-modal .booking-pay-now-btn:hover {
  box-shadow: 0 14px 28px rgba(56, 121, 255, 0.46);
  filter: saturate(1.08);
}

.modal-panel.booking-modal .booking-cancel-btn {
  border: 1px solid rgba(137, 164, 211, 0.26);
  background: linear-gradient(180deg, rgba(20, 31, 53, 0.98), rgba(14, 23, 39, 0.96));
  color: #d8e3f8;
}

.modal-panel.booking-modal .booking-cancel-btn:hover {
  border-color: rgba(79, 140, 255, 0.46);
  background: linear-gradient(180deg, rgba(24, 38, 64, 0.98), rgba(16, 28, 48, 0.96));
}

.modal-panel.booking-modal .booking-notes-inline-field {
  grid-column: 1 / -1;
  align-content: start;
}

.modal-panel.booking-modal .booking-notes-field textarea {
  min-height: 104px;
}

.modal-panel.booking-modal .soft-note {
  padding: 10px 12px;
}

.modal-panel.booking-modal .booking-footer-summary {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 10px;
}

.modal-panel.booking-modal .booking-footer-metric {
  border: 1px solid rgba(133, 157, 201, 0.18);
  background: rgba(17, 29, 49, 0.6);
  border-radius: 12px;
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}

.modal-panel.booking-modal .booking-footer-metric span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-panel.booking-modal .booking-footer-metric strong {
  font-size: 1rem;
  color: #d7e7ff;
  line-height: 1.2;
}

.modal-panel.booking-modal .booking-footer-discount-input {
  width: 100%;
  border: 1px solid rgba(133, 157, 201, 0.24);
  background: rgba(8, 15, 28, 0.92);
  color: #d7e7ff;
  border-radius: 8px;
  padding: 6px 8px;
  height: 34px;
  font-size: 0.95rem;
  outline: none;
}

.modal-panel.booking-modal .booking-footer-discount-input:focus {
  border-color: rgba(79, 140, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.14);
}

.modal-panel.booking-modal .booking-footer-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.modal-panel.booking-modal .booking-pay-popup {
  position: absolute;
  inset: 0;
  z-index: 22;
  background: rgba(3, 8, 15, 0.62);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-panel.booking-modal .booking-pay-popup.hidden {
  display: none;
}

.modal-panel.booking-modal .booking-pay-popup-card {
  width: min(660px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(128, 164, 223, 0.28);
  background: linear-gradient(180deg, rgba(12, 20, 35, 0.98), rgba(8, 14, 27, 0.98));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.48);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.modal-panel.booking-modal .booking-pay-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-panel.booking-modal .booking-pay-popup-header h4 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.modal-panel.booking-modal .booking-pay-popup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-panel.booking-modal .booking-pay-popup-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.modal-panel.payment-setting-modal {
  width: min(640px, 100%);
}

.modal-panel.guest-doc-preview-modal {
  width: min(760px, 100%);
}

.modal-panel.payment-setting-modal .modal-body {
  padding: 18px 22px 20px;
}

.modal-panel.payment-setting-modal .form-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.modal-panel.payment-setting-modal .modal-footer {
  gap: 10px;
}

.modal-panel.payment-setting-modal .modal-header .icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(121, 163, 237, 0.26);
  background:
    linear-gradient(180deg, rgba(18, 30, 53, 0.95), rgba(10, 18, 34, 0.95));
  box-shadow: inset 0 1px 0 rgba(198, 221, 255, 0.08), 0 10px 20px rgba(0, 0, 0, 0.32);
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-panel.payment-setting-modal .modal-header .icon-btn:hover {
  border-color: rgba(79, 140, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(198, 221, 255, 0.12), 0 14px 28px rgba(32, 91, 206, 0.35);
}

.payment-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 2px 0 0;
}

.payment-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 170, 248, 0.32);
  background: linear-gradient(135deg, rgba(18, 42, 76, 0.75), rgba(13, 24, 44, 0.92));
  color: #d8e8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.payment-type-chip-remove {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 134, 124, 0.9), rgba(234, 77, 138, 0.9));
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  box-shadow: 0 6px 14px rgba(234, 77, 138, 0.28);
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}

.payment-type-chip-remove:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 10px 18px rgba(234, 77, 138, 0.34);
}

.payment-type-input-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.payment-type-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.payment-type-input-row input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(9, 16, 28, 0.88);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 13px;
  outline: none;
}

.payment-type-input-row input:focus {
  border-color: rgba(79, 140, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.16);
}

.payment-type-input-remove {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 122, 136, 0.24);
  border-radius: 12px;
  background: rgba(255, 110, 122, 0.12);
  color: #ffb4bb;
  font-size: 1rem;
  cursor: pointer;
}

.payment-type-input-remove:hover {
  background: rgba(255, 110, 122, 0.2);
}

.btn-payment-type-inline {
  width: fit-content;
}

.guest-document-list {
  display: grid;
  gap: 10px;
}

.guest-document-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(133, 157, 201, 0.16);
  background: rgba(9, 16, 28, 0.68);
}

.guest-document-name {
  color: #dbe7fb;
  font-size: 0.92rem;
  font-weight: 600;
}

.guest-document-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.guest-document-file-name {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  text-align: right;
}

.btn-guest-doc {
  min-width: 92px;
}

.guest-doc-file-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guest-doc-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-doc-preview {
  padding: 6px 10px;
  font-size: 0.82rem;
  border-radius: 10px;
  white-space: nowrap;
}

.btn-doc-delete {
  padding: 6px 10px;
  font-size: 0.82rem;
  border-radius: 10px;
  white-space: nowrap;
}

.guest-documents-table thead th:last-child,
.guest-documents-table tbody td:last-child {
  width: 1%;
  white-space: nowrap;
}

.guest-family-table thead th:last-child,
.guest-family-table tbody td:last-child {
  width: 1%;
  white-space: nowrap;
}

.guest-doc-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.guest-family-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.btn-doc-edit,
.guest-doc-table-actions .btn-doc-delete,
.guest-family-table-actions .btn-doc-delete {
  min-width: 78px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.15;
  border: 1px solid transparent;
}

.btn-doc-edit {
  background: linear-gradient(135deg, #2f7dff, #4f8cff);
  border-color: rgba(149, 190, 255, 0.45);
  color: #eef6ff;
  box-shadow: 0 8px 16px rgba(47, 125, 255, 0.26);
}

.btn-doc-edit:hover {
  box-shadow: 0 12px 20px rgba(47, 125, 255, 0.34);
}

.guest-doc-table-actions .btn-doc-delete,
.guest-family-table-actions .btn-doc-delete {
  background: linear-gradient(135deg, rgba(255, 104, 130, 0.18), rgba(235, 71, 114, 0.26));
  border-color: rgba(255, 128, 149, 0.42);
  color: #ffc4cf;
}

.guest-doc-table-actions .btn-doc-delete:hover,
.guest-family-table-actions .btn-doc-delete:hover {
  background: linear-gradient(135deg, rgba(255, 104, 130, 0.3), rgba(235, 71, 114, 0.38));
}

.guest-doc-preview-body {
  padding-top: 14px;
}

.guest-doc-preview-frame {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 13, 24, 0.9);
  min-height: 260px;
  max-height: 68vh;
  overflow: auto;
  padding: 12px;
  display: grid;
  place-items: center;
}

.guest-doc-preview-frame img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 920px) {
  .payment-type-input-list {
    grid-template-columns: 1fr;
  }

  .guest-document-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .guest-document-actions {
    justify-content: space-between;
  }

  .guest-document-file-name {
    text-align: left;
    max-width: none;
  }

  .guest-doc-file-cell {
    flex-direction: column;
    align-items: flex-start;
  }

  .guest-doc-file-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.modal-header,
.modal-footer {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(10, 17, 30, 0.98), rgba(8, 14, 25, 0.98));
}

.modal-panel:not(.payment-setting-modal) .modal-header {
  padding: 12px 20px;
}

.modal-panel:not(.payment-setting-modal) .modal-header h3 {
  font-size: 2rem;
  line-height: 1.04;
}

.modal-panel:not(.payment-setting-modal) .modal-header .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.modal-footer {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}

.modal-body {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.form-grid.full,
.field.full,
.inline-fields.full {
  grid-column: 1 / -1;
}

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

.room-image-preview-field {
  min-width: 0;
}

.room-image-preview-box {
  height: 84px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  background: rgba(9, 16, 28, 0.7);
  padding: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.room-image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.room-image-preview-box span {
  color: var(--muted);
  font-size: 0.84rem;
}

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 12px;
  z-index: 35;
}

.toast {
  min-width: 280px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.96);
  box-shadow: var(--shadow-soft);
  animation: toast-in 0.22s ease;
}

.toast strong {
  display: block;
  margin-bottom: 6px;
}

.toast.success {
  border-color: rgba(51, 209, 161, 0.28);
}

.toast.error {
  border-color: rgba(255, 110, 122, 0.28);
}

.toast.info {
  border-color: rgba(79, 140, 255, 0.28);
}

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

.tab-button {
  padding: 11px 16px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
}

.tab-button.active {
  background: rgba(79, 140, 255, 0.12);
  border-color: rgba(79, 140, 255, 0.26);
  color: var(--text);
}

.data-grid {
  display: grid;
  gap: 10px;
}

.data-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(133, 157, 201, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.data-item span {
  color: var(--muted);
}

.invoice {
  display: grid;
  gap: 16px;
}

.invoice-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.invoice-grid,
.summary-list,
.invoice-summary {
  display: grid;
  gap: 10px;
}

.summary-list,
.invoice-summary {
  list-style: none;
  padding: 0;
  margin: 0;
}

.invoice-summary li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.invoice-summary .total {
  background: rgba(79, 140, 255, 0.12);
  border: 1px solid rgba(79, 140, 255, 0.22);
}

.loading-shimmer {
  position: relative;
  overflow: hidden;
}

.loading-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shimmer 1.6s infinite;
}

.service-card .price {
  font-size: 1.5rem;
}

.settings-preview {
  min-height: 100%;
  display: grid;
  gap: 18px;
  align-content: start;
}

.brand-tile {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 24, 42, 0.95), rgba(10, 17, 29, 0.92));
  display: grid;
  gap: 16px;
}

.brand-logo {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(79, 140, 255, 0.96), rgba(14, 33, 66, 1));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.5rem;
}

.soft-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(133, 157, 201, 0.1);
  color: var(--muted);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1280px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel-grid,
  .split-grid,
  .settings-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 1080px) {
  .login-view {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(var(--sidebar-width), 88vw);
    transform: translateX(-105%);
    transition: transform var(--transition);
    z-index: 25;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.show {
    position: fixed;
    inset: 0;
    display: block;
    z-index: 20;
    background: rgba(2, 6, 12, 0.52);
    backdrop-filter: blur(6px);
  }

  .mobile-only,
  .mobile-toggle {
    display: inline-grid;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .topbar-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .search-box {
    min-width: 0;
    flex: 1 1 280px;
  }
}

@media (max-width: 820px) {
  .main-shell,
  .login-view {
    padding: 16px;
  }

  .metric-grid,
  .stats-grid,
  .three-grid,
  .form-grid,
  .inline-fields,
  .guest-inline-summary {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .demo-credentials {
    grid-template-columns: 1fr;
  }

  .page-toolbar,
  .filters-bar,
  .topbar {
    padding: 16px;
  }

  .filters-bar {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    border-radius: 22px;
  }
}

@media (max-width: 560px) {
  .login-panel,
  .login-visual {
    padding: 24px;
    border-radius: 28px;
  }

  .topbar-left,
  .topbar-right,
  .page-toolbar,
  .filters-bar,
  .section-heading,
  .modal-header,
  .modal-footer,
  .table-main {
    align-items: flex-start;
  }

  .table-actions,
  .status-group,
  .toolbar-group,
  .topbar-right {
    width: 100%;
  }

  .profile-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .modal-panel.booking-modal .booking-footer-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  thead {
    display: none;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tbody tr {
    border-bottom: 1px solid var(--line);
  }

  tbody td {
    padding: 12px 16px;
  }

  tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 980px) {
  .modal-panel.booking-modal .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-panel.booking-modal .modal-footer {
    flex-wrap: wrap;
  }

  .modal-panel.booking-modal .booking-footer-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .modal-panel.booking-modal .booking-footer-actions {
    width: 100%;
  }

  .modal-panel.booking-modal .booking-notes-inline-field {
    grid-column: 1 / -1;
  }

  .modal-panel.booking-modal .booking-pay-popup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .modal-panel.booking-modal .booking-footer-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



