/* Theme: Light (default) and Dark */
:root {
  --status-bg: #f8f9fa;
  --status-surface: #ffffff;
  --status-surface-alt: #f8f9fa;
  --status-text: #212529;
  --status-text-muted: #6c757d;
  --status-border: #e9ecef;
  --status-input-bg: #ffffff;
  --status-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --status-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --status-accent: rgb(73, 172, 144);
  --status-accent-hover: rgb(58, 138, 115);
}

body.theme-dark {
  --status-bg: #1a1d21;
  --status-surface: #25282c;
  --status-surface-alt: #2d3139;
  --status-text: #e4e6eb;
  --status-text-muted: #b0b3b8;
  --status-border: #3e4248;
  --status-input-bg: #2d3139;
  --status-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.4);
  --status-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  --status-accent: rgb(73, 172, 144);
  --status-accent-hover: rgb(98, 192, 164);
}

/* Skip link for keyboard/screen reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 99999;
  padding: 0.75rem 1rem;
  background: #49ac90;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.25rem;
}
.skip-link:focus {
  left: 0.5rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Visible focus for keyboard users (do not remove outlines) */
*:focus-visible {
  outline: 2px solid #49ac90;
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid #49ac90;
  outline-offset: 2px;
}

body {
  background-color: var(--status-bg);
  color: var(--status-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* CTA Button Color Override */
.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary {
  background-color: rgb(73, 172, 144) !important;
  border-color: rgb(73, 172, 144) !important;
}

.btn-primary:hover:not(:disabled),
button.btn-primary:hover:not(:disabled),
input[type="submit"].btn-primary:hover:not(:disabled) {
  background-color: rgb(58, 138, 115) !important;
  border-color: rgb(58, 138, 115) !important;
}

.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 100vh;
}

/* Two-column login layout */
.login-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.login-left {
  flex: 1;
  position: relative;
  background-color: var(--status-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

/* Dunkelgrün analog zur Primärfarbe (49AC90) für die rechte Login-Seite */
.login-right {
  flex: 1;
  background: linear-gradient(135deg, #1f352f 0%, #1a2d28 50%, #152520 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.login-right::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(73, 172, 144, 0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.login-right::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(73, 172, 144, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.login-container {
  max-width: 400px;
  width: 100%;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo img,
.login-logo.covomo-logo-inline svg {
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.login-heading {
  text-align: center;
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.login-description {
  font-size: 0.9375rem;
  color: #6c757d;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.code-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
}

.login-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--status-border, #dee2e6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.login-footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Mobile: Force line breaks between footer lines */
@media (max-width: 767.98px) {
  .login-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .login-footer-line {
    width: 100%;
    justify-content: center;
  }
  
  .login-footer-line-1 {
    order: 1;
  }
  
  .login-footer-line-2 {
    order: 2;
  }
}

.login-footer-link {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.2s;
}

.login-footer-link:hover {
  color: rgb(73, 172, 144);
  text-decoration: underline;
}

.login-footer-separator {
  color: #dee2e6;
  margin: 0 0.25rem;
}

.login-footer-locale {
  display: inline-flex;
  align-items: center;
}

.login-footer-select {
  font-size: inherit;
  color: #6c757d;
  background: transparent;
  border: none;
  padding: 0.2rem 1.5rem 0.2rem 0.4rem;
  cursor: pointer;
  appearance: auto;
}

.login-footer-select:hover {
  color: rgb(73, 172, 144);
}

.login-form-group {
  margin-bottom: 1.5rem;
}

.login-form-group label {
  font-weight: 500;
  color: #212529;
  margin-bottom: 0.5rem;
  display: block;
}

.login-left .form-control {
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
}

.login-left .form-control:focus {
  border-color: rgb(73, 172, 144);
  box-shadow: 0 0 0 0.2rem rgba(73, 172, 144, 0.25);
}

.login-button,
button.login-button,
input.login-button {
  width: 100%;
  background-color: rgb(73, 172, 144) !important;
  border: none !important;
  color: white !important;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: background-color 0.2s;
}

.login-button:hover:not(:disabled),
button.login-button:hover:not(:disabled),
input.login-button:hover:not(:disabled) {
  background-color: rgb(58, 138, 115) !important;
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-divider {
  text-align: center;
  color: #6c757d;
  font-size: 0.875rem;
  margin: 1.5rem 0;
  position: relative;
}

.login-divider::before,
.login-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: #dee2e6;
}

.login-divider::before {
  left: 0;
}

.login-divider::after {
  right: 0;
}

.promo-content {
  color: white;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.promo-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.promo-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
}

.promo-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.promo-button {
  background-color: white;
  color: rgb(73, 172, 144);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.promo-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.promo-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.promo-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition:
    transform 0.2s,
    background-color 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.promo-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
}

.promo-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promo-card-icon i {
  font-size: 1.75rem;
  color: white;
}

.promo-card-content {
  flex: 1;
}

.promo-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: white;
}

.promo-card-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.status-container {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
}
.status-container--bookings {
  max-width: 720px;
}

@media (max-width: 768px) {
  .login-layout {
    flex-direction: column;
  }

  .login-right {
    display: none;
  }

  .login-left {
    min-height: 100vh;
  }
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.code-input {
  text-transform: uppercase;
  font-family: "Courier New", Courier, monospace;
}

.validation-feedback {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.validation-feedback.hide {
  display: none;
}

.form-text {
  font-size: 0.875rem;
  color: #6c757d;
}

.booking-card {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.booking-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Dashboard Layout */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  background-color: var(--status-bg);
}

.dashboard-sidebar {
  width: 280px;
  background-color: var(--status-surface);
  border-right: 1px solid var(--status-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.dashboard-main {
  flex: 1;
  margin-left: 280px;
  padding: 2rem;
  background-color: var(--status-bg);
}

.dashboard-content-wrapper {
  display: flex;
  gap: 2rem;
  height: 100%;
}

.dashboard-list {
  flex: 1;
  min-width: 0;
}

.dashboard-details {
  flex: 0 0 500px;
  background: var(--status-surface);
  border-radius: 0.5rem;
  box-shadow: var(--status-shadow);
  padding: 1.5rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  position: sticky;
  top: 2rem;
  align-self: flex-start;
}

.dashboard-details.dashboard-details--fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  flex: none;
  max-height: none;
  width: auto;
  height: 100vh;
  height: 100dvh;
  border-radius: 0;
  box-shadow: none;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--status-border);
}

.detail-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.detail-card {
  background: var(--status-surface);
}

.detail-card-header {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--status-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-card-body {
  padding: 0;
}

/* Detail sections (contract detail view) */
.detail-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dashboard-details--fullscreen .detail-sections {
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
}
.dashboard-details--fullscreen .detail-fullscreen-main {
  flex: 1 1 60%;
  min-width: 0;
}
.dashboard-details--fullscreen .detail-fullscreen-sidebar {
  flex: 0 0 320px;
  position: sticky;
  top: 1rem;
}

.detail-fullscreen-main,
.detail-fullscreen-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-section {
  background: #f8f9fa;
  border-radius: 0.5rem;
  overflow: hidden;
}

.detail-section-product {
  background: #fff;
  border: 1px solid #e9ecef;
}

.detail-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
  padding: 0.75rem 1rem;
  background: #dee2e6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}

.detail-section-product .detail-section-title {
  background: transparent;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 0.75rem;
  color: #212529;
}

.detail-section-title i {
  opacity: 0.9;
  color: #495057;
}

.detail-section-body {
  padding: 1rem;
}

.detail-product-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.detail-insurer-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 0.375rem;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-insurer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-insurer-initials {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
}

.detail-product-meta {
  flex: 1;
  min-width: 0;
}

.detail-insurer-name {
  font-weight: 600;
  color: #212529;
}

.detail-product-category {
  margin-top: 0.125rem;
}

.detail-product-id,
.detail-product-date {
  margin-top: 0.35rem;
}

.detail-status-row {
  display: flex;
  align-items: center;
}

.detail-status-badge {
  font-size: 0.8125rem;
  font-weight: 500;
}
.detail-status-badge--info {
  background-color: #cfe2ff;
  color: #084298;
}
.detail-status-badge--warning {
  background-color: #fff3cd;
  color: #664d03;
}
.detail-status-badge--success {
  background-color: #d1e7dd;
  color: #0f5132;
}
.detail-status-badge--error {
  background-color: #f8d7da;
  color: #842029;
}

.detail-status-info {
  line-height: 1.4;
}

.detail-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.35rem;
  margin: 0;
  font-size: 0.875rem;
}

.detail-dl dt {
  color: #6c757d;
  font-weight: 400;
}

.detail-dl dd {
  margin: 0;
  color: #212529;
}

.detail-document-list {
  margin: 0;
  padding: 0;
}
.detail-document-item {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--status-border, #e9ecef);
}
.detail-document-item:last-child {
  border-bottom: 0;
}
.detail-document-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--status-accent);
  text-decoration: none;
}
.detail-document-link:hover {
  text-decoration: underline;
}
.detail-document-meta {
  display: block;
  margin-top: 0.15rem;
  margin-left: 1.6rem;
}

.detail-report-claim .btn-disabled-gray:disabled {
  opacity: 0.65;
  color: #6c757d;
  border-color: #adb5bd;
  cursor: not-allowed;
}

/* Schadenskontakte-Modal */
.detail-claim-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}
.detail-claim-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  max-width: 90vw;
  width: 28rem;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.detail-claim-modal-content {
  background: var(--status-surface, #fff);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}
.detail-claim-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--status-border, #dee2e6);
}
.detail-claim-modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.detail-claim-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
}
.detail-claim-modal-body .detail-insurer-contact {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--status-border, #eee);
}
.detail-claim-modal-body .detail-insurer-contact:last-child {
  border-bottom: 0;
}
.detail-claim-modal-body .detail-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.detail-claim-modal-body .detail-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0;
}
.detail-claim-modal-body .detail-contact-link-icon {
  flex-shrink: 0;
  width: 1em;
  text-align: center;
}

.detail-insuree-name,
.detail-broker-name {
  font-weight: 500;
  color: #212529;
}

.detail-address {
  line-height: 1.4;
}

.contract-row.active {
  background-color: #e7f1ff;
  border-color: rgb(73, 172, 144);
}

.contract-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contract-list .contract-row {
  list-style: none;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.sidebar-logo {
  margin-bottom: 1.5rem;
}

.sidebar-logo img,
.sidebar-logo.covomo-logo-inline svg {
  max-width: 150px;
  height: auto;
  display: block;
}
.mobile-header .sidebar-logo.covomo-logo-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.mobile-header .sidebar-logo.covomo-logo-inline svg {
  max-width: 120px;
  height: 44px;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

body.theme-dark .covomo-logo-inline svg path {
  fill: #e4e6eb;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 50%;
  aspect-ratio: 1;
  background-color: #0d6efd;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  line-height: 1;
  box-sizing: border-box;
}

.user-info {
  flex: 1;
}

.session-countdown {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.2;
}

.user-name {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--status-text);
  margin-bottom: 0.25rem;
}

.user-link {
  font-size: 0.75rem;
  color: rgb(73, 172, 144);
  text-decoration: none;
}
.user-link:hover {
  color: rgb(58, 138, 115);
}

.user-link:hover {
  text-decoration: underline;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.nav-item {
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--status-text-muted);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-item:hover {
  background-color: rgba(73, 172, 144, 0.25);
  color: rgb(73, 172, 144);
}

.nav-item.active {
  background-color: rgba(73, 172, 144, 0.15);
  color: rgb(73, 172, 144);
  font-weight: 500;
}

.nav-item i {
  width: 20px;
  text-align: center;
}

.sidebar-footer .nav-item-button {
  width: 100%;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  border-radius: 0;
}
.sidebar-footer .nav-item-button:hover {
  background-color: rgba(73, 172, 144, 0.25);
  color: rgb(73, 172, 144);
}
.sidebar-footer .nav-item-button i {
  width: 20px;
  text-align: center;
}

.sidebar-settings {
  margin-bottom: 0.5rem;
}
.nav-item-settings {
  width: 100%;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  border-radius: 0.375rem;
  color: var(--status-text-muted, #6c757d);
  font-size: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.theme-dark .nav-item-settings {
  background: rgba(255, 255, 255, 0.08);
  color: var(--status-text-muted);
}
.nav-item-settings:hover {
  background: rgba(73, 172, 144, 0.12);
  color: rgb(73, 172, 144);
}
.nav-item-settings.active {
  background: rgba(73, 172, 144, 0.12);
  color: rgb(73, 172, 144);
  font-weight: 500;
}
.nav-item-settings i.bi-gear {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}
.sidebar-settings-chevron {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.8;
}
.sidebar-settings-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
}
.sidebar-settings-panel.open {
  max-height: 220px;
}
.sidebar-settings-panel .locale-select,
.sidebar-settings-panel .theme-toggle {
  padding: 0 1.5rem 0 3rem;
}

/* Einstellungen im Inhaltsbereich */
.settings-page .settings-content {
  max-width: 28rem;
  padding: 0.25rem 0;
}
.settings-page .theme-toggle-switch {
  margin-top: 0.25rem;
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--status-border);
}

.dashboard-header {
  background-color: var(--status-surface);
  padding: 1.5rem 2rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--status-shadow);
}

.dashboard-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* List toolbar: search, filter, sort */
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0;
}

.list-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1rem;
  pointer-events: none;
}

.search-input-wrapper .search-input {
  width: 100%;
  padding: 0.5rem 0.875rem 0.5rem 2.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  background-color: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.search-input-wrapper .search-input::placeholder {
  color: #6c757d;
}

.search-input-wrapper .search-input:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-filter,
.btn-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #495057;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.btn-filter:hover,
.btn-sort:hover {
  background-color: #e9ecef;
  border-color: #ced4da;
  color: #212529;
}

.btn-filter i,
.btn-sort i {
  font-size: 1rem;
  opacity: 0.9;
}

.list-toolbar .dropdown {
  position: relative;
}

.list-toolbar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1050;
  min-width: 10rem;
  padding: 0.25rem 0;
  margin-top: 0.125rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  display: none;
}

.list-toolbar .dropdown.show .dropdown-menu.show {
  display: block;
}

.list-toolbar .dropdown-menu .dropdown-item {
  display: block;
  width: 100%;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  color: #212529;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.1s;
}

.list-toolbar .dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
}

.list-toolbar .dropdown-menu .dropdown-item.active {
  background-color: #e7f1ff;
  color: #0d6efd;
  font-weight: 500;
}

.list-toolbar .dropdown-menu .sort-arrow {
  margin-left: 0.25rem;
  opacity: 0.7;
}

.list-toolbar-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.list-toolbar .badge-search,
.list-toolbar .badge-filter {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background-color: #e9ecef;
  color: #495057;
}

.contract-row {
  position: relative;
  background-color: var(--status-surface);
  padding: 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid #adb5bd;
  box-shadow: var(--status-shadow);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.contract-status-badge {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  background-color: #e9ecef;
  color: #495057;
}
.contract-status-badge--info {
  background-color: #cfe2ff;
  color: #084298;
}
.contract-status-badge--warning {
  background-color: #fff3cd;
  color: #664d03;
}
.contract-status-badge--success {
  background-color: #d1e7dd;
  color: #0f5132;
}
.contract-status-badge--error {
  background-color: #f8d7da;
  color: #842029;
}

.contract-row:hover {
  box-shadow: var(--status-shadow-hover);
}

.contract-row--border-green {
  border-left-color: #198754;
}

.contract-row--border-orange {
  border-left-color: #fd7e14;
}

.contract-row--border-grey {
  border-left-color: #adb5bd;
}

.contract-row--border-red {
  border-left-color: #dc3545;
}

.insurer-logo {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  background-color: #fff;
  border: 1px solid var(--status-border, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--status-text-muted);
  text-align: center;
  padding: 0.35rem;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.insurer-logo-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.insurer-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.contract-info {
  flex: 1;
  min-width: 0;
}

.contract-number {
  font-weight: 600;
  color: var(--status-text);
  margin-bottom: 0.25rem;
}

.contract-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--status-text-muted);
}

.contract-detail-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.contract-detail-item-block {
  flex-basis: 100%;
  width: 100%;
}

.contract-premium {
  text-align: right;
  flex-shrink: 0;
}

.premium-amount {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--status-text, #212529);
  white-space: nowrap;
}

.premium-interval {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--status-text-muted, #6c757d);
  margin-left: 0.25rem;
}

/* Application actions dropdown (list row + detail header) */
.contract-row-actions {
  flex-shrink: 0;
}

.application-actions-dropdown {
  position: relative;
}

.btn-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background-color: rgb(73, 172, 144);
  border: 1px solid rgb(73, 172, 144);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-actions:hover {
  background-color: rgb(58, 138, 115);
  border-color: rgb(58, 138, 115);
  color: #fff;
}

.btn-actions i {
  font-size: 0.75rem;
  opacity: 0.95;
}

.dropdown-menu-actions {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  z-index: 1050;
  min-width: 16rem;
  padding: 0.35rem 0;
  margin-top: 0.35rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
  display: none;
}

.contract-row .application-actions-dropdown .dropdown-menu-actions {
  right: 0;
  left: auto;
}

.detail-actions-dropdown .dropdown-menu-actions {
  right: 0;
  left: auto;
}

.application-actions-dropdown.show .dropdown-menu-actions.show {
  display: block;
}

.dropdown-menu-actions .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  color: #212529;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.1s;
}

.dropdown-menu-actions .dropdown-item i {
  flex-shrink: 0;
  width: 1.1em;
  text-align: center;
  opacity: 0.85;
}

.dropdown-menu-actions .dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-menu-actions .dropdown-divider {
  height: 1px;
  margin: 0.35rem 0;
  padding: 0;
  background-color: #e9ecef;
  border: 0;
}

/* Mobile Styles */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

@media (max-width: 768px) {
  body.status-sidebar-open {
    overflow: hidden;
    touch-action: none;
  }

  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100% !important;
    height: auto !important;
    max-height: min(400px, 70vh);
    min-height: auto;
    transform: translateY(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    padding-top: calc(env(safe-area-inset-top, 0) + 3.5rem);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    padding-bottom: 1rem;
    box-shadow: none;
    border-right: none !important;
    border-bottom: 1px solid var(--status-border, #e9ecef);
    overflow-y: auto;
    z-index: 1003 !important;
  }

  .dashboard-sidebar.open {
    transform: translateY(0) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  }

  .sidebar-overlay {
    display: block;
  }

  .sidebar-overlay.hidden {
    display: none;
  }

  .dashboard-main {
    margin-left: 0 !important;
    padding: 1rem;
    padding-left: calc(1rem + env(safe-area-inset-left, 0));
    width: 100%;
  }

  .dashboard-sidebar .sidebar-header {
    padding: 1.25rem 1.5rem;
  }

  .dashboard-sidebar .sidebar-nav {
    padding: 0.5rem 0;
  }

  .dashboard-sidebar .sidebar-footer {
    padding: 1.25rem 1.5rem;
  }

  .dashboard-content-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .dashboard-details {
    flex: 1;
    max-height: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1050;
    border-radius: 0;
    padding: 1rem;
    padding-top: calc(1rem + env(safe-area-inset-top, 0));
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    padding-left: calc(1rem + env(safe-area-inset-left, 0));
    padding-right: calc(1rem + env(safe-area-inset-right, 0));
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
    -webkit-overflow-scrolling: touch;
  }

  /* Always fullscreen on mobile - remove distinction */
  .dashboard-details.dashboard-details--fullscreen,
  .dashboard-details:not(.dashboard-details--fullscreen) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
  }

  /* Hide fullscreen toggle button on mobile */
  .detail-expand-btn {
    display: none !important;
  }

  /* Optimize detail sections for mobile */
  .detail-sections {
    flex-direction: column !important;
    gap: 1rem;
  }

  .detail-fullscreen-main,
  .detail-fullscreen-sidebar {
    flex-direction: column;
    width: 100%;
    flex: none;
  }

  .detail-section {
    border-radius: 0.375rem;
    margin-bottom: 0;
  }

  .detail-section-title {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
  }

  .detail-section-product .detail-section-title {
    padding-bottom: 0.625rem;
  }

  .detail-section-body {
    padding: 0.875rem;
  }

  .detail-product-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .detail-insurer-logo {
    width: 50px;
    height: 50px;
    align-self: flex-start;
  }

  .detail-product-meta {
    width: 100%;
  }

  .detail-insurer-name {
    font-size: 0.9375rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .detail-product-name,
  .detail-product-category,
  .detail-product-id,
  .detail-product-date {
    font-size: 0.8125rem;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-top: 0.25rem;
  }

  .detail-header {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .detail-title {
    font-size: 1.25rem;
    flex: 1 1 100%;
  }

  .detail-header-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .detail-header-actions .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }

  .detail-dl {
    font-size: 0.875rem;
  }

  .detail-dl dt {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
  }

  .detail-dl dd {
    margin-bottom: 0.25rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .detail-report-claim {
    margin-top: 1rem;
  }

  .detail-report-claim .btn {
    width: 100%;
    justify-content: center;
  }

  /* Modal backdrop optimization for mobile */
  .detail-claim-modal-backdrop {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .detail-claim-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
  }

  .detail-claim-modal-content {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.4) !important;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .detail-claim-modal-header {
    padding: 1rem;
  }

  .detail-claim-modal-title {
    font-size: 1rem;
  }

  .detail-claim-modal-body {
    padding: 1rem;
    max-height: calc(100vh - 8rem);
    max-height: calc(100dvh - 8rem);
  }

  /* Dropdown menus as modal-like overlays on mobile */
  .dropdown-menu-actions {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    right: auto !important;
    width: calc(100vw - 2rem) !important;
    max-width: 20rem !important;
    margin-top: 0 !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.4) !important;
    border-radius: 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 1060 !important;
  }

  /* Add backdrop for dropdown menus on mobile */
  .application-actions-dropdown.show::before,
  .detail-actions-dropdown.show::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1055;
    pointer-events: auto;
  }

  .application-actions-dropdown.show .dropdown-menu-actions,
  .detail-actions-dropdown.show .dropdown-menu-actions {
    position: fixed !important;
  }

  .dashboard-list.hidden-on-mobile {
    display: none;
  }

  .contract-row.active {
    background-color: transparent;
  }

  /* Mobile optimizations for contract/application cards */
  .contract-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
  }

  .contract-status-badge {
    top: 0.5rem;
    right: 0.75rem;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
  }

  .insurer-logo {
    width: 60px;
    height: 60px;
    align-self: flex-start;
  }

  .contract-info {
    width: 100%;
    min-width: 0;
  }

  .contract-number {
    font-size: 0.9375rem;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .contract-details {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8125rem;
  }

  .contract-detail-item {
    flex-wrap: wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
  }

  .contract-detail-item-block {
    flex-basis: 100%;
  }

  .contract-premium {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--status-border, #e9ecef);
  }

  .premium-amount {
    font-size: 1.125rem;
    white-space: normal;
    word-break: break-word;
  }

  .premium-interval {
    margin-left: 0;
    white-space: nowrap;
  }

  .contract-row-actions {
    width: 100%;
    margin-top: 0.25rem;
  }

  .contract-row-actions .btn-actions {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .contract-row-actions .dropdown-menu-actions {
    left: 0;
    right: 0;
    width: 100%;
    min-width: auto;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    padding-left: calc(1rem + env(safe-area-inset-left, 0));
    padding-top: calc(0.875rem + env(safe-area-inset-top, 0));
    background-color: var(--status-surface, #ffffff);
    border-bottom: 1px solid var(--status-border, #e9ecef);
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1002;
  }

  .theme-dark .mobile-header {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  .mobile-menu-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--status-text, #212529);
    cursor: pointer;
    border-radius: 0.25rem;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    line-height: 1;
  }

  .mobile-menu-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
    margin: 0;
    padding: 0;
  }

  .mobile-menu-btn:hover,
  .mobile-menu-btn:focus-visible {
    background-color: rgba(0, 0, 0, 0.06);
  }

  .sidebar-nav .nav-item {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
  }

  .sidebar-footer .nav-item-button {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }

  .sidebar-footer .form-select,
  .sidebar-footer .theme-toggle-switch {
    min-height: 44px;
  }
}

@media (min-width: 769px) {
  .mobile-header {
    display: none;
  }
}

/* Splash screen - shown first */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

.splash-screen.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  display: none !important;
}

.splash-screen img {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.splash-screen .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hide Vue app content until it's ready to prevent flash of unstyled content */
#app[v-cloak] {
  opacity: 0;
}

#app:not([v-cloak]) {
  opacity: 1;
  transition: opacity 0.2s ease-in;
}

/* Initial loading state - shown before Vue loads */
.initial-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--status-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Theme toggle switch */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--status-surface-alt);
  border: 1px solid var(--status-border);
}
.theme-toggle-label {
  font-size: 0.875rem;
  color: var(--status-text);
  font-weight: 500;
}
.theme-toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  background: var(--status-border);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.theme-toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--status-surface);
  border-radius: 50%;
  box-shadow: var(--status-shadow);
  transition: transform 0.2s;
}
body.theme-dark .theme-toggle-switch {
  background: var(--status-accent);
}
body.theme-dark .theme-toggle-switch::after {
  transform: translateX(20px);
}
.theme-toggle-switch:focus-visible {
  outline: 2px solid var(--status-accent);
  outline-offset: 2px;
}

