@charset "UTF-8";
:root {
  /* Colors */
  --f1-primary: #1EBEEB; /* HsH Blue (30, 190, 235) */
  --f1-secondary: #575250; /* HsH Anthracite (87, 82, 80) */
  --f1-dark: #575250;
  --f1-light: #f5f5f5;
  --f1-white: #ffffff;
  --f1-border: #dee2e6;
  --f1-error: #DC3C05; /* HsH Red (220, 60, 5) */
  /* Additional HsH official colors */
  --hsh-blue: #1EBEEB; /* HsH Blue (30, 190, 235) */
  --hsh-red: #DC3C05; /* HsH Red (220, 60, 5) */
  --hsh-grey: #575250; /* HsH Grey (87, 82, 80) */
  --hsh-mint: #46B428; /* HsH Mint (70, 180, 40) */
  --hsh-yellow: #FFD200; /* HsH Yellow (255, 210, 0) */
  --hsh-green: #96BE00; /* HsH Green (150, 190, 0) */
  --hsh-orange: #FFA500; /* HsH Orange (255, 165, 0) */
  --hsh-violet: #D23C96; /* HsH Violet (210, 60, 150) */
  /* Light variants used for backgrounds and table variants */
  --hsh-light-blue: #e6f4fa;
  --hsh-light-red: #fbeaea;
  --hsh-light-green: #dff5e1;
  /* Faculty 2 colors (future use: override via [data-faculty="f2"])
     --f1-primary: #96BE00;   // F2 Green
     --f1-secondary: #698400; // F2 Dark Green
     --f1-error: #DC3C05;    // Shared HsH Red
  */
  /* Spacing */
  --space-xs: 5px;
  --space-sm: 10px;
  --space-md: 20px;
  --space-lg: 30px;
  --space-xl: 40px;
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 2px 15px rgba(0,0,0,0.1);
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
}

:root {
  /* Video icon */
  --video-icon-svg-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231EBEEB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 7l-7 5 7 5V7z'%3E%3C/path%3E%3Crect x='1' y='5' width='15' height='14' rx='2' ry='2'%3E%3C/rect%3E%3C/svg%3E");
  --video-icon-svg-black: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 7l-7 5 7 5V7z'%3E%3C/path%3E%3Crect x='1' y='5' width='15' height='14' rx='2' ry='2'%3E%3C/rect%3E%3C/svg%3E");
  /* Presentation icon */
  --presentation-icon-svg-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231EBEEB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'%3E%3C/rect%3E%3Cline x1='8' y1='21' x2='16' y2='21'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12' y2='21'%3E%3C/line%3E%3C/svg%3E");
  --presentation-icon-svg-black: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'%3E%3C/rect%3E%3Cline x1='8' y1='21' x2='16' y2='21'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12' y2='21'%3E%3C/line%3E%3C/svg%3E");
  /* Announcements icon */
  --announcements-icon-svg-black: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23575250' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
  /* Banner icon */
  --banner-icon-svg-black: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242'%3E%3C/path%3E%3Cpath d='M12 12v9'%3E%3C/path%3E%3Cpath d='m8 17 4 4 4-4'%3E%3C/path%3E%3C/svg%3E");
  /* Display icon */
  --display-icon-svg-black: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'%3E%3C/rect%3E%3Cline x1='6' y1='9' x2='6' y2='11'%3E%3C/line%3E%3Cline x1='10' y1='9' x2='10' y2='11'%3E%3C/line%3E%3Cline x1='14' y1='9' x2='14' y2='11'%3E%3C/line%3E%3Cline x1='18' y1='9' x2='18' y2='11'%3E%3C/line%3E%3Cline x1='8' y1='21' x2='16' y2='21'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12' y2='21'%3E%3C/line%3E%3C/svg%3E");
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--f1-dark);
  background-color: #f8f9fa;
}

/* Inherit font-family for form elements (browsers use system fonts by default) */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  font-family: var(--font-family);
}

a {
  color: var(--f1-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 95%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--space-md);
}

.page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-title {
  text-align: center;
  font-weight: bold;
  color: var(--hsh-blue);
  margin-bottom: 10px;
}

.page-subtitle {
  text-align: center;
  font-weight: bold;
  color: var(--f1-dark);
  margin-bottom: 20px;
}

.main-header {
  background: var(--f1-white);
  padding: var(--space-md) 0;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-title h1 {
  font-size: 24px;
  margin-bottom: 5px;
}

.header-title h2 {
  color: var(--f1-primary);
  font-size: 20px;
  margin: 5px 0 0;
}

.main-logo {
  height: 100px;
  width: auto;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  justify-content: center;
  margin-top: 15px;
}

.system-title {
  text-align: center;
  margin: 5px 0 30px 0;
  background-color: rgba(30, 190, 235, 0.08);
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid rgba(30, 190, 235, 0.2);
  box-shadow: 0 2px 4px rgba(30, 190, 235, 0.05);
}

.system-title h1 {
  color: var(--f1-primary);
  font-size: 22px;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
}

.page-footer {
  background: white;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid var(--f1-border);
  width: 100%;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.footer-content p {
  margin: 5px 0;
}

.sub-footer {
  background: var(--f1-light);
  border-top: 1px solid var(--f1-border);
}

.sub-footer .footer-content {
  padding: 10px 20px;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin: 20px 0;
  padding: 0;
}

.button-container-flex {
  display: flex;
  gap: 1em;
  margin-bottom: 2em;
}

.f1-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: var(--hsh-blue);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.f1-button:hover {
  background-color: #1aa8d1;
}

.f1-button:focus-visible {
  outline: 2px solid var(--f1-dark);
  outline-offset: 2px;
}

.f1-button,
.f1-button:visited {
  text-decoration: none;
  border: none;
  outline: none;
  box-sizing: border-box;
  vertical-align: middle;
  line-height: 1.2;
}

.f1-button.small {
  min-width: 80px;
  padding: 6px 12px;
  font-size: 13px;
}

.f1-button.delete,
.f1-button-danger {
  background-color: var(--f1-error);
}

.f1-button.delete:hover,
.f1-button-danger:hover {
  background-color: #B03004;
}

.f1-button.primary {
  background-color: var(--f1-primary);
}

.f1-button.secondary {
  background-color: var(--hsh-grey);
}

/* Success / danger button variants */
.f1-button-success {
  background-color: #28a745;
}

.f1-button-success:hover {
  background-color: #218838;
}

.f1-button-danger {
  background-color: #dc3545;
}

.f1-button-danger:hover {
  background-color: #c82333;
}

.f1-button.secondary:hover {
  background-color: #5a6268;
}

.button-group {
  margin-top: 20px;
}

.program-section .form-group input[type=radio] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d3d3d3; /* Light grey border for unchecked */
  border-radius: 50%;
  outline: none;
  transition: all 0.2s;
  position: relative;
  cursor: pointer;
  margin: 0;
  background: #fff; /* Ensure white background for contrast */
}

.program-section .form-group input[type=radio]:checked {
  border-color: var(--hsh-blue); /* Blue border when checked */
}

.program-section .form-group input[type=radio]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: var(--hsh-blue); /* Blue dot when checked */
  border-radius: 50%;
}

.program-section .form-group input[type=radio]:focus {
  box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.08); /* Subtle focus ring */
}

/* General form-group styling */
.form-group {
  margin-bottom: var(--space-md);
  text-align: left;
  width: 100%; /* Ensure consistent width for all form groups */
}

