:root {
  --bg: #FAF7F2;
  --card: #FFFFFF;
  --primary: #A46B1F;
  --primary-dark: #7D4E0D;
  --text: #2D2D2D;
  --muted: #7A7169;
  --border: #E7DFD5;
  --success: #22C55E;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  --shadow: 0 18px 45px rgba(45, 45, 45, 0.08);
  --soft-shadow: 0 10px 28px rgba(45, 45, 45, 0.06);
  --radius: 12px;
  --sidebar: 284px;
  --topbar: 78px;
}

.manager-summary {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.manager-summary-header {
  position: sticky;
  top: calc(var(--topbar) + 8px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(37, 31, 24, .08);
  backdrop-filter: blur(12px);
}

.manager-hotel {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.manager-hotel img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #F8F5F0;
  border: 1px solid var(--border);
}

.manager-hotel span,
.manager-refresh,
.manager-panel-title a,
.manager-empty {
  color: var(--muted);
}

.manager-hotel h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.manager-hotel p,
.manager-hotel span {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.manager-refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
}

.manager-refresh span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.manager-refresh svg {
  width: 15px;
  height: 15px;
}

.manager-refresh em {
  color: var(--danger);
  font-style: normal;
  font-weight: 800;
}

.manager-kpi-grid,
.manager-money-grid,
.manager-mini-grid {
  display: grid;
  gap: 12px;
}

.manager-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.manager-kpi,
.manager-panel,
.manager-money-grid > div,
.manager-mini-grid > div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.manager-kpi {
  min-height: 116px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.manager-kpi span,
.manager-money-grid span,
.manager-mini-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.manager-kpi strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.manager-kpi small {
  color: #7A4A12;
  font-weight: 800;
}

.manager-panel {
  padding: 16px;
}

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

.manager-panel-title h3 {
  margin: 0;
  font-size: 16px;
}

.manager-panel-title a {
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

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

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

.manager-money-grid > div,
.manager-mini-grid > div {
  box-shadow: none;
  padding: 13px;
}

.manager-money-grid strong,
.manager-mini-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.manager-list,
.manager-alert-list,
.manager-status-list {
  display: grid;
  gap: 10px;
}

.manager-list article,
.manager-alert-list a,
.manager-status-list details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FFFEFC;
}

.manager-list article {
  padding: 12px;
}

.manager-list strong,
.manager-list span,
.manager-list small {
  display: block;
}

.manager-list span,
.manager-list small {
  margin-top: 4px;
  color: var(--muted);
}

.manager-row-alert {
  border-color: rgba(220, 38, 38, .35) !important;
  background: #FFF7F7 !important;
}

.manager-alert-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
}

.manager-alert-list strong {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #B91C1C;
  background: rgba(239, 68, 68, .12);
}

.manager-status-list summary {
  min-height: 48px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.manager-status-list details > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 12px;
}

.manager-status-list details span,
.manager-status-list details em {
  padding: 6px 9px;
  border-radius: 999px;
  background: #F6F0E7;
  color: #5E554D;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 900px) {
  .manager-summary {
    max-width: 100%;
    gap: 14px;
  }

  .manager-summary-header {
    top: 10px;
  }

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

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

@media (max-width: 560px) {
  .manager-summary {
    margin: -12px -14px 0;
  }

  .manager-summary-header {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .manager-hotel h2 {
    font-size: 17px;
  }

  .manager-refresh span {
    display: none;
  }

  .manager-kpi-grid,
  .manager-money-grid,
  .manager-mini-grid {
    grid-template-columns: 1fr 1fr;
  }

  .manager-kpi {
    min-height: 104px;
    padding: 14px;
  }

  .manager-kpi strong {
    font-size: 28px;
  }

  .manager-panel {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

body.button-style-pill .btn {
  border-radius: 999px;
}

body.button-style-soft .btn {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(45,45,45,.08);
}

.mt-16 {
  margin-top: 16px !important;
}

.mt-18 {
  margin-top: 18px !important;
}

.btn-block {
  width: 100%;
}

.login-submit-btn {
  width: 100%;
  margin-top: 18px;
}

.spacer-18 {
  height: 18px;
}

/* Premium Reservations page */
.reservations-premium {
  display: grid;
  gap: 22px;
}

.reservations-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.reservations-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
  color: var(--text);
}

.reservations-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.reservations-new-btn {
  min-height: 52px;
  padding-inline: 22px;
  border-radius: 16px;
  box-shadow: 0 14px 26px rgba(164, 107, 31, .22);
}

.reservation-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.reservation-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff 0%, rgba(250, 247, 242, .72) 100%);
  box-shadow: 0 18px 42px rgba(45, 45, 45, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.reservation-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(45, 45, 45, .11);
}

.reservation-stat-card .stat-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
}

.reservation-stat-card .stat-icon svg {
  width: 27px;
  height: 27px;
}

.reservation-stat-card strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: var(--text);
}

.reservation-stat-card span {
  display: block;
  margin-top: 8px;
  font-weight: 800;
  color: var(--text);
}

.reservation-stat-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.reservation-stat-card.stat-gold .stat-icon { color: #A46B1F; background: rgba(164, 107, 31, .12); }
.reservation-stat-card.stat-green .stat-icon { color: #16A34A; background: rgba(34, 197, 94, .13); }
.reservation-stat-card.stat-blue .stat-icon { color: #2563EB; background: rgba(59, 130, 246, .12); }
.reservation-stat-card.stat-orange .stat-icon { color: #C26A00; background: rgba(245, 158, 11, .16); }
.reservation-stat-card.stat-red .stat-icon { color: #DC2626; background: rgba(239, 68, 68, .12); }
.reservation-stat-card.stat-purple .stat-icon { color: #7C3AED; background: rgba(139, 92, 246, .12); }

.reservation-filter-panel {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) 1.6fr;
  gap: 18px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(45, 45, 45, .06);
}

.reservation-search-field {
  position: relative;
}

.reservation-search-field label,
.reservation-filter-controls label > span,
.reservation-date-range .date-label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reservation-search-field svg {
  position: absolute;
  left: 17px;
  top: calc(50% + 14px);
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--muted);
}

.reservation-search-field input,
.reservation-filter-controls select,
.reservation-date-range input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.reservation-search-field input {
  padding: 0 16px 0 48px;
}

.reservation-filter-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr)) minmax(320px, 1.45fr) auto;
  gap: 12px;
  align-items: end;
}

.reservation-filter-controls label {
  min-width: 0;
}

.reservation-filter-controls select,
.reservation-date-range input {
  padding: 0 14px;
}

.reservation-search-field input:focus,
.reservation-filter-controls select:focus,
.reservation-date-range input:focus {
  outline: none;
  border-color: rgba(164, 107, 31, .62);
  box-shadow: 0 0 0 4px rgba(164, 107, 31, .10);
}

.reservation-date-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.reservation-date-range .date-label {
  grid-column: 1 / -1;
}

.reservation-date-range em {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  font-style: normal;
}

.reservation-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.reservation-filter-actions .btn {
  min-height: 48px;
  white-space: nowrap;
  border-radius: 14px;
}

.reservation-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.reservation-tabs {
  display: flex;
  gap: 24px;
  overflow-x: auto;
}

.reservation-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
  transition: color .25s ease;
}

.reservation-tabs a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  transition: background .25s ease;
}

.reservation-tabs a span {
  display: inline-flex;
  min-width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(164, 107, 31, .10);
  color: var(--primary);
  font-size: 12px;
}

.reservation-tabs a.active,
.reservation-tabs a:hover {
  color: var(--primary);
}

.reservation-tabs a.active::after {
  background: var(--primary);
}

.reservation-view-switch {
  display: inline-flex;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(45, 45, 45, .05);
}

.reservation-view-switch a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.reservation-view-switch a svg {
  width: 18px;
  height: 18px;
}

.reservation-view-switch a.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(164, 107, 31, .18);
}

.reservation-view-switch a:hover {
  transform: translateY(-1px);
}

.reservation-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

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

.reservation-main-panel {
  min-width: 0;
}

.reservation-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pms-reservation-card,
.reservation-table-card,
.reservation-side-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(45, 45, 45, .07);
}

.pms-reservation-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 20px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.pms-reservation-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--primary);
}

.pms-reservation-card.status-success::before { background: #22C55E; }
.pms-reservation-card.status-info::before { background: #3B82F6; }
.pms-reservation-card.status-danger::before { background: #EF4444; }
.pms-reservation-card.status-neutral::before { background: #8D847B; }

.pms-reservation-card:hover {
  transform: translateY(-5px);
  border-color: rgba(164, 107, 31, .45);
  box-shadow: 0 26px 54px rgba(45, 45, 45, .12);
}

.reservation-card-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.reservation-info-grid,
.reservation-money-grid {
  display: grid;
  gap: 10px;
}

.reservation-card-top > strong {
  color: var(--text);
  font-size: 15px;
}

.reservation-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: var(--primary);
  background: rgba(164, 107, 31, .12);
}

.reservation-status-pill.success { color: #12833C; background: rgba(34, 197, 94, .14); }
.reservation-status-pill.info { color: #1D4ED8; background: rgba(59, 130, 246, .13); }
.reservation-status-pill.danger { color: #B91C1C; background: rgba(239, 68, 68, .12); }
.reservation-status-pill.neutral { color: #5E554D; background: #F2EDE6; }

.reservation-guest-block span,
.reservation-info-grid span,
.reservation-stay-line span,
.reservation-money-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reservation-guest-block h3 {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.05;
}

.reservation-guest-block p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.reservation-guest-block p svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

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

.reservation-info-grid div,
.reservation-money-grid div {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #FFFCF8;
}

.reservation-info-grid strong,
.reservation-money-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 17px;
}

.reservation-stay-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, #FAF7F2 100%);
}

.reservation-stay-line > svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.reservation-stay-line strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
}

.reservation-night-chip {
  justify-self: end;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(164, 107, 31, .13);
  font-weight: 900;
  font-size: 12px;
}

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

.reservation-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.reservation-card-actions a,
.reservation-card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, color .25s ease, border-color .25s ease;
}

.reservation-card-actions a:hover,
.reservation-card-actions button:hover {
  transform: translateY(-2px);
  border-color: rgba(164, 107, 31, .45);
  color: var(--primary);
  box-shadow: 0 12px 22px rgba(45, 45, 45, .08);
}

.reservation-card-actions svg {
  width: 16px;
  height: 16px;
}

.reservation-table-card {
  overflow: hidden;
}

.reservation-table-card .table-wrap {
  border: 0;
  border-radius: 0;
}

.reservation-table-card table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.reservation-section-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 20px 0;
}

.reservation-section-title h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.reservation-section-title p {
  margin: 5px 0 16px;
  color: var(--muted);
}

.reservation-empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 320px;
  padding: 48px 24px;
  border: 1px dashed rgba(164, 107, 31, .35);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  text-align: center;
}

.reservation-empty-state > svg {
  width: 54px;
  height: 54px;
  color: var(--primary);
}

.reservation-empty-state h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
}

.reservation-empty-state p {
  margin: 0;
  color: var(--muted);
}

.reservation-pagination {
  margin-top: 18px;
  padding: 16px 0 0;
}

.reservation-sidebar-panel {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.reservation-side-card {
  padding: 18px;
}

.reservation-side-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.reservation-side-title h3 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
}

.reservation-side-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.reservation-side-title > svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.mini-calendar span,
.mini-calendar em,
.mini-calendar strong {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 10px;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.mini-calendar span {
  color: var(--muted);
}

.mini-calendar em {
  color: var(--text);
  background: #FAF7F2;
}

.mini-calendar strong {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 18px rgba(164, 107, 31, .22);
}

.reservation-activity-list {
  display: grid;
  gap: 14px;
}

.reservation-activity-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
}

.reservation-activity-item > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--primary);
  background: rgba(164, 107, 31, .11);
}

.reservation-activity-item svg {
  width: 19px;
  height: 19px;
}

