/* PROPRIÉTÉ DE CASCADE : variante compacte des dimensions, espacements et
   typographies. La structure reste dans bar_flottante.css ; les adaptations
   responsive et les offcanvas Info/Stats restent dans responsive.css. */

/* =========================================================
   TOOL PANELS - TAILLE MOYENNE
   ========================================================= */

/* Panneaux en taille moyenne */
.tool-panel {
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.18);
  z-index: 10000;
  flex-direction: column;
  min-width: 220px;
  font-size: 13px;
}

/* Header en taille moyenne */
.tool-panel .panel-header {
  padding: 10px 14px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  border-radius: 10px 10px 0 0;
  cursor: default;
}

.tool-panel .panel-header h3 {
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-panel .panel-header h3 i {
  font-size: 13px;
  color: #0066cc;
}

.tool-panel .panel-close {
  color: #999;
  padding: 4px;
  font-size: 14px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.tool-panel .panel-close:hover {
  background: #e9ecef;
  color: #666;
}

/* Content en taille moyenne */
.tool-panel .panel-content {
  padding: 14px;
  max-height: 65vh;
  font-size: 13px;
}

/* Panel header actions (pour table attributaire) */
.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-header-actions .panel-btn {
  padding: 4px 8px;
  font-size: 12px;
}

/* Sections en taille moyenne */
.symbology-section,
.labeling-section,
.import-section {
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.symbology-section h5,
.labeling-section h5 {
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight: 600;
}

/* Formulaires en taille moyenne */
.form-group {
  margin-bottom: 12px;
}

.form-group label {
  font-size: 12px;
  margin-bottom: 4px;
  color: #555;
}

.form-control {
  padding: 6px 10px;
  font-size: 13px;
  height: auto;
  min-height: 34px;
}

/* Boutons en taille moyenne */
.panel-btn {
  padding: 7px 12px;
  font-size: 12px;
  gap: 6px;
}

.panel-btn.btn-small {
  padding: 4px 8px;
  font-size: 11px;
}

.panel-btn i {
  font-size: 12px;
}

/* Style rows */
.style-row {
  gap: 8px;
  margin-bottom: 8px;
}

.style-row label {
  font-size: 12px;
  min-width: 80px;
}

.style-row input[type="color"] {
  width: 45px;
  height: 30px;
}

.style-row input[type="range"] {
  min-width: 70px;
}

/* Toggle switches */
.toggle-label {
  font-size: 12px;
  gap: 10px;
}

.toggle-slider {
  width: 44px;
  height: 22px;
}

.toggle-slider::after {
  width: 18px;
  height: 18px;
}

.toggle-label input:checked + .toggle-slider::after {
  transform: translateX(22px);
}

/* Tables en taille moyenne */
.sample-table,
.categories-table,
.attribute-table {
  font-size: 12px;
}

.sample-table th,
.categories-table th,
.attribute-table th {
  padding: 7px 8px;
  font-size: 12px;
}

.sample-table td,
.categories-table td,
.attribute-table td {
  padding: 6px 8px;
}

/* Pagination */
.pagination-controls {
  gap: 5px;
}

.page-input {
  width: 48px;
  padding: 4px 6px;
  font-size: 12px;
}

.page-size-selector {
  font-size: 12px;
}

.page-size-selector select {
  width: 65px;
  font-size: 12px;
  padding: 4px 6px;
}

/* Aperçus */
.symbology-preview,
.labeling-preview {
  padding: 14px;
}

.symbology-preview h5,
.labeling-preview h5 {
  font-size: 13px;
}

/* Info sections */
.info-section {
  padding: 10px;
  margin-bottom: 12px;
}

.info-section h4 {
  font-size: 13px;
  margin-bottom: 6px;
}

.info-section p {
  font-size: 12px;
}

/* Legend panel spécifique */
#legend-panel {
  width: 220px;
  max-height: 350px;
}

#legend-panel .panel-content {
  padding: 12px;
}

.legend-item {
  padding: 6px 8px;
}

.legend-label {
  font-size: 12px;
}

/* Attribut table panel */
#attribute-table-panel {
  min-width: 550px;
  min-height: 350px;
}

.attribute-toolbar {
  padding: 8px 12px;
}

.toolbar-center {
  font-size: 13px;
}

.search-box input {
  width: 150px;
  padding: 6px 10px 6px 28px;
  font-size: 12px;
}

.search-box i.fa-search {
  left: 10px;
  font-size: 11px;
}

/* Scrollbar fine */
.tool-panel .panel-content::-webkit-scrollbar {
  width: 8px;
}

.tool-panel .panel-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.tool-panel .panel-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.tool-panel .panel-content::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}
