/**
 * NABDH VITALS™ - Vehicle Health Assessment System
 * Theme: Medical & Automotive Vitals Diagnostic Blue
 * Typography: Times New Roman
 * Fully Responsive Architecture: Desktop, Tablet (iPad), and Mobile Smartphones
 */

:root {
  --primary: #1a6da8;
  --primary-hover: #14598b;
  --primary-dark: #0d2b45;
  --primary-light: #eef6fc;
  --accent-cyan: #00a3c4;
  --accent-teal: #0d9488;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg-page: #f0f4f9;
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-main: #102131;
  --text-muted: #566c82;
  --text-light: #8fa0b3;
  --border-color: #d8e3ed;
  --shadow-sm: 0 2px 8px rgba(13, 43, 69, 0.06);
  --shadow-md: 0 10px 30px rgba(13, 43, 69, 0.09);
  --shadow-lg: 0 20px 50px rgba(13, 43, 69, 0.14);
  --font-serif: "Times New Roman", Times, Georgia, serif;
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-serif);
  background-color: var(--bg-page);
  color: var(--text-main);
  direction: ltr;
  text-align: left;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Subtle Static Pattern for Dashboard */
.bg-vitals-pattern {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(26, 109, 168, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 163, 196, 0.05) 0%, transparent 40%),
    linear-gradient(rgba(220, 229, 238, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 229, 238, 0.35) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* Dynamic Canvas Background Layer (Login Only) */
#nabdhVitalsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(26, 109, 168, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 85% 75%, rgba(0, 163, 196, 0.07) 0%, transparent 45%),
              linear-gradient(180deg, #f3f7fb 0%, #e6eff7 100%);
}

/* -------------------------------------------------------------
   LOGIN PAGE STYLES (RESPONSIVE)
-------------------------------------------------------------- */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(26, 109, 168, 0.2);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 470px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  box-shadow: 0 24px 60px rgba(13, 43, 69, 0.18);
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1a6da8, #00a3c4, #10b981, #1a6da8);
  background-size: 300% 100%;
  animation: pulseGradient 5s infinite linear;
}

@keyframes pulseGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-header {
  text-align: center;
  padding: 36px 32px 22px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-bottom: 1px solid rgba(220, 230, 240, 0.8);
}

.brand-logo-container {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(26, 109, 168, 0.18);
  border: 2px solid #e0edf7;
  transition: all 0.3s ease;
}

.brand-logo-container img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.brand-title {
  font-size: 27px;
  font-weight: bold;
  color: var(--primary-dark);
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.brand-title span.tm {
  font-size: 13px;
  vertical-align: super;
  color: var(--primary);
  font-weight: normal;
}

.brand-tagline {
  font-size: 13.5px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.brand-auth-badge {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(26, 109, 168, 0.08);
  padding: 3px 12px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}

.login-body {
  padding: 28px 32px 32px;
}

.alert-message {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.alert-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 15px;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  font-family: var(--font-serif);
  font-size: 16px; /* 16px prevents iOS Safari auto-zooming on focus */
  color: var(--text-main);
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.25s ease;
  outline: none;
}

/* Retain large padding only when an input is preceded by an icon or in icon wrapper */
.input-icon-wrapper .form-control,
.input-with-icon .form-control,
.input-icon ~ .form-control {
  padding: 10px 42px 10px 42px;
}

/* Universal Table and Compact Form Control Resets to prevent clipping */
table .form-control,
.table-responsive .form-control,
.table-responsive-report .form-control,
.form-control-compact,
.form-control-sm,
.comp-table-num-input {
  padding: 4px 8px !important;
  height: 34px !important;
  font-size: 13px !important;
}

/* Dedicated rules for Cylinder Compression and Numeric Table Controls */
.comp-matrix-table input.comp-table-num-input,
.comp-matrix-table select,
.comp-table-num-input {
  padding: 4px 6px !important;
  height: 34px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 6px !important;
  text-align: center !important;
  direction: ltr !important;
  box-sizing: border-box !important;
}

.comp-matrix-table input.comp-table-num-input::-webkit-outer-spin-button,
.comp-matrix-table input.comp-table-num-input::-webkit-inner-spin-button,
.comp-table-num-input::-webkit-outer-spin-button,
.comp-table-num-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.comp-matrix-table input.comp-table-num-input,
.comp-table-num-input {
  -moz-appearance: textfield !important;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 109, 168, 0.12);
}

.toggle-password-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.toggle-password-btn:hover {
  color: var(--primary);
}

.form-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
  min-height: 32px;
}

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