.reservation-activity-item strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.reservation-activity-item p,
.reservation-activity-item small,
.reservation-activity-empty {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.reservation-activity-item small {
  display: block;
  font-size: 12px;
}

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

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

  .reservation-filter-panel,
  .reservation-filter-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .reservation-workspace {
    grid-template-columns: 1fr;
  }

  .reservation-sidebar-panel {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .reservations-hero,
  .reservation-tabs-row {
    flex-direction: column;
    align-items: stretch;
  }

  .reservation-stats-grid,
  .reservation-card-grid,
  .reservation-sidebar-panel {
    grid-template-columns: 1fr;
  }

  .reservation-stay-line,
  .reservation-money-grid,
  .reservation-info-grid {
    grid-template-columns: 1fr;
  }

  .reservation-stay-line > svg {
    transform: rotate(90deg);
  }

  .reservation-night-chip {
    justify-self: start;
  }
}

.badge.available { color: #12833C; background: rgba(34, 197, 94, 0.12); }
.badge.reserved { color: var(--primary); background: rgba(164, 107, 31, 0.12); }
.badge.occupied { color: #B91C1C; background: rgba(239, 68, 68, 0.12); }
.badge.cleaning { color: #9A5B00; background: rgba(245, 158, 11, 0.15); }
.badge.maintenance { color: #1D4ED8; background: rgba(59, 130, 246, 0.12); }

.inline-delete-form { margin: 0; }

.django-messages {
  position: fixed;
  z-index: 80;
  top: 104px;
  right: 28px;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.django-messages .alert {
  pointer-events: auto;
  box-shadow: 0 16px 38px rgba(45, 45, 45, 0.12);
}

.auto-dismiss-message {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

.auto-dismiss-message.is-fading {
  opacity: 0;
  transform: translateY(-8px);
}

.rooms-management-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

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

.room-inventory-head {
  align-items: center;
  margin-bottom: 0;
}

.room-inventory-head h3 {
  font-size: 18px;
}

.room-add-btn {
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 12px;
  box-shadow: 0 14px 26px rgba(164, 107, 31, 0.18);
}

.room-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid #E7DFD5;
  border-radius: 16px;
  background: #FCFAF7;
}

.room-search-wrap,
.room-filter-controls {
  min-width: 0;
}

.room-search-wrap .search {
  width: 100%;
  min-width: 0;
}

.room-search-wrap .control,
.room-filter-controls .select,
.room-filter-controls .btn {
  min-height: 40px;
  border-radius: 12px;
}

.room-filter-controls {
  display: grid;
  grid-template-columns: repeat(3, 136px) 104px;
  gap: 8px;
  align-items: center;
}

.room-filter-controls .select {
  font-size: 13px;
  padding-inline: 12px 32px;
}

.room-filter-controls .btn {
  padding-inline: 12px;
  font-size: 13px;
}

.room-types-card .card-title {
  align-items: flex-start;
}

.room-types-card .btn {
  white-space: nowrap;
}

.compact-table table {
  min-width: 0;
  table-layout: fixed;
}

.compact-table .btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.room-type-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.danger-outline {
  color: #B91C1C;
  border-color: rgba(239, 68, 68, 0.28);
}

.danger-outline:hover {
  color: #fff;
  background: #EF4444;
  border-color: #EF4444;
}

.room-types-card .table-wrap {
  overflow: visible;
}

.room-types-card th,
.room-types-card td {
  white-space: normal;
}

.room-types-card th:nth-child(1),
.room-types-card td:nth-child(1) {
  width: 34%;
}

.room-types-card th:nth-child(2),
.room-types-card td:nth-child(2) {
  width: 34%;
}

.room-types-card th:nth-child(3),
.room-types-card td:nth-child(3) {
  width: 32%;
}

.inherited-price input[readonly] {
  background: #FCFAF7;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .rooms-management-layout {
    grid-template-columns: 1fr;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(164, 107, 31, 0.06), transparent 32%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.09), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell {
  min-height: 100vh;
  padding-left: var(--sidebar);
  padding-top: var(--topbar);
  transition: padding-left 220ms ease;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  background: rgba(255, 255, 255, 0.86);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 22px;
  border-bottom: 1px solid var(--border);
}

.brand img { width: 42px; height: 42px; }
.brand strong { display: block; font-size: 14px; letter-spacing: 0.02em; }
.brand span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }

.nav-list { display: grid; gap: 5px; padding: 22px 0; }
.nav-spacer { flex: 1; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: #4D4741;
  font-size: 14px;
  font-weight: 600;
  transition: 180ms ease;
}

.nav-link svg { width: 18px; height: 18px; stroke-width: 2; }
.nav-link:hover { background: rgba(164, 107, 31, 0.08); color: var(--primary); }
.nav-link.active { background: rgba(164, 107, 31, 0.14); color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }

.logout-link { border: 1px solid var(--border); background: #fff; }

.topbar {
  position: fixed;
  inset: 0 0 auto var(--sidebar);
  z-index: 35;
  height: var(--topbar);
  border-bottom: 1px solid var(--border);
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  transition: left 220ms ease;
}

body.sidebar-collapsed .sidebar { transform: translateX(-100%); }
body.sidebar-collapsed .app-shell { padding-left: 0; }
body.sidebar-collapsed .topbar { left: 0; }

.topbar-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.menu-toggle { display: none; }
.topbar h1 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.breadcrumb { margin-top: 4px; color: var(--muted); font-size: 12px; }
.breadcrumb span { color: var(--primary); font-weight: 700; }

.topbar-actions { display: flex; align-items: center; gap: 12px; }
.clock { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }
.clock strong { display: block; color: var(--text); font-size: 13px; }

.active-shift-chip {
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 8px 12px;
  border: 1px solid rgba(164, 107, 31, .24);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(164, 107, 31, .12), rgba(255, 255, 255, .94));
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}

.active-shift-chip span {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.active-shift-chip strong {
  color: var(--text);
  font-size: 12px;
}

.active-shift-chip em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.icon-btn, .menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  display: inline-grid;
  place-items: center;
  transition: 180ms ease;
}

.icon-btn:hover, .menu-toggle:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.icon-btn svg, .menu-toggle svg { width: 18px; height: 18px; }

.notify { position: relative; }
.notify::after {
  content: "3";
  position: absolute;
  top: -5px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  border: 2px solid #fff;
}

.user-menu { display: flex; align-items: center; gap: 10px; padding-left: 4px; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #D5963A);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.user-menu strong { display: block; font-size: 13px; }
.user-menu span { display: block; color: var(--muted); font-size: 11px; }

.content { padding: 28px; }
.page-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.page-header h2 { margin: 0 0 7px; font-size: 26px; }
.page-header p { margin: 0; color: var(--muted); max-width: 760px; line-height: 1.6; overflow-wrap: break-word; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.card.pad { padding: 20px; }
.rooms-overview { padding: 14px; }
.rooms-overview .card-title { margin-bottom: 10px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title h3 { margin: 0; font-size: 16px; }
.card-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

.metric {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  min-height: 118px;
}
.metric-icon {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
}
.metric-icon svg { width: 22px; height: 22px; }
.metric strong { display: block; font-size: 30px; letter-spacing: -0.03em; }
.metric span { color: var(--muted); font-size: 13px; font-weight: 600; }
.metric small { display: block; color: var(--success); margin-top: 8px; font-weight: 700; }
.bg-success { background: var(--success); }
.bg-danger { background: var(--danger); }
.bg-warning { background: var(--warning); }
.bg-info { background: var(--info); }
.bg-primary { background: var(--primary); }
.bg-muted { background: #6B6258; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.toolbar.room-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.toolbar-left.room-search-wrap,
.toolbar-right.room-filter-controls {
  display: grid;
  flex-wrap: nowrap;
}

.toolbar-left.room-search-wrap {
  grid-template-columns: minmax(220px, 340px);
}

.toolbar-right.room-filter-controls {
  grid-template-columns: repeat(3, 138px) 98px;
  gap: 8px;
}

.room-filter-controls .select,
.room-filter-controls .btn {
  width: auto;
}

.room-filter-bar .room-add-btn {
  justify-self: end;
  white-space: nowrap;
}

.field { display: grid; gap: 7px; }
.field label { font-size: 12px; color: #514940; font-weight: 700; }
.required::after { content: " *"; color: var(--danger); }
.control, .select, .textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 0 13px;
  outline: none;
  transition: 180ms ease;
}
.textarea { min-height: 110px; padding-top: 12px; resize: vertical; }
.control:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(164, 107, 31, 0.12); }
.is-valid { border-color: var(--success); }
.is-invalid { border-color: var(--danger); }
.help { color: var(--muted); font-size: 12px; }
.error-text { color: var(--danger); font-size: 12px; font-weight: 700; }

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

.price-input {
  position: relative;
}

.price-input input {
  padding-right: 58px;
}

.price-input span {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.search {
  position: relative;
  min-width: 290px;
}
.search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.search input { padding-left: 42px; }

.btn {
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  transition: 180ms ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 18px rgba(164, 107, 31, 0.2); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: #fff; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); border-color: rgba(239, 68, 68, 0.2); }
.btn-success { background: rgba(34, 197, 94, 0.12); color: #12833C; border-color: rgba(34, 197, 94, 0.22); }

.table-wrap { overflow: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: #FCFAF7; color: #5E554D; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
td { font-size: 14px; }
.amount-success { color: var(--success); font-weight: 800; }
.amount-danger { color: var(--danger); font-weight: 800; }
tr:hover td { background: rgba(164, 107, 31, 0.035); }
tr:last-child td { border-bottom: 0; }

.actions { display: flex; gap: 8px; }
.action-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
}
.action-btn svg { width: 16px; height: 16px; }
.action-btn:hover { color: var(--primary); border-color: var(--primary); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.success { color: #12833C; background: rgba(34, 197, 94, 0.12); }
.badge.danger { color: #B91C1C; background: rgba(239, 68, 68, 0.12); }
.badge.warning { color: #9A5B00; background: rgba(245, 158, 11, 0.15); }
.badge.info { color: #1D4ED8; background: rgba(59, 130, 246, 0.12); }
.badge.primary { color: var(--primary); background: rgba(164, 107, 31, 0.12); }
.badge.neutral { color: #5E554D; background: #F2EDE6; }
.vip-badge { color: #9A5B00; background: rgba(245, 158, 11, 0.18); border: 1px solid rgba(245, 158, 11, 0.28); }
.check-row { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); min-height: 44px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; color: var(--muted); font-size: 13px; }
.pages { display: flex; gap: 6px; }
.page-btn {
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.room-map { overflow: hidden; max-width: max-content; }
.floor-row { display: grid; grid-template-columns: 84px max-content; border-top: 1px solid var(--border); }
.floor-row:first-child { border-top: 0; }
.floor-label { background: #FCFAF7; padding: 10px 12px; font-size: 13px; font-weight: 800; border-right: 1px solid var(--border); }
.room-grid { display: grid; grid-template-columns: repeat(4, 140px); gap: 18px; padding: 18px; }
.room-card {
  position: relative;
  width: 140px;
  min-height: 140px;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 16px 14px;
  display: grid;
  align-content: space-between;
  transition: 180ms ease;
  cursor: pointer;
  color: inherit;
  text-align: left;
  width: 100%;
}
.room-card:hover { transform: translateY(-2px); box-shadow: var(--soft-shadow); filter: saturate(1.04); }
.room-card:focus-visible { outline: 3px solid rgba(164, 107, 31, 0.24); outline-offset: 2px; }
.room-card h4 { margin: 0; font-size: 30px; line-height: 1; }
.room-card p { margin: 8px 0 0; color: rgba(45, 45, 45, 0.7); font-size: 14px; }
.room-card .status-dot { position: absolute; top: 18px; right: 18px; width: 10px; height: 10px; border-radius: 999px; }
.room-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 12px; }
.mini-tag { border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, 0.56); color: inherit; }
.room-action-hint {
  display: inline-flex;
  margin-top: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}
.room-action-hint::after {
  content: ">";
  margin-left: 6px;
  transition: transform 180ms ease;
}
.room-card:hover .room-action-hint::after { transform: translateX(3px); }
.room-card.available .status-dot { background: var(--success); }
.room-card.available { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.28); }
.room-card.occupied { background: rgba(239, 68, 68, 0.13); border-color: rgba(239, 68, 68, 0.42); }
.room-card.occupied .status-dot { background: var(--danger); }
.room-card.occupied .room-action-hint { color: #B91C1C; }
.room-card.cleaning { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.36); }
.room-card.cleaning .status-dot { background: var(--warning); }
.room-card.reserved .status-dot { background: #7C3AED; }
.room-card.maintenance { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.4); }
.room-card.maintenance .status-dot { background: var(--info); }
.room-card.maintenance .room-action-hint { color: #1D4ED8; }
.room-card.checkout { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.46); }
.room-card.checkout .status-dot { background: var(--warning); }
.room-card.checkout .room-action-hint { color: #9A5B00; }
.room-card.checkout-today {
  animation: roomCheckoutPulse 1.35s ease-in-out infinite;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.68);
}
.room-card.checkout-today .status-dot {
  background: #B91C1C;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

@keyframes roomCheckoutPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.22); }
  50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.08); }
}

.dashboard-page {
  --topbar: 75px;
  background: #FAF7F2;
}

.dashboard-page .sidebar {
  display: flex;
  width: 260px;
  transform: translateX(-100%);
  box-shadow: var(--shadow);
}

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

.dashboard-page .app-shell {
  padding-left: 0;
  padding-top: var(--topbar);
}

.dashboard-page .topbar {
  left: 0;
  height: var(--topbar);
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: #E9E1D8;
  box-shadow: 0 1px 4px rgba(45, 45, 45, 0.04);
}

.dashboard-page .menu-toggle {
  display: inline-grid;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary-dark);
}

.dashboard-page .menu-toggle svg {
  width: 19px;
  height: 19px;
  stroke-width: 3;
}

.dashboard-page .topbar-left {
  gap: 18px;
}

.dashboard-page .breadcrumb {
  margin: 0 0 3px;
  color: #7A7169;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-page .breadcrumb span {
  display: none;
}

.dashboard-page .topbar h1 {
  font-size: 26px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.dashboard-page .topbar-actions {
  align-items: center;
  gap: 18px;
}

.shift-control {
  display: grid;
  justify-items: stretch;
  gap: 3px;
}

.shift-control .btn {
  min-width: 160px;
  height: 37px;
  min-height: 37px;
  border-radius: 5px;
  padding: 0 18px;
  text-transform: uppercase;
  font-size: 12px;
  box-shadow: none;
}

.shift-control .btn svg {
  width: 14px;
  height: 14px;
}

.shift-control div {
  height: 25px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: #7A7169;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}

.dashboard-page .clock {
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-page .clock strong {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.dashboard-page .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

.dashboard-page .notify::after {
  content: "1";
  top: -6px;
  right: -5px;
}

.dashboard-page .avatar {
  width: 42px;
  height: 42px;
  background: var(--primary);
}

.dashboard-page .user-menu strong {
  font-size: 13px;
  font-weight: 900;
}

.dashboard-page .user-menu span {
  font-size: 12px;
}

.dashboard-page .content {
  padding: 20px 22px 0;
}

.dashboard-page .grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-refresh-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.dashboard-refresh-status {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #684D2F;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-refresh-status svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

.dashboard-refresh-status strong {
  color: #2D2D2D;
}

.dashboard-refresh-status em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  color: #B91C1C;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.dashboard-refresh-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
}

.dashboard-refresh-button svg {
  width: 15px;
  height: 15px;
}

.dashboard-page .metric {
  min-height: 90px;
  padding: 18px;
  gap: 14px;
  border-radius: 10px;
  box-shadow: none;
}

.dashboard-page .metric-icon {
  width: 44px;
  height: 44px;
}

.dashboard-page .metric-icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-page .metric .bg-primary {
  background: #B91C1C;
}

.dashboard-page .metric > div:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-page .metric span {
  order: 1;
  color: #684D2F;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-page .metric strong {
  order: 2;
  margin-top: 8px;
  color: #151515;
  font-size: 28px;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
}

.dashboard-page .metric em {
  order: 3;
  margin-top: 8px;
  color: #684D2F;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.dashboard-page .rooms-overview {
  margin-top: 15px;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: none;
}

.dashboard-page .rooms-overview .card-title {
  height: 50px;
  margin: 0;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  justify-content: center;
}

.dashboard-page .rooms-overview .card-title h3 {
  color: #3A2A1D;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.room-legend {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #4F4A45;
  font-size: 12px;
  font-weight: 600;
}

.room-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.room-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}

.room-legend .available i { color: var(--success); }
.room-legend .occupied i { color: var(--danger); }
.room-legend .cleaning i { color: var(--warning); }
.room-legend .maintenance i { color: var(--info); }
.room-legend .checkout-due-today i { color: #B91C1C; }

.dashboard-page .room-map {
  width: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.dashboard-page .floor-row {
  grid-template-columns: 98px 1fr;
  min-height: 118px;
  border-top: 1px solid var(--border);
}

.dashboard-page .floor-row:first-child {
  border-top: 0;
}

.dashboard-page .floor-label {
  padding: 0;
  background: #FCFAF7;
  color: var(--primary-dark);
  display: grid;
  place-content: center;
  justify-items: center;
  border-right: 1px solid var(--border);
}

.dashboard-page .floor-label strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.dashboard-page .floor-label span {
  margin-top: 6px;
  color: #7A7169;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-page .room-grid {
  grid-template-columns: repeat(auto-fill, 104px);
  align-content: start;
  gap: 12px;
  padding: 12px 14px;
}

.dashboard-page .room-card {
  width: 104px;
  height: 118px;
  min-height: 118px;
  aspect-ratio: auto;
  padding: 12px 11px 10px;
  border-radius: 8px;
  background: #fff;
  border-color: #E9E1D8;
  box-shadow: none;
  overflow: visible;
  align-content: start;
}

.dashboard-page .room-card:hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(45, 45, 45, 0.08);
}

.dashboard-page .room-card h4 {
  color: #111;
  font-size: 22px;
  line-height: 0.9;
  font-weight: 900;
}

.dashboard-page .room-card p {
  margin-top: 8px;
  color: #222;
  font-size: 11px;
  font-weight: 900;
}

.dashboard-page .room-price {
  display: block;
  margin-top: 6px;
  color: #6F675F;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
}

.dashboard-page .room-card .status-dot {
  top: 15px;
  right: 14px;
  width: 9px;
  height: 9px;
  box-shadow: 0 0 10px currentColor;
}

.dashboard-page .room-card--available {
  background: #fff !important;
  border-color: #E7DFD5 !important;
  color: #2D2D2D !important;
  box-shadow: none !important;
}

.dashboard-page .room-card--occupied,
.dashboard-page .room-card--checkout-today {
  background: #EF4444 !important;
  border-color: #DC2626 !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(239, 68, 68, .35) !important;
}

.dashboard-page .room-card--checkout-today {
  animation: checkoutPulse 1.5s infinite;
}

.dashboard-page .room-card--cleaning {
  background: #FACC15 !important;
  border-color: #EAB308 !important;
  color: #2D2D2D !important;
  box-shadow: 0 12px 30px rgba(245, 158, 11, .20) !important;
}

.dashboard-page .room-card--maintenance {
  background: #3B82F6 !important;
  border-color: #2563EB !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(59, 130, 246, .20) !important;
}

.dashboard-page .room-card--reserved {
  background: #8B5CF6 !important;
  border-color: #7C3AED !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(139, 92, 246, .20) !important;
}

.dashboard-page .room-card--available h4,
.dashboard-page .room-card--available p,
.dashboard-page .room-card--available .room-price,
.dashboard-page .room-card--available .occupied-guest {
  color: #2D2D2D !important;
}

.dashboard-page .room-card--occupied h4,
.dashboard-page .room-card--occupied p,
.dashboard-page .room-card--occupied .occupied-guest,
.dashboard-page .room-card--occupied .room-price,
.dashboard-page .room-card--checkout-today h4,
.dashboard-page .room-card--checkout-today p,
.dashboard-page .room-card--checkout-today .occupied-guest,
.dashboard-page .room-card--checkout-today .room-price,
.dashboard-page .room-card--maintenance h4,
.dashboard-page .room-card--maintenance p,
.dashboard-page .room-card--maintenance .room-price,
.dashboard-page .room-card--reserved h4,
.dashboard-page .room-card--reserved p,
.dashboard-page .room-card--reserved .room-price {
  color: #fff !important;
}

.dashboard-page .room-card--cleaning h4,
.dashboard-page .room-card--cleaning p,
.dashboard-page .room-card--cleaning .room-price {
  color: #2D2D2D !important;
}

.dashboard-page .room-card--occupied .badge,
.dashboard-page .room-card--checkout-today .badge,
.dashboard-page .room-card--maintenance .badge,
.dashboard-page .room-card--reserved .badge {
  background: rgba(255, 255, 255, .22) !important;
  color: #fff !important;
}

.dashboard-page .room-card--cleaning .badge {
  background: rgba(255, 255, 255, .45) !important;
  color: #2D2D2D !important;
}

.dashboard-page .room-card--occupied .status-dot,
.dashboard-page .room-card--checkout-today .status-dot,
.dashboard-page .room-card--maintenance .status-dot,
.dashboard-page .room-card--reserved .status-dot {
  background: #fff !important;
  color: #fff !important;
}

.dashboard-page .room-card--cleaning .status-dot {
  background: #2D2D2D !important;
  color: #2D2D2D !important;
}

.dashboard-page .room-card.available {
  background: #fff;
  border-color: #E9E1D8;
}

.dashboard-page .room-card.available .status-dot {
  color: var(--success);
  background: var(--success);
}

.dashboard-page .room-card.occupied {
  background: #FEE2E2;
  border-color: #EF4444;
  color: #111;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.25);
}

.dashboard-page .room-card.cleaning {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #111;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.20);
}

.dashboard-page .room-card.cleaning .status-dot {
  color: #F59E0B;
  background: #F59E0B;
}

.dashboard-page .room-card.cleaning h4,
.dashboard-page .room-card.cleaning p {
  color: #111;
}

.dashboard-page .room-card.occupied .badge,
.dashboard-page .room-card.cleaning .badge {
  background: rgba(255, 255, 255, 0.55);
}

.dashboard-page .room-card.maintenance {
  background: #DBEAFE;
  border-color: #3B82F6;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.20);
}

.dashboard-page .room-card.maintenance .status-dot {
  color: var(--info);
  background: var(--info);
}

.dashboard-page .room-card.reserved {
  background: #F3E8FF;
  border-color: #8B5CF6;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.20);
}

.dashboard-page .room-card.reserved .status-dot {
  color: #8B5CF6;
  background: #8B5CF6;
}

.dashboard-page .room-card.occupied.checkout-today {
  animation: dashboardCheckoutPulse 1.5s ease-in-out infinite;
  background: #FEE2E2;
  border-color: #EF4444;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.25);
}

.dashboard-page .room-card.occupied h4 {
  color: #111;
  font-size: 21px;
}

.dashboard-page .room-card.occupied p {
  color: #111;
  margin-top: 6px;
}

.dashboard-page .room-card .occupied-guest {
  max-width: 76px;
  color: #111;
  font-size: 10px;
  line-height: 1.12;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.dashboard-page .balance-due {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  color: #D92323;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.dashboard-page .balance-due svg {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  stroke-width: 2.4;
}

.dashboard-page .room-card.occupied .room-price {
  margin-top: 6px;
  line-height: 1.1;
}

.dashboard-page .room-card.occupied .status-dot {
  top: 22px;
  right: 17px;
  color: #B91C1C;
  background: #B91C1C;
}

.dashboard-page .due-flag {
  position: absolute;
  top: -9px;
  right: 12px;
  height: 21px;
  padding: 0 12px;
  border-radius: 999px;
  background: #D9473F;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(217, 71, 63, 0.25);
}

.dashboard-page .room-card.room-card--occupied,
.dashboard-page .room-card.room-card--checkout-today {
  width: 104px;
  height: 118px;
  padding: 13px 12px 10px;
  background: #FFD1D1 !important;
  border: 2px solid #EF4444 !important;
  border-radius: 10px;
  color: #111 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12), 0 8px 18px rgba(239, 68, 68, 0.12) !important;
}

.dashboard-page .room-card.room-card--occupied:hover,
.dashboard-page .room-card.room-card--checkout-today:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.18), 0 12px 24px rgba(239, 68, 68, 0.18) !important;
}

.dashboard-page .room-card.room-card--occupied h4,
.dashboard-page .room-card.room-card--checkout-today h4 {
  color: #DC2626 !important;
  font-size: 22px;
  line-height: 0.9;
  font-weight: 900;
}

.dashboard-page .room-card.room-card--occupied .occupied-guest,
.dashboard-page .room-card.room-card--checkout-today .occupied-guest {
  max-width: 72px;
  margin-top: 9px;
  color: #DC2626 !important;
  font-size: 10px;
  line-height: 1.05;
  font-weight: 900;
}

.dashboard-page .room-card.room-card--occupied .balance-due,
.dashboard-page .room-card.room-card--checkout-today .balance-due {
  margin-top: 9px;
  color: #DC2626 !important;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
}

.dashboard-page .room-card.room-card--occupied .status-dot,
.dashboard-page .room-card.room-card--checkout-today .status-dot {
  top: 25px;
  right: 17px;
  width: 9px;
  height: 9px;
  background: #DC2626 !important;
  color: #DC2626 !important;
  box-shadow: 0 0 9px rgba(220, 38, 38, 0.85);
}

.dashboard-page .room-card.room-card--occupied,
.dashboard-page .room-card.room-card--checkout-today,
.dashboard-page .room-card.room-card--occupied h4,
.dashboard-page .room-card.room-card--checkout-today h4,
.dashboard-page .room-card.room-card--occupied p,
.dashboard-page .room-card.room-card--checkout-today p,
.dashboard-page .room-card.room-card--occupied .occupied-guest,
.dashboard-page .room-card.room-card--checkout-today .occupied-guest,
.dashboard-page .room-card.room-card--occupied .room-price,
.dashboard-page .room-card.room-card--checkout-today .room-price {
  color: #DC2626 !important;
}

.dashboard-page .room-card.room-card--cleaning {
  background: #FEF3C7 !important;
  border: 2px solid #F59E0B !important;
  color: #B45309 !important;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12), 0 8px 18px rgba(245, 158, 11, 0.14) !important;
}

.dashboard-page .room-card.room-card--maintenance {
  background: #DBEAFE !important;
  border: 2px solid #3B82F6 !important;
  color: #2563EB !important;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12), 0 8px 18px rgba(59, 130, 246, 0.14) !important;
}

.dashboard-page .room-card.room-card--cleaning h4,
.dashboard-page .room-card.room-card--cleaning p,
.dashboard-page .room-card.room-card--cleaning .room-price,
.dashboard-page .room-card.room-card--cleaning .badge {
  color: #B45309 !important;
}

.dashboard-page .room-card.room-card--maintenance h4,
.dashboard-page .room-card.room-card--maintenance p,
.dashboard-page .room-card.room-card--maintenance .room-price,
.dashboard-page .room-card.room-card--maintenance .badge {
  color: #2563EB !important;
}

.dashboard-page .room-card.room-card--cleaning .status-dot {
  background: #B45309 !important;
  color: #B45309 !important;
  box-shadow: 0 0 9px rgba(180, 83, 9, 0.75);
}

.dashboard-page .room-card.room-card--maintenance .status-dot {
  background: #2563EB !important;
  color: #2563EB !important;
  box-shadow: 0 0 9px rgba(37, 99, 235, 0.75);
}

.dashboard-page .room-card.room-card--cleaning .badge {
  background: rgba(245, 158, 11, 0.16) !important;
}

.dashboard-page .room-card.room-card--maintenance .badge {
  background: rgba(59, 130, 246, 0.16) !important;
}

.dashboard-page .room-card.room-card--reserved {
  background: #E5E7EB !important;
  border: 2px solid #6B7280 !important;
  color: #374151 !important;
  box-shadow: 0 0 0 1px rgba(107, 114, 128, 0.12), 0 8px 18px rgba(107, 114, 128, 0.14) !important;
}

.dashboard-page .room-card.room-card--reserved h4,
.dashboard-page .room-card.room-card--reserved p,
.dashboard-page .room-card.room-card--reserved .room-price,
.dashboard-page .room-card.room-card--reserved .badge {
  color: #374151 !important;
}

.dashboard-page .room-card.room-card--reserved .status-dot {
  background: #374151 !important;
  color: #374151 !important;
  box-shadow: 0 0 9px rgba(55, 65, 81, 0.75);
}

.dashboard-page .room-card.room-card--reserved .badge {
  background: rgba(107, 114, 128, 0.18) !important;
}

.dashboard-page .room-tags {
  margin-top: 6px;
}

.dashboard-page .mini-tag {
  padding: 4px 8px;
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  font-size: 11px;
  font-weight: 900;
}

.dashboard-page .room-action-hint {
  margin-top: 6px;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 900;
}

.dashboard-page .room-action-hint::after {
  content: "";
}

@keyframes dashboardCheckoutPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.25);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 16px 36px rgba(239, 68, 68, 0.34);
  }
}

@keyframes checkoutPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(239,68,68,.35);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 24px rgba(239,68,68,.55);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(239,68,68,.35);
  }
}

.form-card form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }

.alert {
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
}
.alert svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.alert.success { background: rgba(34, 197, 94, 0.1); color: #12833C; border: 1px solid rgba(34, 197, 94, 0.2); }
.alert.danger { background: rgba(239, 68, 68, 0.1); color: #B91C1C; border: 1px solid rgba(239, 68, 68, 0.2); }
.alert.warning { background: rgba(245, 158, 11, 0.14); color: #8A5200; border: 1px solid rgba(245, 158, 11, 0.28); }
.form-alert { margin-right: auto; align-self: center; padding: 10px 12px; }
.form-alert[hidden] { display: none; }

.detail-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 18px; }
.info-list { display: grid; gap: 12px; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--muted); }
.info-row strong { text-align: right; }

.chart {
  height: 280px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(to top, var(--border) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(to right, var(--border) 1px, transparent 1px) 0 0 / 9.09% 100%,
    #fff;
  position: relative;
  overflow: hidden;
}
.chart svg { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); overflow: visible; }

.report-tabs { display: grid; gap: 8px; }
.reports-layout { grid-template-columns: 240px 1fr; }
.tab-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  color: #514940;
  font-weight: 700;
}
.tab-link.active, .tab-link:hover { background: rgba(164, 107, 31, 0.12); color: var(--primary); }

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

.hk-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hk-stat {
  min-height: 124px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hk-stat .metric-icon {
  width: 58px;
  height: 58px;
}

.hk-stat .metric-icon svg {
  width: 27px;
  height: 27px;
}

.hk-stat strong {
  display: block;
  color: #171717;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.hk-stat span {
  display: block;
  margin-top: 4px;
  color: #3F3A35;
  font-size: 15px;
  font-weight: 800;
}

.hk-stat p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.hk-board {
  box-shadow: var(--soft-shadow);
}

.hk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.hk-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 42px;
}

.hk-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: #5E554D;
  padding: 0;
  font-weight: 700;
}

.hk-tabs button.active {
  color: var(--primary);
}

.hk-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -15px;
  height: 2px;
  background: var(--primary);
}

.hk-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hk-tools .search {
  min-width: 260px;
}

.hk-table table {
  min-width: 1060px;
}

.hk-table th {
  background: #FCFAF7;
  color: #171717;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.hk-table td {
  height: 64px;
  color: #171717;
}

.hk-table td:first-child strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.hk-table td:first-child span {
  display: block;
  margin-top: 3px;
  color: #6F675F;
  font-size: 13px;
}

.hk-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #C06A00;
  font-size: 12px;
  font-weight: 900;
}

.hk-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F59E0B;
}

.hk-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.hk-actions .btn {
  min-height: 34px;
  border-radius: 6px;
  white-space: nowrap;
}

.hk-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 4px 0;
  font-size: 13px;
}

.hk-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hk-bottom h3 {
  margin: 0 0 18px;
  font-size: 16px;
}

.hk-guidelines p,
.hk-summary p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hk-guidelines {
  display: grid;
  align-content: start;
  gap: 12px;
}

.hk-guidelines svg {
  width: 16px;
  height: 16px;
  color: #22C55E;
  flex: 0 0 auto;
}

.hk-guidelines span {
  font-size: 13px;
}

.hk-quick > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hk-quick a {
  min-height: 110px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 8px;
}

.hk-quick a > svg:first-child {
  width: 28px;
  height: 28px;
  color: var(--success);
}

.hk-quick a:nth-child(2) > svg:first-child {
  color: var(--danger);
}

.hk-quick strong,
.hk-quick span {
  grid-column: 1;
}

.hk-quick strong {
  margin-top: 6px;
}

.hk-quick span {
  color: var(--muted);
  font-size: 12px;
}

.hk-quick a > svg:last-child {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  color: #5E554D;
}

.hk-summary {
  display: grid;
  align-content: start;
  gap: 14px;
}

.hk-summary p {
  justify-content: space-between;
}

.hk-summary span {
  color: #3F3A35;
}

.hk-summary strong {
  color: #171717;
}

.hk-page {
  display: grid;
  gap: 22px;
}

.hk-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hk-hero h2 {
  margin: 0 0 7px;
  color: #2D2D2D;
  font-size: 28px;
  font-weight: 900;
}

.hk-hero p {
  margin: 0;
  color: #6B6258;
  font-size: 15px;
  font-weight: 600;
}

.hk-add-task {
  min-height: 48px;
  padding-inline: 18px;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(164, 107, 31, 0.2);
  white-space: nowrap;
}

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

.hk-summary-card {
  min-height: 132px;
  padding: 22px;
  border: 1px solid #E7DFD5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(45, 45, 45, 0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: 250ms ease;
}

.hk-summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(45, 45, 45, 0.09);
}

.hk-summary-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.hk-summary-icon svg {
  width: 26px;
  height: 26px;
}

.hk-summary-blue .hk-summary-icon { background: rgba(59, 130, 246, 0.12); color: #3B82F6; }
.hk-summary-green .hk-summary-icon { background: rgba(34, 197, 94, 0.12); color: #22C55E; }
.hk-summary-orange .hk-summary-icon { background: rgba(245, 158, 11, 0.14); color: #F59E0B; }
.hk-summary-red .hk-summary-icon { background: rgba(239, 68, 68, 0.12); color: #EF4444; }

.hk-summary-card strong {
  display: block;
  color: #2D2D2D;
  font-size: 31px;
  line-height: 1;
  font-weight: 900;
}

.hk-summary-card span {
  display: block;
  margin-top: 7px;
  color: #2D2D2D;
  font-size: 14px;
  font-weight: 900;
}

.hk-summary-card p {
  margin: 5px 0 0;
  color: #6B6258;
  font-size: 12px;
  font-weight: 700;
}

.hk-filter-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(130px, 0.7fr)) auto;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border: 1px solid #E7DFD5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(45, 45, 45, 0.05);
}

.hk-search-field {
  position: relative;
}

.hk-search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #6B6258;
}

.hk-search-field .control {
  padding-left: 42px;
}

.hk-filter-card .control,
.hk-filter-card .select,
.hk-filter-card .btn {
  min-height: 46px;
  border-radius: 12px;
}

.hk-filter-card .btn {
  padding-inline: 18px;
  white-space: nowrap;
}

.hk-status-tabs {
  min-height: 52px;
  padding: 0 6px;
  border-bottom: 1px solid #E7DFD5;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
}

.hk-status-tabs a {
  position: relative;
  min-height: 52px;
  color: #6B6258;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.hk-status-tabs a span {
  min-width: 26px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  color: #A46B1F;
  border: 1px solid #E7DFD5;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
}

.hk-status-tabs a.active {
  color: #A46B1F;
}

.hk-status-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #A46B1F;
}

.hk-table-card {
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(45, 45, 45, 0.06);
}

.hk-table-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.hk-table-head h3 {
  margin: 0;
  color: #2D2D2D;
  font-size: 18px;
  font-weight: 900;
}

.hk-table-head p {
  margin: 5px 0 0;
  color: #6B6258;
  font-size: 13px;
  font-weight: 700;
}

.hk-modern-table {
  border: 1px solid #E7DFD5;
  border-radius: 16px;
  overflow: auto;
}

.hk-modern-table table {
  min-width: 1120px;
}

.hk-modern-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 52px;
  background: #FCFAF7;
  color: #6B6258;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hk-modern-table tbody tr {
  transition: 250ms ease;
}

.hk-modern-table tbody tr:nth-child(even) {
  background: rgba(250, 247, 242, 0.45);
}

.hk-modern-table tbody tr:hover {
  background: rgba(164, 107, 31, 0.06);
}

.hk-modern-table td {
  min-height: 76px;
  padding-block: 16px;
  color: #2D2D2D;
  vertical-align: middle;
}

.hk-room-cell strong {
  display: block;
  color: #2D2D2D;
  font-size: 16px;
  font-weight: 900;
}

.hk-room-cell span {
  display: block;
  margin-top: 4px;
  color: #6B6258;
  font-size: 12px;
  font-weight: 700;
}

.hk-badge {
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
}

.hk-badge-clean { background: rgba(34, 197, 94, 0.12); color: #15803D; }
.hk-badge-dirty { background: rgba(245, 158, 11, 0.15); color: #B45309; }
.hk-badge-maintenance,
.hk-badge-occupied { background: rgba(59, 130, 246, 0.12); color: #1D4ED8; }
.hk-badge-out { background: rgba(239, 68, 68, 0.12); color: #B91C1C; }

.hk-assignee {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hk-assignee span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #A46B1F, #D5963A);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hk-assignee strong {
  color: #2D2D2D;
  font-size: 13px;
  font-weight: 900;
}

.hk-note-cell {
  max-width: 220px;
  color: #6B6258;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.hk-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.hk-action-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #E7DFD5;
  border-radius: 12px;
  background: #fff;
  color: #2D2D2D;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
  transition: 250ms ease;
}

.hk-action-btn svg {
  width: 15px;
  height: 15px;
}

.hk-action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(45, 45, 45, 0.08);
}

.hk-mark {
  border-color: #A46B1F;
  color: #7A4A12;
}

.hk-danger {
  border-color: rgba(239, 68, 68, 0.3);
  color: #B91C1C;
}

.hk-disabled {
  color: #9CA3AF;
  background: #F8F5F0;
  cursor: not-allowed;
}

.hk-empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: #6B6258;
}

.hk-empty-state svg {
  width: 44px;
  height: 44px;
  color: #A46B1F;
}

.hk-empty-state strong {
  color: #2D2D2D;
  font-size: 16px;
}

.hk-pagination-modern {
  padding: 16px 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6B6258;
  font-size: 13px;
  font-weight: 700;
}

.hk-pagination-modern > div {
  display: flex;
  gap: 8px;
}

.hk-small-modal {
  width: min(620px, 100%);
  border-radius: 16px;
}

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

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

.guest-stat {
  min-height: 132px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.guest-purple {
  background: #7C3AED;
}

.guest-stat .metric-icon {
  width: 54px;
  height: 54px;
}

.guest-stat .metric-icon svg {
  width: 25px;
  height: 25px;
}

.guest-stat strong {
  display: block;
  color: #171717;
  font-size: 27px;
  line-height: 1;
  font-weight: 900;
}

.guest-stat span {
  display: block;
  margin-top: 6px;
  color: #3F3A35;
  font-size: 14px;
  font-weight: 800;
}

.guest-stat p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

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

.guest-table-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.guest-table-top .search {
  flex: 1;
  max-width: 420px;
}

.guest-table-top > div:last-child {
  display: flex;
  gap: 10px;
}

.guest-filters {
  display: grid;
  grid-template-columns: 132px 160px 160px 130px 130px auto;
  gap: 12px;
  margin-bottom: 16px;
}

.guest-table table {
  min-width: 0;
  table-layout: fixed;
}

.guest-table th:nth-child(1), .guest-table td:nth-child(1) { width: 21%; }
.guest-table th:nth-child(2), .guest-table td:nth-child(2) { width: 19%; }
.guest-table th:nth-child(3), .guest-table td:nth-child(3) { width: 14%; }
.guest-table th:nth-child(4), .guest-table td:nth-child(4) { width: 10%; }
.guest-table th:nth-child(5), .guest-table td:nth-child(5) { width: 12%; }
.guest-table th:nth-child(6), .guest-table td:nth-child(6) { width: 10%; }
.guest-table th:nth-child(7), .guest-table td:nth-child(7) { width: 6%; }
.guest-table th:nth-child(8), .guest-table td:nth-child(8) { width: 8%; }

.guest-table th {
  background: #FCFAF7;
  color: #171717;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.guest-table td {
  height: 72px;
  vertical-align: middle;
  padding: 12px 10px;
}

.guest-table th {
  padding: 12px 10px;
}

.guest-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guest-avatar,
.guest-photo {
  border-radius: 999px;
  background: linear-gradient(135deg, #F0C7B2, #6B7280);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.guest-avatar {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.guest-table strong {
  display: block;
  color: #171717;
  font-size: 12px;
}

.guest-table small {
  display: block;
  margin-top: 5px;
  color: #6F675F;
  font-size: 11px;
}

.guest-flag {
  margin-right: 8px;
  font-size: 18px;
}

.guest-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.guest-chip.individual,
.guest-chip.checked-in {
  color: #12833C;
  background: rgba(34, 197, 94, 0.14);
}

.guest-chip.business {
  color: #1D4ED8;
  background: rgba(59, 130, 246, 0.13);
}

.guest-chip.corporate {
  color: #7C3AED;
  background: rgba(124, 58, 237, 0.13);
}

.guest-chip.checked-out {
  color: #514940;
  background: #EEEAE4;
}

.guest-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.guest-actions .action-btn {
  width: 30px;
  height: 30px;
}

.guest-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  gap: 12px;
  font-size: 13px;
}

.guest-detail {
  position: sticky;
  top: calc(var(--topbar) + 18px);
}

.guest-detail .card-title {
  margin-bottom: 20px;
}

.guest-profile-head {
  text-align: center;
}

.guest-photo {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  font-size: 18px;
}

.guest-profile-head h3 {
  margin: 0;
  font-size: 16px;
}

.guest-profile-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.guest-contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 22px 0;
}

.guest-contact-actions .action-btn {
  width: 42px;
  height: 42px;
}

.guest-detail-list {
  display: grid;
  gap: 13px;
  padding-top: 8px;
}

.guest-detail-list p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.guest-detail-list strong {
  color: #171717;
  text-align: right;
}

.guest-detail > .btn {
  width: 100%;
  margin-top: 24px;
}

.guests-page-premium {
  gap: 22px;
}

.guest-hero {
  align-items: center;
  margin-bottom: 0;
}

.guest-hero h1 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
}

.guest-hero p {
  color: #6B7280;
  font-size: 15px;
  font-weight: 700;
}

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

.guest-summary-card {
  position: relative;
  min-height: 168px;
  padding: 24px;
  border: 1px solid #E7DFD5;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #fff 68%, rgba(164, 107, 31, 0.035) 100%);
  box-shadow: 0 18px 40px rgba(45, 45, 45, 0.06);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: start;
  column-gap: 18px;
  row-gap: 14px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.guest-summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(45, 45, 45, 0.1);
}

.guest-summary-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  align-self: start;
}

.guest-summary-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  transform: none;
}

