/* ==========================================================================
   ProSAR ecotech Workplace Detox - Standard Executive SaaS Styling
   High Readability Typography (+1pt base font scale), Sober Palette
   ========================================================================== */

:root {
  --prosar-green: #00873D;
  --prosar-green-hover: #006E31;
  --prosar-green-light: #EAF7EE;
  --prosar-green-border: #A3E2B8;

  --prosar-orange: #EA7611;
  --prosar-orange-hover: #D2640A;
  --prosar-orange-light: #FEF3E7;
  --prosar-orange-border: #FCD5AD;

  --prosar-charcoal: #0F172A;
  --bg-main: #F8FAFC;
  --card-bg: #FFFFFF;
  --card-border: #E2E8F0;
  --text-main: #0F172A;
  --text-muted: #475569;

  --high-risk-bg: #FEF2F2;
  --high-risk-text: #DC2626;
  --high-risk-border: #FECACA;

  --medium-risk-bg: #FEF3E7;
  --medium-risk-text: #D97706;
  --medium-risk-border: #FCD5AD;

  --low-risk-bg: #EAF7EE;
  --low-risk-text: #00873D;
  --low-risk-border: #A3E2B8;
}

body.dark {
  --bg-main: #090E14;
  --card-bg: #111A22;
  --card-border: #1E2D3D;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;

  --prosar-green-light: rgba(0, 135, 61, 0.2);
  --prosar-orange-light: rgba(234, 118, 17, 0.2);

  --high-risk-bg: rgba(220, 38, 38, 0.15);
  --high-risk-text: #FCA5A5;
  --high-risk-border: rgba(239, 68, 68, 0.35);

  --medium-risk-bg: rgba(234, 118, 17, 0.15);
  --medium-risk-text: #FDBA74;
  --medium-risk-border: rgba(249, 115, 22, 0.35);

  --low-risk-bg: rgba(0, 135, 61, 0.15);
  --low-risk-text: #86EFAC;
  --low-risk-border: rgba(34, 197, 94, 0.35);
}

/* Global Typography: Standard Clean Font Stack, Scaled up +1pt */
html {
  font-size: 16px; /* Scaled up standard base */
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9375rem; /* ~15px base (+1pt) */
  line-height: 1.5;
  letter-spacing: -0.01em;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px;
}
body.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

/* ==========================================================================
   Cards & Surfaces
   ========================================================================== */
.pro-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
  border-radius: 1rem;
  transition: all 0.2s ease;
  position: relative;
}

.pro-card:hover {
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 135, 61, 0.25);
}

body.dark .pro-card:hover {
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 135, 61, 0.35);
}

/* ==========================================================================
   Clean Enterprise Data Tables (+1pt Font Size)
   ========================================================================== */
.data-table-container {
  overflow-x: auto;
  border-radius: 0.875rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Custom Ergonomic Horizontal Scrollbar */
.data-table-container::-webkit-scrollbar {
  height: 8px;
}
.data-table-container::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 8px;
}
.data-table-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #94A3B8, #64748B);
  border-radius: 8px;
  border: 2px solid #F1F5F9;
}
.data-table-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--prosar-green), #006E31);
}
body.dark .data-table-container::-webkit-scrollbar-track {
  background: #111A22;
}
body.dark .data-table-container::-webkit-scrollbar-thumb {
  background: #334155;
  border-color: #111A22;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem; /* ~14px (+1pt from 13px) */
  white-space: nowrap;
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 15;
}

.data-table th {
  background-color: #F8FAFC;
  color: #334155;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.75rem; /* ~12px (+1pt from 11px) */
  padding: 0.875rem 1rem;
  border-bottom: 2px solid var(--card-border);
  white-space: nowrap;
  text-align: left;
}

body.dark .data-table th {
  background-color: #141F2B;
  color: #94A3B8;
  border-bottom-color: #1E2D3D;
}

/* Frozen / Sticky Left Columns Architecture */
.data-table th.col-sticky-1,
.data-table td.col-sticky-1 {
  position: sticky !important;
  left: 0;
  z-index: 20 !important;
  background: #FFFFFF;
  text-align: center;
  width: 80px;
  min-width: 80px;
}

.data-table th.col-sticky-2,
.data-table td.col-sticky-2,
.data-table th.col-sticky-2-end,
.data-table td.col-sticky-2-end {
  position: sticky !important;
  left: 80px;
  z-index: 20 !important;
  background: #FFFFFF;
  width: 110px;
  min-width: 110px;
}

.data-table th.col-sticky-2-end,
.data-table td.col-sticky-2-end {
  box-shadow: 4px 0 10px -2px rgba(15, 23, 42, 0.08);
}

.data-table th.col-sticky-3,
.data-table td.col-sticky-3 {
  position: sticky !important;
  left: 190px;
  z-index: 20 !important;
  background: #FFFFFF;
  box-shadow: 4px 0 10px -2px rgba(15, 23, 42, 0.08);
}

.data-table thead th.col-sticky-1,
.data-table thead th.col-sticky-2,
.data-table thead th.col-sticky-2-end,
.data-table thead th.col-sticky-3 {
  background-color: #F1F5F9 !important;
  z-index: 30 !important;
}

body.dark .data-table th.col-sticky-1,
body.dark .data-table td.col-sticky-1,
body.dark .data-table th.col-sticky-2,
body.dark .data-table td.col-sticky-2,
body.dark .data-table th.col-sticky-2-end,
body.dark .data-table td.col-sticky-2-end,
body.dark .data-table th.col-sticky-3,
body.dark .data-table td.col-sticky-3 {
  background-color: #111A22 !important;
  box-shadow: 4px 0 10px -2px rgba(0, 0, 0, 0.35);
}

body.dark .data-table thead th.col-sticky-1,
body.dark .data-table thead th.col-sticky-2,
body.dark .data-table thead th.col-sticky-2-end,
body.dark .data-table thead th.col-sticky-3 {
  background-color: #141F2B !important;
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-main);
  white-space: nowrap;
  font-size: 0.875rem;
  transition: background-color 0.12s ease;
}

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

.data-table tbody tr:hover td {
  background-color: #F0FDF4 !important;
}

.data-table tbody tr:hover td.col-sticky-1 {
  border-left: 3px solid var(--prosar-green);
}