.terminal-badge {
  color: var(--text-light);
  font-size: 12.5px;
  font-style: italic;
}

.btn-submit {
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, #1a6da8 0%, #14598b 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26, 109, 168, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #14598b 0%, #0d3a5f 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 109, 168, 0.45);
}

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

.demo-credentials-box {
  margin-top: 24px;
  background-color: var(--primary-light);
  border: 1px dashed #bcd5ec;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  font-size: 13.5px;
}

.demo-title {
  color: var(--primary-dark);
  font-weight: bold;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.demo-credentials-box code {
  background: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #c7dcee;
  color: var(--primary-dark);
  font-family: monospace;
  font-size: 13px;
  font-weight: bold;
}

.quick-fill-btn {
  display: inline-block;
  margin-top: 10px;
  background: #ffffff;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 7px 16px;
  min-height: 38px;
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-serif);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-fill-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.hostinger-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseAnimation 1.8s infinite;
}

@keyframes pulseAnimation {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* -------------------------------------------------------------
   DASHBOARD STYLES (RESPONSIVE)
-------------------------------------------------------------- */
.dashboard-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.navbar-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.navbar-titles h1 {
  font-size: 20px;
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.2;
}

.navbar-titles span {
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

/* User menu dropdown */
.navbar-user-menu {
  position: relative;
  flex-shrink: 0;
}

.navbar-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  background: var(--primary-light);
  border: 1px solid #cce2f5;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.navbar-user-btn:hover {
  background: #deeffc;
  border-color: #a0ccef;
}

.navbar-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.navbar-avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2,132,199,0.25);
}

.navbar-username {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
  min-width: 210px;
  z-index: 999;
  overflow: hidden;
}

.navbar-user-dropdown.open {
  display: block;
  animation: dropdownFadeIn 0.18s ease;
}

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

.nud-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  background: #f8fafc;
}

.nud-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
}

.nud-avatar-initials {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nud-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 2px 0;
}

.nud-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  text-align: left;
}

.nud-item:hover {
  background: #f0f7fd;
  color: #0284c7;
}

.nud-logout {
  color: #dc2626;
}

.nud-logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.user-badge-details {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: 30px;
  border: 1px solid #cce2f5;
  transition: all 0.22s ease;
}

