/* Meeting Summary Stat Insights - Pre-Meeting and Post-Meeting Agenda Summary Styling */

/* Enhanced summary numbers section */
.pre-meeting-summary-stats,
.post-meeting-summary-stats {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pre-meeting-summary-stats .row,
.post-meeting-summary-stats .row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  margin: 0;
}

.pre-meeting-summary-stats .col,
.post-meeting-summary-stats .col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-width: 160px;
  flex: 1;
  transition: all 0.3s ease;
}

.pre-meeting-summary-stats .col:hover,
.post-meeting-summary-stats .col:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Summary stat labels */
.summary-stat-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Summary stat numbers */
.summary-stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #495057;
  line-height: 1.2;
  margin-bottom: 4px;
}

/* Different color themes for each stat */
.stat-total .summary-stat-number {
  color: #007bff;
}

.stat-remaining .summary-stat-number {
  color: #28a745;
}

.stat-spoken .summary-stat-number {
  color: #6c757d;
}

/* Post-meeting specific stat colors */
.stat-for .summary-stat-number {
  color: #28a745;
}

.stat-against .summary-stat-number {
  color: #dc3545;
}

.stat-spoke .summary-stat-number {
  color: #17a2b8;
}

.stat-not-spoke .summary-stat-number {
  color: #ffc107;
}

