/* ==========================================================================
   NEXUS STAY (Manager On Duty) Hotel Inspection Audit PWA
   Native iOS & Android Mobile-First Design System
   ========================================================================== */

:root {
  --primary: #1e3a8a;
  --primary-dark: #091326;
  --primary-light: #2563eb;
  --accent-gold: #d97706;
  --accent-cyan: #0284c7;

  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #e2e8f0;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;

  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  /* Score Color Standards */
  --score-2: #10b981; /* Sesuai Standar */
  --score-2-bg: #ecfdf5;
  --score-2-border: #a7f3d0;

  --score-1: #f59e0b; /* Di Bawah Standar */
  --score-1-bg: #fffbeb;
  --score-1-border: #fde68a;

  --score-0: #ef4444; /* Tidak Dapat Diterima / Kritis */
  --score-0-bg: #fef2f2;
  --score-0-border: #fecaca;

  --score-na: #64748b;
  --score-na-bg: #f1f5f9;

  /* Code of Problems */
  --code-ms: #2563eb;
  --code-cl: #06b6d4;
  --code-rm: #ea580c;
  --code-cx: #dc2626;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 60px;
  --bottom-bar-height: 64px;
  --sidebar-width: 260px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body, button, input, select, textarea, optgroup {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  min-height: 100vh;
  touch-action: manipulation;
}

/* Standardized Form & Button Typography: Same clean font type as body text */
button, input, select, textarea {
  font-family: inherit;
}

button, .btn, input[type="button"], input[type="submit"], input[type="reset"] {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
  font-weight: 600 !important;
}

/* App Shell */
#app {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Desktop Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: #091326;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

.brand-section {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
}

.brand-info h1 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.badge-role {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-top: 2px;
}

.nav-menu {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0.5rem 0.75rem 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

.nav-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(30, 58, 138, 0.5));
  color: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #1e3a8a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
}

.user-name {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.user-status {
  font-size: 0.7rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}
.user-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* Main Content Wrapper */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* App Bar / Topbar (iOS/Android Native Styling) */
.topbar {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  gap: 0.75rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo-mobile {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: none;
}

.topbar-title-box h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.topbar-title-box p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* KPI Score Capsule in Topbar */
.kpi-capsule {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.kpi-capsule:active {
  transform: scale(0.96);
}

.kpi-capsule-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kpi-capsule-value {
  font-size: 0.925rem;
  font-weight: 900;
  color: var(--primary);
}

.kpi-grade-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  color: white;
}
.grade-a { background: #10b981; }
.grade-b { background: #3b82f6; }
.grade-c { background: #f59e0b; }
.grade-d { background: #ef4444; }
.grade-neutral { background: #64748b !important; color: #ffffff !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-gold {
  background: #d97706;
  color: #fff;
}

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

.btn-danger {
  background: #ef4444;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-medium);
  color: var(--text-main);
}
.btn-outline:active {
  background: #f1f5f9;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

/* Page Content View */
.content-view {
  flex: 1;
  padding: 1.25rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.view-container {
  display: none;
}
.view-container.active {
  display: block;
  animation: nativeFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   MOBILE NATIVE APP HERO CARD & DEPARTMENT TABS
   ========================================================================== */

/* Native Mobile Header Banner */
.mobile-mod-banner {
  background: linear-gradient(135deg, #091326 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.mobile-mod-banner::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.mod-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4);
}

.mod-inspector-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.mod-shift-subtitle {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 1px;
}

.mod-banner-right {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.banner-kpi-score {
  font-size: 1.8rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1;
}

.banner-kpi-grade {
  font-size: 0.68rem;
  font-weight: 800;
  color: #f59e0b;
  text-transform: uppercase;
  margin-top: 2px;
}

/* iOS-Style Segmented Control for Departments */
.dept-nav-wrapper {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 0.85rem;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dept-nav-wrapper::-webkit-scrollbar {
  display: none;
}

.dept-tab-btn {
  flex: 1;
  min-width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.dept-tab-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
}
.dept-tab-btn:active {
  transform: scale(0.97);
}

.dept-tab-btn.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
  font-weight: 800;
  border-color: transparent !important;
}

.dept-tab-score {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.dept-tab-btn.active .dept-tab-score {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* Area Carousel Bar */
.area-carousel-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 0.75rem;
  padding: 2px 0;
}
.area-carousel-nav::-webkit-scrollbar {
  display: none;
}
.area-chip-btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-size: 0.725rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.area-chip-btn:active {
  transform: scale(0.95);
}
.area-chip-btn.active {
  background: #091326;
  color: #ffffff;
  border-color: #091326;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Area Stepper Card (Native Mobile Flow) */
.area-stepper-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.stepper-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.stepper-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}
.stepper-nav-btn:hover {
  background: var(--primary-light);
  color: #ffffff;
  border-color: var(--primary-light);
}
.stepper-nav-btn:active {
  background: #e2e8f0;
  transform: scale(0.92);
}
.stepper-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.stepper-title-box {
  text-align: center;
  flex: 1;
}
.stepper-counter {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}
.stepper-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}
.stepper-progress-bar {
  height: 6px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.65rem 0 0.5rem;
}
.stepper-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.3s ease;
}
.stepper-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Native Search & Filter Bar (Transparent Floating Design) */
.filter-action-bar {
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  box-shadow: none;
}

.mobile-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent !important;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: var(--transition);
}

.mobile-search-box:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.mobile-search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input-field {
  flex: 1;
  border: none;
  background: transparent !important;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}

.clear-search-btn {
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-pills-row::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.filter-pill.active {
  background: #091326;
  color: #fff;
  border-color: #091326;
}

/* ==========================================================================
   INSPECTION ITEMS & CARDS (NATIVE CARD LAYOUT)
   ========================================================================== */

.inspection-workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.cat-nav-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  max-height: calc(100vh - var(--header-height) - 2rem);
  overflow-y: auto;
}

.cat-nav-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  display: flex;
  justify-content: space-between;
}

.cat-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cat-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--text-main);
}
.cat-nav-link:hover {
  background: var(--bg-subtle);
}
.cat-link-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
.cat-nav-count {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.items-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Area Category Card */
.category-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.category-header {
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.category-title-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.category-index {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.category-title-box h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.category-meta-count {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

.btn-batch-standard {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e3a8a;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-batch-standard:active {
  background: #dbeafe;
}

.subarea-header {
  padding: 0.45rem 1rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Individual Item Row / Card */
.audit-item-row {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}
.audit-item-row:last-child {
  border-bottom: none;
}

.audit-item-row.item-below-standard {
  background: #fffdf5;
  border-left: 4px solid var(--score-1);
}
.audit-item-row.item-unacceptable {
  background: #fff5f5;
  border-left: 4px solid var(--score-0);
}

.audit-item-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.item-desc-box {
  flex: 1;
}

.item-index-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
}

.item-title {
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   NATIVE TOUCH SCORE SELECTOR (iOS / ANDROID BUTTONS)
   ========================================================================== */
.score-selector {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 4px;
  flex-shrink: 0;
}

.score-btn {
  border: none;
  background: transparent;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 2px;
  min-width: 48px;
  transition: var(--transition);
}
.score-btn:active {
  transform: scale(0.92);
}

.score-num {
  font-size: 0.88rem;
  font-weight: 900;
}

.score-text {
  font-size: 0.62rem;
  text-transform: uppercase;
  font-weight: 700;
}

.score-btn.active-2 {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 3px 6px rgba(16, 185, 129, 0.35);
}

.score-btn.active-1 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 3px 6px rgba(245, 158, 11, 0.35);
}

.score-btn.active-0 {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 3px 6px rgba(239, 68, 68, 0.35);
}

.score-btn.active-na {
  background: #475569;
  color: #fff;
}

/* ==========================================================================
   DEFICIENCY DRAWER / FORM (NATIVE MOBILE TOUCH INPUTS)
   ========================================================================== */
.item-deficiency-box {
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: nativeSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nativeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.deficiency-header {
  font-size: 0.75rem;
  font-weight: 800;
  color: #b45309;
  display: flex;
  justify-content: space-between;
}

/* Problem Codes Touch Pills */
.problem-codes-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.problem-code-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
}

.code-badge-btn {
  border: 1px solid var(--border-medium);
  background: #ffffff;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.code-badge-btn:active {
  transform: scale(0.94);
}

.code-badge-btn.active-ms {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}
.code-badge-btn.active-cl {
  background: #cffafe;
  border-color: #06b6d4;
  color: #0e7490;
  box-shadow: 0 1px 3px rgba(6, 182, 212, 0.2);
}
.code-badge-btn.active-rm {
  background: #ffedd5;
  border-color: #ea580c;
  color: #c2410c;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.2);
}
.code-badge-btn.active-cx {
  background: #fee2e2;
  border-color: #dc2626;
  color: #b91c1c;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
}

.deficiency-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.65rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.form-group label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.form-control {
  border: 1px solid var(--border-medium);
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  color: var(--text-main);
  font-family: inherit;
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}
.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 52px;
}

/* Camera & Photo Evidence Tile */
.photo-upload-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.photo-preview-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-medium);
}

.btn-upload-photo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.85rem;
  background: #eff6ff;
  border: 1px dashed var(--primary-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--primary-light);
  cursor: pointer;
  transition: var(--transition);
}
.btn-upload-photo:active {
  background: #dbeafe;
}

/* ==========================================================================
   REPORT VIEW & DIRECT PDF DOWNLOAD
   ========================================================================== */
.report-view-container {
  max-width: 960px;
  margin: 0 auto;
}

.report-action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.report-title-meta {
  flex: 1 1 280px;
  min-width: 0;
}

.report-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .report-action-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .report-title-meta {
    width: 100%;
  }
  .report-btn-group {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }
  .report-btn-group .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.75rem;
    padding: 8px 6px;
  }
}

.btn-download-pdf {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  font-family: inherit;
  font-weight: 600;
}

.report-document {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  padding: 2rem;
}

.report-header-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.report-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.report-brand-logo {
  height: 48px;
  object-fit: contain;
}

.report-header-titles h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.report-header-titles p {
  font-size: 0.8rem;
  color: #64748b;
}

.report-meta-box {
  text-align: right;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #475569;
}

.exec-score-banner {
  background: linear-gradient(135deg, #091326 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.exec-overall-kpi {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.exec-kpi-ring {
  font-size: 2.2rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1;
}

.exec-kpi-info h3 {
  font-size: 1rem;
  font-weight: 800;
}

.exec-kpi-info p {
  font-size: 0.8rem;
  color: #94a3b8;
}

.exec-dept-scores {
  display: flex;
  gap: 1rem;
}

.exec-dept-item {
  text-align: center;
}

.exec-dept-val {
  font-size: 1.15rem;
  font-weight: 900;
}

.exec-dept-name {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

.report-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.report-metric-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem;
  text-align: center;
}

.metric-box-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 800;
}

.metric-box-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
}

.metric-box-sub {
  font-size: 0.7rem;
  color: #64748b;
}

.report-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  border-bottom: 1px solid var(--border-medium);
  padding-bottom: 0.4rem;
  margin: 1.5rem 0 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   HIERARCHICAL AUDIT REPORT STYLES (Dept -> Category -> Compact Rows)
   Simple UI/UX like Audit Finding, Comprehensive, Low Row Height
   On Screen: Transparent Dark Blue Theme matching the app
   On Export: Clean Pure White A4 Print Theme
   ========================================================================== */
.report-document {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-lg, 14px);
  padding: 18px;
  color: #f8fafc;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}

.report-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 1rem;
}
.report-filter-bar label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
  white-space: nowrap;
}
.report-filter-bar select {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: #0f172a;
  color: #f8fafc;
  font-weight: 600;
}

.report-header-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(56, 189, 248, 0.25);
  padding-bottom: 12px;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}
.report-header-titles h2 {
  color: #ffffff;
}
.report-header-titles p {
  color: #94a3b8;
}
.report-meta-box {
  color: #cbd5e1;
}

.exec-score-banner {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  color: #ffffff;
  margin-bottom: 14px;
}

.report-metric-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: #f8fafc;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}
.report-metric-box.metric-box-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}
.report-metric-box.metric-box-danger .metric-box-label { color: #fca5a5; }
.report-metric-box.metric-box-danger .metric-box-val { color: #ef4444; }
.report-metric-box.metric-box-danger .metric-box-sub { color: #f87171; }

.report-metric-box.metric-box-info {
  background: rgba(30, 58, 138, 0.3);
  border-color: rgba(56, 189, 248, 0.25);
}
.report-metric-box.metric-box-info .metric-box-label { color: #38bdf8; }
.metric-classification-tags {
  font-size: 0.82rem;
  font-weight: 700;
  color: #93c5fd;
  margin-top: 4px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.report-metric-box.metric-box-info .metric-box-sub { color: #64748b; }

.report-metric-box.metric-box-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}
.report-metric-box.metric-box-success .metric-box-label { color: #6ee7b7; }
.report-metric-box.metric-box-success .metric-box-val { color: #34d399; }
.report-metric-box.metric-box-success .metric-box-sub { color: #10b981; }

/* Management Narrative Commentary on Screen */
.report-commentary-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-left: 4px solid #38bdf8;
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
  color: #f1f5f9;
}
.report-commentary-box h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.report-commentary-box p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0;
}
.report-commentary-box strong,
.report-commentary-box b {
  color: #ffffff;
}
.report-commentary-notes {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(56, 189, 248, 0.25);
  font-size: 0.8rem;
  color: #e2e8f0;
}

/* Department Summary Cards on Screen */
.report-dept-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.report-dept-summary-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
}
.report-dept-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.dept-card-name {
  font-weight: 700;
  font-size: 0.84rem;
  color: #f1f5f9;
}
.dept-card-pct {
  font-size: 0.92rem;
  font-weight: 800;
  color: #38bdf8;
}
.dept-card-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.dept-card-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

/* Empty State on Screen */
.report-empty-box {
  padding: 2.5rem 1rem;
  text-align: center;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 8px;
  border: 1px dashed rgba(56, 189, 248, 0.25);
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.report-section-title {
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  padding-bottom: 4px;
  margin: 16px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Department Section */
.report-dept-section {
  margin-bottom: 16px;
  page-break-inside: auto;
  break-inside: auto;
}
.report-dept-header {
  background: rgba(30, 58, 138, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-left: 4px solid #38bdf8;
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  page-break-after: avoid;
  break-after: avoid;
}
.report-dept-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}
.report-dept-meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  gap: 6px;
  align-items: center;
}
.report-dept-score-pill {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.72rem;
}

/* Category Block */
.report-cat-block {
  margin-bottom: 10px;
  page-break-inside: auto;
  break-inside: auto;
}
.report-cat-header {
  background: rgba(15, 23, 42, 0.55);
  border-left: 3px solid #60a5fa;
  border-radius: 0 6px 6px 0;
  padding: 6px 10px;
  color: #93c5fd;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  page-break-after: avoid;
  break-after: avoid;
}
.report-cat-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #93c5fd;
}
.report-cat-count {
  font-size: 0.68rem;
  color: #7dd3fc;
  background: rgba(30, 58, 138, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 1px 6px;
  border-radius: 6px;
}

/* Compact Audit Row Card (Low Height, High Readability) */
.report-row-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 7px 10px;
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.15s ease;
  page-break-inside: avoid;
  break-inside: avoid;
}
.report-row-card:hover {
  background: rgba(30, 58, 138, 0.25);
}
.report-row-card.row-border-pass { border-left: 3px solid #10b981; }
.report-row-card.row-border-warning { border-left: 3px solid #f59e0b; }
.report-row-card.row-border-danger { border-left: 3px solid #ef4444; }
.report-row-card.row-border-na { border-left: 3px solid #64748b; }
.report-row-card.row-border-unscored { border-left: 3px solid #475569; }

.row-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.row-title-area {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 1;
  flex-wrap: wrap;
}
.row-num-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
}
.row-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.35;
}
.row-subarea-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 5px;
  border-radius: 3px;
}

.badge-status-compact {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.badge-pass {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.badge-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.badge-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.badge-na {
  background: rgba(100, 116, 139, 0.18);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}
.badge-unscored {
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

/* Deficiency compact box (Like Audit Finding strip) */
.row-deficiency-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 5px;
  padding: 5px 8px;
  margin-top: 2px;
  font-size: 0.76rem;
  line-height: 1.4;
}
.row-deficiency-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.row-deficiency-text {
  color: #fca5a5;
}
.label-danger { color: #f87171; font-weight: 800; }
.meta-tag { color: #fed7aa; }
.row-solution-text {
  color: #86efac;
  font-size: 0.74rem;
}
.label-success { color: #4ade80; font-weight: 800; }

.row-status-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
}
.row-status-pill.status-open {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.row-status-pill.status-in-progress {
  background: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.row-status-pill.status-done {
  background: rgba(16, 185, 129, 0.25);
  color: #86efac;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.row-thumb-box {
  flex-shrink: 0;
  cursor: pointer;
}
.row-thumb-img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.row-note-text {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
  padding-left: 2px;
}
.label-note {
  font-weight: 700;
  color: #cbd5e1;
}

/* ==========================================================================
   EXCEL-LIKE HIERARCHICAL AUDIT TABLE (Landscape A4 & Screen Glassmorphic)
   Kolom A: No | Kolom B: Dept -> Cat -> Items | Kolom C: Hasil | Kolom D: Note
   ========================================================================== */
.excel-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(15, 23, 42, 0.55);
}

.report-excel-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.8rem;
  color: #f1f5f9;
}

.report-excel-table th {
  background: rgba(30, 58, 138, 0.7);
  color: #38bdf8;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.5px;
  padding: 8px 10px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.report-excel-table .col-no { width: 5%; text-align: center; }
.report-excel-table .col-desc { width: 42%; }
.report-excel-table .col-result { width: 17%; text-align: center; }
.report-excel-table .col-note { width: 36%; }

/* Baris Departemen (Kolom B / Merged B-D) */
.excel-row-dept td {
  background: rgba(30, 58, 138, 0.45);
  color: #ffffff;
  padding: 7px 10px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-left: 4px solid #38bdf8;
}
.excel-dept-flex,
.excel-dept-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.excel-dept-title {
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  color: #ffffff;
}
.excel-dept-pill {
  font-size: 0.7rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: 99px;
}

/* Baris Kategori (di bawah nama departemen) */
.excel-row-cat td {
  background: rgba(15, 23, 42, 0.75);
  color: #93c5fd;
  padding: 6px 10px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-left: 3px solid #60a5fa;
}
.excel-cat-flex,
.excel-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.excel-cat-title {
  font-weight: 700;
  font-size: 0.8rem;
  color: #93c5fd;
}
.excel-cat-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(30, 58, 138, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 1px 6px;
  border-radius: 6px;
}

/* Baris Poin Per Poin Audit */
.excel-row-item td {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.4);
  color: #f1f5f9;
  vertical-align: middle;
}
.excel-row-item:nth-child(even) td {
  background: rgba(15, 23, 42, 0.25);
}
.excel-row-item.row-deficiency-highlight td {
  background: rgba(239, 68, 68, 0.09);
  border-color: rgba(239, 68, 68, 0.2);
}

.excel-item-title {
  display: block;
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: break-word;
}
.item-code-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
}
.item-title-text {
  display: inline;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.35;
  vertical-align: middle;
}
.item-subarea-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 4px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Kolom D: Note & Temuan Defisiensi */
.excel-deficiency-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.75rem;
  line-height: 1.35;
}
.excel-finding-line {
  color: #fca5a5;
}
.excel-meta-line {
  font-size: 0.7rem;
  color: #fed7aa;
}
.excel-solution-line {
  color: #86efac;
  font-size: 0.73rem;
}
.excel-photo-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  cursor: pointer;
}
.excel-thumb-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.excel-photo-hint {
  font-size: 0.68rem;
  color: #38bdf8;
  font-weight: 700;
}
.excel-note-text {
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.35;
}
.excel-unscored-text {
  font-size: 0.74rem;
  color: #94a3b8;
  font-style: italic;
  display: inline-block;
}
.report-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
  padding: 0.65rem;
  border: 1px solid var(--border-medium);
  font-size: 0.725rem;
  text-transform: uppercase;
}
.report-table td {
  padding: 0.65rem;
  border: 1px solid var(--border-medium);
  vertical-align: top;
}
.report-table tr:nth-child(even) {
  background: #f8fafc;
}
.table-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border-medium);
  cursor: pointer;
}

.report-signoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-medium);
}
.signoff-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.signoff-role {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.signoff-space {
  height: 40px;
}
.signoff-line {
  width: 180px;
  border-bottom: 1.5px solid currentColor;
  margin-bottom: 0.4rem;
}
.signoff-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}
.signoff-title {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.signoff-date {
  font-size: 0.68rem;
  color: var(--text-subtle);
  margin-top: 2px;
}

/* ==========================================================================
   PROFILE VIEW
   ========================================================================== */
.profile-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-sizing: border-box;
}

.profile-badge-card {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #091326 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  box-shadow: var(--shadow-md);
}

.profile-badge-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.user-avatar-lg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  flex-shrink: 0;
}

.profile-header-info {
  flex: 1;
}
.profile-header-info h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}
.profile-header-info p {
  font-size: 0.78rem;
  color: #94a3b8;
}

.duty-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.65rem;
  font-weight: 800;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.15rem;
}

