/* CSS Stylesheet - SKF Lager Smeercalculator */
/* Modern, premium, clean design met fris blauw en taupe (#726350) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Kleurenpalet - Interflon Huisstijl (Rood & Wit) */
  --primary-blue: #E30613; /* Rood */
  --primary-blue-hover: #B3050F;
  --primary-blue-light: #FFF5F5;
  
  --accent-yellow: #E30613; /* Rood */
  --accent-yellow-hover: #B3050F;
  --accent-yellow-light: #FFF5F5;
  --accent-yellow-border: #FFD1D1;
  --accent-yellow-border-soft: rgba(227, 6, 19, 0.15);
  
  --bg-main: #F4F6F9;
  --bg-card: #FFFFFF;
  --text-dark: #0B132B;
  --text-medium: #485460;
  --text-light: #808E9B;
  
  --success: #2ECC71;
  --warning: #F1C40F;
  --danger: #E74C3C;
  
  /* Layout constanten */
  --sidebar-width: 280px;
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  
  /* Schaduwen & Transities */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-glow-blue: 0 0 15px rgba(0, 59, 115, 0.15);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, .brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

/* ==========================================================================
   PASSWORD LOCK SCREEN
   ========================================================================== */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 10% 20%, rgb(240, 244, 250) 0%, rgb(228, 233, 242) 90%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  padding: 20px;
}

.login-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}

.login-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 440px;
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg), 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(210, 201, 191, 0.3); /* Accent Taupe tint */
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.login-card.fade-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.video-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0b1118;
  z-index: 20000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
}

.login-header-logo-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.login-logo {
  width: 70px;
  height: 70px;
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px rgba(227, 6, 19, 0.3);
  margin: 0;
}

.login-logo svg {
  width: 36px;
  height: 36px;
}

.login-vetpomp-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  background: transparent;
}

.login-card h2 {
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.login-card p {
  color: var(--text-medium);
  font-size: 14px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 8px;
}

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

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

.form-control {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--text-light);
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-size: 15px;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.1);
}

.password-toggle {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  transition: color var(--transition-fast);
}

.password-toggle:hover {
  color: var(--text-medium);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--border-radius-md);
  border: none;
  background-color: var(--accent-yellow);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 6px -1px rgba(255, 194, 14, 0.2);
}

.btn:hover {
  background-color: var(--accent-yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(255, 194, 14, 0.3);
}

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

.login-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ==========================================================================
   APP CONTAINER LAYOUT
   ========================================================================== */
.app-container {
  display: flex;
  flex: 1;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: #E1E1E1; /* Light grey matching the Interflon logo image background */
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--accent-yellow-border-soft);
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition-normal);
}

.sidebar-header {
  padding: 0;
  border-bottom: none; /* Seamless continuation of background */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.sidebar-logo-img {
  width: 100%;
  height: auto;
  display: block;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  border-radius: var(--border-radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-glow-blue);
}

.sidebar-logo svg {
  width: 22px;
  height: 22px;
  color: white;
}

.brand-text {
  font-size: 18px;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--text-dark), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-menu {
  list-style: none;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.menu-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-dark); /* Enhanced contrast on light grey sidebar background */
  background: none;
  border: none;
  border-radius: var(--border-radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600; /* Slightly bolder for better readability */
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.menu-item-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text-medium); /* Enhanced contrast on light grey sidebar background */
  transition: color var(--transition-fast);
}

.menu-item-btn:hover {
  color: var(--primary-blue);
  background-color: var(--primary-blue-light);
}

.menu-item-btn:hover svg {
  color: var(--primary-blue);
}

.menu-item-btn.active {
  color: white;
  background-color: var(--primary-blue);
  box-shadow: 0 4px 6px -1px rgba(227, 6, 19, 0.2);
}

.menu-item-btn.active svg {
  color: white;
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--accent-yellow-border-soft);
}

.logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #FFF5F5;
  color: #EF4444;
  border: 1px solid #FEE2E2;
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.logout-btn:hover {
  background-color: #EF4444;
  color: white;
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Top bar / Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--accent-yellow-border-soft);
  padding-bottom: 20px;
}

.header-title h1 {
  font-size: 28px;
  color: var(--text-dark);
}

