/* ===========================================
   FIREHUB GLOBAL COMPONENT STYLES
   =========================================== */

.switchUsersImport {
  margin-bottom: 25px;
}

.ops-stats-container {
  margin-left: 0 !important;
}

.no-results-subtitle {
    font-size: 14px;
    color: #999;
    margin-top: 4px;
  }

  /* Page Title Section (no card) */
.page-title-section {
   margin-bottom: 25px;
   margin-top: 25px;
 }
 
 .title-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 0 5px;
 }
 
 .title-header h1 {
   margin: 0;
   font-size: 1.8rem;
   color: #333;
   display: flex;
   align-items: center;
   gap: 12px;
   font-weight: 600;
  font-family: 'Varela Round', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
 }
 
 .title-header h1 i {
   color: #C91F0C;
   font-size: 1.6rem;
 }
 
 /* Card Base Styles */
 .search-filter-card,
 .results-card {
   background: white;
   border-radius: 12px;
   margin-bottom: 25px;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
   /* overflow: hidden; */
 }
 
 .card-header {
   background: #f8f9fa;
   padding: 20px 25px;
   border-bottom: 1px solid #e9ecef;
   display: flex;
   align-items: center;
   justify-content: space-between;
   border-top-right-radius: 8px;
   border-top-left-radius: 8px;
 }
 
 .card-header h3 {
   margin: 0;
   font-size: 1.2rem;
   color: #333;
   display: flex;
   align-items: center;
   gap: 10px;
   font-weight: 500;
  font-family: 'Varela Round', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
 }
 
 .card-header h3 i {
   color: #C91F0C;
 }
 
 .card-content {
   padding: 25px;
   overflow-x: auto;
 }
 
 .btn-primary {
   background: #C91F0C;
   color: white;
   padding: 12px 24px;
   border-radius: 8px;
   text-decoration: none;
   font-size: 1rem;
   font-weight: 600;
   display: inline-flex;
   align-items: center;
   gap: 10px;
   transition: all 0.2s ease;
   text-transform: uppercase;
   letter-spacing: 0.5px;
 }
 
 .btn-primary:hover {
   background: #a0170a;
   transform: translateY(-2px);
   box-shadow: 0 6px 20px rgba(201, 31, 12, 0.3);
 }
 
 /* Search and Filter Section */
 
 .search-box {
   position: relative;
   margin-bottom: 15px;
 }
 
 .search-input {
   width: 100%;
   padding: 12px 45px 12px 15px;
   border: 2px solid #e0e0e0;
   border-radius: 8px;
   font-size: 1rem;
   transition: border-color 0.2s ease;
 }
 
 .search-input:focus {
   outline: none;
   border-color: #C91F0C;
 }
 
 .search-icon {
   position: absolute;
   right: 15px;
   top: 50%;
   transform: translateY(-50%);
   color: #999;
 }
 
 .filter-controls {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 10px;
 }
 
 .filter-count {
   color: #666;
   font-size: 0.9rem;
 }
 
 .filter-toggle {
   cursor: pointer;
 }
 
 .filter-label {
   color: #C91F0C;
   font-weight: 500;
   display: flex;
   align-items: center;
   gap: 5px;
 }
 
 .filter-content {
   display: none;
   background: #f8f9fa;
   padding: 15px;
   border-radius: 8px;
   margin-top: 10px;
 }
 
 .filter-options {
   display: flex;
   gap: 20px;
 }
 
 .filter-option {
   display: flex;
   align-items: center;
   gap: 8px;
   cursor: pointer;
   font-size: 0.9rem;
   color: #666;
 }
 
 .filter-option input[type="checkbox"] {
   margin: 0;
 }
 
 /* Articles List */
 .articles-list-container {
   display: flex;
   flex-direction: column;
   gap: 15px;
 }
 
 .article-list-item {
   background: #f8f9fa;
   border: 1px solid #e0e0e0;
   border-radius: 12px;
   padding: 10px;
   transition: all 0.2s ease;
   position: relative;
   overflow: hidden;
   display: flex;
   align-items: center;
   gap: 20px;
 }
 
 .article-list-item:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
   border-color: #C91F0C;
 }
 
 .article-list-icon {
   width: 60px;
   height: 60px;
   border-radius: 12px;
   background: #f5f5f5;
   display: flex;
   align-items: center;
   justify-content: center;
   overflow: hidden;
   flex-shrink: 0;
 }
 
 .article-category-icon {
   width: 75%;
   height: 75%;
   object-fit: cover;
 }
 
 .article-list-content {
   flex: 1;
   display: flex;
   flex-direction: column;
   gap: 8px;
 }
 
 .article-list-header {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   gap: 15px;
 }
 
 .article-list-title {
   margin: 0;
   font-size: 1.2rem;
   font-weight: 600;
   color: #333;
   line-height: 1.4;
   flex: 1;
 }
 
 .article-list-badges {
   display: flex;
   gap: 8px;
   flex-wrap: wrap;
   align-items: flex-start;
 }
 
 .badge {
   display: inline-block;
   padding: 4px 8px;
   border-radius: 4px;
   font-size: 0.75rem;
   font-weight: 500;
   white-space: nowrap;
 }
 
 .badge.green {
   background: #28a745;
   color: white;
 }
 
 .badge.orange {
   background: #fd7e14;
   color: white;
 }
 
 .article-list-meta {
     display: flex;
     gap: 10px;
     align-items: flex-start;
     justify-content: center;
     flex-direction: column;
 }
 
 .article-type {
   display: flex;
   align-items: center;
   gap: 5px;
   font-size: 0.9rem;
   font-weight: 500;
 }
 
 .type-group {
   color: #C91F0C;
 }
 
 .type-general {
   color: #28a745;
 }
 
 .article-date {
   display: flex;
   align-items: center;
   gap: 5px;
   font-size: 0.85rem;
   color: #666;
 }
 
 .article-list-actions {
   display: flex;
   gap: 10px;
   flex-shrink: 0;
 }
 
 .action-btn {
   width: 35px;
   height: 35px;
   border-radius: 6px;
   display: flex;
   align-items: center;
   justify-content: center;
   text-decoration: none;
   transition: all 0.2s ease;
   font-size: 0.9rem;
 }
 
 .view-btn {
   /* background: #C91F0C;
   color: white; */
 }
 
 .view-btn:hover {
   background: #a0170a;
   transform: scale(1.05);
 }