body.dark .data-table tbody tr:hover td {
  background-color: rgba(0, 135, 61, 0.12) !important;
}

/* ==========================================================================
   Connected Jump Bar & Unified Table Frame Architecture
   ========================================================================== */

/* Unified Container that seamlessly binds Jump Bar and Data Table */
.table-connected-frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 0.875rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Connected Jump Bar spanning 100% of the table */
.table-jump-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #F8FAFC;
  padding: 0.4rem 0.875rem;
  border-radius: 0.875rem 0.875rem 0 0;
  border: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  box-sizing: border-box;
}

/* When inside .table-connected-frame, eliminate redundant outer borders */
.table-connected-frame .table-jump-bar {
  border: none;
  border-bottom: 1px solid var(--card-border);
  border-radius: 0;
}

/* Also seamlessly connect when .table-jump-bar is directly followed by .data-table-container */
.table-jump-bar + .data-table-container {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-top: none !important;
  margin-top: 0 !important;
}

.table-connected-frame .data-table-container {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  width: 100%;
}

body.dark .table-jump-bar {
  background: #141F2B;
  border-color: #1E2D3D;
}

body.dark .table-connected-frame {
  border-color: #1E2D3D;
  background: #111A22;
}

/* Left side pills group inside Jump Bar */
.table-jump-pills {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  min-width: 0;
  padding: 0.125rem 0;
}
.table-jump-pills::-webkit-scrollbar {
  display: none;
}

.table-jump-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0 0.375rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.table-jump-btn {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  background: #FFFFFF;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.table-jump-btn:hover {
  background: var(--prosar-green);
  color: #FFFFFF;
  border-color: var(--prosar-green);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 135, 61, 0.2);
}

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

body.dark .table-jump-btn {
  background: #1E2D3D;
  color: #CBD5E1;
  border-color: #2D3F53;
}

body.dark .table-jump-btn:hover {
  background: var(--prosar-green);
  color: #FFFFFF;
  border-color: var(--prosar-green);
}

/* Right-side metadata badge / counter in Jump Bar */
.table-jump-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Column Jump Flash Highlight Animation */
@keyframes colJumpPulse {
  0% {
    background-color: rgba(0, 135, 61, 0.3) !important;
    box-shadow: inset 0 0 0 2px #00873D;
  }
  70% {
    background-color: rgba(0, 135, 61, 0.12) !important;
  }
  100% {
    background-color: inherit;
    box-shadow: none;
  }
}

.col-jump-highlight {
  animation: colJumpPulse 1.2s ease-out !important;
}

/* Mini Inline Progress Bar for Tables */
.table-mini-bar {
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: #E2E8F0;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
body.dark .table-mini-bar {
  background: #1E2D3D;
}
.table-mini-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00873D, #10B981);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Badges & Glowing Dots (+1pt Font Size)
   ========================================================================== */
.badge-high {
  background-color: var(--high-risk-bg);
  color: var(--high-risk-text);
  border: 1px solid var(--high-risk-border);
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.775rem; /* ~12.5px (+1pt) */
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-medium {
  background-color: var(--medium-risk-bg);
  color: var(--medium-risk-text);
  border: 1px solid var(--medium-risk-border);
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.775rem; /* ~12.5px (+1pt) */
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-low {
  background-color: var(--low-risk-bg);
  color: var(--low-risk-text);
  border: 1px solid var(--low-risk-border);
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.775rem; /* ~12.5px (+1pt) */
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-id {
  background-color: #F1F5F9;
  color: #0F172A;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 0.775rem; /* ~12.5px (+1pt) */
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #CBD5E1;
  letter-spacing: -0.01em;
}

body.dark .badge-id {
  background-color: #162432;
  color: #E2E8F0;
  border-color: #243B50;
}

/* Status Dots */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  display: inline-block;
}
.status-dot-green {
  background-color: #00873D;
  box-shadow: 0 0 6px rgba(0, 135, 61, 0.5);
}
.status-dot-orange {
  background-color: #EA7611;
  box-shadow: 0 0 6px rgba(234, 118, 17, 0.5);
}
.status-dot-red {
  background-color: #DC2626;
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.5);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* ==========================================================================
   Chart Container & Canvas Polishing
   ========================================================================== */
.chart-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}

/* 3D Glass Cylinder Tube & Stepped Infographic Components */
.chart3d-tube-col {
  cursor: pointer;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.28s ease, opacity 0.25s ease;
}

/* Zoom On Cursor Touch / Hover */
.chart3d-tube-col:hover {
  transform: scale(1.08) translateY(-6px);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.32)) brightness(1.12);
}

.chart3d-tube-col:hover rect {
  stroke-width: 2px;
  stroke: #00873D;
}

.chart3d-tube-col:hover text {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

body.dark .chart3d-tube-col text[fill="#1E293B"] {
  fill: #F8FAFC;
}

body.dark .chart3d-tube-col text[fill="#64748B"] {
  fill: #94A3B8;
}

/* ==========================================================================
   Modal Dialogs & Toasts
   ========================================================================== */
.modal-overlay {
  background-color: rgba(9, 14, 20, 0.7);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  animation: slideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(16px) scale(0.99); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  color: white;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  animation: toastIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Navigation Dropdown Menu */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 290px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  transition: background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.nav-dropdown-item:hover {
  background-color: #EAF7EE;
  color: #00873D;
}

.nav-dropdown-item.active {
  background-color: #00873D;
  color: white;
}

/* ==========================================================================
   Smart Dynamic Animations & Micro-Interactions
   ========================================================================== */

/* Progress Bar Container Track */
.smart-progress-track {
  width: 100%;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}
body.dark .smart-progress-track {
  background: #1E2D3D;
}

/* Base Smart Animated Progress Bar */
.smart-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Luminous Shimmer Light Sweep across progress bar */
.smart-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: barShimmer 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes barShimmer {
  0% { transform: translateX(0); }
  100% { transform: translateX(250%); }
}

/* Danger / Over-Limit Pulsing Glow */
.progress-exceeded {
  background: linear-gradient(90deg, #DC2626, #EF4444) !important;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
  animation: dangerPulse 1.8s infinite ease-in-out;
}

@keyframes dangerPulse {
  0%, 100% {
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.5);
  }
  50% {
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.85);
  }
}

/* Warning / Near-Limit Breathing Glow */
.progress-near-limit {
  background: linear-gradient(90deg, #D97706, #F59E0B) !important;
  box-shadow: 0 0 8px rgba(217, 119, 6, 0.5);
  animation: warningPulse 2s infinite ease-in-out;
}

@keyframes warningPulse {
  0%, 100% {
    box-shadow: 0 0 4px rgba(217, 119, 6, 0.4);
  }
  50% {
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.75);
  }
}

/* Normal Healthy Progress */
.progress-normal {
  background: linear-gradient(90deg, #00873D, #10B981) !important;
}

/* ==========================================================================
   Statutory Breach & Law Violation Periodic Alert Animations
   15s continuous cycle: 14s soft neutral baseline + 1s professional red pulse
   ========================================================================== */
@keyframes softBreachGlow {
  0%, 93.33%, 100% {
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35), 0 2px 6px -1px rgba(15, 23, 42, 0.05);
    border-color: #CBD5E1;
  }
  46.67% {
    box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.35), 0 6px 16px rgba(15, 23, 42, 0.08);
    border-color: #94A3B8;
  }
  95.0% {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35), 0 4px 14px rgba(220, 38, 38, 0.15);
    border-color: #F87171;
  }
  96.67% {
    box-shadow: 0 0 0 2.5px rgba(220, 38, 38, 0.45), 0 6px 20px 2px rgba(220, 38, 38, 0.22);
    border-color: #DC2626;
  }
  98.33% {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35), 0 4px 14px rgba(220, 38, 38, 0.15);
    border-color: #F87171;
  }
}

