/* ==========================================================================
   CITY CULTURAL CENTER - ENTERPRISE OPERATIONS & CALENDAR ENGINE (v10.0)
   Principal Executive Architecture: 100% Fixed-Frame Single-Page Cockpit
   Zero-Scroll Home Viewport (Perfect Fit in One Frame)
   ========================================================================== */

:root {
  --primary: #00897b;
  --primary-dark: #00695c;
  --primary-light: #e0f2f1;
  --primary-gradient: linear-gradient(135deg, #00897b 0%, #00695c 100%);
  
  --accent-orange: #f59e0b;
  --accent-orange-dark: #d97706;
  --accent-orange-light: #fef3c7;

  --hall-1: #10b981;
  --hall-1-bg: #d1fae5;
  --hall-2: #2563eb;
  --hall-2-bg: #dbeafe;
  --hall-3: #2563eb;
  --hall-3-bg: #dbeafe;
  --hall-4: #854d0e;
  --hall-4-bg: #fef3c7;
  --outdoor: #eab308;
  --outdoor-bg: #fef9c3;
  --outdoor-text: #713f12;

  --success: #10b981;
  --success-bg: #d1fae5;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --info: #0284c7;
  --info-bg: #e0f2fe;

  --bg-app: #f4f6f8;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --radius-xl: 14px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 5px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 3px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Base Reset: Absolute Single-Frame Lock */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto; /* Desktop & Mobile vertical scrolling fully enabled */
  background-color: var(--bg-app);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

/* ==================== 1. TOP APP BAR (Slim Executive Header) ==================== */
.app-header {
  background: var(--primary);
  color: #ffffff;
  padding: 6px 16px;
  height: auto !important;
  min-height: 48px;
  flex-shrink: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0, 137, 123, 0.25);
  display: flex;
  align-items: center;
}

.header-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon-box {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.header-title-box h1 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.header-title-box p {
  font-size: 10px;
  color: #b2dfdb;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-clock-pill {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.15);
  padding: 3px 8px;
  border-radius: 14px;
  color: #ffffff;
}

.header-user-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.header-btn-icon {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.header-btn-icon:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==================== 2. EXECUTIVE NAVIGATION DOCK ==================== */
.exec-nav-dock {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 4px 14px;
  height: auto !important;
  min-height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.exec-nav-dock::-webkit-scrollbar { display: none; }

.dock-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
}
.dock-item:hover {
  background: #f1f5f9;
  color: var(--text-main);
}
.dock-item.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: #b2dfdb;
}

/* ==================== 3. WORKSPACE CONTAINER (Zero Scroll Parent) ==================== */
.main-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 8px 12px 60px 12px;
  scrollbar-width: thin;
}

#screen-app, .screen-app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto !important;
  overflow-x: hidden;
}

/* ==================== 4. HOME CALENDAR COCKPIT (SINGLE FRAME) ==================== */
.calendar-cockpit {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Enable vertical scrolling on desktop */
  overflow-x: hidden;
  gap: 6px;
  padding-bottom: 24px;
}