.guest-summary-icon--info,
.guest-summary-icon--blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
}

.guest-summary-icon--success {
  background: rgba(34, 197, 94, 0.13);
  color: #22C55E;
}

.guest-summary-icon--warning {
  background: rgba(245, 158, 11, 0.14);
  color: #F59E0B;
}

.guest-summary-card strong {
  display: block;
  color: #2D2D2D;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
}

.guest-summary-card span {
  display: block;
  margin-top: 10px;
  color: #2D2D2D;
  font-size: 20px;
  font-weight: 800;
}

.guest-summary-card small {
  display: block;
  margin-top: 7px;
  color: #6B7280;
  font-size: 14px;
  font-weight: 700;
}

.guest-trend-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(164, 107, 31, 0.1);
  color: #8A5A16;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.guest-summary-card--green .guest-trend-badge {
  background: rgba(34, 197, 94, 0.12);
  color: #15803D;
}

.guest-summary-card--orange .guest-trend-badge {
  background: rgba(245, 158, 11, 0.14);
  color: #B45309;
}

.guest-summary-card--blue .guest-trend-badge {
  background: rgba(59, 130, 246, 0.12);
  color: #1D4ED8;
}

.guest-filter-card {
  padding: 18px;
  border: 1px solid #E7DFD5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(45, 45, 45, 0.06);
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(170px, 0.75fr) minmax(150px, 0.65fr) minmax(150px, 0.65fr) auto auto;
  gap: 12px;
  align-items: center;
}

.guest-search-field {
  height: 52px;
  border: 1px solid #E7DFD5;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  box-shadow: 0 8px 20px rgba(45, 45, 45, 0.04);
}

.guest-search-field svg {
  width: 22px;
  height: 22px;
  color: #6B7280;
}

.guest-search-field .control {
  border: 0;
  height: 100%;
  padding: 0;
  box-shadow: none;
  min-width: 0;
}

.guest-filter-card .select,
.guest-filter-card .control {
  height: 52px;
  border-radius: 14px;
}

.guest-filter-card .btn {
  height: 52px;
  border-radius: 14px;
  padding-inline: 18px;
  white-space: nowrap;
}

.guest-list-card {
  padding: 22px;
  border: 1px solid #E7DFD5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(45, 45, 45, 0.06);
}

.guest-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.guest-list-head h3 {
  margin: 0;
  color: #2D2D2D;
  font-size: 21px;
  font-weight: 900;
}

.guest-list-head p {
  margin: 5px 0 0;
  color: #6B7280;
  font-size: 13px;
  font-weight: 700;
}

.guest-modern-table {
  border: 1px solid #E7DFD5;
  border-radius: 16px;
  overflow: auto;
}

.guest-modern-table table {
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0;
}

.guest-modern-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 18px 16px;
  background: #F8F5F0;
  color: #5E554C;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.guest-modern-table tbody td {
  height: 82px;
  padding: 16px;
  color: #2D2D2D;
  font-size: 13px;
  font-weight: 700;
  border-top: 1px solid #EDE5DB;
  vertical-align: middle;
}

.guest-modern-table tbody tr {
  transition: background 250ms ease;
}

.guest-modern-table tbody tr:hover {
  background: #FFF9F0;
}

.guest-cell {
  display: flex;
  align-items: center;
  gap: 13px;
}

.guest-avatar-modern,
.guest-photo-modern {
  border-radius: 999px;
  background: linear-gradient(135deg, #A46B1F, #D8A24D);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(164, 107, 31, 0.24);
}

.guest-avatar-modern {
  width: 42px;
  height: 42px;
  font-size: 15px;
}

.guest-cell strong {
  color: #2D2D2D;
  font-size: 14px;
  font-weight: 900;
}

.guest-cell small,
.guest-current-stay small {
  display: block;
  margin-top: 4px;
  color: #6B7280;
  font-size: 11px;
  font-weight: 700;
}

.guest-current-stay span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #15803D;
  font-weight: 900;
}

.guest-current-stay i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.muted-dash {
  color: #9A9188;
}

.guest-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guest-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.guest-status--active {
  color: #15803D;
  background: rgba(34, 197, 94, 0.13);
}

.guest-status--checked-out {
  color: #4B5563;
  background: #F0ECE6;
}

.guest-status--vip {
  color: #8A5A16;
  background: rgba(245, 158, 11, 0.18);
}

