/* ===================================================================
   SHRI KAILASH MANSAROVAR - HOTEL ADMIN & EVENT ERP PANEL STYLES
   Event Management, Multi-Date Calendar, Accounts & Printable Invoices
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Cinzel:wght@600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --admin-gold: #c59b27;
  --admin-gold-light: #e6c86e;
  --admin-gold-dark: #967012;
  --admin-dark: #0f0d0b;
  --admin-card: #181512;
  --admin-surface: #221d18;
  --admin-surface-light: #2c2620;
  --admin-border: rgba(197, 155, 39, 0.22);
  --admin-border-strong: rgba(197, 155, 39, 0.45);
  --admin-text: #f7f3ec;
  --admin-text-muted: #9e9386;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

html, body {
  background-color: var(--admin-dark);
  color: var(--admin-text);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* ===================================================================
   LOGIN CONTAINER
   =================================================================== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at center, #261f18 0%, #0d0b09 100%);
}

.login-card {
  max-width: 460px;
  width: 100%;
  background: var(--admin-card);
  border: 1.5px solid var(--admin-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.login-logo {
  height: 76px;
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.85));
}

.login-card h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 6px;
}

.login-card p {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  margin-bottom: 24px;
}

.login-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger);
  color: #fca5a5;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 18px;
  display: none;
}

/* ===================================================================
   ADMIN DASHBOARD LAYOUT & TOP BAR
   =================================================================== */
.admin-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.admin-header {
  background: var(--admin-card);
  border-bottom: 1px solid var(--admin-border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-brand img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.85));
}

.admin-brand-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.admin-brand-badge {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--admin-gold-light);
  text-transform: uppercase;
}

.admin-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 155, 39, 0.15);
  border: 1px solid var(--admin-border-strong);
  color: var(--admin-gold-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-user-pill.role-superadmin {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.45) 100%);
  border: 1px solid rgba(251, 191, 36, 0.7);
  color: #fef08a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.admin-user-pill.role-admin {
  background: rgba(197, 155, 39, 0.25);
  color: #ffd700;
}

.admin-user-pill.role-staff {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-admin-gold {
  background: var(--admin-gold);
  color: #0f0d0b;
}

.btn-admin-gold:hover {
  background: var(--admin-gold-light);
}

.btn-admin-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--admin-border);
}

.btn-admin-dark:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-admin-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid var(--danger);
}

.btn-admin-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-admin-wa {
  background: #10b981;
  color: #fff;
}

.btn-admin-wa:hover {
  background: #059669;
}

/* ===================================================================
   MAIN BODY & KPI CARDS
   =================================================================== */
.admin-body {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 30px 24px 80px 24px;
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.stat-info .title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--admin-text-muted);
  margin-bottom: 4px;
  font-weight: 700;
}

.stat-info .value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--admin-gold-light);
}

.admin-stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(197, 155, 39, 0.12);
  border: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--admin-gold);
}

/* ===================================================================
   ADMIN TABS NAVIGATION
   =================================================================== */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 14px;
}

.tab-btn {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  color: var(--admin-text-muted);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  background: var(--admin-surface-light);
  color: #fff;
  border-color: var(--admin-gold);
}

.tab-btn.active {
  background: var(--admin-gold);
  color: #0f0d0b;
  border-color: var(--admin-gold);
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.35);
}

.tab-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 14px;
}

.tab-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
}

/* ===================================================================
   CALENDAR COMPONENT (INTERACTIVE MONTH & DATE FILTER)
   =================================================================== */
.calendar-wrapper-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.calendar-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-border);
}

.calendar-month-title {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--admin-gold-light);
}

.calendar-nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.calendar-weekday {
  text-align: center;
  padding: 8px 4px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--admin-gold);
  letter-spacing: 1px;
  min-width: 0;
  overflow: hidden;
}