.form-group label {
  display: block; /* Default block display for labels */
  color: var(--f1-dark);
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  margin-bottom: var(--space-xs);
}

/* Input styling - General for all inputs */
input[type=text],
input[type=email],
input[type=password],
input[type=number],
select,
textarea {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  font-family: var(--font-family);
  border: 1px solid var(--f1-border);
  border-radius: 4px;
  box-sizing: border-box;
}

input[type=text]:focus-visible,
input[type=email]:focus-visible,
input[type=password]:focus-visible,
input[type=number]:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--hsh-blue);
  outline-offset: 1px;
  border-color: var(--hsh-blue);
  box-shadow: 0 0 0 2px rgba(30, 190, 235, 0.12);
}

/* Error state for inputs */
.form-group.has-error input {
  border-color: var(--f1-error);
}

/* Specific styling for radio and checkbox inputs */
.form-group input[type=radio],
.form-group input[type=checkbox] {
  width: auto;
  height: auto;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
  accent-color: var(--hsh-blue);
}

/* Program-section specific styles */
.program-section {
  margin-bottom: 30px;
}

.program-section h3 {
  color: var(--hsh-dark-blue);
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.program-section .form-group {
  display: block;
}

.program-section .form-group label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.4;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background-color 0.2s;
  cursor: pointer;
}

/* Hover and selected states for program options */
.program-section .form-group label:hover {
  background-color: rgba(30, 190, 235, 0.05);
}

.program-section .form-group input[type=radio]:checked + span,
.program-section .form-group label:has(input[type=radio]:checked) {
  font-weight: 500;
  color: var(--hsh-blue);
}

/* Placeholder styling */
.f1-form .form-group input::placeholder,
.f1-form .form-group textarea::placeholder {
  color: var(--f1-dark);
  opacity: 1;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: normal;
}

/* Inline form (for forms placed inside table cells or inline contexts) */
.form-inline {
  display: inline;
}

.form-inline input[type=submit],
.form-inline button {
  margin: 0;
}

/* Form spacing helpers */
.form-margin-bottom {
  margin-bottom: 2em;
}

/* Checkbox indentation helper */
.checkbox-indent {
  margin-left: 20px;
}

/* Field hint block variant */
.field-hint-block {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85em;
}

/* Multi-select helper text */
.multi-select-hint {
  display: block;
  margin-top: 0.5rem;
}

/* Grid helpers for inline form layouts */
.grid-column-span-2 {
  grid-column: span 2;
}

/* Inline form group for horizontal forms */
.inline-form-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.inline-form-group label {
  font-weight: bold;
  margin-right: 8px;
  white-space: nowrap;
}

.inline-form-group input,
.inline-form-group select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 180px; /* Set a reasonable min width */
  max-width: 300px; /* Prevent excessive stretching */
  width: auto; /* Override 100% width */
  font-size: 1em;
}

.inline-form-group button {
  margin-left: 8px;
}

/* Info box styling */
.info-box,
.info-box-anmeldung,
.info-box-abmeldung,
.info-box-all-labs {
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  margin-top: 30px;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.info-box-anmeldung {
  background-color: var(--hsh-light-green);
  border: 2px solid var(--hsh-green);
}

.info-box-abmeldung {
  background-color: var(--hsh-light-red);
  border: 2px solid var(--hsh-red);
}

.info-box-all-labs {
  background-color: var(--hsh-light-blue);
  border: 2px solid var(--hsh-blue);
}

.info-title {
  margin-bottom: 8px;
}

.info-title-anmeldung {
  color: var(--hsh-green);
}

.info-title-abmeldung {
  color: var(--hsh-red);
}

.info-title-all-labs {
  color: var(--hsh-blue);
}

/* Warning Box (Error) */
.warning-box {
  background-color: var(--hsh-light-red);
  border: 2px solid var(--hsh-red);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.warning-title {
  color: var(--hsh-red);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.warning-text {
  color: var(--hsh-red);
  font-size: 1.2em;
}

/* Edit Form Specific Styles */
.edit-form-fieldset {
  border: 1px solid var(--f1-border);
  border-radius: 10px;
  padding: 24px 32px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 190, 235, 0.06);
  margin-bottom: 32px;
  overflow: auto; /* contains the floated legend + clearfix */
}

.edit-form-legend {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--hsh-blue);
  margin-bottom: 18px;
  padding: 0 4px;
  letter-spacing: 0.02em;
  float: left;
  margin-top: -0.2em;
}

/* Clear the floated legend so form content sits below it */
.edit-form-fieldset > form,
.edit-form-fieldset > .form-grid,
.edit-form-fieldset > .edit-form-group {
  clear: left;
}

.edit-form-group {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}

.edit-form-label {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--f1-dark);
  font-family: var(--font-family);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.edit-form-input,
.edit-form-select {
  padding: 10px;
  font-size: 1.1rem;
  font-family: var(--font-family);
  border: 1px solid var(--f1-border);
  border-radius: 5px;
  box-sizing: border-box;
  margin-bottom: 4px;
  background: #f9fafd;
  transition: border-color 0.2s;
  width: auto; /* Override 100% width from general rules */
  min-width: 180px; /* Set a reasonable min width */
  max-width: 400px; /* Prevent excessive stretching */
}

.edit-form-input:focus-visible,
.edit-form-select:focus-visible {
  outline: 2px solid var(--hsh-blue);
  outline-offset: 1px;
  border-color: var(--hsh-blue);
  box-shadow: 0 0 0 2px rgba(30, 190, 235, 0.12);
}

/* Textarea should have full width inside edit-form-group */
.edit-form-group textarea {
  width: 100%;
  max-width: 100%;
}

.edit-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.field-hint {
  font-size: 0.95em;
  color: var(--f1-dark);
  opacity: 0.7;
  margin-top: 2px;
}

/* For grouped email fields */
.email-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.email-group input {
  flex: 1;
  min-width: 120px;
}

.email-group span {
  font-weight: 500;
  color: var(--f1-dark);
}

/* General table container */
.table-container {
  background: var(--f1-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin: var(--space-md) 0;
  overflow-x: auto;
  width: 100%;
}

/* Base table styles */
.f1-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  table-layout: auto; /* Allow columns to size based on content */
}

.f1-table th {
  background: var(--f1-primary);
  color: white;
  padding: 12px 16px;
  font-weight: normal;
}

.f1-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--f1-border);
}

.f1-table td, .f1-table th {
  white-space: nowrap;
  padding: 8px;
}

.f1-table tr:hover {
  background: var(--f1-light);
}

/* Ensure full row hover highlight for matrix tables (including sticky columns) */
.matrix-table tbody tr:hover td,
.matrix-table tbody tr:hover th {
  background-color: var(--f1-light) !important;
  transition: background-color 0.12s ease-in-out;
}

/* General alignments */
.f1-table td:last-child,
.f1-table th:last-child {
  min-width: 150px; /* Prevent actions column from being too narrow */
  text-align: center;
  vertical-align: middle;
}

/* Checkboxes */
.f1-table input[type=checkbox] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  vertical-align: middle;
}

/* Per-table variants generated from a token map */
.f1-table-abmeldung {
  background-color: var(--hsh-light-red);
}

.f1-table-abmeldung th {
  background-color: var(--hsh-red);
  color: white;
}

.f1-table-abmeldung td {
  background-color: var(--hsh-light-red);
  color: inherit;
}

.f1-table-abmeldung tr:nth-child(even):not(.f1-table-group):not(.f1-table-group-end) td {
  background-color: #f8d7da;
}