.guest-status--blacklisted {
  color: #B91C1C;
  background: rgba(239, 68, 68, 0.13);
}

.guest-action-group {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.guest-action-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #E7DFD5;
  border-radius: 12px;
  background: #fff;
  color: #2D2D2D;
  display: inline-grid;
  place-items: center;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease, color 250ms ease;
}

.guest-action-btn:hover {
  color: #A46B1F;
  border-color: #D0A36B;
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(164, 107, 31, 0.18);
}

.guest-action-btn svg {
  width: 18px;
  height: 18px;
}

.guest-pagination-modern {
  padding: 18px 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6B7280;
  font-size: 13px;
  font-weight: 800;
}

.guest-pagination-modern > div {
  display: flex;
  gap: 8px;
}

.guest-empty-state {
  padding: 36px 16px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #6B7280;
}

.guest-empty-state svg {
  width: 42px;
  height: 42px;
  color: #A46B1F;
}

.guest-empty-state strong {
  color: #2D2D2D;
  font-size: 16px;
}

.guest-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.guest-profile-modal:target {
  display: flex;
}

.guest-profile-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 45, 45, 0.48);
  backdrop-filter: blur(5px);
}

.guest-profile-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #E7DFD5;
  border-radius: 20px;
  background: #FAF7F2;
  box-shadow: 0 34px 80px rgba(45, 45, 45, 0.22);
}

.guest-profile-modal-head {
  padding: 26px 28px;
  border-bottom: 1px solid #E7DFD5;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.guest-profile-person {
  display: flex;
  align-items: center;
  gap: 16px;
}