/*  
 .delete-btn {
   background: #C91F0C;
   color: white;
 }
 
 .delete-btn:hover {
   background: #a0170a;
   transform: scale(1.05);
 } */
 
 .edit-btn {
   /* background: #C91F0C;
   color: white; */
 }
 
 .edit-btn:hover {
   background: #a0170a;
   transform: scale(1.05);
 }
 
 /* Article Detail Styles */
 .article-route {
   margin: 0 0 20px;
   padding: 14px 16px;
   border: 1px solid rgba(201, 31, 12, 0.12);
   border-radius: 12px;
   background: rgba(201, 31, 12, 0.05);
 }

 .article-route h4 {
   margin: 0 0 8px;
   color: #C91F0C;
   font-size: 0.95rem;
   font-weight: 700;
 }

 .article-route h4 i {
   margin-right: 8px;
 }

 .article-route p {
   margin: 0;
   color: #333;
   font-weight: 600;
   line-height: 1.45;
 }

 .article-body {
   margin-bottom: 20px;
   line-height: 1.6;
 }
 
 .article-attachments {
   margin-top: 20px;
 }
 
 .article-attachments h4 {
   margin: 0 0 15px 0;
   color: #333;
   font-size: 1.1rem;
   font-weight: 600;
 }
 
 .article-attachments h4 i {
   margin-right: 8px;
   color: #C91F0C;
 }
 
 .attachments-gallery {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
   gap: 15px;
 }
 
 .attachment-item {
   text-align: center;
 }
 
 .article-badges {
   display: flex;
   gap: 8px;
   flex-wrap: wrap;
   align-items: center;
   margin-left: auto;
 }
 
 .article-meta {
   display: flex;
   flex-direction: column;
   gap: 8px;
   background: #f8f9fa;
   padding: 15px 20px;
   border-top: 1px solid #e9ecef;
 }
 
 .meta-item {
   display: flex;
   align-items: center;
   gap: 8px;
   color: #666;
   font-size: 0.9rem;
 }
 
 .meta-item i {
   color: #C91F0C;
   width: 16px;
 }
 
 /* Read Status Styles */
 .read-status-summary {
   margin-bottom: 20px;
 }
 
 .status-stats {
   display: flex;
   align-items: center;
   gap: 15px;
   margin-bottom: 10px;
 }
 
 .status-count {
   display: flex;
   align-items: center;
   gap: 8px;
   font-weight: 600;
   color: #333;
 }
 
 .status-count i {
   color: #28a745;
 }
 
 .status-progress {
   flex: 1;
   max-width: 200px;
 }
 
 .progress-bar {
   width: 100%;
   height: 8px;
   background: #e9ecef;
   border-radius: 4px;
   overflow: hidden;
 }
 
 .progress-fill {
   height: 100%;
   background: linear-gradient(90deg, #28a745, #20c997);
   transition: width 0.3s ease;
 }
 
 .read-status-list {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 8px;
   column-gap: 20px;
 }
 
 .read-status-item {
   display: flex;
   align-items: center;
   gap: 8px;
   padding: 4px 0;
   border-bottom: 1px solid #f0f0f0;
   font-size: 0.85rem;
 }
 
 .read-status-item:last-child {
   border-bottom: none;
 }
 
 .status-read {
   color: #28a745;
   font-size: 0.8rem;
 }
 
 .status-unread {
   color: #fd7e14;
   font-size: 0.8rem;
 }
 
 .user-info {
   flex: 1;
   min-width: 0;
 }
 
 .user-name {
   font-weight: 400;
   color: #333;
   font-size: 0.85rem;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
 }
 
 /* Title Actions */
 .title-actions {
   display: flex;
   gap: 10px;
   flex-wrap: wrap;
 }
 
 /* Document Viewer */
 .document-viewer {
   margin-top: 20px;
 }
 
 .document-viewer iframe {
   border: 1px solid #e0e0e0;
   border-radius: 8px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 }
 
 /* No Data Message */
 .no-data-message {
   text-align: center;
   padding: 40px 20px;
   color: #666;
 }
 
 .no-data-message i {
   font-size: 48px;
   color: #ccc;
   margin-bottom: 16px;
   display: block;
 }
 
 .no-data-message p {
   font-size: 16px;
   margin: 0;
 }
 
 span.badge{
     color: white !important;
     padding: 2px 8px;
     border-radius: 12px;
     font-size: 0.7rem;
     font-weight: 600;
     display: inline-block;
     min-width: unset;
     margin-left: unset;
     line-height: unset;
     height: unset;
     display: inline-flex;
 }
 
 /* Badge color variants */
 span.badge.orange {
     background-color: #ff9800 !important;
     color: white !important;
 }
 
 span.badge.blue {
     background-color: #2196f3 !important;
     color: white !important;
 }
 
 span.badge.green {
     background-color: #4caf50 !important;
     color: white !important;
 }
 
 /* Profile Styles */
 .profile-avatar {
   text-align: center;
   margin-bottom: 20px;
 }
 
 .profile-image {
   width: 120px;
   height: 120px;
   object-fit: cover;
   border: 3px solid #e0e0e0;
 }
 
 .profile-details .collapsible-header {
   display: flex;
   align-items: center;
   padding: 12px 16px;
   border-bottom: 1px solid #e0e0e0;
 }
 
 .profile-label {
   font-weight: 600;
   margin-right: 8px;
   color: #666;
 }
 
 .profile-value {
   color: #333;
   flex: 1;
 }
 
 .calendar-link {
   color: #C91F0C;
   text-decoration: none;
 }
 
 .calendar-link:hover {
   text-decoration: underline;
 }
 
 /* Info Message */
 .info-message {
   background: #f8f9fa;
   border: 1px solid #e9ecef;
   border-radius: 8px;
   padding: 16px;
   margin-top: 16px;
 }
 
 .info-message i {
   color: #17a2b8;
   margin-right: 8px;
 }
 
 .info-message p {
   margin: 0;
   color: #6c757d;
 }
 
 /* Message Box */
 .message-box {
   background: #f8f9fa;
   border: 1px solid #e9ecef;
   border-radius: 8px;
   padding: 16px;
   text-align: center;
 }
 
 .message-box p {
   margin: 0;
   color: #6c757d;
 }
 
 /* Statistics Styles */
 .stat-card {
   background: #fff;
   border: 1px solid #e0e0e0;
   border-radius: 12px;
   padding: 24px;
   text-align: center;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
   margin-bottom: 16px;
   transition: transform 0.2s ease;
   height: 180px;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
 }
 
 .stat-card:hover {
   transform: translateY(-2px);
 }
 
 .stat-card.large {
   background: linear-gradient(135deg, #C91F0C, #e74c3c);
   color: white;
   border: none;
   height: 180px;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
 }
 
 .stat-icon {
   font-size: 32px;
   color: #C91F0C;
   margin-bottom: 12px;
 }
 
 .stat-card.large .stat-icon {
   color: white;
 }
 
 .stat-content h2,
 .stat-content h3 {
   margin: 0 0 8px 0;
   font-weight: 700;
 }
 
 .stat-content p {
   margin: 0;
   color: #666;
   font-size: 14px;
 }
 
 .stat-card.large .stat-content p {
   color: rgba(255, 255, 255, 0.9);
 }
 
 /* Admin Panel specific adjustments */
.adminCards {
  display: block;
  text-decoration: none;
  color: inherit;
}

.adminCards .stat-card {
  height: 180px !important;
  min-height: 180px !important;
  padding: 20px;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}
 
 .adminCards .stat-icon {
   width: 48px;
   height: 48px;
   margin-bottom: 8px;
   margin-right: 0;
   flex-shrink: 0;
   background: #f5f5f5;
   border-radius: 12px;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 4px;
   box-sizing: border-box;
   color: inherit;
 }

 .adminCards .stat-icon img {
   width: 100%;
   height: 100%;
   object-fit: contain;
 }
 
 .adminCards .stat-content {
   flex: none !important;
   display: flex;
   flex-direction: column;
   align-items: center;
 }

 .adminCards .stat-content h3 {
   font-size: 1.1rem;
   margin: 0 0 5px 0;
   line-height: 1.2;
 }
 
 .adminCards .stat-content p {
   font-size: 0.85rem;
   color: #888;
   margin: 0;
 }
 
 .stats-details {
   background: #f8f9fa;
   border-radius: 8px;
   padding: 20px;
   margin-top: 20px;
 }
 
 .stat-item {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 8px 0;
   border-bottom: 1px solid #e9ecef;
 }
 
 .stat-item:last-child {
   border-bottom: none;
 }
 
 .stat-label {
   font-weight: 600;
   color: #495057;
 }
 
 .stat-value {
   font-weight: 700;
   color: #C91F0C;
 }
 
 /* Statistics Tiles */
 .stats-details-header {
   margin-bottom: 24px;
   padding-bottom: 12px;
   border-bottom: 2px solid #e9ecef;
 }
 
 .stats-details-header h4 {
   margin: 0;
   color: #495057;
   font-size: 18px;
   font-weight: 600;
 }
 
 .stats-details-header i {
   color: #C91F0C;
   margin-right: 8px;
 }
 
 .stat-tile {
   background: #fff;
   border: 1px solid #e9ecef;
   border-radius: 12px;
   padding: 20px;
   text-align: center;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
   transition: all 0.3s ease;
   margin-bottom: 16px;
   position: relative;
   overflow: hidden;
 }
 
 .stat-tile::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 4px;
   background: #6c757d;
   transition: all 0.3s ease;
 }
 
 .stat-tile:hover {
   transform: translateY(-4px);
   box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
 }
 
 .stat-tile.success::before {
   background: #28a745;
 }
 
 .stat-tile.danger::before {
   background: #C91F0C;
 }
 
 .stat-tile.warning::before {
   background: #ffc107;
 }
 
 .stat-tile.neutral::before {
   background: #6c757d;
 }
 
 .stat-tile-icon {
   font-size: 32px;
   color: #6c757d;
   margin-bottom: 12px;
   transition: all 0.3s ease;
 }
 
 .stat-tile.success .stat-tile-icon {
   color: #28a745;
 }
 
 .stat-tile.danger .stat-tile-icon {
   color: #C91F0C;
 }
 
 .stat-tile.warning .stat-tile-icon {
   color: #ffc107;
 }
 
 .stat-tile.neutral .stat-tile-icon {
   color: #6c757d;
 }
 
 .stat-tile:hover .stat-tile-icon {
   transform: scale(1.1);
 }
 
 .stat-tile-content {
   position: relative;
 }
 
 .stat-tile-number {
   font-size: 28px;
   font-weight: 700;
   color: #2c3e50;
   margin-bottom: 4px;
   line-height: 1;
 }
 
 .stat-tile.success .stat-tile-number {
   color: #28a745;
 }
 
 .stat-tile.danger .stat-tile-number {
   color: #C91F0C;
 }
 
 .stat-tile.warning .stat-tile-number {
   color: #ffc107;
 }
 
 .stat-tile.neutral .stat-tile-number {
   color: #6c757d;
 }
 
 .stat-tile-label {
   font-size: 14px;
   color: #6c757d;
   font-weight: 500;
   text-transform: uppercase;
   letter-spacing: 0.5px;
 }
 
 .stat-tile:hover .stat-tile-label {
   color: #495057;
 }
 
 /* Table Styles */
 .table-container {
   overflow-x: auto;
   border-radius: 8px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 }
 
 .responsive-table {
   width: 100%;
   max-width: 100%;
   border-collapse: collapse;
   background: white;
   table-layout: auto;
 }
 
 .responsive-table th {
   background: #f8f9fa;
   color: #495057;
   font-weight: 600;
   padding: 16px;
   text-align: left;
   border-bottom: 2px solid #e9ecef;
 }
 
 .responsive-table td {
   padding: 16px;
   border-bottom: 1px solid #e9ecef;
   vertical-align: middle;
 }
 
 .responsive-table tbody tr:hover {
   background: #f8f9fa;
 }

 .collapsible-body {
   overflow-x: auto;
 }

 .collapsible-body table,
 .collapsible-header table {
   width: 100%;
   max-width: 100%;
 }
 
 .pikett-name,
 .pikett-date {
   display: flex;
   align-items: center;
   gap: 8px;
 }
 
 .pikett-name i {
   color: #C91F0C;
 }
 
 .pikett-date i {
   color: #6c757d;
 }
 
 /* Development Styles */
 .version-title {
   font-weight: 600;
   margin-right: 12px;
 }
 
 .version-meta {
   background: #f8f9fa;
   border-radius: 8px;
   padding: 12px;
   margin-bottom: 16px;
   /*border-left: 4px solid #C91F0C;*/
 }
 
 
 .version-issues h5 {
   color: #495057;
   margin-bottom: 12px;
   font-size: 16px;
   font-weight: bold;
   margin-top: 30px;
 }
 
 .version-issues h5 i {
   color: #C91F0C;
   margin-right: 8px;
 }
 
 .issue-list {
   list-style: none;
   padding: 0;
   margin: 0;
   margin-left: 10px;
   width: 100%;
   box-sizing: border-box;
 }
 
 .issue-list li {
   width: 100%;
   box-sizing: border-box;
 }
 
 .issue-item {
   margin-bottom: 8px;
   padding: 8px 0;
   border-bottom: 1px solid #e9ecef;
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 12px;
   width: 100%;
   box-sizing: border-box;
 }
 
 .issue-item:last-child {
   border-bottom: none;
 }
 
 .issue-link {
   color: #C91F0C;
   text-decoration: none;
   display: flex;
   align-items: center;
   gap: 8px;
   transition: color 0.2s ease;
   flex: 1;
 }
 
 .issue-link:hover {
   color: #a0170a;
   text-decoration: underline;
 }
 
 /* Badge positioning in issue items */
 .issue-item .badge {
   flex-shrink: 0;
   white-space: nowrap;
   margin-left: auto;
 }
 
 .issue-item .issue-link {
   flex: 1;
   min-width: 0;
   overflow: hidden;
   text-overflow: ellipsis;
 }
 
 .issue-link i {
   font-size: 12px;
 }
 
 /* Status Badges */
 .status-badge {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 12px 16px;
   border-radius: 8px;
   font-weight: 600;
   margin: 8px 0;
   color: #ffffff;
 }
 
 .status-badge i {
   font-size: 16px;
 }
 
 /* Documentation Styles */
 .docs-breadcrumb {
   background: #f8f9fa;
   border-radius: 8px;
   padding: 12px 16px;
   margin-bottom: 20px;
   border-left: 4px solid #C91F0C;
 }
 
 .docs-content {
   line-height: 1.6;
 }
 
 .docs-content h1,
 .docs-content h2,
 .docs-content h3,
 .docs-content h4,
 .docs-content h5,
 .docs-content h6 {
   color: #2c3e50;
   margin-top: 24px;
   margin-bottom: 12px;
 }
 
 .docs-content h1:first-child,
 .docs-content h2:first-child,
 .docs-content h3:first-child {
   margin-top: 0;
 }
 
 .docs-content p {
   margin-bottom: 16px;
   color: #495057;
 }
 
 .docs-content ul,
 .docs-content ol {
   margin-bottom: 16px;
   padding-left: 24px;
 }
 
 .docs-content li {
   margin-bottom: 4px;
 }
 
 .docs-content code {
   background: #f8f9fa;
   padding: 2px 6px;
   border-radius: 4px;
   font-family: 'Courier New', monospace;
   color: #e83e8c;
 }
 
 .docs-content pre {
   background: #f8f9fa;
   padding: 16px;
   border-radius: 8px;
   overflow-x: auto;
   margin-bottom: 16px;
 }
 
 .docs-content pre code {
   background: none;
   padding: 0;
   color: #495057;
 }
 
 .docs-content blockquote {
   border-left: 4px solid #C91F0C;
   padding-left: 16px;
   margin: 16px 0;
   color: #6c757d;
   font-style: italic;
 }
 
 .docs-content table {
   width: 100%;
   border-collapse: collapse;
   margin-bottom: 16px;
 }
 
 .docs-content th,
 .docs-content td {
   padding: 12px;
   text-align: left;
   border-bottom: 1px solid #e9ecef;
 }
 
 .docs-content th {
   background: #f8f9fa;
   font-weight: 600;
   color: #495057;
 }
 
 /* Issue Description */
 .issue-description {
   line-height: 1.6;
   color: #495057;
 }
 
 .issue-description h1,
 .issue-description h2,
 .issue-description h3,
 .issue-description h4,
 .issue-description h5,
 .issue-description h6 {
   color: #2c3e50;
   margin-top: 20px;
   margin-bottom: 10px;
 }
 
 .issue-description p {
   margin-bottom: 12px;
 }
 
 .issue-description ul,
 .issue-description ol {
   margin-bottom: 12px;
   padding-left: 20px;
 }
 
 .issue-description li {
   margin-bottom: 4px;
 }
 
 /* Modal Styles */
 #internalLinkModal {
   display: none;
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   background: white;
   border-radius: 12px;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
   z-index: 9999;
   width: 450px;
   max-width: 90vw;
   max-height: 80vh;
   overflow: hidden;
   animation: modalSlideIn 0.3s ease-out;
 }
 
 @keyframes modalSlideIn {
   from {
     opacity: 0;
     transform: translate(-50%, -60%);
   }
   to {
     opacity: 1;
     transform: translate(-50%, -50%);
   }
 }
 