.clickable-profile-badge {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.clickable-profile-badge:hover {
  background: #deeffc;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 109, 168, 0.18);
}

.clickable-profile-badge:active {
  transform: translateY(0);
}

.clickable-profile-badge:hover svg {
  transform: scale(1.15);
  transition: transform 0.2s ease;
}

.user-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.table-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.privilege-pill {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 2px;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  min-height: 38px;
  background: #fff;
  border: 1px solid #fee2e2;
  color: #dc2626;
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.dashboard-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  position: relative;
  z-index: 1;
}

.dashboard-header-banner {
  background: linear-gradient(135deg, #0d2b45 0%, #1a6da8 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 26px 30px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  gap: 18px;
}

.banner-content h2 {
  font-size: 24px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.banner-content p {
  font-size: 14px;
  opacity: 0.9;
}

.banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary-action {
  background: #ffffff;
  color: var(--primary-dark);
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 14.5px;
  padding: 10px 20px;
  min-height: 42px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary-action:hover {
  background: #f0f7fd;
  transform: translateY(-1px);
}

/* Stats Cards Grid (Responsive 4-Column Grid) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

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

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 18px 20px;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 16px 0 0 16px;
  background: transparent;
  transition: background 0.25s ease;
}

.stat-card.card-blue::before { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
.stat-card.card-green::before { background: linear-gradient(180deg, #10b981, #047857); }
.stat-card.card-yellow::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.stat-card.card-sky::before { background: linear-gradient(180deg, #0284c7, #0369a1); }

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
}

.stat-info span.stat-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.stat-info h3.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stat-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-normal { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-sky { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }

.stat-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stat-icon-blue { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #2563eb; border: 1px solid #bfdbfe; }
.stat-icon-green { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); color: #059669; border: 1px solid #a7f3d0; }
.stat-icon-yellow { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); color: #d97706; border: 1px solid #fde68a; }
.stat-icon-sky { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); color: #0284c7; border: 1px solid #bae6fd; }

/* Table Section Card */
.section-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 26px;
}

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

.section-header h3 {
  font-size: 17.5px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Touch-friendly Responsive Table Container */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll-hint {
  display: none;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-bottom: 1px solid #d8e6f3;
  text-align: right;
  font-weight: 600;
}

.nabdh-table {
  width: 100%;
  min-width: 720px; /* Ensures clean column display on mobile without squishing */
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.nabdh-table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: bold;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.nabdh-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  white-space: nowrap;
}

.nabdh-table tr:hover td {
  background-color: rgba(234, 243, 250, 0.4);
}

.health-meter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.health-meter-bar {
  flex: 1;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  min-width: 60px;
  max-width: 90px;
}

.health-meter-fill {
  height: 100%;
  border-radius: 4px;
}

.fill-excellent { background-color: #10b981; }
.fill-good { background-color: #3b82f6; }
.fill-fair { background-color: #f59e0b; }
.fill-critical { background-color: #ef4444; }

.status-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pill-ready { background: #ecfdf5; color: #047857; }
.pill-good { background: #eff6ff; color: #1d4ed8; }
.pill-attention { background: #fffbeb; color: #b45309; }
.pill-critical { background: #fef2f2; color: #b91c1c; }

.btn-table-action {
  padding: 6px 14px;
  min-height: 34px;
  border-radius: 6px;
  font-size: 13px;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-weight: bold;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-table-action:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.table-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.perm-pill {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #334155;
  display: inline-block;
  margin: 2px;
  white-space: nowrap;
}

.perm-pill-root {
  background: #dcfce7;
  color: #166534;
  font-weight: bold;
}

/* -------------------------------------------------------------
   MODAL DIALOG (RESPONSIVE)
-------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 43, 69, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-card {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header h3 {
  font-size: 18px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-modal:hover {
  color: var(--danger);
}

.modal-body {
  padding: 22px;
}

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

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

.permissions-container {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 8px;
}

.perm-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13.5px;
  cursor: pointer;
  min-height: 28px;
}

.perm-checkbox-item input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

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

/* -------------------------------------------------------------
   DEVICE BREAKPOINTS (PC, TABLET, MOBILE)
-------------------------------------------------------------- */

/* 1. TABLET LANDSCAPE & MEDIUM SCREENS (1024px and down) */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .dashboard-navbar {
    padding: 12px 20px;
  }
  .dashboard-container {
    padding: 20px 16px 50px;
  }
}

/* 2. TABLET PORTRAIT (768px and down) */
@media (max-width: 768px) {
  .dashboard-navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px;
  }
  .navbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .dashboard-header-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .banner-actions {
    width: 100%;
    flex-direction: column;
  }
  .banner-actions .btn-primary-action {
    width: 100%;
    justify-content: center;
  }
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .table-scroll-hint {
    display: block;
  }
}

/* 3. MOBILE SMARTPHONES (480px and down) */
@media (max-width: 480px) {
  .login-wrapper {
    padding: 16px 12px;
  }
  .login-card {
    border-radius: 16px;
  }
  .login-header {
    padding: 26px 18px 18px;
  }
  .brand-logo-container {
    width: 90px;
    height: 90px;
    margin-bottom: 12px;
  }
  .brand-logo-container img {
    width: 68px;
    height: 68px;
  }
  .brand-title {
    font-size: 23px;
  }
  .login-body {
    padding: 20px 18px 24px;
  }
  .form-extra-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Dashboard on Small Phone */
  .dashboard-navbar {
    padding: 10px 12px;
  }
  .navbar-brand img {
    width: 38px;
    height: 38px;
  }
  .navbar-titles h1 {
    font-size: 18px;
  }
  .navbar-titles span {
    display: none; /* Hide subtitle on very small screens for clean look */
  }
  .navbar-actions {
    gap: 6px;
  }
  .hostinger-badge span:last-child {
    display: none; /* Only show the pulsing green dot on small screens */
  }
  .hostinger-badge {
    padding: 6px 8px;
  }
  .user-badge-details {
    padding: 4px 10px;
    gap: 6px;
  }
  .user-name span {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr; /* Single column stats on phones */
    gap: 12px;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-info h3.stat-value {
    font-size: 24px;
  }
  .dashboard-header-banner {
    padding: 18px 16px;
  }
  .banner-content h2 {
    font-size: 20px;
  }
  .section-header {
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .section-header > div input {
    width: 100% !important;
  }
  .modal-card {
    border-radius: 14px;
    max-height: 94vh;
  }
  .modal-body {
    padding: 16px;
  }
}

/* -------------------------------------------------------------
   MULTI-STEP ASSESSMENT WIZARD & BRANCH MANAGEMENT STYLES
-------------------------------------------------------------- */
.wizard-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 24px;
  padding: 0 10px;
}

.wizard-stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.wizard-step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  background: #ffffff;
  padding: 0 8px;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  margin: 0 auto 6px;
  transition: all 0.25s ease;
}

.wizard-step-item.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(26, 109, 168, 0.2);
}

.wizard-step-item.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.step-label {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-muted);
}

.wizard-step-item.active .step-label {
  color: var(--primary-dark);
}

/* Live Search Suggestions Dropdown */
.search-results-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  margin-top: 6px;
  max-height: 180px;
  overflow-y: auto;
  position: relative;
  z-index: 20;
}

.search-result-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  transition: background 0.15s;
}

.search-result-item:hover {
  background: var(--primary-light);
}

.search-result-item:last-child {
  border-bottom: none;
}

/* Verified Entity Card (Customer / Vehicle) */
.verified-card {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  animation: fadeIn 0.25s ease;
}

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

.verified-card-header strong {
  color: #166534;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Vehicle Past Inspections History Log */
.vehicle-history-container {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}

.vehicle-history-title {
  font-size: 13.5px;
  font-weight: bold;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  transition: border-color 0.2s;
}

.history-item:hover {
  border-color: var(--primary);
}

/* 7 Inspection Types Selection Grid */
.inspection-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .inspection-types-grid {
    grid-template-columns: 1fr;
  }
}

.inspection-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.inspection-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.inspection-card.selected {
  border-color: var(--primary);
  background: #f4f9fd;
  box-shadow: 0 0 0 3px rgba(26, 109, 168, 0.25);
}

.inspection-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.inspection-card-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--primary-dark);
  line-height: 1.25;
}

.inspection-card-ar {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.inspection-price-badge {
  background: linear-gradient(135deg, #0d2b45 0%, #1a6da8 100%);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 13px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.inspection-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 6px;
}

/* Branch & Currency Selector Tag */
.branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  font-size: 12px;
  color: #1e40af;
  font-weight: bold;
}

/* ==========================================================================
   DIAGNOSTIC EXECUTION SUBSYSTEM & COMPOSITE SELECTOR STYLES
   ========================================================================== */
.module-tabs-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 14px 18px 0;
  background: #f1f5f9;
  border-bottom: 2px solid #cbd5e1;
  scrollbar-width: thin;
}

.module-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-bottom: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
}

.module-tab-btn:hover {
  color: var(--primary-dark);
  background: #ffffff;
  border-color: #94a3b8;
}

.module-tab-btn.active {
  color: #0f172a;
  background: #ffffff;
  border-color: #94a3b8;
  border-bottom: 3px solid var(--primary);
  margin-bottom: -2px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.module-tab-btn .tab-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.module-tab-btn.completed .tab-status-dot {
  background: #10b981;
}

.module-pane {
  display: none;
  padding: 20px;
  animation: fadeIn 0.25s ease-in-out;
}

.module-pane.active {
  display: block;
}

.diag-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.diag-card-title {
  font-size: 14.5px;
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.diag-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.diag-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.diag-radio-label:has(input:checked) {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary-dark);
}

.diag-radio-label.status-pass:has(input:checked) {
  border-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
}

.diag-radio-label.status-warning:has(input:checked) {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

.diag-radio-label.status-danger:has(input:checked) {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.composite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.composite-card {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.composite-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.composite-card.selected {
  border-color: var(--primary);
  background: #f0fdf4;
  box-shadow: 0 0 0 1.5px var(--primary);
}

.schematic-3d-box {
  background: #0f172a;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.dropzone-upload {
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone-upload:hover {
  border-color: var(--primary);
  background: #f0f7ff;
}

/* ==========================================================================
   COMPUTER REPORT & WARNING LIGHTS ASSESSMENT SYSTEM STYLES
   ========================================================================== */
.indicator-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.indicator-card.state-pass {
  border-color: #10b981;
  background: #f0fdf4;
}

.indicator-card.state-danger {
  border-color: #ef4444;
  background: #fef2f2;
}

.indicator-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.indicator-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: bold;
  color: var(--primary-dark);
}

.bulb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.3px;
}

.bulb-badge.pass {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.bulb-badge.danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

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

.light-radio-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12.5px;
  white-space: nowrap;
}

.light-radio-card:hover {
  border-color: var(--primary);
  background: #f8fafc;
}

.light-radio-card.opt-pass:has(input:checked) {
  border-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
}

.light-radio-card.opt-warn:has(input:checked) {
  border-color: #f59e0b;
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
}

.light-radio-card.opt-danger:has(input:checked) {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
  font-weight: 600;
}

.check-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.telemetry-category-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.telemetry-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 8px;
}

.telemetry-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
}

.telemetry-category-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.param-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.param-card.state-pass {
  border-color: #10b981;
  background: #f0fdf4;
}

.param-card.state-danger {
  border-color: #ef4444;
  background: #fef2f2;
}

.param-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: bold;
  gap: 8px;
}

.param-btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.param-btn-group .light-radio-card {
  flex: 1;
  justify-content: center;
  padding: 7px 10px;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  margin: 0;
}

/* ==========================================================================
   GLOBAL A4 PRINT STANDARDIZATION (NABDH VITALS™ Certified Diagnostic Standard)
   Strict ISO A4 portrait dimensions (210mm x 297mm) with balanced margins,
   clean table row breaks, exact color rendering, and elimination of cutoffs.
   ========================================================================== */
@page {
  size: A4 portrait;
  margin: 8mm 10mm 8mm 10mm;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-sizing: border-box !important;
  }

  html, body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: "Times New Roman", Times, serif !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  .no-print, .action-toolbar {
    display: none !important;
  }

  .report-page-card, .report-container, .chamber-container {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  .report-top-bar {
    padding: 8px 12px !important;
    background: #0d2b45 !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  .report-top-bar .report-logo-text {
    font-size: 16px !important;
  }

  .report-top-bar .report-meta-box {
    font-size: 9.5px !important;
    line-height: 1.3 !important;
  }

  .report-content {
    padding: 8px 10px !important;
  }

  .veh-summary-strip {
    padding: 6px 10px !important;
    margin-bottom: 8px !important;
    border-radius: 4px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 14px !important;
    white-space: normal !important;
    overflow: visible !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .veh-summary-item strong {
    font-size: 9.5px !important;
  }

  .veh-summary-item span {
    font-size: 11.5px !important;
  }

  .report-odo-box {
    padding: 6px 10px !important;
    margin-bottom: 8px !important;
    border-radius: 4px !important;
    white-space: normal !important;
    overflow: visible !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    border-width: 1px !important;
  }

  .report-odo-box strong, .report-odo-box span {
    font-size: 11px !important;
  }

  .score-hero-box {
    padding: 8px 12px !important;
    margin-bottom: 8px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    border-radius: 4px !important;
  }

  /* Section Boxes: Allow natural flow so no giant blank spaces occur */
  .section-box {
    margin-bottom: 8px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .section-box-header {
    padding: 5px 10px !important;
    background: #f1f5f9 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  .section-box-title {
    font-size: 12px !important;
  }

  .section-box-body {
    padding: 6px 10px !important;
  }

  .tech-group-subbar {
    padding: 4.5px 10px !important;
    font-size: 11px !important;
    background: #e2e8f0 !important;
    border-top: 1px solid #cbd5e1 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
    margin: 0 !important;
  }

  .table-responsive-report {
    overflow: visible !important;
    width: 100% !important;
  }

  .report-status-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  .report-status-table th {
    padding: 4px 8px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    background: #f1f5f9 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    white-space: normal !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    color: #1e293b !important;
  }

  .report-status-table thead tr[style*="#0d2b45"] th,
  .report-status-table thead tr[style*="rgb(13, 43, 69)"] th,
  .report-status-table tr[style*="#0d2b45"] th,
  .report-status-table tr[style*="rgb(13, 43, 69)"] th,
  .matrix-navy-header th,
  table.comp-matrix-table th {
    background: #0d2b45 !important;
    color: #ffffff !important;
  }

  .report-status-table td {
    padding: 3.5px 8px !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .report-status-table td.col-item {
    width: 34% !important;
    font-size: 10.5px !important;
    font-weight: bold !important;
  }

  .report-status-table td.col-finding {
    width: 44% !important;
    font-size: 10.5px !important;
  }

  
        /* Attached Diagnostic Exhibits & Telemetry Documents */
        .diagnostic-exhibits-container {
            margin-top: 24px;
        }

        .diagnostic-exhibit-card {
            margin-bottom: 20px;
            background: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            overflow: hidden;
            page-break-inside: avoid;
            break-inside: avoid;
        }

        .diagnostic-exhibit-header {
            background: #f8fafc;
            border-bottom: 1px solid #cbd5e1;
            padding: 10px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .diagnostic-exhibit-meta {
            background: #f1f5f9;
            border-bottom: 1px solid #e2e8f0;
            padding: 6px 16px;
            font-size: 11.5px;
            color: #475569;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }

        .diagnostic-exhibit-body {
            padding: 14px 16px;
            text-align: center;
            background: #ffffff;
        }

        .diagnostic-exhibit-img {
            max-width: 100%;
            width: auto;
            max-height: 820px;
            height: auto;
            object-fit: contain;
            border-radius: 6px;
            border: 1px solid #cbd5e1;
            display: block;
            margin: 0 auto;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }

.report-status-table td.col-eval {
    width: 22% !important;
    font-size: 10px !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

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

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

  .report-badge {
    padding: 2px 7px !important;
    font-size: 9.5px !important;
    border: 1px solid currentColor !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
  }

  .official-seal-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 0 !important;
    margin-top: 8px !important;
    display: flex !important;
    justify-content: flex-end !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .report-seal-wrapper svg {
    width: 90px !important;
    height: 90px !important;
  }

  img {
    max-height: 110px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  
            .diagnostic-exhibits-container {
                margin-top: 16px !important;
            }

            .diagnostic-exhibits-header-card {
                page-break-before: always !important;
                break-before: always !important;
                margin-bottom: 12px !important;
            }

            .diagnostic-exhibit-card {
                margin-bottom: 14px !important;
                border: 1px solid #cbd5e1 !important;
                border-radius: 4px !important;
                page-break-inside: avoid !important;
                break-inside: avoid !important;
                page-break-before: auto !important;
                box-shadow: none !important;
                background: #ffffff !important;
            }

            .diagnostic-exhibit-header {
                background: #f1f5f9 !important;
                padding: 6px 12px !important;
                border-bottom: 1px solid #cbd5e1 !important;
            }

            .diagnostic-exhibit-meta {
                background: #fafafa !important;
                padding: 5px 12px !important;
                font-size: 10.5px !important;
            }

            .diagnostic-exhibit-body {
                padding: 8px 10px !important;
            }

            .diagnostic-exhibit-img {
                max-width: 100% !important;
                max-height: 220mm !important;
                width: auto !important;
                height: auto !important;
                object-fit: contain !important;
                border: 1px solid #cbd5e1 !important;
                border-radius: 0 !important;
                box-shadow: none !important;
            }

            .pdf-print-placard {
                border: 1.5px solid #94a3b8 !important;
                background: #f8fafc !important;
                padding: 16px 20px !important;
            }

  .report-page-break {
    page-break-before: always !important;
    break-before: always !important;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
}


