:root {
  --urmi-primary: #0f2d5c;
  --urmi-primary-hover: #183c72;
  --urmi-secondary: #14b8a6;
  --urmi-accent: #f59e0b;
  --urmi-bg: #f4f7fb;
  --urmi-ink: #1d2939;
}

.room-picker-legend strong {
  color: #475467;
  font-size: .68rem;
  font-weight: 750;
}

body {
  min-height: 100vh;
  background: var(--urmi-bg);
  color: var(--urmi-ink);
  font-size: 1rem;
}

.app-navbar {
  background: #101b33;
}

.brand-mark {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: .01em;
}

.app-sidebar {
  min-height: calc(100vh - 60px);
  background: #101b33;
  border-right: 1px solid #24324b;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  border-radius: .65rem;
  color: #cbd5e1;
  font-weight: 600;
  padding: .8rem .9rem;
  text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #243653;
  color: #fff;
}

.app-sidebar hr {
  border-color: #34445e;
  opacity: 1;
}

.page-content {
  padding: 1.5rem;
}

.page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 750;
  margin-bottom: .2rem;
}

.expense-save-success {
  align-items: center;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 999px;
  color: #067647;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 700;
  gap: .35rem;
  line-height: 1.2;
  padding: .42rem .7rem;
}

.expense-save-success > span {
  align-items: center;
  background: #d1fadf;
  border-radius: 50%;
  display: inline-flex;
  height: 1rem;
  justify-content: center;
  width: 1rem;
}

.metric-card,
.content-card {
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(16, 24, 40, .04);
}

.metric-card {
  height: 100%;
  padding: 1.15rem;
}

.metric-label {
  color: #667085;
  font-size: .9rem;
  font-weight: 600;
}

.metric-value {
  color: var(--urmi-primary);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 750;
  margin-top: .4rem;
}

.occupancy-status {
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  padding: .42rem .65rem;
}

.occupancy-status-high {
  background: #dcfae6;
  color: #067647;
}

.occupancy-status-medium {
  background: #fef0c7;
  color: #93370d;
}

.occupancy-status-low {
  background: #fee4e2;
  color: #b42318;
}

.dark-mode .occupancy-status-high {
  background: #143b2b;
  color: #75e0a7;
}

.dark-mode .occupancy-status-medium {
  background: #422b13;
  color: #fec84b;
}

.dark-mode .occupancy-status-low {
  background: #3c1b1b;
  color: #fda29b;
}

.content-card {
  padding: 1.25rem;
}

.btn {
  border-radius: .65rem;
  font-weight: 650;
  min-height: 44px;
  padding: .6rem 1rem;
}

.btn-primary {
  --bs-btn-bg: var(--urmi-primary);
  --bs-btn-border-color: var(--urmi-primary);
  --bs-btn-hover-bg: var(--urmi-primary-hover);
  --bs-btn-hover-border-color: var(--urmi-primary-hover);
}

.btn-success {
  --bs-btn-bg: var(--urmi-primary);
  --bs-btn-border-color: var(--urmi-primary);
  --bs-btn-hover-bg: var(--urmi-primary-hover);
  --bs-btn-hover-border-color: var(--urmi-primary-hover);
}

.btn-outline-primary {
  --bs-btn-color: var(--urmi-primary);
  --bs-btn-border-color: var(--urmi-primary);
  --bs-btn-hover-bg: var(--urmi-primary);
  --bs-btn-hover-border-color: var(--urmi-primary);
  --bs-btn-active-bg: var(--urmi-primary);
  --bs-btn-active-border-color: var(--urmi-primary);
}

.form-control,
.form-select {
  min-height: 46px;
  border-radius: .6rem;
}

.form-label {
  font-weight: 650;
}

.table > :not(caption) > * > * {
  padding: .85rem .75rem;
  vertical-align: middle;
}

.status-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem .65rem;
  text-transform: capitalize;
}

.status-available,
.status-active {
  background: #dcfae6;
  color: #067647;
}

.status-occupied {
  background: #fee4e2;
  color: #b42318;
}

.status-maintenance,
.status-disabled {
  background: #eaecf0;
  color: #475467;
}