.header-title p {
  color: var(--text-medium);
  font-size: 14px;
  margin-top: 4px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-card);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--accent-yellow-border-soft);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.user-badge:hover {
  background-color: var(--primary-blue-light);
  border-color: var(--primary-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.user-avatar {
  width: 32px;
  height: 32px;
  background-color: var(--accent-yellow-light);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-medium);
}

/* ==========================================================================
   DASHBOARD PAGES
   ========================================================================== */
.page-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page-section.active {
  display: block;
}

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

/* Card Styling */
.card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(210, 201, 191, 0.3);
  padding: 30px;
  margin-bottom: 30px;
}

.card-title {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title svg {
  width: 22px;
  height: 22px;
  color: var(--primary-blue);
}

/* Zoeksectie */
.search-container {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

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

.search-input {
  width: 100%;
  padding: 16px 24px 16px 56px;
  font-size: 16px;
  border-radius: 50px;
  border: 2px solid var(--accent-yellow-border);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-glow-blue), 0 4px 12px rgba(227, 6, 19, 0.08);
}

.search-icon-inside {
  position: absolute;
  left: 20px;
  color: var(--text-light);
  pointer-events: none;
}

.search-icon-inside svg {
  width: 24px;
  height: 24px;
}

/* Autocomplete Suggesties */
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg), 0 10px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(210, 201, 191, 0.4);
  margin-top: 8px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.autocomplete-suggestion {
  padding: 12px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: background-color var(--transition-fast);
}

.autocomplete-suggestion:last-child {
  border-bottom: none;
}

.autocomplete-suggestion:hover {
  background-color: var(--primary-blue-light);
}

.suggestion-name {
  font-weight: 600;
  color: var(--text-dark);
}

.suggestion-meta {
  font-size: 12px;
  color: var(--text-medium);
  background-color: var(--accent-yellow-light);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   RESULTATEN WEERGAVE (LAGER DETAILS)
   ========================================================================== */
.results-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}

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

.details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #E2E8F0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 14px;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.detail-badge {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

/* Dynamic Bearing Visual (SVG) */
.bearing-visual-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-main);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  border: 1px dashed var(--accent-yellow-border);
  position: relative;
}

.bearing-visual-container h4 {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bearing-svg-wrapper {
  width: 100%;
  max-width: 280px;
  height: 280px;
}

.bearing-svg-wrapper svg {
  width: 100%;
  height: 100%;
}

.bearing-visual-note {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 15px;
  text-align: center;
}

/* Alert/Note styling */
.alert-note {
  background-color: var(--accent-yellow-light);
  border-left: 4px solid var(--accent-yellow);
  padding: 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-medium);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-note svg {
  width: 20px;
  height: 20px;
  color: var(--primary-blue);
  flex-shrink: 0;
}

/* ==========================================================================
   CALCULATOR PREVIEW
   ========================================================================== */
.calc-header-banner {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%);
  color: white;
  padding: 24px;
  border-radius: var(--border-radius-lg);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-header-info h3 {
  font-size: 20px;
}

.calc-header-info p {
  opacity: 0.8;
  font-size: 13px;
  margin-top: 4px;
}

.calc-badge-bearing {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(4px);
}

.calculator-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

.calc-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-label-description {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

.preview-overlay-card {
  position: relative;
  overflow: hidden;
}

.preview-blur-content {
  filter: blur(2px);
  pointer-events: none;
  opacity: 0.6;
}

.preview-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(248, 250, 252, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  z-index: 10;
}

.preview-lock-overlay svg {
  width: 48px;
  height: 48px;
  color: var(--accent-yellow);
  margin-bottom: 15px;
}

.preview-lock-overlay h4 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.preview-lock-overlay p {
  font-size: 13px;
  color: var(--text-medium);
  max-width: 320px;
}

/* ==========================================================================
   UTILITIES & ANIME
   ========================================================================== */
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
}

/* ==========================================================================
   MODAL & EXPORT STYLING
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 19, 43, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity var(--transition-normal);
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 480px;
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(210, 201, 191, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-medium);
  margin-top: -10px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.btn-secondary {
  background-color: var(--bg-main);
  color: var(--text-medium);
  border: 1px solid rgba(128, 142, 155, 0.3);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: #E2E8F0;
  color: var(--text-dark);
  box-shadow: none;
}

.btn-export {
  background-color: #FFFFFF;
  color: var(--primary-blue);
  border: 1px solid #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-export svg {
  width: 16px;
  height: 16px;
  color: var(--primary-blue);
  transition: transform var(--transition-fast);
}

.btn-export:hover {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-export:hover svg {
  transform: translateY(1px);
}

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

/* ==========================================================================
   OPBRENGSTMODEL (TCO CALCULATOR) STYLES
   ========================================================================== */
.om-savings-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.om-summary-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: var(--border-radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(210, 201, 191, 0.2);
}

.om-summary-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.om-summary-icon svg {
  width: 26px;
  height: 26px;
}

.om-summary-icon.text-success {
  background-color: #DCFCE7;
  color: #166534;
}

.om-summary-icon.text-blue {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
}

.om-summary-icon.text-warning {
  background-color: #FEF9C3;
  color: #854D0E;
}

.om-summary-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.om-summary-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-medium);
}

