/* Map loading animation */
@keyframes spin { 
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
}

/* Filter note styling */
.filter-note {
  background-color: #f8f9fa;
  border-left: 4px solid #007bff;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #495057;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-note strong {
  color: #007bff;
}

/* Table container styling for mobile responsiveness */
.table-container {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100dvh - 200px);
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

/* DataTable styling improvements */
.dataTables_wrapper {
  font-size: 14px;
}

.dataTables_scrollHead, .dataTables_scrollHeadInner, .dataTables_scrollBody, table.dataTable   { width: 100% !important; }

.dataTables_wrapper .dataTables_scrollBody {
  max-height: 400px !important;
}

/* Chart container styling for mobile responsiveness */
.chart-container {
  overflow-x: auto;
  width: 100%;
  min-width: 800px;
}

/* Highcharts container styling */
#chartplot {
  min-width: 800px;
  width: 100%;
}

/* Mobile-specific table and chart styling */
@media (max-width: 768px) {
  .table-container {
    max-height: calc(100dvh - 150px);
    font-size: 12px;
  }
  
  .dataTables_wrapper {
    font-size: 12px;
  }
  
  .dataTables_wrapper .dataTables_filter input {
    width: 100% !important;
    margin-bottom: 5px;
  }
  
  .dataTables_wrapper .dataTables_length select {
    width: auto !important;
  }
  
  .dataTables_wrapper table.dataTable thead th,
  .dataTables_wrapper table.dataTable thead td {
    padding: 6px 8px;
    font-size: 11px;
    white-space: nowrap;
  }
  
  .dataTables_wrapper table.dataTable tbody td {
    padding: 6px 8px;
    font-size: 11px;
    word-break: break-word;
  }
  
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    font-size: 11px;
  }
  
  /* Ensure chart container scrolls horizontally when needed */
  .chart-container {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }
  
  /* Force minimum width on small screens */
  #chartplot {
    min-width: 600px !important;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .table-container {
    max-height: calc(100dvh - 120px);
    font-size: 11px;
  }
  
  .dataTables_wrapper {
    font-size: 11px;
  }
  
  .dataTables_wrapper table.dataTable thead th,
  .dataTables_wrapper table.dataTable thead td {
    padding: 4px 6px;
    font-size: 10px;
  }
  
  .dataTables_wrapper table.dataTable tbody td {
    padding: 4px 6px;
    font-size: 10px;
  }
  
  .chart-container {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
  }
  
  #chartplot {
    min-width: 600px !important;
  }
}
