@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');
@import "./tokens.css";
@import "./base.css";
@import "./layout.css";
@import "./desktop-accordion.css";
@import "./mobile-drawer.css";
@import "./front-desk.css";
@import "./guests.css";
@import "./companies.css";
@import "./cashiering.css";
@import "./blocking.css";
@import "./free-to-sale.css";
@import "./auth.css";
@import "./room-management.css";
@import "./rate-management.css";
@import "./reservations.css";

.azura-toast-viewport {
  position: fixed;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 2400;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.azura-toast {
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
  color: #0f172a;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.azura-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.azura-toast[data-tone="error"] {
  border-color: rgba(239, 68, 68, 0.18);
  background: #fff5f5;
  color: #b91c1c;
}

.azura-toast[data-tone="warning"] {
  border-color: rgba(245, 158, 11, 0.2);
  background: #fffbeb;
  color: #92400e;
}

.azura-toast[data-tone="success"] {
  border-color: rgba(34, 197, 94, 0.18);
  background: #f0fdf4;
  color: #166534;
}

html[dir="rtl"] .azura-toast-viewport {
  inset-inline-end: auto;
  inset-inline-start: 18px;
}

@media (max-width: 640px) {
  .azura-toast-viewport {
    top: 12px;
    inset-inline-end: 12px;
    width: calc(100vw - 24px);
  }

  html[dir="rtl"] .azura-toast-viewport {
    inset-inline-end: auto;
    inset-inline-start: 12px;
  }
}
.settlement-dialog {
  max-width: 720px;
}

.settlement-dialog-form {
  gap: 18px;
}

.settlement-dialog-body {
  display: grid;
  gap: 16px;
}

.settlement-guest-block {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #f8fafc;
}

.settlement-guest-block strong {
  font-size: 1rem;
}

.settlement-guest-block span {
  color: #64748b;
  font-size: 0.88rem;
}

.settlement-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.settlement-summary-grid article {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
}

.settlement-summary-grid article span {
  color: #64748b;
  font-size: 0.84rem;
}

.settlement-summary-grid article strong {
  font-size: 1rem;
}

.settlement-summary-grid .is-balance {
  background: #fff7ed;
  border-color: rgba(249, 115, 22, 0.22);
}

.settlement-line-items {
  display: grid;
  gap: 10px;
}

.settlement-line-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settlement-line-items-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding-right: 2px;
}

.settlement-line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #fff;
}

.settlement-line-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settlement-line-item span {
  color: #64748b;
  font-size: 0.82rem;
}

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

.settlement-form-grid label {
  display: grid;
  gap: 8px;
}

.settlement-form-grid span {
  color: #475569;
  font-size: 0.84rem;
}

.settlement-form-grid input,
.settlement-form-grid select {
  min-height: 42px;
}

@media (max-width: 720px) {
  .settlement-summary-grid,
  .settlement-form-grid {
    grid-template-columns: 1fr;
  }
}
.financial-reservation-card.is-search-hidden {
  display: none !important;
}

.guest-profiles-page {
  display: grid;
  gap: 18px;
}

.guest-profiles-header,
.guest-profiles-kpis article,
.guest-profile-list,
.guest-profile-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
}

.guest-profiles-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.guest-profiles-header p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

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

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

.guest-profiles-kpis article {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.guest-profiles-kpis article span,
.guest-profiles-kpis article small {
  color: #64748b;
}

.guest-profiles-kpis article strong {
  font-size: 1.25rem;
}

.guest-profiles-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.guest-profile-list {
  display: grid;
  gap: 12px;
  padding: 14px;
  position: sticky;
  top: 16px;
}

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

.guest-profile-list-head-copy {
  display: grid;
  gap: 4px;
}

.guest-profile-list-head span,
.guest-profile-toolbar-meta span {
  color: #64748b;
  font-size: 0.84rem;
}

.guest-profile-toolbar {
  display: grid;
  gap: 10px;
}

.guest-profile-search-shell {
  width: 100%;
}

.guest-profile-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.guest-profile-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #fff;
  color: #334155;
  font: inherit;
  cursor: pointer;
}