@keyframes softBreachCardPulse {
  0%, 93.33%, 100% {
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.25), 0 2px 6px -2px rgba(15, 23, 42, 0.05);
    border-color: #E2E8F0;
  }
  46.67% {
    box-shadow: 0 0 0 1.5px rgba(100, 116, 139, 0.3), 0 5px 14px rgba(15, 23, 42, 0.08);
    border-color: #CBD5E1;
  }
  95.0% {
    box-shadow: 0 0 0 1.5px rgba(239, 68, 68, 0.3), 0 4px 14px rgba(220, 38, 38, 0.12);
    border-color: #F87171;
  }
  96.67% {
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.4), 0 6px 20px rgba(220, 38, 38, 0.2);
    border-color: #DC2626;
  }
  98.33% {
    box-shadow: 0 0 0 1.5px rgba(239, 68, 68, 0.3), 0 4px 14px rgba(220, 38, 38, 0.12);
    border-color: #F87171;
  }
}

@keyframes softBreachBadgePulse {
  0%, 93.33%, 100% {
    box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.2);
    border-color: #CBD5E1;
    background-color: #F1F5F9;
    color: #1E293B;
    transform: scale(1);
  }
  46.67% {
    box-shadow: 0 0 6px rgba(100, 116, 139, 0.2);
    border-color: #94A3B8;
    transform: scale(1.015);
  }
  95.0% {
    border-color: #F87171;
    color: #991B1B;
    transform: scale(1.025);
  }
  96.67% {
    box-shadow: 0 0 12px 2px rgba(220, 38, 38, 0.35);
    border-color: #DC2626;
    background-color: #FEF2F2;
    color: #991B1B;
    transform: scale(1.045);
  }
  98.33% {
    border-color: #F87171;
    color: #991B1B;
    transform: scale(1.025);
  }
}

@keyframes softBreachBannerPulse {
  0%, 93.33%, 100% {
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3), 0 3px 12px -2px rgba(15, 23, 42, 0.06);
    border-color: #CBD5E1;
  }
  46.67% {
    box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.35), 0 6px 18px rgba(15, 23, 42, 0.09);
    border-color: #94A3B8;
  }
  95.0% {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35), 0 5px 18px rgba(220, 38, 38, 0.15);
    border-color: #F87171;
  }
  96.67% {
    box-shadow: 0 0 0 2.5px rgba(220, 38, 38, 0.45), 0 8px 26px 3px rgba(220, 38, 38, 0.22);
    border-color: #DC2626;
  }
  98.33% {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35), 0 5px 18px rgba(220, 38, 38, 0.15);
    border-color: #F87171;
  }
}

@keyframes softBeaconBreach {
  0%, 93.33%, 100% {
    background-color: #475569;
    box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.4);
    transform: scale(1);
    opacity: 0.85;
  }
  46.67% {
    background-color: #64748B;
    box-shadow: 0 0 0 4px rgba(100, 116, 139, 0);
    opacity: 1;
  }
  95.0% {
    background-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3);
    transform: scale(1.2);
    opacity: 1;
  }
  96.67% {
    background-color: #DC2626;
    box-shadow: 0 0 0 7px rgba(220, 38, 38, 0.5);
    transform: scale(1.35);
    opacity: 1;
  }
  98.33% {
    background-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3);
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes softBreachRowPulse {
  0%, 93.33%, 100% {
    border-left-color: #475569;
    background-color: rgba(248, 250, 252, 0.85);
  }
  46.67% {
    border-left-color: #64748B;
    background-color: rgba(241, 245, 249, 0.95);
  }
  95.0% {
    border-left-color: #EF4444;
    background-color: rgba(254, 242, 242, 0.5);
  }
  96.67% {
    border-left-color: #DC2626;
    background-color: rgba(254, 242, 242, 0.75);
  }
  98.33% {
    border-left-color: #EF4444;
    background-color: rgba(254, 242, 242, 0.5);
  }
}

.breach-soft-highlight {
  animation: softBreachGlow 15s infinite ease-in-out !important;
  border-color: #94A3B8 !important;
}

.breach-card-soft-pulse {
  animation: softBreachCardPulse 15s infinite ease-in-out !important;
}

.breach-badge-soft-pulse {
  animation: softBreachBadgePulse 15s infinite ease-in-out !important;
}

.breach-banner-soft-pulse {
  animation: softBreachBannerPulse 15s infinite ease-in-out !important;
}

.breach-row-soft-pulse {
  animation: softBreachRowPulse 15s infinite ease-in-out !important;
}

.breach-beacon-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #475569;
  animation: softBeaconBreach 15s infinite cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

body.dark .breach-soft-highlight {
  background-color: rgba(30, 41, 59, 0.4) !important;
  border-color: #475569 !important;
}