.profile-meta-box {
  display: flex;
  flex-direction: column;
}
.meta-title {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
}
.meta-content {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.profile-quick-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-edit-card {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.card-section-title {
  font-size: 0.925rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.profile-history-transparent {
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: none !important;
}

.profile-history-item-transparent {
  background: transparent !important;
  border: 1px solid var(--border-light) !important;
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   MOBILE FLOATING PILL & BOTTOM NAVIGATION BAR (NATIVE iOS / ANDROID)
   ========================================================================== */

.mobile-kpi-float {
  display: none;
  position: fixed;
  bottom: calc(var(--bottom-bar-height) + 12px);
  right: 14px;
  background: #091326;
  color: #fff;
  border-radius: var(--radius-full);
  padding: 7px 13px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 45;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
}
.mobile-kpi-float:active {
  transform: scale(0.95);
}

.float-btn-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  background: #2563eb;
  padding: 2px 7px;
  border-radius: 4px;
  color: #fff;
}

/* Native iOS/Android Bottom Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-height);
  background: rgba(9, 19, 38, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 50;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 20px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.mobile-nav-btn:active {
  transform: scale(0.92);
}

.mobile-nav-btn.active {
  color: #38bdf8;
  font-weight: 800;
}

.mobile-nav-btn svg {
  width: 22px;
  height: 22px;
}

/* Modals & Toasts */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active {
  display: flex;
}
.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: nativeModalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nativeModalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-body {
  padding: 1.15rem;
}
.modal-footer {
  padding: 0.85rem 1.15rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  max-width: 520px;
}
.toast {
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.4), 0 4px 8px -2px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastFloatDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastFloatDown {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.offline-banner {
  display: none;
  background: #ea580c;
  color: #fff;
  text-align: center;
  padding: 5px;
  font-size: 0.75rem;
  font-weight: 700;
}
.offline-banner.active {
  display: block;
}

/* ==========================================================================
   MOBILE SCREEN TUNING (< 768px - iPhone & Android)
   ========================================================================== */
@media (max-width: 1024px) {
  .inspection-workspace {
    grid-template-columns: 1fr;
  }
  .cat-nav-panel {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }
  .sidebar {
    display: none;
  }
  .main-wrapper {
    margin-left: 0;
    padding-bottom: calc(var(--bottom-bar-height) + 16px);
  }
  .brand-logo-mobile {
    display: block;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .mobile-kpi-float {
    display: flex;
  }
  .content-view {
    padding: 0.65rem;
  }
  .topbar {
    padding: 0 0.85rem;
  }
  .btn-text-desktop {
    display: none;
  }
  .topbar-title-box p {
    font-size: 0.68rem;
  }

  /* Native Mobile Card Layout for Audit Items */
  .audit-item-row {
    padding: 0.85rem;
  }
  .audit-item-main {
    flex-direction: column;
    gap: 0.65rem;
  }
  .score-selector {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 3px;
  }
  .score-btn {
    min-width: unset;
    padding: 0.6rem 0.2rem;
  }
  .score-num {
    font-size: 0.95rem;
  }
  .score-text {
    font-size: 0.65rem;
  }

  /* Deficiency drawer inputs on mobile */
  .deficiency-inputs-grid {
    grid-template-columns: 1fr;
  }

  /* Report document mobile */
  .report-document {
    padding: 1rem;
    border-radius: var(--radius-md);
  }
  .report-header-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .report-meta-box {
    text-align: left;
  }
  .exec-score-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .exec-dept-scores {
    width: 100%;
    justify-content: space-between;
  }
  .report-signoff-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .toast-container {
    left: 12px;
    right: 12px;
    bottom: calc(var(--bottom-bar-height) + 12px);
  }
}

@media (max-width: 480px) {
  .report-btn-group {
    width: 100%;
  }
  .report-btn-group .btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 0.5rem 0.5rem;
  }
}

/* Hide Mobile Redirect Banner on Desktop PC */
@media (min-width: 769px) {
  #mobile-prompt-banner {
    display: none !important;
  }
}

/* ==========================================================================
   DESKTOP ENTERPRISE LOGIN PORTAL
   ========================================================================== */
.desk-login-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #1e293b 0%, #091326 70%, #030712 100%);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.desk-login-container {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr;
  width: 100%;
  max-width: 940px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: deskLoginFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes deskLoginFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Left Hero Branding Panel */
.desk-login-hero {
  background: linear-gradient(145deg, #091326 0%, #0f1f3d 60%, #1e3a8a 100%);
  color: #ffffff;
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.desk-login-hero::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.desk-hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.desk-hero-logo {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: transparent !important;
  object-fit: contain;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.desk-hero-title h2 {
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.desk-hero-title span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.desk-hero-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 12px 0;
}

.desk-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.desk-feat-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.desk-feat-text h4 {
  font-size: 0.86rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 2px;
}

.desk-feat-text p {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
}

.desk-hero-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}

.desk-server-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-weight: 700;
}

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

/* Right Form Panel */
.desk-login-form-pane {
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  background: #ffffff;
}

.desk-form-header h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
}

.desk-form-header p {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.desk-role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.desk-role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 8px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.desk-role-card:hover {
  border-color: #93c5fd;
  background: #f0f7ff;
  transform: translateY(-2px);
}

.desk-role-card.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.desk-role-card .role-emoji {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.desk-role-card .role-name {
  font-size: 0.86rem;
  font-weight: 800;
  color: #1e293b;
}

.desk-role-card.active .role-name {
  color: #1e40af;
}

.desk-role-card .role-pin-hint {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

.desk-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.desk-input-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.desk-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.desk-pin-input-field {
  width: 100%;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 44px 12px 16px;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.desk-pin-input-field:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.desk-pw-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.desk-login-error {
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 8px;
  border: 1px solid #fecaca;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-desk-login {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.btn-desk-login:hover {
  background: linear-gradient(135deg, #172554 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

.desk-quick-chips-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
}

.desk-quick-chips-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-align: center;
}

.desk-quick-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.desk-chip-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.desk-chip-btn:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1e3a8a;
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .desk-login-container {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .desk-login-hero {
    display: none;
  }
  .desk-login-form-pane {
    padding: 28px 20px;
  }
}

/* Dark Mode support for Desktop Enterprise Login Portal */
[data-theme="dark"] .desk-login-container,
.dark-theme .desk-login-container {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .desk-login-form-pane,
.dark-theme .desk-login-form-pane {
  background: #0f172a;
}

[data-theme="dark"] .desk-form-header h3,
.dark-theme .desk-form-header h3 {
  color: #f8fafc;
}

[data-theme="dark"] .desk-form-header p,
.dark-theme .desk-form-header p {
  color: #94a3b8;
}

[data-theme="dark"] .desk-input-label,
.dark-theme .desk-input-label {
  color: #93c5fd;
}

[data-theme="dark"] .desk-role-card,
.dark-theme .desk-role-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .desk-role-card:hover,
.dark-theme .desk-role-card:hover {
  background: #273549;
  border-color: #3b82f6;
}

[data-theme="dark"] .desk-role-card.active,
.dark-theme .desk-role-card.active {
  background: rgba(37, 99, 235, 0.25);
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

[data-theme="dark"] .desk-role-card .role-name,
.dark-theme .desk-role-card .role-name {
  color: #f1f5f9;
}

[data-theme="dark"] .desk-role-card.active .role-name,
.dark-theme .desk-role-card.active .role-name {
  color: #60a5fa;
}

[data-theme="dark"] .desk-role-card .role-pin-hint,
.dark-theme .desk-role-card .role-pin-hint {
  color: #94a3b8;
}

[data-theme="dark"] .desk-pin-input-field,
.dark-theme .desk-pin-input-field {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

[data-theme="dark"] .desk-pin-input-field:focus,
.dark-theme .desk-pin-input-field:focus {
  background: #0b1329;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .desk-pw-toggle,
.dark-theme .desk-pw-toggle {
  color: #94a3b8;
}

[data-theme="dark"] .desk-quick-chips-box,
.dark-theme .desk-quick-chips-box {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .desk-quick-chips-title,
.dark-theme .desk-quick-chips-title {
  color: #94a3b8;
}

[data-theme="dark"] .desk-chip-btn,
.dark-theme .desk-chip-btn {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

[data-theme="dark"] .desk-chip-btn:hover,
.dark-theme .desk-chip-btn:hover {
  background: #1e293b;
  border-color: #64748b;
  color: #ffffff;
}

[data-theme="dark"] .desk-login-error,
.dark-theme .desk-login-error {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* PIN Input and Placeholder Font Styling (Consistency) */
#modal-prof-old-pin,
#modal-prof-new-pin,
#modal-prof-confirm-pin,
#mobile-prof-old-pin,
#mobile-prof-new-pin,
#mobile-prof-confirm-pin,
#admin-new-user-pin,
[id^="modal-pin-input-"] {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

#modal-prof-old-pin::placeholder,
#modal-prof-new-pin::placeholder,
#modal-prof-confirm-pin::placeholder,
#mobile-prof-old-pin::placeholder,
#mobile-prof-new-pin::placeholder,
#mobile-prof-confirm-pin::placeholder,
#admin-new-user-pin::placeholder,
[id^="modal-pin-input-"]::placeholder {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  letter-spacing: normal !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  opacity: 0.65;
}

/* ==========================================================================
   TOPBAR LIVE CLOCK & ENHANCEMENTS
   ========================================================================== */
.topbar-live-clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.topbar-pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   EXECUTIVE MANAGEMENT QUALITY DASHBOARD (ENTERPRISE UI/UX)
   ========================================================================== */
.exec-dash-wrapper {
  padding: 1.75rem;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 1. Hero Quality Command Center */
.exec-hero-banner {
  background: linear-gradient(135deg, #091326 0%, #0f1f3d 45%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 20px 40px -15px rgba(9, 19, 38, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.exec-hero-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.exec-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.exec-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}

.exec-hero-title {
  font-size: 1.95rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  word-break: break-word;
  overflow-wrap: break-word;
}

.exec-hero-sub {
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.exec-hero-progress-box {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.exec-hero-progress-bar {
  flex: 1;
  max-width: 280px;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.exec-hero-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.exec-hero-score-card {
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  padding: 20px 28px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 220px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.exec-kpi-value-huge {
  font-size: 3.4rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.exec-grade-pill {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* 2. Executive Quick Actions */
.exec-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.exec-action-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.exec-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
}

.exec-action-card.card-audit:hover { border-color: #3b82f6; }
.exec-action-card.card-open:hover { border-color: #ef4444; }
.exec-action-card.card-report:hover { border-color: #2563eb; }
.exec-action-card.card-shift:hover { border-color: #d97706; }

.exec-action-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}
.exec-action-icon-audit { background: #eff6ff; color: #2563eb; }
.exec-action-icon-open { background: #fef2f2; color: #dc2626; }
.exec-action-icon-report { background: #fdf4ff; color: #c026d3; }

.exec-action-info h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.exec-action-info p {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* 3. Metric Stats Row */
.exec-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.exec-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease;
}

.exec-stat-card:hover {
  transform: translateY(-2px);
}

.exec-stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.exec-stat-num {
  font-size: 2.1rem;
  font-weight: 900;
  margin: 6px 0 2px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.exec-stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* 4. Department Performance Matrix */
.exec-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.exec-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.exec-panel-header h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.exec-dept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.exec-dept-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.exec-dept-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.05);
}

.exec-dept-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exec-dept-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}

.exec-dept-score-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.exec-dept-score {
  font-size: 0.88rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.exec-dept-score.grade-neutral {
  background: rgba(100, 116, 139, 0.15) !important;
  color: #64748b !important;
  border: 1px solid rgba(100, 116, 139, 0.3) !important;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  line-height: 1.2;
}

.score-badge.score-1 {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.score-badge.score-0 {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .score-badge.score-1,
.dark-theme .score-badge.score-1 {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .score-badge.score-0,
.dark-theme .score-badge.score-0 {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.exec-dept-meter {
  height: 8px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.exec-dept-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.exec-dept-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: #64748b;
}

/* 5. Problem Codes Breakdown */
.exec-code-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.exec-code-box {
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid transparent;
  transition: transform 0.15s ease;
}

.exec-code-box:hover {
  transform: translateY(-2px);
}

.exec-code-ms { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.exec-code-cl { background: #ecfeff; border-color: #a5f3fc; color: #0e7490; }
.exec-code-rm { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.exec-code-cx { background: #fef2f2; border-color: #fecaca; color: #dc2626; }

.exec-code-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.exec-code-num {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.1;
}

.exec-code-desc {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

/* ==========================================================================
   ADMIN & SETTINGS CONSOLE (ENTERPRISE MASTER CONFIG)
   ========================================================================== */
.admin-console-wrapper {
  padding: 1.75rem;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-header-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.admin-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #e2e8f0;
  padding: 6px;
  border-radius: 14px;
  width: 100%;
}

.admin-tab-btn {
  flex: 1;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  color: #0f172a;
}

.admin-tab-btn.active {
  background: #ffffff;
  color: #1e3a8a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-pane {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .exec-actions-grid { grid-template-columns: repeat(2, 1fr); }
  .exec-metrics-grid { grid-template-columns: 1fr !important; }
  .exec-code-grid { grid-template-columns: repeat(2, 1fr); }
  .exec-dept-grid { grid-template-columns: 1fr; }
  .exec-hero-banner { flex-direction: column; align-items: flex-start; }
  .exec-hero-score-card { width: 100%; }
  .admin-room-managers-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
  .exec-dash-wrapper { padding: 1rem; }
  .exec-actions-grid { grid-template-columns: 1fr; }
  .exec-metrics-grid { grid-template-columns: 1fr !important; }
  .exec-code-grid { grid-template-columns: 1fr; }
  .admin-tabs-nav { width: 100%; flex-wrap: wrap; }
  .admin-room-managers-grid { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   HORIZONTAL SCROLL PREVENTION & PC WIDESCREEN OPTIMIZATIONS (Requirement 10)
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

#app {
  overflow-x: hidden;
  max-width: 100vw;
}

.main-wrapper {
  min-width: 0 !important;
  overflow-x: hidden !important;
}

.content-view {
  min-width: 0 !important;
  overflow-x: hidden !important;
}

.inspection-workspace {
  grid-template-columns: 260px minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.items-container {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.category-card {
  min-width: 0 !important;
  max-width: 100% !important;
}

.audit-item-row {
  min-width: 0 !important;
  max-width: 100% !important;
}

.audit-item-main {
  min-width: 0 !important;
  max-width: 100% !important;
  flex-wrap: wrap;
}

.item-desc-box {
  min-width: 0 !important;
  flex: 1 1 260px;
}

/* ==========================================================================
   DARK MODE THEME SYSTEM (Requirement 1)
   ========================================================================== */
[data-theme="dark"],
.dark-theme {
  --bg-main: #0b1120;
  --bg-card: #151e32;
  --bg-subtle: #1e293b;
  --bg-muted: #334155;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #0f172a;

  --border-light: #1e293b;
  --border-medium: #334155;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body,
.dark-theme body {
  background-color: #0b1120 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .topbar,
.dark-theme .topbar {
  background: rgba(15, 23, 42, 0.95) !important;
  border-bottom-color: #1e293b !important;
}

[data-theme="dark"] .kpi-capsule,
.dark-theme .kpi-capsule {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .kpi-capsule-value,
.dark-theme .kpi-capsule-value {
  color: #38bdf8 !important;
}

[data-theme="dark"] .topbar-title-box h2,
.dark-theme .topbar-title-box h2 {
  color: #f8fafc !important;
}

[data-theme="dark"] .topbar-title-box p,
.dark-theme .topbar-title-box p {
  color: #94a3b8 !important;
}

[data-theme="dark"] .card,
.dark-theme .card,
[data-theme="dark"] .admin-pane,
.dark-theme .admin-pane,
[data-theme="dark"] .admin-header-card,
.dark-theme .admin-header-card,
[data-theme="dark"] .exec-panel,
.dark-theme .exec-panel,
[data-theme="dark"] .exec-action-card,
.dark-theme .exec-action-card,
[data-theme="dark"] .exec-stat-card,
.dark-theme .exec-stat-card,
[data-theme="dark"] .exec-dept-card,
.dark-theme .exec-dept-card,
[data-theme="dark"] .category-card,
.dark-theme .category-card,
[data-theme="dark"] .cat-nav-panel,
.dark-theme .cat-nav-panel,
[data-theme="dark"] .area-stepper-card,
.dark-theme .area-stepper-card,
[data-theme="dark"] .profile-edit-card,
.dark-theme .profile-edit-card,
[data-theme="dark"] .exec-submit-bar,
.dark-theme .exec-submit-bar {
  background: #151e32 !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .category-header,
.dark-theme .category-header,
[data-theme="dark"] .subarea-header,
.dark-theme .subarea-header {
  background: #101726 !important;
  border-color: #1e293b !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .category-title-box h3,
.dark-theme .category-title-box h3,
[data-theme="dark"] .item-title,
.dark-theme .item-title,
[data-theme="dark"] .exec-dept-title,
.dark-theme .exec-dept-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .audit-item-row,
.dark-theme .audit-item-row {
  border-bottom-color: #1e293b !important;
  background: transparent;
}

[data-theme="dark"] .audit-item-row.item-below-standard,
.dark-theme .audit-item-row.item-below-standard {
  background: rgba(245, 158, 11, 0.08) !important;
}

[data-theme="dark"] .audit-item-row.item-unacceptable,
.dark-theme .audit-item-row.item-unacceptable {
  background: rgba(239, 68, 68, 0.08) !important;
}

[data-theme="dark"] .score-selector,
.dark-theme .score-selector {
  background: #1e293b !important;
}

[data-theme="dark"] .score-btn,
.dark-theme .score-btn {
  color: #94a3b8 !important;
}

[data-theme="dark"] .score-btn.active-na,
.dark-theme .score-btn.active-na {
  background: #334155 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .form-control,
.dark-theme .form-control,
[data-theme="dark"] select.form-control,
.dark-theme select.form-control,
[data-theme="dark"] textarea.form-control,
.dark-theme textarea.form-control,
[data-theme="dark"] input[type="text"],
.dark-theme input[type="text"],
[data-theme="dark"] input[type="password"],
.dark-theme input[type="password"],
[data-theme="dark"] input[type="number"],
.dark-theme input[type="number"] {
  background: #0b1120 !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .filter-action-bar,
.dark-theme .filter-action-bar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

[data-theme="dark"] .mobile-search-box,
.dark-theme .mobile-search-box {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.desktop-transparent-search,
#desktop-openitems-search-box,
#desktop-openitems-search-input {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme="dark"] .desktop-transparent-search,
.dark-theme .desktop-transparent-search,
[data-theme="dark"] #desktop-openitems-search-box,
.dark-theme #desktop-openitems-search-box {
  background: transparent !important;
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .search-input-field,
.dark-theme .search-input-field {
  color: #f8fafc !important;
  background: transparent !important;
}

[data-theme="dark"] .filter-pill,
.dark-theme .filter-pill {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .filter-pill.active,
.dark-theme .filter-pill.active {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .dept-nav-wrapper,
.dark-theme .dept-nav-wrapper {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .dept-tab-btn,
.dark-theme .dept-tab-btn {
  background: transparent !important;
  border-color: transparent !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .dept-tab-btn:hover,
.dark-theme .dept-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .dept-tab-btn.active,
.dark-theme .dept-tab-btn.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .stepper-nav-btn,
.dark-theme .stepper-nav-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .stepper-nav-btn:hover,
.dark-theme .stepper-nav-btn:hover {
  background: #2563eb !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .stepper-title,
.dark-theme .stepper-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .stepper-counter,
.dark-theme .stepper-counter {
  color: #94a3b8 !important;
}

[data-theme="dark"] .stepper-progress-bar,
.dark-theme .stepper-progress-bar {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Executive Dashboard Dark Theme Elements (Requirement 6) */
[data-theme="dark"] .exec-action-icon-audit,
.dark-theme .exec-action-icon-audit {
  background: rgba(37, 99, 235, 0.2) !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .exec-action-icon-open,
.dark-theme .exec-action-icon-open {
  background: rgba(220, 38, 38, 0.2) !important;
  color: #f87171 !important;
}

[data-theme="dark"] .exec-action-icon-report,
.dark-theme .exec-action-icon-report {
  background: rgba(192, 38, 211, 0.2) !important;
  color: #e879f9 !important;
}

[data-theme="dark"] .exec-dept-meter,
.dark-theme .exec-dept-meter {
  background: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .exec-code-ms,
.dark-theme .exec-code-ms {
  background: rgba(37, 99, 235, 0.16) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  color: #93c5fd !important;
}

[data-theme="dark"] .exec-code-cl,
.dark-theme .exec-code-cl {
  background: rgba(6, 182, 212, 0.16) !important;
  border-color: rgba(6, 182, 212, 0.35) !important;
  color: #67e8f9 !important;
}

[data-theme="dark"] .exec-code-rm,
.dark-theme .exec-code-rm {
  background: rgba(234, 88, 12, 0.16) !important;
  border-color: rgba(234, 88, 12, 0.35) !important;
  color: #fdba74 !important;
}

[data-theme="dark"] .exec-code-cx,
.dark-theme .exec-code-cx {
  background: rgba(220, 38, 38, 0.16) !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
  color: #fca5a5 !important;
}

[data-theme="dark"] .exec-code-title,
.dark-theme .exec-code-title {
  color: inherit !important;
}

[data-theme="dark"] .exec-code-num,
.dark-theme .exec-code-num {
  color: #ffffff !important;
}

[data-theme="dark"] .exec-code-desc,
.dark-theme .exec-code-desc {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .exec-open-pill,
.dark-theme .exec-open-pill {
  background: rgba(220, 38, 38, 0.2) !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
  color: #f87171 !important;
}

/* Master Data Admin Tree Hierarchy Styling (Requirement 8) */
.admin-dept-details summary::-webkit-details-marker,
.admin-cat-details summary::-webkit-details-marker {
  display: none;
}
.admin-dept-details summary,
.admin-cat-details summary {
  list-style: none;
}
.admin-dept-details[open] > summary .tree-chevron,
.admin-cat-details[open] > summary .tree-chevron {
  transform: rotate(90deg);
}

[data-theme="dark"] .area-chip-btn,
.dark-theme .area-chip-btn {
  background: #151e32 !important;
  border-color: #1e293b !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .area-chip-btn.active,
.dark-theme .area-chip-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

[data-theme="dark"] .cat-nav-link,
.dark-theme .cat-nav-link {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .cat-nav-link:hover,
.dark-theme .cat-nav-link:hover,
[data-theme="dark"] .cat-nav-link.active,
.dark-theme .cat-nav-link.active {
  background: #1e293b !important;
  color: #38bdf8 !important;
}

[data-theme="dark"] .item-deficiency-box,
.dark-theme .item-deficiency-box {
  background: #101726 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .admin-tabs-nav,
.dark-theme .admin-tabs-nav {
  background: #1e293b !important;
}

[data-theme="dark"] .admin-tab-btn,
.dark-theme .admin-tab-btn {
  color: #94a3b8 !important;
}

[data-theme="dark"] .admin-tab-btn.active,
.dark-theme .admin-tab-btn.active {
  background: #151e32 !important;
  color: #38bdf8 !important;
}

[data-theme="dark"] .modal-content,
.dark-theme .modal-content {
  background: #151e32 !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .btn-outline,
.dark-theme .btn-outline {
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .btn-outline:active,
.dark-theme .btn-outline:active {
  background: #1e293b !important;
}

[data-theme="dark"] details summary,
.dark-theme details summary {
  background: #151e32 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] details > div,
.dark-theme details > div {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

/* Report document & guest room report in dark mode on screen */
[data-theme="dark"] .report-document:not(.pdf-export-mode),
.dark-theme .report-document:not(.pdf-export-mode),
[data-theme="dark"] .guest-room-report:not(.pdf-export-mode),
.dark-theme .guest-room-report:not(.pdf-export-mode) {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  color: #f8fafc !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-theme="dark"] .report-document:not(.pdf-export-mode) .report-header-band,
.dark-theme .report-document:not(.pdf-export-mode) .report-header-band {
  border-bottom-color: #334155 !important;
}

[data-theme="dark"] .report-document:not(.pdf-export-mode) .report-header-titles h2,
.dark-theme .report-document:not(.pdf-export-mode) .report-header-titles h2,
[data-theme="dark"] .report-document:not(.pdf-export-mode) .report-section-title,
.dark-theme .report-document:not(.pdf-export-mode) .report-section-title,
[data-theme="dark"] .report-document:not(.pdf-export-mode) .metric-box-val,
.dark-theme .report-document:not(.pdf-export-mode) .metric-box-val,
[data-theme="dark"] .report-document:not(.pdf-export-mode) .signoff-role,
.dark-theme .report-document:not(.pdf-export-mode) .signoff-role,
[data-theme="dark"] .report-document:not(.pdf-export-mode) .signoff-name,
.dark-theme .report-document:not(.pdf-export-mode) .signoff-name {
  color: #f8fafc !important;
}

[data-theme="dark"] .report-document:not(.pdf-export-mode) .report-header-titles p,
.dark-theme .report-document:not(.pdf-export-mode) .report-header-titles p,
[data-theme="dark"] .report-document:not(.pdf-export-mode) .report-meta-box,
.dark-theme .report-document:not(.pdf-export-mode) .report-meta-box,
[data-theme="dark"] .report-document:not(.pdf-export-mode) .metric-box-label,
.dark-theme .report-document:not(.pdf-export-mode) .metric-box-label,
[data-theme="dark"] .report-document:not(.pdf-export-mode) .metric-box-sub,
.dark-theme .report-document:not(.pdf-export-mode) .metric-box-sub,
[data-theme="dark"] .report-document:not(.pdf-export-mode) .signoff-title,
.dark-theme .report-document:not(.pdf-export-mode) .signoff-title {
  color: #94a3b8 !important;
}

[data-theme="dark"] .report-document:not(.pdf-export-mode) .report-metric-box,
.dark-theme .report-document:not(.pdf-export-mode) .report-metric-box {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .report-document:not(.pdf-export-mode) .report-table thead tr,
.dark-theme .report-document:not(.pdf-export-mode) .report-table thead tr {
  background: #1e293b !important;
}

[data-theme="dark"] .report-document:not(.pdf-export-mode) .report-table th,
.dark-theme .report-document:not(.pdf-export-mode) .report-table th {
  color: #f8fafc !important;
  border-bottom-color: #334155 !important;
}

[data-theme="dark"] .report-document:not(.pdf-export-mode) .report-table td,
.dark-theme .report-document:not(.pdf-export-mode) .report-table td {
  border-bottom-color: #1e293b !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .report-document:not(.pdf-export-mode) .signoff-box,
.dark-theme .report-document:not(.pdf-export-mode) .signoff-box {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .report-document:not(.pdf-export-mode) .signoff-line,
.dark-theme .report-document:not(.pdf-export-mode) .signoff-line {
  border-bottom-color: #334155 !important;
}

/* ==========================================================================
   PDF EXPORT & PRINT MODE (Always Pure White Background & Dark Text)
   ========================================================================== */
.report-document.pdf-export-mode,
.pdf-export-mode.report-document,
.guest-room-report.pdf-export-mode,
.pdf-export-mode.guest-room-report,
.meeting-room-report.pdf-export-mode,
.pdf-export-mode.meeting-room-report,
.pdf-export-mode {
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: none !important;
  border: 1.5px solid #64748b !important;
  border-radius: 6px !important;
  padding: 4px 6px 24px 6px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
}

.html2pdf__overlay {
  overflow: visible !important;
}

.html2pdf__container {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.pdf-export-mode .report-header-band {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 2px solid #0f172a !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 4px !important;
  padding-bottom: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.pdf-export-mode .report-brand-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
}

.pdf-export-mode .report-brand-logo {
  height: 38px !important;
  width: auto !important;
  object-fit: contain !important;
}

.pdf-export-mode .report-header-titles h2 {
  color: #0f172a !important;
  font-size: 1.05rem !important;
  margin: 0 !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}

.pdf-export-mode .report-header-titles p {
  color: #475569 !important;
  font-size: 6.8pt !important;
  margin: 1px 0 0 0 !important;
}

.pdf-export-mode .report-meta-box {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  text-align: right !important;
  font-size: 7pt !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
}

.pdf-export-mode .report-meta-box div,
.pdf-export-mode .report-meta-box span,
.pdf-export-mode .report-meta-box strong,
.pdf-export-mode .report-meta-mod-name,
.pdf-export-mode .report-meta-gm-name {
  color: #0f172a !important;
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.pdf-export-mode .report-meta-mod-name,
.pdf-export-mode .report-meta-gm-name {
  font-weight: 800 !important;
  color: #0f172a !important;
}

.pdf-export-mode .exec-score-banner {
  background: linear-gradient(135deg, #091326 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  padding: 4px 8px !important;
  margin-bottom: 4px !important;
  border-radius: 5px !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.pdf-export-mode .exec-score-banner h3 {
  color: #ffffff !important;
  font-size: 0.85rem !important;
  margin: 0 !important;
}

.pdf-export-mode .exec-score-banner p {
  color: #cbd5e1 !important;
  font-size: 6.8pt !important;
  margin: 1px 0 0 0 !important;
}

.pdf-export-mode .exec-kpi-ring {
  font-size: 1.7rem !important;
  color: #38bdf8 !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.pdf-export-mode .exec-dept-scores {
  display: flex !important;
  gap: 8px !important;
}

.pdf-export-mode .exec-dept-item {
  color: #ffffff !important;
  text-align: center !important;
}

.pdf-export-mode .exec-dept-val {
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
}

.pdf-export-mode .exec-dept-name {
  font-size: 6pt !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
}

.pdf-export-mode .report-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 4px !important;
  margin-bottom: 4px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.pdf-export-mode .report-metric-box {
  background: #f8fafc !important;
  border: 1px solid #94a3b8 !important;
  padding: 3px 5px !important;
  border-radius: 5px !important;
  text-align: center !important;
}

.pdf-export-mode .metric-box-label {
  color: #64748b !important;
  font-size: 6.2pt !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.pdf-export-mode .metric-box-val {
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

.pdf-export-mode .metric-box-sub {
  font-size: 5.8pt !important;
  color: #64748b !important;
}

.pdf-export-mode .report-commentary-box {
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-left: 3.5px solid #1e3a8a !important;
  color: #0f172a !important;
  padding: 4px 8px !important;
  margin-bottom: 4px !important;
  border-radius: 0 5px 5px 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.pdf-export-mode .report-commentary-box h4 {
  color: #0f172a !important;
  font-size: 7.2pt !important;
  font-weight: 800 !important;
  margin: 0 0 1px 0 !important;
  text-transform: uppercase !important;
}

.pdf-export-mode .report-commentary-box p {
  color: #334155 !important;
  font-size: 6.8pt !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}

.pdf-export-mode .report-commentary-box strong,
.pdf-export-mode .report-commentary-box b {
  color: #0f172a !important;
}

.pdf-export-mode .report-commentary-notes {
  margin-top: 4px !important;
  padding-top: 4px !important;
  border-top: 1px dashed #cbd5e1 !important;
  font-size: 7pt !important;
  color: #0f172a !important;
}

.pdf-export-mode .report-stats-income-wrapper {
  margin-top: 6px !important;
  padding-top: 6px !important;
  border-top: 1px dashed #cbd5e1 !important;
}

.pdf-export-mode .report-stat-income-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 4px !important;
}

.pdf-export-mode .report-stats-table-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
}

.pdf-export-mode .report-section-title {
  font-size: 7.8pt !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  border-bottom: 1.5px solid #0f172a !important;
  padding-bottom: 2px !important;
  margin: 4px 0 4px 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.pdf-export-mode .report-dept-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: 6px !important;
  margin-bottom: 6px !important;
}

.pdf-export-mode .report-dept-summary-card {
  padding: 4px 6px !important;
  border-radius: 5px !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
}

.pdf-export-mode .report-incident-section {
  margin-top: 6px !important;
}

.pdf-export-mode .report-table thead tr {
  background: #f1f5f9 !important;
}

.pdf-export-mode .report-table th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1.2px solid #475569 !important;
  border-bottom: 2px solid #0f172a !important;
}

.pdf-export-mode .report-table td {
  border: 1.2px solid #94a3b8 !important;
  color: #0f172a !important;
}

.pdf-export-mode tr,
.pdf-export-mode td,
.pdf-export-mode th,
.pdf-export-mode .excel-row-item,
.pdf-export-mode .excel-row-dept,
.pdf-export-mode .excel-row-cat,
.pdf-export-mode .excel-deficiency-box,
.pdf-export-mode .gr-items-table tr,
.pdf-export-mode .mr-items-table tr {
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}

.pdf-export-mode thead {
  display: table-header-group !important;
  break-after: avoid !important;
  page-break-after: avoid !important;
}

.pdf-export-mode .report-signoff-grid,
.pdf-export-mode .guest-room-report .report-signoff-grid,
.pdf-export-mode .meeting-room-report .report-signoff-grid,
.pdf-export-mode .signoff-grid-2,
.pdf-export-mode .signoff-grid-3 {
  display: grid !important;
  gap: 1rem !important;
  margin-top: 8px !important;
  margin-bottom: 6px !important;
  padding-bottom: 4px !important;
  border-top: 1px dashed #cbd5e1 !important;
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  page-break-before: auto !important;
  break-before: auto !important;
}

.pdf-export-mode .report-signoff-grid.signoff-grid-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}

.pdf-export-mode .report-signoff-grid.signoff-grid-3,
.pdf-export-mode .meeting-room-report .report-signoff-grid,
.pdf-export-mode .guest-room-report .report-signoff-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

.pdf-export-mode .signoff-box,
.pdf-export-mode .guest-room-report .signoff-box,
.pdf-export-mode .meeting-room-report .signoff-box {
  background: #ffffff !important;
  border: 1.5px solid #64748b !important;
  border-radius: 6px !important;
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  padding: 4pt 6pt 5pt 6pt !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.pdf-export-mode .signoff-role {
  color: #475569 !important;
  font-size: 7.2pt !important;
  font-weight: 700 !important;
  margin-bottom: 0.15rem !important;
  white-space: nowrap !important;
}

.pdf-export-mode .signoff-space {
  height: 16pt !important;
}

.pdf-export-mode .signoff-line {
  width: 140px !important;
  border-bottom: 1.5px solid #0f172a !important;
  margin: 0 auto 3pt auto !important;
}

.pdf-export-mode .signoff-name,
.pdf-export-mode .guest-room-report .signoff-name,
.pdf-export-mode .meeting-room-report .signoff-name {
  color: #0f172a !important;
  font-size: 8.5pt !important;
  font-weight: 800 !important;
  min-height: 12pt !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin-bottom: 1pt !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.pdf-export-mode .signoff-title {
  color: #475569 !important;
  font-size: 7pt !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

.pdf-export-mode .signoff-date {
  color: #64748b !important;
  font-size: 6.8pt !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

/* Table borders and wrappers: strictly 100% width, zero margins, visible overflow */
.pdf-export-mode table,
.pdf-export-mode .report-excel-table,
.pdf-export-mode .gr-items-table,
.pdf-export-mode .mr-items-table,
.pdf-export-mode .report-incident-table,
.pdf-export-mode .report-stat-table,
.pdf-export-mode .report-table,
.pdf-export-mode .multi-audit-table,
.pdf-export-mode .multi-deficiency-table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-collapse: collapse !important;
}

.pdf-export-mode .excel-table-wrapper,
.pdf-export-mode .gr-room-block,
.pdf-export-mode .mr-room-block,
.pdf-export-mode .report-incident-table-wrapper {
  box-sizing: border-box !important;
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Sign-off Multi-box Layouts */
.signoff-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
}
.signoff-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1rem !important;
}

/* Dedicated Report PDF Download Button Colors */
#btn-download-gr-pdf,
.btn-download-gr-pdf {
  background: linear-gradient(135deg, #065f46 0%, #059669 100%) !important;
  border-color: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35) !important;
}

#btn-download-mr-pdf,
.btn-download-mr-pdf {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%) !important;
  border-color: #7c3aed !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35) !important;
}

/* PDF Hierarchical Mode Overrides */
.pdf-export-mode .report-dept-header {
  background: #091326 !important;
  color: #ffffff !important;
}
.pdf-export-mode .report-dept-title,
.pdf-export-mode .report-dept-title * {
  color: #ffffff !important;
  background-color: transparent !important;
}
.pdf-export-mode .report-dept-meta,
.pdf-export-mode .report-dept-meta * {
  color: #94a3b8 !important;
  background-color: transparent !important;
}
.pdf-export-mode .report-dept-score-pill {
  background-color: rgba(56, 189, 248, 0.2) !important;
  color: #38bdf8 !important;
}
.pdf-export-mode .report-cat-header {
  background: #f1f5f9 !important;
  border-left: 4px solid #2563eb !important;
}
.pdf-export-mode .report-cat-title,
.pdf-export-mode .report-cat-title * {
  color: #1e293b !important;
}
.pdf-export-mode .report-cat-count {
  background: #ffffff !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
}

/* Compact Row PDF Overrides */
.pdf-export-mode .report-row-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: none !important;
}
.pdf-export-mode .report-row-card.row-border-pass { border-left: 3px solid #10b981 !important; }
.pdf-export-mode .report-row-card.row-border-warning { border-left: 3px solid #f59e0b !important; }
.pdf-export-mode .report-row-card.row-border-danger { border-left: 3px solid #ef4444 !important; }
.pdf-export-mode .report-row-card.row-border-na { border-left: 3px solid #94a3b8 !important; }

.pdf-export-mode .row-num-tag {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}
.pdf-export-mode .row-item-title {
  color: #0f172a !important;
}
.pdf-export-mode .row-subarea-tag {
  background: #f8fafc !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
}

.pdf-export-mode .badge-pass {
  background-color: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
}
.pdf-export-mode .badge-warning {
  background-color: #fffbeb !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}
.pdf-export-mode .badge-danger {
  background-color: #fef2f2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}
.pdf-export-mode .badge-na {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}
.pdf-export-mode .badge-unscored {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px dashed #cbd5e1 !important;
}

.pdf-export-mode .row-deficiency-box {
  background-color: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
}
.pdf-export-mode .row-deficiency-text {
  color: #991b1b !important;
}
.pdf-export-mode .label-danger { color: #dc2626 !important; }
.pdf-export-mode .meta-tag { color: #c2410c !important; }
.pdf-export-mode .row-solution-text {
  color: #15803d !important;
}
.pdf-export-mode .label-success { color: #16a34a !important; }
.pdf-export-mode .row-note-text {
  color: #475569 !important;
}
.pdf-export-mode .label-note {
  color: #0f172a !important;
}
.pdf-export-mode .row-thumb-img {
  border: 1px solid #cbd5e1 !important;
}
.pdf-export-mode .row-status-pill.status-open {
  background-color: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
}
.pdf-export-mode .row-status-pill.status-in-progress {
  background-color: #fffbeb !important;
  color: #d97706 !important;
  border: 1px solid #fde68a !important;
}
.pdf-export-mode .row-status-pill.status-done {
  background-color: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0 !important;
}

/* Metric boxes in PDF Export */
.pdf-export-mode .metric-box-danger {
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
}
.pdf-export-mode .metric-box-danger .metric-box-label { color: #991b1b !important; }
.pdf-export-mode .metric-box-danger .metric-box-val { color: #dc2626 !important; }
.pdf-export-mode .metric-box-danger .metric-box-sub { color: #b91c1c !important; }

.pdf-export-mode .metric-box-info {
  background-color: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
}
.pdf-export-mode .metric-box-info .metric-box-label { color: #1e40af !important; }
.pdf-export-mode .metric-box-info .metric-classification-tags { color: #1e3a8a !important; }
.pdf-export-mode .metric-box-info .metric-box-sub { color: #64748b !important; }

.pdf-export-mode .metric-box-success {
  background-color: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
}
.pdf-export-mode .metric-box-success .metric-box-label { color: #166534 !important; }
.pdf-export-mode .metric-box-success .metric-box-val { color: #15803d !important; }
.pdf-export-mode .metric-box-success .metric-box-sub { color: #16a34a !important; }

/* Commentary Box in PDF Export */
.pdf-export-mode .report-commentary-box {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #1e3a8a !important;
  color: #0f172a !important;
}
.pdf-export-mode .report-commentary-box h4 {
  color: #0f172a !important;
}
.pdf-export-mode .report-commentary-box p {
  color: #475569 !important;
}
.pdf-export-mode .report-commentary-box strong,
.pdf-export-mode .report-commentary-box b {
  color: #0f172a !important;
}
.pdf-export-mode .report-commentary-notes {
  border-top: 1px dashed #cbd5e1 !important;
  color: #0f172a !important;
}

/* Department Summary Cards in PDF Export */
.pdf-export-mode .report-dept-summary-card {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
.pdf-export-mode .dept-card-name {
  color: #0f172a !important;
}
.pdf-export-mode .dept-card-pct {
  color: #1e40af !important;
}
.pdf-export-mode .dept-card-bar-bg {
  background-color: #e2e8f0 !important;
}
.pdf-export-mode .dept-card-meta {
  color: #64748b !important;
}

/* Empty State in PDF Export */
.pdf-export-mode .report-empty-box {
  background-color: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  color: #64748b !important;
}

/* ==========================================================================
   EXCEL TABLE PDF EXPORT MODE (Strict Pure White Print Layout - Landscape)
   ========================================================================== */
.pdf-export-mode .report-hierarchical-container,
.pdf-export-mode .excel-table-wrapper {
  overflow: visible !important;
  border: none !important;
  background: transparent !important;
  margin-bottom: 12pt !important;
  page-break-inside: auto !important;
  break-inside: auto !important;
  page-break-before: auto !important;
}
.pdf-export-mode .report-excel-table {
  width: 100% !important;
  min-width: 100% !important;
  border-collapse: collapse !important;
  background: #ffffff !important;
  border: 1.5px solid #0f172a !important;
}
.pdf-export-mode .report-excel-table th {
  background: #091326 !important;
  color: #ffffff !important;
  border: 1.2px solid #334155 !important;
  padding: 5pt 6pt !important;
  font-size: 8pt !important;
  font-weight: 800 !important;
}
.pdf-export-mode .excel-row-dept td {
  background: #1e3a8a !important;
  color: #ffffff !important;
  border: 1.5px solid #1e3a8a !important;
  padding: 4.5pt 6pt !important;
  font-size: 8.5pt !important;
  font-weight: 800 !important;
}
.pdf-export-mode .excel-dept-row {
  display: table !important;
  width: 100% !important;
}
.pdf-export-mode .excel-dept-title {
  display: table-cell !important;
  text-align: left !important;
  vertical-align: middle !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}
.pdf-export-mode .excel-dept-pill {
  display: table-cell !important;
  text-align: right !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  padding: 1pt 5pt !important;
  border-radius: 4pt !important;
}
.pdf-export-mode .excel-row-cat td {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1.2px solid #64748b !important;
  border-left: 3.5pt solid #2563eb !important;
  padding: 4pt 6pt !important;
  font-size: 8pt !important;
  font-weight: 700 !important;
}
.pdf-export-mode .excel-cat-row {
  display: table !important;
  width: 100% !important;
}
.pdf-export-mode .excel-cat-title {
  display: table-cell !important;
  text-align: left !important;
  vertical-align: middle !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}
.pdf-export-mode .excel-cat-pill {
  display: table-cell !important;
  text-align: right !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  padding: 1pt 5pt !important;
  border-radius: 3pt !important;
}
.pdf-export-mode .report-excel-table tr,
.pdf-export-mode .excel-row-item,
.pdf-export-mode .excel-row-dept,
.pdf-export-mode .excel-row-cat {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

.pdf-export-mode .excel-row-item td {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.2px solid #94a3b8 !important;
  padding: 4pt 6pt !important;
  font-size: 7.5pt !important;
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}
.pdf-export-mode .excel-row-item:nth-child(even) td {
  background: #f8fafc !important;
}
.pdf-export-mode .excel-row-item.row-deficiency-highlight td {
  background: #fff1f2 !important;
}
.pdf-export-mode .excel-item-title {
  display: block !important;
  line-height: 1.35 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
.pdf-export-mode .item-code-tag {
  display: inline-block !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
  padding: 0.5pt 4pt !important;
  font-size: 7pt !important;
  font-weight: 800 !important;
  margin-right: 4pt !important;
  vertical-align: middle !important;
}
.pdf-export-mode .item-title-text {
  display: inline !important;
  color: #0f172a !important;
  font-size: 7.5pt !important;
  font-weight: 600 !important;
  vertical-align: middle !important;
}
.pdf-export-mode .item-subarea-tag {
  display: inline-block !important;
  background: #f8fafc !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
  padding: 0 3pt !important;
  font-size: 6.5pt !important;
  margin-left: 4pt !important;
  vertical-align: middle !important;
}
.pdf-export-mode .excel-deficiency-box {
  background: transparent !important;
}
.pdf-export-mode .excel-finding-line {
  color: #991b1b !important;
}
.pdf-export-mode .excel-meta-line {
  color: #9a3412 !important;
}
.pdf-export-mode .excel-solution-line {
  color: #15803d !important;
}
.pdf-export-mode .excel-thumb-img {
  border: 1px solid #cbd5e1 !important;
}
.pdf-export-mode .excel-photo-hint {
  display: none !important;
}
.pdf-export-mode .excel-note-text {
  color: #475569 !important;
}
.pdf-export-mode .excel-unscored-text {
  color: #64748b !important;
  font-style: italic !important;
  font-size: 7.5pt !important;
}


@media print {
  body, .report-document, #printable-report, #mobile-pdf-doc, #desktop-openitems-pdf-doc {
    background: #ffffff !important;
    color: #0f172a !important;
  }
  @page {
    size: A4 landscape;
    margin: 8mm;
  }
}


[data-theme="dark"] .report-document:not(.pdf-export-mode) .report-table tr:nth-child(even),
.dark-theme .report-document:not(.pdf-export-mode) .report-table tr:nth-child(even) {
  background: var(--bg-card, #0f172a) !important;
}
[data-theme="dark"] .report-document:not(.pdf-export-mode) .report-table th,
.dark-theme .report-document:not(.pdf-export-mode) .report-table th {
  background: var(--bg-subtle, #1e293b) !important;
}

/* ==========================================================================
   TRANSPARENT SUMMARY REPORT BUTTON (HERO BANNER)
   ========================================================================== */
.btn-hero-summary {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: inherit;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}
.btn-hero-summary:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   EXECUTIVE MULTI-AUDIT QUALITY SUMMARY - DARK MODE STYLING
   ========================================================================== */
[data-theme="dark"] .multi-report-title,
.dark-theme .multi-report-title {
  color: #38bdf8 !important;
}

[data-theme="dark"] .multi-report-section-title,
.dark-theme .multi-report-section-title {
  color: #ffffff !important;
}

[data-theme="dark"] .multi-dept-card,
.dark-theme .multi-dept-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
}

[data-theme="dark"] .multi-dept-name,
.dark-theme .multi-dept-name {
  color: #f8fafc !important;
}

[data-theme="dark"] .multi-audit-table thead tr,
.dark-theme .multi-audit-table thead tr,
[data-theme="dark"] .multi-audit-table th,
.dark-theme .multi-audit-table th {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-bottom: 2px solid #334155 !important;
}

[data-theme="dark"] .multi-deficiency-table thead tr,
.dark-theme .multi-deficiency-table thead tr,
[data-theme="dark"] .multi-deficiency-table th,
.dark-theme .multi-deficiency-table th {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #fca5a5 !important;
  border-bottom: 2px solid rgba(239, 68, 68, 0.35) !important;
}

[data-theme="dark"] .multi-audit-table td,
.dark-theme .multi-audit-table td,
[data-theme="dark"] .multi-deficiency-table td,
.dark-theme .multi-deficiency-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

/* Multi-Audit General & Layout Styles */
.multi-dept-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
}
.multi-dept-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}
.multi-dept-card {
  flex: 0 1 225px;
  width: 225px;
  max-width: 240px;
  min-width: 160px;
  border: 1.5px solid var(--border-medium, #334155);
  background: var(--bg-card, #1e293b);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  box-sizing: border-box;
}

/* Multi-Audit Print & PDF Export Overrides */
.pdf-export-mode .exec-score-banner-multi {
  padding: 10px 16px !important;
  margin-bottom: 8px !important;
}
.pdf-export-mode .multi-report-title {
  color: #1e3a8a !important;
}
.pdf-export-mode .multi-report-section-title {
  color: #0f172a !important;
  margin-top: 0 !important;
  margin-bottom: 5px !important;
  font-size: 0.85rem !important;
}
.pdf-export-mode .multi-dept-container {
  gap: 6px !important;
  margin-bottom: 10px !important;
}
.pdf-export-mode .multi-dept-row {
  gap: 8px !important;
}
.pdf-export-mode .multi-dept-card {
  flex: 0 1 210px !important;
  width: 210px !important;
  max-width: 225px !important;
  background: #f8fafc !important;
  border: 1.5px solid #64748b !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}
.pdf-export-mode .multi-dept-name {
  color: #0f172a !important;
  font-weight: 800 !important;
}
.pdf-export-mode .multi-audit-table-wrap {
  margin-bottom: 12px !important;
}
.pdf-export-mode .multi-audit-table,
.pdf-export-mode .multi-deficiency-table {
  background: #ffffff !important;
  border: 1.5px solid #64748b !important;
}
.pdf-export-mode .multi-audit-table thead tr,
.pdf-export-mode .multi-audit-table th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  padding: 6px 10px !important;
}
.pdf-export-mode .multi-deficiency-table thead tr,
.pdf-export-mode .multi-deficiency-table th {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border: 1px solid #fca5a5 !important;
  padding: 6px 10px !important;
}
.pdf-export-mode .multi-audit-table td,
.pdf-export-mode .multi-deficiency-table td {
  border: 1px solid #e2e8f0 !important;
  padding: 6px 10px !important;
  color: #1e293b !important;
}
.pdf-export-mode .multi-audit-table tbody tr:nth-child(even) td,
.pdf-export-mode .multi-deficiency-table tbody tr:nth-child(even) td {
  background: #f8fafc !important;
}
.pdf-export-mode .multi-date-cell {
  color: #0369a1 !important;
  font-weight: 700 !important;
}
.pdf-export-mode .multi-area-cell {
  color: #0f172a !important;
}
.pdf-export-mode .multi-area-cell span {
  color: #64748b !important;
}
.pdf-export-mode .multi-remark-cell {
  color: #dc2626 !important;
  font-weight: 600 !important;
}
.pdf-export-mode .multi-col-action,
.pdf-export-mode th.multi-col-action,
.pdf-export-mode td.multi-col-action,
.pdf-export-mode .multi-report-sign-section {
  display: none !important;
}
.pdf-export-mode .status-badge-done {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
}
.pdf-export-mode .status-badge-progress {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border: 1px solid #fdba74 !important;
}
.pdf-export-mode .status-badge-open {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
}

/* ==========================================================================
   HOUSEKEEPING GUEST ROOM AUDIT (TBL_ROOM SYNC) - MODERN MOBILE-FIRST UI/UX
   ========================================================================== */

/* Guest Room 1-Row Card (Modern & Harmonious with .filter-box) */
.guest-room-bar {
  background: var(--bg-card, #ffffff);
  border-radius: var(--radius-lg, 14px);
  padding: 8px 10px;
  border: 1px solid var(--border-light, #e2e8f0);
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.guest-room-bar:active {
  transform: scale(0.99);
}
.guest-room-bar:hover {
  border-color: rgba(2, 132, 199, 0.4);
}

[data-theme="dark"] .guest-room-bar,
.dark-theme .guest-room-bar {
  background: #151e32 !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}

.gr-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  gap: 8px;
  box-sizing: border-box;
}

.gr-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.gr-bar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.gr-bar-badge.empty {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  box-shadow: none;
  padding: 8px 10px;
  font-size: 1.15rem;
}

[data-theme="dark"] .gr-bar-badge.empty,
.dark-theme .gr-bar-badge.empty {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
}

.gr-bar-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.gr-bar-num {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.gr-bar-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 2px;
}

.gr-bar-type {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

[data-theme="dark"] .gr-bar-type,
.dark-theme .gr-bar-type {
  color: #f8fafc !important;
}

.gr-bar-sub {
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  white-space: nowrap;
}

.gr-bar-dot {
  opacity: 0.5;
}

.gr-bar-audits {
  color: #d97706;
  font-weight: 700;
}

[data-theme="dark"] .gr-bar-audits,
.dark-theme .gr-bar-audits {
  color: #fbbf24 !important;
}

.gr-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.gr-bar-progress {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.gr-bar-scored {
  color: #0284c7;
  font-size: 1rem;
  font-weight: 900;
}

[data-theme="dark"] .gr-bar-scored,
.dark-theme .gr-bar-scored {
  color: #38bdf8 !important;
}

.gr-bar-total {
  color: var(--text-muted, #64748b);
  font-size: 0.75rem;
  font-weight: 700;
}

.gr-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 18px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-subtle, #f1f5f9);
  color: var(--text-main, #334155);
  border: 1px solid var(--border-medium, #cbd5e1);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.gr-bar-btn svg {
  color: inherit;
  flex-shrink: 0;
}

.gr-bar-btn.primary {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

[data-theme="dark"] .gr-bar-btn,
.dark-theme .gr-bar-btn {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .gr-bar-btn.primary,
.dark-theme .gr-bar-btn.primary {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

/* Modal Active Room Pills & Sections */
.gr-modal-sec-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

[data-theme="dark"] .gr-modal-sec-title,
.dark-theme .gr-modal-sec-title {
  color: #ffffff !important;
}

.gr-modal-active-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}

.gr-modal-active-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border-medium, #cbd5e1);
  background: var(--bg-card, #ffffff);
  cursor: pointer;
  transition: all 0.15s ease;
}

.gr-modal-active-pill.active {
  border-color: #0284c7;
  background: #eff6ff;
}

[data-theme="dark"] .gr-modal-active-pill,
.dark-theme .gr-modal-active-pill {
  background: transparent !important;
  background-color: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .gr-modal-active-pill.active,
.dark-theme .gr-modal-active-pill.active {
  background: rgba(2, 132, 199, 0.2) !important;
  background-color: rgba(2, 132, 199, 0.2) !important;
  border: 1.5px solid #0284c7 !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

[data-theme="dark"] .gr-modal-pill-num,
.dark-theme .gr-modal-pill-num {
  color: #ffffff !important;
}

[data-theme="dark"] .gr-modal-pill-prog,
.dark-theme .gr-modal-pill-prog {
  color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="dark"] .gr-modal-pill-tag,
.dark-theme .gr-modal-pill-tag {
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid #38bdf8 !important;
  color: #38bdf8 !important;
  font-weight: 800 !important;
}

[data-theme="dark"] .gr-modal-pill-del,
.dark-theme .gr-modal-pill-del {
  color: rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] .gr-modal-pill-del:hover,
.dark-theme .gr-modal-pill-del:hover {
  color: #ef4444 !important;
}

.gr-modal-pill-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.gr-modal-pill-num {
  font-weight: 800;
  color: var(--text-main, #0f172a);
}

[data-theme="dark"] .gr-modal-pill-num,
.dark-theme .gr-modal-pill-num {
  color: #f8fafc !important;
}

.gr-modal-pill-prog {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  font-weight: 700;
}

.gr-modal-pill-tag {
  font-size: 0.65rem;
  font-weight: 800;
  background: #0284c7;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.gr-modal-pill-del {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  transition: color 0.15s;
}

.gr-modal-pill-del:hover {
  color: #ef4444;
}

/* Smart Guest Room Modal Dialog Styling */
.gr-search-container {
  margin-bottom: 8px;
}
.gr-quick-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.gr-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1.5px solid var(--border-medium, #cbd5e1);
  background: var(--bg-card, #ffffff);
  color: var(--text-main, #334155);
  cursor: pointer;
  transition: all 0.15s ease;
}
.gr-filter-pill:hover {
  border-color: #0284c7;
}
.gr-filter-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}
.gr-filter-reset {
  border-style: dashed;
  color: var(--text-muted, #64748b);
  font-size: 0.74rem;
  padding: 5px 10px;
}

[data-theme="dark"] .gr-filter-pill,
.dark-theme .gr-filter-pill {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] .gr-filter-pill.active,
.dark-theme .gr-filter-pill.active {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

/* Exact Match Highlighted Preview Card */
.gr-match-preview-card {
  background: linear-gradient(145deg, rgba(2, 132, 199, 0.05) 0%, rgba(14, 165, 233, 0.08) 100%);
  border: 2px solid #0284c7;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px -2px rgba(2, 132, 199, 0.15);
}
[data-theme="dark"] .gr-match-preview-card,
.dark-theme .gr-match-preview-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%) !important;
  border-color: #38bdf8 !important;
}
.gr-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.gr-preview-badge-status {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .gr-preview-badge-status,
.dark-theme .gr-preview-badge-status {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.2) !important;
}
.gr-preview-level {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted, #64748b);
}
.gr-preview-room-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.gr-preview-bed-icon {
  font-size: 1.5rem;
}
.gr-preview-room-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main, #0f172a);
  letter-spacing: -0.02em;
}
[data-theme="dark"] .gr-preview-room-num,
.dark-theme .gr-preview-room-num {
  color: #f8fafc !important;
}
.gr-preview-info-grid {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
[data-theme="dark"] .gr-preview-info-grid,
.dark-theme .gr-preview-info-grid {
  background: #0f172a !important;
  border-color: #334155 !important;
}
.gr-preview-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.gr-preview-label {
  color: var(--text-muted, #64748b);
  font-weight: 600;
}
.gr-preview-value {
  font-weight: 800;
  color: var(--text-main, #0f172a);
}
[data-theme="dark"] .gr-preview-value,
.dark-theme .gr-preview-value {
  color: #f8fafc !important;
}
.gr-val-type {
  color: #0284c7;
}
[data-theme="dark"] .gr-val-type,
.dark-theme .gr-val-type {
  color: #38bdf8 !important;
}
.gr-val-audit {
  color: #d97706;
}
.gr-val-audit.zero {
  color: #10b981;
}
.gr-btn-start-audit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 12px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  transition: all 0.15s ease;
}
.gr-btn-start-audit:active {
  transform: scale(0.98);
}

/* Partial / 0-Audit Results List */
.gr-results-header {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted, #64748b);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.gr-results-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}
.gr-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gr-result-item:hover,
.gr-result-item:active {
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.15);
}
[data-theme="dark"] .gr-result-item,
.dark-theme .gr-result-item {
  background: #1e293b !important;
  border-color: #334155 !important;
}
.gr-result-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.gr-result-num-box {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  padding: 5px 9px;
  border-radius: 9px;
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}
[data-theme="dark"] .gr-result-num-box,
.dark-theme .gr-result-num-box {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
}
.gr-result-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gr-result-type {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme="dark"] .gr-result-type,
.dark-theme .gr-result-type {
  color: #f8fafc !important;
}
.gr-result-sub {
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  gap: 5px;
}
.gr-result-audit-pill {
  font-weight: 700;
  color: #d97706;
}
.gr-result-audit-pill.zero {
  color: #10b981;
}
.gr-result-select-btn {
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 8px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  flex-shrink: 0;
  cursor: pointer;
}

/* Empty State / Initial Guide */
.gr-modal-empty-guide {
  text-align: center;
  padding: 16px 14px;
  background: var(--bg-subtle, #f8fafc);
  border: 1px dashed var(--border-medium, #cbd5e1);
  border-radius: 14px;
  margin-bottom: 12px;
}
[data-theme="dark"] .gr-modal-empty-guide,
.dark-theme .gr-modal-empty-guide {
  background: rgba(30, 41, 59, 0.4) !important;
  border-color: #334155 !important;
}
.gr-guide-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.gr-guide-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin-bottom: 3px;
}
[data-theme="dark"] .gr-guide-title,
.dark-theme .gr-guide-title {
  color: #f8fafc !important;
}
.gr-guide-sub {
  font-size: 0.76rem;
  color: var(--text-muted, #64748b);
  line-height: 1.4;
  max-width: 280px;
  margin: 0 auto;
}

/* Quick Recommendations (0-Audit) */
.gr-quick-zero-section {
  margin-top: 4px;
}
.gr-quick-zero-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-muted, #64748b);
  margin-bottom: 8px;
}
.gr-btn-see-all-zero {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}
.gr-quick-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 7px;
}
.gr-quick-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-light, #e2e8f0);
  background: var(--bg-card, #ffffff);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.gr-quick-chip:hover,
.gr-quick-chip:active {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.04);
}
[data-theme="dark"] .gr-quick-chip,
.dark-theme .gr-quick-chip {
  background: #1e293b !important;
  border-color: #334155 !important;
}
.gr-chip-num {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
}
[data-theme="dark"] .gr-chip-num,
.dark-theme .gr-chip-num {
  color: #f8fafc !important;
}
.gr-chip-type {
  font-size: 0.68rem;
  color: var(--text-muted, #64748b);
  margin-top: 2px;
}

/* Smart Search Input */
.gr-search-box {
  position: relative;
  margin-bottom: 10px;
}
.gr-search-input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  border-radius: 12px;
  border: 1.5px solid var(--border-medium, #cbd5e1);
  background: var(--bg-subtle, #f8fafc);
  color: var(--text-main, #0f172a);
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
[data-theme="dark"] .gr-search-input,
.dark-theme .gr-search-input,
[data-theme="dark"] #modal-gr-search-input,
.dark-theme #modal-gr-search-input {
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}
.gr-search-input:focus {
  border-color: #0284c7;
  background: var(--bg-card, #ffffff);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
[data-theme="dark"] .gr-search-input:focus,
.dark-theme .gr-search-input:focus,
[data-theme="dark"] #modal-gr-search-input:focus,
.dark-theme #modal-gr-search-input:focus {
  background: transparent !important;
  background-color: transparent !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}
[data-theme="dark"] .gr-search-input::placeholder,
.dark-theme .gr-search-input::placeholder,
[data-theme="dark"] #modal-gr-search-input::placeholder,
.dark-theme #modal-gr-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}
[data-theme="dark"] .gr-search-icon,
.dark-theme .gr-search-icon {
  color: rgba(255, 255, 255, 0.6) !important;
}
[data-theme="dark"] .gr-search-clear,
.dark-theme .gr-search-clear {
  color: rgba(255, 255, 255, 0.6) !important;
}
.gr-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #94a3b8;
  pointer-events: none;
}
.gr-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}


/* Custom / New Room Prompt Box */
.gr-new-room-box {
  background: #f0fdf4;
  border: 1.5px dashed #22c55e;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

[data-theme="dark"] .gr-new-room-box,
.dark-theme .gr-new-room-box {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
}

.gr-new-room-header {
  font-size: 0.85rem;
  font-weight: 800;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 4px;
}

[data-theme="dark"] .gr-new-room-header,
.dark-theme .gr-new-room-header {
  color: #4ade80;
}

.gr-new-room-sub {
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
}

.gr-new-room-controls {
  display: flex;
  gap: 8px;
}

.gr-new-type-select {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-medium, #cbd5e1);
  background: var(--bg-card, #ffffff);
  color: var(--text-main, #0f172a);
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
}

[data-theme="dark"] .gr-new-type-select,
.dark-theme .gr-new-type-select {
  background: transparent !important;
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .gr-new-type-select option,
.dark-theme .gr-new-type-select option {
  background: #0f172a !important;
  color: #ffffff !important;
}

/* ==========================================================================
   REPORT VIEW: SEGMENTED SWITCHER (LAPORAN MOD vs LAPORAN GUEST ROOM)
   ========================================================================== */
.report-type-switcher {
  display: flex;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.report-switch-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-switch-btn.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.report-switch-btn.active.gr-active,
.report-switch-btn.guest-room-active {
  background: linear-gradient(135deg, #065f46 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.report-switch-btn.active.mr-active,
.report-switch-btn.meeting-room-active {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

/* ==========================================================================
   DEDICATED GUEST ROOM & MEETING ROOM INSPECTION REPORTS
   On Screen: Transparent Dark Theme matching the app
   On Export: Clean Pure White A4 Print Theme
   ========================================================================== */
.guest-room-report:not(.pdf-export-mode) {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg, 16px);
  padding: 18px;
  color: #f8fafc;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}

.meeting-room-report:not(.pdf-export-mode) {
  border-color: rgba(124, 58, 237, 0.35) !important;
}

.guest-room-report:not(.pdf-export-mode) .gr-header-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #059669;
  padding-bottom: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.guest-room-report:not(.pdf-export-mode) .gr-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guest-room-report:not(.pdf-export-mode) .gr-brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.guest-room-report:not(.pdf-export-mode) .gr-header-titles h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #34d399;
  margin: 0;
  letter-spacing: -0.02em;
}

.guest-room-report:not(.pdf-export-mode) .gr-header-titles p {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  margin: 2px 0 0 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guest-room-report:not(.pdf-export-mode) .gr-meta-box {
  background: rgba(6, 78, 59, 0.35);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guest-room-report:not(.pdf-export-mode) .gr-meta-box strong {
  color: #86efac;
}

/* Guest Room KPI Banner */
.guest-room-report:not(.pdf-export-mode) .gr-score-banner {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(6, 78, 59, 0.3);
  flex-wrap: wrap;
  gap: 16px;
}

.guest-room-report:not(.pdf-export-mode) .gr-overall-kpi {
  display: flex;
  align-items: center;
  gap: 16px;
}

.guest-room-report:not(.pdf-export-mode) .gr-kpi-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #10b981;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  color: #34d399;
}

.guest-room-report:not(.pdf-export-mode) .gr-kpi-info h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.guest-room-report:not(.pdf-export-mode) .gr-kpi-info p {
  font-size: 0.75rem;
  color: #a7f3d0;
  margin: 0;
}

.guest-room-report:not(.pdf-export-mode) .gr-rooms-metric {
  display: flex;
  gap: 12px;
}

.guest-room-report:not(.pdf-export-mode) .gr-metric-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 14px;
  text-align: center;
}

.guest-room-report:not(.pdf-export-mode) .gr-metric-chip-val {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
}

.guest-room-report:not(.pdf-export-mode) .gr-metric-chip-lbl {
  font-size: 0.68rem;
  color: #d1fae5;
  text-transform: uppercase;
}

.guest-room-report:not(.pdf-export-mode) .gr-rooms-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.guest-room-report:not(.pdf-export-mode) .gr-overview-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
}

.guest-room-report:not(.pdf-export-mode) .gr-overview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.guest-room-report:not(.pdf-export-mode) .gr-overview-num {
  font-size: 1.05rem;
  font-weight: 900;
  color: #34d399;
}

.guest-room-report:not(.pdf-export-mode) .gr-overview-type {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.guest-room-report:not(.pdf-export-mode) .gr-overview-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 6px;
  color: #94a3b8;
}

.guest-room-report:not(.pdf-export-mode) .gr-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Per-Room Inspection Block */
.guest-room-report:not(.pdf-export-mode) .gr-room-block {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.guest-room-report:not(.pdf-export-mode) .gr-room-header {
  background: rgba(6, 78, 59, 0.45);
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.guest-room-report:not(.pdf-export-mode) .gr-room-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guest-room-report:not(.pdf-export-mode) .gr-room-pill {
  background: #059669;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 8px;
}

.guest-room-report:not(.pdf-export-mode) .gr-room-desc {
  font-size: 0.85rem;
  font-weight: 800;
  color: #e2e8f0;
}

.guest-room-report:not(.pdf-export-mode) .gr-room-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.guest-room-report:not(.pdf-export-mode) .gr-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.guest-room-report:not(.pdf-export-mode) .gr-badge-type {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.guest-room-report:not(.pdf-export-mode) .gr-badge-audit {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.guest-room-report:not(.pdf-export-mode) .gr-badge-score {
  background: rgba(16, 185, 129, 0.2);
  color: #86efac;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Room Items Table */
.guest-room-report:not(.pdf-export-mode) .gr-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  color: #f1f5f9;
}

.guest-room-report:not(.pdf-export-mode) .gr-items-table th {
  background: rgba(6, 95, 70, 0.6);
  color: #34d399;
  font-weight: 800;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.guest-room-report:not(.pdf-export-mode) .gr-items-table td {
  padding: 8px 10px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: #f1f5f9;
  vertical-align: middle;
}

.guest-room-report:not(.pdf-export-mode) .gr-items-table tr.subarea-heading-row td {
  background: rgba(6, 78, 59, 0.35);
  font-weight: 800;
  color: #34d399;
  border-top: 1px solid rgba(16, 185, 129, 0.35);
  border-bottom: 1px solid rgba(16, 185, 129, 0.35);
}

.guest-room-report:not(.pdf-export-mode) .gr-items-table tr.item-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.guest-room-report:not(.pdf-export-mode) .gr-score-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.72rem;
  text-align: center;
  min-width: 48px;
  white-space: nowrap;
}

.guest-room-report:not(.pdf-export-mode) .gr-score-2 {
  background: rgba(16, 185, 129, 0.2);
  color: #86efac;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.guest-room-report:not(.pdf-export-mode) .gr-score-1 {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.guest-room-report:not(.pdf-export-mode) .gr-score-0 {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.guest-room-report:not(.pdf-export-mode) .gr-score-na {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.guest-room-report:not(.pdf-export-mode) .gr-thumb-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  margin-top: 4px;
}

.guest-room-report:not(.pdf-export-mode) .report-signoff-grid {
  border-top: 1px dashed rgba(16, 185, 129, 0.3);
}

.guest-room-report:not(.pdf-export-mode) .signoff-box {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.guest-room-report:not(.pdf-export-mode) .signoff-name {
  color: #ffffff !important;
}

.guest-room-report:not(.pdf-export-mode) .signoff-line {
  border-bottom: 1px solid rgba(16, 185, 129, 0.35);
}

.guest-room-report:not(.pdf-export-mode) .signoff-role,
.guest-room-report:not(.pdf-export-mode) .signoff-title {
  color: #94a3b8;
}

.guest-room-report:not(.pdf-export-mode) .signoff-date {
  color: #64748b;
}

/* Light Mode Overrides for Dedicated Guest Room Report */
[data-theme="light"] .guest-room-report:not(.pdf-export-mode),
.light-theme .guest-room-report:not(.pdf-export-mode) {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #bbf7d0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-header-titles h2,
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-header-titles h2 {
  color: #065f46 !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-header-titles p,
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-header-titles p {
  color: #64748b !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-meta-box,
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-meta-box {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
  color: #166534 !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-meta-box strong,
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-meta-box strong {
  color: #166534 !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-score-banner,
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-score-banner {
  background: linear-gradient(135deg, #064e3b 0%, #059669 100%) !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-overview-card,
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-overview-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-overview-num,
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-overview-num {
  color: #065f46 !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-overview-type,
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-overview-type {
  color: #334155 !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-room-block,
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-room-block {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-room-header,
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-room-header {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-room-desc,
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-room-desc {
  color: #1e293b !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-items-table,
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-items-table {
  color: #0f172a !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-items-table th,
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-items-table th {
  background: #f1f5f9 !important;
  color: #065f46 !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-items-table td,
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-items-table td {
  color: #1e293b !important;
  border-color: #e2e8f0 !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-items-table tr.subarea-heading-row td,
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-items-table tr.subarea-heading-row td {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border-color: #a7f3d0 !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .gr-items-table tr.item-row:nth-child(even),
.light-theme .guest-room-report:not(.pdf-export-mode) .gr-items-table tr.item-row:nth-child(even) {
  background: #f8fafc !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .signoff-box,
.light-theme .guest-room-report:not(.pdf-export-mode) .signoff-box {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .guest-room-report:not(.pdf-export-mode) .signoff-name,
.light-theme .guest-room-report:not(.pdf-export-mode) .signoff-name {
  color: #0f172a !important;
}

/* PDF Export Overrides for Dedicated Guest Room Report */
.pdf-export-mode.guest-room-report,
.guest-room-report.pdf-export-mode,
.pdf-export-mode .guest-room-report {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: none !important;
  border: 1.5px solid #64748b !important;
  border-radius: 6px !important;
  padding: 4px 6px 24px 6px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
}

.pdf-export-mode .gr-header-titles h2 {
  color: #065f46 !important;
}

.pdf-export-mode .gr-score-banner {
  background: #064e3b !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.pdf-export-mode .gr-room-block {
  box-shadow: none !important;
  border: 1.5px solid #94a3b8 !important;
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

.pdf-export-mode .gr-items-table {
  border: 1.5px solid #64748b !important;
}

.pdf-export-mode .gr-items-table th {
  border: 1.2px solid #475569 !important;
}

.pdf-export-mode .gr-items-table td {
  border: 1.2px solid #94a3b8 !important;
}

.pdf-export-mode .gr-items-table tr {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

.pdf-export-mode .report-signoff-grid,
.pdf-export-mode .guest-room-report .report-signoff-grid,
.pdf-export-mode .guest-room-report .signoff-box {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

.pdf-export-mode .signoff-name,
.pdf-export-mode .guest-room-report .signoff-name {
  color: #0f172a !important;
  font-size: 9pt !important;
  font-weight: 800 !important;
  min-height: 14pt !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ==========================================================================
   DESKTOP AUDIT WORKSPACE: GUEST ROOM & MEETING ROOM BANNER / PILLS / CARDS
   Harmonious Theme Design Matching Application System Colors
   ========================================================================== */

.guest-room-banner {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-lg, 14px);
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.guest-room-tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.guest-room-tabs-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}

.btn-add-room-pill {
  background: linear-gradient(135deg, var(--primary, #1e3a8a) 0%, var(--primary-light, #2563eb) 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.btn-add-room-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.guest-room-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: thin;
}

.room-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle, #f8fafc);
  color: var(--text-main, #334155);
  border: 1px solid var(--border-medium, #cbd5e1);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.room-tab-pill:hover {
  border-color: var(--primary-light, #3b82f6);
  background: #eff6ff;
  color: #1d4ed8;
}

.room-tab-pill.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border-color: #1e3a8a;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.remove-room-btn {
  background: transparent;
  border: none;
  color: currentColor;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0 0 4px;
  margin-left: 2px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.remove-room-btn:hover {
  opacity: 1;
}

.active-room-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.04) 0%, rgba(37, 99, 235, 0.08) 100%);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 8px;
  gap: 16px;
  flex-wrap: wrap;
}

.room-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.room-badge-num {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
  letter-spacing: -0.02em;
}

.room-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.room-type-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
}

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

.room-meta-tag {
  background: var(--bg-subtle, #f1f5f9);
  color: var(--text-muted, #475569);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.room-meta-tag.audit-tag {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.3);
}

.room-card-kpi {
  display: flex;
  align-items: center;
  gap: 10px;
}

.room-kpi-badge {
  text-align: right;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.room-kpi-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-light, #2563eb);
  line-height: 1.1;
}

.room-kpi-label {
  font-size: 0.68rem;
  color: var(--text-muted, #64748b);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Room Picker Box */
.room-picker-box {
  background: var(--bg-subtle, #f8fafc);
  border: 1px dashed var(--border-medium, #cbd5e1);
  border-radius: 12px;
  padding: 16px;
  margin-top: 8px;
}

.room-picker-header {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin-bottom: 4px;
}

.room-picker-desc {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 12px;
}

.room-picker-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.room-picker-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.room-picker-field label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
  letter-spacing: 0.04em;
}

.room-picker-field input {
  padding: 8px 12px;
  border: 1px solid var(--border-medium, #cbd5e1);
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--bg-card, #ffffff);
  color: var(--text-main, #0f172a);
  outline: none;
  transition: border-color 0.15s ease;
}

.room-picker-field input:focus {
  border-color: var(--primary-light, #2563eb);
}

.room-picker-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.room-picker-quick-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted, #64748b);
  margin-top: 10px;
  margin-bottom: 6px;
}

.room-picker-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.room-picker-pill {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main, #334155);
  cursor: pointer;
  transition: all 0.15s ease;
}

.room-picker-pill:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

/* Dark Theme Overrides for Room Banner & Picker */
[data-theme="dark"] .guest-room-banner,
.dark-theme .guest-room-banner {
  background: #111e38;
  border-color: #1e3a6a;
}

[data-theme="dark"] .room-tab-pill,
.dark-theme .room-tab-pill {
  background: #0f1a30;
  border-color: #243c68;
  color: #cbd5e1;
}

[data-theme="dark"] .room-tab-pill:hover,
.dark-theme .room-tab-pill:hover {
  background: #1e3a6a;
  color: #38bdf8;
  border-color: #38bdf8;
}

[data-theme="dark"] .active-room-card,
.dark-theme .active-room-card {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(37, 99, 235, 0.18) 100%);
  border-color: rgba(56, 189, 248, 0.3);
}

[data-theme="dark"] .room-meta-tag,
.dark-theme .room-meta-tag {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .room-kpi-badge,
.dark-theme .room-kpi-badge {
  background: #0c1628;
  border-color: #1e3a6a;
}

[data-theme="dark"] .room-picker-box,
.dark-theme .room-picker-box {
  background: #0d182e;
  border-color: #243c68;
}

[data-theme="dark"] .room-picker-field input,
.dark-theme .room-picker-field input {
  background: #111e38;
  border-color: #243c68;
  color: #f1f5f9;
}

[data-theme="dark"] .room-picker-pill,
.dark-theme .room-picker-pill {
  background: #111e38;
  border-color: #243c68;
  color: #cbd5e1;
}

/* ==========================================================================
   AUDIT FINDING DASHBOARD & ACCOUNTABILITY TRAIL STYLES
   ========================================================================== */
.finding-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 992px) {
  .finding-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .finding-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.finding-kpi-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.finding-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.finding-kpi-card-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.finding-kpi-card-val {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-main, #0f172a);
}
.finding-kpi-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 4px;
}

/* User Accountability Trail */
.finding-trail-box {
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 768px) {
  .finding-trail-box {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.trail-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
}
.trail-step-item.active {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.05);
}
.trail-step-item.active-done {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}
.trail-step-item.pending {
  opacity: 0.6;
}
.trail-icon-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--bg-subtle, #f1f5f9);
  flex-shrink: 0;
}
.trail-content {
  flex: 1;
  min-width: 0;
}
.trail-phase-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
  letter-spacing: 0.03em;
}
.trail-actor-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trail-timestamp {
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}

/* Before & After Photo Gallery */
.finding-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}
@media (max-width: 640px) {
  .finding-gallery-grid {
    grid-template-columns: 1fr;
  }
}
.gallery-card {
  border: 1.5px dashed var(--border-medium, #cbd5e1);
  border-radius: 12px;
  padding: 10px;
  background: var(--bg-subtle, #f8fafc);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 140px;
  position: relative;
  transition: all 0.2s ease;
}
.gallery-card.has-photo {
  border-style: solid;
  border-color: var(--border-light, #e2e8f0);
  background: var(--bg-card, #ffffff);
}
.gallery-card.after-card {
  border-color: rgba(16, 185, 129, 0.4);
}
.gallery-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.gallery-thumb-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}
.gallery-thumb-img:hover {
  transform: scale(1.02);
}
.gallery-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  color: var(--text-muted, #94a3b8);
  gap: 6px;
}
.gallery-empty-icon {
  font-size: 1.8rem;
}
.gallery-empty-text {
  font-size: 0.75rem;
  font-weight: 700;
}
.gallery-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: all 0.15s ease;
}
.gallery-upload-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Dark mode adjustments for Finding */
[data-theme="dark"] .finding-kpi-card,
.dark-theme .finding-kpi-card {
  background: #0f172a;
  border-color: #1e293b;
}
[data-theme="dark"] .finding-trail-box,
.dark-theme .finding-trail-box {
  background: #091326;
  border-color: #1e293b;
}
[data-theme="dark"] .trail-step-item,
.dark-theme .trail-step-item {
  background: #111e38;
  border-color: #1e3a6a;
}
[data-theme="dark"] .gallery-card,
.dark-theme .gallery-card {
  background: #0c1628;
  border-color: #1e3a6a;
}
[data-theme="dark"] .gallery-card.has-photo,
.dark-theme .gallery-card.has-photo {
  background: #111e38;
  border-color: #243c68;
}







/* Force remove all outlines and backgrounds from all logos */
.desk-hero-logo, .login-brand-logo, .brand-logo-img, .brand-logo-mobile, .report-brand-logo, .gr-brand-logo, #dash-hotel-logo, .gr-brand-wrap img, .report-brand-wrap img {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Dark Mode Date Picker Indicator */
[data-theme="dark"] input[type="date"],
.dark-theme input[type="date"],
#analyze-start-date,
#analyze-end-date {
  color-scheme: dark;
}
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
.dark-theme input[type="date"]::-webkit-calendar-picker-indicator,
#analyze-start-date::-webkit-calendar-picker-indicator,
#analyze-end-date::-webkit-calendar-picker-indicator {
  filter: brightness(0) invert(1) !important;
  opacity: 0.92;
  cursor: pointer;
}
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator:hover,
.dark-theme input[type="date"]::-webkit-calendar-picker-indicator:hover,
#analyze-start-date::-webkit-calendar-picker-indicator:hover,
#analyze-end-date::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ==========================================================================
   HOTEL OPERATIONAL STATISTICS & GUEST INCIDENTS REPORT STYLES
   ========================================================================== */
.report-stats-income-wrapper {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(56, 189, 248, 0.25);
}
.report-stat-income-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.report-stat-income-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.report-stat-income-subtitle {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.report-stats-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.report-stat-col-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.report-stat-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.report-stat-table {
  width: 100%;
  font-size: 0.8rem;
  border-collapse: collapse;
}
.report-stat-table td {
  padding: 3px 0;
}
.report-stat-table .stat-label {
  color: #94a3b8;
  font-weight: 500;
}
.report-stat-table .stat-val {
  text-align: right;
  font-weight: 700;
  color: #f1f5f9;
}
.report-stat-table .stat-total-row {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}
.report-stat-table .stat-total-row .stat-label {
  padding: 5px 0 2px;
  font-weight: 800;
  color: #ffffff;
}
.report-stat-table .stat-total-row .stat-val {
  padding: 5px 0 2px;
  text-align: right;
  font-weight: 800;
  font-size: 0.88rem;
}
.stat-val-revenue {
  color: #34d399 !important;
}
.stat-val-occ {
  color: #38bdf8 !important;
}
.stat-val-revpar {
  color: #c084fc !important;
}
.report-stat-empty-notice {
  font-size: 0.78rem;
  color: #94a3b8;
  font-style: italic;
  padding: 4px 0;
}

/* Guest Incident Report Section */
.report-incident-section {
  margin-top: 1.5rem;
  page-break-inside: avoid;
  break-inside: avoid;
}
.report-incident-table-wrapper {
  overflow-x: auto;
  margin-top: 8px;
}
.report-incident-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  overflow: hidden;
}
.report-incident-table thead tr {
  background: rgba(30, 41, 59, 0.7);
  border-bottom: 2px solid rgba(56, 189, 248, 0.25);
}
.report-incident-table th {
  padding: 8px 10px;
  font-weight: 700;
  color: #38bdf8;
  border-right: 1px solid rgba(148, 163, 184, 0.15);
  text-align: left;
}
.report-incident-table th.inc-no {
  width: 36px;
  text-align: center;
}
.report-incident-table th.inc-area {
  width: 180px;
}
.report-incident-table th.inc-complaint {
  width: 220px;
}
.report-incident-table th:last-child {
  border-right: none;
}
.report-incident-table tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.report-incident-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.25);
}
.report-incident-table td {
  padding: 8px 10px;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}
.report-incident-table td:last-child {
  border-right: none;
}
.report-incident-table .inc-no {
  text-align: center;
  font-weight: 700;
  color: #94a3b8;
}
.report-incident-table .inc-area {
  font-weight: 700;
  color: #38bdf8;
}
.report-incident-table .inc-complaint {
  font-weight: 600;
  color: #f87171;
}
.report-incident-table .inc-note {
  color: #f1f5f9;
  line-height: 1.45;
}

/* Empty Incident State */
.report-incident-empty {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.report-incident-empty-icon {
  font-size: 1.2rem;
}
.report-incident-empty-text {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 600;
  line-height: 1.45;
}

/* ==========================================================================
   PDF EXPORT MODE OVERRIDES (Pure White Background & Dark Crisp Typography)
   ========================================================================== */
.pdf-export-mode .report-stat-income-title {
  color: #0f172a !important;
}
.pdf-export-mode .report-stat-income-subtitle {
  color: #475569 !important;
}
.pdf-export-mode .report-stats-income-wrapper {
  border-top: 1px dashed #cbd5e1 !important;
}
.pdf-export-mode .report-stat-col-card {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.pdf-export-mode .report-stat-col-title {
  color: #0369a1 !important;
}
.pdf-export-mode .report-stat-table .stat-label {
  color: #475569 !important;
}
.pdf-export-mode .report-stat-table .stat-val {
  color: #0f172a !important;
}
.pdf-export-mode .report-stat-table .stat-total-row {
  border-top: 1px solid #cbd5e1 !important;
}
.pdf-export-mode .report-stat-table .stat-total-row .stat-label {
  color: #0f172a !important;
}
.pdf-export-mode .stat-val-revenue {
  color: #059669 !important;
}
.pdf-export-mode .stat-val-occ {
  color: #2563eb !important;
}
.pdf-export-mode .stat-val-revpar {
  color: #7c3aed !important;
}
.pdf-export-mode .report-stat-empty-notice {
  color: #64748b !important;
}

.pdf-export-mode .report-incident-table {
  background: #ffffff !important;
  border: 1.5px solid #64748b !important;
}
.pdf-export-mode .report-incident-table thead tr {
  background: #f1f5f9 !important;
  border-bottom: 2px solid #cbd5e1 !important;
}
.pdf-export-mode .report-incident-table th {
  color: #1e293b !important;
  border-right: 1px solid #cbd5e1 !important;
}
.pdf-export-mode .report-incident-table th:last-child {
  border-right: none !important;
}
.pdf-export-mode .report-incident-table tbody tr {
  border-bottom: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}
.pdf-export-mode .report-incident-table tbody tr:nth-child(even) {
  background: #f8fafc !important;
}
.pdf-export-mode .report-incident-table td {
  border-right: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}
.pdf-export-mode .report-incident-table td:last-child {
  border-right: none !important;
}
.pdf-export-mode .report-incident-table .inc-no {
  color: #64748b !important;
}
.pdf-export-mode .report-incident-table .inc-area {
  color: #0284c7 !important;
}
.pdf-export-mode .report-incident-table .inc-complaint {
  color: #dc2626 !important;
}
.pdf-export-mode .report-incident-table .inc-note {
  color: #0f172a !important;
}

.pdf-export-mode .report-incident-empty {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
.pdf-export-mode .report-incident-empty-text {
  color: #475569 !important;
}

/* ==========================================================================
   ANALYZE COMPLAINT & ROOM DEFICIENCIES REPORT STYLES
   ========================================================================== */
.analyze-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border-medium, #334155);
  border-radius: 8px;
  overflow: hidden;
}
.analyze-table th {
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-main, #f8fafc);
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid var(--border-medium, #334155);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.analyze-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-medium, #334155);
  color: var(--text-main, #cbd5e1);
  vertical-align: top;
}
.analyze-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.analyze-freq-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.78rem;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  white-space: nowrap;
}
.analyze-freq-badge.freq-defect {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}
.analyze-freq-badge.freq-general {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}
.analyze-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium, #334155);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
  margin: 2px 2px 2px 0;
  color: var(--text-main, #f1f5f9);
}

/* Screen classes for Analyze Report */
.analyze-meta-label {
  color: var(--text-muted, #94a3b8);
}
.analyze-meta-val {
  color: var(--text-main, #f8fafc);
}
.analyze-section-title {
  color: var(--text-main, #f8fafc);
}
.analyze-section-count {
  color: var(--text-muted, #94a3b8);
}
.analyze-entity-cell {
  color: var(--text-main, #f8fafc);
}
.analyze-type-cell,
.analyze-complaint-cell,
.analyze-defect-cell {
  color: var(--text-main, #cbd5e1);
}
.analyze-date-cell,
.analyze-note-cell {
  color: var(--text-muted, #94a3b8);
}
.analyze-mod-cell {
  color: var(--text-main, #cbd5e1);
}

/* PDF Export mode overrides for Analyze Report */
.pdf-export-mode#printable-analyze-complaint-report,
.pdf-export-mode #printable-analyze-complaint-report,
#printable-analyze-complaint-report.pdf-export-mode {
  background: #ffffff !important;
  color: #0f172a !important;
}
.pdf-export-mode .report-header-band {
  border-bottom: 2px solid #0f172a !important;
}
.pdf-export-mode .multi-report-title {
  color: #0284c7 !important;
}
.pdf-export-mode .multi-report-sub {
  color: #475569 !important;
}
.pdf-export-mode .multi-report-meta,
.pdf-export-mode .multi-report-meta * {
  color: #0f172a !important;
}
.pdf-export-mode .analyze-meta-label {
  color: #475569 !important;
  font-weight: 700 !important;
}
.pdf-export-mode .analyze-meta-val {
  color: #0f172a !important;
  font-weight: 800 !important;
}
.pdf-export-mode .analyze-section-wrap h3,
.pdf-export-mode .analyze-section-title,
.pdf-export-mode .analyze-section-title * {
  color: #0f172a !important;
}
.pdf-export-mode .analyze-section-count {
  color: #64748b !important;
}
.pdf-export-mode .analyze-table {
  background: #ffffff !important;
  border: 1.5px solid #64748b !important;
}
.pdf-export-mode .analyze-table th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-bottom: 2px solid #cbd5e1 !important;
  border-right: 1px solid #cbd5e1 !important;
}
.pdf-export-mode .analyze-table th:last-child {
  border-right: none !important;
}
.pdf-export-mode .analyze-table td {
  background: #ffffff !important;
  color: #1e293b !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
}
.pdf-export-mode .analyze-table td:last-child {
  border-right: none !important;
}
.pdf-export-mode .analyze-table td * {
  color: #1e293b !important;
}
.pdf-export-mode .analyze-table tbody tr:nth-child(even) td {
  background: #f8fafc !important;
}
.pdf-export-mode .analyze-entity-cell {
  color: #0f172a !important;
  font-weight: 800 !important;
}
.pdf-export-mode .analyze-type-cell,
.pdf-export-mode .analyze-complaint-cell,
.pdf-export-mode .analyze-defect-cell {
  color: #1e293b !important;
}
.pdf-export-mode .analyze-date-cell,
.pdf-export-mode .analyze-note-cell {
  color: #475569 !important;
}
.pdf-export-mode .analyze-mod-cell {
  color: #0f172a !important;
}
.pdf-export-mode .analyze-freq-badge {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #f87171 !important;
}
.pdf-export-mode .analyze-freq-badge.freq-defect {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border-color: #fcd34d !important;
}
.pdf-export-mode .analyze-freq-badge.freq-general {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #7dd3fc !important;
}
.pdf-export-mode .analyze-tag {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

/* Analyze KPI Grid & Uniform 4 Cards */
.analyze-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
  margin-bottom: 20px !important;
}
@media (max-width: 1024px) {
  .analyze-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 576px) {
  .analyze-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}
.analyze-kpi-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 125px !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

