  * { box-sizing: border-box; }
  /* body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: #222;
  } */
  h1 {
    color: #fff;
    text-align: center;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  }
  .dashboard {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .card h2 {
    margin-top: 0;
    color: #1e3c72;
    border-bottom: 2px solid #1e3c72;
    padding-bottom: 8px;
    font-size: medium;
  }
  .table-container {
    grid-column: 1 / 2;
    max-height: 400px;
    overflow-y: auto;
  }
  .chart-container { grid-column: 2 / 3; }
  .map-container {
    grid-column: 1 / 3;
    height: 550px;
  }
  #map { height: 470px; border-radius: 8px; }
  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  th {
    background: #1e3c72;
    color: white;
    padding: 10px 8px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 5;
  }
  .text-paese{
   font-size: smaller 
  }
  td {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
  }
  tr { cursor: pointer; transition: background 0.2s; }
  tr:hover td { background: #e3f2fd; }
  tr.selected td {
    background: #ffd54f !important;
    font-weight: bold;
  }
  tr.total td {
    background: #1e3c72 !important;
    color: white !important;
    font-weight: bold;
    font-size: 15px;
    cursor: default;
  }
  .num { text-align: right; font-variant-numeric: tabular-nums; }
  .legend {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .legend-item {
    background: #f5f5f5;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
  }
  .legend-item strong { color: #1e3c72; }
  .leaflet-tooltip.custom-tip {
    background: rgba(30,60,114,0.95);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  .leaflet-tooltip.custom-tip::before { border: none; }
  @media (max-width: 900px) {
    .dashboard { grid-template-columns: 1fr; }
    .table-container, .chart-container, .map-container { grid-column: 1; }
  }