body.dark .breach-banner-soft-pulse {
  background: #111A22 !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
}


/* Watch Progress */
.progress-watch {
  background: linear-gradient(90deg, #CA8A04, #EAB308) !important;
}

/* Staggered Card Entrance Animations */
.animate-fade-in-up {
  animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Subtle Card Hover Floating Interaction */
.hover-lift {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08);
}
body.dark .hover-lift:hover {
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Live Detox Score - Corporate USP Attraction Component & Animations
   ========================================================================== */

.detox-score-hero-card {
  background: linear-gradient(145deg, #0A1128 0%, #101F3C 55%, #070D1F 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 40px -15px rgba(0, 135, 61, 0.25), 
              0 0 0 1px rgba(255, 255, 255, 0.05),
              inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
}

/* Ambient subtle background glow */
.detox-score-hero-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(0, 135, 61, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: ambientAura 6s infinite ease-in-out;
}

@keyframes ambientAura {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateX(-50%) scale(1.18); opacity: 1; }
}

/* Circular SVG Gauge */
.detox-gauge-ring {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.detox-gauge-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.detox-gauge-fill {
  stroke: #10B981;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.6s ease;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

.detox-gauge-fill.tier-excellent {
  stroke: #10B981;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.75));
}

.detox-gauge-fill.tier-good {
  stroke: #34D399;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.65));
}

.detox-gauge-fill.tier-moderate {
  stroke: #F59E0B;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.65));
}

.detox-gauge-fill.tier-high-risk {
  stroke: #EF4444;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.75));
}

/* Score Number Glow */
.detox-score-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -0.04em;
  color: #34D399;
  text-shadow: 0 0 24px rgba(16, 185, 129, 0.45);
}

/* Live Beacon Indicator */
.live-beacon-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 9999px;
  box-shadow: 0 0 10px #10B981;
  animation: beaconPulse 1.6s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes beaconPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 6px #10B981;
  }
  50% {
    opacity: 0.45;
    transform: scale(1.35);
    box-shadow: 0 0 16px #34D399;
  }
}

/* Live Detox Score USP Label */
.live-detox-usp-title {
  color: #34D399;
  letter-spacing: 0.12em;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

/* Top Bar Glowing Detox Score Badge */
.topbar-detox-badge {
  background: linear-gradient(135deg, #0A1128 0%, #101F3C 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 10px rgba(0, 135, 61, 0.15);
}

/* ==========================================================================
   Standardized Professional Grouped Navigation Dropdowns
   ========================================================================== */
.pro-nav-group {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 1 1 0%;
  min-width: 0;
}

.pro-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  max-width: min(360px, 95vw);
  max-height: 85vh;
  overflow-y: auto;
  background-color: #FFFFFF;
  border-radius: 0 0 0.75rem 0.75rem;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  border-top: 3px solid var(--prosar-green);
  border-left: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  padding: 0.375rem 0;
  z-index: 100;
  animation: proNavFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-nav-dropdown.dropdown-right {
  left: auto;
  right: 0;
}

.pro-nav-group:hover .pro-nav-dropdown,
.pro-nav-group:focus-within .pro-nav-dropdown,
.pro-nav-group.open .pro-nav-dropdown {
  display: block;
}

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

.pro-dd-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: normal;
  line-height: 1.35;
}

.pro-dd-item:hover {
  background-color: #F8FAFC;
  color: var(--prosar-green);
  padding-left: 1.15rem;
}

.pro-dd-item.active {
  background-color: var(--prosar-green-light);
  color: var(--prosar-green);
  font-weight: 700;
}

.pro-dd-divider {
  height: 1px;
  background-color: #E2E8F0;
  margin: 0.35rem 0;
}

.pro-dd-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem 0.25rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  background-color: #F8FAFC;
  border-top: 1px solid #EDF2F7;
  border-bottom: 1px solid #EDF2F7;
  margin-top: 0.3rem;
  margin-bottom: 0.15rem;
  pointer-events: none;
  user-select: none;
}

.pro-dd-header:first-child {
  border-top: none;
  margin-top: 0;
}

/* Sub-Menu Group Accordion Styles inside pro-nav-dropdown */
.pro-submenu-group {
  margin: 0.15rem 0.35rem;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease;
}

.pro-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  user-select: none;
}

.pro-submenu-toggle:hover {
  background-color: #F1F5F9;
}

.pro-submenu-group.is-open > .pro-submenu-toggle {
  background-color: #F8FAFC;
}

.pro-submenu-group.has-active-child > .pro-submenu-toggle {
  background-color: rgba(0, 135, 61, 0.08);
}

.pro-submenu-group.has-active-child > .pro-submenu-toggle span {
  color: var(--prosar-green);
  font-weight: 800;
}

.pro-submenu-count {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background-color: #E2E8F0;
  color: #475569;
}

.pro-submenu-group.has-active-child .pro-submenu-count {
  background-color: rgba(0, 135, 61, 0.15);
  color: var(--prosar-green);
}

.pro-submenu-arrow {
  display: inline-block;
  font-size: 0.58rem;
  color: #94A3B8;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0.2rem;
}

.pro-submenu-group.is-open .pro-submenu-arrow {
  transform: rotate(90deg);
  color: var(--prosar-green);
}

.pro-submenu-items {
  padding: 0.2rem 0 0.35rem 0.4rem;
  border-left: 2px solid #CBD5E1;
  margin-left: 1.15rem;
  margin-top: 0.2rem;
  margin-bottom: 0.35rem;
  animation: proNavFadeIn 0.15s ease;
}

.pro-submenu-items .pro-dd-item {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 0.375rem;
}

.pro-submenu-items .pro-dd-item:hover {
  padding-left: 0.95rem;
}

body.dark .pro-nav-dropdown {
  background-color: #111A22;
  border-color: #1E2D3D;
  border-top-color: var(--prosar-green);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.5);
}

body.dark .pro-dd-item {
  color: #CBD5E1;
}

body.dark .pro-dd-item:hover {
  background-color: #1A2634;
  color: #86EFAC;
}

body.dark .pro-dd-item.active {
  background-color: rgba(0, 135, 61, 0.25);
  color: #86EFAC;
}

body.dark .pro-dd-divider {
  background-color: #1E2D3D;
}