.guest-profile-filter-chip.is-active {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
}

.guest-profile-filter-chip strong {
  font-size: 0.78rem;
}

.guest-profile-toolbar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guest-profile-item {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #fff;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.guest-profile-item:hover {
  border-color: rgba(15, 118, 110, 0.2);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.guest-profile-item.is-active {
  border-color: rgba(15, 118, 110, 0.32);
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.06);
}

.guest-profile-item.is-hidden,
.empty-state.is-hidden {
  display: none;
}

.guest-profile-item-head,
.guest-profile-item-meta,
.guest-profile-card-head,
.guest-profile-actions-bar,
.guest-profile-section-head,
.guest-feed-card-head,
.guest-active-reservation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.guest-profile-item-head strong,
.guest-profile-card-head strong {
  display: block;
  margin-bottom: 4px;
}

.guest-profile-item-head span,
.guest-profile-card-head small,
.guest-profile-item-meta span {
  color: #64748b;
  font-size: 0.84rem;
}

.guest-profile-item-meta {
  flex-wrap: wrap;
}

.guest-profile-detail {
  min-width: 0;
}

.guest-profile-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.guest-profile-actions-bar {
  flex-wrap: wrap;
}

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

.guest-profile-summary .summary-tile,
.guest-profile-folio-grid .summary-tile {
  min-width: 0;
}

.guest-profile-operational-grid,
.guest-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guest-profile-operations-card,
.guest-profile-grid section,
.guest-profile-activity {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

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

.guest-profile-facts div {
  display: grid;
  gap: 4px;
}

.guest-profile-facts dt {
  color: #64748b;
  font-size: 0.82rem;
}

.guest-profile-facts.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guest-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guest-profile-feed,
.guest-profile-posting-stack {
  display: grid;
  gap: 12px;
}

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

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

.guest-profile-form-full {
  grid-column: 1 / -1;
}

.guest-profile-form label {
  display: grid;
  gap: 8px;
}

.guest-profile-form span {
  color: #475569;
  font-size: 0.84rem;
}

.guest-profile-form input,
.guest-profile-form select,
.guest-profile-form textarea {
  width: 100%;
}

.guest-feed-card,
.guest-timeline-card,
.guest-active-reservation-card,
.guest-stay-row {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: #fff;
}

.guest-feed-card {
  display: grid;
  gap: 8px;
}

.guest-feed-card p,
.guest-feed-card span,
.guest-timeline-card p,
.guest-timeline-card span,
.guest-stay-row span {
  color: #64748b;
  font-size: 0.84rem;
  margin: 0;
}

.guest-feed-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.guest-profile-folio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guest-timeline-card {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
}

.guest-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: #94a3b8;
}

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

@media (max-width: 1100px) {
  .guest-profiles-kpis,
  .guest-profile-summary,
  .guest-profile-operational-grid,
  .guest-profile-grid,
  .guest-profile-facts.compact,
  .guest-stay-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-profiles-layout {
    grid-template-columns: 1fr;
  }

  .guest-profile-list {
    position: static;
  }
}

@media (max-width: 720px) {
  .guest-profiles-header,
  .guest-profile-list-head,
  .guest-profile-toolbar-meta,
  .guest-profile-item-head,
  .guest-profile-card-head,
  .guest-profile-actions-bar,
  .guest-profile-section-head,
  .guest-feed-card-head,
  .guest-active-reservation-head {
    flex-direction: column;
    align-items: stretch;
  }

  .guest-profiles-kpis,
  .guest-profile-summary,
  .guest-profile-operational-grid,
  .guest-profile-grid,
  .guest-profile-facts,
  .guest-profile-facts.compact,
  .guest-profile-folio-grid,
  .guest-profile-form-split,
  .guest-stay-row {
    grid-template-columns: 1fr;
  }
}
