/* Modern List Styling - Universal List Components */

.pdf {
    display: unset !important;
}
/* List Container */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
}

.list-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transform: translateY(-2px);
  border-left: 4px solid #C91F0C;
}

.list-icon {
  position: relative;
  margin-right: 16px;
  flex-shrink: 0;
}

.list-type-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  background: #f5f5f5;
  padding: 4px;
}

.list-type-icon.list-type-icon--rounded-rect {
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.poi-colored-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.poi-colored-icon i {
  font-size: 1.35rem;
  color: #fff;
  line-height: 1;
}

.poi-colored-icon-letter {
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  text-transform: uppercase;
}

.list-icon .poi-colored-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.poi-colored-icon--muted {
  opacity: 0.55;
}

.list-user-icon--agb-pending {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  border: 2px dashed #FB8C00;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.list-user-icon--agb-pending .list-type-icon {
  width: 48px;
  height: 48px;
  margin: 0;
  opacity: 0.55;
  filter: grayscale(20%) saturate(0.85);
}

.list-user-icon--agb-pending::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(251, 140, 0, 0.42);
  border-radius: 10px;
  pointer-events: none;
}

.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.status-approved { background-color: #4caf50; }
.status-declined { background-color: #f44336; }
.status-no-answer { background-color: #ff9800; }
.status-not-invited { background-color: #9e9e9e; }
.status-active { background-color: #4caf50; }
.status-inactive { background-color: #9e9e9e; }
.status-pending { background-color: #ff9800; }

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

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
}

.list-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.list-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list-address,
.list-date,
.list-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
}

.list-address i,
.list-date i,
.list-meta-item i {
  color: #999;
  width: 14px;
  text-align: center;
}

.list-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.list-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-right: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.badge.green {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.badge.grey {
  background-color: #f5f5f5;
  color: #666;
}

.badge.blue {
  background-color: #e3f2fd;
  color: #1976d2;
}

.badge.red {
  background-color: #ffebee;
  color: #d32f2f;
}

.badge.orange {
  background-color: #fff3e0;
  color: #f57c00;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f5f5f5;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.action-btn:hover {
  background: #e0e0e0;
  color: #333;
  transform: scale(1.1);
}

.action-btn.view-btn:hover {
  background: #e3f2fd;
  color: #1976d2;
}

.action-btn.delete-btn:hover {
  background: #ffebee;
  color: #d32f2f;
}

.action-btn.edit-btn:hover {
  background: #f3e5f5;
  color: #7b1fa2;
}

.action-btn.merge-btn:hover {
  background: #f3e5f5;
  color: #7b1fa2;
}

.action-btn.lock-btn:hover {
  background: #fff3e0;
  color: #f57c00;
}

.action-btn.unlock-btn:hover {
  background: #e8f5e8;
  color: #388e3c;
}

.action-btn.add-btn:hover {
  background: #e8f5e8;
  color: #388e3c;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-state i {
  font-size: 4rem;
  color: #ddd;
}

.empty-state h3 {
  margin: 0 0 10px 0;
  color: #999;
}

.empty-state p {
  margin: 0;
  color: #bbb;
}

/* No results state styling */
.no-results-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-results-state i {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 16px;
}

.no-results-state h3 {
  margin: 0 0 8px 0;
  color: #333;
}

.no-results-state p {
  margin: 0;
  color: #666;
}

/* Search and Filter Components */
.search-filter-card {
  background: white;
  border-radius: 8px;
  margin-bottom: 16px;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-content {
  padding: 20px;
}

.search-box {
  position: relative;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #C91F0C;
  box-shadow: 0 0 0 2px rgba(201, 31, 12, 0.1);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
}

.filter-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-top: 16px;
}

.filter-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-count {
  font-size: 14px;
  color: #666;
}

.filter-toggle {
  cursor: pointer;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.filter-content {
  display: none;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  padding: 4px 0;
}

.filter-option input[type="checkbox"] {
  margin: 0;
}

.checkmark {
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}

.filter-option input[type="checkbox"]:checked + .checkmark {
  background: #C91F0C;
  border-color: #C91F0C;
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Results Card */
.results-card {
  background: white;
  border-radius: 8px;
  /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
  /* padding-bottom: 25px; */
}

.tabs {
  margin-bottom: 25px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .list-icon {
    margin-right: 0;
    align-self: center;
  }
  
  .list-actions {
    align-self: stretch;
    justify-content: space-between;
  }
  
  .list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .filter-options {
    flex-direction: column;
    gap: 12px;
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Filter Controls */


.filter-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-count {
  font-size: 14px;
  color: #666;
}

.filter-count strong {
  color: #333;
  font-weight: 600;
}

.filter-options {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.filter-option:hover {
  background-color: #f5f5f5;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  font-size: 14px;
  color: #666;
}

.filter-label:hover {
  background-color: #f5f5f5;
}

.filter-content {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

/* Search Box */
.search-box {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #C91F0C;
  box-shadow: 0 0 0 3px rgba(201, 31, 12, 0.1);
}

/* Export Buttons */
.export-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  margin-left: 8px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.export-btn:hover {
  background: #e0e0e0;
  border-color: #bbb;
}

.export-btn img {
  width: 16px;
  height: 16px;
}

/* Profile Styles */
.profile-image-large {
  width: 120px;
  height: 120px;
  border: 4px solid #e0e0e0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-avatar-container {
  position: relative;
  display: inline-block;
}

.profile-status {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #4CAF50;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.profile-username {
  color: #666;
  font-size: 1rem;
  margin: 4px 0;
}

.profile-organization {
  color: #888;
  font-size: 0.9rem;
  margin: 4px 0;
}

.profile-details-modern {
  margin-top: 20px;
}

.detail-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.detail-icon {
  width: 40px;
  height: 40px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  color: #666;
}

.detail-content {
  flex: 1;
}

.detail-label {
  display: block;
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  display: block;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

.stats-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  background: #ffebee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #c91f0c;
}

.stat-content {
  flex: 1;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.calendar-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.full-width {
  width: 100%;
}

.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.activity-icon {
  width: 40px;
  height: 40px;
  background: #e8f5e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #4CAF50;
}

.activity-item .activity-icon:has(.fa-times-circle) {
  background: #ffebee;
  color: #f44336;
}

.activity-content {
  flex: 1;
}

.activity-title {
  display: block;
  font-weight: 500;
  color: #333;
}

.activity-time {
  display: block;
  font-size: 0.8rem;
  color: #666;
}

.fas.left {
  margin-right: 8px;
}

/* Modern Collapsible (Einstellungen Extras, Berechtigungen, …) */
.modern-collapsible {
  border: none;
  box-shadow: none;
  margin: 0;
}

.modern-collapsible > li {
  background: white;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: none;
  overflow: hidden;
}

.modern-collapsible > li:last-child {
  margin-bottom: 0;
}

.modern-collapsible .collapsible-header.modern-collapsible-header,
.modern-collapsible-header {
  background: #fff;
  padding: 12px 20px;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin: 0;
  border: none;
  min-height: auto;
  height: auto;
  line-height: 1.3;
  position: relative;
  transition: border-color 0.2s ease;
}

.modern-collapsible > li.active > .modern-collapsible-header,
.modern-collapsible-header.active {
  border-bottom: 2px solid #C91F0C;
}

.modern-collapsible-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.modern-collapsible-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
  font-family: 'Varela Round', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  min-width: 0;
  line-height: 1.3;
}

.modern-collapsible-header .poi-colored-icon {
  background-color: #C91F0C;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Materialize setzt width/margin auf .collapsible-header i – hier zurücksetzen */
.modern-collapsible .collapsible-header .poi-colored-icon i {
  width: auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

.modern-collapsible .collapsible-header .poi-colored-icon i::before {
  line-height: 1;
}

.modern-collapsible .collapsible-header i.collapsible-arrow {
  width: auto;
  margin: 0;
  display: block;
  line-height: 1;
}

.modern-collapsible-body {
  padding: 25px;
  border: none;
  background: white;
  box-sizing: border-box;
}

.modern-collapsible-body .row {
  margin-bottom: 24px;
}

.modern-collapsible-body .row:last-child {
  margin-bottom: 0;
}

.modern-collapsible .collapsible-arrow {
  color: #666;
  font-size: 14px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.modern-collapsible li.active .collapsible-arrow,
.modern-collapsible-header.active .collapsible-arrow {
  transform: rotate(180deg);
}

.modern-collapsible .collapsible-header:focus {
  background: #fff;
}