.f1-table-abmeldung tr:nth-child(odd):not(.f1-table-group):not(.f1-table-group-end) td {
  background-color: var(--hsh-light-red);
}

.f1-table-abmeldung tr:hover:not(.f1-table-group):not(.f1-table-group-end) td {
  background-color: #f5c6cb;
}

.f1-table-abmeldung input[type=checkbox] {
  accent-color: var(--hsh-red);
}

.f1-table-abmeldung thead th:first-child,
.f1-table-abmeldung thead th:last-child {
  background-color: var(--hsh-red);
}

.f1-table-anmeldung {
  background-color: var(--hsh-light-green);
}

.f1-table-anmeldung th {
  background-color: var(--hsh-green);
  color: white;
}

.f1-table-anmeldung td {
  background-color: var(--hsh-light-green);
  color: inherit;
}

.f1-table-anmeldung tr:nth-child(even):not(.f1-table-group):not(.f1-table-group-end) td {
  background-color: #e6f4fa;
}

.f1-table-anmeldung tr:nth-child(odd):not(.f1-table-group):not(.f1-table-group-end) td {
  background-color: var(--hsh-light-green);
}

.f1-table-anmeldung tr:hover:not(.f1-table-group):not(.f1-table-group-end) td {
  background-color: #a8d5a5;
}

.f1-table-anmeldung input[type=checkbox] {
  accent-color: var(--hsh-green);
}

.f1-table-anmeldung thead th:first-child,
.f1-table-anmeldung thead th:last-child {
  background-color: var(--hsh-green);
}

.f1-table-all-labs {
  background-color: var(--hsh-light-blue);
}

.f1-table-all-labs th {
  background-color: var(--hsh-blue);
  color: white;
}

.f1-table-all-labs td {
  background-color: var(--hsh-light-blue);
  color: inherit;
}

.f1-table-all-labs tr:nth-child(even):not(.f1-table-group):not(.f1-table-group-end) td {
  background-color: #e6f4fa;
}

.f1-table-all-labs tr:nth-child(odd):not(.f1-table-group):not(.f1-table-group-end) td {
  background-color: var(--hsh-light-blue);
}

.f1-table-all-labs tr:hover:not(.f1-table-group):not(.f1-table-group-end) td {
  background-color: #b3e5fc;
}

.f1-table-all-labs input[type=checkbox] {
  accent-color: var(--hsh-blue);
}

.f1-table-all-labs thead th:first-child,
.f1-table-all-labs thead th:last-child {
  background-color: var(--hsh-blue);
}

/* Compact table variant: removes the forced min-width and sticky/action
   column constraints so tables can shrink to the available space without
   globally reducing readability. */
.f1-table-compact {
  min-width: auto;
}

.f1-table-compact th:first-child,
.f1-table-compact td:first-child,
.f1-table-compact th:last-child,
.f1-table-compact td:last-child {
  position: static;
  min-width: auto;
}

/* Flexible table variant: allows text columns to wrap and disables the
   global sticky side columns / action-column min-width so wide tables can
   use available space more efficiently. Numeric and action columns can be
   kept compact via the .f1-col-* utility classes below. */
.f1-table-flex {
  min-width: 0;
}
.f1-table-flex th,
.f1-table-flex td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.f1-table-flex th:first-child,
.f1-table-flex td:first-child,
.f1-table-flex th:last-child,
.f1-table-flex td:last-child {
  position: static;
  left: auto;
  right: auto;
  min-width: 0;
}
.f1-table-flex .f1-col-nowrap,
.f1-table-flex .f1-col-numeric,
.f1-table-flex .f1-col-actions {
  white-space: nowrap;
}
.f1-table-flex .f1-col-numeric {
  text-align: right;
}
.f1-table-flex .f1-col-actions {
  width: 1%;
  text-align: center;
  vertical-align: middle;
}
.f1-table-flex .f1-col-wrap {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Scroll wrapper */
.f1-table-scroll {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Sortable styles */
.sortable {
  cursor: pointer;
  position: relative;
}

.sortable:after {
  content: "▲";
  position: absolute;
  right: 10px;
  font-size: 0.8em;
  color: #ccc;
  display: inline;
}

.sortable.sorted-asc:after {
  content: "▲";
  color: #333;
}

.sortable.sorted-desc:after {
  content: "▼";
  color: #333;
}

/* Sortable table specific adjustments */
.f1-table.sortable-table {
  table-layout: auto; /* Ensure sortable tables use auto layout for better column sizing */
}

/* Button sizing in tables */
.f1-table .f1-button {
  min-width: 80px; /* Ensure buttons have consistent width */
  white-space: nowrap; /* Prevent button text from wrapping */
}

/* Inline form inside table action columns */
.f1-table .form-inline {
  display: inline;
}

.f1-table .form-inline .f1-button {
  min-width: auto;
}

/* Subtotal and total rows */
.f1-table-subtotal {
  background-color: var(--f1-light);
  font-weight: 500;
}

.f1-table-subtotal td {
  border-top: 2px solid var(--f1-border);
}

.f1-table-total {
  background-color: var(--f1-light);
  font-weight: bold;
  border-top: 2px solid var(--f1-dark);
}

.f1-table-total td {
  border-top: 2px solid var(--f1-dark);
}

/* Group body: wraps a logical block of detail rows plus its GESAMT row.
   Draws a frame around the block so each group is clearly separated. */
.f1-table tbody.f1-table-group-body tr td {
  background-color: var(--f1-light);
  border-bottom: 1px solid var(--f1-border);
}

.f1-table tbody.f1-table-group-body tr:first-child td {
  border-top: 1px solid var(--f1-dark);
}

.f1-table tbody.f1-table-group-body tr:last-child td {
  border-bottom: 1px solid var(--f1-dark);
}

.f1-table tbody.f1-table-group-body tr td:first-child {
  border-left: 1px solid var(--f1-dark);
}

.f1-table tbody.f1-table-group-body tr td:last-child {
  border-right: 1px solid var(--f1-dark);
}

/* Group-end row: marks the end of a logical group (e.g. GESAMT row). */
.f1-table tbody.f1-table-group-body tr.f1-table-group-end td {
  font-weight: bold;
  border-top: 1px solid var(--f1-dark);
}

/* Spacer row used between groups to add visual breathing room. */
.f1-table-group-spacer td {
  padding: 0;
  height: 16px;
  border: none;
  background: transparent;
}

/* Utility styles */
.no-data {
  text-align: center;
  color: var(--f1-dark);
  font-style: italic;
  padding: 40px 0;
}

.confirmation-text {
  text-align: center;
  font-size: 1.1rem;
  margin: 20px 0;
}

.no-print {
  display: none;
}

/* Sticky rules */
.f1-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background-clip: padding-box;
}

.f1-table th:first-child,
.f1-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background-clip: padding-box;
}

.f1-table th:last-child,
.f1-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 1;
  background-clip: padding-box;
}

.f1-table thead th:first-child {
  z-index: 3;
}

/* Matrix table cells */
.cell {
  position: relative;
  padding: 4px;
}

.cell.editing {
  z-index: 20; /* Higher than sticky columns (z-index: 3) */
  background: var(--f1-light); /* Highlight editing cell */
}

.cell.editing button {
  position: relative;
  z-index: 21; /* Above the editing cell */
}