.modal-header {
  background: #C91F0C;
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header/Body/Footer Styles werden jetzt per JavaScript gesetzt (siehe layout-admin.js) */
 
 .modal-header h5 {
   margin: 0;
   font-size: 18px;
   font-weight: 600;
   display: flex;
   align-items: center;
   gap: 8px;
 }
 
 .modal-close-btn {
   background: none;
   border: none;
   color: white;
   font-size: 18px;
   cursor: pointer;
   padding: 4px;
   border-radius: 4px;
   transition: background-color 0.2s;
 }
 
 .modal-close-btn:hover {
   background-color: rgba(255, 255, 255, 0.2);
 }
 
.modal-body {
  padding: 24px;
}

 
 .search-container {
   position: relative;
   margin-bottom: 24px;
   padding-bottom: 8px;
 }
 
 .search-container input {
   width: 100%;
   padding: 14px 16px;
   border: none;
   border-bottom: 2px solid #e1e5e9;
   border-radius: 0;
   font-size: 15px;
   background: transparent;
   transition: border-color 0.3s ease;
   box-sizing: border-box;
 }
 
 .search-container input:focus {
   outline: none;
   border-bottom-color: #C91F0C;
   box-shadow: none;
 }
 
 .search-container input::placeholder {
   color: #999;
   font-style: italic;
 }
 
 .results-container {
   max-height: 300px;
   overflow-y: auto;
   border: 1px solid #e1e5e9;
   border-radius: 8px;
   background: #fafbfc;
 }
 
 .article-item {
   padding: 16px 20px;
   cursor: pointer;
   border-bottom: 1px solid #e1e5e9;
   transition: all 0.2s;
   display: flex;
   align-items: center;
   gap: 12px;
 }
 
 .article-item:last-child {
   border-bottom: none;
 }
 
 .article-item:hover {
   background-color: rgba(201, 31, 12, 0.05);
   border-left: 4px solid #C91F0C;
   padding-left: 16px;
 }
 
 .article-item i {
   color: #C91F0C;
   font-size: 16px;
 }
 
 .no-results {
   padding: 40px 20px;
   text-align: center;
   color: #666;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 8px;
 }
 
 .no-results i {
   font-size: 24px;
   color: #999;
 }
 
.modal-footer {
  padding: 16px 24px;
  background: #f8f9fa;
  border-top: 1px solid #e1e5e9;
  display: flex;
  /* justify-content: flex-end; */
  justify-content: center;
}

/* Sicherstellen, dass Formulare innerhalb von Modals die Flexbox-Eigenschaften nicht überschreiben */
.modal form {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
}

 
 .modal-btn {
   padding: 10px 20px;
   border: none;
   border-radius: 6px;
   font-size: 14px;
   font-weight: 500;
   cursor: pointer;
   transition: all 0.2s;
   display: flex;
   align-items: center;
   gap: 8px;
 }
 
 .btn-secondary {
   background-color: #6c757d;
   color: white;
 }
 
 .btn-secondary:hover {
   background-color: #5a6268;
   transform: translateY(-1px);
 }
 
 /* Quill Editor Modernisierung */
 .ql-toolbar.ql-snow {
   border: 1px solid #e1e5e9;
   border-radius: 6px 6px 0 0;
   border-bottom: none;
 }
 
 .ql-container.ql-snow {
   border: 1px solid #e1e5e9;
   border-radius: 0 0 6px 6px;
   border-top: none;
 }
 
 .ql-editor {
   border-radius: 0 0 6px 6px;
   font-size: 15px;
   line-height: 1.6;
 }
 
 .ql-toolbar.ql-snow .ql-formats {
   margin-right: 12px;
 }
 
 .ql-toolbar.ql-snow button {
   border-radius: 4px;
   margin: 2px;
   transition: all 0.2s ease;
   color: #C91F0C;
 }
 
 .ql-toolbar.ql-snow button:hover {
   background-color: rgba(201, 31, 12, 0.1);
   transform: translateY(-1px);
   color: #C91F0C;
 }
 
 .ql-toolbar.ql-snow button.ql-active {
   background-color: transparent;
   color: #C91F0C;
 }
 
 /* Scrollbar Styling */
 .results-container::-webkit-scrollbar {
   width: 6px;
 }
 
 .results-container::-webkit-scrollbar-track {
   background: #f1f1f1;
   border-radius: 3px;
 }
 
 .results-container::-webkit-scrollbar-thumb {
   background: #c1c1c1;
   border-radius: 3px;
 }
 
 .results-container::-webkit-scrollbar-thumb:hover {
   background: #a8a8a8;
 }
 
 .mission-type-icon {
   width: 40%;
 }
 
 /* Ensure cards and other elements have lower z-index */
 .search-filter-card,
 .results-card,
 .card {
   z-index: 1 !important;
 }
 
 /* Remove bullet points from dropdowns */
 .dropdown-content li,
 .select-dropdown li,
 .dropdown-content li span,
 .select-dropdown li span,
 ul.dropdown-content li,
 ul.select-dropdown li {
   list-style: none !important;
   list-style-type: none !important;
 }
 
 .dropdown-content li::before,
 .select-dropdown li::before,
 .dropdown-content li span::before,
 .select-dropdown li span::before,
 ul.dropdown-content li::before,
 ul.select-dropdown li::before {
   display: none !important;
   content: none !important;
 }
 
 /* Additional specific selectors for Materialize dropdowns */
 .dropdown-content li span,
 .select-dropdown li span {
   list-style: none !important;
   list-style-type: none !important;
 }
 
 .dropdown-content li span::before,
 .select-dropdown li span::before {
   display: none !important;
   content: none !important;
 }
 
 /* Global rule to remove all bullet points from dropdowns */
 .dropdown-content *,
 .select-dropdown *,
 [class*="dropdown"] *,
 [class*="select"] * {
   list-style: none !important;
   list-style-type: none !important;
   margin-left: 0 !important;
 }
 
 .dropdown-content *::before,
 .select-dropdown *::before,
 [class*="dropdown"] *::before,
 [class*="select"] *::before {
   display: none !important;
   content: none !important;
 }
 
 /* Remove excessive margin from dropdown items */
 .dropdown-content li,
 .select-dropdown li,
 .dropdown-content li span,
 .select-dropdown li span,
 ul.dropdown-content li,
 ul.select-dropdown li {
   margin-left: 0 !important;
   padding-left: 5px !important;
 }
 
/* Multi-select visibility improvements */
.select-dropdown li span label {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  position: relative;
  padding: 10px 14px;
  margin: 0;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.select-dropdown li span label:hover {
  background-color: rgba(201, 31, 12, 0.05);
}

/* Hide default checkbox but keep it functional */
.select-dropdown li span label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
}

/* Custom checkbox - visible before text */
.select-dropdown li span label::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #d0d5dd;
  border-radius: 4px;
  background-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  order: -1;
}