/* FontAwesome icon containers */
.stat-total .summary-stat-icon,
.stat-remaining .summary-stat-icon,
.stat-spoken .summary-stat-icon,
.stat-for .summary-stat-icon,
.stat-against .summary-stat-icon,
.stat-spoke .summary-stat-icon,
.stat-not-spoke .summary-stat-icon {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.stat-total .summary-stat-icon {
  color: #007bff;
}

.stat-remaining .summary-stat-icon {
  color: #28a745;
}

.stat-spoken .summary-stat-icon {
  color: #6c757d;
}

.stat-for .summary-stat-icon {
  color: #28a745;
}

.stat-against .summary-stat-icon {
  color: #dc3545;
}

.stat-spoke .summary-stat-icon {
  color: #17a2b8;
}

.stat-not-spoke .summary-stat-icon {
  color: #ffc107;
}

/* Enhanced table styling */
.pre-meeting-agenda-table-container,
.post-meeting-agenda-table-container {
  overflow: hidden;
  margin-top: 24px;
}

.pre-meeting-agenda-table-container .table,
.post-meeting-agenda-table-container .table {
  margin-bottom: 0;
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #e9ecef;
}

/* Post-meeting section styling */
.post-meeting-section {
  margin-bottom: 2rem;
}

/* Table header improvements */
.pre-meeting-agenda-table-container .table thead th,
.post-meeting-agenda-table-container .table thead th {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
  padding: 16px 12px;
  border: 1px solid #0056b3;
  border-bottom: 1px solid #0056b3;
}

/* Fix first and last header cell borders */
.pre-meeting-agenda-table-container .table thead th:first-child,
.post-meeting-agenda-table-container .table thead th:first-child {
  border-left: 1px solid #0056b3;
}

.pre-meeting-agenda-table-container .table thead th:last-child,
.post-meeting-agenda-table-container .table thead th:last-child {
  border-right: 1px solid #0056b3;
}

/* Table body improvements */
.pre-meeting-agenda-table-container .table tbody td,
.post-meeting-agenda-table-container .table tbody td {
  padding: 12px;
  vertical-align: middle;
  border: 1px solid #e9ecef;
  font-size: 14px;
}

/* Fix first and last body cell borders */
.pre-meeting-agenda-table-container .table tbody td:first-child,
.post-meeting-agenda-table-container .table tbody td:first-child {
  border-left: 1px solid #e9ecef;
}

.pre-meeting-agenda-table-container .table tbody td:last-child,
.post-meeting-agenda-table-container .table tbody td:last-child {
  border-right: 1px solid #e9ecef;
}

/* Section rows styling */
.pre-meeting-agenda-table-container .table tbody tr.agenda-section,
.post-meeting-agenda-table-container .table tbody tr.agenda-section {
  background-color: #f8f9fa;
  font-weight: 600;
  border-left: 4px solid #007bff;
}

.pre-meeting-agenda-table-container .table tbody tr.agenda-section:hover,
.post-meeting-agenda-table-container .table tbody tr.agenda-section:hover {
  background-color: #e9ecef;
  cursor: pointer;
}

/* Item rows styling */
.pre-meeting-agenda-table-container .table tbody tr:not(.agenda-section),
.post-meeting-agenda-table-container .table tbody tr:not(.agenda-section) {
  background-color: #fff;
}

.pre-meeting-agenda-table-container .table tbody tr:not(.agenda-section):hover,
.post-meeting-agenda-table-container
  .table
  tbody
  tr:not(.agenda-section):hover {
  background-color: #f8f9fa;
}

/* Numeric columns styling */
.pre-meeting-agenda-table-container .table tbody td:not(:first-child),
.post-meeting-agenda-table-container .table tbody td:not(:first-child) {
  text-align: center;
  font-weight: 500;
}

/* Zebra striping for better readability */
.pre-meeting-agenda-table-container
  .table
  tbody
  tr:nth-child(even):not(.agenda-section),
.post-meeting-agenda-table-container
  .table
  tbody
  tr:nth-child(even):not(.agenda-section) {
  background-color: #f8f9fa;
}

.pre-meeting-agenda-table-container
  .table
  tbody
  tr:nth-child(even):not(.agenda-section):hover,
.post-meeting-agenda-table-container
  .table
  tbody
  tr:nth-child(even):not(.agenda-section):hover {
  background-color: #e9ecef;
}

/* Search/filter area styling */
.dataTables_filter {
  margin-bottom: 16px;
}

.dataTables_filter input {
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}

/* Filter section styling - Override DataTables CSS for meeting summaries only */
div[id*="table-filter-"],
div[id*="in-person-table-header-"][id$="-filter"],
div[id*="by-phone-table-header-"][id$="-filter"] {
  background: #fff !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  margin: 0 0 16px 0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  display: block !important;
  position: relative !important;
}

div[id*="table-filter-"] .dataTables_filter,
div[id*="in-person-table-header-"][id$="-filter"] .dataTables_filter,
div[id*="by-phone-table-header-"][id$="-filter"] .dataTables_filter {
  margin: 0 !important;
  text-align: center !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  display: block !important;
}

div[id*="table-filter-"] .dataTables_filter label,
div[id*="in-person-table-header-"][id$="-filter"] .dataTables_filter label,
div[id*="by-phone-table-header-"][id$="-filter"] .dataTables_filter label {
  font-weight: 500 !important;
  color: #495057 !important;
  margin: 0 !important;
  display: inline !important;
  float: none !important;
  text-align: center !important;
  width: auto !important;
}

div[id*="table-filter-"] .dataTables_filter input,
div[id*="in-person-table-header-"][id$="-filter"] .dataTables_filter input,
div[id*="by-phone-table-header-"][id$="-filter"] .dataTables_filter input {
  width: 300px !important;
  max-width: 100% !important;
  margin: 0 0 0 8px !important;
  display: inline !important;
  float: none !important;
  border: 1px solid #ced4da !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .pre-meeting-summary-stats .row,
  .post-meeting-summary-stats .row {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .pre-meeting-summary-stats .col,
  .post-meeting-summary-stats .col {
    min-width: auto;
    width: 100%;
    flex: 1;
  }

  .summary-stat-number {
    font-size: 28px;
  }

  .pre-meeting-agenda-table-container,
  .post-meeting-agenda-table-container {
    overflow-x: auto;
  }
}

/* Animation for expanding/collapsing sections */
.pre-meeting-agenda-table-container .agenda-section,
.post-meeting-agenda-table-container .agenda-section {
  cursor: pointer;
  user-select: none;
}

.pre-meeting-agenda-table-container .agenda-section i.bi,
.post-meeting-agenda-table-container .agenda-section i.bi {
  transition: transform 0.3s ease;
  margin-left: 8px;
  font-size: 12px;
  color: #007bff;
}

.pre-meeting-agenda-table-container .agenda-section i.bi-caret-up,
.post-meeting-agenda-table-container .agenda-section i.bi-caret-up {
  transform: rotate(180deg);
}

.pre-meeting-agenda-table-container .agenda-section:hover i.bi,
.post-meeting-agenda-table-container .agenda-section:hover i.bi {
  color: #0056b3;
}

/* Ensure agenda items under sections are properly indented */
.pre-meeting-agenda-table-container .table tbody tr.agenda-item td:first-child,
.post-meeting-agenda-table-container
  .table
  tbody
  tr.agenda-item
  td:first-child {
  padding-left: 32px;
}

/* Loading state styling */
.pre-meeting-summary-loading {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}

.pre-meeting-summary-loading i {
  font-size: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Print styles - Remove shadows, backgrounds, and decorative elements */
@media print {
  .pre-meeting-summary-stats,
  .post-meeting-summary-stats {
    background: #fff !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    margin-bottom: 20px !important;
    page-break-inside: avoid;
  }

  .pre-meeting-summary-stats .col,
  .post-meeting-summary-stats .col {
    background: #fff !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
  }

  .pre-meeting-summary-stats .col:hover,
  .post-meeting-summary-stats .col:hover {
    transform: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
  }

  div[id*="table-filter-"],
  div[id*="in-person-table-header-"][id$="-filter"],
  div[id*="by-phone-table-header-"][id$="-filter"] {
    background: #fff !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    margin-bottom: 10px !important;
    padding: 8px 12px !important;
  }

  .pre-meeting-agenda-table-container,
  .post-meeting-agenda-table-container {
    background: #fff !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border-radius: 0 !important;
  }

  .pre-meeting-agenda-table-container .table,
  .post-meeting-agenda-table-container .table {
    border: 1px solid #000 !important;
    border-collapse: collapse !important;
  }

  .pre-meeting-agenda-table-container .table thead th,
  .post-meeting-agenda-table-container .table thead th {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }

  .pre-meeting-agenda-table-container .table tbody td,
  .post-meeting-agenda-table-container .table tbody td {
    border: 1px solid #000 !important;
  }

  .pre-meeting-agenda-table-container .table tbody tr.agenda-section,
  .post-meeting-agenda-table-container .table tbody tr.agenda-section {
    background: #f8f9fa !important;
    border-left: 2px solid #000 !important;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }

  .pre-meeting-agenda-table-container
    .table
    tbody
    tr:nth-child(even):not(.agenda-section),
  .post-meeting-agenda-table-container
    .table
    tbody
    tr:nth-child(even):not(.agenda-section) {
    background: #fff !important;
  }

  .pre-meeting-agenda-table-container .table tbody tr.agenda-section:hover,
  .pre-meeting-agenda-table-container
    .table
    tbody
    tr:not(.agenda-section):hover,
  .post-meeting-agenda-table-container .table tbody tr.agenda-section:hover,
  .post-meeting-agenda-table-container
    .table
    tbody
    tr:not(.agenda-section):hover {
    background: inherit !important;
  }

  /* Hide interactive elements for print */
  .pre-meeting-agenda-table-container .agenda-section i.bi,
  .post-meeting-agenda-table-container .agenda-section i.bi {
    display: none !important;
  }

  /* Ensure good contrast */
  .summary-stat-number {
    color: #000 !important;
  }

  .summary-stat-label {
    color: #333 !important;
  }

  /* Remove any gradients */
  * {
    background-image: none !important;
  }

  /* Ensure FontAwesome icons print properly */
  .summary-stat-icon {
    color: #333 !important;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }
}
