
/* =====================================================
   PRECEY - AVIS MUNICIPAUX
   ===================================================== */

/* Filtres */

.precey-avis-filter {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 15px;
}

.precey-avis-filter label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.precey-avis-filter select {
    width: 100%;
    min-width: 220px;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #181e25;
    font-size: 14px;
}

/* Tableau */

.precey-avis-table {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-top: 15px;
}

.precey-avis-table-header,
.precey-avis-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 4fr 1.5fr;
    align-items: center;
    gap: 12px;
    min-width: 850px;
    padding: 14px 20px;
}

.precey-avis-table-header {
    background: #f2f5f8;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
}

.precey-avis-row {
    border-bottom: 1px solid #f3f4f6;
    color: #181e25;
    font-size: 13px;
}

.precey-avis-row:last-child {
    border-bottom: none;
}

.precey-avis-reference {
    color: #6b7280;
    font-family: monospace;
}

.precey-avis-title {
    font-weight: 600;
}

/* Badges */

.precey-avis-type .badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-defaut {
  background: #eff7f2;
  color: #2b6e44;
  border: 1px solid #2b6e44;
}

.badge-enquete {
  background: #eff7f2;
  color: #2b6e44;
  border: 1px solid #2b6e44;
}

.badge-autorisation {
  background: #eff7f2;
  color: #2b6e44;
  border: 1px solid #2b6e44;
}

.badge-convocation {
  background: #eff7f2;
  color: #2b6e44;
  border: 1px solid #2b6e44; 
}

.badge-ordre {
  background: #eff7f2;
  color: #2b6e44;
  border: 1px solid #2b6e44;
}

/* PDF */

.precey-avis-pdf {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid #2e8b57;
  border-radius: 40px;
  color: #2e8b57 !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.precey-avis-pdf:hover {
  background: #2e8b57;
  color: #fff !important;
}

.precey-avis-no-file {
    color: #9ca3af;
    font-size: 11px;
}

/* Aucun résultat */

.precey-avis-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.precey-avis-empty-icon {
    margin-bottom: 8px;
    font-size: 24px;
}

/* Pagination */

.precey-avis-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

.precey-avis-page {
    min-width: 36px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    cursor: pointer;
}

.precey-avis-page:hover,
.precey-avis-page.is-active {
    background: #1f603a;
    border-color: #1f603a;
    color: #fff;
}

/* Chargement AJAX */

.precey-avis-loading {
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: #6b7280;
    font-size: 13px;
}

.precey-avis-loading:not([hidden]) {
    display: flex;
}

.precey-avis-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-top-color: #1f603a;
    border-radius: 50%;
    animation: precey-avis-spin 0.7s linear infinite;
}

@keyframes precey-avis-spin {
    to {
        transform: rotate(360deg);
    }
}

.precey-avis-results-container.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Erreurs */

.precey-avis-error {
    padding: 15px;
    color: #b91c1c;
    font-size: 13px;
}


/* =====================================================
   AVIS MUNICIPAUX - TABLEAU VIDE
   ===================================================== */

.precey-avis-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 190px;
    width: 100%;
    box-sizing: border-box;

    margin-top: 15px;
    padding: 35px 20px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;

    color: #6b7280;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.precey-avis-empty-icon {
    margin-bottom: 12px;
    font-size: 30px;
    opacity: 0.7;
}

.precey-avis-empty p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}


.precey-avis-no-file {
    display: inline-block;
    padding: 6px 10px;

    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;

    color: #9ca3af;
    font-size: 11px;
}