.om-summary-value {
  font-size: 26px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin: 0;
}

.om-summary-value.text-success {
  color: #166534;
}

.om-summary-value.text-blue {
  color: var(--primary-blue);
}

.om-summary-value.text-warning {
  color: #854D0E;
}

.om-metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.om-metadata-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .om-metadata-sections-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Spreadsheet Table Styling */
.om-spreadsheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dark);
  margin-top: 10px;
}

.om-spreadsheet-table th, 
.om-spreadsheet-table td {
  border: 1px solid #E2E8F0;
  padding: 8px 12px;
  vertical-align: middle;
}

.om-spreadsheet-table th.column-group-header {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #FFFFFF;
  text-align: center;
  padding: 10px;
}

.om-spreadsheet-table th.current-group {
  background-color: #475569; /* Dark Slate */
}

.om-spreadsheet-table th.interflon-group {
  background-color: var(--primary-blue); /* Corporate Red */
}

.om-spreadsheet-table th.general-group {
  background-color: #334155; /* Slightly darker Slate */
}

.om-spreadsheet-table .section-label-row td {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-dark);
  background-color: #F8FAFC;
  padding: 6px 12px;
  letter-spacing: 0.5px;
}

.om-spreadsheet-table .section-label-row .current-group {
  border-bottom: 2px solid #94A3B8;
}

.om-spreadsheet-table .section-label-row .interflon-group {
  border-bottom: 2px solid var(--accent-yellow-border);
}

.om-spreadsheet-table .section-label-row .general-group {
  border-bottom: 2px solid #64748B;
}

.om-spreadsheet-table .cell-label {
  font-weight: 500;
  color: var(--text-medium);
  background-color: #FFFFFF;
  width: 25%;
  min-width: 140px;
}

.om-spreadsheet-table .cell-input-wrapper {
  padding: 0;
  width: 15%;
  min-width: 150px;
  background-color: #F3F4F6; /* Grey input cells by default */
}

.om-cell-input-div {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  background-color: transparent; /* Transparent so parent td background is used */
  color: var(--text-dark);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  display: flex;
  align-items: center;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
}

.om-cell-input {
  width: 100%;
  height: 100%;
  border: none;
  padding: 8px 12px;
  background-color: #F3F4F6; /* "Vul de grijze cellen in" */
  color: var(--text-dark);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.om-cell-input.auto-filled {
  background-color: #DBEAFE; /* Soft blue for auto-filled but editable */
}

.om-cell-input[readonly] {
  cursor: not-allowed;
}

.om-cell-input[readonly]:focus {
  background-color: #DBEAFE;
  box-shadow: none;
}

.om-cell-input:focus {
  outline: none;
  background-color: #FFFFFF;
  box-shadow: inset 0 0 0 2px var(--primary-blue);
}

.om-cell-input.numeric {
  text-align: right;
}

.om-spreadsheet-table .cell-value {
  font-weight: 700;
  text-align: right;
  background-color: #FFFFFF;
  color: var(--text-dark);
  width: 15%;
  min-width: 110px;
}

.om-spreadsheet-table .empty-cell {
  background-color: #F8FAFC;
}

.om-spreadsheet-table .calculated-row {
  background-color: #FFFFFF;
}

.om-spreadsheet-table .calculated-row .cell-label {
  background-color: #FFFFFF;
}

.om-spreadsheet-table .highlighted-tco-row {
  background-color: #FFF5F5; /* Subtle Red highlight for total costs */
}

.om-spreadsheet-table .highlighted-tco-row .cell-value {
  background-color: #FFF5F5;
}

.om-spreadsheet-table .highlighted-tco-row .text-success {
  background-color: #F0FDF4; /* Green highlight for savings values */
}

/* Make table responsive on small viewports */
@media (max-width: 992px) {
  .om-spreadsheet-table {
    display: block;
    overflow-x: auto;
  }
}

/* PDF options modal design hover effects */
.pdf-option-label:hover {
  border-color: var(--primary-red) !important;
  background-color: #fef2f2;
}