.theme-toggle-wrap {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

/* Dark theme overrides for components not using variables */
body.theme-dark .search-input-wrapper .search-input,
body.theme-dark .list-toolbar .form-control {
  background-color: var(--status-input-bg);
  border-color: var(--status-border);
  color: var(--status-text);
}
body.theme-dark .search-input-wrapper .search-input::placeholder {
  color: var(--status-text-muted);
}
body.theme-dark .list-toolbar .dropdown-menu {
  background-color: var(--status-surface);
  border-color: var(--status-border);
}
body.theme-dark .list-toolbar .dropdown-menu .dropdown-item {
  color: var(--status-text);
}
body.theme-dark .list-toolbar .dropdown-menu .dropdown-item:hover {
  background-color: var(--status-surface-alt);
}
body.theme-dark .list-toolbar .dropdown-menu .dropdown-item.active {
  background-color: rgba(73, 172, 144, 0.2);
  color: var(--status-accent);
}
body.theme-dark .list-toolbar .badge-search,
body.theme-dark .list-toolbar .badge-filter {
  background-color: var(--status-surface-alt);
  color: var(--status-text-muted);
}
body.theme-dark .contract-status-badge {
  background-color: var(--status-surface-alt);
  color: var(--status-text-muted);
}
body.theme-dark .contract-status-badge--info {
  background-color: rgba(13, 110, 253, 0.25);
  color: #6ea8fe;
}
body.theme-dark .contract-status-badge--warning {
  background-color: rgba(255, 193, 7, 0.25);
  color: #ffda6a;
}
body.theme-dark .contract-status-badge--success {
  background-color: rgba(25, 135, 84, 0.25);
  color: #75b798;
}
body.theme-dark .contract-status-badge--error {
  background-color: rgba(220, 53, 69, 0.25);
  color: #f1aeb5;
}

/* Versicherer-Logos im Dunkelmodus immer mit hellem Hintergrund (bessere Erkennbarkeit) */
body.theme-dark .insurer-logo {
  background-color: #f0f2f5;
  color: #495057;
}
body.theme-dark .detail-insurer-logo {
  background-color: #f0f2f5;
}
body.theme-dark .detail-insurer-initials {
  color: #495057;
}
/* Detail boxes in dark mode: light background with dark text for contrast */
body.theme-dark .detail-section {
  background: #f0f2f5;
  color: #212529;
}
body.theme-dark .detail-section-product {
  background: #fff;
  border-color: #dee2e6;
  color: #212529;
}
body.theme-dark .detail-section-title {
  color: #212529;
  background: #e9ecef;
}
body.theme-dark .detail-section-product .detail-section-title {
  background: transparent;
  border-bottom-color: #e9ecef;
  color: #212529;
}
body.theme-dark .detail-section-title i {
  color: #495057;
}
body.theme-dark .detail-section-body,
body.theme-dark .detail-section-body.text-muted {
  color: #212529 !important;
}
body.theme-dark .detail-section-body .text-muted,
body.theme-dark .detail-section-body .detail-status-info {
  color: #495057 !important;
}
body.theme-dark .detail-product-meta {
  color: #495057 !important;
}
body.theme-dark .mobile-header {
  background-color: var(--status-surface);
  border-color: var(--status-border);
}
body.theme-dark .alert-info {
  background-color: rgba(13, 110, 253, 0.15);
  border-color: rgba(13, 110, 253, 0.3);
  color: var(--status-text);
}
body.theme-dark .alert-warning {
  background-color: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.3);
  color: var(--status-text);
}
body.theme-dark .alert-danger {
  background-color: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.3);
  color: var(--status-text);
}
body.theme-dark .alert-success {
  background-color: rgba(25, 135, 84, 0.15);
  border-color: rgba(25, 135, 84, 0.3);
  color: var(--status-text);
}
body.theme-dark .login-left .form-control {
  background-color: var(--status-input-bg);
  border-color: var(--status-border);
  color: var(--status-text);
}
body.theme-dark .login-description,
body.theme-dark .login-container {
  color: var(--status-text);
}
body.theme-dark .btn-filter,
body.theme-dark .btn-sort {
  background-color: var(--status-surface);
  border-color: var(--status-border);
  color: var(--status-text);
}
body.theme-dark .btn-actions {
  background-color: var(--status-accent);
  border-color: var(--status-accent);
  color: #fff;
}
body.theme-dark .btn-actions:hover {
  background-color: var(--status-accent-hover);
  border-color: var(--status-accent-hover);
  color: #fff;
}
body.theme-dark .dropdown-menu-actions {
  background-color: var(--status-surface);
  border-color: var(--status-border);
}
body.theme-dark .dropdown-menu-actions .dropdown-item {
  color: var(--status-text);
}
body.theme-dark .dropdown-menu-actions .dropdown-item:hover {
  background-color: var(--status-surface-alt);
}
body.theme-dark .dropdown-menu-actions .dropdown-divider {
  background-color: var(--status-border);
}
body.theme-dark .contract-row.active {
  background-color: rgba(73, 172, 144, 0.15);
}
body.theme-dark .detail-section .detail-insurer-initials {
  color: #495057;
}
body.theme-dark .detail-section .detail-product-meta {
  color: #495057;
}
body.theme-dark .detail-section .detail-dl dt {
  color: #6c757d;
}
body.theme-dark .detail-section .detail-dl dd {
  color: #212529;
}
body.theme-dark .detail-status-badge {
  background-color: var(--status-surface-alt);
  color: var(--status-text);
}
body.theme-dark .detail-status-badge--info {
  background-color: rgba(13, 110, 253, 0.25);
  color: #6ea8fe;
}
body.theme-dark .detail-status-badge--warning {
  background-color: rgba(255, 193, 7, 0.25);
  color: #ffda6a;
}
body.theme-dark .detail-status-badge--success {
  background-color: rgba(25, 135, 84, 0.25);
  color: #75b798;
}
body.theme-dark .detail-status-badge--error {
  background-color: rgba(220, 53, 69, 0.25);
  color: #f1aeb5;
}
body.theme-dark .detail-section .detail-insurer-name {
  color: #212529;
}