body.dark .pro-dd-header {
  background-color: #16222F;
  border-color: #1E2D3D;
  color: #94A3B8;
}

body.dark .pro-submenu-toggle:hover {
  background-color: #1A2634;
}

body.dark .pro-submenu-group.is-open > .pro-submenu-toggle {
  background-color: #141F2B;
}

body.dark .pro-submenu-group.has-active-child > .pro-submenu-toggle {
  background-color: rgba(0, 135, 61, 0.2);
}

body.dark .pro-submenu-group.has-active-child > .pro-submenu-toggle span {
  color: #86EFAC;
}

body.dark .pro-submenu-count {
  background-color: #1E2D3D;
  color: #94A3B8;
}

body.dark .pro-submenu-group.has-active-child .pro-submenu-count {
  background-color: rgba(0, 135, 61, 0.3);
  color: #86EFAC;
}

body.dark .pro-submenu-items {
  border-left-color: #1E2D3D;
}

/* ── COMPREHENSIVE DARK MODE OVERRIDES ── */
body.dark {
  background-color: #090E14 !important;
  color: #F8FAFC !important;
}

body.dark header {
  background-color: rgba(9, 14, 20, 0.96) !important;
  border-color: #1E2D3D !important;
}

body.dark .bg-white {
  background-color: #111A22 !important;
  border-color: #1E2D3D !important;
}

body.dark .bg-slate-50 {
  background-color: #141F2B !important;
  border-color: #1E2D3D !important;
}

body.dark .bg-slate-100 {
  background-color: #192535 !important;
  border-color: #223447 !important;
}

body.dark .border-slate-200,
body.dark .border-slate-100 {
  border-color: #1E2D3D !important;
}

body.dark .text-slate-900,
body.dark .text-slate-800 {
  color: #F8FAFC !important;
}

body.dark .text-slate-700,
body.dark .text-slate-600 {
  color: #CBD5E1 !important;
}

body.dark .text-slate-500 {
  color: #94A3B8 !important;
}

body.dark .pro-card {
  background-color: #111A22 !important;
  border-color: #1E2D3D !important;
  color: #F8FAFC !important;
}

body.dark .modal-content {
  background-color: #111A22 !important;
  border-color: #1E2D3D !important;
  color: #F8FAFC !important;
}

body.dark .data-table {
  color: #F8FAFC !important;
}

body.dark .data-table th {
  background-color: #141F2B !important;
  color: #94A3B8 !important;
  border-color: #1E2D3D !important;
}

body.dark .data-table td {
  border-color: #1E2D3D !important;
  color: #E2E8F0 !important;
}

body.dark .data-table tr:hover td {
  background-color: #192535 !important;
}

/* ── PRESENTATION DECK & ANIMATED DASHBOARD ── */
#deck-progress-bar {
  height: 3px;
  background: linear-gradient(90deg, #00873D 0%, #10B981 50%, #EA7611 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.deck-viewport {
  position: relative;
  min-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 70px;
}