.select-dropdown li span label:hover::before {
  border-color: #C91F0C;
  box-shadow: 0 2px 4px rgba(201, 31, 12, 0.2);
}

/* Checkbox when checked - show checkmark (modern browsers with :has() support) */
.select-dropdown li span label:has(input[type="checkbox"]:checked)::before {
  content: '✓';
  background-color: #C91F0C;
  border-color: #C91F0C;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(201, 31, 12, 0.4);
}

/* Text styling when checked (modern browsers) */
.select-dropdown li span label:has(input[type="checkbox"]:checked) {
  background-color: rgba(201, 31, 12, 0.12);
}

.select-dropdown li span label:has(input[type="checkbox"]:checked) span {
  color: #C91F0C;
  font-weight: 600;
}

/* Fallback for browsers without :has() support - use adjacent sibling selector */
.select-dropdown li span label input[type="checkbox"]:checked + span {
  color: #C91F0C;
  font-weight: 600;
}

/* Add background to parent when checked (fallback) */
.select-dropdown li:has(input[type="checkbox"]:checked) span label {
  background-color: rgba(201, 31, 12, 0.12);
}

/* JavaScript fallback class for browsers without :has() support */
.select-dropdown li span label.checkbox-checked::before {
  content: '✓';
  background-color: #C91F0C;
  border-color: #C91F0C;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(201, 31, 12, 0.4);
}