/* Compact Micro-KPI Strip */
/* Compact Micro-KPI Strip */
.kpi-ribbon {
  flex-shrink: 0;
  height: auto !important;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.kpi-ribbon::-webkit-scrollbar { display: none; }

.kpi-scope-container {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}
.kpi-scope-label {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
}
.kpi-scope-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.kpi-scope-buttons .btn {
  font-size: 10px;
  padding: 2px 8px;
  font-weight: 800;
  white-space: nowrap;
}
.kpi-actions-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.btn-kpi-action {
  font-weight: 700;
  white-space: nowrap;
  font-size: 11px;
}
.btn-kpi-action.highlight-green {
  color: #166534;
  border-color: #22c55e;
  background: #f0fdf4;
}
.cal-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kpi-chip {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  height: 28px;
}

.kpi-chip-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.kpi-chip-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
}
.kpi-chip-val.green { color: #16a34a; }
.kpi-chip-val.red   { color: #dc2626; }
.kpi-chip-val.teal  { color: #00897b; }

/* Calendar Controls Header Bar */
.calendar-controls-bar {
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  height: auto !important;
  min-height: 42px;
}

.cal-nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-cal-nav {
  background: #ffffff;
  border: 1px solid var(--border-dark);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-cal-nav:hover { background: #f1f5f9; }

.cal-date-input {
  border: 1px solid var(--border-dark);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  background: #ffffff;
  width: 125px;
}

.cal-display-heading {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-left: 4px;
}

.cal-view-selector {
  display: flex;
  background: #e2e8f0;
  border-radius: 5px;
  padding: 2px;
}

.view-btn {
  border: none;
  background: transparent;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s;
}
.view-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Hall Filter & Primary Action Button Row */
.hall-filter-row {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  height: auto !important;
  min-height: 36px;
}

.hall-pills-group {
  display: flex;
  gap: 5px;
}

.hall-tag-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
  height: 26px;
}
.hall-tag-btn:hover { background: #f8fafc; }
.hall-tag-btn.active { color: #ffffff; }
.hall-tag-btn.pill-all.active { background: var(--text-main); border-color: var(--text-main); }
.hall-tag-btn.pill-h1.active  { background: var(--hall-1); border-color: var(--hall-1); }
.hall-tag-btn.pill-h2.active  { background: var(--hall-2); border-color: var(--hall-2); }
.hall-tag-btn.pill-h3.active  { background: var(--hall-3); border-color: var(--hall-3); color: #451a03; }

.btn-primary-action {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 4px rgba(0, 137, 123, 0.3);
  transition: all 0.15s;
  height: 28px;
}
.btn-primary-action:hover {
  background: var(--primary-dark);
}

/* ==================== 5. TIMELINE DAY VIEW (FIXED FRAME + INTERNAL SCROLL) ==================== */
.timeline-calendar-wrapper {
  flex: 1;
  min-height: auto;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  box-shadow: none;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
  margin-bottom: 20px;
}

/* Fixed Header for Timeline Columns */
.timeline-fixed-header-row {
  display: flex;
  height: 32px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.timeline-ruler-corner {
  width: 62px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-halls-header-group {
  display: flex;
  flex: 1;
  min-width: 480px;
}

.timeline-hall-head-cell {
  flex: 1;
  min-width: 160px;
  border-right: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 32px;
  color: var(--text-main);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}
.timeline-hall-head-cell:last-child {
  border-right: none;
}

/* Scrollable Timeline Body (Only calendar grid scrolls internally!) */
.timeline-scroll-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow-y: auto;
  overflow-x: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.timeline-scroll-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.timeline-scroll-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.timeline-time-ruler {
  width: 62px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: #fbfcfd;
}

.time-ruler-slot {
  height: 54px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-align: right;
  padding-right: 8px;
  padding-top: 4px;
  box-sizing: border-box;
}

.timeline-halls-columns {
  display: flex;
  flex: 1;
  position: relative;
  min-width: 480px;
}

.timeline-hall-col {
  flex: 1;
  min-width: 160px;
  border-right: 1px solid var(--border);
  position: relative;
  height: 918px; /* 17 slots * 54px */
}
.timeline-hall-col:last-child {
  border-right: none;
}

.timeline-hour-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 54px;
  border-bottom: 1px dashed #e2e8f0;
  box-sizing: border-box;
}

/* Event Card Block (Google Calendar Style) */
.timeline-event-card {
  position: absolute;
  left: 3px;
  right: 3px;
  border-radius: 6px;
  padding: 6px 8px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}
.timeline-event-card:hover {
  transform: scale(1.02);
  z-index: 25;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.timeline-event-card.h1 { background: #00897b; border-left: 3px solid #004d40; }
.timeline-event-card.h2 { background: #2563eb; border-left: 3px solid #1e40af; }
.timeline-event-card.h3 { background: #eab308; color: #451a03; border-left: 3px solid #a16207; }

.ev-title {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-time {
  font-size: 9px;
  opacity: 0.95;
  margin-top: 1px;
}
.ev-accounts {
  font-size: 9px;
  font-weight: 700;
  margin-top: 3px;
  background: rgba(0, 0, 0, 0.18);
  padding: 1px 5px;
  border-radius: 3px;
  width: fit-content;
}
.timeline-event-card.h3 .ev-accounts {
  background: rgba(0, 0, 0, 0.1);
  color: #451a03;
}

/* ==================== 6. MONTH VIEW (100% ZERO-SCROLL FIT) ==================== */
#home-month-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)); width: 100%; max-width: 100%; box-sizing: border-box;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cal-day-header {
  padding: 6px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: #f8fafc;
  text-transform: uppercase;
}

#cal-month-days-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)); width: 100%; max-width: 100%; box-sizing: border-box;
  grid-template-rows: repeat(5, 1fr);
  height: 100%;
  overflow: hidden;
}

.cal-day-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.cal-day-cell:nth-child(7n) { border-right: none; }
.cal-day-cell.other-month { background: #fbfcfd; opacity: 0.45; }
.cal-day-cell.today { background: #f0fdf4; }

.cal-date-number {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.cal-day-cell.today .cal-date-number {
  color: var(--primary);
  background: var(--primary-light);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-event-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 3px;
  margin-bottom: 2px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
  display: block;
}
.cal-event-pill.h1 { background: var(--hall-1); }
.cal-event-pill.h2 { background: var(--hall-2); }
.cal-event-pill.h3 { background: var(--hall-3); color: #451a03; }

/* ==================== 7. LIST REGISTER VIEW (INTERNAL SCROLL) ==================== */
#home-list-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

/* ==================== 8. SUB-PAGES & WORKSPACES ==================== */
.sub-page-scrollable {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 12px;
  scrollbar-width: thin;
}

.page-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-back-home {
  background: #ffffff;
  border: 1px solid var(--border-dark);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}
.btn-back-home:hover {
  background: var(--primary-light);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.section-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Booking Cards */
.booking-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 10px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.booking-card-left { flex: 1; }
.booking-org-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.booking-meta-line {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.booking-accounts-bar {
  margin-top: 6px;
  padding: 4px 8px;
  background: #f8fafc;
  border-radius: 4px;
  display: flex;
  gap: 12px;
  font-size: 11px;
  flex-wrap: wrap;
}
.acct-val { font-weight: 800; }
.acct-due { color: #dc2626; }
.acct-advance { color: #16a34a; }

.booking-status-tag {
  display: inline-flex;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.status-confirmed    { background: #d1fae5; color: #065f46; }
.status-advance_paid { background: #fef3c7; color: #92400e; }
.status-fully_paid   { background: #e0f2fe; color: #0369a1; }
.status-completed    { background: #e2e8f0; color: #334155; }
.status-cancelled    { background: #fee2e2; color: #991b1b; }

/* Tables */
.calendar-time-table {
  width: 100%;
  border-collapse: collapse;
}
.calendar-time-table th,
.calendar-time-table td {
  border: 1px solid var(--border);
  padding: 6px 8px;
  font-size: 11px;
}
.calendar-time-table th {
  background: #f8fafc;
  font-weight: 700;
  text-align: left;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #ffffff; border: 1px solid var(--border-dark); color: var(--text-main); }
.btn-outline:hover { background: #f1f5f9; }
.btn-sm { padding: 4px 8px; font-size: 10px; }
.btn-whatsapp-green { background: #25d366 !important; color: #ffffff !important; }
.btn-whatsapp-green:hover { background: #128c7e !important; }
.full-width { width: 100%; }

/* Forms */
.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}
.form-group label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
}
input, select, textarea {
  border: 1px solid var(--border-dark);
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 137, 123, 0.2);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.modal.hidden { display: none !important; }
.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.modal-header h3 { font-size: 15px; font-weight: 800; }
.btn-close {
  background: #f1f5f9;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toast {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 220px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.danger  { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info    { border-left: 3px solid var(--info); }

.hidden { display: none !important; }


/* ==================== 3 COMPACT COLOR-CODED TIME BARS ==================== */
.compact-bars-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  flex-shrink: 0;
}

.hall-time-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hall-time-card:hover {
  box-shadow: var(--shadow-md);
}

.hall-time-card.h1 { border-left: 5px solid var(--hall-1); }
.hall-time-card.h2 { border-left: 5px solid var(--hall-2); }
.hall-time-card.h3 { border-left: 5px solid var(--hall-3); }

.hall-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hall-bar-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hall-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.hall-status-dot.h1 { background: var(--hall-1); }
.hall-status-dot.h2 { background: var(--hall-2); }
.hall-status-dot.h3 { background: var(--hall-3); }

.hall-bar-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.hall-bar-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.hall-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hall-summary-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}
.hall-summary-pill.h1 { background: var(--hall-1-bg); color: var(--hall-1); }
.hall-summary-pill.h2 { background: var(--hall-2-bg); color: var(--hall-2); }
.hall-summary-pill.h3 { background: var(--hall-3-bg); color: #854d0e; }

/* Time Ruler Labels */
.time-bar-ruler {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: -2px;
  user-select: none;
}

/* The Horizontal Time Bar Track */
.horizontal-time-bar-track {
  height: 36px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}
.horizontal-time-bar-track:hover {
  background: #e2e8f0;
}

/* Time Divider Ticks */
.time-bar-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

/* Booked Capsule Blocks */
.booked-block {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 6px;
  color: #ffffff;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.15s, box-shadow 0.15s;
  z-index: 5;
}
.booked-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.booked-block.h1 { background: linear-gradient(135deg, #00897b, #00695c); border: 1px solid #004d40; }
.booked-block.h2 { background: linear-gradient(135deg, #2563eb, #1d4ed8); border: 1px solid #1e40af; }
.booked-block.h3 { background: linear-gradient(135deg, #f59e0b, #d97706); color: #451a03; border: 1px solid #b45309; }

.block-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.block-due {
  font-size: 9px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.booked-block.h3 .block-due {
  background: rgba(0, 0, 0, 0.12);
  color: #451a03;
}

/* Hall Schedule Detail Drawer / Panel */
.hall-schedule-drawer {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  margin-top: 4px;
}


/* ==================== OUT-DOOR & DISTINCT HALL STYLING ==================== */
.hall-time-card.h4 { border-left: 5px solid #854d0e; background: #fffdf5; }
.hall-status-dot.h4 { background: #854d0e; }
.hall-summary-pill.h4 { background: #fef3c7; color: #854d0e; font-weight: 700; }
.booked-block.h4 { background: #854d0e; color: #ffffff; }
.hall-tag-btn.pill-h4.active { background: #854d0e; border-color: #854d0e; color: #ffffff; }
.cal-event-pill.h4 { background: #854d0e !important; color: #ffffff !important; font-weight: 700; border: 1px solid #78350f; }

.cal-event-pill.outdoor {
  background: #eab308 !important;
  color: #451a03 !important;
  font-weight: 800 !important;
  border: 1px solid #ca8a04 !important;
}

.hall-time-card.outdoor {
  border-left: 5px solid #eab308;
  background: #fefce8;
}

.hall-status-dot.outdoor { background: #eab308; }
.hall-summary-pill.outdoor { background: #fef9c3; color: #854d0e; font-weight: 800; }

.booked-block.outdoor {
  background: linear-gradient(135deg, #facc15, #eab308);
  border: 1px solid #ca8a04;
  color: #713f12;
  font-weight: 700;
}

.hall-tag-btn.pill-outdoor.active {
  background: #eab308;
  border-color: #ca8a04;
  color: #713f12;
  font-weight: 800;
}

.cal-event-pill.outdoor {
  background: #eab308;
  color: #713f12;
  font-weight: 700;
}

/* ==================== DEDICATED EMPLOYEE PORTAL STYLING ==================== */
.emp-nav-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.emp-nav-pill:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.emp-nav-pill.active {
  background: #00897b;
  color: #ffffff;
  border-color: #00897b;
  box-shadow: 0 2px 6px rgba(0, 137, 123, 0.3);
}

.emp-sub-page {
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.task-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.task-item-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.task-status-pill {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
}

.task-status-pill.pending { background: #fef3c7; color: #92400e; }
.task-status-pill.in_progress { background: #dbeafe; color: #1e40af; }
.task-status-pill.completed { background: #d1fae5; color: #065f46; }

.status-pill-active {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-pill-inactive {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==================== PRINT STYLES FOR OFFICIAL REPORTS ==================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Hide app navigation and floating UI during print */
  .app-header, .dock-nav, .view-btn, .cal-view-selector,
  .hall-filter-row, #pwa-install-banner, .btn-back-home,
  .btn, button, select, input, .modal-header .btn-close {
    display: none !important;
  }

  /* Ensure printable area takes full width */
  .main-container, .card, .printable-report-sheet {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .calendar-time-table, table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 10pt !important;
  }

  .calendar-time-table th, table th {
    background: #f1f5f9 !important;
    color: #000000 !important;
    border: 1px solid #94a3b8 !important;
    padding: 6px 8px !important;
  }

  .calendar-time-table td, table td {
    border: 1px solid #cbd5e1 !important;
    padding: 6px 8px !important;
    color: #000000 !important;
  }

  .page-break-avoid {
    page-break-inside: avoid !important;
  }
}


/* ==================== FLUID / LIQUID RESPONSIVE RULES (ZERO OVERLAP, ZERO HORIZONTAL SPILL) ==================== */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

#app, .main-container, .calendar-cockpit {
  max-width: 100vw;
  box-sizing: border-box;
}

/* Ensure no elements overlap when view is resized or zoomed */
.calendar-controls-bar,
.hall-filter-row,
.kpi-ribbon,
.exec-nav-dock,
.app-header {
  height: auto !important;
  box-sizing: border-box;
}

.cal-view-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 6px;
}

.view-btn {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .calendar-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .cal-nav-group {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .cal-actions-view-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .cal-view-selector {
    width: 100%;
    justify-content: flex-start;
  }
  .hall-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .hall-pills-group {
    width: 100%;
    flex-wrap: wrap;
  }
  .btn-primary-action {
    width: 100%;
    justify-content: center;
    height: 36px;
    font-size: 13px;
  }
}


/* ==================== STRICT MOBILE-FIRST FLUID RULES (MAX-WIDTH: 768px) ==================== */
@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    font-size: 14px !important;
  }

  #app, .main-container, .calendar-cockpit {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding: 6px 8px 60px 8px !important;
    box-sizing: border-box !important;
  }

  /* 1. Header: Clean 1-line mobile header */
  .app-header {
    padding: 6px 8px !important;
    min-height: 42px !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
  }
  .header-left {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
  }
  .brand-icon-box {
    font-size: 18px !important;
    flex-shrink: 0 !important;
  }
  .header-title-box h1 {
    font-size: 14px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .header-title-box p {
    font-size: 10px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .btn-header-home {
    display: none !important; /* Mobile already has Home in nav dock */
  }
  .header-clock-pill,
  #header-user-chip,
  #btn-header-install-app {
    display: none !important; /* Hide desktop user chip, install banner, clock */
  }
  .header-right {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  .header-btn-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
    padding: 0 !important;
  }

  /* 2. Nav Dock: Horizontal swipeable tabs without expanding page */
  .exec-nav-dock {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    display: flex !important;
    padding: 3px 6px !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
  }
  .exec-nav-dock::-webkit-scrollbar { display: none !important; }
  .dock-item {
    font-size: 11px !important;
    padding: 4px 8px !important;
    flex-shrink: 0 !important;
    height: 28px !important;
    border-radius: 6px !important;
  }

  /* 3. KPI Ribbon: 2-column readable grid strictly 100% contained */
  .kpi-ribbon {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-bottom: 4px !important;
  }
  .kpi-scope-container {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #f1f5f9 !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
  }
  .kpi-scope-label {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #475569 !important;
    white-space: nowrap !important;
    margin-right: 2px !important;
  }
  .kpi-scope-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }
  .kpi-scope-container .btn {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 3px 2px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 26px !important;
  }
  .kpi-chip {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 4px 6px !important;
    height: auto !important;
    min-height: 38px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 1px !important;
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
  }
  .kpi-chip-label {
    font-size: 9px !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }
  .kpi-chip-val {
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }
  .kpi-actions-row {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 2px !important;
  }
  .kpi-actions-row .btn-kpi-action {
    width: 100% !important;
    min-width: 0 !important;
    padding: 4px 2px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    box-sizing: border-box !important;
  }

  /* 4. Calendar Controls: Compact & Streamlined */
  .calendar-controls-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
    padding: 5px 8px !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .cal-nav-group {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
  }
  .btn-cal-nav {
    height: 30px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
  }
  .cal-date-input {
    height: 30px !important;
    font-size: 11px !important;
    padding: 2px 4px !important;
    flex: 1 !important;
    min-width: 0 !important;
    max-width: 125px !important;
    box-sizing: border-box !important;
  }
  .cal-display-heading {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #00897b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: right !important;
    flex: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .cal-actions-view-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .cal-actions-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .cal-actions-row .btn {
    width: 100% !important;
    min-width: 0 !important;
    padding: 4px 4px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    height: 30px !important;
  }
  .cal-view-selector {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 2px !important;
    gap: 3px !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
  }
  .cal-view-selector::-webkit-scrollbar { display: none !important; }
  .view-btn {
    padding: 4px 8px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    height: 28px !important;
  }

  /* 5. Hall Filter Row */
  .hall-filter-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 4px 0 !important;
  }
  .hall-pills-group {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 4px !important;
    width: 100% !important;
    padding: 2px 0 !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
  }
  .hall-pills-group::-webkit-scrollbar { display: none !important; }
  .hall-tag-btn {
    padding: 4px 8px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    height: 28px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .btn-primary-action {
    width: 100% !important;
    justify-content: center !important;
    height: 38px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
  }

  /* Month View Header Strip */
  .month-view-header-strip {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    padding: 6px 8px !important;
  }
  .month-view-header-strip .btn-group {
    width: 100% !important;
    display: flex !important;
    gap: 4px !important;
  }
  .month-view-header-strip .btn-group .btn {
    flex: 1 !important;
    font-size: 11px !important;
    padding: 4px 6px !important;
    text-align: center !important;
  }

  /* 6. Month View on Mobile: Strictly Clamped to Screen Width */
  #home-month-container {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .calendar-month-grid {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #cal-month-days-grid {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .cal-day-header {
    padding: 4px 1px !important;
    font-size: 9px !important;
    text-align: center !important;
  }
  .cal-day-cell {
    padding: 2px !important;
    min-height: 52px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .cal-date-number {
    font-size: 9px !important;
  }
  .cal-event-pill {
    font-size: 8px !important;
    padding: 1px 2px !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* 7. Daily Stacked Hall Cards */
  .hall-stacked-vertical-card {
    padding: 12px 14px !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .booking-stacked-item {
    padding: 12px 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 8. Booking Register Mobile Cards */
  .booking-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }
  .booking-card-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    width: 100% !important;
    gap: 6px !important;
    padding-top: 8px !important;
    border-top: 1px dashed #e2e8f0 !important;
  }
}

/* Month Vertical Schedule View */
.month-day-section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.month-day-section.today-section {
  border: 2px solid #00897b;
  background: #f0fdfa;
}
.month-day-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.month-vertical-booking-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 6px solid #10b981;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 6px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.month-vertical-booking-card:active {
  transform: scale(0.99);
}
.month-day-empty-row {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
}

/* Holiday & Birthday Orange Color Styling */
.cal-event-pill.holiday {
  background-color: #f97316 !important;
  color: #ffffff !important;
  border: 1px solid #ea580c !important;
  font-weight: 800 !important;
}

/* Red Bar for Employee Leaves on Calendar */
.cal-event-pill.staff-leave {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border: 1px solid #b91c1c !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 2px rgba(239, 68, 68, 0.3) !important;
}

/* ==================== 100% STRICT FLUID RESPONSIVE COCKPIT STYLES ==================== */
html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

#app, .main-container, .calendar-cockpit {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.kpi-summary-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  margin-top: 14px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  overflow: hidden !important;
}

.kpi-fluid-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 10px !important;
}

.kpi-fluid-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.kpi-card-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}

.kpi-card-val {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-top: 3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  .kpi-fluid-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
}