.report-slide {
  display: none;
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.report-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInUp {
  0% { opacity: 0; transform: translateY(18px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Continuous Scroll Mode Override */
.mode-continuous .deck-viewport {
  display: block;
  min-height: auto;
  padding-bottom: 30px;
}

.mode-continuous .report-slide {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  margin-bottom: 24px;
}

.mode-continuous .deck-dock,
.mode-continuous .side-nav-btn {
  display: none !important;
}

/* Floating Bottom Navigation Dock */
.deck-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 135, 61, 0.2);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #F8FAFC;
}

/* Floating Side Navigation Chevrons */
.side-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.side-nav-btn:hover {
  background: #00873D;
  border-color: #10B981;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 18px rgba(0, 135, 61, 0.6);
}

.side-nav-prev { left: 16px; }
.side-nav-next { right: 16px; }

/* Slide Pills */
.slide-pill {
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.2s;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #64748B;
  cursor: pointer;
}

body.dark .slide-pill {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #94A3B8;
}

.slide-pill:hover {
  border-color: #00873D;
  color: #00873D;
  background: #EAF7EE;
}

body.dark .slide-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.slide-pill.active {
  background: #00873D;
  color: #FFFFFF;
  border-color: #006E31;
  box-shadow: 0 2px 8px rgba(0, 135, 61, 0.35);
}

body.dark .slide-pill.active {
  background: #00873D;
  color: #FFFFFF;
  border-color: #10B981;
  box-shadow: 0 0 14px rgba(0, 135, 61, 0.5);
}

/* ── FULL WINDOW REPORT PRESENTATION MODE ── */
body.report-fullscreen-active {
  overflow: hidden !important;
}

body.report-fullscreen-active header,
body.report-fullscreen-active footer,
body.report-fullscreen-active #top-kpi-bar,
body.report-fullscreen-active .dashboard-subtabs-bar,
body.report-fullscreen-active .dashboard-breadcrumbs-bar,
body.report-fullscreen-active #prosar-chatbot-container {
  display: none !important;
}

body.report-fullscreen-active main {
  max-width: 100vw !important;
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.report-fullscreen-active #deck-progress-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1200 !important;
}

body.report-fullscreen-active .deck-viewport {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1000 !important;
  margin: 0 !important;
  padding: 24px 68px 90px 68px !important;
  background: var(--bg-main, #F8FAFC) !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

body.dark.report-fullscreen-active .deck-viewport {
  background: #090E14 !important;
}

body.report-fullscreen-active .side-nav-btn {
  z-index: 1100 !important;
  width: 52px !important;
  height: 52px !important;
  font-size: 22px !important;
  background: rgba(0, 135, 61, 0.9) !important;
  border-color: #10B981 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 24px rgba(0, 135, 61, 0.6) !important;
}

body.report-fullscreen-active .side-nav-btn:hover {
  background: #006E31 !important;
  transform: translateY(-50%) scale(1.15) !important;
}

body.report-fullscreen-active .deck-dock {
  z-index: 1100 !important;
  bottom: 24px !important;
}

/* Floating Exit Full Window Button */
.full-window-exit-btn {
  display: none;
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 1150;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F8FAFC;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
}

.full-window-exit-btn:hover {
  background: #EF4444;
  border-color: #F87171;
  transform: scale(1.05);
}

body.report-fullscreen-active .full-window-exit-btn {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   ENTERPRISE CONTENT & ANTI-SCREENSHOT PROTECTION SUITE
   ========================================================================== */

/* Prevent text selection across compliance data to block scraping */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow selection in input fields and textareas for data entry */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* ==========================================================================
   STATUTORY COMPLIANCE DOCUMENTS & PERFECT PAGE-ALIGNED TABLES ARCHITECTURE
   ========================================================================== */

.statutory-document {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  background-color: #FFFFFF !important;
  color: #1E293B !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

#report-modal .modal-content {
  max-width: 1100px !important;
  width: 96vw !important;
  padding: 1.5rem !important;
  box-sizing: border-box !important;
}

/* Statutory Document Table Container: Perfectly contained within document page boundaries */
.statutory-table-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  margin: 1rem 0 !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 0.75rem !important;
  background: #FFFFFF !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Statutory Document Table: Always 100% width, fixed layout, perfect column alignment */
.statutory-table {
  width: 100% !important;
  min-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  font-size: 0.75rem !important; /* 12px */
  line-height: 1.35 !important;
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  box-sizing: border-box !important;
}

.statutory-table th,
.statutory-table td {
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  padding: 0.55rem 0.625rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #E2E8F0 !important;
  border-right: 1px solid #F1F5F9 !important;
  box-sizing: border-box !important;
}

.statutory-table th:last-child,
.statutory-table td:last-child {
  border-right: none !important;
}

.statutory-table span,
.statutory-table td span {
  display: inline-block !important;
  vertical-align: middle !important;
}

.statutory-table [class*="rounded"],
.statutory-table [class*="badge"],
.statutory-table td.text-center span,
.statutory-table .font-mono {
  white-space: nowrap !important;
}

.statutory-table thead th {
  background-color: #F8FAFC !important;
  color: #1E293B !important;
  font-weight: 700 !important;
  font-size: 0.6875rem !important; /* 11px */
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  border-bottom: 2px solid #94A3B8 !important;
  position: static !important;
  word-break: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  padding: 0.625rem 0.5rem !important;
}

.statutory-table tbody tr:nth-child(even) {
  background-color: #F8FAFC !important;
}

.statutory-table tbody tr:hover {
  background-color: #F1F5F9 !important;
}

.statutory-table tfoot td {
  background-color: #F1F5F9 !important;
  font-weight: 700 !important;
  border-top: 2px solid #94A3B8 !important;
}

.statutory-table .font-mono {
  font-family: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace !important;
}

/* Statutory Document Printing and PDF Export */
@page {
  size: A4 portrait;
  margin: 8mm 8mm 8mm 8mm;
}

@page landscape-page {
  size: A4 landscape;
  margin: 6mm 8mm 6mm 8mm;
}

.print-landscape,
body.print-mode-landscape {
  page: landscape-page;
}

@media print {
  /* Suppress browser print header/footer margin spill and normalize viewport */
  html, body {
    background: #FFFFFF !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* 100% Isolation: When statutory report modal is active, completely hide all other body children */
  body.modal-open-report > *:not(#report-modal),
  body:has(#report-modal:not(.hidden)) > *:not(#report-modal) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -99999px !important;
    left: -99999px !important;
  }

  /* Explicitly hide non-printable app components */
  header,
  nav,
  aside,
  footer,
  #app-header,
  #client-name-banner,
  #sidebar,
  .prosar-watermark-bg,
  #screen-capture-shield,
  #toast-container,
  #crud-modal,
  #bulk-upload-modal,
  .no-print,
  .print\:hidden,
  button {
    display: none !important;
  }

  /* When report modal is closed/hidden, ensure it NEVER prints */
  #report-modal.hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
  }

  /* Reset report modal container to standard document flow */
  #report-modal {
    position: static !important;
    display: block !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #report-modal .modal-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: #FFFFFF !important;
  }

  #report-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .statutory-document {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
    overflow: visible !important;
  }

  /* Compact section spacing for print to prevent extra spillover pages */
  .statutory-document .space-y-6 > * + * {
    margin-top: 8pt !important;
  }
  .statutory-document .space-y-5 > * + * {
    margin-top: 6pt !important;
  }
  .statutory-document .space-y-4 > * + * {
    margin-top: 5pt !important;
  }
  .statutory-document .mb-6,
  .statutory-document .mb-5 {
    margin-bottom: 6pt !important;
  }
  .statutory-document .mb-4,
  .statutory-document .mb-3 {
    margin-bottom: 4pt !important;
  }
  .statutory-document .mt-6,
  .statutory-document .mt-5 {
    margin-top: 6pt !important;
  }
  .statutory-document .mt-4,
  .statutory-document .mt-3 {
    margin-top: 4pt !important;
  }
  .statutory-document .p-6,
  .statutory-document .p-5 {
    padding: 4pt 6pt !important;
  }
  .statutory-document .p-4 {
    padding: 3pt 4pt !important;
  }

  /* Suppress trailing margins on bottom elements to prevent accidental trailing blank pages */
  .statutory-document > *:last-child,
  .statutory-document .statutory-signatures:last-child,
  .statutory-document .statutory-sign-off:last-child,
  .statutory-document .statutory-signature-block:last-child,
  #report-modal-content > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  /* Dynamic Table Scaling for Print */
  .statutory-table-container {
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    border: 0.5pt solid #CBD5E1 !important;
    border-radius: 2pt !important;
    margin: 4pt 0 !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  .statutory-table {
    width: 100% !important;
    min-width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
    font-size: 7.5pt !important;
    line-height: 1.35 !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  .print-landscape .statutory-table,
  body.print-mode-landscape .statutory-table {
    font-size: 6.8pt !important;
    line-height: 1.35 !important;
  }

  .statutory-table col {
    width: auto !important;
  }

  .statutory-table th,
  .statutory-table td {
    padding: 3.5pt 4.5pt !important;
    font-size: 7pt !important;
    line-height: 1.35 !important;
    border-bottom: 0.5pt solid #CBD5E1 !important;
    border-right: 0.5pt solid #F1F5F9 !important;
    word-break: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
  }

  .print-landscape .statutory-table th,
  .print-landscape .statutory-table td,
  body.print-mode-landscape .statutory-table th,
  body.print-mode-landscape .statutory-table td {
    padding: 3pt 4pt !important;
    font-size: 6.5pt !important;
    line-height: 1.35 !important;
  }

  /* Badges, pills, and spans inside statutory tables: Prevent multi-line vertical collision */
  .statutory-table span,
  .statutory-table td span,
  .statutory-table th span {
    display: inline-block !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
  }

  /* Disallow breaking inside badges, dates, quarters, IDs and codes */
  .statutory-table [class*="rounded"],
  .statutory-table [class*="badge"],
  .statutory-table td.text-center span,
  .statutory-table td .font-mono,
  .statutory-nowrap {
    white-space: nowrap !important;
  }

  .statutory-table thead th {
    font-size: 6.5pt !important;
    background-color: #F8FAFC !important;
    color: #0F172A !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    border-bottom: 1.2pt solid #475569 !important;
    padding: 3pt 3.5pt !important;
  }

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

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

  .statutory-table tfoot {
    display: table-footer-group !important;
  }

  /* Form 8 15cm x 15cm Container Label Sticker Specification */
  .statutory-form8-label {
    width: 150mm !important;
    max-width: 150mm !important;
    min-height: 150mm !important;
    margin: 8mm auto !important;
    padding: 6mm !important;
    border: 5pt solid #DC2626 !important;
    border-radius: 6pt !important;
    background-color: #FFDE00 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    box-shadow: none !important;
  }

  /* Non-breaking layout cards, signatures, and headers */
  .statutory-header,
  .statutory-signature-block,
  .statutory-sign-off,
  .statutory-signatures,
  .statutory-recon-card,
  .statutory-summary-card {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
}

/* Subtle Anti-Theft Watermark across background */
.prosar-watermark-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: repeating-linear-gradient(
    -45deg,
    #00873D,
    #00873D 2px,
    transparent 2px,
    transparent 140px
  );
}

/* Privacy Mask when Window Loses Focus */
body.screen-protected #view-content {
  filter: blur(16px) grayscale(50%);
  transition: filter 0.15s ease;
  pointer-events: none;
}

/* Persistent Header Live Detox Score USP Badge */
#nav-live-detox-score {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
#nav-live-detox-score:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(0, 135, 61, 0.2);
}

/* Digital Reading-Oriented Telemetry Metric Styles */
.digital-metric-lcd {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.digital-segment-bar {
  display: flex;
  gap: 3px;
  align-items: center;
}
.digital-segment-cell {
  height: 10px;
  flex: 1;
  border-radius: 2px;
  background: #E2E8F0;
  transition: background-color 0.3s ease;
}
.digital-segment-cell.active-green {
  background: #00873D;
  box-shadow: 0 0 4px rgba(0, 135, 61, 0.4);
}
.digital-segment-cell.active-amber {
  background: #EA7611;
  box-shadow: 0 0 4px rgba(234, 118, 17, 0.4);
}
.digital-segment-cell.active-red {
  background: #EF4444;
  box-shadow: 0 0 4px rgba(239, 68, 68, 0.4);
}

/* Department Selector in Departmental Safety & Waste */
.dept-selector-control {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1E293B;
  background-color: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 0.75rem;
  padding: 0.45rem 1rem;
  cursor: pointer;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}
/* Round Flash Circle Glow & 1-Minute Refresh Animation */
@keyframes circleFlashPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 135, 61, 0.7), 0 0 10px rgba(0, 135, 61, 0.4);
    transform: scale(1);
  }
  40% {
    box-shadow: 0 0 0 12px rgba(0, 135, 61, 0), 0 0 24px rgba(0, 135, 61, 0.6);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 135, 61, 0), 0 0 8px rgba(0, 135, 61, 0.2);
    transform: scale(1);
  }
}