.assign-laboratories-table .mini-assignment-form {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: center;
}
.assign-laboratories-table .mini-assignment-inputs,
.assign-laboratories-table .mini-assignment-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.assign-laboratories-table .mini-assignment-form input[type=number] {
  width: 2.5em;
  padding: 2px 4px;
  font-size: 0.9em;
  text-align: center;
}
.assign-laboratories-table .mini-assignment-form select {
  width: 3.5em;
  padding: 2px;
  font-size: 0.9em;
}
.assign-laboratories-table .mini-assignment-form button {
  padding: 2px 6px;
  font-size: 0.85em;
  min-width: auto;
  white-space: nowrap;
}
.assign-laboratories-table .mini-assignment-form button[value=save] {
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
}
.assign-laboratories-table .mini-assignment-form button[value=clear] {
  background-color: #f44336;
  color: white;
  border: none;
  cursor: pointer;
  width: 1.8em;
}
.assign-laboratories-table .matrix-table th,
.assign-laboratories-table .matrix-table td {
  padding: 8px;
  white-space: nowrap;
}
.assign-laboratories-table .matrix-table thead th {
  position: sticky;
  top: 0;
  background-color: var(--f1-primary);
  color: white;
  z-index: 10;
}
.assign-laboratories-table .matrix-table td:nth-child(1),
.assign-laboratories-table .matrix-table td:nth-child(2),
.assign-laboratories-table .matrix-table td:nth-child(3),
.assign-laboratories-table .matrix-table th:nth-child(1),
.assign-laboratories-table .matrix-table th:nth-child(2),
.assign-laboratories-table .matrix-table th:nth-child(3) {
  position: sticky;
  background-color: white;
  z-index: 5;
}
.assign-laboratories-table .matrix-table thead th:nth-child(1),
.assign-laboratories-table .matrix-table thead th:nth-child(2),
.assign-laboratories-table .matrix-table thead th:nth-child(3) {
  background-color: var(--f1-primary);
}
.assign-laboratories-table .matrix-table th:nth-child(1) {
  left: 0;
}
.assign-laboratories-table .matrix-table th:nth-child(2) {
  left: 150px;
}
.assign-laboratories-table .matrix-table th:nth-child(3) {
  left: 230px;
}
.assign-laboratories-table .matrix-table td:nth-child(1) {
  left: 0;
}
.assign-laboratories-table .matrix-table td:nth-child(2) {
  left: 150px;
}
.assign-laboratories-table .matrix-table td:nth-child(3) {
  left: 230px;
}
@media (max-width: 768px) {
  .assign-laboratories-table .matrix-table th:nth-child(1),
  .assign-laboratories-table .matrix-table td:nth-child(1) {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .assign-laboratories-table .matrix-table th:nth-child(2) {
    left: 120px;
  }
  .assign-laboratories-table .matrix-table th:nth-child(3) {
    left: 180px;
  }
  .assign-laboratories-table .matrix-table td:nth-child(2) {
    left: 120px;
  }
  .assign-laboratories-table .matrix-table td:nth-child(3) {
    left: 180px;
  }
  .assign-laboratories-table .mini-assignment-form {
    flex-direction: column;
    gap: 2px;
  }
  .assign-laboratories-table .mini-assignment-form input[type=number],
  .assign-laboratories-table .mini-assignment-form select {
    width: 100%;
  }
}

/* Base Icons Foundation */
.file-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 8px;
}

.preview-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--f1-primary);
}

.preview-icon .file-icon {
  filter: none !important; /* Remove any filter that might be affecting color */
  opacity: 1 !important; /* Ensure full opacity */
}

.tab-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.section-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-group {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  color: #000;
}

.icon-separator {
  margin: 0 5px;
  font-weight: bold;
}

.icon-group .section-icon {
  width: 24px;
  height: 24px;
}

/* ===================================
   Other Section Icons
   =================================== */
