/* General Body Styles */
html {
  height: 100%;
  overflow: hidden;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f7f6;
  color: #333;
  font-size: 14px;
  height: 100%;
  overflow-y: hidden;
}

.container {
  width: 90%;
  max-width: 1600px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.app-title {
  /* For login page title */
  text-align: center;
  color: #007bff;
  margin-bottom: 10px;
  font-size: 2.5em;
  font-weight: 700;
}

/* Typography & Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  margin-top: 0.8em;
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.2em;
}
h2 {
  font-size: 1.8em;
}
h3 {
  font-size: 1.5em;
}

/* Login Page Styles */
.login-container {
  width: 350px;
  margin: 100px auto;
  padding: 30px;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.login-container h2 {
  text-align: center;
  /* color: #333; */
  margin-bottom: 25px;
}

.login-container .logo {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 200px;
  height: auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.btn {
  padding: 10px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  background-color: #007bff;
  color: white;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}
.btn-primary:hover {
  background-color: #0069d9;
}

.btn-download {
  padding: 4px;
  margin-left: 4px;
  font-size: 0.9em;
}

.error {
  color: #d9534f;
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}

.packages-list-container {
  flex-grow: 1;
  overflow-y: auto;
}

.packages-list-container ul {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
}

.packages-list-container li {
  margin-bottom: 12px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.packages-list-container li:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.packages-list-container li a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
  font-size: 1.1em;
  transition: color 0.2s ease-in-out;
}

.packages-list-container li a:hover {
  color: #0056b3;
  text-decoration: none;
}
/*Different colors for current/first item*/
.packages-list-container li a.first-item {
  color: #00b7ff;
}
.packages-list-container li a.first-item:hover {
  color: #0056b3;
}

/* Main Tender UI Styles */
.sticky-header-content {
  position: sticky;
  top: 0;
  background-color: #f4f7f6;
  z-index: 900;
  /* padding-bottom: 10px; */
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}

.main-ui-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.container {
  width: 95%;
  max-width: 3000px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  height: calc(100vh - 40px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.main-ui-container {
  /* Now a flex child of .container */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Highlight style for search terms */
.highlight {
  background-color: yellow;
  color: black;
  font-weight: bold;
}

.top-nav {
  background-color: #343a40;
  padding: 0;
  margin-bottom: 10px;
  border-radius: 4px 4px 0 0;
}

.top-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.top-nav li {
  /* float: left; */
}

.top-nav li.nav-app-title a {
  /* Specific styling for the app title link */
  font-size: 1.3em;
  font-weight: bold;
  padding-left: 0;
  padding-right: 25px;
  color: #fff;
  display: flex;
  align-items: center;
}
.top-nav li.nav-app-title a:hover {
  background-color: transparent !important;
}

.top-nav .nav-logo {
  height: 24px;
  width: auto;
  margin-right: 8px;
}

.top-nav li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.top-nav li a:hover:not(.active) {
  background-color: #495057;
}

.top-nav li a.active {
  background-color: #007bff;
}

.top-nav li.nav-logout-item {
  /* Target the new class for the logout item */
  margin-left: auto;
}

.controls-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  margin-bottom: 5px;
  border-bottom: 1px solid #eee;
}

.document-summary {
  font-style: italic;
  color: #555;
  margin: 0 15px;
}

.search-container {
  display: flex;
}

.search-container input[type="search"] {
  /* Changed from type="text" */
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 4px 0 0 4px;
  min-width: 250px;
  height: 38px;
  box-sizing: border-box;
  font-size: 1em;
}

.search-container .btn {
  /* Style for the search button */
  border-radius: 0 4px 4px 0;
  margin-left: -1px;
  height: 38px;
  line-height: 1.5;
}

.package-title {
  /* This is an h3 */
  /* color: #333; */
  margin-bottom: 10px;
  padding-left: 20px;
  /* font-size: 1.5em; */
}

/* Tag badge styles */
.tag-badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75em;
  font-weight: bold;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  margin-right: 5px;
  margin-bottom: 5px;
  background-color: #6c757d;
}

.tag-badge.tag-longlist:not(.tag-inactive) {
  background-color: #17a2b8;
}

.tag-badge.tag-midlist:not(.tag-inactive) {
  background-color: #6c757d;
}

.tag-badge.tag-shortlist:not(.tag-inactive) {
  background-color: #28a745;
}

.tag-badge.tag-inactive {
  background-color: #e0e0e0;
  color: #888;
}

.tender-list-container {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 20px;
}

.tender-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.9em;
}

.tender-table th,
.tender-table td {
  border: 1px solid #ddd;
  width: 50px;
  min-width: 40px;
  padding: 8px;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Specific styling for the select column */
.tender-table th.col-select,
.tender-table td.col-select {
  width: 50px;
  min-width: 50px;
  text-align: center;
  vertical-align: middle;
  padding-left: 5px;
  padding-right: 5px;
}

.tender-table th.col-title,
.tender-table td.col-title {
  width: 55%;
  min-width: 250px;
}

.tender-table th.col-auftraggeber,
.tender-table td.col-auftraggeber {
  width: 15%;
  min-width: 50px;
}

.tender-table th.col-description,
.tender-table td.col-description {
  width: 20%;
  min-width: 50px;
}

.tender-table th.col-contract-value,
.tender-table td.col-contract-value {
  width: 5%;
  min-width: 50px;
}

.tender-table th {
  background-color: #e9ecef;
  color: #495057;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 800;
}
.tender-table th input[type="checkbox"] {
  cursor: pointer;
}

.tender-table th[data-sort-key] {
  cursor: pointer;
}

/* Apply Flexbox to the inner div */
.tender-table th[data-sort-key] .th-inner-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  height: 100%;
}

.tender-table th[data-sort-key]:hover {
  background-color: #d8dfe5;
}

.tender-table th.sort-active {
  background-color: #ced9e2;
}

/* Container for header text, allows text to wrap if needed */
.tender-table th .th-text {
  word-break: break-word;
  overflow-wrap: break-word;
}

.tender-table td.cell-has-match {
  background-color: #f0e68c;
}

/* Styles for new sort arrows container */
.tender-table th .sort-arrows {
  display: inline-flex;
  flex-direction: column;
  margin-left: 8px;
  line-height: 0.8;
  font-size: 0.9em;
  flex-shrink: 0;
}

.tender-table th .sort-arrows .arrow-up,
.tender-table th .sort-arrows .arrow-down {
  color: #ccc;
}

/* Active sort states - Show active arrow, keep other grey */
.tender-table th.sort-active-asc .sort-arrows .arrow-up {
  color: #333;
}

.tender-table th.sort-active-desc .sort-arrows .arrow-down {
  color: #333;
}

.tender-table td input[type="checkbox"] {
  cursor: pointer;
}

.tender-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.tender-table tbody tr:hover {
  background-color: #e2e6ea;
}

/* Make tender rows clickable */
.tender-row {
  cursor: pointer;
}

.tender-row:hover {
  background-color: #e9ecef !important;
}

/* Don't show pointer cursor on checkbox column */
.tender-row .col-select {
  cursor: default;
}

.tender-table td small a {
  color: #007bff;
  text-decoration: none;
  margin-right: 5px;
}
.tender-table td small a:hover {
  text-decoration: underline;
}

.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #343a40;
  padding: 10px 10px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  border-top: 3px solid #007bff;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  z-index: 1000;
}

.sticky-bottom-bar .query-input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 10px;
  font-size: 1.1em;
}

.sticky-bottom-bar .btn {
  background-color: #28a745;
  color: white;
}
.sticky-bottom-bar .btn:hover {
  background-color: #1e7e34;
}

/* Style for the disabled Send button in the sticky bottom bar */
.sticky-bottom-bar .btn#send-query-button:disabled {
  background-color: #6c757d;
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.65;
}

