/* ==========================================================================
   B-CHECK: LUXURY HOTEL BREAKFAST CHECK-IN SYSTEM
   Modern, Responsive, Touch-Friendly Hospitality Design System
   ========================================================================== */

:root {
  /* Color Palette - Modern Santika Luxury Blue Theme (Matching Reference Images) */
  --bg-primary: #f4f6fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-active: #f1f5f9;
  --bg-input: #ffffff;
  --bg-modal: #ffffff;

  --sidebar-bg: #404a5f;
  --sidebar-header: #1484cb;
  --sidebar-footer: #363f52;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-text: #cbd5e1;
  --sidebar-text-hover: #ffffff;

  --border-color: #e2e8f0;
  --border-focus: #0084cb;
  --border-light: #f1f5f9;
  --border-subtle: #f8fafc;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  /* Accent & Status Colors */
  --accent-blue: #0084cb;
  --accent-blue-hover: #0073b3;
  --accent-blue-light: rgba(0, 132, 203, 0.1);
  --accent-blue-gradient: linear-gradient(135deg, #0284c7 0%, #0077b6 100%);

  /* Backward compatible aliases so all existing references automatically switch */
  --accent-gold: #0084cb;
  --accent-gold-hover: #0073b3;
  --accent-gold-light: rgba(0, 132, 203, 0.1);
  --accent-gold-gradient: linear-gradient(135deg, #0084cb 0%, #0073b3 100%);

  --status-belum-bg: #f1f5f9;
  --status-belum-border: #cbd5e1;
  --status-belum-text: #475569;

  --status-sebagian-bg: #fef3c7;
  --status-sebagian-border: rgba(245, 158, 11, 0.4);
  --status-sebagian-text: #b45309;

  --status-selesai-bg: #dcfce7;
  --status-selesai-border: rgba(16, 185, 129, 0.4);
  --status-selesai-text: #15803d;

  --status-over-bg: #fee2e2;
  --status-over-border: rgba(239, 68, 68, 0.4);
  --status-over-text: #b91c1c;

  --brand-primary: #0084cb;
  --brand-gradient: linear-gradient(135deg, #0084cb 0%, #0073b3 100%);
  --brand-blue-gradient: linear-gradient(135deg, #38bdf8 0%, #0084cb 100%);

  /* Elevations */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -4px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 18px rgba(0, 132, 203, 0.2);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light / Unified Mode Overrides */
[data-theme="light"],
[data-theme="dark"] {
  --bg-primary: #f4f6fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-active: #f1f5f9;
  --bg-input: #ffffff;
  --bg-modal: #ffffff;

  --border-color: #e2e8f0;
  --border-focus: #0084cb;
  --border-light: #f1f5f9;
  --border-subtle: #f8fafc;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  --accent-gold: #0084cb;
  --accent-gold-hover: #0073b3;
  --accent-gold-light: rgba(0, 132, 203, 0.1);
  --accent-gold-gradient: linear-gradient(135deg, #0084cb 0%, #0073b3 100%);

  --status-belum-bg: #f1f5f9;
  --status-belum-border: #cbd5e1;
  --status-belum-text: #475569;

  --status-sebagian-bg: #fef3c7;
  --status-sebagian-border: rgba(245, 158, 11, 0.4);
  --status-sebagian-text: #b45309;

  --status-selesai-bg: #dcfce7;
  --status-selesai-border: rgba(16, 185, 129, 0.4);
  --status-selesai-text: #15803d;

  --status-over-bg: #fee2e2;
  --status-over-border: rgba(239, 68, 68, 0.4);
  --status-over-text: #b91c1c;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 18px rgba(0, 132, 203, 0.2);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* App Layout with Left Sidebar */
.app-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-primary);
  position: relative;
}

/* Sidebar Backdrop (Mobile) */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Left Sidebar Navigation (Modern Slate Palette & Design matching reference) */
.app-sidebar {
  width: 270px;
  min-width: 270px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  background-color: #404a5f;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.app-sidebar::-webkit-scrollbar {
  width: 4px;
}

.app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}

/* Sidebar Brand Header Banner */
.sidebar-brand {
  padding: 16px 16px 16px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #127cb8 0%, #1485ca 45%, #1e8cd0 100%);
  position: relative;
  overflow: hidden;
  min-height: 72px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Geometric diamond facet polygon accent matching reference header */
.sidebar-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.12) 40%, rgba(255, 255, 255, 0.12) 60%, transparent 60%),
    linear-gradient(-60deg, transparent 45%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.08) 75%, transparent 75%),
    radial-gradient(circle at 88% 25%, rgba(255, 255, 255, 0.22), transparent 50%);
  pointer-events: none;
}

.sidebar-logo-container {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}

.sidebar-logo-container:hover {
  background: #ffffff;
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.sidebar-brand-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.brand-title-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.brand-title-wrap h2 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  text-transform: uppercase;
}

.badge-pro {
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
}

.brand-title-wrap p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 3px 0 0 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Collapse Arrow Button */
.sidebar-collapse-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.sidebar-collapse-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

/* Backward-compatible classes */
.sidebar-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-logo-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: var(--brand-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}

/* Sidebar Shift Info Widget */
.sidebar-status-card {
  margin: 14px 16px;
  padding: 12px 14px;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-md);
}

.status-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.status-shift-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-shift-hours {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.status-shift-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Sidebar Navigation Items */
.sidebar-nav {
  flex: 1;
  padding: 12px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-section-title {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8e9db2;
  margin: 18px 10px 6px 10px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 500;
  color: #cbd5e1;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
  outline: none;
  position: relative;
}

.sidebar-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-nav-item:hover .nav-item-icon {
  color: #ffffff;
}

.sidebar-nav-item.active {
  background: #1485ca;
  color: #ffffff;
  font-weight: 700;
  border: none;
  box-shadow: 0 3px 10px rgba(20, 133, 202, 0.35);
}

.sidebar-nav-item.active .nav-item-icon {
  color: #ffffff;
}

.sidebar-nav-item.active::after {
  display: none !important;
}

.nav-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #9bb0c7;
  transition: color 0.15s ease;
}

.nav-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  display: block;
}

.nav-item-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.nav-item-badge {
  background: #1485ca;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.nav-item-status {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #dbeafe;
}