.guest-photo-modern {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

.guest-profile-person h3 {
  margin: 0;
  color: #2D2D2D;
  font-size: 24px;
  font-weight: 900;
}

.guest-profile-person p {
  margin: 6px 0 0;
  color: #6B7280;
  font-weight: 800;
}

.guest-modal-close {
  width: 44px;
  height: 44px;
  border: 1px solid #E7DFD5;
  border-radius: 999px;
  background: #fff;
  color: #6B7280;
  display: grid;
  place-items: center;
}

.guest-profile-modal-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guest-profile-panel {
  padding: 22px;
  border: 1px solid #E7DFD5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(45, 45, 45, 0.06);
}

.guest-profile-panel h4 {
  margin: 0 0 16px;
  color: #2D2D2D;
  font-size: 18px;
  font-weight: 900;
}

.guest-info-list {
  display: grid;
}

.guest-info-list p {
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid #EDE5DB;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #6B7280;
  font-weight: 800;
}

.guest-info-list p:first-child {
  border-top: 0;
}

.guest-info-list strong {
  color: #2D2D2D;
  text-align: right;
}

.guest-profile-modal-actions {
  padding: 0 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

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

.payment-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.billing-page {
  display: grid;
  gap: 22px;
}

.billing-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.billing-hero p {
  margin: 0 0 8px;
  color: #A46B1F;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-hero h1 {
  margin: 0;
  color: #2D2D2D;
  font-size: 34px;
  font-weight: 900;
}

.billing-hero span {
  display: block;
  margin-top: 9px;
  color: #6B7280;
  font-weight: 700;
}

.billing-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.billing-actions .btn {
  border-radius: 14px;
  min-height: 46px;
}

.billing-document,
.billing-filter-card,
.billing-table-card {
  border: 1px solid #E7DFD5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(45, 45, 45, 0.07);
}

.billing-document {
  padding: 26px;
}

.billing-document-head,
.billing-section-title,
.invoice-topline,
.receipt-number-row,
.billing-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.billing-document-head {
  padding-bottom: 22px;
  border-bottom: 1px solid #E7DFD5;
  margin-bottom: 22px;
}

.billing-document-head h2,
.invoice-topline h2,
.receipt-top h2 {
  margin: 0;
  color: #2D2D2D;
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-document-head p {
  margin: 8px 0 0;
  color: #6B7280;
  font-weight: 700;
}

.billing-balance {
  padding: 14px 18px;
  border-radius: 16px;
  background: #FFF7ED;
  color: #A46B1F;
  font-size: 26px;
  font-weight: 900;
}

.billing-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.billing-card {
  padding: 20px;
  border: 1px solid #E7DFD5;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #FFFDF9);
}

.billing-card h3,
.billing-summary-card h3,
.billing-section-title h3,
.invoice-notes h3 {
  margin: 0 0 16px;
  color: #2D2D2D;
  font-size: 18px;
  font-weight: 900;
}

.billing-card p,
.billing-summary-card p {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid #EFE7DD;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #6B7280;
  font-weight: 800;
}

.billing-card p:first-of-type,
.billing-summary-card p:first-of-type {
  border-top: 0;
}

.billing-card strong,
.billing-summary-card strong {
  color: #2D2D2D;
  text-align: right;
}

.billing-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.billing-table-card {
  padding: 20px;
}

.billing-table-card.flat {
  margin-top: 18px;
  box-shadow: none;
}

.billing-section-title {
  margin-bottom: 14px;
}

.billing-section-title span {
  color: #6B7280;
  font-size: 13px;
  font-weight: 700;
}

.billing-payments-title {
  margin-top: 26px;
}

.billing-table-wrap {
  border: 1px solid #E7DFD5;
  border-radius: 14px;
  overflow: auto;
}

.billing-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

.billing-table.compact {
  min-width: 620px;
}

.billing-table th {
  padding: 16px;
  background: #F8F5F0;
  color: #5E554C;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}

.billing-table td {
  padding: 16px;
  border-top: 1px solid #EFE7DD;
  color: #2D2D2D;
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

.billing-table tr:hover td {
  background: #FFF9F0;
}

.billing-table small {
  display: block;
  margin-top: 4px;
  color: #6B7280;
}

.billing-chip,
.billing-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.billing-chip {
  color: #8A5A16;
  background: rgba(164, 107, 31, 0.12);
}

.billing-status--paid {
  color: #15803D;
  background: rgba(34, 197, 94, 0.14);
}

.billing-status--unpaid {
  color: #B91C1C;
  background: rgba(239, 68, 68, 0.13);
}

.billing-status--partial {
  color: #B45309;
  background: rgba(245, 158, 11, 0.16);
}

.billing-status--refunded {
  color: #1D4ED8;
  background: rgba(59, 130, 246, 0.14);
}

.billing-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #E7DFD5;
  border-radius: 12px;
  background: #fff;
  color: #2D2D2D;
  display: inline-grid;
  place-items: center;
  transition: transform 250ms ease, box-shadow 250ms ease, color 250ms ease;
}

.billing-icon-btn:hover {
  color: #A46B1F;
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(164, 107, 31, 0.16);
}

.billing-icon-btn svg {
  width: 17px;
  height: 17px;
}

.billing-summary-card {
  padding: 22px;
  border: 1px solid #E7DFD5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(45, 45, 45, 0.08);
  position: sticky;
  top: calc(var(--topbar) + 20px);
}

.billing-total-box,
.receipt-amount-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #E8CFAE;
  border-radius: 16px;
  background: #FFF8EF;
}

.billing-total-box span,
.receipt-amount-box span {
  display: block;
  color: #6B7280;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-total-box strong,
.receipt-amount-box strong {
  display: block;
  margin-top: 7px;
  color: #A46B1F;
  font-size: 32px;
  font-weight: 900;
  text-align: left;
}

.receipt-sheet,
.invoice-sheet {
  max-width: 1080px;
  margin: 0 auto;
}

.receipt-sheet {
  max-width: 760px;
}

.receipt-top {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #E7DFD5;
}

.receipt-top img,
.invoice-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
}

.receipt-number-row {
  margin: 22px 0;
}

.receipt-number-row p {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #E7DFD5;
  border-radius: 14px;
  background: #FCFAF7;
  flex: 1;
}

.receipt-number-row span,
.receipt-notes span {
  display: block;
  color: #6B7280;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-number-row strong {
  display: block;
  margin-top: 5px;
  color: #2D2D2D;
}

.receipt-hotel-block {
  text-align: center;
  margin-bottom: 22px;
}

.receipt-hotel-block h3 {
  margin: 0 0 8px;
  color: #2D2D2D;
  font-size: 22px;
  font-weight: 900;
}

.receipt-hotel-block p,
.receipt-notes p,
.invoice-notes p,
.invoice-footer {
  margin: 0;
  color: #6B7280;
  font-weight: 700;
}

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

.receipt-notes {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #E7DFD5;
  border-radius: 16px;
  background: #FCFAF7;
}

.invoice-topline {
  padding-bottom: 24px;
  border-bottom: 1px solid #E7DFD5;
  margin-bottom: 22px;
}

.invoice-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.invoice-brand p {
  margin: 6px 0 0;
  color: #6B7280;
  font-weight: 800;
}

.invoice-meta {
  text-align: right;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.invoice-meta p {
  margin: 0;
  color: #6B7280;
  font-size: 12px;
  font-weight: 800;
}

.invoice-meta strong {
  display: block;
  color: #2D2D2D;
  font-size: 15px;
}

.invoice-bottom-grid {
  margin-top: 18px;
}

.invoice-notes {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #E7DFD5;
  border-radius: 16px;
  background: #FCFAF7;
}

.qr-placeholder {
  margin-top: 18px;
  height: 130px;
  border: 1px dashed #D4B992;
  border-radius: 16px;
  color: #A46B1F;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  font-weight: 900;
}

.qr-placeholder svg {
  width: 40px;
  height: 40px;
}

.invoice-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #E7DFD5;
  text-align: center;
}

.billing-filter-card {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(5, minmax(140px, 0.7fr)) auto;
  gap: 12px;
  align-items: center;
}

.billing-search {
  height: 48px;
  border: 1px solid #E7DFD5;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.billing-search .control {
  border: 0;
  box-shadow: none;
  height: 100%;
  padding: 0;
}

.history-card {
  padding: 22px;
}

.history-table {
  min-width: 1120px;
}

.billing-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.billing-pagination {
  padding-top: 18px;
  color: #6B7280;
  font-size: 13px;
  font-weight: 800;
}

.billing-pagination > div {
  display: flex;
  gap: 8px;
}

.payment-stat {
  min-height: 118px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.payment-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.payment-stat-icon svg {
  width: 22px;
  height: 22px;
}

.payment-stat span {
  display: block;
  color: #6F665E;
  font-size: 12px;
  font-weight: 700;
}

.payment-stat strong {
  display: block;
  margin-top: 6px;
  color: #151515;
  font-size: 23px;
  line-height: 1.1;
  font-weight: 900;
}

.payment-stat small {
  display: block;
  margin-top: 9px;
  color: #12833C;
  font-size: 12px;
  font-weight: 800;
}

.payment-stat .bg-gold,
.bg-gold {
  background: #F4B51E;
}

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

.payments-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.payments-table-card,
.payment-side-card,
.payment-bottom-summary {
  box-shadow: var(--soft-shadow);
}

.payment-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 140px 140px 170px 180px auto auto;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.payment-filter-bar .control,
.payment-filter-bar .select {
  min-height: 42px;
}

.payment-search {
  min-width: 0;
}

.payment-table-wrap {
  border-radius: 10px;
}

.payments-table {
  min-width: 1120px;
}

.payments-table th {
  color: #191919;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.payments-table td {
  vertical-align: middle;
}

.payments-table td small,
.method-cell small {
  display: block;
  margin-top: 6px;
  color: #6F665E;
  font-size: 12px;
  font-weight: 500;
}

.invoice-link {
  color: var(--primary);
}

.payment-type {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  background: #F1ECE6;
  color: #5E554D;
  font-size: 12px;
  font-weight: 800;
}

.payment-type.advance {
  background: rgba(47, 128, 237, 0.13);
  color: #1D4ED8;
}

.payment-type.extra-charge {
  background: rgba(139, 92, 246, 0.13);
  color: #6D28D9;
}

.method-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.method-cell > svg,
.recent-icon svg {
  width: 18px;
  height: 18px;
}

.method-cell.credit-card > svg,
.method-cell.debit-card > svg,
.recent-icon.credit-card,
.recent-icon.debit-card {
  color: #2563EB;
}

.method-cell.cash > svg,
.recent-icon.cash {
  color: #16A34A;
}

.method-cell.bank-transfer > svg,
.recent-icon.bank-transfer {
  color: #3A2A1D;
}

.payment-status {
  min-width: 70px;
  justify-content: center;
  padding: 6px 11px;
}

.payment-status.paid {
  color: #12833C;
  background: rgba(34, 197, 94, 0.13);
}

.payment-status.pending {
  color: #9A5B00;
  background: rgba(245, 158, 11, 0.16);
}

.payment-status.refunded {
  color: #1D4ED8;
  background: rgba(59, 130, 246, 0.12);
}

.payment-status.cancelled {
  color: #B91C1C;
  background: rgba(239, 68, 68, 0.12);
}

.payment-pagination {
  padding-top: 16px;
}

.payment-bottom-summary {
  padding: 14px;
  display: grid;
  grid-template-columns: 72px repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
}

.summary-emblem {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(164, 107, 31, 0.13);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.summary-emblem svg {
  width: 28px;
  height: 28px;
}

.payment-bottom-summary p {
  margin: 0;
  min-height: 48px;
  padding-left: 22px;
  border-left: 1px solid var(--border);
}

.payment-bottom-summary span,
.payment-side-list span {
  display: block;
  color: #6F665E;
  font-size: 12px;
  font-weight: 700;
}

.payment-bottom-summary strong,
.payment-side-list strong {
  display: block;
  margin-top: 8px;
  color: #151515;
  font-size: 17px;
  font-weight: 900;
}

.primary-text {
  color: var(--primary) !important;
}

.success-text {
  color: #12833C !important;
}

.warning-text {
  color: #B66B00 !important;
}

.danger-text {
  color: #B91C1C !important;
}

.payments-aside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: calc(var(--topbar) + 18px);
}

.payment-side-card .card-title {
  margin-bottom: 14px;
}

.payment-side-card .card-title h3 {
  font-size: 17px;
}

.payment-side-card .card-title h3 span {
  color: #6F665E;
  font-size: 12px;
  font-weight: 600;
}

.payment-side-card .card-title a {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.compact-select {
  width: auto;
  min-height: 34px;
  padding-right: 34px;
  font-size: 12px;
}

.payment-side-list {
  display: grid;
  gap: 14px;
}

.payment-side-list p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.payment-side-list strong {
  margin-top: 0;
  font-size: 14px;
  text-align: right;
}

.payments-premium {
  display: grid;
  gap: 26px;
}

.payments-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 0 2px;
}

.payments-breadcrumb {
  margin: 0 0 8px;
  color: #8B8177;
  font-size: 12px;
  font-weight: 800;
}

.payments-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  font-weight: 900;
}

.payments-hero span {
  display: block;
  margin-top: 12px;
  color: #6B6258;
  font-size: 15px;
  line-height: 1.6;
}

.payments-hero-actions,
.payment-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
}

.payment-kpi {
  position: relative;
  min-height: 188px;
  padding: 20px;
  border: 1px solid rgba(231, 223, 213, 0.84);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(45, 45, 45, 0.07);
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.payment-kpi:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(45, 45, 45, 0.11);
}

.payment-kpi::after {
  content: "";
  position: absolute;
  inset: auto -24px -42px auto;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  opacity: 0.1;
  background: currentColor;
}

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

.payment-kpi-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(45, 45, 45, 0.13);
}

.payment-kpi-icon svg {
  width: 25px;
  height: 25px;
}

.payment-kpi > span {
  display: block;
  margin-top: 18px;
  color: #6B6258;
  font-size: 13px;
  font-weight: 800;
}

.payment-kpi strong {
  display: block;
  margin-top: 8px;
  color: #1F1F1F;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.08;
  font-weight: 900;
}

.payment-kpi small {
  display: block;
  margin-top: 7px;
  color: #786F66;
  font-size: 12px;
  font-weight: 700;
}

.payment-trend {
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.payment-trend.positive { color: #12833C; background: rgba(34, 197, 94, 0.12); }
.payment-trend.neutral { color: #9A5B00; background: rgba(245, 158, 11, 0.15); }
.payment-trend.negative { color: #B91C1C; background: rgba(239, 68, 68, 0.12); }

.sparkline {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 112px;
  height: 34px;
  opacity: 0.88;
}

.sparkline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline-bars {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 112px;
  height: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px;
  opacity: 0.9;
}

.sparkline-bars i {
  width: 8px;
  min-height: 6px;
  border-radius: 999px 999px 3px 3px;
  background: currentColor;
  opacity: 0.72;
  box-shadow: 0 8px 16px color-mix(in srgb, currentColor 20%, transparent);
}

.sparkline-h-35 { height: 35%; }
.sparkline-h-42 { height: 42%; }
.sparkline-h-45 { height: 45%; }
.sparkline-h-50 { height: 50%; }
.sparkline-h-52 { height: 52%; }
.sparkline-h-55 { height: 55%; }
.sparkline-h-60 { height: 60%; }
.sparkline-h-62 { height: 62%; }
.sparkline-h-68 { height: 68%; }
.sparkline-h-75 { height: 75%; }
.sparkline-h-76 { height: 76%; }
.sparkline-h-78 { height: 78%; }
.sparkline-h-86 { height: 86%; }
.sparkline-h-88 { height: 88%; }

.kpi-success { color: var(--success); }
.kpi-info { color: var(--info); }
.kpi-warning { color: var(--warning); }
.kpi-danger { color: var(--danger); }
.kpi-purple { color: #8B5CF6; }
.kpi-success .payment-kpi-icon { background: linear-gradient(135deg, #22C55E, #12833C); }
.kpi-info .payment-kpi-icon { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.kpi-warning .payment-kpi-icon { background: linear-gradient(135deg, #F59E0B, #B66B00); }
.kpi-danger .payment-kpi-icon { background: linear-gradient(135deg, #EF4444, #B91C1C); }
.kpi-purple .payment-kpi-icon { background: linear-gradient(135deg, #A46B1F, #7A4A12); }

.payments-filter-card,
.payments-table-card-premium {
  border: 1px solid rgba(231, 223, 213, 0.88);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(45, 45, 45, 0.07);
  padding: 22px;
}

.payments-filter-card .card-title {
  margin-bottom: 18px;
}

.payments-filter-card .card-title h3 {
  font-size: 20px;
}

.payments-filter-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(145px, 0.7fr)) minmax(260px, 1fr);
  gap: 12px;
  align-items: center;
}

.payment-search-box {
  position: relative;
}

.payment-search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--primary);
  z-index: 1;
}

.payment-search-box .control {
  padding-left: 46px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(45, 45, 45, 0.05);
}

.payments-filter-form .control,
.payments-filter-form .select {
  min-height: 48px;
  border-radius: 14px;
  background-color: #fff;
}

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

.payment-filter-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-top: 4px;
}

.payment-new,
.payment-filter-actions .btn,
.payment-export {
  border-radius: 13px;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease, background 250ms ease;
}

.payment-new:hover,
.payment-filter-actions .btn:hover,
.payment-export:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 28px rgba(164, 107, 31, 0.14);
}

.payment-table-shell {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.premium-payments-table {
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}

.premium-payments-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F6F1EA;
  color: #5A5148;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.premium-payments-table th:first-child {
  border-top-left-radius: 15px;
}

.premium-payments-table th:last-child {
  border-top-right-radius: 15px;
}

.premium-payments-table td,
.premium-payments-table th {
  padding: 18px 18px;
}

.premium-payments-table tbody tr:nth-child(even) td {
  background: #FEFCFA;
}

.premium-payments-table tbody tr {
  transition: background 250ms ease, transform 250ms ease;
}

.premium-payments-table tbody tr:hover td {
  background: rgba(164, 107, 31, 0.055);
}

.premium-payments-table td {
  height: 74px;
}

.premium-payments-table td small {
  display: block;
  margin-top: 5px;
  color: #6B6258;
  font-size: 12px;
  font-weight: 650;
}

.payment-number {
  color: var(--text);
  font-size: 13px;
}

.invoice-chip,
.room-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(164, 107, 31, 0.1);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.room-pill {
  background: #F2EDE6;
  color: #5E554D;
}

.payment-type-badge,
.payment-status-badge,
.payment-method-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.type-deposit { color: #1D4ED8; background: rgba(59, 130, 246, 0.12); }
.type-full { color: #12833C; background: rgba(34, 197, 94, 0.13); }
.type-additional { color: #7C3AED; background: rgba(139, 92, 246, 0.13); }
.type-refund { color: #B91C1C; background: rgba(239, 68, 68, 0.12); }

.status-paid { color: #12833C; background: rgba(34, 197, 94, 0.14); }
.status-pending { color: #9A5B00; background: rgba(245, 158, 11, 0.16); }
.status-refunded { color: #B91C1C; background: rgba(239, 68, 68, 0.12); }
.status-cancelled { color: #5E554D; background: #F2EDE6; }

.payment-method-pill {
  background: #FAF7F2;
  color: #3A332C;
}

.payment-amount {
  font-size: 15px;
  font-weight: 950;
}

.amount-positive { color: #12833C; }
.amount-refund { color: #B91C1C; }

.payment-date {
  display: block;
  color: #2D2D2D;
  font-weight: 900;
}

.payment-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-action {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease;
}

.payment-action svg {
  width: 17px;
  height: 17px;
}

.payment-action.view { color: #1D4ED8; background: rgba(59, 130, 246, 0.12); }
.payment-action.print { color: #B66B00; background: rgba(245, 158, 11, 0.16); }
.payment-action.download { color: #7C3AED; background: rgba(139, 92, 246, 0.13); }

.payment-action:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 24px rgba(45, 45, 45, 0.12);
}

.payment-pagination-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  color: #6B6258;
  font-size: 13px;
  font-weight: 750;
}

.payment-pagination-modern .page-btn {
  border-radius: 999px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.payment-pagination-modern .page-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(45, 45, 45, 0.09);
}

.payments-empty-state {
  min-height: 360px;
  border: 1px dashed rgba(164, 107, 31, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #FFF9F1);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  padding: 42px 20px;
}

.empty-illustration {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.26), rgba(164, 107, 31, 0.12));
  color: var(--primary);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 20px 40px rgba(164, 107, 31, 0.12);
}

.empty-illustration svg {
  width: 44px;
  height: 44px;
}

.payments-empty-state h3 {
  margin: 0;
  font-size: 22px;
}

.payments-empty-state p {
  margin: 0;
  max-width: 460px;
  color: #6B6258;
  line-height: 1.6;
}

.full-btn {
  width: 100%;
  margin-top: 20px;
  color: var(--primary);
  border-color: rgba(164, 107, 31, 0.34);
}

.method-chart-wrap {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 18px;
  align-items: center;
}

.donut-chart {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: conic-gradient(#2F80ED 0 45%, #22C55E 45% 75%, #8B5CF6 75% 90%, #F59E0B 90% 100%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--border);
}

.method-legend {
  display: grid;
  gap: 10px;
}

.method-legend-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.method-legend-row span {
  color: #242424;
  font-weight: 800;
}

.method-legend-row i {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 999px;
}

.method-legend-card i { background: #2F80ED; }
.method-legend-cash i { background: #22C55E; }
.method-legend-transfer i { background: #8B5CF6; }
.method-legend-debit i { background: #F59E0B; }

.method-legend-row small {
  display: block;
  margin: 4px 0 0 16px;
  color: #6F665E;
  font-weight: 600;
}

.method-legend-row strong {
  color: #151515;
  font-size: 12px;
}

.invoice-summary-list {
  max-width: 360px;
  margin-left: auto;
  margin-top: 18px;
}

.recent-payments {
  display: grid;
  gap: 14px;
}

.recent-payment {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.recent-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.12);
  display: grid;
  place-items: center;
}

.recent-icon.cash {
  background: rgba(34, 197, 94, 0.12);
}

.recent-payment strong {
  display: block;
  color: #151515;
  font-size: 12px;
}

.recent-payment span,
.recent-payment small {
  display: block;
  margin-top: 4px;
  color: #6F665E;
  font-size: 12px;
}

.recent-payment > div:nth-child(3) {
  text-align: right;
}

.reports-page {
  display: grid;
  gap: 22px;
}

.reports-hero {
  margin-bottom: 0;
}

.reports-hero h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  font-weight: 900;
}

.reports-hero p {
  margin-top: 12px;
  color: #6B6258;
  font-size: 15px;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 16px;
}

.report-metric {
  min-height: 164px;
  padding: 18px;
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(45, 45, 45, 0.07);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.report-metric:hover {
  transform: translateY(-4px);
  border-color: rgba(164, 107, 31, 0.32);
  box-shadow: 0 24px 60px rgba(45, 45, 45, 0.11);
}

.report-metric::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: rgba(164, 107, 31, 0.07);
}

.report-metric-primary { background: linear-gradient(135deg, #fff, rgba(164, 107, 31, 0.09)); }
.report-metric-success { background: linear-gradient(135deg, #fff, rgba(34, 197, 94, 0.1)); }
.report-metric-info { background: linear-gradient(135deg, #fff, rgba(59, 130, 246, 0.1)); }
.report-metric-warning,
.report-metric-gold { background: linear-gradient(135deg, #fff, rgba(245, 158, 11, 0.13)); }
.report-metric-danger { background: linear-gradient(135deg, #fff, rgba(239, 68, 68, 0.1)); }

.report-metric-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.report-metric-icon,
.report-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(45, 45, 45, 0.13);
}

.report-card-icon {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 16px;
  background: #A46B1F;
  color: #fff;
  transition: transform 250ms ease, background 250ms ease, box-shadow 250ms ease;
}

.report-metric-icon svg,
.report-card-icon svg {
  width: 24px;
  height: 24px;
}

.report-card-icon svg {
  width: 28px;
  height: 28px;
}

.report-metric span {
  display: block;
  color: #6F665E;
  font-size: 12px;
  font-weight: 800;
}

.report-metric strong {
  display: block;
  margin-top: 5px;
  color: #151515;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 900;
}

.report-metric small {
  display: block;
  margin-top: 7px;
  color: #6F665E;
  font-size: 12px;
  font-weight: 600;
}

.report-metric em {
  position: static;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(34, 197, 94, 0.12);
  color: #12833C;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.report-sparkline {
  width: 100%;
  height: 34px;
  color: var(--primary);
  opacity: 0.9;
}

.report-metric-success .report-sparkline { color: #22C55E; }
.report-metric-info .report-sparkline { color: #3B82F6; }
.report-metric-warning .report-sparkline,
.report-metric-gold .report-sparkline { color: #F59E0B; }
.report-metric-danger .report-sparkline { color: #EF4444; }

.report-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.report-category-card {
  min-height: 230px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(45, 45, 45, 0.07);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.report-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.report-card-head > span {
  max-width: 112px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #FAF7F2;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.report-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(164, 107, 31, 0.35);
  box-shadow: 0 24px 60px rgba(45, 45, 45, 0.11);
}

.report-category-card:hover .report-card-icon {
  background: #8A5A16;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(164, 107, 31, 0.24);
}

.report-category-card h3 {
  margin: 0;
  color: #151515;
  font-size: 16px;
}

.report-category-card p {
  margin: 8px 0 0;
  color: #6F665E;
  font-size: 13px;
  line-height: 1.5;
}

.report-category-card .btn {
  width: 100%;
  margin-top: auto;
  justify-content: space-between;
  color: var(--primary);
  border-radius: 13px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.report-category-card .btn:hover,
.reports-page .btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 28px rgba(164, 107, 31, 0.14);
}

.report-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.report-chart-card {
  min-height: 300px;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(45, 45, 45, 0.07);
  animation: reportChartIn 450ms ease both;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.report-chart-card:hover {
  transform: translateY(-4px);
  border-color: rgba(164, 107, 31, 0.28);
  box-shadow: 0 24px 60px rgba(45, 45, 45, 0.1);
}

.payment-distribution-card {
  grid-column: auto;
}

.room-type-revenue-card {
  grid-column: span 2;
}

.chart-unit {
  min-width: 44px;
  min-height: 30px;
  border-radius: 999px;
  background: rgba(164, 107, 31, 0.1);
  color: var(--primary);
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.report-line-chart {
  height: 210px;
  display: grid;
  align-items: end;
}

.report-line-chart svg {
  width: 100%;
  height: 100%;
  animation: reportChartIn 600ms ease both;
}

.room-type-chart {
  display: grid;
  gap: 22px;
  padding: 24px 4px 4px;
}

.room-type-chart p {
  margin: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 14px;
}

.room-type-chart span,
.room-type-chart strong {
  font-size: 13px;
  font-weight: 900;
}

.room-type-chart span { color: #5E554D; }
.room-type-chart strong { color: var(--primary); text-align: right; }

.room-type-chart i {
  height: 18px;
  width: var(--bar);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #F59E0B);
  box-shadow: 0 10px 24px rgba(164, 107, 31, 0.16);
}

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

.reports-table-card,
.report-side-card,
.report-mini-card {
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(45, 45, 45, 0.07);
}

.report-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(4, minmax(130px, 0.8fr));
  gap: 10px;
  align-items: center;
}

.shift-report-filter-bar {
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px);
}

.report-filter-card {
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(45, 45, 45, 0.07);
  padding: 18px;
}

.report-filter-card .card-title {
  margin-bottom: 14px;
}

.report-filter-bar .control,
.report-filter-bar .select,
.report-filter-actions .btn {
  min-height: 44px;
  border-radius: 14px;
}

.report-search {
  min-width: 0;
}

.report-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.report-filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 0;
}

.report-filter-actions .btn {
  padding-inline: 14px;
  box-shadow: 0 10px 24px rgba(45, 45, 45, 0.06);
}

.report-export {
  color: var(--primary);
  background: #fff;
}

.reports-table {
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
}

.reports-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #F6F1EA;
  color: #5A5148;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.reports-table th:first-child { border-top-left-radius: 14px; }
.reports-table th:last-child { border-top-right-radius: 14px; }

.reports-table th,
.reports-table td {
  padding: 18px 18px;
}

.reports-table td {
  height: 72px;
}

.reports-table tbody tr:nth-child(even) td {
  background: #FEFCFA;
}

.reports-table tbody tr:hover td {
  background: rgba(164, 107, 31, 0.055);
  transform: translateY(-1px);
}

.reports-table tbody td {
  transition: background 250ms ease, transform 250ms ease;
}

.reports-table td small {
  display: block;
  margin-top: 6px;
  color: #6F665E;
  font-size: 12px;
}

.report-details-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin: -18px -18px 0;
  border-bottom: 1px solid #E7DFD5;
  background: linear-gradient(180deg, #FFFDF9 0%, #FAF7F2 100%);
}

.report-details-table-head h3 {
  margin: 0;
  color: var(--primary);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.report-details-table-head strong {
  color: #3A342E;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.report-detail-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding: 16px 0;
  align-items: end;
}

.report-detail-filters label {
  display: grid;
  gap: 7px;
}

.report-detail-filters label span {
  color: #6F665E;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.report-detail-filters .control,
.report-detail-filters .select {
  min-height: 44px;
  border-radius: 12px;
  background: #fff;
}

.report-detail-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.report-detail-filter-actions .btn {
  min-height: 44px;
  border-radius: 12px;
  white-space: nowrap;
}

.report-details-table {
  min-width: 1180px;
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
}

.report-details-table th,
.report-details-table td {
  border: 1px solid #E7DFD5;
  padding: 12px 12px;
  height: auto;
  vertical-align: middle;
  white-space: nowrap;
}

.report-details-table th {
  position: static;
  background: #FBF6EE;
  color: #2D2D2D;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.report-details-table th:first-child,
.report-details-table th:last-child {
  border-radius: 0;
}

.report-details-table td {
  color: #2D2D2D;
  font-size: 13px;
  font-weight: 700;
}

.report-details-table td:nth-child(3) {
  white-space: normal;
  min-width: 180px;
}

.report-details-table tbody tr:nth-child(even) td {
  background: #FEFCFA;
}

.report-details-table tbody tr:hover td {
  background: rgba(164, 107, 31, 0.06);
  transform: none;
}

.error-state {
  max-width: 640px;
  margin: 80px auto;
  text-align: center;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(45, 45, 45, .08);
}

.error-state h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 36px;
}

.error-state p {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 700;
}

.shift-reports-table {
  min-width: 1180px;
}

.report-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.report-status.status-active {
  background: #DCFCE7;
  color: #12833C;
}

.report-status.status-closed {
  background: #F1ECE6;
  color: #5E554D;
}

.export-format {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #F1ECE6;
  color: #5E554D;
  font-size: 12px;
  font-weight: 900;
}

.report-status.completed {
  color: #12833C;
  background: rgba(34, 197, 94, 0.13);
}

.report-status.pending {
  color: #9A5B00;
  background: rgba(245, 158, 11, 0.16);
}

.report-status.failed {
  color: #B91C1C;
  background: rgba(239, 68, 68, 0.12);
}

.reports-aside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: calc(var(--topbar) + 18px);
}

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

.quick-export-grid .btn {
  justify-content: flex-start;
}

.report-generate-box {
  display: grid;
  gap: 10px;
}

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

.report-side-list p {
  margin: 0;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
}

.report-side-list p > span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(164, 107, 31, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.report-side-list svg {
  width: 16px;
  height: 16px;
}

.report-side-list strong {
  color: #151515;
  font-size: 13px;
}

.report-side-list small {
  display: block;
  margin-top: 4px;
  color: #6F665E;
  font-size: 12px;
  font-weight: 600;
}

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

.report-mini-card h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.report-mini-card p {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.report-mini-card span {
  color: #6F665E;
  font-size: 13px;
}

.report-mini-card strong {
  color: #151515;
  font-size: 13px;
  text-align: right;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(45, 45, 45, 0.44);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.modal-large { width: min(1040px, 100%); }
.modal-head, .modal-body, .modal-foot { padding: 20px; }
.modal-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-body { display: grid; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--border); }

.walkin-modal {
  width: min(1180px, 100%);
  border-radius: 16px;
  background: #FAF7F2;
}

.walkin-modal-head {
  padding: 24px 28px 18px;
  background: #fff;
  align-items: flex-start;
}

.walkin-modal-head h3 {
  color: #2D2D2D;
  font-size: 24px;
  font-weight: 900;
}

.walkin-modal-head .help {
  margin-top: 6px;
  color: #6B7280;
  font-weight: 700;
}

.walkin-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 28px;
  background: #fff;
  border-bottom: 1px solid #E7DFD5;
}

.walkin-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #E7DFD5;
  border-radius: 14px;
  color: #6B7280;
  background: #FAF7F2;
  font-size: 12px;
  font-weight: 800;
}

.walkin-step span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #E7DFD5;
  color: #6B6258;
}

.walkin-step.active {
  border-color: rgba(164, 107, 31, 0.42);
  background: rgba(164, 107, 31, 0.08);
  color: #2D2D2D;
}

.walkin-step.active span {
  background: #A46B1F;
  color: #fff;
}

.walkin-modal-body {
  padding: 28px;
}

.walkin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: start;
}

.walkin-panel {
  background: #fff;
  border: 1px solid #E7DFD5;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(45, 45, 45, 0.06);
  padding: 22px;
}

.walkin-section-title {
  margin-bottom: 20px;
}

.walkin-section-title h3 {
  margin: 0;
  color: #2D2D2D;
  font-size: 18px;
  font-weight: 900;
}

.walkin-section-title p {
  margin: 5px 0 0;
  color: #6B7280;
  font-size: 13px;
  font-weight: 600;
}

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

.walkin-full {
  grid-column: 1 / -1;
}

.walkin-modal .field label {
  color: #2D2D2D;
  font-size: 12px;
  font-weight: 900;
}

.walkin-modal .control,
.walkin-modal .select {
  min-height: 48px;
  border-radius: 12px;
  border-color: #E7DFD5;
  color: #2D2D2D;
  font-weight: 700;
}

.walkin-modal .textarea {
  min-height: 112px;
  border-radius: 12px;
  border-color: #E7DFD5;
  color: #2D2D2D;
  font-weight: 700;
}

.walkin-uppercase-name input {
  text-transform: uppercase;
}

.walkin-paid-field input::placeholder {
  color: #9CA3AF;
  opacity: 1;
  font-weight: 700;
}

.walkin-input-icon,
.walkin-phone-field,
.walkin-currency-input {
  position: relative;
  display: flex;
  align-items: center;
}

.walkin-input-icon > svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #A46B1F;
  z-index: 1;
  pointer-events: none;
}

.walkin-input-icon .control,
.walkin-input-icon .select {
  padding-left: 42px;
}

.walkin-phone-field span {
  height: 48px;
  min-width: 76px;
  display: grid;
  place-items: center;
  border: 1px solid #E7DFD5;
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #FAF7F2;
  color: #A46B1F;
  font-weight: 900;
}

.walkin-phone-field .control {
  border-radius: 0 12px 12px 0;
}

.walkin-hidden-fields {
  display: none;
}

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

.walkin-summary-grid div,
.walkin-total-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid #E7DFD5;
  border-radius: 12px;
  background: #FAF7F2;
}

.walkin-summary-grid span,
.walkin-total-list span {
  color: #6B7280;
  font-size: 12px;
  font-weight: 800;
}

.walkin-summary-grid strong,
.walkin-total-list strong {
  color: #2D2D2D;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.walkin-total-list {
  margin-top: 16px;
}

.walkin-total-list .walkin-grand-total {
  background: rgba(164, 107, 31, 0.08);
  border-color: rgba(164, 107, 31, 0.28);
}

.walkin-payment-method {
  margin-top: 18px;
}

.walkin-split-toggle {
  margin-top: 14px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #2D2D2D;
  font-size: 13px;
  font-weight: 900;
}

.walkin-split-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #A46B1F;
}

.walkin-split-panel {
  margin-top: 10px;
  display: grid;
  gap: 9px;
}

.walkin-split-panel[hidden] {
  display: none;
}

.walkin-split-panel label {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #E7DFD5;
  border-radius: 12px;
  background: #FAF7F2;
}

.walkin-split-panel label > span {
  color: #2D2D2D;
  font-size: 12px;
  font-weight: 900;
}

.walkin-split-panel .control {
  min-height: 40px;
  padding-right: 48px;
  background: #fff;
}

.walkin-split-panel em {
  position: absolute;
  right: 20px;
  color: #A46B1F;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.walkin-native-payment {
  display: none;
}

.walkin-payment-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.walkin-payment-cards button {
  min-height: 74px;
  border: 1px solid #E7DFD5;
  border-radius: 14px;
  background: #fff;
  color: #2D2D2D;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 6px;
  font-weight: 900;
  transition: 250ms ease;
}

.walkin-payment-cards button svg {
  width: 22px;
  height: 22px;
  color: #A46B1F;
}

.walkin-payment-cards button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(45, 45, 45, 0.08);
}

.walkin-payment-cards button.active {
  border-color: #A46B1F;
  background: rgba(164, 107, 31, 0.1);
  box-shadow: 0 0 0 3px rgba(164, 107, 31, 0.12);
}

.walkin-paid-field {
  margin-top: 18px;
}

.walkin-discount-field {
  margin-top: 12px;
}

.walkin-currency-input .control {
  padding-right: 68px;
}

.walkin-currency-input span {
  position: absolute;
  right: 14px;
  color: #A46B1F;
  font-size: 12px;
  font-weight: 900;
}

.walkin-balance-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(164, 107, 31, 0.24);
  background: linear-gradient(135deg, rgba(164, 107, 31, 0.12), rgba(250, 247, 242, 0.95));
}

.walkin-balance-box span {
  display: block;
  color: #6B7280;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.walkin-balance-box strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  color: #2D2D2D;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.walkin-balance-box strong span {
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
  text-transform: none;
}

.returning-guest-status {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid var(--border);
  background: #FFFCF8;
  color: var(--muted);
}

.returning-guest-status.success {
  border-color: rgba(14, 165, 233, .30);
  background: linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(20, 184, 166, .10));
  color: #075985;
}

.returning-guest-status.warning {
  border-color: rgba(245, 158, 11, .35);
  background: rgba(245, 158, 11, .12);
  color: #9A5B00;
}

.returning-guest-status.loading,
.returning-guest-status.muted {
  background: rgba(164, 107, 31, .08);
  color: var(--primary-dark);
}

.returning-guest-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(14, 165, 233, .28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(240, 249, 255, .95), rgba(240, 253, 250, .92)),
    #fff;
  box-shadow: 0 14px 30px rgba(14, 165, 233, .10);
}

.returning-guest-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.returning-guest-card-head strong {
  display: block;
  color: #0F3F5F;
  font-size: 16px;
}

.returning-guest-card-head span {
  display: block;
  margin-top: 3px;
  color: #0F766E;
  font-weight: 800;
}

.returning-guest-card-head em {
  padding: 6px 10px;
  border-radius: 999px;
  color: #075985;
  background: rgba(14, 165, 233, .14);
  font-style: normal;
  font-weight: 900;
}

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

.returning-guest-card-grid span {
  padding: 10px;
  border: 1px solid rgba(14, 165, 233, .20);
  border-radius: 12px;
  color: #64748B;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, .84);
}

.returning-guest-card-grid strong {
  display: block;
  margin-top: 4px;
  color: #0F3F5F;
  font-size: 13px;
}

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

.returning-guest-card-actions button,
.returning-guest-card-actions a,
.returning-guest-conflict button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(14, 165, 233, .26);
  border-radius: 12px;
  background: #fff;
  color: #0F3F5F;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.returning-guest-card-actions button:hover,
.returning-guest-card-actions a:hover,
.returning-guest-conflict button:hover {
  transform: translateY(-1px);
  border-color: #0EA5E9;
  color: #0284C7;
  box-shadow: 0 8px 18px rgba(14, 165, 233, .12);
}

.returning-guest-conflict {
  display: grid;
  gap: 8px;
}

.returning-guest-conflict button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: auto;
  padding: 10px 12px;
}

.returning-guest-conflict span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.shift-start-page {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.shift-start-card {
  width: min(760px, 100%);
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(45, 45, 45, .10);
}

.shift-start-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.shift-start-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.shift-start-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.shift-start-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(164, 107, 31, .12);
  color: var(--primary-dark);
  font-weight: 900;
}

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

.shift-info-grid > div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #FFFCF8;
}

.shift-info-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shift-info-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 16px;
}

.shift-info-wide {
  grid-column: 1 / -1;
}

.shift-start-form {
  display: grid;
  gap: 14px;
}

.shift-start-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.shift-report-grid {
  margin-bottom: 18px;
}

.shift-total-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}

.shift-total-card span {
  color: var(--muted);
  font-weight: 900;
}

.shift-total-card strong {
  color: var(--text);
  font-size: 28px;
}

.shift-report-layout {
  align-items: start;
  margin-top: 18px;
}

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

.shift-activity-list article {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #FFFCF8;
}

.shift-activity-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(164, 107, 31, .12);
}

.shift-activity-list strong {
  display: block;
  color: var(--text);
}

.shift-activity-list p {
  margin: 4px 0;
  color: var(--muted);
  font-weight: 700;
}

.shift-activity-list small {
  color: var(--muted);
  font-weight: 800;
}

.shift-activity-list em {
  color: var(--primary-dark);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.shift-notes-card {
  margin-top: 18px;
}

.shift-notes-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shift-notes-card p {
  margin: 8px 0 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.6;
}

.shift-print-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.shift-print-page {
  width: 297mm;
  min-height: 210mm;
  margin: 0 auto;
  padding: 14mm;
  background: #fff;
  color: #111;
  border: 1px solid #E0D7CC;
  box-shadow: 0 24px 70px rgba(45, 45, 45, .12);
  font-family: Inter, Arial, sans-serif;
}

.shift-print-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #111;
}

.shift-print-brand {
  min-width: 0;
}

.shift-print-header h1 {
  margin: 0;
  color: #A46B1F;
  font-size: 24px;
  line-height: 1.1;
}

.shift-print-header p {
  margin: 5px 0 0;
  color: #111;
  font-size: 16px;
  font-weight: 800;
}

.shift-print-number strong,
.shift-print-number span {
  display: block;
  text-align: right;
}

.shift-print-number strong {
  font-size: 18px;
}

.shift-print-number span {
  margin-top: 5px;
  color: #12833C;
  font-weight: 900;
}

.shift-print-header-meta {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 18px;
  margin: 12px 0 0;
}

.shift-print-header-meta div {
  display: grid;
  gap: 2px;
}

.shift-print-header-meta dt {
  color: #555;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.shift-print-header-meta dd {
  margin: 0;
  color: #111;
  font-size: 12px;
  font-weight: 900;
}

.shift-print-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #111;
  border-bottom: 0;
  margin-top: 12px;
}

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

.shift-print-summary div {
  min-height: 48px;
  padding: 8px 10px;
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
}

.shift-print-summary div:nth-child(4n) {
  border-right: 0;
}

.shift-print-summary span {
  display: block;
  color: #555;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.shift-print-summary strong {
  display: block;
  margin-top: 5px;
  color: #111;
  font-size: 14px;
  line-height: 1.25;
}

.shift-print-section {
  margin-top: 14px;
}

.shift-end-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #E7DFD5;
  border-radius: 14px;
  background: #FFFCF8;
}

.shift-end-panel h2 {
  margin: 0 0 4px;
  color: #111;
  font-size: 16px;
}

.shift-end-panel p {
  margin: 0;
  color: #6B6258;
  font-weight: 700;
}

.shift-end-panel form {
  display: grid;
  gap: 12px;
}

.shift-end-panel .btn {
  justify-self: end;
}

.shift-end-panel-bottom {
  margin-top: 22px;
  margin-bottom: 4px;
}

.shift-print-section h2,
.shift-print-notes h2 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #111;
}

.shift-print-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #D9D9D9;
  background: #fff;
  font-size: 9pt;
  line-height: 1.25;
}

.shift-print-table th,
.shift-print-table td {
  padding: 8px 6px;
  border: 1px solid #D9D9D9;
  text-align: left;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: clip;
  word-break: normal;
}

.shift-print-table th {
  background: #F6F1EA;
  color: #111;
  font-size: 9pt;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.shift-print-table tbody tr:nth-child(even) {
  background: #FAFAFA;
}

.shift-payments-table .shift-col-index { width: 5%; }
.shift-payments-table .shift-col-receipt { width: 18%; }
.shift-payments-table .shift-col-guest { width: 30%; }
.shift-payments-table .shift-col-method { width: 15%; }
.shift-payments-table .shift-col-amount { width: 12%; }
.shift-payments-table .shift-col-date { width: 20%; }

.shift-payments-table .shift-payment-amount {
  text-align: right;
}

.shift-payments-table .col-amount {
  text-align: left;
}

.shift-payments-table .guest-cell,
.shift-payments-table .shift-payment-guest {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shift-payments-table .receipt-cell,
.shift-payments-table .amount-cell {
  white-space: nowrap;
}

.shift-payments-table .date-cell {
  white-space: normal;
  line-height: 1.2;
}

.shift-payments-table .date-cell span {
  display: block;
  white-space: nowrap;
}

.shift-print-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.shift-print-notes > div {
  min-height: 78px;
  padding: 10px;
  border: 1px solid #111;
}

.shift-print-notes p {
  margin: 0;
  color: #111;
  font-size: 12px;
  line-height: 1.5;
}

.shift-print-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  font-size: 9pt;
  font-weight: 800;
}

.shift-premium-report {
  width: min(100%, 277mm);
  min-height: 190mm;
  padding: 8mm;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #E7DFD5;
}

.shift-premium-report *,
.shift-premium-report *::before,
.shift-premium-report *::after {
  box-sizing: border-box;
}

.shift-premium-header {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr .95fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #A46B1F;
}

.shift-premium-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.shift-premium-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
}

.shift-premium-brand h1 {
  margin: 0;
  color: #A46B1F;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.shift-premium-brand p {
  margin: 3px 0 0;
  color: #2D2D2D;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.shift-premium-center {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
  padding: 8px;
  border-radius: 12px;
  background: #FAF7F2;
  border: 1px solid #E7DFD5;
}

.shift-premium-center span,
.shift-premium-meta em,
.shift-money-cards span,
.shift-count-cards span,
.shift-financial-summary span {
  display: block;
  color: #6B6258;
  font-size: 8pt;
  font-weight: 900;
  text-transform: uppercase;
}

.shift-premium-center strong {
  display: block;
  margin-top: 2px;
  color: #2D2D2D;
  font-size: 9pt;
  line-height: 1.15;
}

.shift-premium-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.shift-premium-meta > strong {
  color: #111;
  font-size: 18px;
  line-height: 1.1;
}

.shift-status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .12);
  color: #12833C;
  font-size: 10pt;
  font-weight: 900;
}

.shift-money-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.shift-money-cards div {
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid #E7DFD5;
  border-top: 4px solid #A46B1F;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(45, 45, 45, .07);
}

.shift-money-cards strong {
  display: block;
  margin-top: 4px;
  color: #2D2D2D;
  font-size: 18px;
  line-height: 1;
}

.shift-count-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 7px;
}

.shift-count-cards div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 7px;
  border: 1px solid #E7DFD5;
  border-radius: 10px;
  background: #FFFCF8;
}

.shift-count-cards svg {
  width: 18px;
  height: 18px;
  color: #A46B1F;
  grid-row: span 2;
}

.shift-count-cards strong {
  color: #2D2D2D;
  font-size: 16px;
  line-height: 1;
}

.shift-print-section {
  margin-top: 8px;
}

.shift-print-section h2 {
  margin: 0 0 4px;
  color: #2D2D2D;
  font-size: 16px;
}

.shift-print-table {
  border-color: #DDD;
  font-size: 9pt;
}

.shift-print-table th {
  background: #F6F1EA;
  font-size: 10pt;
  font-weight: 900;
}

.shift-print-table th,
.shift-print-table td {
  padding: 5px 6px;
  border-color: #DDD;
  line-height: 1.18;
}

.shift-payments-table .shift-col-index { width: 4%; }
.shift-payments-table .shift-col-receipt { width: 15%; }
.shift-payments-table .shift-col-guest { width: 28%; }
.shift-payments-table .shift-col-method { width: 12%; }
.shift-payments-table .shift-col-amount { width: 10%; }
.shift-payments-table .shift-col-date { width: 12%; }
.shift-payments-table .shift-col-time { width: 10%; }
.shift-payments-table .shift-col-user { width: 9%; }

.shift-payments-table {
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
  border-collapse: collapse;
}

.shift-payments-table.payments-table,
.shift-premium-report .payments-table,
.shift-premium-report table {
  min-width: 0 !important;
  max-width: 100% !important;
}

.shift-payments-table th,
.shift-payments-table td {
  border: 1px solid #D9D9D9;
  padding: 8px 8px;
  vertical-align: middle;
}

.shift-payments-table .guest-cell,
.shift-payments-table .method-cell {
  display: table-cell;
  align-items: initial;
  gap: 0;
}

.shift-payments-table .receipt-cell,
.shift-payments-table .method-cell,
.shift-payments-table .date-cell,
.shift-payments-table .time-cell,
.shift-payments-table .user-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.shift-payments-table .guest-cell {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}

.shift-payments-table td:not(.guest-cell),
.shift-activity-table td:not(:nth-child(4)) {
  white-space: nowrap;
}

.shift-payments-table .amount-cell,
.shift-activity-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.shift-activity-table th:nth-child(1) { width: 10%; }
.shift-activity-table th:nth-child(2) { width: 20%; }
.shift-activity-table th:nth-child(3) { width: 12%; }
.shift-activity-table th:nth-child(4) { width: 43%; }
.shift-activity-table th:nth-child(5) { width: 15%; }

.shift-print-notes {
  gap: 8px;
  margin-top: 8px;
}

.shift-print-notes > div {
  min-height: 60px;
  max-height: 60px;
  overflow: hidden;
  padding: 7px 9px;
  border-color: #E7DFD5;
  border-radius: 10px;
  background: #FFFCF8;
}

.shift-print-notes h2 {
  margin: 0 0 4px;
  font-size: 11px;
  color: #6B6258;
  text-transform: uppercase;
}

.shift-print-notes p {
  font-size: 9pt;
  line-height: 1.25;
}

.shift-financial-summary {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  border: 1px solid #DDD;
  border-radius: 10px;
  overflow: hidden;
}

.shift-financial-summary div {
  min-height: 44px;
  padding: 6px;
  background: #fff;
  border-right: 1px solid #DDD;
}

.shift-financial-summary div:last-child {
  border-right: 0;
}

.shift-financial-summary strong {
  display: block;
  margin-top: 4px;
  color: #2D2D2D;
  font-size: 10pt;
  line-height: 1;
}

.shift-financial-summary .positive {
  color: #16A34A;
}

.shift-financial-summary .negative {
  color: #DC2626;
}

.shift-print-footer div {
  min-height: 30px;
  padding-top: 18px;
  border-bottom: 1px solid #111;
  text-align: center;
}

.walkin-modal-foot {
  align-items: center;
  padding: 18px 28px 24px;
  background: #fff;
}

.walkin-modal-foot .form-alert {
  margin-right: auto;
}

.checkout-modal {
  width: min(980px, 100%);
  border-radius: 16px;
  background: #FAF7F2;
  overflow: auto;
}

.checkout-modal-head {
  padding: 26px 30px 22px;
  background: #fff;
  align-items: flex-start;
}

.checkout-modal-head h3 {
  color: #2D2D2D;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
}

.checkout-modal-head .help {
  margin-top: 8px;
  color: #6B7280;
  font-size: 13px;
  font-weight: 700;
}

.checkout-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #6B7280;
}

.checkout-modal-body {
  padding: 28px 30px;
}

.checkout-hidden-fields {
  display: none;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.checkout-left {
  display: grid;
  gap: 18px;
}

.checkout-panel {
  background: #fff;
  border: 1px solid #E7DFD5;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(45, 45, 45, 0.06);
  padding: 22px;
}

.checkout-section-title {
  margin-bottom: 14px;
}

.checkout-section-title h3 {
  margin: 0;
  color: #2D2D2D;
  font-size: 18px;
  font-weight: 900;
}

.checkout-info-list {
  display: grid;
}

.checkout-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 13px 0;
  border-bottom: 1px solid #E7DFD5;
}

.checkout-info-row:last-child {
  border-bottom: 0;
}

.checkout-info-row span {
  color: #6B7280;
  font-size: 13px;
  font-weight: 800;
}

.checkout-info-row strong {
  color: #2D2D2D;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.checkout-penalty-row span,
.checkout-penalty-row strong {
  color: #EF4444;
}

.checkout-discount-row span,
.checkout-discount-row strong {
  color: #16A34A;
}

.checkout-payment-panel {
  position: sticky;
  top: 18px;
}

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

.checkout-actions button,
.checkout-actions a {
  position: relative;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #A46B1F;
  border-radius: 12px;
  background: #fff;
  color: #7A4A12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: 250ms ease;
}

.checkout-actions button svg,
.checkout-actions a svg {
  width: 17px;
  height: 17px;
}

.checkout-actions button:hover,
.checkout-actions a:hover {
  transform: translateY(-1px);
  background: rgba(164, 107, 31, 0.08);
  box-shadow: 0 12px 24px rgba(164, 107, 31, 0.12);
}

.note-blink-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #EF4444;
  box-shadow: 0 0 0 rgba(239, 68, 68, 0.35);
  animation: noteBlinkPulse 1.15s infinite;
}

@keyframes noteBlinkPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.35);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

.checkout-balance-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(164, 107, 31, 0.24);
  background: linear-gradient(135deg, rgba(164, 107, 31, 0.11), rgba(250, 247, 242, 0.98));
}

.checkout-balance-box span {
  display: block;
  color: #6B7280;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.checkout-balance-box strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 9px;
  color: #2D2D2D;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.checkout-balance-box strong span {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.checkout-balance-box.is-paid strong {
  color: #22C55E;
}

.checkout-balance-box.is-due {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(250, 247, 242, 0.98));
}

.checkout-balance-box.is-due strong {
  color: #EF4444;
}

.checkout-balance-box.is-due span {
  color: #B91C1C;
}

.checkout-pay-section {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.checkout-pay-section label {
  color: #2D2D2D;
  font-size: 12px;
  font-weight: 900;
}

.checkout-amount-input {
  position: relative;
}

.checkout-amount-input .control {
  min-height: 48px;
  padding-right: 68px;
  border-color: #E7DFD5;
  border-radius: 12px;
  color: #2D2D2D;
  font-weight: 800;
}

.checkout-pay-section .select {
  min-height: 48px;
  width: 100%;
  border-color: #E7DFD5;
  border-radius: 12px;
  background-color: #fff;
  color: #2D2D2D;
  font-weight: 800;
}

.checkout-amount-input span {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #A46B1F;
  font-size: 12px;
  font-weight: 900;
}

.checkout-pay-btn {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(164, 107, 31, 0.12);
  color: #7A4A12;
  font-weight: 900;
  cursor: pointer;
  transition: 250ms ease;
}

.checkout-pay-btn:hover {
  transform: translateY(-1px);
  background: rgba(164, 107, 31, 0.18);
  box-shadow: 0 12px 24px rgba(164, 107, 31, 0.14);
}

.checkout-discount-input .control {
  border-color: rgba(34, 197, 94, 0.32);
}

.checkout-discount-btn {
  min-height: 42px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.1);
  color: #15803D;
  font-weight: 900;
  cursor: pointer;
  transition: 250ms ease;
}

.checkout-discount-btn:hover {
  transform: translateY(-1px);
  background: rgba(34, 197, 94, 0.16);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.12);
}

.checkout-required {
  display: none;
}

.checkout-modal-foot {
  align-items: center;
  padding: 18px 30px 24px;
  background: #fff;
}

.checkout-cancel {
  border-color: #A46B1F;
  color: #7A4A12;
}

.checkout-submit {
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
}

.checkout-submit svg {
  width: 18px;
  height: 18px;
}

.checkout-action-modal {
  width: min(560px, 100%);
  border-radius: 16px;
  background: #FAF7F2;
}

.checkout-action-head {
  padding: 22px 24px 18px;
  background: #fff;
  align-items: flex-start;
}

.checkout-action-head h3 {
  margin: 0;
  color: #2D2D2D;
  font-size: 21px;
  font-weight: 900;
}

.checkout-action-head .help {
  margin-top: 6px;
  color: #6B7280;
  font-size: 13px;
  font-weight: 700;
}

.checkout-action-body {
  padding: 22px 24px;
  gap: 16px;
}

.checkout-action-body label {
  display: grid;
  gap: 8px;
}

.checkout-action-body label > span {
  color: #2D2D2D;
  font-size: 12px;
  font-weight: 900;
}

.checkout-action-body .control,
.checkout-action-body .textarea {
  border-color: #E7DFD5;
  border-radius: 12px;
  color: #2D2D2D;
  font-weight: 800;
}

.checkout-action-body .control {
  min-height: 48px;
}

.checkout-action-body .textarea {
  min-height: 118px;
}

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

.checkout-mini-summary div {
  padding: 14px;
  border: 1px solid rgba(164, 107, 31, 0.22);
  border-radius: 14px;
  background: rgba(164, 107, 31, 0.08);
}

.checkout-mini-summary span {
  display: block;
  color: #6B7280;
  font-size: 12px;
  font-weight: 900;
}

.checkout-mini-summary strong {
  display: block;
  margin-top: 6px;
  color: #2D2D2D;
  font-size: 18px;
  font-weight: 900;
}

.checkout-notes-history {
  display: grid;
  gap: 10px;
}

.checkout-notes-history article {
  padding: 13px 14px;
  border: 1px solid #E7DFD5;
  border-radius: 12px;
  background: #fff;
}

.checkout-notes-history p {
  margin: 0;
  color: #2D2D2D;
  font-weight: 800;
  line-height: 1.45;
}

.checkout-notes-history span {
  display: block;
  margin-top: 6px;
  color: #6B7280;
  font-size: 12px;
  font-weight: 700;
}

.checkout-notes-history article > strong {
  display: block;
  margin-top: 6px;
  color: #EF4444;
  font-size: 14px;
  font-weight: 900;
}

.checkout-notes-history .penalty-note {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.06);
}

.checkout-notes-history .empty-note p {
  color: #6B7280;
}

.booking-modal {
  position: relative;
  width: min(460px, 100%);
  max-height: 96vh;
  padding: 20px 32px 0;
  border-radius: 0;
  background: #FAFBFC;
  overflow: auto;
}

.booking-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #8A8178;
  display: grid;
  place-items: center;
}

.booking-close svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.booking-head {
  margin-bottom: 16px;
}

.booking-head span,
.booking-field label {
  display: block;
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.booking-head h3 {
  margin: 7px 0 0;
  color: #3E352F;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.booking-head h3 strong {
  color: var(--primary);
  font-weight: 400;
}

.booking-body {
  display: grid;
  gap: 10px;
}

.booking-field {
  display: grid;
  gap: 6px;
}

.booking-field input,
.booking-field select {
  width: 100%;
  height: 36px;
  border: 1px solid #D4DAE0;
  border-radius: 0;
  background: #fff;
  color: #2D2D2D;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.booking-field input::placeholder {
  color: #B8C0CA;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.booking-field input:focus,
.booking-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(164, 107, 31, 0.12);
}

.scan-id-btn {
  height: 32px;
  border: 1px solid #C9C3B8;
  border-radius: 0;
  background: #EFE9DE;
  color: #374151;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.booking-field small {
  color: #A29A91;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.booking-payment {
  border: 1px solid #D4DAE0;
  padding: 14px 14px 10px;
  display: grid;
  gap: 9px;
}

.booking-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.booking-total span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.booking-total strong {
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
}

.booking-total em {
  color: #8D8580;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.payment-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.payment-row span {
  color: #8D8580;
  font-size: 14px;
  font-weight: 900;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.payment-methods label {
  min-height: 34px;
  border: 1px solid #D4DAE0;
  background: #fff;
  color: #5E554D;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 160ms ease;
}

.payment-methods input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-methods span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.payment-methods label:has(input:checked) {
  border-color: var(--primary);
  background: #EFE9DE;
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.booking-payment p {
  margin: 0;
  color: #A29A91;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.booking-payment p strong:first-of-type {
  color: #12833C;
}

.booking-payment p strong:last-of-type {
  color: var(--primary);
}

.booking-actions {
  position: sticky;
  bottom: 0;
  margin: 12px -32px 0;
  padding: 10px 32px;
  background: #FAFBFC;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: flex-end;
}

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

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.auth-visual {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(45, 45, 45, 0.82), rgba(164, 107, 31, 0.55)),
    url("../images/lobby.svg") center / cover;
}
.auth-visual h1 { font-size: clamp(38px, 5vw, 68px); max-width: 720px; margin: 0; letter-spacing: -0.04em; }
.auth-visual p { max-width: 560px; line-height: 1.7; color: rgba(255,255,255,0.84); }
.auth-card-wrap { display: grid; place-items: center; padding: 32px; }
.auth-card { width: 100%; max-width: 390px; }
.auth-card .brand { border-bottom: 0; padding: 0 0 26px; }

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.error-card { max-width: 620px; text-align: center; padding: 42px; }
.error-code { font-size: clamp(72px, 15vw, 150px); line-height: 0.9; color: var(--primary); font-weight: 900; letter-spacing: -0.08em; }

.redirect-page { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; }
.brand-mark { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 900; font-size: 24px; }

.modern-auth .auth-card {
  max-width: 430px;
  text-align: left;
}

.auth-logo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: #FAF7F2;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.auth-logo img {
  width: 52px;
  height: 52px;
}

.auth-product-name {
  margin: 0;
  color: var(--primary);
  font-size: 30px;
  font-weight: 900;
}

.auth-product-subtitle {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.auth-card h2 {
  margin: 0;
  color: #151515;
  font-size: 28px;
}

.auth-card > p {
  margin: 8px 0 24px;
  color: var(--muted);
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-options a {
  color: var(--primary);
}

.user-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.user-stat {
  min-height: 118px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--soft-shadow);
}

.user-stat strong {
  display: block;
  color: #151515;
  font-size: 28px;
}

.user-stat span {
  display: block;
  color: #6F665E;
  font-size: 13px;
  font-weight: 900;
}

.user-stat p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.users-board,
.settings-section,
.profile-card,
.notification-center {
  box-shadow: var(--soft-shadow);
}

.users-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.users-toolbar > div:last-child {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.users-toolbar form,
.actions form {
  display: inline-flex;
  gap: 10px;
  margin: 0;
}

.users-toolbar textarea.control {
  min-height: 44px;
  width: min(360px, 100%);
}

.user-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.user-cell > span,
.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #D5963A);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.user-cell small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.role-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(164, 107, 31, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.role-badge.manager { background: rgba(164, 107, 31, 0.14); }
.role-badge.receptionist { background: rgba(59, 130, 246, 0.12); color: #1D4ED8; }
.role-badge.housekeeping { background: rgba(34, 197, 94, 0.12); color: #12833C; }
.role-badge.accountant { background: rgba(245, 158, 11, 0.16); color: #9A5B00; }
.danger-action:hover { color: var(--danger); border-color: var(--danger); }
.success-action:hover { color: var(--success); border-color: var(--success); }

.user-form-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.settings-permissions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.settings-permissions label {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.user-form-help {
  position: sticky;
  top: calc(var(--topbar) + 18px);
  box-shadow: var(--soft-shadow);
}

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

.settings-main,
.settings-aside {
  display: grid;
  gap: 16px;
}

.settings-aside {
  position: sticky;
  top: calc(var(--topbar) + 18px);
}

.settings-aside a {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: #5E554D;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  transition: 180ms ease;
}

.settings-aside a:hover {
  color: var(--primary);
  border-color: rgba(164, 107, 31, 0.35);
  background: rgba(164, 107, 31, 0.07);
  transform: translateY(-1px);
}

.settings-aside a.active,
.settings-aside a:focus-visible {
  color: var(--primary);
  border-color: rgba(164, 107, 31, 0.42);
  border-left: 4px solid var(--primary);
  background: rgba(164, 107, 31, 0.11);
  font-weight: 950;
  outline: none;
}

.settings-section-form {
  display: grid;
  gap: 16px;
}

.settings-image-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.settings-image-preview div {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #FBF8F4;
}

.settings-image-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-image-preview img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.settings-fields {
  display: grid;
  gap: 14px;
}

.logo-upload {
  min-height: 92px;
  border: 1px dashed rgba(164, 107, 31, 0.35);
  border-radius: var(--radius);
  background: #FCFAF7;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.logo-upload img {
  width: 54px;
  height: 54px;
}

.logo-upload strong,
.logo-upload span {
  display: block;
}

.logo-upload span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.settings-save {
  width: 100%;
}

.profile-page {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-card {
  position: sticky;
  top: calc(var(--topbar) + 18px);
  text-align: center;
}

.profile-avatar {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  font-size: 30px;
}

.profile-card h3 {
  margin: 0;
  font-size: 20px;
}

.profile-card p {
  margin: 7px 0 14px;
  color: var(--muted);
}

.profile-card .btn {
  width: 100%;
  margin-top: 18px;
}

.profile-main {
  display: grid;
  gap: 16px;
}

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

.activity-list p {
  margin: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.activity-list svg {
  color: #12833C;
}

.activity-list strong {
  color: #151515;
  font-size: 12px;
}

.notification-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 140px;
  gap: 10px;
  margin-bottom: 16px;
}

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

.notification-item {
  min-height: 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  transition: 180ms ease;
}

.notification-item:hover {
  border-color: rgba(164, 107, 31, 0.35);
  transform: translateY(-1px);
}

.notification-item.unread {
  background: rgba(164, 107, 31, 0.05);
}

.notification-item > span {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(164, 107, 31, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.notification-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.modern-error {
  max-width: 680px;
}

.error-illustration {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  margin: 0 auto 20px;
  background: rgba(164, 107, 31, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.error-illustration.danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.error-illustration svg {
  width: 44px;
  height: 44px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 1180px) {
  :root { --sidebar: 240px; }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk-filter-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk-search-field { grid-column: 1 / -1; }
  .hk-bottom { grid-template-columns: 1fr; }
  .guest-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guest-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-filter-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-search-field { grid-column: 1 / -1; }
  .guest-layout { grid-template-columns: 1fr; }
  .guest-detail { position: static; }
  .payment-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payments-workspace { grid-template-columns: 1fr; }
  .payments-aside { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payment-filter-bar { grid-template-columns: minmax(260px, 1fr) repeat(2, 140px); }
  .payment-filter-bar .select,
  .payment-filter-bar .btn { width: 100%; }
  .payment-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payments-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-search-box,
  .payment-filter-actions { grid-column: 1 / -1; }
  .report-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reports-workspace { grid-template-columns: 1fr; }
  .reports-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-filter-row { grid-template-columns: 1fr; }
  .report-filter-actions { justify-content: flex-start; }
  .report-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-search { grid-column: 1 / -1; }
  .report-filter-bar .select { width: 100%; }
  .user-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-layout,
  .profile-page,
  .user-form-page { grid-template-columns: 1fr; }
  .settings-aside,
  .profile-card,
  .user-form-help { position: static; }
  .settings-aside {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .settings-aside a {
    flex: 0 0 auto;
  }
  .toolbar.room-filter-bar {
    grid-template-columns: 1fr;
  }
  .toolbar-right.room-filter-controls {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }
  .room-filter-controls .select,
  .room-filter-controls .btn {
    width: 100%;
  }
  .billing-info-grid,
  .invoice-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .billing-main-grid {
    grid-template-columns: 1fr;
  }
  .billing-summary-card {
    position: static;
  }
  .billing-filter-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .billing-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root { --sidebar: 0px; --topbar: 72px; }
  .app-shell { padding-left: 0; }
  body.sidebar-collapsed .sidebar { transform: translateX(-100%); }
  .sidebar { transform: translateX(-100%); width: 280px; }
  body.sidebar-open .sidebar { transform: translateX(0); box-shadow: var(--shadow); }
  .topbar { left: 0; padding: 0 16px; }
  .menu-toggle { display: inline-grid; }
  .user-menu div, .clock { display: none; }
  .content { padding: 18px; }
  .page-header { flex-direction: column; }
  .grid-5, .grid-4, .grid-3, .grid-2, .detail-grid, .form-grid, .form-grid-3, .auth-page { grid-template-columns: 1fr; }
  .walkin-layout,
  .checkout-layout { grid-template-columns: 1fr; }
  .walkin-modal-body { padding: 20px; }
  .checkout-modal-body { padding: 20px; }
  .checkout-payment-panel { position: static; }
  .walkin-steps { padding: 16px 20px; }
  .reports-layout { grid-template-columns: 1fr; }
  .hk-toolbar { align-items: stretch; flex-direction: column; }
  .hk-tabs { overflow-x: auto; }
  .hk-tools, .hk-tools .search { width: 100%; }
  .hk-hero { flex-direction: column; }
  .hk-add-task { width: 100%; justify-content: center; }
  .guest-table-top { flex-direction: column; }
  .guest-table-top .search { max-width: none; width: 100%; }
  .guest-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-hero,
  .guest-list-head {
    align-items: stretch;
    flex-direction: column;
  }
  .guest-hero .btn,
  .guest-list-head .btn {
    width: 100%;
    justify-content: center;
  }
  .guest-profile-modal-grid { grid-template-columns: 1fr; }
  .payment-stats,
  .payments-aside,
  .payment-bottom-summary,
  .method-chart-wrap { grid-template-columns: 1fr; }
  .payment-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-search { grid-column: 1 / -1; width: 100%; }
  .payments-hero { flex-direction: column; align-items: stretch; }
  .payments-hero-actions { justify-content: flex-start; }
  .payment-kpi-grid,
  .payments-filter-form { grid-template-columns: 1fr; }
  .payment-date-range { grid-template-columns: 1fr; }
  .payment-filter-actions { align-items: stretch; }
  .payment-filter-actions .btn,
  .payments-hero-actions .btn,
  .payment-new { width: 100%; }
  .payments-filter-card .card-title { align-items: stretch; flex-direction: column; }
  .payment-pagination-modern { flex-direction: column; align-items: flex-start; }
  .payment-bottom-summary p { border-left: 0; border-top: 1px solid var(--border); padding: 14px 0 0; }
  .summary-emblem { margin-bottom: -4px; }
  .report-summary-grid,
  .report-category-grid,
  .report-charts-grid,
  .reports-aside,
  .reports-bottom-grid { grid-template-columns: 1fr; }
  .payment-distribution-card,
  .room-type-revenue-card { grid-column: auto; }
  .report-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-search { grid-column: 1 / -1; width: 100%; }
  .report-filter-actions { justify-content: stretch; }
  .report-filter-actions .btn { flex: 1 1 160px; }
  .users-toolbar { flex-direction: column; align-items: stretch; }
  .users-toolbar .search,
  .users-toolbar > div:last-child,
  .users-toolbar .select,
  .users-toolbar .btn { width: 100%; }
  .settings-permissions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-upload { grid-template-columns: 54px 1fr; }
  .logo-upload .btn { grid-column: 1 / -1; }
  .notification-filters { grid-template-columns: 1fr; }
  .notification-filters .search { width: 100%; }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floor-row { grid-template-columns: 1fr; }
  .floor-label { border-right: 0; border-bottom: 1px solid var(--border); }
  .auth-visual { min-height: 320px; }
  .billing-hero {
    align-items: stretch;
    flex-direction: column;
  }
  .billing-actions {
    justify-content: flex-start;
  }
  .billing-actions .btn {
    flex: 1 1 180px;
  }
  .billing-info-grid,
  .invoice-info-grid,
  .receipt-info,
  .billing-filter-card {
    grid-template-columns: 1fr;
  }
  .invoice-topline,
  .receipt-number-row,
  .billing-document-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .invoice-meta {
    text-align: left;
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .topbar-actions .btn, .notify { display: none; }
  .topbar h1 { font-size: 17px; }
  .content { padding: 14px; }
  .metric { min-height: 96px; }
  .search { min-width: 100%; }
  .toolbar-left, .toolbar-right, .toolbar .btn, .select { width: 100%; }
  .hk-stats, .hk-quick > div { grid-template-columns: 1fr; }
  .hk-summary-grid,
  .hk-filter-card { grid-template-columns: 1fr; }
  .hk-filter-card .btn { width: 100%; }
  .hk-table-card { padding: 14px; border-radius: 14px; }
  .hk-pagination-modern { align-items: flex-start; flex-direction: column; }
  .hk-tools { flex-direction: column; align-items: stretch; }
  .guest-stats, .guest-filters { grid-template-columns: 1fr; }
  .guest-summary-grid,
  .guest-filter-card { grid-template-columns: 1fr; }
  .guest-filter-card .btn { width: 100%; }
  .guest-summary-card { min-height: 116px; padding: 18px; }
  .guest-profile-modal { padding: 12px; }
  .guest-profile-modal-head { padding: 20px; }
  .guest-profile-modal-actions .btn { width: 100%; }
  .guest-table-top > div:last-child { flex-direction: column; }
  .payment-filter-bar { grid-template-columns: 1fr; }
  .payment-stat { min-height: 102px; }
  .payment-stat strong { font-size: 20px; }
  .payments-filter-card,
  .payments-table-card-premium { padding: 16px; border-radius: 14px; }
  .payment-kpi { min-height: 166px; }
  .payment-kpi strong { font-size: 21px; }
  .payment-action-group { gap: 6px; }
  .payment-action { width: 34px; height: 34px; }
  .recent-payment { grid-template-columns: 34px minmax(0, 1fr); }
  .recent-payment > div:nth-child(3) { text-align: left; }
  .reports-hero .btn { width: 100%; }
  .report-filter-bar { grid-template-columns: 1fr; }
  .report-filter-actions .btn { width: 100%; }
  .report-metric { min-height: 116px; }
  .report-category-card { min-height: 180px; }
  .report-card-head { flex-direction: column; }
  .report-card-head > span { max-width: none; }
  .report-chart-card { min-height: 260px; }
  .report-line-chart { height: 180px; }
  .quick-export-grid { grid-template-columns: 1fr; }
  .report-mini-card p { flex-direction: column; }
  .report-mini-card strong { text-align: left; }
  .user-stats,
  .settings-permissions { grid-template-columns: 1fr; }
  .settings-image-preview { grid-template-columns: 1fr; }
  .notification-item { grid-template-columns: 40px 1fr; }
  .notification-item .badge { grid-column: 2; justify-self: start; }
  .error-actions .btn { width: 100%; }
  .room-grid { grid-template-columns: 1fr; }
  .room-inventory-head {
    align-items: stretch;
    flex-direction: column;
  }
  .room-filter-bar .room-add-btn {
    width: 100%;
  }
  .toolbar-right.room-filter-controls {
    grid-template-columns: 1fr;
  }
  .walkin-modal-head { padding: 20px; }
  .checkout-modal-head { padding: 20px; }
  .walkin-modal-head h3 { font-size: 21px; }
  .checkout-modal-head h3 { font-size: 21px; }
  .walkin-steps,
  .walkin-form-grid,
  .walkin-payment-cards { grid-template-columns: 1fr; }
  .walkin-step { min-height: 38px; }
  .walkin-panel { padding: 18px; border-radius: 14px; }
  .walkin-summary-grid div,
  .walkin-total-list div { flex-direction: column; gap: 5px; }
  .walkin-summary-grid strong,
  .walkin-total-list strong { text-align: left; }
  .walkin-balance-box strong { font-size: 25px; }
  .checkout-panel { padding: 18px; border-radius: 14px; }
  .checkout-actions { flex-direction: column; }
  .checkout-actions button,
  .checkout-actions a { width: 100%; }
  .checkout-mini-summary { grid-template-columns: 1fr; }
  .checkout-info-row { align-items: flex-start; flex-direction: column; gap: 5px; }
  .checkout-info-row strong { text-align: left; }
  .checkout-balance-box strong { font-size: 25px; }
  .billing-document,
  .billing-table-card,
  .billing-filter-card,
  .history-card {
    padding: 16px;
    border-radius: 14px;
  }
  .billing-hero h1 {
    font-size: 27px;
  }
  .billing-balance,
  .billing-total-box strong,
  .receipt-amount-box strong {
    font-size: 25px;
  }
  .billing-actions .btn {
    width: 100%;
  }
  .invoice-brand {
    align-items: flex-start;
    flex-direction: column;
  }
  .pagination { flex-direction: column; align-items: flex-start; }
  .form-actions, .modal-foot { flex-direction: column-reverse; }
  .form-actions .btn, .modal-foot .btn { width: 100%; }
  .auth-visual { display: none; }
  .auth-card-wrap { min-height: 100vh; }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  body {
    background: #fff !important;
  }

  .sidebar,
  .topbar,
  .shift-print-actions,
  .shift-no-print,
  .billing-no-print,
  .billing-actions,
  .billing-filter-card,
  .billing-pagination,
  .billing-icon-btn,
  #modal-root {
    display: none !important;
  }

  .app-shell,
  .content {
    padding: 0 !important;
    margin: 0 !important;
  }

  body[data-page="shift-report"] .app-shell,
  body[data-page="shift-report"] .content {
    display: block !important;
  }

  .shift-print-page {
    width: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    page-break-after: avoid;
  }

  .shift-premium-report {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-height: auto !important;
    font-size: 9pt !important;
  }

  .shift-premium-report *,
  .shift-premium-report *::before,
  .shift-premium-report *::after {
    box-sizing: border-box !important;
  }

  .shift-premium-header,
  .shift-money-cards,
  .shift-count-cards,
  .shift-print-notes,
  .shift-financial-summary,
  .shift-print-footer {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .shift-premium-brand h1 {
    font-size: 30px !important;
  }

  .shift-premium-brand p {
    font-size: 22px !important;
  }

  .shift-money-cards > div,
  .shift-count-cards > div,
  .shift-print-notes > div,
  .shift-financial-summary > div,
  .shift-status-pill {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .shift-money-cards {
    gap: 8px !important;
  }

  .shift-count-cards {
    gap: 7px !important;
  }

  .shift-financial-summary {
    gap: 0 !important;
  }

  .shift-print-header,
  .shift-print-footer {
    break-inside: avoid;
  }

  .shift-print-section,
  .shift-print-notes {
    break-inside: avoid;
  }

  .shift-print-table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    font-size: 9pt !important;
    line-height: 1.25 !important;
  }

  .payments-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    font-size: 9pt !important;
  }

  .shift-payments-table,
  .shift-payments-table.payments-table,
  .shift-premium-report table {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .shift-print-table thead {
    display: table-header-group;
  }

  .shift-print-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .shift-print-table th,
  .shift-print-table td {
    padding: 8px 6px !important;
    border-color: #D9D9D9 !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }

  .shift-payments-table .guest-cell,
  .shift-payments-table .method-cell {
    display: table-cell !important;
    align-items: initial !important;
    gap: 0 !important;
  }

  .shift-print-table th {
    background: #F6F1EA !important;
    font-size: 9pt !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .shift-payments-table td.guest-cell,
  .payments-table td.guest-cell {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.25 !important;
  }

  .shift-payments-table td.receipt-cell,
  .shift-payments-table td.method-cell,
  .shift-payments-table td.amount-cell,
  .shift-payments-table td.time-cell,
  .shift-payments-table td.user-cell,
  .payments-table td.receipt-cell,
  .payments-table td.amount-cell {
    white-space: nowrap !important;
  }

  .shift-payments-table td.amount-cell {
    text-align: right !important;
  }

  .shift-payments-table td.date-cell,
  .payments-table td.date-cell {
    white-space: normal !important;
    line-height: 1.2 !important;
  }

  .shift-print-table tbody tr:nth-child(even) {
    background: #FAFAFA !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .billing-page,
  .billing-document,
  .billing-table-card,
  .billing-card,
  .billing-summary-card {
    box-shadow: none !important;
  }

  .billing-document {
    border: 0 !important;
    padding: 0 !important;
  }

  .billing-receipt-print {
    max-width: 148mm;
    margin: 0 auto;
  }

  .billing-invoice-print {
    max-width: 190mm;
    margin: 0 auto;
  }

  .billing-table th {
    position: static;
  }

  .billing-main-grid,
  .invoice-bottom-grid {
    grid-template-columns: 1fr;
  }

  .billing-summary-card {
    position: static;
    break-inside: avoid;
  }
}

.billing-center-page {
  display: grid;
  gap: 22px;
}

.billing-center-hero {
  align-items: center;
}

.billing-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.billing-kpi-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, rgba(250, 247, 242, .72) 100%);
  box-shadow: 0 18px 45px rgba(45, 45, 45, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.billing-kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(45, 45, 45, .1);
}

.billing-kpi-icon {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.billing-kpi-icon i {
  width: 27px;
  height: 27px;
}

.billing-kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.billing-kpi-card strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 900;
  line-height: 1.1;
}

.billing-kpi-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.billing-kpi-card--gold .billing-kpi-icon { background: rgba(164, 107, 31, .13); color: var(--primary); }
.billing-kpi-card--green .billing-kpi-icon { background: rgba(34, 197, 94, .13); color: #16A34A; }
.billing-kpi-card--red .billing-kpi-icon { background: rgba(239, 68, 68, .13); color: #DC2626; }
.billing-kpi-card--orange .billing-kpi-icon { background: rgba(245, 158, 11, .15); color: #B45309; }
.billing-kpi-card--blue .billing-kpi-icon { background: rgba(59, 130, 246, .13); color: #2563EB; }

.billing-filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(4, minmax(150px, 1fr)) minmax(150px, .8fr);
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(45, 45, 45, .06);
}

.billing-filter-panel--invoices {
  grid-template-columns: minmax(280px, 1.4fr) minmax(138px, .55fr) minmax(138px, .55fr) minmax(170px, .7fr) minmax(190px, .75fr) auto;
}

.billing-search-field,
.billing-filter-panel select,
.billing-filter-panel input {
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.billing-filter-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.billing-filter-field > span {
  color: #6F665E;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.billing-filter-field--search {
  min-width: 280px;
}

.billing-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.billing-search-field i {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.billing-search-field input {
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  outline: 0;
}

.billing-filter-panel select,
.billing-filter-panel > input,
.billing-filter-field > input,
.billing-filter-field > select {
  width: 100%;
  padding: 0 13px;
}

.billing-date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.billing-filter-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.billing-filter-panel .btn {
  height: 48px;
  justify-content: center;
  white-space: nowrap;
}

.billing-table-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(45, 45, 45, .06);
}

.billing-table-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 12px;
}

.billing-table-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.billing-table-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.billing-table-scroll {
  overflow-x: auto;
  padding: 0 22px 22px;
}

.billing-invoice-table {
  width: 100%;
  min-width: 1220px;
  border-spacing: 0;
  border-collapse: separate;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.billing-invoice-table th,
.billing-invoice-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.billing-invoice-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #FBF8F4;
  color: #5E554D;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-invoice-table tbody tr:nth-child(even) {
  background: rgba(250, 247, 242, .55);
}

.billing-invoice-table tbody tr:hover {
  background: rgba(164, 107, 31, .07);
}

.billing-invoice-table tr:last-child td {
  border-bottom: 0;
}

.billing-money {
  color: var(--ink);
  font-weight: 900;
}

.billing-money--paid {
  color: #15803D;
}

.billing-money--due {
  color: #DC2626;
}

.billing-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.billing-status--paid {
  color: #15803D;
  background: rgba(34, 197, 94, .14);
}

.billing-status--partially-paid {
  color: #B45309;
  background: rgba(245, 158, 11, .16);
}

.billing-status--unpaid {
  color: #B91C1C;
  background: rgba(239, 68, 68, .14);
}

.billing-status--cancelled {
  color: #4B5563;
  background: #E5E7EB;
}

.billing-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-actions-row a,
.billing-actions-row button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.billing-actions-row a:hover,
.billing-actions-row button:hover {
  transform: scale(1.08);
  border-color: rgba(164, 107, 31, .45);
  box-shadow: 0 10px 22px rgba(164, 107, 31, .16);
}

.billing-actions-row i {
  width: 17px;
  height: 17px;
}

.billing-empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 180px;
  color: var(--muted);
  text-align: center;
}

.billing-empty-state i {
  width: 42px;
  height: 42px;
  color: var(--primary);
}

.billing-empty-state strong {
  color: var(--ink);
  font-size: 18px;
}

.billing-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 0 22px 22px;
  color: var(--muted);
  font-weight: 800;
}

.billing-pagination > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.billing-pagination a {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.billing-pagination a.active,
.billing-pagination a:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.invoice-detail-page {
  display: grid;
  gap: 22px;
}

.invoice-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(45, 45, 45, .06);
}

.invoice-detail-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.invoice-detail-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
}

.invoice-detail-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.invoice-detail-header-actions,
.invoice-detail-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.invoice-detail-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.invoice-detail-status--paid {
  color: #15803D;
  background: rgba(34, 197, 94, .14);
}

.invoice-detail-status--partially-paid {
  color: #B45309;
  background: rgba(245, 158, 11, .16);
}

.invoice-detail-status--unpaid {
  color: #B91C1C;
  background: rgba(239, 68, 68, .14);
}

.invoice-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr);
  gap: 22px;
  align-items: start;
}

.invoice-detail-main {
  display: grid;
  gap: 18px;
}

.invoice-detail-card,
.invoice-detail-summary-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(45, 45, 45, .06);
}

.invoice-detail-card {
  padding: 24px;
}

.invoice-detail-summary-card {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.invoice-detail-card h2,
.invoice-detail-summary-card h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.invoice-detail-info-list,
.invoice-detail-summary-list {
  display: grid;
}

.invoice-detail-info-list > div,
.invoice-detail-summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.invoice-detail-info-list > div:last-child,
.invoice-detail-summary-list > div:last-child {
  border-bottom: 0;
}

.invoice-detail-info-list span,
.invoice-detail-summary-list span {
  color: #6B7280;
  font-weight: 800;
}

.invoice-detail-info-list strong,
.invoice-detail-summary-list strong {
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.invoice-detail-paid {
  color: #15803D !important;
}

.invoice-detail-balance {
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid;
}

.invoice-detail-balance span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-detail-balance strong {
  display: block;
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
}

.invoice-detail-balance--paid {
  color: #15803D;
  border-color: rgba(34, 197, 94, .35);
  background: rgba(34, 197, 94, .08);
}

.invoice-detail-balance--due {
  color: #DC2626;
  border-color: rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .08);
}

.invoice-detail-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.invoice-detail-section-head h2 {
  margin-bottom: 0;
}

.invoice-detail-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.invoice-detail-table-wrap {
  overflow-x: auto;
}

.invoice-detail-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.invoice-detail-table th,
.invoice-detail-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.invoice-detail-table th {
  background: #FBF8F4;
  color: #5E554D;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-detail-table tbody tr:nth-child(even) {
  background: rgba(250, 247, 242, .55);
}

.invoice-detail-table tbody tr:hover {
  background: rgba(164, 107, 31, .07);
}

.invoice-detail-table tr:last-child td {
  border-bottom: 0;
}

.invoice-detail-money {
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.invoice-detail-money--danger {
  color: #DC2626;
}

.invoice-detail-empty {
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.invoice-detail-notes {
  display: grid;
  gap: 12px;
}

.invoice-detail-notes article {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #FBF8F4;
}

.invoice-detail-notes span {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-detail-notes p {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.55;
}

.invoice-detail-bottom-actions {
  justify-content: flex-end;
  padding: 20px 0 0;
}

.breakfast-page {
  display: grid;
  gap: 28px;
}

.breakfast-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF9F0 100%);
  box-shadow: 0 18px 42px rgba(72, 48, 24, 0.08);
}

.breakfast-header-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.1;
}

.breakfast-header-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.breakfast-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.breakfast-date-chip,
.breakfast-shift-badge {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(72, 48, 24, 0.06);
}

.breakfast-date-chip svg,
.breakfast-shift-badge svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.breakfast-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.breakfast-summary-card {
  min-height: 148px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 249, 240, 0.52), rgba(255, 255, 255, 0) 48%),
    #FFFFFF;
  box-shadow: 0 18px 38px rgba(72, 48, 24, 0.085);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.breakfast-summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 116, 29, 0.22);
  box-shadow: 0 22px 46px rgba(72, 48, 24, 0.12);
}

.breakfast-summary-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(180, 116, 29, 0.12);
  color: var(--primary);
}

.breakfast-summary-icon svg {
  width: 24px;
  height: 24px;
}

.breakfast-summary-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.breakfast-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.breakfast-summary-card small {
  display: block;
  margin-top: 8px;
  color: #8D8277;
  font-size: 12px;
  font-weight: 800;
}

.breakfast-filter-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(72, 48, 24, 0.06);
}

.breakfast-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.75fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.breakfast-filter-field {
  display: grid;
  gap: 6px;
}

.breakfast-filter-field span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.breakfast-filter-field .control,
.breakfast-filter-field .select {
  height: 42px;
  border-radius: 12px;
  font-size: 13px;
}

.breakfast-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
}

.breakfast-filter-actions .btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
}

.breakfast-report-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.breakfast-report-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.breakfast-report-kpi {
  min-height: 146px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 249, 240, 0.5), rgba(255, 255, 255, 0) 50%),
    #FFFFFF;
  box-shadow: 0 18px 38px rgba(72, 48, 24, 0.085);
}

.breakfast-report-kpi--primary {
  border-color: rgba(180, 116, 29, 0.28);
  background:
    linear-gradient(135deg, rgba(180, 116, 29, 0.12), rgba(255, 255, 255, 0) 58%),
    #FFFFFF;
}

.breakfast-report-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.breakfast-report-kpi strong {
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.breakfast-report-kpi small {
  color: #8D8277;
  font-size: 12px;
  font-weight: 800;
}

.breakfast-progress-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.2fr);
  align-items: center;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF8ED 100%);
  box-shadow: 0 16px 36px rgba(72, 48, 24, 0.08);
}

.breakfast-progress-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.breakfast-progress-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.breakfast-progress-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.breakfast-progress-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.breakfast-progress-meter progress {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #EFE7DE;
  appearance: none;
}

.breakfast-progress-meter progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #EFE7DE;
}

.breakfast-progress-meter progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #D99A32);
}

.breakfast-progress-meter progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #D99A32);
}

.breakfast-progress-meter strong {
  min-width: 52px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 950;
  text-align: right;
}

.breakfast-table-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 22px 52px rgba(72, 48, 24, 0.1);
  overflow: visible;
}

.breakfast-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border);
}

.breakfast-table-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.breakfast-table-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.breakfast-table-wrap {
  overflow-x: auto;
}

.breakfast-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}

.breakfast-table th {
  padding: 18px 20px;
  background: #FCF8F2;
  color: #6F665D;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0;
}

.breakfast-table td {
  min-height: 86px;
  padding: 20px;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-weight: 800;
  vertical-align: middle;
}

.breakfast-table tbody tr:nth-child(even) {
  background: rgba(251, 247, 241, 0.42);
}

.breakfast-table tbody tr {
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.breakfast-table tbody tr:hover {
  background: #FFF6E9;
  box-shadow: inset 4px 0 0 rgba(180, 116, 29, 0.42);
}

.breakfast-room-cell,
.breakfast-guest-cell {
  display: grid;
  gap: 6px;
}

.breakfast-room-number {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.breakfast-room-type,
.breakfast-guest-ref {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.breakfast-guest-name {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.breakfast-count {
  min-width: 42px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #FBF7F1;
  color: var(--ink);
  font-weight: 950;
}

.breakfast-type,
.breakfast-source {
  color: #5E554D;
  font-size: 13px;
  font-weight: 900;
}

.breakfast-charge {
  color: var(--primary);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.breakfast-date-text,
.breakfast-money {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.breakfast-money--primary {
  color: var(--primary);
}

.breakfast-notes {
  max-width: 240px;
  color: #6F665D;
  font-size: 13px;
  line-height: 1.45;
}

.meal-plan-badge,
.breakfast-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.meal-plan-badge--bb {
  color: var(--primary);
  background: rgba(180, 116, 29, 0.14);
}

.meal-plan-badge--hb {
  color: #1D4ED8;
  background: rgba(59, 130, 246, 0.12);
}

.meal-plan-badge--fb {
  color: #6D28D9;
  background: rgba(124, 58, 237, 0.12);
}

.meal-plan-badge--ai {
  color: #12833C;
  background: rgba(34, 197, 94, 0.12);
}

.meal-plan-badge--ro {
  color: #5E554D;
  background: #F2EDE6;
}

.breakfast-status--scheduled {
  color: #5E554D;
  background: #F2EDE6;
}

.breakfast-status--served {
  color: #12833C;
  background: rgba(34, 197, 94, 0.12);
}

.breakfast-status--cancelled {
  color: #B91C1C;
  background: rgba(239, 68, 68, 0.12);
}

.breakfast-status--no_show {
  color: #9A5B00;
  background: rgba(245, 158, 11, 0.16);
}

.breakfast-action-menu {
  position: relative;
}

.breakfast-action-menu summary {
  width: 110px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(180, 116, 29, 0.35);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--primary);
  font-size: 13px;
  font-weight: 950;
  list-style: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(72, 48, 24, 0.08);
}

.breakfast-kebab {
  color: var(--primary);
  font-size: 22px;
  line-height: 0;
  transform: translateY(-1px);
}

.breakfast-action-menu summary::-webkit-details-marker {
  display: none;
}

.breakfast-action-menu svg {
  width: 16px;
  height: 16px;
}

.breakfast-action-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 220px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 18px 36px rgba(72, 48, 24, 0.18);
}

.breakfast-action-panel form {
  margin: 0;
}

.breakfast-action-panel button,
.breakfast-action-panel a {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.breakfast-action-panel button:hover,
.breakfast-action-panel a:hover {
  background: #FBF7F1;
  color: var(--primary);
}

.breakfast-empty {
  padding: 42px 24px !important;
  color: var(--muted);
  text-align: center;
}

.breakfast-empty svg {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  color: var(--primary);
}

.breakfast-empty strong,
.breakfast-empty span {
  display: block;
}

.breakfast-empty strong {
  color: var(--ink);
  font-size: 16px;
}

.breakfast-empty span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.breakfast-footer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 14px 32px rgba(72, 48, 24, 0.07);
}

.breakfast-footer-summary h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.breakfast-footer-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.breakfast-footer-summary dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  margin: 0;
}

.breakfast-footer-summary dl div {
  min-width: 132px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 10px 22px rgba(72, 48, 24, 0.06);
}

.breakfast-footer-summary dl svg {
  width: 18px;
  height: 18px;
  grid-row: span 2;
  color: var(--primary);
}

.breakfast-footer-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.breakfast-footer-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

@media (max-width: 1300px) {
  .billing-kpi-grid,
  .billing-kpi-grid--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .billing-filter-panel,
  .billing-filter-panel--invoices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .billing-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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

  .breakfast-filter-actions,
  .breakfast-report-filter-grid .breakfast-filter-actions {
    grid-column: 1 / -1;
  }

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

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

  .invoice-detail-summary-card {
    position: static;
  }

  .breakfast-header,
  .breakfast-footer-summary,
  .breakfast-progress-card {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .breakfast-header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .billing-center-hero {
    align-items: stretch;
  }

  .billing-kpi-grid,
  .billing-kpi-grid--five,
  .billing-filter-panel,
  .billing-filter-panel--invoices,
  .billing-date-range {
    grid-template-columns: 1fr;
  }

  .billing-filter-field--search {
    min-width: 0;
  }

  .billing-filter-actions,
  .billing-filter-actions .btn {
    width: 100%;
  }

  .billing-table-head,
  .billing-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .invoice-detail-header,
  .invoice-detail-section-head {
    flex-direction: column;
  }

  .invoice-detail-header-actions,
  .invoice-detail-bottom-actions,
  .invoice-detail-header-actions .btn,
  .invoice-detail-bottom-actions .btn {
    width: 100%;
  }

  .invoice-detail-info-list > div,
  .invoice-detail-summary-list > div {
    flex-direction: column;
    gap: 6px;
  }

  .invoice-detail-info-list strong,
  .invoice-detail-summary-list strong {
    text-align: left;
  }

  .breakfast-page {
    gap: 18px;
  }

  .breakfast-header,
  .breakfast-filter-card,
  .breakfast-table-head,
  .breakfast-footer-summary {
    padding: 20px;
  }

  .breakfast-header-copy h2 {
    font-size: 26px;
  }

  .breakfast-summary-grid,
  .breakfast-filter-grid,
  .breakfast-report-filter-grid,
  .breakfast-report-kpis {
    grid-template-columns: 1fr;
  }

  .breakfast-summary-card {
    min-height: 124px;
  }

  .breakfast-filter-actions,
  .breakfast-filter-actions .btn,
  .breakfast-header-actions,
  .breakfast-header-actions .btn {
    width: 100%;
  }

  .breakfast-date-chip,
  .breakfast-shift-badge {
    width: 100%;
    justify-content: center;
  }

  .breakfast-table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .breakfast-progress-meter {
    width: 100%;
  }

  .breakfast-footer-summary dl {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
}