.sticky-bottom-bar .btn#send-query-button:disabled:hover {
  background-color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 10px;
  }

  .login-container {
    width: 90%;
    margin: 50px auto;
  }

  .controls-area {
    flex-direction: column;
    align-items: flex-start;
  }
  .controls-area > * {
    margin-bottom: 10px;
  }
  .search-container {
    width: 100%;
  }
  .search-container input[type="search"] {
    /* Changed from type="text" */
    width: calc(100% - 70px);
  }

  .top-nav li {
    float: none;
    width: 100%;
  }
  .top-nav li a {
    text-align: left;
  }
  .top-nav li[style*="float:right"] {
    float: none !important;
  }
}

/* Custom Tooltip for truncated text */
.custom-tooltip {
  position: absolute;
  background-color: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  z-index: 1001;
  pointer-events: none;
  font-size: 0.9em;
  line-height: 1.4;
  max-width: 400px;
  white-space: pre-wrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Tender Detail Page Styles */
.tender-detail-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
  box-sizing: border-box;
}

.tender-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 10px;
  /* margin-bottom: 15px; */
  /* border-bottom: 1px solid #eee; */
  gap: 20px;
}

.tender-detail-title-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  min-width: 0;
}

.tender-detail-title {
  font-size: 1.5em;
  color: #333;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.btn-back {
  background-color: #6c757d;
  color: white;
  padding: 8px 15px;
  font-size: 0.9em;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
  white-space: nowrap;
}