.select-dropdown li span label.checkbox-checked {
  background-color: rgba(201, 31, 12, 0.12);
}

.select-dropdown li span label.checkbox-checked span {
  color: #C91F0C;
  font-weight: 600;
}

.select-dropdown li span label span {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0;
  border-radius: 0;
  transition: all 0.2s ease;
  min-width: 0;
}

.select-dropdown li.disabled span label span {
  opacity: 0.4;
  cursor: not-allowed;
}

 /* Responsive */
 @media (max-width: 768px) {
   .article-list-item {
     flex-direction: column;
     align-items: flex-start;
     gap: 15px;
   }
   
   .article-list-header {
     flex-direction: column;
     align-items: flex-start;
     gap: 10px;
   }
   
   .article-list-meta {
     flex-direction: column;
     gap: 8px;
     align-items: flex-start;
   }
   
   .article-list-actions {
     align-self: flex-end;
   }
   
   .filter-options {
     flex-direction: column;
     gap: 10px;
   }
   
   .section-header {
     flex-direction: column;
     gap: 15px;
     align-items: flex-start;
   }
   
   .title-header {
     flex-direction: column;
     align-items: flex-start;
   }
   
   .title-actions {
     width: 100%;
     justify-content: flex-start;
   }
   
   .status-stats {
     flex-direction: column;
     align-items: flex-start;
     gap: 10px;
   }
   
   .status-progress {
     max-width: 100%;
   }
   
   .read-status-list {
     grid-template-columns: 1fr;
     gap: 6px;
   }
   
   .read-status-item {
     font-size: 0.8rem;
     padding: 3px 0;
   }
   
   .user-name {
     font-size: 0.8rem;
   }
 }

 .select-wrapper input.select-dropdown {
  z-index: 1 !important;
 }

.modal {
  /* max-height: unset !important; */
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  max-height: 80vh !important;
}

/* Flexbox-Layout wird jetzt per JavaScript gesetzt (siehe layout-admin.js) */
/* CSS-Regel entfernt, um Konflikte zu vermeiden */

.modal-firehub {
  /* z-index: 1003;
  opacity: 1;
  position: fixed;
  top: 50% !important;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 450px;
  max-width: 90vw;
  max-height: 80vh;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out; */
}

.modal-size-middle {
  width: 750px !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.fas.fa-small {
  font-size: 16px;
}

.fas.fa-medium {
  font-size: 24px;
}

.fas.fa-large {
  font-size: 32px;
}

.detail-item i + span {
  margin-left: 10px;
}

.modal.modal-fixed-footer .modal-content {
  position: absolute;
  height: calc(100% - 120px);
  max-height: 100%;
  width: 100%;
  overflow-y: hidden;
}