.login-shell {
  align-items: center;
  background: linear-gradient(140deg, #0f4c81 0%, #126c86 62%, #14b8a6 100%);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-card {
  background: #fff;
  border-radius: 1.2rem;
  max-width: 440px;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  width: 100%;
}

body.dark-mode {
  --urmi-bg: #101828;
  --urmi-ink: #eaecf0;
}

.dark-mode .app-sidebar {
background: #101b33;
border-color: #24324b;
}

.dark-mode .metric-card,
.dark-mode .content-card,
.dark-mode .login-card {
background: #1d2939;
border-color: #344054;
color: #eaecf0;
}

.dark-mode .sidebar-link,
.dark-mode .metric-label,
.dark-mode .text-muted {
  color: #cbd5e1 !important;
}

.dark-mode .table {
  --bs-table-color: #eaecf0;
  --bs-table-bg: #1d2939;
  --bs-table-border-color: #344054;
}

.dashboard-page {
  margin: 0 auto;
  max-width: 1540px;
}

.dashboard-welcome {
  align-items: center;
  background: linear-gradient(115deg, #fff 0%, #f2f7fc 100%);
  border: 1px solid #e5edf5;
  border-radius: 1.15rem;
  box-shadow: 0 8px 26px rgba(15, 76, 129, .06);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.dashboard-eyebrow,
.dashboard-section-kicker {
  color: #0f4c81;
  display: block;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .13em;
  margin-bottom: .35rem;
}

.dashboard-welcome .page-title {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -.045em;
  margin: 0;
}

.dashboard-subtitle {
  color: #667085;
  font-size: .9rem;
  margin: .35rem 0 0;
}

.dashboard-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
}

.dashboard-date-switch {
  align-items: center;
  display: flex;
  gap: .4rem;
  margin: 0;
}

.dashboard-date-switch input[type="date"] {
  width: auto;
}

.dashboard-date {
  align-items: center;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: .7rem;
  color: #475467;
  display: inline-flex;
  font-size: .8rem;
  font-weight: 650;
  gap: .45rem;
  min-height: 44px;
  padding: .55rem .75rem;
  white-space: nowrap;
}

.dashboard-booking-button {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
  justify-content: center;
}

.dashboard-section-heading,
.dashboard-panel-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: .75rem;
}

.dashboard-section-heading {
  margin: 0 0 .85rem;
}

.dashboard-section-heading h2,
.dashboard-panel-heading h2 {
  color: #1d2939;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -.02em;
  margin: 0;
}

.dashboard-section-kicker {
  color: #667085;
  font-size: .57rem;
  margin-bottom: .16rem;
}

.dashboard-section-hint {
  color: #667085;
  font-size: .74rem;
}

.overall-cash-card {
  background: linear-gradient(135deg, #fffaeb 0%, #fff 70%);
}

.overall-cash-card .dashboard-finance-value {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.overall-summary-line {
  background: #f8fafc;
  border: 1px dashed #d0d5dd;
  border-radius: .75rem;
  color: #475467;
  font-size: .86rem;
  margin-top: .85rem;
  padding: .6rem .9rem;
}

.dashboard-day-heading {
  border-top: 1px solid #e4e7ec;
  flex-wrap: wrap;
  padding-top: 1.25rem;
}

.dark-mode .overall-cash-card {
  background: linear-gradient(135deg, #3a2a0b 0%, #1d2939 70%);
}

.dark-mode .overall-summary-line {
  background: #1d2939;
  border-color: #344054;
  color: #cbd5e1;
}

.dark-mode .dashboard-day-heading {
  border-top-color: #344054;
}

.dashboard-arrival-card,
.dashboard-collection-card,
.dashboard-finance-card,
.dashboard-panel {
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  box-shadow: 0 5px 18px rgba(16, 24, 40, .045);
}

.dashboard-arrival-card {
  background: #fff;
  height: 100%;
  min-height: 156px;
  padding: 1rem 1.1rem;
  position: relative;
}

.dashboard-card-icon,
.dashboard-finance-icon,
.dashboard-collection-icon {
  align-items: center;
  border-radius: .7rem;
  display: inline-flex;
  font-size: .66rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  letter-spacing: .04em;
  width: 2rem;
}

.dashboard-arrivals .dashboard-card-icon {
  background: #eaf3fb;
  color: #0f4c81;
}

.dashboard-departures .dashboard-card-icon {
  background: #fff4e5;
  color: #b54708;
}

.dashboard-arrival-label {
  color: #475467;
  font-size: .78rem;
  font-weight: 700;
  margin-top: .75rem;
}

.dashboard-arrival-count {
  color: #1d2939;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.05;
  margin-top: .15rem;
}

.dashboard-card-caption {
  color: #667085;
  font-size: .69rem;
  line-height: 1.4;
  margin-top: .35rem;
}

.dashboard-collection-card {
  background: linear-gradient(125deg, #0f4c81 0%, #17638e 100%);
  color: #fff;
  padding: 1.15rem 1.3rem;
}

.dashboard-collection-top,
.dashboard-finance-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
}

.dashboard-collection-label {
  color: rgba(255, 255, 255, .78);
  display: block;
  font-size: .76rem;
  font-weight: 650;
}

.dashboard-collection-total {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.25;
  margin-top: .16rem;
}

.dashboard-collection-icon {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 1.05rem;
  height: 2.5rem;
  width: 2.5rem;
}

.dashboard-collection-details {
  border-top: 1px solid rgba(255, 255, 255, .2);
  display: grid;
  gap: .8rem;
  grid-template-columns: 1fr 1fr;
  margin-top: .7rem;
  padding-top: .65rem;
}

.dashboard-collection-details > div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.dashboard-collection-details span,
.dashboard-collection-caption {
  color: rgba(255, 255, 255, .75);
  font-size: .68rem;
}

.dashboard-collection-details strong {
  font-size: .92rem;
}

.dashboard-pending {
  color: #ffda8a;
}

.dashboard-paid {
  color: #a6f4c5;
}

.dashboard-collection-caption {
  margin-top: .45rem;
}

.dashboard-finance-card {
  background: #fff;
  border-top: 3px solid #0f4c81;
  height: 100%;
  min-height: 142px;
  padding: .95rem 1rem;
}

.finance-income {
  border-top-color: #0f4c81;
}

.finance-expenses {
  border-top-color: #d92d20;
}

.finance-profit {
  border-top-color: #12a875;
}

.finance-balance {
  border-top-color: #f59e0b;
}

.dashboard-finance-label {
  color: #667085;
  font-size: .74rem;
  font-weight: 700;
}

.dashboard-finance-icon {
  background: #eaf3fb;
  color: #0f4c81;
  height: 1.85rem;
  width: 1.85rem;
}

.finance-expenses .dashboard-finance-icon {
  background: #fef3f2;
  color: #b42318;
}

.finance-profit .dashboard-finance-icon {
  background: #ecfdf3;
  color: #067647;
}

.finance-balance .dashboard-finance-icon {
  background: #fffaeb;
  color: #b54708;
}

.dashboard-finance-value {
  color: #1d2939;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.035em;
  margin-top: .55rem;
  overflow-wrap: anywhere;
}

.finance-expenses .dashboard-finance-value {
  color: #b42318;
}

.finance-profit .dashboard-finance-value {
  color: #067647;
}

.dashboard-negative {
  color: #b42318 !important;
}

.dashboard-panel {
  background: #fff;
  padding: 1.15rem;
}

.dashboard-panel-heading {
  margin-bottom: .85rem;
}

.occupancy-status {
  padding: .35rem .6rem;
}

.occupancy-status-high {
  background: #dcfae6;
  color: #067647;
}

.occupancy-status-medium {
  background: #fef0c7;
  color: #93370d;
}

.occupancy-status-low {
  background: #eaf3fb;
  color: #175cd3;
}

.dashboard-occupancy-summary {
  align-items: center;
  display: flex;
  gap: .8rem;
  margin: .4rem 0 .65rem;
}

.dashboard-occupancy-rate {
  font-size: 2.35rem;
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: 1;
}

.dashboard-occupancy-rate > span {
  font-size: 1.2rem;
  margin-left: .05rem;
}

.occupancy-rate-high {
  color: #067647;
}

.occupancy-rate-medium {
  color: #b54708;
}

.occupancy-rate-low {
  color: #175cd3;
}

.dashboard-occupancy-copy {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.dashboard-occupancy-copy strong {
  color: #344054;
  font-size: .8rem;
}

.dashboard-occupancy-copy > span {
  color: #667085;
  font-size: .68rem;
}

.dashboard-occupancy-progress {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  display: block;
  height: 11px;
  overflow: hidden;
  width: 100%;
}

.dashboard-occupancy-progress::-webkit-progress-bar {
  background: #eaecf0;
  border-radius: 999px;
}

.dashboard-occupancy-progress::-webkit-progress-value {
  background: #175cd3;
  border-radius: 999px;
  transition: width .25s ease;
}

.dashboard-occupancy-progress::-moz-progress-bar {
  background: #175cd3;
  border-radius: 999px;
}

.dashboard-occupancy-progress.occupancy-progress-high::-webkit-progress-value,
.dashboard-occupancy-progress.occupancy-progress-high::-moz-progress-bar {
  background: #12a875;
}

.dashboard-occupancy-progress.occupancy-progress-medium::-webkit-progress-value,
.dashboard-occupancy-progress.occupancy-progress-medium::-moz-progress-bar {
  background: #f79009;
}

.dashboard-occupancy-progress.occupancy-progress-low::-webkit-progress-value,
.dashboard-occupancy-progress.occupancy-progress-low::-moz-progress-bar {
  background: #d92d20;
}

.dashboard-room-stats {
  border-bottom: 1px solid #eaecf0;
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: .8rem;
  padding-bottom: .75rem;
}

.dashboard-room-stats > div {
  align-items: center;
  display: grid;
  gap: .22rem .4rem;
  grid-template-columns: 8px 1fr;
}

.dashboard-room-stats > div > span:nth-child(2) {
  color: #667085;
  font-size: .66rem;
}

.dashboard-room-stats strong {
  color: #1d2939;
  font-size: .95rem;
  grid-column: 2;
  grid-row: 2;
}

.room-stat-dot {
  border-radius: 50%;
  grid-row: 1 / span 2;
  height: 8px;
  width: 8px;
}

.dot-available {
  background: #12a875;
}

.dot-occupied {
  background: #175cd3;
}

.dot-guests {
  background: #f79009;
}

.dashboard-panel-link {
  align-items: center;
  color: #0f4c81;
  display: flex;
  font-size: .75rem;
  font-weight: 700;
  justify-content: space-between;
  margin-top: .7rem;
  text-decoration: none;
}

.dashboard-panel-link:hover,
.dashboard-action-link:hover {
  color: #0b3b64;
}

.dashboard-alert-count,
.dashboard-small-badge {
  background: #f2f4f7;
  border-radius: 999px;
  color: #475467;
  font-size: .66rem;
  font-weight: 700;
  padding: .35rem .55rem;
  white-space: nowrap;
}

.dashboard-alert {
  margin-bottom: .45rem;
  padding: .65rem .7rem;
}

.dashboard-alert-arrow {
  font-size: .95rem;
}

.dashboard-alert-note {
  margin-top: .7rem;
}

.dashboard-clear-state {
  align-items: center;
  background: #f0fdf4;
  border: 1px solid #d1fadf;
  border-radius: .75rem;
  color: #067647;
  display: flex;
  gap: .7rem;
  justify-content: flex-start;
  min-height: auto;
  padding: .9rem;
  text-align: left;
}

.dashboard-clear-icon {
  align-items: center;
  background: #d1fadf;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 2rem;
  font-size: 1rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
}

.dashboard-clear-state > div {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.dashboard-clear-state > div strong {
  font-size: .8rem;
}

.dashboard-clear-state > div span {
  font-size: .7rem;
}

.recent-transaction {
  padding: .78rem 0;
}

.transaction-indicator {
  flex-basis: 2.2rem;
  height: 2.2rem;
}

.transaction-copy strong {
  color: #344054;
  font-size: .78rem;
}

.transaction-copy > span {
  font-size: .67rem;
  margin-top: .13rem;
}

.transaction-amount {
  font-size: .75rem;
}

.dashboard-month-mark {
  align-items: center;
  background: #eaf3fb;
  border-radius: .65rem;
  color: #0f4c81;
  display: inline-flex;
  font-size: 1rem;
  height: 2.1rem;
  justify-content: center;
  width: 2.1rem;
}

.dashboard-month-stats {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-month-stats > div {
  background: #f8fafc;
  border: 1px solid #eef1f5;
  border-radius: .7rem;
  display: flex;
  flex-direction: column;
  gap: .22rem;
  min-width: 0;
  padding: .65rem .6rem;
}

.dashboard-month-stats span {
  color: #667085;
  font-size: .66rem;
}

.dashboard-month-stats strong {
  color: #1d2939;
  font-size: clamp(.72rem, 1.2vw, .9rem);
  overflow-wrap: anywhere;
}

.dashboard-month-stats .month-expenses {
  color: #b42318;
}

.dashboard-month-stats .month-profit {
  color: #067647;
}

.dashboard-quick-panel {
  padding-bottom: .75rem;
}

.dashboard-quick-panel .dashboard-panel-heading {
  margin-bottom: .35rem;
}

.dashboard-quick-actions {
  display: flex;
  flex-direction: column;
}

.dashboard-action-link {
  align-items: center;
  border-bottom: 1px solid #eaecf0;
  color: #344054;
  display: flex;
  font-size: .74rem;
  font-weight: 650;
  gap: .55rem;
  min-height: 42px;
  text-decoration: none;
}

.dashboard-action-link:last-child {
  border-bottom: 0;
}

.action-link-icon {
  align-items: center;
  background: #f2f4f7;
  border-radius: .45rem;
  color: #475467;
  display: inline-flex;
  flex: 0 0 1.7rem;
  height: 1.7rem;
  justify-content: center;
}

.action-link-arrow {
  color: #98a2b3;
  margin-left: auto;
}

.dark-mode .dashboard-welcome,
.dark-mode .dashboard-arrival-card,
.dark-mode .dashboard-finance-card,
.dark-mode .dashboard-panel {
  background: #1d2939;
  border-color: #344054;
  color: #eaecf0;
}

.dark-mode .dashboard-welcome {
  background: linear-gradient(115deg, #1d2939 0%, #202c3b 100%);
}

.dark-mode .dashboard-welcome .page-title,
.dark-mode .dashboard-section-heading h2,
.dark-mode .dashboard-panel-heading h2,
.dark-mode .dashboard-arrival-count,
.dark-mode .dashboard-finance-value,
.dark-mode .dashboard-room-stats strong,
.dark-mode .dashboard-month-stats strong,
.dark-mode .transaction-copy strong {
  color: #eaecf0;
}

.dark-mode .dashboard-subtitle,
.dark-mode .dashboard-section-hint,
.dark-mode .dashboard-card-caption,
.dark-mode .dashboard-finance-label,
.dark-mode .dashboard-occupancy-copy > span,
.dark-mode .dashboard-room-stats > div > span:nth-child(2),
.dark-mode .dashboard-month-stats span {
  color: #cbd5e1;
}

.dark-mode .dashboard-date,
.dark-mode .dashboard-month-stats > div {
  background: #202c3b;
  border-color: #344054;
  color: #eaecf0;
}

.dark-mode .dashboard-collection-card {
  background: linear-gradient(125deg, #123b60 0%, #174e6e 100%);
  border-color: #275b7d;
}

.dark-mode .dashboard-occupancy-copy strong {
  color: #eaecf0;
}

.dark-mode .dashboard-room-stats,
.dark-mode .dashboard-action-link {
  border-color: #344054;
}

.dark-mode .dashboard-alert-count,
.dark-mode .dashboard-small-badge,
.dark-mode .action-link-icon {
  background: #344054;
  color: #eaecf0;
}

.dark-mode .dashboard-panel-link,
.dark-mode .dashboard-panel-link:hover,
.dark-mode .dashboard-action-link,
.dark-mode .dashboard-action-link:hover {
  color: #84caff;
}

.dark-mode .dashboard-clear-state {
  background: #143b2b;
  border-color: #245c41;
  color: #75e0a7;
}

.dark-mode .dashboard-clear-icon {
  background: #245c41;
}

.recent-transaction-list,
.dashboard-alert-list {
  display: flex;
  flex-direction: column;
}

.recent-transaction {
  align-items: center;
  border-bottom: 1px solid #eaecf0;
  display: flex;
  gap: .75rem;
  min-width: 0;
  padding: .7rem 0;
}

.recent-transaction:first-child {
  padding-top: 0;
}

.recent-transaction:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.transaction-indicator {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 2rem;
  font-size: 1.1rem;
  font-weight: 750;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.transaction-checkin {
  background: #ecfdf3;
  color: #067647;
}

.transaction-checkout {
  background: #eff8ff;
  color: #175cd3;
}

.transaction-income {
  background: #ecfdf3;
  color: #067647;
}

.transaction-expense {
  background: #fef3f2;
  color: #b42318;
}

.transaction-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.transaction-copy strong {
  font-size: .84rem;
}

.transaction-copy > span {
  color: #667085;
  font-size: .72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction-amount {
  font-size: .8rem;
  white-space: nowrap;
}

.dashboard-alert {
  align-items: center;
  border: 1px solid;
  border-radius: .7rem;
  display: flex;
  font-size: .82rem;
  font-weight: 650;
  gap: .65rem;
  margin-bottom: .55rem;
  padding: .7rem .75rem;
  text-decoration: none;
}

.dashboard-alert:last-child {
  margin-bottom: 0;
}

.dashboard-alert-critical {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}

.dashboard-alert-warning {
  background: #fffaeb;
  border-color: #fedf89;
  color: #93370d;
}

.dashboard-alert .alert-indicator {
  background: currentColor;
  border-radius: 50%;
  flex: 0 0 8px;
  height: 8px;
}

.dashboard-alert > span:nth-child(2) {
  flex: 1;
}

.dashboard-alert-note {
  color: #667085;
  font-size: .68rem;
  line-height: 1.45;
  margin: .9rem 0 0;
}

.dashboard-empty-state,
.dashboard-clear-state {
  align-items: center;
  color: #667085;
  display: flex;
  font-size: .82rem;
  justify-content: center;
  min-height: 100px;
  text-align: center;
}

.dashboard-clear-state {
  background: #ecfdf3;
  border-radius: .75rem;
  color: #067647;
  flex-direction: column;
  gap: .15rem;
  padding: 1rem;
}

.dashboard-clear-state > span:first-child {
  font-size: 1.35rem;
  font-weight: 800;
}

.dashboard-clear-state > span:last-child {
  font-size: .75rem;
}

.dark-mode .transaction-copy > span,
.dark-mode .dashboard-alert-note {
  color: #cbd5e1;
}

.dark-mode .recent-transaction {
  border-color: #344054;
}

.dark-mode .dashboard-alert-critical {
  background: #3c1b1b;
  border-color: #7a271a;
  color: #fda29b;
}

.dark-mode .dashboard-alert-warning {
  background: #422b13;
  border-color: #854a0e;
  color: #fec84b;
}

.dark-mode .dashboard-clear-state {
  background: #143b2b;
  color: #75e0a7;
}

.dashboard-clear-state {
  align-items: center;
  flex-direction: row;
  gap: .7rem;
  justify-content: flex-start;
  min-height: auto;
  padding: .9rem;
  text-align: left;
}

.dashboard-clear-state > span:first-child {
  align-items: center;
  background: #d1fadf;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 2rem;
  height: 2rem;
  justify-content: center;
}

.dashboard-clear-state > div {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.dashboard-clear-state > div strong {
  font-size: .8rem;
}

.dashboard-clear-state > div span {
  font-size: .7rem;
}

.dark-mode .dashboard-clear-state > span:first-child {
  background: #245c41;
}

@media (max-width: 767.98px) {
  .dashboard-welcome {
    align-items: stretch;
    flex-direction: column;
    padding: 1.1rem;
  }

  .dashboard-header-actions {
    justify-content: space-between;
  }

  .dashboard-section-hint {
    display: none;
  }

  .dashboard-arrival-card {
    min-height: 148px;
    padding: .85rem;
  }

  .dashboard-collection-card {
    padding: 1rem;
  }

  .dashboard-finance-card {
    min-height: 135px;
    padding: .8rem;
  }

  .dashboard-finance-value {
    font-size: clamp(.95rem, 3.8vw, 1.3rem);
  }

  .dashboard-panel {
    padding: 1rem;
  }

  .dashboard-room-stats {
    gap: .35rem;
  }

  .dashboard-room-stats > div {
    gap: .2rem .3rem;
  }

  .dashboard-room-stats > div > span:nth-child(2) {
    font-size: .61rem;
  }

  .page-content {
    padding: 1rem;
  }
}

.booking-page {
  max-width: 1680px;
  margin: 0 auto;
}

.booking-page-header {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.booking-eyebrow,
.booking-step,
.selected-room-label {
  color: #667085;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .12em;
}

.booking-eyebrow {
  color: var(--urmi-primary);
  margin-bottom: .35rem;
}

.booking-eyebrow span {
  color: #98a2b3;
  padding: 0 .25rem;
}

.booking-page-header .page-title {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -.035em;
}

.booking-cancel-link {
  color: #667085;
  font-size: .9rem;
  font-weight: 650;
  margin-bottom: .25rem;
  text-decoration: none;
}

.booking-cancel-link:hover {
  color: var(--urmi-primary);
}

.booking-workspace {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.4fr);
}

.quick-booking-page {
  max-width: 1540px;
}

.quick-booking-header {
  align-items: center;
}

.quick-booking-workspace {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
}

.quick-room-picker,
.quick-booking-details {
  position: sticky;
  top: 1rem;
}

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

.quick-booking-room-grid .booking-room-option {
  min-height: 104px;
  padding: .8rem;
}

.quick-booking-room-grid .room-option-number {
  font-size: 1.35rem;
}

.quick-booking-room-grid .room-option-name {
  font-size: .82rem;
}

.room-option-status {
  text-transform: capitalize;
}

.quick-booking-speed {
  align-items: center;
  background: #eaf3fb;
  border-radius: 999px;
  color: #0f2d5c;
  display: inline-flex;
  font-size: .67rem;
  font-weight: 750;
  gap: .35rem;
  padding: .38rem .6rem;
  white-space: nowrap;
}

.quick-booking-speed > span {
  color: #12a875;
  font-size: .55rem;
}

.quick-selected-room {
  align-items: center;
  background: #f3f6fb;
  border: 1px solid #dce5f1;
  border-radius: .8rem;
  display: flex;
  gap: .7rem;
  margin-bottom: 1.15rem;
  min-height: 68px;
  padding: .7rem .8rem;
}

.quick-selected-room-icon {
  align-items: center;
  background: #e1eaf6;
  border-radius: .65rem;
  color: #0f2d5c;
  display: inline-flex;
  flex: 0 0 40px;
  font-size: 1.2rem;
  height: 40px;
  justify-content: center;
}

.quick-selected-room > span:last-child {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}

.quick-selected-room small {
  color: #667085;
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.quick-selected-room strong {
  color: #1d2939;
  font-size: .88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-booking-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-booking-fields .booking-field > label {
  font-size: .78rem;
}

.quick-rate-input {
  min-height: 52px;
}

.quick-rate-input .form-control {
  font-size: 1rem;
  min-height: 48px;
}

.quick-date-fields {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-date-fields .form-control {
  font-size: .85rem;
  min-height: 48px;
}

.quick-stay-summary {
  background: #f8fafc;
  border: 1px solid #e4eaf1;
  border-radius: .8rem;
  margin-top: 1.15rem;
  padding: .85rem .95rem;
}

.quick-summary-row,
.quick-summary-total {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: .7rem;
}

.quick-summary-row {
  color: #667085;
  font-size: .78rem;
}

.quick-summary-row strong {
  color: #344054;
}

.quick-summary-total {
  border-top: 1px solid #e4eaf1;
  margin-top: .65rem;
  padding-top: .65rem;
}

.quick-summary-total span {
  color: #344054;
  font-size: .8rem;
  font-weight: 700;
}

.quick-summary-total strong {
  color: #0f2d5c;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.quick-booking-note {
  color: #667085;
  font-size: .68rem;
  line-height: 1.45;
  margin: .7rem 0 0;
}

.quick-booking-actions {
  border-top: 1px solid #eaecf0;
  display: grid;
  gap: .65rem;
  grid-template-columns: minmax(90px, .65fr) minmax(0, 1.35fr);
  margin-top: 1rem;
  padding-top: .9rem;
}

.quick-booking-actions .btn {
  min-height: 50px;
}

.quick-booking-actions .booking-submit {
  justify-content: space-between;
}

.quick-room-picker .room-picker-scroll {
  max-height: min(60vh, 650px);
}

.dark-mode .quick-booking-speed,
.dark-mode .quick-selected-room,
.dark-mode .quick-stay-summary {
  background: #202c3b;
  border-color: #344054;
}

.dark-mode .quick-selected-room-icon {
  background: #344054;
  color: #b2ddff;
}

.dark-mode .quick-selected-room strong,
.dark-mode .quick-summary-row strong,
.dark-mode .quick-summary-total span {
  color: #eaecf0;
}

.dark-mode .quick-selected-room small,
.dark-mode .quick-summary-row,
.dark-mode .quick-booking-note {
  color: #cbd5e1;
}

.dark-mode .quick-summary-total {
  border-color: #344054;
}

.dark-mode .quick-summary-total strong {
  color: #b2ddff;
}

.dark-mode .quick-booking-actions {
  border-color: #344054;
}

.booking-workspace .content-card {
  min-width: 0;
  padding: 1.2rem;
}

.room-picker-card {
  position: sticky;
  top: 1rem;
}

.booking-card-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.booking-card-heading h2 {
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -.02em;
  margin: .15rem 0 0;
}

.room-availability-count {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 999px;
  color: #067647;
  font-size: .75rem;
  padding: .35rem .65rem;
  white-space: nowrap;
}

.room-availability-count strong {
  font-size: .85rem;
}

.room-search {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: .7rem;
  color: #667085;
  display: flex;
  gap: .55rem;
  min-height: 44px;
  padding: 0 .75rem;
}

.room-search > span {
  font-size: 1.35rem;
  line-height: 1;
}

.room-search input {
  background: transparent;
  border: 0;
  color: var(--urmi-ink);
  flex: 1;
  min-width: 0;
  outline: 0;
}

.room-search input::placeholder {
  color: #98a2b3;
}

.room-search kbd {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: .3rem;
  color: #667085;
  font: inherit;
  font-size: .7rem;
  padding: .08rem .35rem;
}

.room-filter-list {
  display: flex;
  gap: .35rem;
  margin: .8rem 0;
  overflow-x: auto;
  padding-bottom: .1rem;
}

.room-filter {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #667085;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .75rem;
  font-weight: 650;
  gap: .35rem;
  min-height: 34px;
  padding: .35rem .6rem;
  transition: background .15s ease, color .15s ease;
}

.room-filter:hover {
  background: #f2f4f7;
  color: var(--urmi-ink);
}

.room-filter.is-active {
  background: #eaf3fb;
  border-color: #cfe2f3;
  color: var(--urmi-primary);
}

.room-filter > span {
  background: rgba(16, 24, 40, .07);
  border-radius: 999px;
  font-size: .68rem;
  min-width: 1.2rem;
  padding: .08rem .25rem;
  text-align: center;
}

.room-picker-scroll {
  max-height: clamp(280px, calc(100vh - 340px), 580px);
  min-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .15rem .35rem .35rem .15rem;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.booking-room-grid {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-room-option {
  appearance: none;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: .7rem;
  color: var(--urmi-ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 91px;
  padding: .65rem .7rem;
  text-align: left;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.booking-room-option.available:hover {
  border-color: #75e0a7;
  box-shadow: 0 3px 12px rgba(18, 183, 106, .1);
  transform: translateY(-1px);
}

.booking-room-option.available {
  background: #f6fef9;
  border-color: #b7ebcd;
}

.booking-room-option.occupied {
  background: #fff8f7;
  border-color: #fecdca;
  color: #7a271a;
  cursor: not-allowed;
  opacity: .76;
}

.booking-room-option.maintenance {
  background: #f9fafb;
  color: #667085;
  cursor: not-allowed;
  opacity: .78;
}

.booking-room-option.is-selected {
  background: #eff8ff;
  border: 2px solid var(--urmi-primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, .1);
  padding: calc(.65rem - 1px) calc(.7rem - 1px);
}

.booking-room-option:focus-visible,
.room-filter:focus-visible,
.guest-count-control button:focus-visible,
.booking-submit:focus-visible {
  outline: 3px solid rgba(15, 76, 129, .35);
  outline-offset: 2px;
}

.room-option-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.room-option-number {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.room-option-indicator {
  background: #17b26a;
  border: 2px solid #d1fadf;
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.occupied .room-option-indicator {
  background: #f04438;
  border-color: #fee4e2;
}

.maintenance .room-option-indicator {
  background: #98a2b3;
  border-color: #eaecf0;
}

.is-selected .room-option-indicator {
  background: var(--urmi-primary);
  border: 0;
  box-shadow: inset 0 0 0 2px #fff;
  height: 12px;
  width: 12px;
}

.room-option-name {
  color: #475467;
  font-size: .78rem;
  margin-top: .2rem;
}

.room-option-rate {
  color: #067647;
  font-size: .71rem;
  font-weight: 650;
  margin-top: .4rem;
}

.occupied .room-option-rate,
.maintenance .room-option-rate {
  color: #667085;
  text-transform: capitalize;
}

.room-empty-state {
  align-items: center;
  color: #667085;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  justify-content: center;
  min-height: 190px;
  text-align: center;
}

.room-empty-state[hidden],
.room-picker-card [data-room-option][hidden],
.booking-room-grid[hidden] {
  display: none;
}

.room-empty-state > span:first-child {
  font-size: 1.7rem;
}

.room-empty-state strong {
  color: var(--urmi-ink);
}

.room-empty-state > span:last-child {
  font-size: .85rem;
}

.room-picker-legend {
  border-top: 1px solid #eaecf0;
  color: #667085;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .8rem;
  padding-top: .8rem;
}

.room-picker-legend > span {
  align-items: center;
  display: inline-flex;
  font-size: .7rem;
  gap: .3rem;
}

.legend-dot {
  background: #17b26a;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.legend-dot.occupied {
  background: #f04438;
}

.legend-dot.maintenance {
  background: #98a2b3;
}

.booking-details-card {
  position: sticky;
  top: 1rem;
}

.booking-secure-note {
  color: #667085;
  font-size: .7rem;
  white-space: nowrap;
}

.booking-secure-note span {
  color: #17b26a;
  font-size: .55rem;
  margin-right: .25rem;
  vertical-align: 1px;
}

.selected-room-summary {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #d0d5dd;
  border-radius: .75rem;
  display: flex;
  gap: .7rem;
  margin-bottom: 1.15rem;
  min-height: 66px;
  padding: .7rem .85rem;
}

.selected-room-summary.has-room {
  background: #eff8ff;
  border: 1px solid #b2ddff;
}

.selected-room-icon {
  align-items: center;
  background: #eaecf0;
  border-radius: .6rem;
  color: #667085;
  display: inline-flex;
  flex: 0 0 36px;
  font-size: 1.2rem;
  height: 36px;
  justify-content: center;
}

.has-room .selected-room-icon {
  background: #d1e9ff;
  color: var(--urmi-primary);
}

.selected-room-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.selected-room-label {
  font-size: .57rem;
}

.selected-room-copy strong {
  font-size: .91rem;
  margin-top: .12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-room-rate {
  color: #475467;
  font-size: .72rem;
  text-align: right;
}

.room-selection-error {
  color: #b42318;
  font-size: .8rem;
  margin: -.8rem 0 1rem;
}

.room-selection-error[hidden] {
  display: none;
}

.booking-form-section + .booking-form-section {
  border-top: 1px solid #eaecf0;
  margin-top: 1.15rem;
  padding-top: 1.05rem;
}

.booking-section-label {
  align-items: center;
  color: #344054;
  display: flex;
  font-size: .82rem;
  font-weight: 750;
  gap: .5rem;
  margin-bottom: .8rem;
}

.booking-section-label > span {
  align-items: center;
  background: #f2f4f7;
  border-radius: .4rem;
  color: #667085;
  display: inline-flex;
  font-size: .66rem;
  height: 23px;
  justify-content: center;
  width: 25px;
}

.booking-section-label > small {
  color: #98a2b3;
  font-size: .68rem;
  font-weight: 500;
  margin-left: .1rem;
}

.booking-input-grid {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-field {
  min-width: 0;
}

.booking-field > label {
  color: #344054;
  display: block;
  font-size: .76rem;
  font-weight: 650;
  margin-bottom: .35rem;
}

.booking-field > label > span {
  color: #d92d20;
}

.booking-field > label > small {
  color: #98a2b3;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-left: .25rem;
}

.booking-field .form-control {
  font-size: .88rem;
  min-height: 43px;
}

.booking-field .form-control::placeholder {
  color: #98a2b3;
}

.booking-guest-profile {
  background: #f8fafc;
  border: 1px solid #e4eaf1;
  border-radius: .9rem;
  padding: .9rem;
}

.guest-profile-heading {
  align-items: center;
  border-bottom: 1px solid #e4eaf1;
  display: flex;
  gap: .65rem;
  margin-bottom: .85rem;
  padding-bottom: .75rem;
}

.guest-profile-avatar {
  align-items: center;
  background: #eaf3fb;
  border-radius: .65rem;
  color: #0f4c81;
  display: inline-flex;
  flex: 0 0 36px;
  font-size: 1.05rem;
  height: 36px;
  justify-content: center;
}

.guest-profile-heading-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .08rem;
}

.guest-profile-heading-copy strong {
  color: #344054;
  font-size: .78rem;
}

.guest-profile-heading-copy small {
  color: #667085;
  font-size: .66rem;
}

.guest-lead-badge {
  background: #eaf3fb;
  border-radius: 999px;
  color: #0f4c81;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .07em;
  padding: .35rem .5rem;
  white-space: nowrap;
}

.guest-profile-grid {
  gap: .75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.guest-profile-grid > .booking-field:nth-child(1),
.guest-profile-grid > .booking-field:nth-child(2) {
  grid-column: span 3;
}

.guest-address-field {
  grid-column: span 4;
}

.guest-count-field {
  grid-column: span 2;
  max-width: 180px;
  width: 50%;
}

.guest-input-wrap {
  position: relative;
}

.guest-input-wrap > span {
  align-items: center;
  color: #667085;
  display: inline-flex;
  font-size: .9rem;
  height: 100%;
  justify-content: center;
  left: .7rem;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 1rem;
}

.guest-input-wrap > .guest-mobile-icon {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.guest-input-wrap .form-control {
  background: #fff;
  border-color: #d0d5dd;
  padding-left: 2.25rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.guest-input-wrap .form-control:focus {
  border-color: #84adff;
  box-shadow: 0 0 0 .2rem rgba(15, 76, 129, .12);
}

.guest-count-field .booking-field > label,
.guest-count-field > label {
  white-space: nowrap;
}

.guest-count-hint {
  color: #667085;
  display: block;
  font-size: .61rem;
  margin-top: .35rem;
}

.booking-address-field {
  grid-column: 1;
}

.booking-full-width {
  grid-column: 1 / -1;
}

.additional-guests {
  margin-top: .75rem;
}

.additional-guests-toggle {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: .65rem;
  color: var(--urmi-primary);
  display: flex;
  gap: .65rem;
  min-height: 56px;
  padding: .55rem .7rem;
  text-align: left;
  transition: background .15s ease, border-color .15s ease;
  width: 100%;
}

.additional-guests-toggle:hover {
  background: #eff8ff;
  border-color: #b2ddff;
}

.additional-guests-toggle-icon {
  align-items: center;
  background: #eaf3fb;
  border-radius: .5rem;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 1rem;
  height: 30px;
  justify-content: center;
}

.additional-guests-toggle > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.additional-guests-toggle strong {
  font-size: .75rem;
}

.additional-guests-toggle small {
  color: #667085;
  font-size: .66rem;
  margin-top: .1rem;
}

.additional-guests-toggle-arrow {
  color: #667085;
  font-size: 1.1rem;
  transition: transform .15s ease;
}

.additional-guests-toggle[aria-expanded="true"] .additional-guests-toggle-arrow {
  transform: rotate(180deg);
}

.additional-guest-rows {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: .65rem;
}

.additional-guest-rows[hidden] {
  display: none;
}

.additional-guest-row {
  align-items: end;
  display: flex;
  gap: .5rem;
  min-width: 0;
}

.additional-guest-number {
  align-items: center;
  background: #f2f4f7;
  border-radius: .45rem;
  color: #667085;
  display: inline-flex;
  flex: 0 0 29px;
  font-size: .68rem;
  font-weight: 750;
  height: 29px;
  justify-content: center;
  margin-bottom: .45rem;
}

.additional-guest-row .booking-field {
  flex: 1;
}

.booking-price-summary {
  align-items: center;
  background: linear-gradient(115deg, #12395b 0%, #0f4c81 72%, #12627e 100%);
  border: 1px solid #174f78;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(15, 76, 129, .16);
  display: flex;
  gap: 1rem;
  margin-top: 1.1rem;
  min-height: 112px;
  overflow: hidden;
  padding: 1rem 1.15rem;
  position: relative;
}

.booking-price-summary::after {
  background: linear-gradient(180deg, #14b8a6, rgba(20, 184, 166, 0));
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 4px;
}

.booking-price-icon {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .8rem;
  color: #fff;
  display: inline-flex;
  flex: 0 0 50px;
  font-size: 1.25rem;
  font-weight: 800;
  height: 50px;
  justify-content: center;
}

.booking-price-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.booking-price-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.booking-price-heading > span:first-child {
  color: #d5e7f5;
  font-size: .63rem;
  font-weight: 750;
  letter-spacing: .1em;
}

.booking-price-live {
  align-items: center;
  background: rgba(20, 184, 166, .16);
  border: 1px solid rgba(125, 232, 216, .28);
  border-radius: 999px;
  color: #a4f1e5;
  display: inline-flex;
  font-size: .55rem;
  font-weight: 750;
  gap: .35rem;
  letter-spacing: .06em;
  padding: .2rem .48rem;
}

.booking-price-live i {
  background: #72e0ce;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.booking-price-copy strong {
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  letter-spacing: -.04em;
  line-height: 1.2;
  margin-top: .25rem;
}

.booking-price-copy small {
  color: #d2e0eb;
  font-size: .72rem;
  margin-top: .2rem;
}

.booking-price-aside {
  align-items: flex-end;
  border-left: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  padding-left: 1.1rem;
}

.booking-price-aside > span {
  color: #b7d0e2;
  font-size: .55rem;
  font-weight: 750;
  letter-spacing: .1em;
}

.booking-price-aside strong {
  color: #fff;
  font-size: .9rem;
  margin-top: .25rem;
}

.booking-price-aside small {
  color: #d2e0eb;
  font-size: .65rem;
  margin-top: .1rem;
  text-align: right;
}

.advance-payment {
  border: 1px solid #eaecf0;
  border-radius: .75rem;
  margin-top: .7rem;
  padding: .75rem .85rem;
}

.advance-payment-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.advance-payment-heading > div {
  display: flex;
  flex-direction: column;
}

.advance-payment-heading strong,
.advance-payment-amount > label {
  color: #344054;
  font-size: .78rem;
  font-weight: 700;
}

.advance-payment-heading small,
.advance-payment-amount > small {
  color: #667085;
  font-size: .68rem;
  margin-top: .15rem;
}

.advance-toggle {
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  position: relative;
}

.advance-toggle input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.advance-toggle > span:first-of-type {
  background: #d0d5dd;
  border-radius: 999px;
  height: 24px;
  position: relative;
  transition: background .15s ease;
  width: 42px;
}

.advance-toggle > span:first-of-type::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 18px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform .15s ease;
  width: 18px;
}

.advance-toggle input:checked + span:first-of-type {
  background: var(--urmi-secondary);
}

.advance-toggle input:checked + span:first-of-type::after {
  transform: translateX(18px);
}

.advance-toggle input:focus-visible + span:first-of-type {
  outline: 3px solid rgba(15, 76, 129, .3);
  outline-offset: 2px;
}

.advance-payment-amount {
  margin-top: .75rem;
}

.advance-payment-amount[hidden] {
  display: none;
}

.advance-payment-amount > label {
  display: block;
  margin-bottom: .35rem;
}

.advance-payment-amount .rate-input-wrap > span:first-child {
  left: .75rem;
}

.advance-payment-amount .rate-input-wrap .form-control {
  padding-right: .75rem;
}

.advance-payment-amount > small {
  display: block;
  margin-top: .4rem;
}

.dark-mode .additional-guests-toggle,
.dark-mode .advance-payment {
  background: #1d2939;
  border-color: #475467;
}

.dark-mode .additional-guests-toggle strong,
.dark-mode .advance-payment-heading strong,
.dark-mode .advance-payment-amount > label {
  color: #eaecf0;
}

.dark-mode .additional-guests-toggle small,
.dark-mode .advance-payment-heading small,
.dark-mode .advance-payment-amount > small {
  color: #cbd5e1;
}

.dark-mode .additional-guests-toggle-icon {
  background: #28303b;
  border-color: #475467;
  color: #b2ddff;
}

.dark-mode .booking-price-summary {
  background: linear-gradient(115deg, #10283f 0%, #12395b 72%, #12465a 100%);
  border-color: #245778;
}

.dark-mode .booking-price-icon {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}

.dark-mode .booking-price-heading > span:first-child,
.dark-mode .booking-price-copy small,
.dark-mode .booking-price-aside small {
  color: #cbd5e1;
}

.dark-mode .booking-price-aside {
  border-color: rgba(255, 255, 255, .2);
}

.dark-mode .booking-price-aside strong,
.dark-mode .booking-price-copy strong {
  color: #fff;
}

.dark-mode .booking-price-aside > span {
  color: #b7d0e2;
}

.dark-mode .additional-guest-number {
  background: #344054;
  color: #eaecf0;
}

.guest-count-control {
  align-items: center;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: .6rem;
  display: flex;
  min-height: 43px;
  overflow: hidden;
}

.guest-count-control:focus-within {
  border-color: #84adff;
  box-shadow: 0 0 0 .2rem rgba(15, 76, 129, .12);
}

.guest-count-control button {
  align-self: stretch;
  background: #f8fafc;
  border: 0;
  color: #344054;
  font-size: 1.1rem;
  min-width: 40px;
}

.guest-count-control button:hover {
  background: #eaecf0;
}

.guest-count-control .form-control {
  appearance: textfield;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 40px;
  text-align: center;
}

.guest-count-control .form-control::-webkit-inner-spin-button,
.guest-count-control .form-control::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.booking-stay-grid {
  align-items: end;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.booking-rate-field {
  align-self: stretch;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: .8rem;
  grid-column: span 2;
  padding: .8rem;
}

.booking-rate-field > label {
  font-size: .8rem;
  margin-bottom: .55rem;
}

.booking-stay-grid > .booking-field:not(.booking-rate-field) {
  padding-bottom: .05rem;
}

.booking-stay-grid > .booking-field:not(.booking-rate-field) > label {
  color: #475467;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.booking-stay-grid > .booking-field:not(.booking-rate-field) .form-control {
  background: #f8fafc;
  border-color: #e4e7ec;
  font-size: .84rem;
  font-weight: 600;
  min-height: 48px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.booking-stay-grid > .booking-field:not(.booking-rate-field) .form-control:focus {
  background: #fff;
  border-color: #84adff;
  box-shadow: 0 0 0 .2rem rgba(15, 76, 129, .1);
}

.rate-choice-group {
  background: #eaecf0;
  border: 1px solid #e4e7ec;
  border-radius: .65rem;
  display: inline-flex;
  gap: .2rem;
  margin-bottom: .6rem;
  padding: .22rem;
}

.rate-choice {
  cursor: pointer;
  margin: 0 !important;
}

.rate-choice input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.rate-choice span {
  border-radius: .48rem;
  color: #667085;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 650;
  min-height: 30px;
  padding: .4rem .65rem;
}

.rate-choice input:checked + span {
  background: #fff;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .12);
  color: var(--urmi-primary);
}

.rate-choice input:focus-visible + span {
  outline: 2px solid var(--urmi-primary);
  outline-offset: 2px;
}

.rate-choice input:disabled + span {
  cursor: not-allowed;
  opacity: .48;
}

.rate-input-wrap {
  align-items: center;
  display: flex;
  gap: .5rem;
  position: relative;
}

.rate-input-wrap > span:first-child {
  color: #667085;
  font-size: .9rem;
  font-weight: 750;
  left: .8rem;
  pointer-events: none;
  position: absolute;
}

.rate-input-wrap .form-control {
  background: #fff;
  border-color: #d0d5dd;
  font-size: .95rem;
  font-weight: 650;
  min-height: 47px;
  padding-left: 1.8rem;
  padding-right: 5.2rem;
}

.rate-input-wrap .form-control:disabled {
  background: #f2f4f7;
  color: #344054;
  opacity: 1;
}

.rate-unit {
  color: #98a2b3;
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .05em;
  pointer-events: none;
  position: absolute;
  right: .75rem;
}

.booking-form-footer {
  align-items: center;
  border-top: 1px solid #eaecf0;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  margin-top: 1.15rem;
  padding-top: 1rem;
}

.booking-form-footer > p {
  color: #667085;
  font-size: .7rem;
  margin: 0;
}

.booking-form-footer > p > span {
  color: #17b26a;
  font-size: 1rem;
  font-weight: 700;
  margin-right: .2rem;
}

.booking-form-actions {
  display: flex;
  flex: 0 0 auto;
  gap: .5rem;
}

.booking-form-actions .btn {
  min-height: 42px;
}

.booking-submit {
  align-items: center;
  display: inline-flex;
  gap: 1rem;
  justify-content: center;
}

.booking-submit > span:last-child {
  font-size: 1.15rem;
  line-height: 1;
}

.dark-mode .booking-room-option {
  background: #1d2939;
  border-color: #475467;
  color: #eaecf0;
}

.dark-mode .booking-room-option.available {
  background: #102a24;
  border-color: #05603a;
}

.dark-mode .booking-room-option.occupied {
  background: #341a1a;
  border-color: #7a271a;
  color: #fecdca;
}

.dark-mode .booking-room-option.maintenance {
  background: #28303b;
  color: #cbd5e1;
}

.dark-mode .booking-room-option.is-selected {
  background: #10283f;
  border-color: #53b1fd;
}

.dark-mode .booking-guest-profile {
  background: #101828;
  border-color: #475467;
}

.dark-mode .guest-profile-heading {
  border-color: #344054;
}

.dark-mode .guest-profile-heading-copy strong,
.dark-mode .guest-profile-grid .booking-field > label {
  color: #eaecf0;
}

.dark-mode .guest-profile-heading-copy small,
.dark-mode .guest-count-hint {
  color: #cbd5e1;
}

.dark-mode .guest-profile-avatar,
.dark-mode .guest-lead-badge {
  background: #10283f;
  color: #b2ddff;
}

.dark-mode .guest-input-wrap .form-control {
  background: #1d2939;
  border-color: #475467;
  color: #eaecf0;
}

.dark-mode .guest-input-wrap > span {
  color: #cbd5e1;
}

.dark-mode .room-search,
.dark-mode .guest-count-control,
.dark-mode .rate-choice-group {
  background: #101828;
  border-color: #475467;
}

.dark-mode .booking-stay-grid > .booking-field:not(.booking-rate-field) > label {
  color: #cbd5e1;
}

.dark-mode .booking-stay-grid > .booking-field:not(.booking-rate-field) .form-control,
.dark-mode .booking-stay-grid > .booking-field:not(.booking-rate-field) .form-control:focus {
  background: #101828;
  border-color: #475467;
  color: #eaecf0;
}

.dark-mode .room-search input,
.dark-mode .booking-field > label,
.dark-mode .booking-section-label,
.dark-mode .room-empty-state strong {
  color: #eaecf0;
}

.dark-mode .room-option-name,
.dark-mode .room-option-rate,
.dark-mode .selected-room-rate,
.dark-mode .booking-form-footer > p,
.dark-mode .room-picker-legend strong {
  color: #cbd5e1;
}

.dark-mode .selected-room-summary,
.dark-mode .rate-input-wrap .form-control:disabled {
  background: #28303b;
  border-color: #475467;
}

.dark-mode .selected-room-summary.has-room {
  background: #10283f;
  border-color: #175cd3;
}

.dark-mode .selected-room-icon {
  background: #344054;
  color: #eaecf0;
}

.dark-mode .has-room .selected-room-icon {
  background: #1849a9;
  color: #eff8ff;
}

.dark-mode .rate-choice input:checked + span,
.dark-mode .room-search kbd {
  background: #344054;
  color: #eaecf0;
}

.dark-mode .booking-rate-field {
  background: #1d2939;
  border-color: #475467;
}

.dark-mode .rate-input-wrap .form-control,
.dark-mode .rate-input-wrap .form-control:disabled {
  background: #101828;
  border-color: #475467;
  color: #eaecf0;
}

.dark-mode .rate-unit {
  color: #cbd5e1;
}

.dark-mode .guest-count-control button {
  background: #28303b;
  color: #eaecf0;
}

.dark-mode .room-filter.is-active {
  background: #10283f;
  border-color: #175cd3;
  color: #b2ddff;
}

@media (min-width: 1600px) {
  .booking-workspace {
    grid-template-columns: minmax(390px, .82fr) minmax(0, 1.4fr);
  }

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

@media (max-width: 1199.98px) {
  .booking-workspace {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .quick-booking-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  }

  .room-picker-card,
  .booking-details-card {
    top: .75rem;
  }

  .booking-workspace .content-card {
    padding: 1rem;
  }

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

  .booking-rate-field {
    grid-column: 1 / -1;
  }

  .booking-price-summary {
    min-height: 104px;
  }

  .booking-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-form-actions {
    display: grid;
    grid-template-columns: auto 1fr;
  }
}

@media (max-width: 767.98px) {
  .booking-page-header {
    align-items: flex-start;
  }

  .booking-page-header .booking-cancel-link {
    font-size: .8rem;
    margin-top: .55rem;
    white-space: nowrap;
  }

  .booking-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-booking-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .room-picker-card,
  .booking-details-card {
    position: static;
  }

  .room-picker-scroll {
    max-height: 290px;
    min-height: 190px;
  }

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

  .quick-room-picker,
  .quick-booking-details {
    position: static;
  }

  .quick-room-picker .room-picker-scroll {
    max-height: 360px;
  }

  .booking-secure-note {
    display: none;
  }
}

@media (max-width: 479.98px) {
  .booking-workspace .content-card {
    padding: .9rem;
  }

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

  .quick-date-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .room-filter {
    font-size: .7rem;
    padding: .3rem .5rem;
  }

  .booking-input-grid {
    gap: .7rem;
  }

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

  .guest-profile-grid > .booking-field:nth-child(1),
  .guest-profile-grid > .booking-field:nth-child(2),
  .guest-address-field {
    grid-column: 1 / -1;
  }

  .guest-count-field {
    grid-column: 1 / -1;
    width: 50%;
  }

  .guest-profile-heading {
    gap: .5rem;
  }

  .guest-lead-badge {
    font-size: .5rem;
    padding: .3rem .4rem;
  }

  .booking-price-summary {
    align-items: flex-start;
    gap: .7rem;
    padding: .85rem;
  }

  .booking-price-icon {
    flex-basis: 40px;
    font-size: 1rem;
    height: 40px;
  }

  .booking-price-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .booking-price-aside {
    display: none;
  }

  .booking-price-copy strong {
    font-size: 1.35rem;
  }

  .booking-form-footer > p {
    font-size: .66rem;
  }
}

.daily-entry-list {
  display: grid;
  gap: .65rem;
}

.daily-date-picker-trigger {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  min-width: 190px;
  text-align: left;
}

.daily-date-control {
  position: relative;
}

.daily-date-picker {
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: .8rem;
  box-shadow: 0 14px 36px rgb(16 35 65 / 18%);
  padding: .8rem;
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  width: 292px;
  max-width: calc(100vw - 2rem);
  z-index: 20;
}

.daily-calendar-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: .65rem;
}

.daily-calendar-header strong {
  color: #172b4d;
  font-size: .95rem;
}

.daily-calendar-grid {
  display: grid;
  gap: .2rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
}

.daily-calendar-weekdays {
  color: #667085;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.daily-calendar-day {
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #26364b;
  height: 34px;
  justify-self: center;
  width: 34px;
}

.daily-calendar-day:hover:not(:disabled) {
  background: #eef2f8;
}

.daily-calendar-day.is-selected {
  background: #0f2d5c;
  color: #fff;
  font-weight: 700;
}

.daily-calendar-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1px #0f2d5c;
  color: #0f2d5c;
  font-weight: 700;
}

.daily-calendar-day:disabled {
  color: #c2c9d2;
  cursor: not-allowed;
}

.daily-calendar-spacer {
  height: 34px;
}

.daily-calendar-footer {
  border-top: 1px solid #e6ebf2;
  display: flex;
  justify-content: center;
  margin-top: .6rem;
  padding-top: .65rem;
}

.dark-mode .daily-date-picker {
  background: #17263b;
  border-color: #30425a;
}

.dark-mode .daily-calendar-header strong,
.dark-mode .daily-calendar-day {
  color: #e6edf7;
}

.dark-mode .daily-calendar-day:hover:not(:disabled) {
  background: #263a55;
}

.dark-mode .daily-calendar-day.is-selected {
  background: #5576b5;
}

.dark-mode .daily-calendar-day.is-today:not(.is-selected) {
  color: #b7c8ec;
}

.daily-entry-row {
  align-items: end;
  background: #f8fafc;
  border: 1px solid #e6ebf2;
  border-radius: .75rem;
  display: grid;
  gap: .55rem;
  min-width: 0;
  padding: .7rem;
}

.daily-room-row {
  grid-template-columns: minmax(100px, 1.15fr) minmax(90px, .9fr) minmax(100px, 1fr) 34px;
}

.daily-expense-row {
  grid-template-columns: minmax(0, 1.6fr) minmax(90px, 1fr) 38px;
}

.daily-entry-row > div {
  min-width: 0;
}

.daily-entry-row .form-label {
  color: #536176;
  margin-bottom: .3rem;
  min-height: 2.2em;
  white-space: normal;
}

.daily-row-remove {
  align-items: center;
  display: inline-flex;
  font-size: 1.15rem;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

[data-inline-row]:not(.is-editing) .edit-only,
[data-inline-row].is-editing .view-only {
  display: none !important;
}

[data-inline-row].is-editing > td {
  background: #f5f8ff;
}

.inline-actions {
  align-items: center;
  display: inline-flex;
  gap: .25rem;
  justify-content: flex-end;
  margin: 0;
  white-space: nowrap;
}

.inline-actions form {
  margin: 0;
}

.inline-field {
  max-width: 260px;
  min-width: 0;
}

.inline-description {
  max-width: none;
}

.inline-amount {
  max-width: 110px;
}

.inline-amount-col {
  width: 120px;
}

.inline-actions-col {
  width: 140px;
}

.dark-mode [data-inline-row].is-editing > td {
  background: #1a2b4a;
}

.daily-profit-summary,
.daily-summary-popup {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.daily-profit-summary > div,
.daily-summary-popup > div {
  background: #f8fafc;
  border: 1px solid #e6ebf2;
  border-radius: .7rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .85rem;
}

.daily-profit-summary span,
.daily-summary-popup span {
  color: #667085;
  font-size: .82rem;
}

.daily-profit-summary strong,
.daily-summary-popup strong {
  color: #172b4d;
  font-size: 1.05rem;
}

.daily-profit-total,
.daily-summary-closing {
  border-color: #b7d6c3 !important;
}

@media (max-width: 1199.98px) {
  .daily-room-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 34px;
  }

  .daily-room-row .daily-entry-room {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .daily-record-page header form {
    align-items: end;
    width: 100%;
  }

  .daily-record-page header form > div {
    flex: 1;
  }

  .daily-expense-row {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .daily-profit-summary,
  .daily-summary-popup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.inline-save-status {
  animation: inline-status-in .25s ease-out;
  font-weight: 650;
}

@keyframes inline-status-in {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: none; }
}

/* Full ledger report */
.ledger-flow {
  align-items: stretch;
  display: grid;
  gap: .6rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
}

.ledger-flow-item {
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 1rem;
  border-top: 4px solid #98a2b3;
  box-shadow: 0 4px 16px rgba(16, 24, 40, .04);
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
  padding: .9rem 1rem;
}

.ledger-flow-item span {
  color: #667085;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.ledger-flow-item strong {
  color: #101828;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.ledger-flow-item small {
  color: #667085;
  font-size: .76rem;
}

.ledger-flow-balance { border-top-color: var(--urmi-primary); }
.ledger-flow-in { border-top-color: #12b76a; }
.ledger-flow-out { border-top-color: #f04438; }
.ledger-flow-net { background: #ecfdf3; border-top-color: #067647; }
.ledger-flow-net strong { color: #067647; }
.ledger-flow-net.is-negative { background: #fef3f2; border-top-color: #b42318; }
.ledger-flow-net.is-negative strong { color: #b42318; }
.ledger-flow-closing { background: #eef4ff; }

.ledger-flow-op {
  align-self: center;
  color: #98a2b3;
  font-size: 1.4rem;
  font-weight: 700;
}

.ledger-table tfoot td {
  border-bottom: 0;
  color: #475467;
  font-weight: 600;
}

.ledger-table .ledger-total td {
  border-top: 2px solid #d0d5dd;
  color: #101828;
  font-size: 1.02rem;
  font-weight: 750;
}

.ledger-category-pill {
  background: #fef3f2;
  border-radius: 999px;
  color: #b42318;
  display: inline-block;
  font-size: .78rem;
  font-weight: 650;
  padding: .15rem .6rem;
  white-space: nowrap;
}

.ledger-statement-lines > div {
  border-bottom: 1px dashed #e4e7ec;
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
}

.ledger-statement-lines dt { font-weight: 500; }
.ledger-statement-lines dd { font-weight: 650; margin: 0; }

.ledger-statement-net {
  border-top: 1px solid #d0d5dd;
}

.ledger-statement-closing {
  border-bottom: 3px double #101828 !important;
  font-size: 1.1rem;
}

.ledger-statement-closing dt,
.ledger-statement-closing dd {
  font-weight: 750;
}

.cashbook-table tbody + tbody {
  border-top: 0;
}

.cashbook-day-row td {
  white-space: nowrap;
}

.cashbook-day.is-open .cashbook-day-row td {
  background: #f5f8ff;
  border-bottom-color: transparent;
}

.cashbook-day-toggle {
  align-items: center;
  background: none;
  border: 0;
  color: inherit;
  display: inline-flex;
  gap: .45rem;
  padding: 0;
}

.cashbook-day-toggle:hover strong,
.cashbook-day-toggle:focus-visible strong {
  color: var(--urmi-primary);
  text-decoration: underline;
}

.cashbook-caret {
  color: #667085;
  display: inline-block;
  font-size: .8rem;
  transition: transform .15s ease;
  width: 1rem;
}

.cashbook-day.is-open .cashbook-caret {
  transform: rotate(90deg);
}

.cashbook-detail > td {
  background: #f5f8ff;
  padding: .25rem 1rem 1rem;
}

.cashbook-detail-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cashbook-detail-title {
  color: #667085;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .4rem;
  text-transform: uppercase;
}

.cashbook-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cashbook-lines li,
.cashbook-lines-total {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .3rem 0;
}

.cashbook-lines li {
  border-bottom: 1px dashed #dfe5ec;
  font-size: .9rem;
}

.cashbook-lines li > span:last-child,
.cashbook-lines-total > span:last-child {
  font-weight: 650;
  white-space: nowrap;
}

.cashbook-lines-total {
  font-weight: 700;
  margin-top: .2rem;
}

.dark-mode .cashbook-day.is-open .cashbook-day-row td,
.dark-mode .cashbook-detail > td {
  background: #1a2b4a;
}

.dark-mode .cashbook-lines li {
  border-bottom-color: #344054;
}

@media (max-width: 767.98px) {
  .cashbook-detail-grid {
    grid-template-columns: 1fr;
  }
}

.dark-mode .ledger-flow-item {
  background: #1d2939;
  border-color: #344054;
}

.dark-mode .ledger-flow-item strong { color: #eaecf0; }
.dark-mode .ledger-flow-item span,
.dark-mode .ledger-flow-item small { color: #cbd5e1; }
.dark-mode .ledger-flow-net { background: #0f2e22; }
.dark-mode .ledger-flow-net strong { color: #6ce9a6; }
.dark-mode .ledger-flow-net.is-negative { background: #3b1414; }
.dark-mode .ledger-flow-net.is-negative strong { color: #fda29b; }
.dark-mode .ledger-flow-closing { background: #1a2b4a; }
.dark-mode .ledger-table .ledger-total td { color: #eaecf0; }
.dark-mode .ledger-statement-closing { border-bottom-color: #eaecf0 !important; }
.dark-mode .ledger-category-pill { background: #3b1414; color: #fda29b; }

@media (max-width: 1199.98px) {
  .ledger-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ledger-flow-op {
    display: none;
  }

  .ledger-flow-closing {
    grid-column: 1 / -1;
  }
}

/* Rooms board */
.rooms-page {
  margin: 0 auto;
  max-width: 1540px;
}

.room-type-0 { --room-accent: #2563eb; --room-soft: #eff4ff; }
.room-type-1 { --room-accent: #0d9488; --room-soft: #e6f7f5; }
.room-type-2 { --room-accent: #c2410c; --room-soft: #fff1e8; }
.room-type-3 { --room-accent: #7c3aed; --room-soft: #f3eeff; }
.room-type-4 { --room-accent: #be185d; --room-soft: #fdecf4; }
.room-type-5 { --room-accent: #4d7c0f; --room-soft: #f0f7e6; }

.rooms-hero {
  align-items: flex-end;
  background: radial-gradient(circle at 100% 0%, #e0ecff 0%, transparent 45%), linear-gradient(115deg, #fff 0%, #f5f8fc 100%);
  border: 1px solid #e5edf5;
  border-radius: 1.15rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: clamp(1.1rem, 3vw, 1.75rem);
}

.rooms-add-toggle {
  white-space: nowrap;
}

.rooms-add-panel {
  background: #fff;
  border: 1px dashed #b9c8de;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}

.rooms-add-form {
  align-items: end;
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
}

.rooms-add-actions {
  display: flex;
  gap: .5rem;
}

.rooms-stats {
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.rooms-stat {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
  padding: .9rem 1rem;
}

.rooms-stat span {
  color: #667085;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rooms-stat strong {
  color: #101828;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

.rooms-stat small {
  color: #667085;
  font-size: .76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rooms-toolbar {
  align-items: center;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding: .7rem .8rem;
}

.rooms-search {
  align-items: center;
  display: flex;
  flex: 1 1 220px;
  max-width: 340px;
  position: relative;
}

.rooms-search > span {
  color: #98a2b3;
  font-size: 1.1rem;
  left: .75rem;
  pointer-events: none;
  position: absolute;
}

.rooms-search .form-control {
  border-radius: 999px;
  padding-left: 2.1rem;
}

.rooms-chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: .4rem;
}

.rooms-chip {
  align-items: center;
  background: #f2f4f7;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #344054;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 650;
  gap: .4rem;
  padding: .35rem .75rem;
}

.rooms-chip i {
  background: var(--room-accent, #98a2b3);
  border-radius: 50%;
  display: inline-block;
  height: .55rem;
  width: .55rem;
}

.rooms-chip span {
  color: #667085;
  font-weight: 600;
}

.rooms-chip:hover {
  border-color: #d0d5dd;
}

.rooms-chip.is-active {
  background: var(--room-soft, #e8eef8);
  border-color: var(--room-accent, #0f2d5c);
  color: var(--room-accent, #0f2d5c);
}

.rooms-count {
  margin-left: auto;
  white-space: nowrap;
}

.rooms-empty {
  background: #fff;
  border: 1px dashed #d0d5dd;
  border-radius: 1rem;
  color: #667085;
  padding: 2rem 1rem;
  text-align: center;
}

.rooms-floor {
  margin-bottom: 1.5rem;
}

.rooms-floor-heading {
  align-items: baseline;
  display: flex;
  gap: .6rem;
  margin-bottom: .7rem;
}

.rooms-floor-heading h2 {
  color: #1d2939;
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.rooms-floor-heading span {
  color: #667085;
  font-size: .8rem;
}

.rooms-floor-heading::after {
  align-self: center;
  border-top: 1px solid #e4e7ec;
  content: "";
  flex: 1;
}

.rooms-grid {
  align-items: start;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.rooms-cell {
  min-width: 0;
}

.room-tile {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .04);
  display: flex;
  flex-direction: column;
  gap: .45rem;
  height: 100%;
  overflow: hidden;
  padding: .85rem .9rem .75rem;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.room-tile::before {
  background: var(--room-accent, #98a2b3);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.room-tile:hover {
  border-color: var(--room-accent, #98a2b3);
  box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
  transform: translateY(-2px);
}

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

.room-tile-number {
  color: #101828;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}

.room-tile-type {
  align-self: flex-start;
  background: var(--room-soft, #f2f4f7);
  border-radius: 999px;
  color: var(--room-accent, #475467);
  font-size: .74rem;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  padding: .15rem .55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-tile-actions {
  align-items: center;
  border-top: 1px dashed #e4e7ec;
  display: flex;
  gap: .35rem;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .55rem;
}

.room-tile-actions form {
  margin: 0;
}

.room-tile-btn {
  background: transparent;
  border: 0;
  border-radius: .5rem;
  color: var(--urmi-primary);
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .5rem;
  text-decoration: none;
}

.room-tile-btn:hover {
  background: #eef2f8;
}

.room-tile-btn-danger {
  color: #b42318;
}

.room-tile-btn-danger:hover {
  background: #fef3f2;
}

.room-tile-saved {
  animation: room-tile-saved 2.6s ease-out;
}

.room-tile-saved-badge {
  background: #ecfdf3;
  border-radius: 999px;
  color: #067647;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .5rem;
}

@keyframes room-tile-saved {
  0%, 40% { box-shadow: 0 0 0 3px #a6f4c5; }
  100% { box-shadow: 0 4px 14px rgba(16, 24, 40, .04); }
}

.room-tile-edit {
  background: var(--room-soft, #f5f8ff);
  border-color: var(--room-accent, #c7d7f5);
  gap: 0;
}

.room-tile-edit:hover {
  transform: none;
}

.room-tile-edit-title {
  color: #475467;
  font-size: .82rem;
  margin-bottom: .45rem;
}

.room-tile-error {
  background: #fef3f2;
  border-radius: .5rem;
  color: #b42318;
  font-size: .78rem;
  margin-bottom: .5rem;
  padding: .35rem .5rem;
}

.room-tile-edit-actions {
  display: flex;
  gap: .4rem;
  margin-top: auto;
}

.room-tile-edit-actions .btn {
  flex: 1;
}

.dark-mode .rooms-hero {
  background: linear-gradient(115deg, #1d2939 0%, #17263b 100%);
  border-color: #344054;
}

.dark-mode .rooms-add-panel,
.dark-mode .rooms-stat,
.dark-mode .rooms-toolbar,
.dark-mode .rooms-empty,
.dark-mode .room-tile {
  background: #1d2939;
  border-color: #344054;
}

.dark-mode .rooms-stat strong,
.dark-mode .room-tile-number,
.dark-mode .rooms-floor-heading h2 {
  color: #f2f4f7;
}

.dark-mode .rooms-chip {
  color: #e4e7ec;
}

.dark-mode .rooms-chip {
  background: #273449;
}

.dark-mode .room-tile-edit {
  background: #1a2b4a;
}

.dark-mode .room-tile-edit-title {
  color: #cbd5e1;
}

.dark-mode .rooms-floor-heading::after,
.dark-mode .room-tile-actions {
  border-color: #344054;
}

@media (max-width: 991.98px) {
  .rooms-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .rooms-search {
    flex-basis: 100%;
    max-width: none;
  }

  .rooms-count {
    display: none;
  }

  .rooms-stat small {
    white-space: normal;
  }
}

@media (max-width: 575.98px) {
  .rooms-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .rooms-add-toggle {
    width: 100%;
  }

  .rooms-add-form {
    grid-template-columns: 1fr;
  }

  .rooms-add-actions .btn {
    flex: 1;
  }

  .rooms-stat {
    padding: .75rem .8rem;
  }

  .rooms-grid {
    gap: .55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-tile {
    padding: .75rem .7rem .6rem;
  }

  .room-tile-number {
    font-size: 1.35rem;
  }

  .room-tile:hover {
    transform: none;
  }

  .room-tile-btn {
    align-items: center;
    display: inline-flex;
    min-height: 40px;
    padding: .35rem .6rem;
  }

  .rooms-chip {
    min-height: 36px;
  }
}

/* ===== App shell and mobile responsiveness ===== */
html {
  scroll-padding-top: 72px;
}

.min-w-0 { min-width: 0; }
.narrow-card { max-width: 720px; }
.narrow-card-sm { max-width: 640px; }
.settings-logo-preview { max-height: 80px; max-width: 220px; }
.login-brand { color: #0f4c81; }

.app-navbar {
  padding-left: max(1rem, env(safe-area-inset-left)) !important;
  padding-right: max(1rem, env(safe-area-inset-right)) !important;
  z-index: 1030;
}

.app-menu-toggle {
  font-size: 1.15rem;
  line-height: 1;
  padding: .3rem .6rem;
}

.brand-mark {
  max-width: 50vw;
}

.app-sidebar {
  --bs-offcanvas-bg: #101b33;
  --bs-offcanvas-color: #cbd5e1;
  --bs-offcanvas-width: min(290px, 86vw);
  background-color: #101b33 !important;
}

.app-sidebar .offcanvas-header {
  border-bottom: 1px solid #24324b;
  padding-left: max(1rem, env(safe-area-inset-left));
}

.app-sidebar .offcanvas-body {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
}

@media (min-width: 992px) {
  .app-sidebar {
    align-self: flex-start;
    height: calc(100vh - 56px);
    overflow-y: auto;
    position: sticky;
    top: 56px;
  }
}

.page-content {
  min-width: 0;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.daily-room-row {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 38px;
}

.daily-row-remove {
  height: 38px;
  width: 38px;
}

.dashboard-date-switch {
  flex-wrap: wrap;
}

@media (max-width: 1199.98px) {
  .daily-room-row .daily-entry-room {
    grid-column: auto;
  }
}

@media (max-width: 991.98px) {
  .page-content {
    padding: 1.25rem max(1rem, env(safe-area-inset-right)) calc(1.25rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  }
}

@media (max-width: 767.98px) {
  .dashboard-day-heading .dashboard-date-switch {
    width: 100%;
  }

  .dashboard-date-switch input[type="date"] {
    flex: 1 1 140px;
  }
}

@media (max-width: 575.98px) {
  .page-content {
    padding-top: .9rem;
    padding-left: max(.75rem, env(safe-area-inset-left));
    padding-right: max(.75rem, env(safe-area-inset-right));
  }

  .content-card {
    border-radius: .85rem;
    padding: 1rem;
  }

  .metric-card {
    padding: .9rem;
  }

  .page-title {
    font-size: 1.45rem;
  }

  /* 16px inputs stop iOS Safari from zooming in when a field is focused. */
  .form-control,
  .form-select,
  .form-control-sm,
  .form-select-sm {
    font-size: 16px;
  }

  .table {
    font-size: .92rem;
  }

  .modal-dialog {
    margin: .75rem;
  }

  .dashboard-welcome .dashboard-header-actions,
  .dashboard-welcome .dashboard-header-actions .btn {
    width: 100%;
  }

  .dashboard-finance-card {
    min-height: 0;
  }

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

  .daily-profit-summary .daily-profit-total {
    grid-column: 1 / -1;
  }

  .dashboard-month-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-month-stats > div {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .dashboard-month-stats span {
    font-size: .8rem;
  }

  .dashboard-month-stats strong {
    font-size: .98rem;
  }

  .dashboard-panel-heading {
    flex-wrap: wrap;
  }

  .ledger-flow {
    gap: .5rem;
  }

  .ledger-flow-item {
    padding: .7rem .75rem;
  }

  .ledger-flow-item strong {
    font-size: 1.02rem;
  }

  .overall-summary-line {
    font-size: .8rem;
  }

  .daily-expense-row > div:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .daily-expense-row > div:nth-child(2) {
    grid-column: 1 / -1;
  }

  .daily-expense-row .daily-row-remove {
    align-self: end;
    grid-column: 2;
    grid-row: 1;
  }

  /* Data tables become labelled cards on phones. */
  .table-stack thead {
    display: none;
  }

  .table-stack,
  .table-stack > tbody,
  .table-stack > tfoot,
  .table-stack tr,
  .table-stack td {
    display: block;
    width: 100%;
  }

  .table-stack tr {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: .75rem;
    margin-bottom: .6rem;
    padding: .35rem .8rem;
  }

  .table-stack > :not(caption) > * > * {
    border-bottom-width: 0;
    box-shadow: none;
    padding: .35rem 0;
  }

  .table-stack td[data-label] {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    text-align: right !important;
  }

  .table-stack td[data-label]::before {
    color: #667085;
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: .78rem;
    font-weight: 650;
    max-width: 45%;
    padding-top: .12rem;
    text-align: left;
  }

  .table-stack td[data-label] > * {
    min-width: 0;
  }

  .table-stack .table-stack-title {
    border-bottom: 1px solid #eef1f5 !important;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .2rem;
    padding-bottom: .5rem;
  }

  .table-stack .table-stack-actions {
    border-top: 1px dashed #e6ebf2 !important;
    margin-top: .3rem;
    padding-top: .6rem !important;
    text-align: left !important;
  }

  .table-stack .table-stack-actions > div {
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
  }

  .table-stack [data-inline-row].is-editing {
    background: #f5f8ff;
    border-color: #c7d7f5;
  }

  .table-stack [data-inline-row].is-editing > td {
    background: transparent;
  }

  .table-stack .inline-field {
    flex: 1 1 auto;
    max-width: none;
  }

  .table-stack .inline-actions {
    justify-content: flex-start;
  }

  .dark-mode .table-stack [data-inline-row].is-editing {
    background: #1a2b4a;
  }

  .table-stack .table-stack-hide {
    display: none !important;
  }

  .table-stack .table-stack-empty {
    border-style: dashed;
  }

  .table-stack .table-stack-empty td {
    text-align: center;
  }

  .table-stack tfoot tr {
    background: #f2f6fb;
  }

  .table-stack .ledger-total td {
    border-top: 0;
    font-size: .95rem;
  }

  .table-stack .table-stack-full {
    padding: 0 !important;
  }

  .table-stack .cashbook-day {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: .75rem;
    margin-bottom: .6rem;
    overflow: hidden;
  }

  .table-stack .cashbook-day tr {
    border: 0;
    border-radius: 0;
    margin: 0;
  }

  .table-stack .cashbook-day.is-open .cashbook-day-row td,
  .table-stack .cashbook-day-row td {
    background: transparent;
  }

  .table-stack .cashbook-detail > td {
    border-top: 1px dashed #dfe5ec !important;
    padding: .6rem 0 .3rem !important;
  }

  .table-stack .cashbook-day-row td:not(.table-stack-title) {
    white-space: normal;
  }

  .dark-mode .table-stack tr,
  .dark-mode .table-stack .cashbook-day {
    background: #1d2939;
    border-color: #344054;
  }

  .dark-mode .table-stack tfoot tr {
    background: #202c3b;
  }

  .dark-mode .table-stack .cashbook-day tr {
    background: transparent;
  }
}

@media (max-width: 399.98px) {
  .daily-room-row {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .daily-room-row .daily-entry-room {
    grid-column: 1 / -1;
  }

  .daily-entry-row .form-label {
    min-height: 0;
  }

  .ledger-flow {
    grid-template-columns: 1fr;
  }

  [data-custom-range] {
    width: 100%;
  }

  .brand-mark {
    font-size: 1rem;
    max-width: 38vw;
  }
}