.circle-flashing,
.circle-flash-glow {
  animation: circleFlashPulse 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#nav-score-circle {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#nav-score-circle:hover {
  transform: scale(1.06);
  border-color: #EA7611;
  box-shadow: 0 4px 14px -2px rgba(234, 118, 17, 0.35);
}

/* ==========================================================================
   Dashboard Accordion Sections & Animations
   ========================================================================== */

/* Accordion expand/collapse */
.dash-accordion-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              padding 0.4s ease;
}
.dash-accordion-content.open {
  max-height: 5000px;
  opacity: 1;
}

/* Section card */
.dash-section-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.dash-section-card.expanded {
  border-color: var(--prosar-green);
  box-shadow: 0 0 0 3px rgba(0, 135, 61, 0.08), 0 8px 25px -5px rgba(0,0,0,0.06);
}

/* Chevron rotation */
.dash-chevron-icon {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
}
.dash-chevron-icon.rotated {
  transform: rotate(180deg);
}

/* Professional Corporate Score Circle: Clean, Crisp & High-Definition */
#dash-round-flash-circle {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
#dash-round-flash-circle:hover {
  border-color: var(--prosar-green-hover);
  box-shadow: 0 10px 25px -5px rgba(0, 135, 61, 0.15), 0 8px 10px -6px rgba(0, 135, 61, 0.1);
}

/* Professional Number Refresh Animation (Count-up / Crisp Refresh Transition) */
@keyframes scoreNumberRefresh {
  0% {
    opacity: 0.25;
    transform: translateY(-5px) scale(0.97);
  }
  50% {
    opacity: 0.85;
    transform: translateY(1px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.score-number-refresh {
  display: inline-block;
  animation: scoreNumberRefresh 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hero gradient mesh background */
.dash-hero-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 135, 61, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(14, 165, 233, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(234, 118, 17, 0.02) 0%, transparent 50%),
    #ffffff;
}

/* Pillar card micro-interactions */
.dash-pillar-card {
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.dash-pillar-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(0, 135, 61, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.dash-pillar-card:hover::after { opacity: 1; }
.dash-pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(0, 135, 61, 0.12);
  border-color: var(--prosar-green);
}

/* Section header hover */
.dash-section-header {
  transition: background-color 0.2s ease;
}
.dash-section-header:hover {
  background-color: rgba(248, 250, 252, 0.6);
}

/* Section icon scale on hover */
.dash-section-header:hover .dash-section-icon {
  transform: scale(1.1);
}
.dash-section-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card hover lift */
.dash-card-hover {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.dash-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0,0,0,0.08), 0 4px 10px -4px rgba(0,0,0,0.04);
}

/* High-Accuracy Digital Telemetry & Stream Quota Styles */
@keyframes cockpitCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cockpitGlowPulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(234, 118, 17, 0.20), 0 8px 20px -4px rgba(15, 23, 42, 0.08);
  }
  50% {
    box-shadow: 0 0 0 4.5px rgba(234, 118, 17, 0.35), 0 12px 28px -4px rgba(234, 118, 17, 0.16);
  }
}

.digital-hud-card {
  background: #ffffff;
  border: 1.5px solid #E2E8F0;
  border-radius: 1.25rem;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  animation: cockpitCardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.digital-hud-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.10), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  border-color: #CBD5E1;
}
.digital-hud-card.hud-exceeded {
  border-color: #FCA5A5;
  background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 100%);
  box-shadow: 0 4px 14px -2px rgba(239, 68, 68, 0.12);
}
.digital-hud-card.hud-selected {
  border-color: #EA7611 !important;
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.18) 0%, #FFFFFF 100%);
  animation: cockpitCardFadeIn 0.35s both, cockpitGlowPulse 2.8s ease-in-out infinite;
}