/* Banner icon */
.banner-icon {
  background-image: var(--banner-icon-svg-black) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Display icon */
.display-icon {
  background-image: var(--display-icon-svg-black) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.pdf-icon {
  background-image: var(--pdf-icon-svg) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ===================================
   Video Icons
   =================================== */
/* Navigation/General video icon */
.video-icon {
  background-image: var(--video-icon-svg-black) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Mode preview video icon */
.mode-video-icon {
  background-image: var(--video-icon-svg-blue) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* File icon for video */
.file-icon.video-icon {
  background-image: var(--video-icon-svg-blue) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Upload section video title icon */
.upload-section-title.video-title::before {
  background-image: var(--video-icon-svg-blue) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ===================================
   Presentation Icons
   =================================== */
/* Navigation/General presentation icon */
.presentations-icon {
  background-image: var(--presentation-icon-svg-black) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Mode preview presentation icon */
.mode-presentation-icon {
  background-image: var(--presentation-icon-svg-blue) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Upload section presentation title icon */
.upload-section-title.presentation-title::before {
  background-image: var(--presentation-icon-svg-blue) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* ===================================
   Announcements Icons
   =================================== */
/* Mode preview announcements icon */
.mode-announcements-icon {
  background-image: var(--announcements-icon-svg-black) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.header-text h1 {
  color: var(--f1-primary);
  font-size: 24px;
  font-weight: normal;
  margin: 0;
}

.highlight {
  background-color: #ffffcc; /* Light yellow background */
  padding: 0 3px;
  font-weight: bold;
  border-radius: 3px; /* Optional: rounded corners */
}

/* Enhanced field hint styling */
.field-hint {
  margin-top: 8px;
  padding: 10px 12px;
  background-color: #f8f9fa;
  border-left: 3px solid var(--hsh-yellow);
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: var(--hsh-grey);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Warning variant for important constraints */
.field-hint.warning {
  border-left-color: var(--hsh-orange);
  background-color: rgba(255, 165, 0, 0.05);
}

/* For highlighting specific text within hints */
.field-hint .highlight {
  display: inline-block;
  background-color: #ffffcc;
  padding: 0 3px;
  font-weight: bold;
  border-radius: 3px;
}

/* Styled list for better scanability */
.constraint-list {
  margin: 0;
  padding-left: 20px;
  list-style-type: none;
}

.constraint-list li {
  position: relative;
  padding: 3px 0;
}

.constraint-list li::before {
  content: "•";
  color: var(--hsh-orange);
  font-weight: bold;
  position: absolute;
  left: -15px;
}

/* Success/Error Message Styles */
.alert {
  font-weight: bold;
  font-size: 1.2em;
  padding: 1em;
  border-radius: 4px;
  margin-bottom: 1.5em;
}

.alert-success {
  color: var(--hsh-green);
  background-color: #e6f4ea;
  border: 1px solid var(--hsh-green);
}

.alert-error {
  color: var(--hsh-red);
  background-color: #fbeaea;
  border: 1px solid var(--hsh-red);
}

.alert-warning {
  color: #8a5a00;
  background-color: #fff7e6;
  border: 1px solid #8a5a00;
}

.alert-info {
  color: #2f4b66;
  background-color: #eef3f8;
  border: 1px solid #2f4b66;
}

/* Specific styles for the generate-lists page */
.generate-lists-description {
  font-size: 1.1em;
  color: var(--f1-dark);
  background-color: #f8f9fa;
  padding: 1em;
  border-left: 4px solid var(--hsh-blue);
  border-radius: 4px;
  margin-bottom: 2em;
}

.generate-lists-description code {
  font-family: monospace;
  background-color: #e9ecef;
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: #666;
  font-size: 0.9em;
}

/* Inline form display helper */
.form-inline {
  display: inline;
}

/* Warning icon sizing */
.warning-icon {
  font-size: 18px;
}

/* Spacing utilities generated from a token map */
.m-xs {
  margin: var(--space-xs);
}

.mt-xs {
  margin-top: var(--space-xs);
}

.mb-xs {
  margin-bottom: var(--space-xs);
}

.ml-xs {
  margin-left: var(--space-xs);
}

.mr-xs {
  margin-right: var(--space-xs);
}

.mx-xs {
  margin-left: var(--space-xs);
  margin-right: var(--space-xs);
}

.my-xs {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.p-xs {
  padding: var(--space-xs);
}

.pt-xs {
  padding-top: var(--space-xs);
}

.pb-xs {
  padding-bottom: var(--space-xs);
}

.pl-xs {
  padding-left: var(--space-xs);
}

.pr-xs {
  padding-right: var(--space-xs);
}

.px-xs {
  padding-left: var(--space-xs);
  padding-right: var(--space-xs);
}

.py-xs {
  padding-top: var(--space-xs);
  padding-bottom: var(--space-xs);
}

.m-sm {
  margin: var(--space-sm);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.ml-sm {
  margin-left: var(--space-sm);
}

.mr-sm {
  margin-right: var(--space-sm);
}

.mx-sm {
  margin-left: var(--space-sm);
  margin-right: var(--space-sm);
}

.my-sm {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.p-sm {
  padding: var(--space-sm);
}

.pt-sm {
  padding-top: var(--space-sm);
}

.pb-sm {
  padding-bottom: var(--space-sm);
}

.pl-sm {
  padding-left: var(--space-sm);
}

.pr-sm {
  padding-right: var(--space-sm);
}

.px-sm {
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.py-sm {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.m-md {
  margin: var(--space-md);
}

.mt-md {
  margin-top: var(--space-md);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.ml-md {
  margin-left: var(--space-md);
}

.mr-md {
  margin-right: var(--space-md);
}

.mx-md {
  margin-left: var(--space-md);
  margin-right: var(--space-md);
}

.my-md {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.p-md {
  padding: var(--space-md);
}

.pt-md {
  padding-top: var(--space-md);
}

.pb-md {
  padding-bottom: var(--space-md);
}

.pl-md {
  padding-left: var(--space-md);
}

.pr-md {
  padding-right: var(--space-md);
}

.px-md {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.py-md {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.m-lg {
  margin: var(--space-lg);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.ml-lg {
  margin-left: var(--space-lg);
}

.mr-lg {
  margin-right: var(--space-lg);
}

.mx-lg {
  margin-left: var(--space-lg);
  margin-right: var(--space-lg);
}

.my-lg {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.p-lg {
  padding: var(--space-lg);
}

.pt-lg {
  padding-top: var(--space-lg);
}

.pb-lg {
  padding-bottom: var(--space-lg);
}

.pl-lg {
  padding-left: var(--space-lg);
}

.pr-lg {
  padding-right: var(--space-lg);
}

.px-lg {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.py-lg {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.m-xl {
  margin: var(--space-xl);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.ml-xl {
  margin-left: var(--space-xl);
}

.mr-xl {
  margin-right: var(--space-xl);
}

.mx-xl {
  margin-left: var(--space-xl);
  margin-right: var(--space-xl);
}

.my-xl {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.p-xl {
  padding: var(--space-xl);
}

.pt-xl {
  padding-top: var(--space-xl);
}

.pb-xl {
  padding-bottom: var(--space-xl);
}

.pl-xl {
  padding-left: var(--space-xl);
}

.pr-xl {
  padding-right: var(--space-xl);
}

.px-xl {
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.py-xl {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* Negative monetary value highlight */
.text-negative {
  color: var(--f1-error);
  font-weight: bold;
}

/* Empty table cell message */
.table-empty {
  text-align: center;
  padding: var(--space-lg);
}

/* Flash messages */
.f1-flash-messages {
  margin-bottom: var(--space-md);
}

.f1-flash-message {
  padding: var(--space-sm) var(--space-md);
  border-radius: 4px;
  margin-bottom: var(--space-xs);
  border: 1px solid transparent;
}

.f1-flash-success {
  color: var(--hsh-green);
  background-color: var(--hsh-light-green);
  border-color: var(--hsh-green);
}

.f1-flash-error {
  color: var(--hsh-red);
  background-color: var(--hsh-light-red);
  border-color: var(--hsh-red);
}

.f1-flash-warning {
  color: #8a5a00;
  background-color: #fff7e6;
  border-color: #8a5a00;
}

.f1-flash-info {
  color: #2f4b66;
  background-color: #eef3f8;
  border-color: #2f4b66;
}

/* Conditions List */
/* Enhanced Conditions Section */
.conditions-section {
  background-color: #f8f9fa;
  border: 2px solid var(--hsh-blue);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.conditions-title {
  font-size: 1.5em;
  color: var(--hsh-blue);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.conditions-title i {
  color: var(--hsh-orange);
}

.conditions-intro {
  font-size: 1.1em;
  color: var(--f1-dark);
  margin-bottom: 15px;
}

.conditions-list {
  list-style: none;
  padding: 0;
}

.conditions-list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.conditions-list li::before {
  content: "✓";
  color: var(--hsh-green);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.conditions-list input[type=checkbox] {
  margin-right: 10px;
  accent-color: var(--hsh-blue);
}

.conditions-list label {
  cursor: pointer;
}

/* Warning overlay and dialog styles (using existing variables) */
.warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-dialog {
  background: var(--f1-white);
  padding: var(--space-lg);
  border-radius: 8px;
  max-width: 500px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--hsh-red);
}

.warning-dialog h2 {
  color: var(--hsh-red);
  margin-top: 0;
  font-size: var(--font-size-xl);
}

.warning-dialog p {
  color: var(--f1-dark);
  font-size: var(--font-size-md);
}

.warning-dialog .button-container {
  margin-top: var(--space-md);
  gap: var(--space-sm);
}

.warning-dialog .f1-button.secondary {
  background-color: var(--hsh-grey);
}

.warning-dialog .f1-button.secondary:hover {
  background-color: var(--hsh-grey); /* Darker shade if needed */
}

.m-0 {
  margin: 0;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.ml-0 {
  margin-left: 0;
}

.mr-0 {
  margin-right: 0;
}

.mx-0 {
  margin-left: 0;
  margin-right: 0;
}

.my-0 {
  margin-top: 0;
  margin-bottom: 0;
}

.p-0 {
  padding: 0;
}

.pt-0 {
  padding-top: 0;
}

.pb-0 {
  padding-bottom: 0;
}

.pl-0 {
  padding-left: 0;
}

.pr-0 {
  padding-right: 0;
}

.px-0 {
  padding-left: 0;
  padding-right: 0;
}

.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}

.m-xs {
  margin: var(--space-xs);
}

.mt-xs {
  margin-top: var(--space-xs);
}

.mb-xs {
  margin-bottom: var(--space-xs);
}

.ml-xs {
  margin-left: var(--space-xs);
}

.mr-xs {
  margin-right: var(--space-xs);
}

.mx-xs {
  margin-left: var(--space-xs);
  margin-right: var(--space-xs);
}

.my-xs {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.p-xs {
  padding: var(--space-xs);
}

.pt-xs {
  padding-top: var(--space-xs);
}

.pb-xs {
  padding-bottom: var(--space-xs);
}

.pl-xs {
  padding-left: var(--space-xs);
}

.pr-xs {
  padding-right: var(--space-xs);
}

.px-xs {
  padding-left: var(--space-xs);
  padding-right: var(--space-xs);
}

.py-xs {
  padding-top: var(--space-xs);
  padding-bottom: var(--space-xs);
}

.m-sm {
  margin: var(--space-sm);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.ml-sm {
  margin-left: var(--space-sm);
}

.mr-sm {
  margin-right: var(--space-sm);
}

.mx-sm {
  margin-left: var(--space-sm);
  margin-right: var(--space-sm);
}

.my-sm {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.p-sm {
  padding: var(--space-sm);
}

.pt-sm {
  padding-top: var(--space-sm);
}

.pb-sm {
  padding-bottom: var(--space-sm);
}

.pl-sm {
  padding-left: var(--space-sm);
}

.pr-sm {
  padding-right: var(--space-sm);
}

.px-sm {
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.py-sm {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.m-md {
  margin: var(--space-md);
}

.mt-md {
  margin-top: var(--space-md);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.ml-md {
  margin-left: var(--space-md);
}

.mr-md {
  margin-right: var(--space-md);
}

.mx-md {
  margin-left: var(--space-md);
  margin-right: var(--space-md);
}

.my-md {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.p-md {
  padding: var(--space-md);
}

.pt-md {
  padding-top: var(--space-md);
}

.pb-md {
  padding-bottom: var(--space-md);
}

.pl-md {
  padding-left: var(--space-md);
}

.pr-md {
  padding-right: var(--space-md);
}

.px-md {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.py-md {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.m-lg {
  margin: var(--space-lg);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.ml-lg {
  margin-left: var(--space-lg);
}

.mr-lg {
  margin-right: var(--space-lg);
}

.mx-lg {
  margin-left: var(--space-lg);
  margin-right: var(--space-lg);
}

.my-lg {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.p-lg {
  padding: var(--space-lg);
}

.pt-lg {
  padding-top: var(--space-lg);
}

.pb-lg {
  padding-bottom: var(--space-lg);
}

.pl-lg {
  padding-left: var(--space-lg);
}

.pr-lg {
  padding-right: var(--space-lg);
}

.px-lg {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.py-lg {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.m-xl {
  margin: var(--space-xl);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.ml-xl {
  margin-left: var(--space-xl);
}

.mr-xl {
  margin-right: var(--space-xl);
}

.mx-xl {
  margin-left: var(--space-xl);
  margin-right: var(--space-xl);
}

.my-xl {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.p-xl {
  padding: var(--space-xl);
}

.pt-xl {
  padding-top: var(--space-xl);
}

.pb-xl {
  padding-bottom: var(--space-xl);
}

.pl-xl {
  padding-left: var(--space-xl);
}

.pr-xl {
  padding-right: var(--space-xl);
}

.px-xl {
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.py-xl {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* Negative top margin utility for tightening helper text to controls */
.mt-negative-sm {
  margin-top: -0.5rem;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background-color: #f8f9fa;
}

.login-box {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 400px;
}

.login-header {
  display: flex;
  text-align: center;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.login-header h1 {
  color: var(--f1-primary);
  font-size: 24px;
  font-weight: 400;
  text-align: center;
  flex-grow: 1;
}

.login-logo {
  height: 120px;
  width: auto;
}

.login-wortmarke {
  height: 100px;
  width: auto;
}

/* Error message box styling */
.error-message {
  background: #fff3f3;
  color: var(--f1-error);
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-top: 5px;
}

.error-icon {
  background: #dc3545;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
}

/* Keep login form buttons centered */
.login-form .button-container {
  justify-content: center;
}

/* Logo and header alignment (moved from inline critical CSS in template) */
.logo-group {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.login-logo {
  height: 120px;
  width: auto;
  display: block;
}

.login-wortmarke {
  height: 100px;
  width: auto;
  display: block;
}

/* Login-specific alert sizing to keep banner readable and balanced */
.login-box .alert {
  font-size: 1em; /* slightly smaller than global alerts */
  line-height: 1.35;
  padding: 0.9em 1em;
}

/* Slightly reduce title and spacing for narrow login box */
.login-box .system-title {
  padding: 10px 14px;
}

.login-box .system-title h1 {
  font-size: 20px;
}

.faculty-header {
  text-align: center;
  padding: 20px;
  background-color: var(--f1-primary);
  color: var(--f1-white);
  margin-bottom: 40px;
}

.faculty-header h1 {
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}

.faculty-header h2,
.faculty-header h3 {
  font-style: italic;
  font-weight: bold;
  margin: 0;
}

.faculty-header h2 {
  font-size: 24px;
}

.faculty-header h3 {
  font-size: 20px;
  color: var(--f1-white);
}

.preview-content {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
}

/* Styling for Laborordnung approval */
.laborordnung-approval {
  display: flex;
  align-items: flex-start;
  margin-top: 30px;
  padding: 10px 0;
}

.laborordnung-approval label {
  display: flex;
  align-items: flex-start;
  gap: 20px; /* Space between checkbox and text */
}

.laborordnung-approval input[type=checkbox] {
  width: 24px;
  height: 24px;
  accent-color: var(--hsh-blue);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 4px; /* Small offset to align with first line of text */
}

.laborordnung-approval span {
  font-size: 1.4rem;
  line-height: 1.4;
  display: inline; /* Changed from block to inline */
}

.laborordnung-approval a {
  color: var(--hsh-blue);
  text-decoration: underline;
  font-size: inherit;
}

.email-input-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.email-input-field {
  width: 120px;
}

.email-bold-span {
  font-weight: bold;
}

.admin-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.admin-sidebar {
  width: fit-content; /* Adapt to content width */
  min-width: 200px; /* Minimum readable width */
  max-width: 280px; /* Cap to prevent excessive width */
  background: #f8f9fa; /* Light background */
  color: #333; /* Dark text */
  padding: 20px 0;
  border-right: 1px solid #dee2e6; /* Subtle border */
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0; /* Don't shrink when content is wide */
}

.sidebar-header {
  padding: 0 20px 10px; /* Reduced bottom padding */
  border-bottom: 1px solid #dee2e6;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--hsh-blue); /* Use hshblue */
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-header {
  padding: 20px 20px 10px;
  font-size: 0.8em;
  text-transform: uppercase;
  color: #6c757d; /* Muted text */
}

.nav-item a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap; /* Prevent label wrapping - sidebar adapts to longest label */
}

.nav-item a:hover {
  background-color: var(--hsh-blue); /* Use hshblue */
  color: #fff;
}

.nav-item.active a {
  background-color: var(--hsh-blue); /* Use hshblue */
  color: #fff;
}

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

.logout {
  margin-top: 20px;
  border-top: 1px solid #dee2e6;
}

/* Sidebar logout button — styled to match nav-item a links */
.nav-logout-button {
  background: none;
  border: none;
  padding: 12px 20px;
  margin: 0;
  color: #333;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}
.nav-logout-button:hover {
  background-color: var(--hsh-blue);
  color: #fff;
}
.nav-logout-button i {
  width: 20px;
  text-align: center;
}

/* Main Content */
.admin-content {
  flex: 1;
  padding: 20px; /* Adjusted padding */
  background: #ffffff; /* White background */
  overflow-x: auto; /* Prevent overflow from overlapping the sidebar */
}

.content-header {
  background: #f8f9fa; /* Light background */
  padding: 10px 20px; /* Reduced padding */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px; /* Reduced margin */
}

.semester-info {
  display: flex;
  gap: 20px;
  color: #6c757d; /* Muted text */
  margin-top: 5px; /* Reduced margin */
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  background: #ffffff; /* White background */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 24px;
  font-weight: bold;
  color: var(--hsh-blue);
}

body.dashboard .f1-table td:nth-child(2) {
  text-align: left;
}

.section-margin-top {
  margin-top: 40px;
}

.flex-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.input-padding {
  padding: 8px;
}

.select-max-width {
  max-width: 200px;
}

.btn-success {
  background-color: #28a745;
}

.btn-danger {
  background-color: #dc3545;
}

.text-muted {
  color: #666;
  font-size: 0.9em;
}

.status-active {
  color: #28a745;
  font-weight: bold;
}

.status-archived {
  color: #6c757d;
}

/* Sidebar Footer - Utility forms at bottom of sidebar */
.sidebar-footer {
  margin-top: 20px;
  padding: 15px 20px;
  border-top: 2px solid #dee2e6;
  background: #e9ecef;
}

.sidebar-footer form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-footer label {
  font-size: 0.85em;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sidebar-footer select,
.sidebar-footer input[type=text],
.sidebar-footer input[type=number] {
  padding: 6px 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.95em;
  background: #fff;
  color: #333;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-footer button,
.sidebar-footer input[type=submit] {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background-color: var(--hsh-blue);
  color: #fff;
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
}

.sidebar-footer button:hover,
.sidebar-footer input[type=submit]:hover {
  opacity: 0.9;
}

@keyframes moveLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}
/* 8.3 Drag-and-Drop Animations */
@keyframes updown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@media (max-width: 1440px) {
  .page-wrapper,
  .header-content,
  .container,
  .footer-content {
    max-width: 100%;
    padding: 0 30px;
  }
}
@media (max-width: 768px) {
  .page-wrapper,
  .header-content,
  .container,
  .footer-content {
    padding: 0 15px;
  }
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  .button-container {
    flex-direction: column;
  }
  .f1-button {
    width: 100%;
  }
  .hide-mobile {
    display: none;
  }
}
/* Print styles */
@media print {
  body * {
    visibility: hidden;
  }
  .info-box-all-labs,
  .info-box-all-labs * {
    visibility: visible;
  }
  .info-box-all-labs {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}
/* Status badges for project cards */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
  white-space: nowrap;
}

.status-locked {
  background-color: #ffc107;
  color: #000;
}

.status-full {
  background-color: #dc3545;
  color: #fff;
}

.status-booked {
  background-color: #28a745;
  color: #fff;
}

.status-available {
  background-color: #28a745;
  color: #fff;
}

.status-unlimited {
  background-color: #6c757d;
  color: #fff;
}

/* Semester management actions: three equal columns in one row */
.semester-current {
  clear: left;
  width: 100%;
  margin: 0 0 20px 0;
  font-size: 1rem;
  color: var(--f1-dark);
}

.semester-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.semester-action-card {
  display: flex;
  flex-direction: column;
}

.semester-action-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.semester-action-card .edit-form-input,
.semester-action-card .edit-form-select {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.semester-action-card .field-hint {
  margin-top: 4px;
}

@media (max-width: 768px) {
  .semester-actions {
    grid-template-columns: 1fr;
  }
}
/* Parameter form */
.parameter-form {
  margin-top: 10px;
}

.registration-dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* Auswertung table */
.auswertung-table {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
}

/* Header alignment */
.auswertung-table thead th {
  text-align: center;
  padding: 12px 16px;
  vertical-align: middle;
}

.auswertung-table thead th.auswertung-col-text {
  text-align: left;
}

.auswertung-table thead th.auswertung-col-type,
.auswertung-table thead th.auswertung-col-numeric,
.auswertung-table thead th.auswertung-col-status {
  text-align: center;
}

/* Body row hover */
.auswertung-table tbody tr {
  transition: background-color 0.2s ease;
  color: var(--f1-dark);
  background-color: transparent;
}

.auswertung-table tbody tr:hover {
  background-color: var(--f1-light);
  filter: none;
}

/* Body cell alignment */
.auswertung-table tbody td {
  color: inherit;
  text-align: center;
  padding: 10px 16px;
  vertical-align: middle;
}

.auswertung-table tbody td.auswertung-col-text {
  text-align: left;
}

.auswertung-table tbody td.auswertung-col-type,
.auswertung-table tbody td.auswertung-col-numeric {
  text-align: center;
}

.auswertung-table tbody td.auswertung-col-status {
  text-align: center;
  padding: 10px 16px;
  vertical-align: middle;
  background-color: transparent !important;
}

/* Status badge — compact pill matching row height */
.auswertung-table tbody td.auswertung-col-status .status-indicator {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.auswertung-table tbody td.auswertung-col-status .status-indicator.status-full {
  background-color: var(--hsh-red);
  color: white;
}

.auswertung-table tbody td.auswertung-col-status .status-indicator.status-available {
  background-color: #28a745;
  color: white;
}

.auswertung-table tbody td.auswertung-col-status .status-indicator.status-unlimited {
  background-color: var(--hsh-blue);
  color: white;
}

.auswertung-table tbody td.auswertung-col-status .status-indicator.status-locked {
  background-color: var(--hsh-yellow);
  color: #333;
}

/* Minimum column widths (also defined as base rules below) */
.auswertung-col-text {
  min-width: 200px;
}

.auswertung-col-numeric {
  min-width: 100px;
}

.auswertung-col-status {
  min-width: 120px;
}

/* Total summary */
.total-summary {
  margin-top: 20px;
  padding: 15px;
  background-color: var(--f1-light);
  border-radius: 6px;
  text-align: center;
  font-size: 1.1em;
}

/* Action bar */
.action-bar {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--f1-border);
}

/* Page header with title and primary action */
.page-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.page-header h3 {
  margin: 0;
  color: var(--hsh-blue);
  font-size: 1.5rem;
  font-weight: 600;
}

/* Flash messages container */
.flash-messages {
  margin-bottom: 20px;
}

.flash-messages .alert {
  margin-bottom: 10px;
}

.flash-messages .alert:last-child {
  margin-bottom: 0;
}

/* Action bar for secondary actions */
.action-bar {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid var(--f1-border);
}

.action-bar .button-container {
  justify-content: center;
}

.project-type-header {
  color: var(--hsh-blue);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 30px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--hsh-blue);
}

/* Grid layout for project cards */
.projekte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Individual project card */
.projekte-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--f1-border);
  display: flex;
  flex-direction: column;
}

.projekte-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(30, 190, 235, 0.15);
  border-color: var(--hsh-blue);
}

/* Card header with type and status */
.projekte-card-header {
  background: linear-gradient(135deg, var(--hsh-blue) 0%, #1aa8d1 100%);
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.projekte-card-type {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.projekte-card-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.projekte-card-status.status-available {
  background-color: #28a745;
  color: white;
}

.projekte-card-status.status-full {
  background-color: var(--hsh-red);
  color: white;
}

.projekte-card-status.status-locked {
  background-color: var(--hsh-yellow);
  color: #333;
}

/* Card body */
.projekte-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.projekte-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--hsh-blue);
  margin-bottom: 8px;
}

.projekte-card-type-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--hsh-blue) 0%, #1aa8d1 100%);
  color: white;
  margin-left: 8px;
}

.projekte-card-provider {
  font-size: 0.95rem;
  color: var(--f1-dark);
  font-weight: 500;
  margin-bottom: 12px;
}

.projekte-card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--f1-dark);
  margin-bottom: 16px;
  flex: 1;
}

/* Card details section */
.projekte-card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--f1-border);
  padding-top: 12px;
}

.projekte-card-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}

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

.detail-label {
  font-weight: 600;
  color: var(--f1-dark);
}

.detail-value {
  color: var(--f1-dark);
  text-align: right;
}

/* Card actions */
.projekte-card-actions {
  padding: 16px 20px;
  background-color: #f8f9fa;
  border-top: 1px solid var(--f1-border);
  display: flex;
  gap: 10px;
  justify-content: center;
}

.projekte-card-actions .form-inline {
  display: inline;
}

.projekte-card-actions .f1-button {
  min-width: auto;
  white-space: nowrap;
}

/* Empty state message */
.no-projects-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--f1-dark);
  font-size: 1.2rem;
  background-color: var(--f1-light);
  border-radius: 12px;
  border: 2px dashed var(--f1-border);
  margin: 30px 0;
}

/* Project form */
.projekte-form {
  max-width: 800px;
  margin: 0 auto;
}

/* Form grid layout for responsive forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* Form sections */
.form-section {
  background: white;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--f1-border);
}

.form-section h4 {
  color: var(--hsh-blue);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--hsh-blue);
}

/* Button container left alignment */
.button-container-left {
  justify-content: flex-start;
}

/* Inline form inside table action columns */
.inline-form {
  display: inline;
}

.inline-form .f1-button {
  min-width: auto;
}

/* Enhanced radio button styling - matching laboranmeldung style */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-option:hover {
  background-color: rgba(30, 190, 235, 0.05);
  border-color: var(--hsh-blue);
}

.radio-option input[type=radio] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d3d3d3;
  border-radius: 50%;
  outline: none;
  transition: all 0.2s;
  position: relative;
  cursor: pointer;
  margin: 0;
  background: #fff;
}

.radio-option input[type=radio]:checked {
  border-color: var(--hsh-blue);
}

.radio-option input[type=radio]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: var(--hsh-blue);
  border-radius: 50%;
}

.radio-option input[type=radio]:focus {
  box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.08);
}

.radio-option span {
  font-size: 1rem;
  color: var(--f1-dark);
  font-weight: 500;
}

.radio-option input[type=radio]:checked + span,
.radio-option:has(input[type=radio]:checked) {
  font-weight: 500;
  color: var(--hsh-blue);
  border-color: var(--hsh-blue);
}

/* Responsive design for project cards */
@media (max-width: 768px) {
  .page-header {
    align-items: stretch;
  }
  .page-header h3 {
    font-size: 1.3rem;
  }
  .page-header .f1-button {
    width: 100%;
  }
  .projekte-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .projekte-card-body {
    padding: 16px;
  }
  .projekte-card-title {
    font-size: 1.1rem;
  }
  .projekte-card-description {
    font-size: 0.9rem;
  }
  .projekte-card-detail {
    font-size: 0.85rem;
  }
  .projekte-card-actions {
    flex-direction: column;
  }
  .projekte-card-actions .f1-button {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .projekte-grid {
    grid-template-columns: 1fr;
  }
}
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 24px;
  font-weight: bold;
  color: var(--hsh-blue);
}

.quick-actions {
  margin-top: 30px;
}

.quick-actions h2 {
  color: var(--hsh-blue);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--hsh-blue);
}

.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--f1-border);
  text-decoration: none;
  transition: all 0.3s ease;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(30, 190, 235, 0.15);
  border-color: var(--hsh-blue);
}

.action-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--hsh-blue) 0%, #1aa8d1 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-card-icon i {
  font-size: 28px;
  color: white;
}

.action-card-content h3 {
  color: var(--hsh-blue);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.action-card-content p {
  color: var(--f1-dark);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

/* Total summary box (used by dashboard and auswertung) */
.total-summary {
  margin-top: 20px;
  padding: 16px;
  background-color: var(--hsh-light-blue);
  border-left: 4px solid var(--hsh-blue);
  border-radius: 4px;
  font-size: 1.1rem;
  color: var(--f1-dark);
}

.total-summary strong {
  color: var(--hsh-blue);
}

/* Projekte form — textarea (Beschreibung, Start/Raum/Tage/Zeiten) */
.projekte-form .edit-form-group textarea {
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 6px;
  min-height: 100px;
  resize: vertical;
}

/* Sticky action bar */
.action-bar.sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  margin: -20px -20px 20px -20px;
  border-bottom: 1px solid var(--f1-border);
}

/* Flash messages */
.flash-messages {
  margin-bottom: 20px;
}

.flash-messages .alert {
  margin-bottom: 10px;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid;
}

.flash-messages .alert-info {
  background-color: var(--hsh-light-blue);
  border-left-color: var(--hsh-blue);
  color: var(--hsh-dark);
}

.flash-messages .alert-success {
  background-color: var(--hsh-light-green);
  border-left-color: var(--hsh-green);
  color: var(--hsh-dark);
}

.flash-messages .alert-error {
  background-color: var(--hsh-light-red);
  border-left-color: var(--hsh-red);
  color: var(--hsh-dark);
}

.flash-messages .alert-warning {
  background-color: #fff3cd;
  border-left-color: #ffc107;
  color: #856404;
}

/* Filter container */
.filter-container {
  margin-bottom: 20px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--f1-border);
  border-radius: 8px;
}

.filter-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-weight: 500;
  color: var(--f1-dark);
  font-size: 0.9em;
}

.filter-select,
.filter-container .search-input {
  padding: 10px 12px;
  border: 2px solid var(--f1-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-family);
  background-color: white;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-select {
  cursor: pointer;
}

.filter-container .search-input:focus {
  outline: none;
  border-color: var(--hsh-blue);
  box-shadow: 0 0 0 3px rgba(30, 190, 235, 0.1);
}

.filter-container .search-input::placeholder {
  color: #999;
}

/* History table column widths */
.f1-table-flex .f1-col-wide {
  width: 30%;
  min-width: 200px;
}

.f1-table-flex .f1-col-medium {
  width: 20%;
  min-width: 150px;
}

.f1-table-flex .f1-col-small {
  width: 80px;
  min-width: 60px;
  text-align: center;
}

/* History table row states */
.history-row {
  cursor: pointer;
}

.history-details-row {
  background-color: #f8f9fa;
}

.history-details-row td {
  padding: 0;
  border: none;
}

/* Project details (expandable section under history row) */
.project-details {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.details-section {
  background: white;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--f1-border);
}

.details-section h4 {
  color: var(--hsh-blue);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--hsh-blue);
}

.details-section p {
  margin: 0;
  line-height: 1.6;
  color: var(--f1-dark);
}

.details-section.full-width {
  grid-column: 1/-1;
}

/* Toggle details button */
.toggle-details {
  margin-right: 8px;
  background-color: var(--hsh-blue);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.2s;
}

.toggle-details:hover {
  background-color: #1aa8d1;
}

/* Action buttons column */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.action-buttons .f1-button {
  width: 100%;
  white-space: nowrap;
  font-size: 12px;
  padding: 4px 8px;
  min-width: auto;
}

.action-buttons .form-inline {
  display: block;
  margin: 0;
}

.action-buttons .form-inline .f1-button {
  width: 100%;
}

/* Responsive design for history page */
@media (max-width: 768px) {
  .project-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .details-section {
    padding: 12px;
  }
  .search-input {
    max-width: 100%;
    font-size: 14px;
  }
  .toggle-details {
    width: 100%;
    margin-bottom: 8px;
  }
}

/*# sourceMappingURL=style.css.map */
