/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Material Symbols Rounded — style outlined (parité legacy) */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* TomSelect dropdowns au-dessus des modales (z-50 = 50) */
.ts-dropdown {
  z-index: 9999 !important;
}

.leaflet-container {
  background-color: #f4f4f4;
  font-family: inherit;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Scrollbar overlay : flotte par-dessus le contenu, pas de rail visible,
   seulement le curseur (thumb). Ne modifie pas la largeur du layout. */
.scrollbar-overlay {
  /* Firefox : thumb semi-transparent sur fond transparent, fine */
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
  scrollbar-width: thin;
  /* Chromium : overlay = la scrollbar ne prend pas de place dans le layout */
  overflow-y: overlay;
}

/* WebKit (Chrome, Safari, Edge) */
.scrollbar-overlay::-webkit-scrollbar {
  width: 6px;
  background: transparent;
}

.scrollbar-overlay::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-overlay::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
}

.scrollbar-overlay::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.leaflet-touch .leaflet-bar a {
  width: 16px;
  height: 16px;
  line-height: 16px;
}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
  font-size: 12px;
}

/* National choropleth map with DROM insets */
.choropleth-national {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 4px;
}

.choropleth-national-main {
  flex: 1;
  min-height: 0;
  border-radius: 6px;
  overflow: hidden;
}

.choropleth-national-insets {
  display: flex;
  gap: 4px;
  height: 130px;
  flex-shrink: 0;
}

.choropleth-national-inset {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  overflow: hidden;
  background: #fafafa;
}

.choropleth-national-inset-label {
  font-size: 10px;
  text-align: center;
  padding: 2px 4px;
  font-weight: 600;
  color: #555;
  background: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.choropleth-national-inset-map {
  flex: 1;
  min-height: 0;
}

/* Reorder drag-and-drop feedback */
.reorder-ghost {
  opacity: 0.3;
  background-color: rgb(219 234 254); /* blue-100 */
  border-radius: 0.5rem;
}

.reorder-chosen {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.reorder-handle {
  cursor: grab;
  touch-action: none;
}

.reorder-handle:active {
  cursor: grabbing;
}