
/* =====================================================
   PRECEY - ACTES MUNICIPAUX
   ===================================================== */

/* FILTRES */

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

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

.precey-actes-filter select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
}

/* TABLEAU */

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

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

.precey-actes-row:hover {
    background-color: #f8faf9;
}

.precey-actes-table-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.precey-actes-row {
    min-height: 65px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    font-size: 13px;
}

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

.precey-actes-date {
    font-weight: 600;
    white-space: nowrap;
}

.precey-actes-reference {
   font-weight: 600;
   white-space: nowrap;
}

.precey-actes-title {
    font-weight: 600;
    line-height: 1.5;
}

/* BADGES */

.precey-actes-type .badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

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

.precey-actes-type .badge-deliberation {
    background: #eff7f2;
    color: #2b6e44;
    border: 1px solid #2b6e44;
}

.precey-actes-type .badge-pv {
    background: #eff7f2;
    color: #2b6e44;
    border: 1px solid #2b6e44;
}

.precey-actes-type .badge-compte-rendu {
    background: #eff7f2;
    color: #2b6e44;
    border: 1px solid #2b6e44;
}

/* TÉLÉCHARGEMENT */

.precey-actes-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-actes-pdf:hover {
    background: #2e8b57;
    color: #fff !important;
}

.precey-actes-no-file {
    display: inline-block;
    color: #9ca3af;
    font-size: 12px;
}

/* MESSAGE VIDE */

.precey-actes-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: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    color: #6b7280;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

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

.precey-actes-empty p {
    margin: 0;
}

/* PAGINATION */

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

.precey-actes-page {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
}

.precey-actes-page:hover,
.precey-actes-page.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

/* CHARGEMENT */

.precey-actes-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: #6b7280;
    font-size: 13px;
}

.precey-actes-loading[hidden] {
    display: none;
}

.precey-actes-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: precey-actes-spin .7s linear infinite;
}

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

.precey-actes-results-container.is-loading {
    opacity: .55;
    pointer-events: none;
}

/* ERREUR */

.precey-actes-error {
    padding: 15px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    text-align: center;
    font-size: 13px;
}

/* MOBILE */

@media (max-width: 767px) {
    .precey-actes-table-header,
    .precey-actes-row {
        gap: 10px;
        padding: 14px;
    }

    .precey-actes-empty {
        min-height: 160px;
        padding: 25px 15px;
    }
}