.cockpit-gauge-arc {
  transition: stroke-dashoffset 0.9s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
}

.digital-lcd-display {
  font-family: 'JetBrains Mono', monospace;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  background: #0F172A;
  color: #10B981;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  border-radius: 0.5rem;
  padding: 0.25rem 0.6rem;
  letter-spacing: -0.02em;
}
.digital-lcd-display.lcd-red {
  color: #EF4444;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
.digital-lcd-display.lcd-amber {
  color: #F59E0B;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.digital-sparkline-bar {
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), fill 0.2s ease;
  rx: 2px;
}
.digital-sparkline-bar:hover {
  filter: brightness(1.15);
  cursor: pointer;
}

.digital-segmented-progress {
  display: flex;
  height: 8px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #F1F5F9;
}
.digital-seg-dispatched {
  background: #00873D;
  transition: width 0.4s ease;
}
.digital-seg-stored {
  background: #EA7611;
  transition: width 0.4s ease;
}
.digital-seg-excess {
  background: #EF4444;
  transition: width 0.4s ease;
}
.digital-seg-headroom {
  background: #E2E8F0;
  transition: width 0.4s ease;
}

/* Scrollbar hiding utility for modern horizontal navigation */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   Animated Company Name & Ring Closing Live Detox Score Styles
   ========================================================================== */
@keyframes companyNameGlowFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.company-name-animated {
  background: linear-gradient(135deg, #0f172a 0%, #00873D 35%, #10b981 65%, #0f172a 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: companyNameGlowFlow 5s ease-in-out infinite;
  display: inline-block;
  letter-spacing: -0.015em;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.company-name-animated:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 8px rgba(0, 135, 61, 0.25));
}

/* Professional Ring Closing Effect Styles for Live Detox Score */
#dash-circle-gauge-bar,
#nav-score-gauge-bar {
  transition: stroke-dashoffset 0.05s linear;
  will-change: stroke-dashoffset;
}

/* ==========================================================================
   DETOX MY PLANT™ - MULTI-TIER BARCODE & ASSET LABEL STYLES
   Micro (25x12mm), Medium (50x25mm), Bulk HazMat Drum (100x50mm)
/* ==========================================================================
   Detox My Plant™ - Compact Barcode & QR Label Styles (Single 45mm x 25mm)
   Strictly Brand Name ("Detox My Plant™") + Barcode/QR + Code Text
   ========================================================================== */

/* Single Compact Label Frame (45mm x 25mm / 170px x 95px Preview) */
.dmp-compact-label {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  color: #000000;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  position: relative;
  border: 1px solid #1e293b;
  border-radius: 4px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  page-break-inside: avoid;
  user-select: none;
}

/* Header: Detox My Plant™ Branding */
.dmp-compact-header {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 2px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dmp-compact-brand {
  font-size: 9.5px;
  font-weight: 900;
  color: #00873D;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

/* Pure QR Code Sticker Body */
.dmp-compact-body.qr-only {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 0;
  padding: 2px 0 1px 0;
}

.dmp-compact-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dmp-compact-qr svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.dmp-compact-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

/* Legacy compatibility classes */
.dmp-label {
  background: #FFFFFF;
  color: #000000;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #1e293b;
  page-break-inside: avoid;
}
.dmp-label-micro, .dmp-label-medium, .dmp-label-drum {
  width: 170px;
  height: 95px;
}

/* ==========================================================================
   PRINT MEDIA RULES FOR STANDARD A4 STICKER SHEETS
   Guarantees zero black pages, zero blank spillover pages, and perfect alignment
   ========================================================================== */
#dmp-printable-area {
  display: none;
}

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

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Force hide all modals, overlays, and backdrops so they NEVER print black */
  #dmp-barcode-modal-container,
  .modal-overlay,
  .modal-backdrop,
  #screen-capture-shield,
  #report-modal,
  #crud-modal,
  #bulk-upload-modal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -99999px !important;
    top: -99999px !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }

  /* When printing stickers directly, hide standard app layout */
  body.dmp-printing-active > *:not(#dmp-printable-area) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  body.dmp-printing-active #dmp-printable-area {
    display: block !important;
    visibility: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
  }

  /* Exactly 1 A4 Page per container (safe height 268mm to prevent 1px spillover blank pages) */
  .dmp-a4-page {
    width: 190mm !important;
    height: 268mm !important;
    max-height: 268mm !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: grid !important;
    gap: 2mm !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    overflow: hidden !important;
    background: #FFFFFF !important;
  }

  /* Prevent trailing blank page */
  .dmp-a4-page:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  .dmp-print-item {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    width: 100% !important;
    height: 100% !important;
  }

  .dmp-print-empty-slot {
    visibility: hidden !important;
    border: none !important;
  }

  .dmp-print-item .dmp-compact-label {
    width: 100% !important;
    height: 100% !important;
    border: 0.5pt dashed #94a3b8 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 1.5mm 2mm !important;
    background: #FFFFFF !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .dmp-print-item .dmp-compact-brand {
    font-size: 8pt !important;
    font-weight: 900 !important;
    color: #00873D !important;
    white-space: nowrap !important;
  }

  .dmp-print-item .dmp-compact-id {
    font-size: 7.5pt !important;
    font-weight: 800 !important;
    color: #000000 !important;
  }
}