.calendar-day-cell {
  background: var(--admin-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  min-height: 90px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.mobile-event-dots {
  display: none;
}

.show-mobile-inline {
  display: none;
}

.calendar-day-cell:hover {
  background: var(--admin-surface-light);
  border-color: var(--admin-gold);
  transform: translateY(-2px);
}

.calendar-day-cell.other-month {
  opacity: 0.3;
  pointer-events: none;
}

.calendar-day-cell.is-today {
  border: 1.5px solid var(--admin-gold);
}

.calendar-day-cell.selected-date {
  background: rgba(197, 155, 39, 0.18);
  border: 1.5px solid var(--admin-gold-light);
  box-shadow: 0 0 12px rgba(197, 155, 39, 0.3);
}

.day-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.day-number {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}

.day-event-count {
  font-size: 0.65rem;
  background: var(--admin-gold);
  color: #0f0d0b;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 800;
}

.day-events-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.calendar-event-chip {
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.chip-wedding {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.chip-reception {
  background: rgba(168, 85, 247, 0.22);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.chip-party {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.chip-other {
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

/* Active Date Filter Banner */
.active-date-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(197, 155, 39, 0.12);
  border: 1px solid var(--admin-border-strong);
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.active-date-filter-bar strong {
  color: var(--admin-gold-light);
}

/* ===================================================================
   EVENT TABLES & STATUS PILLS
   =================================================================== */
.admin-table-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  overflow-x: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  margin-bottom: 30px;
}

.mobile-table-scroll-hint {
  display: none;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background: var(--admin-surface);
  color: var(--admin-gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-booked, .status-confirmed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid #10b981;
}

.status-pending {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.status-completed {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid #3b82f6;
}

.status-postponed {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.status-cancelled {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border: 1px solid #6b7280;
}

.chip-booked-date {
  background: rgba(147, 51, 234, 0.22);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.calendar-legend-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.78rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--admin-text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Services & Catering Sections */
.services-section-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--admin-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.services-section-box.active {
  background: rgba(197, 155, 39, 0.05);
  border-color: var(--admin-gold);
}

.meal-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.meal-check-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.meal-check-pill:hover {
  border-color: var(--admin-gold);
  background: var(--admin-surface-light);
}

.meal-check-pill input[type="checkbox"] {
  accent-color: var(--admin-gold);
}

.calc-summary-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border-strong);
  border-radius: 12px;
  padding: 18px;
  margin-top: 16px;
}

.calc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-summary-row.total-row {
  border-top: 1.5px solid var(--admin-gold);
  border-bottom: none;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--admin-gold-light);
  margin-top: 8px;
  padding-top: 12px;
}

/* Catering Menu Manager Cards */
.catering-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.catering-pkg-card {
  background: var(--admin-surface);
  border: 1.5px solid var(--admin-border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.catering-pkg-card:hover {
  border-color: var(--admin-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.catering-pkg-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.catering-pkg-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.catering-pkg-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--admin-gold-light);
  white-space: nowrap;
}

.catering-pkg-items {
  font-size: 0.82rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  flex-grow: 1;
}

.pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
}

.pay-full {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.pay-advance {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.pay-pending {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ===================================================
   MODALS & FORM STYLES
   =================================================== */
.admin-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-backdrop.active {
  display: flex;
}

.admin-modal-card {
  background: var(--admin-card);
  border: 1.5px solid var(--admin-border);
  border-radius: 20px;
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.admin-modal-card.modal-lg {
  max-width: 980px;
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-modal-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  color: #fff;
}

.modal-close-icon {
  background: transparent;
  border: none;
  color: var(--admin-text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-icon:hover {
  color: #fff;
}

/* Form inputs */
.admin-form-group {
  margin-bottom: 18px;
}

.admin-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--admin-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-input, .admin-select, .admin-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  border-color: var(--admin-gold);
  background: var(--admin-surface-light);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

/* Multi-date selection builder */
.multi-date-container {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.date-entry-row {
  display: grid;
  grid-template-columns: 180px 1fr 40px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.btn-remove-date {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid var(--danger);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Whole Hotel breakdown box */
.whole-hotel-box {
  background: rgba(197, 155, 39, 0.1);
  border: 1.5px solid var(--admin-border-strong);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.checkbox-custom-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.checkbox-custom-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--admin-gold);
  cursor: pointer;
}

.breakdown-list-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--admin-text);
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 16px;
  border-radius: 8px;
}

.breakdown-list-preview span i {
  color: var(--admin-gold);
  margin-right: 6px;
}

/* Individual Space Checkboxes Grid */
.spaces-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.space-item-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--admin-text);
}

.space-item-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--admin-gold);
}

/* ===================================================================
   PRINTABLE INVOICE / RECEIPT / QUOTATION STYLING
   =================================================================== */
.print-document-container {
  background: #ffffff;
  color: #1a1614;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 20px;
}

.print-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #b8860b;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.print-logo-area img {
  height: 52px;
  margin-bottom: 8px;
}

.print-hotel-name {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1614;
}

.print-hotel-meta {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.5;
}

.print-doc-meta {
  text-align: right;
}

.print-doc-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #b8860b;
  margin-bottom: 6px;
}

.print-doc-number {
  font-size: 0.9rem;
  font-weight: 700;
  color: #222;
}

.print-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  background: #fdfbf7;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e8dec8;
}

.print-info-block h5 {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #b8860b;
  margin-bottom: 6px;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.print-table th {
  background: #f4efe6;
  border-bottom: 2px solid #b8860b;
  padding: 10px;
  text-align: left;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.print-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 0.88rem;
}

.print-summary-box {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 28px;
}

.print-summary-table {
  width: 320px;
}

.print-summary-table td {
  padding: 6px 10px;
}

.print-signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
  font-size: 0.85rem;
}

@media print {
  body * {
    visibility: hidden;
  }
  .print-document-container, .print-document-container * {
    visibility: visible;
  }
  .print-document-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 20px;
    box-shadow: none;
    border: none;
  }
  .no-print {
    display: none !important;
  }
}

/* ===================================================================
   MOBILE WEBAPP (PWA) BOTTOM NAV & DRAWER STYLES
   =================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(18, 14, 10, 0.96);
  border-top: 1px solid var(--admin-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 990;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}

.mobile-nav-item {
  background: transparent;
  border: none;
  color: var(--admin-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  flex: 1;
  max-width: 72px;
}

.mobile-nav-item i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.mobile-nav-item span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.mobile-nav-item:active {
  transform: scale(0.92);
}

.mobile-nav-item.active {
  color: var(--admin-gold);
}

.mobile-nav-item.active i {
  transform: translateY(-2px);
  color: var(--admin-gold-light);
  filter: drop-shadow(0 0 6px rgba(197, 155, 39, 0.5));
}

/* Floating Action Button (FAB) in the middle */
.mobile-nav-item.mobile-nav-fab {
  position: relative;
  overflow: visible;
  padding: 0;
}

.mobile-nav-fab .fab-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e6c86e 0%, #c59b27 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(197, 155, 39, 0.55), 0 0 0 4px rgba(18, 14, 10, 0.9);
  color: #0f0d0b;
  transform: translateY(-12px);
  transition: all 0.2s ease;
}

.mobile-nav-fab .fab-circle i {
  font-size: 1.25rem;
  color: #0f0d0b;
}

.mobile-nav-fab:active .fab-circle {
  transform: translateY(-8px) scale(0.95);
  box-shadow: 0 2px 8px rgba(197, 155, 39, 0.4);
}

.mobile-nav-fab span {
  position: absolute;
  bottom: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--admin-gold-light);
}

/* Mobile "More" Drawer Sheet */
.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 995;
  align-items: flex-end;
}

.mobile-drawer-backdrop.active {
  display: flex;
}

.mobile-drawer-card {
  width: 100%;
  background: var(--admin-card);
  border-top: 1.5px solid var(--admin-border);
  border-radius: 20px 20px 0 0;
  padding: 20px 18px 40px 18px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
  animation: slideUpDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 20px);
}

@keyframes slideUpDrawer {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-border);
}

.mobile-drawer-header h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-drawer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.drawer-grid-item {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--admin-text);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.drawer-grid-item i {
  font-size: 1.4rem;
}

.drawer-grid-item:active {
  background: var(--admin-surface-light);
  transform: scale(0.96);
  border-color: var(--admin-gold);
}

.drawer-grid-item.drawer-logout {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}

/* ===================================================================
   RESPONSIVE ADMIN & MOBILE APP STYLES
   =================================================================== */

/* Tablet & Smaller Laptops (<= 992px) */
@media (max-width: 992px) {
  .admin-header {
    padding: 14px 18px;
  }
  .admin-body {
    padding: 20px 16px;
  }
  .admin-grid-2, .admin-grid-3, .date-entry-row {
    grid-template-columns: 1fr;
  }
  .calendar-grid {
    gap: 4px;
  }
  .calendar-day-cell {
    min-height: 65px;
    padding: 4px;
  }
  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    margin-bottom: 20px;
  }
  .admin-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

/* Mobile Phones & Handhelds (<= 768px) */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  .admin-body {
    padding: 10px 10px 85px 10px; /* Compact padding, extra bottom room for bottom nav */
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Sleek, 1-Line App Topbar on Mobile */
  .admin-header {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 12px !important;
    min-height: 52px !important;
    max-height: 54px !important;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 13, 11, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--admin-border);
  }

  .admin-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .admin-brand img {
    height: 32px;
    width: auto;
    flex-shrink: 0;
  }

  .admin-brand-title {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
  }

  .admin-brand-badge {
    display: none !important; /* Hide long subtitle on phones to prevent 3 lines of wrapping */
  }

  .admin-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto;
  }

  #btnLiveWebsite,
  #btnHeaderInstallApp {
    display: none !important; /* Prominently accessible in the bottom "More" drawer */
  }

  .admin-user-pill {
    padding: 3px 8px;
    font-size: 0.7rem;
    gap: 4px;
  }

  #logoutBtn {
    padding: 5px 8px;
    font-size: 0.75rem;
    min-height: 30px;
  }

  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: flex !important;
  }

  .show-mobile-inline {
    display: inline-block !important;
  }

  /* Quick KPI Stats Cards on Phone: Neat 2x2 Grid with Zero Wasted Space */
  .admin-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
  }

  .admin-stat-card {
    padding: 8px 10px !important;
    border-radius: 10px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .stat-info .title {
    font-size: 0.64rem !important;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--admin-text-muted);
  }

  .stat-info .value {
    font-size: 1.05rem !important;
    font-weight: 800;
    line-height: 1.1;
  }

  .admin-stat-card .stat-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    flex-shrink: 0;
  }

  /* Top tabs converted to sleek horizontal pill bar on mobile */
  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding: 2px 2px 6px 2px;
    margin-bottom: 12px;
  }
  .admin-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.74rem;
    border-radius: 20px;
  }

  /* Tab Title Row */
  .tab-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 12px;
  }

  .tab-header-row > div {
    width: 100% !important;
  }

  .tab-title {
    font-size: 1.12rem;
    line-height: 1.25;
  }

  .tab-header-row p {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .tab-header-row .btn-admin {
    width: 100%;
    justify-content: center;
    padding: 8px 14px;
    font-size: 0.84rem;
  }

  /* Search & Filter inputs on mobile */
  .admin-search-wrapper {
    min-width: 0 !important;
    width: 100% !important;
  }

  #ledgerSearchInput,
  #ledgerModeFilter,
  #eventSearchInput,
  #eventTypeFilter,
  #eventStatusFilter {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Calendar Component on Phone: Perfectly Contained & Systematic */
  .calendar-wrapper-card {
    padding: 10px 8px !important;
    border-radius: 14px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .calendar-header-bar {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
  }

  .calendar-nav-group {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 4px !important;
  }

  .calendar-month-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin: 0 4px !important;
    flex: 1 !important;
  }

  #btnPrevMonth, #btnNextMonth, #btnTodayMonth {
    padding: 5px 8px !important;
    font-size: 0.74rem !important;
    min-height: 32px !important;
  }

  .calendar-header-bar .btn-admin-gold {
    width: 100% !important;
    justify-content: center !important;
    padding: 7px 12px !important;
    font-size: 0.82rem !important;
    min-height: 34px !important;
  }

  /* Touch-scrollable Legend Bar */
  .calendar-legend-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 6px 8px !important;
    gap: 8px !important;
    font-size: 0.65rem !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
    justify-content: flex-start !important;
  }
  .calendar-legend-bar::-webkit-scrollbar {
    display: none;
  }

  .legend-item {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .legend-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    flex-shrink: 0;
  }

  /* Calendar Grid on Mobile: Rigid 7 Columns that NEVER Overflow */
  .calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 2px !important;
    box-sizing: border-box !important;
  }

  .calendar-weekday {
    font-size: 0.64rem !important;
    padding: 3px 0 !important;
    letter-spacing: 0 !important;
    font-weight: 700 !important;
    text-align: center !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .calendar-day-cell {
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    min-height: 48px !important;
    max-height: 56px !important;
    padding: 3px 2px !important;
    border-radius: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
  }

  .day-cell-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    line-height: 1 !important;
  }

  .day-number {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
  }

  .day-event-count {
    font-size: 0.55rem !important;
    padding: 1px 3px !important;
    border-radius: 3px !important;
    min-width: 14px !important;
    height: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  /* Hide wide text chips on mobile to prevent column blowout */
  .day-events-list {
    display: none !important;
  }

  /* Show neat indicator dots on mobile */
  .mobile-event-dots {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    margin-top: 3px !important;
    flex-wrap: wrap !important;
  }

  .cal-mini-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    display: inline-block !important;
  }

  .cal-mini-dot.dot-wedding { background: #ef4444; box-shadow: 0 0 3px rgba(239, 68, 68, 0.7); }
  .cal-mini-dot.dot-reception { background: #f59e0b; box-shadow: 0 0 3px rgba(245, 158, 11, 0.7); }
  .cal-mini-dot.dot-party { background: #3b82f6; box-shadow: 0 0 3px rgba(59, 130, 246, 0.7); }
  .cal-mini-dot.dot-gold { background: #e6c86e; box-shadow: 0 0 3px rgba(230, 200, 110, 0.7); }
  .cal-mini-dot.dot-booked { background: #c084fc; box-shadow: 0 0 3px rgba(192, 132, 252, 0.7); }

  /* Active Filter Bar on Mobile */
  .active-date-filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    margin-bottom: 12px !important;
  }

  #btnResetDayFilter {
    justify-content: center !important;
    width: 100% !important;
    padding: 6px 12px !important;
  }

  .mobile-table-scroll-hint {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    color: var(--admin-gold-light);
    margin-bottom: 6px;
    padding: 0 4px;
    opacity: 0.85;
  }

  /* Tables: Touch-friendly horizontal scroll */
  .admin-table-card {
    border-radius: 12px !important;
    margin-bottom: 18px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border: 1px solid var(--admin-border) !important;
    max-width: 100% !important;
  }

  .admin-table {
    min-width: 680px !important;
  }

  .admin-table th {
    padding: 8px 10px !important;
    font-size: 0.7rem !important;
    white-space: nowrap !important;
  }

  .admin-table td {
    padding: 10px 10px !important;
    font-size: 0.8rem !important;
  }

  /* Catering Menu Grid on Mobile */
  .catering-menu-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Modals: Mobile Bottom-Sheet or Full-Screen Dialog */
  .admin-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .admin-modal-card {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 20px 16px calc(env(safe-area-inset-bottom, 16px) + 24px) 16px;
    margin: 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9);
  }

  .admin-modal-card.modal-lg {
    max-width: 100%;
  }

  .admin-modal-header h3 {
    font-size: 1.1rem;
  }

  /* Form Elements: Touch-Target >= 44px, Font-size 16px (Prevents iOS Safari auto-zoom) */
  .admin-input, .admin-select, .admin-textarea {
    font-size: 16px !important;
    padding: 12px;
    border-radius: 8px;
  }

  .btn-admin {
    padding: 10px 16px;
    font-size: 0.85rem;
    min-height: 42px;
  }

  /* Date row builder in event modal */
  .date-entry-row {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .date-entry-row .btn-remove-date {
    align-self: flex-end;
    width: 32px;
    height: 32px;
  }

  /* Whole Hotel breakdown preview */
  .breakdown-list-preview {
    grid-template-columns: 1fr;
  }

  /* Printable document preview */
  .print-document-container {
    padding: 16px 12px;
  }

  .doc-header-row {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .login-card {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .login-logo {
    height: 56px;
  }

  .login-card h2 {
    font-size: 1.25rem;
  }

  .admin-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .calendar-weekday {
    font-size: 0.58rem !important;
  }

  .calendar-day-cell {
    min-height: 44px !important;
    max-height: 52px !important;
    padding: 2px 1px !important;
  }

  .day-number {
    font-size: 0.68rem !important;
  }

  .mobile-drawer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================================
   SYSTEMATIC ROOM MANAGEMENT CARDS & GRID
   =================================================================== */
.admin-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 18px;
}

.admin-room-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.admin-room-card:hover {
  transform: translateY(-4px);
  border-color: var(--admin-gold);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.15);
}

.admin-room-thumb {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #141210;
}

.admin-room-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.admin-room-card:hover .admin-room-thumb img {
  transform: scale(1.05);
}

.admin-room-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--admin-gold-gradient);
  color: #12100e !important;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.admin-room-details {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.admin-room-details h4 {
  font-family: var(--admin-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.admin-room-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--admin-gold-light);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-room-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-room-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #e5ded7;
  font-weight: 500;
}

.admin-room-meta span i {
  color: var(--admin-gold);
}

.admin-room-desc {
  font-size: 0.85rem;
  color: #a3988d;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--admin-border);
}

.admin-card-actions .btn-admin {
  flex: 1;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .admin-rooms-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .admin-room-thumb {
    height: 190px;
  }
  .admin-room-details {
    padding: 16px;
  }
}