/* Sidebar Footer (Minimalist Slate Tone matching #404A5F) */
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #363f52;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-wrap {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #1485ca;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.user-avatar-wrap svg {
  stroke: #ffffff;
  width: 18px;
  height: 18px;
}

.user-info-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.user-display-name {
  color: #ffffff !important;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.user-role-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.2;
  text-transform: uppercase;
}

.user-role-badge.role-admin {
  background: rgba(18, 133, 202, 0.28) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
}

.user-role-badge.role-admin-km {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.5) !important;
}

.user-role-badge.role-staf {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.btn-logout {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-logout svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.system-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.online-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
}

/* Main Wrapper & Topbar */
.main-wrapper {
  margin-left: 270px;
  width: calc(100% - 270px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f4f6fa;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.page-main-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.page-sub-heading {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 3px;
  font-weight: 400;
}

/* Sidebar Close Toggle Button */
.sidebar-close-toggle {
  margin-left: auto;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.sidebar-close-toggle:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  transform: scale(1.06);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-toggle-btn {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.sidebar-toggle-btn:hover {
  background: rgba(0, 132, 203, 0.08);
  color: #0084cb;
  border-color: rgba(0, 132, 203, 0.35);
}

/* Collapsed Sidebar State (Desktop) */
.app-layout.sidebar-collapsed .app-sidebar {
  transform: translateX(-100%);
}

.app-layout.sidebar-collapsed .main-wrapper {
  margin-left: 0;
  width: 100%;
}

.app-layout.sidebar-collapsed .sidebar-toggle-btn {
  border-color: #0084cb;
  color: #0084cb;
  background: rgba(0, 132, 203, 0.12);
}

.topbar-heading .page-main-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.topbar-heading .page-sub-heading {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Page Content: Fluid 100% Full Width */
.page-content {
  padding: 20px 28px 80px 28px;
  flex: 1;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}


/* Date Bar & Live Clock */
.nav-center-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-card);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.date-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.date-nav-btn:hover {
  color: var(--accent-gold);
  background-color: var(--bg-card-hover);
}

.active-date-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-date-display input[type="date"] {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
}

.live-clock-badge {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: var(--accent-gold-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #0084cb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 132, 203, 0.28);
}

.btn-primary:hover {
  background: #0073b3;
  box-shadow: 0 6px 16px rgba(0, 132, 203, 0.38);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--text-secondary);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

.btn-outline-gold {
  background: transparent;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

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

.btn-icon-only {
  padding: 10px;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* KPI Summary Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: var(--transition);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.16);
}

.kpi-card:hover::before {
  background: var(--accent-gold);
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.kpi-icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.kpi-icon-bubble svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  display: block;
}

.kpi-icon-rooms {
  background: #e0f2fe;
  color: #0084cb;
  border: 1px solid #bae6fd;
}

.kpi-icon-pax {
  background: #ede9fe;
  color: #6366f1;
  border: 1px solid #ddd6fe;
}

.kpi-icon-checked {
  background: #d1fae5;
  color: #10b981;
  border: 1px solid #a7f3d0;
}

.kpi-icon-pending {
  background: #fef3c7;
  color: #f59e0b;
  border: 1px solid #fde68a;
}

.kpi-card:hover .kpi-icon-bubble {
  transform: scale(1.08);
}

.kpi-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.kpi-unit {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.kpi-subtext {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Overall Progress Bar Card */
.overall-progress-bar-wrap {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.progress-info {
  min-width: 180px;
}

.progress-info .progress-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-info .progress-pct {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.2;
}

.progress-track {
  flex: 1;
  height: 10px;
  background-color: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-light);
}

.progress-fill {
  height: 100%;
  background: #0084cb;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 132, 203, 0.35);
  position: relative;
}

/* Search & Filter Toolbar */
.toolbar-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.search-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.search-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.search-input {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px 8px 36px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.search-shortcut-badge {
  position: absolute;
  right: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.search-clear-btn {
  position: absolute;
  right: 42px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  display: none;
  font-size: 0.8rem;
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

/* Filters & Chips */
.filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-chips-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.filter-chip:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
}

.filter-chip.active {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #000000;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.filter-count {
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.filter-chip.active .filter-count {
  background: rgba(0, 0, 0, 0.25);
  color: #000;
}

/* Floor Filter dropdown / chips */
.floor-chips-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.floor-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-toggle-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.view-toggle-btn.active {
  background-color: var(--bg-card-hover);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* Guest Cards Grid */
.guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* Single Guest Room Card */
.room-card {
  background-color: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.room-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 158, 11, 0.4);
}

/* Status Stripe Indicator */
.room-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background-color: var(--border-color);
}

.room-card.status-belum::before {
  background-color: #64748b;
}

.room-card.status-sebagian::before {
  background-color: var(--accent-gold);
}

.room-card.status-selesai::before {
  background-color: #10b981;
}

.room-card.status-over::before {
  background-color: #ef4444;
}

.room-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.room-number-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.room-number-badge {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  background: var(--bg-card);
  padding: 4px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: inline-block;
  min-width: 72px;
  text-align: center;
}

.room-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-belum {
  background-color: var(--status-belum-bg);
  color: var(--status-belum-text);
  border: 1px solid var(--status-belum-border);
}

.badge-sebagian {
  background-color: var(--status-sebagian-bg);
  color: var(--status-sebagian-text);
  border: 1px solid var(--status-sebagian-border);
}

.badge-selesai {
  background-color: var(--status-selesai-bg);
  color: var(--status-selesai-text);
  border: 1px solid var(--status-selesai-border);
}

.badge-over {
  background-color: var(--status-over-bg);
  color: var(--status-over-text);
  border: 1px solid var(--status-over-border);
}

.room-guest-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-pax-details {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.pax-pill {
  background-color: var(--bg-card);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 600;
}

.pax-pill strong {
  color: var(--accent-gold);
}

.person-pill {
  color: var(--text-muted);
}

.room-notes-alert {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--accent-gold);
  padding: 6px 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 12px;
  word-break: break-word;
}

.room-time-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

/* Card Actions */
.room-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.btn-checkin-full {
  flex: 1;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px;
}

.btn-checkin-full:hover {
  background: linear-gradient(135deg, #d97706 0%, #c2410c 100%);
}

.btn-checkin-done {
  flex: 1;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px;
  cursor: default;
}

.btn-plus-pax {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 700;
  padding: 10px 14px;
}

.btn-plus-pax:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-card-more {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px;
}

.btn-card-more:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Table View - Compact Minimalist */
.table-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.guest-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.82rem;
  font-family: var(--font-main);
}

.guest-table thead th {
  position: sticky;
  top: 0;
  background-color: #162235;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  border-bottom: 2px solid #0f172a;
  z-index: 10;
  white-space: nowrap;
}

.guest-table tbody td {
  padding: 5px 10px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
  font-size: 0.82rem;
  line-height: 1.3;
  transition: background-color 0.15s ease;
}

.guest-table tbody tr:hover td {
  background-color: var(--bg-card-hover);
}

.guest-table tbody tr:last-child td {
  border-bottom: none;
}

/* Compact Room Number Badge inside Table */
.guest-table .room-number-badge {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text-primary);
  background: var(--bg-card);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  display: inline-block;
  min-width: 58px;
  text-align: center;
}

.table-guest-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.table-guest-note {
  font-size: 0.7rem;
  color: var(--accent-gold);
  margin-top: 1px;
  line-height: 1.2;
}

.table-keterangan-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  line-height: 1.3;
}

/* Compact Numeric badges in table */
.pax-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
}

.person-badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
}

.hadir-badge {
  display: inline-block;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
}

.hadir-zero {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.hadir-part {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid var(--accent-gold);
  color: #fbbf24;
}

.hadir-done {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10b981;
  color: #34d399;
}

.additional-badge {
  display: inline-block;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 2px 7px;
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #f59e0b;
}

/* Compact Room Status Badge inside Table */
.guest-table .room-status-badge {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  min-width: 40px;
  text-align: center;
  display: inline-block;
}

/* Compact Action Buttons inside Table */
.guest-table .btn-sm {
  padding: 3px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  line-height: 1.2;
}

.guest-table .btn-action-checkin-seq,
.guest-table .btn-checkin-done {
  flex: none !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 26px !important;
  padding: 0 !important;
  font-size: 0.9rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.guest-table .btn-action-additional,
.guest-table .btn-action-plus-one,
.guest-table .btn-action-undo-row,
.guest-table .btn-action-more {
  flex: none !important;
  padding: 0 6px !important;
  font-size: 0.76rem;
  min-width: 26px;
  height: 26px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.guest-table .btn-action-undo-row {
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  background: rgba(239, 68, 68, 0.08) !important;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.guest-table .btn-action-undo-row:not(:disabled):hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.guest-table .btn-action-undo-row:disabled {
  opacity: 0.28 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  filter: grayscale(1);
}

.guest-table .btn-action-additional:disabled {
  opacity: 0.28;
  cursor: not-allowed !important;
  pointer-events: none;
  filter: grayscale(1);
}

/* Quick Action column */
.guest-table th.col-aksi,
.guest-table td.col-aksi {
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

body.role-staf .guest-table th.col-aksi,
body.role-staf .guest-table td.col-aksi,
.role-staf .guest-table th.col-aksi,
.role-staf .guest-table td.col-aksi {
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
}

body.role-admin .guest-table th.col-aksi,
body.role-admin .guest-table td.col-aksi,
.role-admin .guest-table th.col-aksi,
.role-admin .guest-table td.col-aksi {
  width: 170px !important;
  min-width: 170px !important;
  max-width: 170px !important;
}

.guest-table td.col-aksi>div {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

/* Additional Pax (Extra) Modal - compact & neat on all devices */
#additionalModal .modal-dialog {
  max-width: 390px !important;
  width: 92% !important;
}

@media (max-width: 480px) {
  #additionalModal .modal-dialog {
    max-width: 350px !important;
    width: 95% !important;
    margin: 8px auto !important;
  }
}

/* Room Details Modal - compact & neat on all devices */
#roomDetailModal .modal-dialog {
  max-width: 410px !important;
  width: 92% !important;
}

@media (max-width: 480px) {
  #roomDetailModal .modal-dialog {
    max-width: 350px !important;
    width: 95% !important;
    margin: 8px auto !important;
  }
}

/* ==========================================================================
   Full Bleed Edge-to-Edge Unified Attendance Table View
   "Tabel guest full kiri-kanan atas-bawah agar menyatu & tidak terpisah"
   ========================================================================== */
#viewAttendance[style*="display: none"] {
  display: none !important;
}

@media screen {

  body.in-attendance-view,
  body:has(#viewAttendance:not([style*="display: none"])) {
    height: 100vh;
    overflow: hidden;
  }

  body.in-attendance-view .app-layout,
  body:has(#viewAttendance:not([style*="display: none"])) .app-layout {
    height: 100vh;
    overflow: hidden;
  }

  body.in-attendance-view .main-wrapper,
  body:has(#viewAttendance:not([style*="display: none"])) .main-wrapper {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  body.in-attendance-view .app-topbar,
  body:has(#viewAttendance:not([style*="display: none"])) .app-topbar {
    flex-shrink: 0;
  }

  body.in-attendance-view .page-content,
  body:has(#viewAttendance:not([style*="display: none"])) .page-content {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: calc(100vh - 73px) !important;
    max-height: calc(100vh - 73px) !important;
    overflow: hidden !important;
  }

  body.in-attendance-view #viewAttendance,
  body:has(#viewAttendance:not([style*="display: none"])) #viewAttendance {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Toolbar: Flush top, left & right with topbar and table */
  body.in-attendance-view #viewAttendance .toolbar-section,
  body:has(#viewAttendance:not([style*="display: none"])) #viewAttendance .toolbar-section {
    border-radius: 0 !important;
    margin: 0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: none !important;
    padding: 8px 18px !important;
    background-color: var(--bg-secondary) !important;
    flex-shrink: 0 !important;
  }

  /* Table Container: Fills 100% remaining vertical and horizontal space */
  body.in-attendance-view #guestTableContainer.table-container,
  body:has(#viewAttendance:not([style*="display: none"])) #guestTableContainer.table-container {
    border-radius: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    background-color: var(--bg-primary) !important;
  }

  /* Guest table edge-to-edge spreadsheet styling */
  body.in-attendance-view .guest-table,
  body:has(#viewAttendance:not([style*="display: none"])) .guest-table {
    width: 100% !important;
    min-width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  /* Sticky Header directly attached beneath the toolbar */
  body.in-attendance-view .guest-table thead th,
  body:has(#viewAttendance:not([style*="display: none"])) .guest-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background-color: #162235 !important;
    color: #ffffff !important;
    border-top: none !important;
    border-bottom: 2px solid #0f172a !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4) !important;
    padding: 8px 12px !important;
    letter-spacing: 0.05em !important;
  }

  /* Leftmost & Rightmost edge padding for readability */
  body.in-attendance-view .guest-table thead th:first-child,
  body:has(#viewAttendance:not([style*="display: none"])) .guest-table thead th:first-child,
  body.in-attendance-view .guest-table tbody td:first-child,
  body:has(#viewAttendance:not([style*="display: none"])) .guest-table tbody td:first-child {
    padding-left: 18px !important;
  }

  body.in-attendance-view .guest-table thead th:last-child,
  body:has(#viewAttendance:not([style*="display: none"])) .guest-table thead th:last-child,
  body.in-attendance-view .guest-table tbody td:last-child,
  body:has(#viewAttendance:not([style*="display: none"])) .guest-table tbody td:last-child {
    padding-right: 10px !important;
  }

  /* Ensure QUICK ACTION column is aligned and cleanly sticky right */
  body.in-attendance-view .guest-table th.col-aksi,
  body:has(#viewAttendance:not([style*="display: none"])) .guest-table th.col-aksi {
    position: sticky !important;
    right: 0 !important;
    z-index: 12 !important;
    background-color: #162235 !important;
    color: #ffffff !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.25) !important;
  }

  body.in-attendance-view .guest-table tbody td.col-aksi,
  body:has(#viewAttendance:not([style*="display: none"])) .guest-table tbody td.col-aksi {
    position: sticky !important;
    right: 0 !important;
    z-index: 8 !important;
    background-color: var(--bg-card) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.25) !important;
  }

  body.in-attendance-view .guest-table tbody tr:hover td.col-aksi,
  body:has(#viewAttendance:not([style*="display: none"])) .guest-table tbody tr:hover td.col-aksi {
    background-color: var(--bg-card-hover) !important;
  }

  [data-theme="light"] body.in-attendance-view .guest-table th.col-aksi,
  [data-theme="light"] body:has(#viewAttendance:not([style*="display: none"])) .guest-table th.col-aksi {
    background-color: #162235 !important;
    color: #ffffff !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2) !important;
  }

  [data-theme="light"] body.in-attendance-view .guest-table tbody td.col-aksi,
  [data-theme="light"] body:has(#viewAttendance:not([style*="display: none"])) .guest-table tbody td.col-aksi {
    background-color: #ffffff !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.05) !important;
  }

  [data-theme="light"] body.in-attendance-view .guest-table tbody tr:hover td.col-aksi,
  [data-theme="light"] body:has(#viewAttendance:not([style*="display: none"])) .guest-table tbody tr:hover td.col-aksi {
    background-color: #f8fafc !important;
  }

  body.in-attendance-view .guest-table tbody td,
  body:has(#viewAttendance:not([style*="display: none"])) .guest-table tbody td {
    padding: 6px 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  body.in-attendance-view .guest-table tbody tr:hover td,
  body:has(#viewAttendance:not([style*="display: none"])) .guest-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.035) !important;
  }

  /* Light Theme Table Header override */
  [data-theme="light"] body.in-attendance-view .guest-table thead th,
  [data-theme="light"] body:has(#viewAttendance:not([style*="display: none"])) .guest-table thead th {
    background-color: #162235 !important;
    color: #ffffff !important;
  }

  /* Custom scrollbar for full height table */
  #guestTableContainer::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  #guestTableContainer::-webkit-scrollbar-track {
    background: var(--bg-primary);
  }

  #guestTableContainer::-webkit-scrollbar-thumb {
    background: #25334a;
    border-radius: 4px;
  }

  #guestTableContainer::-webkit-scrollbar-thumb:hover {
    background: #3b4e6b;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  margin: 20px 0;
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 480px;
  margin: 0 auto 20px auto;
}

/* Modal Overlay & Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background-color: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 0, 0, 0.5);
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog-large {
  max-width: 820px;
}

@keyframes modalScaleUp {
  from {
    transform: scale(0.96) translateY(8px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text-primary);
}

.modal-header h3 svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.modal-body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: var(--bg-modal);
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Upload Dropzone */
.dropzone-box {
  border: 2px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  background-color: var(--accent-gold-light);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  margin-bottom: 20px;
}

.dropzone-box:hover,
.dropzone-box.dragover {
  background-color: rgba(245, 158, 11, 0.25);
  border-color: #fbbf24;
}

.dropzone-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.dropzone-box h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.dropzone-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

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

/* Toast Notifications (Pemberitahuan Aksi Popup di Tengah) */
.toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  max-width: 90vw;
}

.toast {
  background: #0f172a;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 14px 22px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 460px;
  pointer-events: auto;
  cursor: pointer;
  animation: toastCenterPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast span {
  color: #ffffff !important;
  font-weight: 700;
}

.toast.toast-success {
  background: #064e3b !important;
  border-left: 5px solid #10b981 !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.6), 0 0 28px rgba(16, 185, 129, 0.35) !important;
  color: #ffffff !important;
}

.toast.toast-success span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.toast.toast-error {
  background: #450a0a !important;
  border-left: 5px solid #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.6), 0 0 28px rgba(239, 68, 68, 0.35) !important;
  color: #ffffff !important;
}

.toast.toast-error span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.toast.toast-warning {
  background: #451a03 !important;
  border-left: 5px solid #f59e0b !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.6), 0 0 28px rgba(245, 158, 11, 0.35) !important;
  color: #ffffff !important;
}

.toast.toast-warning span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.toast.toast-info {
  background: #082f49 !important;
  border-left: 5px solid #0084cb !important;
  border-color: rgba(0, 132, 203, 0.6) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.6), 0 0 28px rgba(0, 132, 203, 0.35) !important;
  color: #ffffff !important;
}

.toast.toast-info span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

@keyframes toastCenterPop {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }

  60% {
    transform: scale(1.03);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================================================================
   PRINT STYLES: Luxury Hotel Official Letterhead & Neat Attendance Report
   ========================================================================= */
.print-header,
.print-signature-section,
.print-only-tfoot {
  display: none !important;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 8mm 10mm 10mm 10mm;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-family: 'Nunito Sans', Arial, sans-serif !important;
    font-size: 10pt !important;
    line-height: 1.25 !important;
  }

  /* Hide interactive, app UI and navigation elements */
  .app-sidebar,
  .app-topbar,
  .sidebar-backdrop,
  .mobile-toggle-btn,
  .toolbar-section,
  .search-main-row,
  .search-input-wrapper,
  .modal-overlay,
  .toast-container,
  .btn,
  #viewDashboard,
  .col-aksi,
  .guest-table th:last-child,
  .guest-table td:last-child {
    display: none !important;
  }

  /* Force table view visible for print */
  #viewAttendance {
    display: block !important;
  }

  .main-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .page-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  /* Print Header & Kop Surat */
  .print-header {
    display: block !important;
    margin-bottom: 12px !important;
  }

  .print-kop-surat {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 6px !important;
  }

  .print-kop-logo {
    width: 64px !important;
    min-width: 64px !important;
    height: 64px !important;
  }

  .print-logo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .print-kop-text {
    flex: 1 !important;
    text-align: center !important;
  }

  .print-hotel-name {
    font-family: 'Outfit', Georgia, serif !important;
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    letter-spacing: 1.5px !important;
    color: #1e293b !important;
    margin: 0 0 2px 0 !important;
  }

  .print-hotel-sub {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    color: #b45309 !important;
    margin: 0 0 2px 0 !important;
  }

  .print-hotel-address {
    font-size: 0.7rem !important;
    color: #64748b !important;
    margin: 0 !important;
  }

  .print-kop-meta {
    min-width: 160px !important;
    text-align: right !important;
  }

  .print-meta-box {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 5px 8px !important;
    background: #f8fafc !important;
    text-align: left !important;
  }

  .print-meta-title {
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    color: #475569 !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 2px !important;
    margin-bottom: 3px !important;
    text-transform: uppercase !important;
  }

  .print-meta-item {
    font-size: 0.68rem !important;
    color: #334155 !important;
    line-height: 1.25 !important;
  }

  .print-kop-divider {
    height: 4px !important;
    border-top: 2.5px solid #0f172a !important;
    border-bottom: 1px solid #0f172a !important;
    margin: 6px 0 10px 0 !important;
  }

  .print-doc-title-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    margin-bottom: 10px !important;
    border-bottom: 1px dashed #cbd5e1 !important;
    padding-bottom: 5px !important;
  }

  .print-doc-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: 0.5px !important;
  }

  .print-doc-date {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
  }

  .highlight-date {
    color: #b45309 !important;
  }

  /* Print KPI Summary Grid */
  .print-kpi-row {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .print-kpi-box {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    border-radius: 6px !important;
    padding: 5px 8px !important;
    text-align: center !important;
  }

  .print-kpi-lbl {
    display: block !important;
    font-size: 0.6rem !important;
    font-weight: 800 !important;
    color: #64748b !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 2px !important;
  }

  .print-kpi-val {
    font-size: 1rem !important;
    font-weight: 900 !important;
    color: #0f172a !important;
  }

  /* Table Container & Guest Table in Print */
  .table-container {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .guest-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.72rem !important;
    margin: 0 !important;
  }

  .guest-table thead {
    display: table-header-group !important;
  }

  .guest-table thead th {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    border: 1.5px solid #64748b !important;
    padding: 5px 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
  }

  .guest-table tbody td {
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    padding: 4px 6px !important;
    vertical-align: middle !important;
  }

  .guest-table tbody tr:nth-child(even) td {
    background-color: #f8fafc !important;
  }

  .guest-table .room-number-badge {
    font-weight: 800 !important;
    font-size: 0.78rem !important;
    border: 1px solid #94a3b8 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    min-width: 48px !important;
    text-align: center !important;
  }

  .guest-table .table-guest-name {
    font-weight: 700 !important;
    font-size: 0.74rem !important;
    color: #0f172a !important;
    max-width: none !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .guest-table .table-keterangan-text {
    color: #334155 !important;
    font-size: 0.7rem !important;
    max-width: none !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .pax-badge,
  .person-badge,
  .hadir-badge,
  .additional-badge,
  .room-status-badge {
    border: 1px solid #94a3b8 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 0.72rem !important;
    padding: 1px 5px !important;
    border-radius: 3px !important;
    display: inline-block !important;
  }

  .guest-table tfoot.print-only-tfoot {
    display: table-footer-group !important;
  }

  .guest-table tfoot td {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    border: 1.5px solid #64748b !important;
    font-size: 0.72rem !important;
  }

  /* Printable Signature Section */
  .print-signature-section {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 26px !important;
    page-break-inside: avoid !important;
  }

  .signature-col {
    width: 240px !important;
    text-align: center !important;
  }

  .sig-date-line {
    font-size: 0.74rem !important;
    color: #334155 !important;
    margin-bottom: 4px !important;
    text-align: center !important;
  }

  .sig-title {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 0 !important;
  }

  .sig-space {
    height: 54px !important;
  }

  .sig-name {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 2px !important;
  }

  .sig-role {
    font-size: 0.7rem !important;
    color: #64748b !important;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .app-sidebar {
    transform: translateX(-100%);
  }

  .app-sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
  }

  .main-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .app-topbar {
    padding: 14px 20px;
  }

  .page-content {
    padding: 20px 18px 60px 18px;
  }

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

@media (max-width: 768px) {
  .app-topbar {
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  .topbar-left {
    gap: 10px;
  }

  .topbar-heading .page-main-heading {
    font-size: 1.12rem;
  }

  .topbar-heading .page-sub-heading {
    font-size: 0.72rem;
  }

  .topbar-right {
    gap: 8px;
    margin-left: auto;
  }

  .btn-topbar-refresh {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .nav-center-bar {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .page-content {
    padding: 14px 10px 60px 10px;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kpi-card {
    padding: 16px 18px;
  }

  .kpi-value {
    font-size: 1.85rem;
  }

  .overall-progress-bar-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 16px;
  }

  .progress-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    min-width: 0;
  }

  .progress-track {
    width: 100%;
    height: 10px;
  }

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

  .brand-title-wrap h2 {
    font-size: 1.1rem;
  }

  /* Table horizontal scroll touch support */
  .table-container {
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }

  .guest-table {
    min-width: 720px;
  }

  /* Search input shortcut hidden on small devices */
  .search-shortcut-badge {
    display: none;
  }

  /* Modals on small mobile screens */
  .modal-overlay {
    padding: 10px;
    align-items: center;
  }

  .modal-dialog {
    max-width: 100% !important;
    max-height: 92dvh;
    border-radius: var(--radius-lg);
  }

  .modal-header {
    padding: 12px 16px;
  }

  .modal-body {
    padding: 14px 16px;
  }

  .modal-footer {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .modal-footer .btn {
    flex: 1 1 auto;
  }
}

/* =========================================================================
   Executive Dashboard View Styling (No Table)
   ========================================================================= */
.dash-welcome-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.dash-welcome-banner .banner-text h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dash-welcome-banner .banner-text p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.dash-analytics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.dash-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.dash-card-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Status Breakdown Bars */
.status-summary-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.status-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
}

.mini-progress-track {
  height: 10px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.mini-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease-in-out;
}

/* Tower & Floor Breakdown List - Compact Luxury Grid */
.tower-filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tower-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tower-filter-tab svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.tower-filter-tab:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

.tower-filter-tab.active {
  background: #0084cb;
  border-color: #0084cb;
  color: #ffffff;
  font-weight: 700;
}

.tower-filter-tab.active svg {
  stroke: #ffffff;
}

.tower-groups-scroll-area {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.tower-groups-scroll-area::-webkit-scrollbar {
  width: 4px;
}

.tower-groups-scroll-area::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

.tower-section-group {
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}

.tower-section-group:last-child {
  margin-bottom: 0;
}

.tower-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.tower-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.tower-section-title svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.tower-section-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.tower-pct-pill {
  background: rgba(0, 132, 203, 0.12);
  color: #0084cb;
  border: 1px solid rgba(0, 132, 203, 0.25);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
}

/* Responsive Compact Grid for Floors */
.tower-floors-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.floor-compact-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .floor-compact-card,
[data-theme="dark"] .floor-compact-card {
  background: #ffffff;
}

.floor-compact-card:hover {
  border-color: #0084cb;
  background: #f8fafc;
  transform: translateY(-1px);
}

.floor-compact-card.floor-has-checkin {
  border-color: #0084cb;
  background: rgba(0, 132, 203, 0.04);
}

.floor-compact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.floor-badge-tag {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.74rem;
  line-height: 1.3;
}

.floor-stat-pct {
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.floor-stat-pct.pct-active {
  color: var(--accent-gold);
}

.floor-compact-counts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.floor-compact-counts strong {
  color: var(--text-primary);
}

.floor-rooms-pill {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border-light);
}

.floor-progress-track {
  height: 4px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.floor-progress-fill {
  height: 100%;
  background: #0084cb;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* Dashboard Shortcuts Grid */
.dash-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shortcut-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.shortcut-box:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.shortcut-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.shortcut-info {
  flex: 1;
}

.shortcut-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.shortcut-info p {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.shortcut-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
}

.shortcut-box:hover .shortcut-arrow {
  color: var(--accent-gold);
  transform: translateX(3px);
}

@media (max-width: 1200px) {
  .dash-shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .dash-analytics-grid {
    grid-template-columns: 1fr;
  }

  .dash-shortcuts-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   MODAL EKSPOR EXCEL: Pilihan Tanggal, Bulan, dan Tahun
   ========================================================================= */
.export-tabs-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-card);
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.export-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.25;
}

.export-tab-btn .tab-icon {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.export-tab-btn .tab-text {
  font-size: 0.88rem;
  font-weight: 700;
  display: block;
}

.export-tab-btn .tab-text small {
  font-size: 0.72rem;
  font-weight: normal;
  opacity: 0.8;
  display: block;
}

.export-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.export-tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.25) 100%);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.export-time-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .export-tabs-container {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .export-tab-btn {
    flex-direction: row;
    gap: 10px;
    padding: 8px 12px;
  }

  .export-tab-btn .tab-icon {
    margin-bottom: 0;
  }

  .export-time-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ==========================================================================
   AUTHENTICATION & LOGIN STYLES
   ========================================================================== */
.login-page-body {
  margin: 0;
  padding: 40px 16px;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  background-color: #f4f6fa;
  background-image:
    radial-gradient(at 0% 0%, rgba(0, 132, 203, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 132, 203, 0.05) 0px, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  color: #0f172a;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

.login-wrapper {
  width: 100%;
  max-width: 840px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease-out;
  position: relative;
  z-index: 10;
}

.login-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 0;
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  overflow: hidden;
  box-shadow: 0 16px 40px -10px rgba(0, 80, 150, 0.12), 0 4px 15px -2px rgba(0, 0, 0, 0.04);
}

/* Left Column: Brand & Hotel Identity (Vibrant Blue Theme) */
.login-card-left {
  background: #0084cb;
  background-image: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.14) 0%, transparent 68%);
  padding: 48px 36px;
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.login-card-left::before {
  display: none;
}

.login-brand-identity {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-brand-identity .login-logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.login-logo-img {
  max-width: 160px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.login-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.login-subtitle {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Right Column: Form Credentials */
.login-card-right {
  padding: 44px 40px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-header {
  margin-bottom: 22px;
  display: block;
}

.login-form-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
}

.login-form-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  color: #b91c1c;
  font-size: 0.82rem;
  margin-bottom: 18px;
  line-height: 1.4;
}

.login-alert svg {
  flex-shrink: 0;
  stroke: #b91c1c;
}

.login-alert.hidden {
  display: none !important;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.input-with-icon:focus-within .input-icon {
  color: #0084cb;
}

.login-input {
  width: 100%;
  padding-left: 42px !important;
  padding-right: 42px !important;
  height: 48px;
  font-size: 0.92rem;
  font-family: var(--font-main);
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  color: #0f172a !important;
  transition: all 0.2s ease;
}

.login-input:focus {
  border-color: #0084cb !important;
  box-shadow: 0 0 0 3.5px rgba(0, 132, 203, 0.15) !important;
  outline: none;
  background: #ffffff !important;
}

.login-input::placeholder {
  color: #94a3b8;
  font-size: 0.88rem;
}

.btn-toggle-pw {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.btn-toggle-pw svg {
  width: 17px;
  height: 17px;
  display: block;
}

.btn-toggle-pw:hover {
  color: #475569;
}

.login-btn {
  width: 100%;
  height: 48px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  background: #0084cb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 132, 203, 0.32);
  transition: all 0.2s ease;
  margin-top: 10px;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

.login-btn svg {
  transition: transform 0.2s ease;
  stroke: #ffffff;
}

.login-btn:hover {
  background: #0073b3;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 132, 203, 0.42);
}

.login-btn:hover svg {
  transform: translateX(3px);
}

.login-btn:active {
  transform: translateY(0);
}

.login-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Responsive adjustment for login on tablets and phones */
@media (max-width: 768px) {
  .login-wrapper {
    max-width: 440px;
    margin: auto;
    padding: 0;
  }

  .login-card {
    width: 100%;
    margin: auto;
    border-radius: 20px;
  }

  .login-card-left {
    padding: 28px 24px 20px 24px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .login-brand-identity {
    align-items: center;
  }

  .login-brand-identity .login-logo-box {
    justify-content: center;
    margin-bottom: 12px;
  }

  .login-logo-img {
    max-width: 120px;
  }

  .login-title {
    font-size: 1.35rem;
  }

  .login-subtitle {
    font-size: 0.8rem;
  }

  .login-card-right {
    padding: 24px 24px 28px 24px;
    text-align: left;
    align-items: stretch;
  }

  #loginForm {
    width: 100%;
    text-align: left;
  }

  .login-footer {
    justify-content: center;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .login-page-body {
    padding: 12px 10px;
  }

  .login-wrapper {
    max-width: 100%;
  }

  .login-card-left {
    padding: 22px 16px 16px 16px;
  }

  .login-card-right {
    padding: 20px 16px 22px 16px;
  }

  .login-logo-img {
    max-width: 130px;
  }

  .login-input {
    height: 44px;
    font-size: 0.88rem;
  }

  .login-btn {
    height: 44px;
    font-size: 0.88rem;
  }
}

/* User Role Badge in light interface areas (e.g. User Management table & detail modal) */
.user-row-clickable .user-role-badge.role-admin,
.modal-box .user-role-badge.role-admin {
  background: rgba(0, 132, 203, 0.12) !important;
  color: #0084cb !important;
  border: 1px solid rgba(0, 132, 203, 0.35) !important;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.user-row-clickable .user-role-badge.role-staf,
.modal-box .user-role-badge.role-staf {
  background: rgba(100, 116, 139, 0.12) !important;
  color: #475569 !important;
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* =========================================================================
   USER MANAGEMENT VIEW (FULL TABLE INTERFACE NEXT TO SIDEBAR)
   ========================================================================= */
.users-management-grid {
  display: block;
  width: 100%;
}

.users-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: 100%;
}

.users-card-header {
  padding: 16px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.users-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.users-card-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 2px 0 0 0;
}

.users-card-body {
  padding: 20px;
}

.users-table thead th {
  padding: 10px 14px;
}

.users-table tbody td {
  padding: 11px 14px;
}

/* Topbar Refresh Button (Matching Primary Button in Dashboard Image 2) */
.btn-topbar-refresh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: #0084cb;
  border: 1px solid #0084cb;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 132, 203, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-topbar-refresh svg {
  stroke: #ffffff;
}

.btn-topbar-refresh:hover {
  background-color: #0073b3;
  border-color: #0073b3;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 132, 203, 0.35);
}

.btn-topbar-refresh:active {
  transform: scale(0.96);
}

.btn-topbar-refresh.is-spinning svg {
  animation: spinIcon 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spinIcon {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Service specific themes on login */
.login-card-left.service-lunch-theme {
  background: linear-gradient(145deg, #0284c7 0%, #0369a1 100%) !important;
  background-image: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.18) 0%, transparent 68%) !important;
}

.login-card-left.service-dinner-theme {
  background: linear-gradient(145deg, #4f46e5 0%, #312e81 100%) !important;
  background-image: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.18) 0%, transparent 68%) !important;
}

/* Login Service Switcher Tabs */
.login-service-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  gap: 4px;
}

.login-tab-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: #64748b;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.login-tab-pill svg {
  stroke: currentColor;
  flex-shrink: 0;
}

.login-tab-pill:hover {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.6);
}

.login-tab-pill.active {
  background: #ffffff;
  color: #0084cb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.login-tab-pill.active.pill-lunch {
  color: #0284c7;
}

.login-tab-pill.active.pill-dinner {
  color: #6366f1;
}

.login-service-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.badge-breakfast {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.badge-lunch {
  background: rgba(2, 132, 199, 0.15);
  color: #0369a1;
}

.badge-dinner {
  background: rgba(99, 102, 241, 0.15);
  color: #4338ca;
}

.login-btn.btn-theme-lunch {
  background: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.login-btn.btn-theme-lunch:hover {
  background: #0369a1;
}

.login-btn.btn-theme-dinner {
  background: #6366f1;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.login-btn.btn-theme-dinner:hover {
  background: #4f46e5;
}

/* User Management Row Clickable */
.user-row-clickable {
  transition: background-color 0.15s ease;
}

.user-row-clickable:hover td {
  background-color: var(--bg-card-hover) !important;
}

/* =========================================================================
   Topbar Launcher Button
   ========================================================================= */
.btn-topbar-launcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  margin-right: 6px;
}

.btn-topbar-launcher svg {
  stroke: var(--accent-gold);
}

.btn-topbar-launcher:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 132, 203, 0.18);
}

.btn-topbar-launcher:active {
  transform: scale(0.96);
}

/* =========================================================================
   LAUNCHER HUB STYLING (VIEW 4)
   ========================================================================= */
.launcher-hero-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 0 32px;
}

.launcher-hero-header {
  text-align: center;
  margin-bottom: 32px;
}

.launcher-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.launcher-hero-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.launcher-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.launcher-hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

.launcher-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.launcher-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.launcher-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.2s ease;
}

.launcher-service-card.card-breakfast::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.launcher-service-card.card-lunch::before {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.launcher-service-card.card-dinner::before {
  background: linear-gradient(90deg, #6366f1, #818cf8);
}

.launcher-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.18);
}

.launcher-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.launcher-card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-breakfast {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.icon-lunch {
  background: rgba(2, 132, 199, 0.14);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.icon-dinner {
  background: rgba(99, 102, 241, 0.14);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.launcher-time-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.pill-morning {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.pill-afternoon {
  background: rgba(2, 132, 199, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.pill-evening {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.launcher-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.launcher-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 16px;
  min-height: 52px;
}

.launcher-card-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.launcher-tag {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.btn-launch {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-launch-breakfast {
  background: #f59e0b;
  color: #1a1600;
}

.btn-launch-breakfast:hover {
  background: #d97706;
  color: #ffffff;
}

.btn-launch-lunch {
  background: #0284c7;
  color: #ffffff;
}

.btn-launch-lunch:hover {
  background: #0369a1;
}

.btn-launch-dinner {
  background: #6366f1;
  color: #ffffff;
}

.btn-launch-dinner:hover {
  background: #4f46e5;
}

/* =========================================================================
   FOOD EVENTS DASHBOARD STYLING (VIEW 5)
   ========================================================================= */
.event-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.event-session-pills {
  display: inline-flex;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  gap: 4px;
}

.event-session-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.event-session-pill.active {
  background: #0084cb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 132, 203, 0.35);
}

.event-session-pill:not(.active):hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.event-date-input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  outline: none;
  box-shadow: var(--shadow-sm);
}

/* Event Input Form Card */
.event-input-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.event-input-card-header {
  margin-bottom: 16px;
}

.event-input-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 132, 203, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(0, 132, 203, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-input-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 2px;
}

.event-input-card-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
}

.event-form-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.4fr 1fr 1.6fr auto;
  gap: 12px;
  align-items: flex-end;
}

.event-fg-submit .btn-save-event {
  height: 40px;
  padding: 0 20px;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.event-kpi-grid {
  margin-bottom: 22px;
}

/* Events Table Card */
.event-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

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

.event-table-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 2px;
}

.event-table-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
}

.event-search-input {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  min-width: 220px;
  outline: none;
}

.event-search-input:focus {
  border-color: var(--accent-gold);
}

.event-table {
  width: 100%;
}

.event-pax-badge {
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.event-status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-belum {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

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

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

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

/* Responsive Rules for Launcher & Events */
@media (max-width: 992px) {
  .launcher-grid-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .event-fg-submit {
    grid-column: span 2;
  }

  .event-fg-submit .btn-save-event {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .event-form-grid {
    grid-template-columns: 1fr;
  }

  .event-fg-submit {
    grid-column: span 1;
  }
}

/* =========================================================================
   FRONT SERVICE LAUNCHER HUB PORTAL (HALAMAN DEPAN SEBELUM LOGIN)
   ========================================================================= */
.hub-front-body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--font-main, 'Plus Jakarta Sans', sans-serif);
  background-color: #f4f6fa;
  background-image:
    radial-gradient(at 0% 0%, rgba(0, 132, 203, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 132, 203, 0.05) 0px, transparent 50%);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-front-wrapper {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hub-front-header {
  text-align: center;
  margin-bottom: 38px;
}

.hub-front-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 10px 22px;
  background: #0084cb;
  border: 1px solid rgba(0, 132, 203, 0.25);
  border-radius: 9999px;
  box-shadow: 0 8px 20px rgba(0, 132, 203, 0.2);
}

.hub-brand-img {
  max-width: 140px;
  height: auto;
  object-fit: contain;
}

.hub-front-kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #0084cb;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hub-front-heading {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: #0f172a;
}

.hub-front-subheading {
  font-size: 0.96rem;
  color: #64748b;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
}

/* 3 Front Cards Grid */
.hub-front-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin-bottom: 36px;
}

.hub-service-card {
  background: #0084cb;
  background-image: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.14) 0%, transparent 68%);
  border: 1px solid rgba(0, 132, 203, 0.25);
  border-radius: 20px;
  padding: 32px 24px 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 132, 203, 0.18);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
}

.hub-card-breakfast::before,
.hub-card-lunch::before,
.hub-card-dinner::before {
  background: rgba(255, 255, 255, 0.4);
}

.hub-service-card:hover {
  transform: translateY(-6px);
  background-color: #0072b0;
  box-shadow: 0 20px 40px rgba(0, 132, 203, 0.3);
}

.hub-card-breakfast:hover,
.hub-card-lunch:hover,
.hub-card-dinner:hover {
  box-shadow: 0 20px 40px rgba(0, 132, 203, 0.32);
}

.hub-card-badge-wrap {
  margin-bottom: 20px;
}

.hub-card-time-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hub-card-logo-container {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.hub-card-logo-img {
  max-width: 140px;
  max-height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
  transition: transform 0.25s ease;
}

.hub-service-card:hover .hub-card-logo-img {
  transform: scale(1.05);
}

.hub-card-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.hub-card-desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
  margin: 0 0 24px;
  min-height: 40px;
}

.hub-card-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #0084cb;
}

.hub-card-breakfast .hub-card-cta,
.hub-card-lunch .hub-card-cta,
.hub-card-dinner .hub-card-cta {
  background: #ffffff;
  color: #0084cb;
}

.hub-card-breakfast:hover .hub-card-cta,
.hub-card-lunch:hover .hub-card-cta,
.hub-card-dinner:hover .hub-card-cta {
  background: #f0f9ff;
  color: #00669e;
}

.hub-front-footer {
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
  padding-top: 10px;
}

/* Back button on login page */
.btn-back-launcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-back-launcher:hover {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
}

@media (max-width: 900px) {
  .hub-front-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .hub-front-heading {
    font-size: 1.85rem;
  }
}

/* Standalone Input Item Page Card */
.event-input-page-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.event-input-page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.event-input-page-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.event-input-page-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0;
}

.event-service-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 132, 203, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(0, 132, 203, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.badge-additional-count {
  display: inline-block;
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
}

.btn-event-action-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.btn-event-checkin {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-event-checkin:hover {
  background: #10b981;
  color: #ffffff;
}

.btn-event-addl {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-event-addl:hover {
  background: #a855f7;
  color: #ffffff;
}

.btn-event-undo {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-event-undo:hover {
  background: #ef4444;
  color: #ffffff;
}