.btn-back:hover {
  background-color: #5a6268;
  text-decoration: none;
  color: white;
}

.tender-detail-nav {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.btn-nav {
  padding: 8px 15px;
  font-size: 0.9em;
}

.btn-nav.disabled {
  background-color: #6c757d;
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.65;
}

.btn-nav.disabled:hover {
  background-color: #6c757d;
}

.tender-detail-content {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 15px; /* For scrollbar */
}

.detail-section {
  margin-bottom: 25px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

.detail-subtitle {
  font-size: 1.3em;
  color: #007bff;
  margin-top: 0;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
}

/* Subsection styles for custom_group */
.detail-subsection {
  margin-bottom: 20px;
  padding: 12px;
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  margin-left: 10px;
}

.detail-subsection:last-child {
  margin-bottom: 0;
}

.detail-sub-subtitle {
  font-size: 1.1em;
  color: #495057;
  margin-top: 0;
  margin-bottom: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
}

.detail-attribute-list,
.detail-list,
.detail-comment-list,
.detail-qa-list {
  list-style: none;
  padding-left: 0;
}

.detail-attribute-item,
.detail-list-item,
.detail-comment-item {
  margin-bottom: 8px;
  line-height: 1.6;
}

.detail-attribute-item strong {
  color: #555;
}

.detail-comment-item {
  padding: 8px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
}

.detail-qa-item {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eee;
}
.detail-qa-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-qa-item p {
  margin: 5px 0;
}

.detail-qa-item strong {
  /* For Q: and A: */
  color: #333;
  font-weight: bold;
}

/* Q&A collapsible styles */
.qa-container {
  position: relative;
}

.qa-hidden {
  display: none;
}

.btn-qa-toggle {
  background-color: #f8f9fa;
  color: #007bff;
  border: 1px solid #dee2e6;
  padding: 8px 16px;
  font-size: 0.9em;
  margin-top: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-qa-toggle:hover {
  background-color: #e9ecef;
  color: #0056b3;
  border-color: #adb5bd;
}

.btn-qa-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* File link styles within lists */
.detail-list-item .file-link {
  display: inline-flex;
  align-items: center;
  color: #007bff;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.detail-list-item .file-link:hover {
  background-color: #f8f9fa;
  color: #0056b3;
  text-decoration: none;
}

.detail-list-item .file-icon {
  margin-right: 6px;
  font-size: 1em;
}

.detail-list-item .file-link:hover .file-icon {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* File icon specific styles */
.file-icon-img {
  /* Changed from .file-icon for SVG images */
  width: 1.1em; /* Adjust size as needed */
  height: 1.1em; /* Adjust size as needed */
  vertical-align: middle;
  margin-right: 6px;
}

/* If SVGs are designed to take color via fill="currentColor", you can add these: */
/*
.file-link .file-icon-img.pdf-icon {
  fill: #dc3545;
}
.file-link .file-icon-img.excel-icon {
  fill: #28a745;
}
.file-link .file-icon-img.default-icon {
  fill: #6c757d;
}
*/

/* Inline file links (for structured reports) */
.inline-file-link {
  display: inline-flex;
  align-items: center;
  color: #007bff;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 3px;
  margin: 0 2px;
  font-size: 0.95em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.inline-file-link:hover {
  background-color: #e9ecef;
  color: #0056b3;
  text-decoration: none;
}

.inline-file-link .file-icon {
  margin-right: 4px;
  font-size: 1em;
}

/* Ensure proper spacing in structured reports */
.detail-list-item .inline-file-link + .inline-file-link {
  margin-left: 4px;
}

/* Add Comment Form Styles */
.add-comment-form {
  margin-top: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 5px;
}

.add-comment-form .form-group {
  margin-bottom: 15px;
}

.add-comment-form label {
  display: block;
  margin-bottom: 5px;
  color: #495057;
  font-weight: 600;
  font-size: 0.95em;
}

.add-comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9em;
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
  box-sizing: border-box;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.add-comment-form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.add-comment-form textarea::placeholder {
  color: #6c757d;
  opacity: 1;
}

.add-comment-form .btn {
  background-color: #28a745;
  border-color: #28a745;
  color: white;
  font-size: 0.9em;
  padding: 8px 16px;
}

.add-comment-form .btn:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.add-comment-form .btn:focus {
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

/* Comment Item Layout */
.detail-comment-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.comment-content {
  flex-grow: 1;
}

.comment-actions {
  flex-shrink: 0;
}

.comment-meta {
  font-size: 0.85em;
  color: #6c757d;
  margin-right: 5px;
  display: block; /* Or inline-block if preferred on same line as text */
  margin-bottom: 3px; /* Space between meta and text if block */
}

.comment-text {
  /* Styles for the main comment text, if needed */
}

/* Delete Button Styles */
.btn-delete {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
  font-size: 1.2em;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 3px;
  line-height: 1;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-delete:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

.btn-delete:focus {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
  outline: none;
}

.btn-delete:active {
  background-color: #bd2130;
  border-color: #b21f2d;
}

/* Bewertung Section Styles */
.bewertung-container {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
}

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

.evaluation-tag-group {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  width: 100%;
}

#mgmtreport-toggle-btn {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-weight: bold;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  margin-right: 5px;
  margin-bottom: 5px;
  background-color: #b21f2d;
  margin-left: auto;
}

.btn-enable {
  background-color: #28a745 !important;
  color: white !important;
}
.btn-enable:hover {
  background-color: #218838 !important;
}
.btn-disable {
  background-color: #dc3545 !important;
  color: white !important;
}
.btn-disable:hover {
  background-color: #c82333 !important;
}

.bewertung-filter-group {
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 15px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bewertung-filter-name {
  display: flex;
  align-items: center;
  font-size: 1.3em;
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding-bottom: 5px;
  border-bottom: 1px solid #e9ecef;
}

.bewertung-section {
  margin-bottom: 15px;
}

.bewertung-section:last-child {
  margin-bottom: 0;
}

.bewertung-section-name {
  font-size: 1.1em;
  color: #495057;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.bewertung-criteria-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.bewertung-criterion-item {
  margin-bottom: 8px;
  border-left: 3px solid #dee2e6;
  padding-left: 12px;
  background-color: #f8f9fa;
  border-radius: 0 4px 4px 0;
  transition: border-left-color 0.2s ease, background-color 0.2s ease;
}

.bewertung-criterion-item:hover {
  background-color: #e9ecef;
  border-left-color: #007bff;
}

.bewertung-criterion-item:last-child {
  margin-bottom: 0;
}

.criterion-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.4;
}

.criterion-row {
  display: flex;
  align-items: center;
  width: 100%;
}
.criterion-status-dot {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  margin-right: 8px; 
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.criterion-status-dot.status-green {
  background-color: #28a745;
  border-color: #1e7e34;
}
.criterion-status-dot.status-orange {
  background-color: #fd7e14;
  border-color: #e8590c;
}
.criterion-status-dot.status-red {
  background-color: #dc3545;
  border-color: #c82333;
}

.criterion-name {
  font-weight: 600;
  margin-right: 8px;
  color: #333;
  font-size: 14px;
}

.criterion-value {
  color: #495057;
  margin-right: 10px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.criterion-info-icon {
  margin-left: auto;
  color: #007bff;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  padding: 2px;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.criterion-info-icon:hover {
  background-color: #007bff;
  color: white;
}

.criterion-details {
  padding: 12px;
  margin-top: 8px;
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: none;
}

.info-block {
  margin-bottom: 12px;
}

.info-block:last-child {
  margin-bottom: 0;
}

.info-block-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: 13px;
  line-height: 1.3;
}

.info-block-list {
  list-style-type: disc;
  padding-left: 18px;
  margin: 6px 0 0 0;
  color: #495057;
}

.info-block-list li {
  margin-bottom: 4px;
  line-height: 1.4;
}

.info-block-list li:last-child {
  margin-bottom: 0;
}

/* Info block content for string type */
.info-block p {
  margin: 0;
  color: #495057;
  line-height: 1.4;
}

/* Criteria Page Styles */
.criteria-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

.criteria-section {
  margin-bottom: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.criteria-section-title {
  background-color: #007bff;
  color: white;
  margin: 0;
  padding: 15px 20px;
  font-size: 1.4em;
  font-weight: 600;
}

.no-data-message {
  text-align: center;
  padding: 40px;
  color: #6c757d;
  font-style: italic;
}

/* Generic JSON Visualization Styles */
.json-object,
.json-array {
  margin: 0;
  padding: 0;
}

.json-property {
  border-bottom: 1px solid #e9ecef;
  padding: 5px 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.json-property:last-child {
  border-bottom: none;
}

.json-key-container {
  min-width: 200px;
  flex-shrink: 0;
}

.json-key {
  font-weight: 600;
  color: #495057;
  font-size: 14px;
  text-transform: capitalize;
  word-break: break-word;
}

.json-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  color: #495057;
  transition: color 0.2s ease;
}

.json-toggle:hover {
  color: #007bff;
}

.toggle-icon {
  font-size: 12px;
  color: #007bff;
  transition: transform 0.2s ease;
}

.json-value-container {
  flex-grow: 1;
  min-width: 0;
}

.json-nested-object,
.json-nested-array {
  margin-top: 10px;
  border-left: 3px solid #e9ecef;
  padding-left: 15px;
  background-color: #f8f9fa;
  border-radius: 0 4px 4px 0;
}

.json-array-item {
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.json-array-item:last-child {
  border-bottom: none;
}

.json-string-array {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 5px 0;
}

.json-string-array .tag-badge {
  background-color: #6c757d;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.json-number {
  color: #28a745;
  font-weight: 600;
  font-family: "Courier New", monospace;
}

.json-boolean {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
}

.json-boolean.json-true {
  background-color: #d4edda;
  color: #155724;
}

.json-boolean.json-false {
  background-color: #f8d7da;
  color: #721c24;
}

.json-null {
  color: #6c757d;
  font-style: italic;
  font-weight: 500;
}

.json-string {
  color: #495057;
  word-break: break-word;
  line-height: 1.4;
}

/* Collapsible content animation */
.collapsible-content {
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Level-based indentation and styling */
.json-object[data-level="0"] {
  background-color: transparent;
}

.json-object[data-level="1"] .json-property {
  background-color: #f8f9fa;
}

.json-object[data-level="2"] .json-property {
  background-color: #e9ecef;
}

.json-object[data-level="3"] .json-property {
  background-color: #dee2e6;
}

.bewertung-filter-group .bewertung-filter-content {
  display: none !important;
}
.bewertung-filter-group.open .bewertung-filter-content {
  display: block !important;
}
.bewertung-filter-name {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 1.5em;
}
.bewertung-toggle-arrow {
  position: absolute;
  right: 0.7em;
  top: 30%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: #646464;
  transition: color 0.2s;
  pointer-events: none;
}
.bewertung-filter-group .bewertung-toggle-arrow::after {
  content: '\25BC'; /* ▼ down arrow */
  display: inline-block;
}
.bewertung-filter-group.open .bewertung-toggle-arrow::after {
  content: '\25B2'; /* ▲ up arrow */
}

.manager-cell {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 80px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 8px 6px;
  right: 0;
  top: 0;
}

.manager-cell:hover .dropdown-content {
  display: block;
}

.manager-dropdown .manager-option {
  padding: 8px 6px;
  transition: background-color 0.2s ease;
}

.manager-dropdown .manager-option:hover {
  background-color: #ccc;
  cursor: pointer;
}


/* Responsive adjustments for criteria page */
@media (max-width: 768px) {
  .criteria-content {
    padding: 10px;
  }

  .json-property {
    flex-direction: column;
    gap: 8px;
  }

  .json-key-container {
    min-width: auto;
  }

  .json-string-array {
    margin-top: 8px;
  }
}
