/* ===== FORMULÁRIO TRANSPARÊNCIA ===== */
.form-transparencia {
    width: 100%;
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    background: #fafafa;
    font-family: Arial, Helvetica, sans-serif;
}

.form-transparencia label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 600;
    color: #37474f;
    margin-bottom: 15px;
}

.form-transparencia input[type='text'],
.form-transparencia input[type='file'],
.form-transparencia select {
    margin-top: 6px;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #cfd8dc;
    border-radius: 4px;
    background: #fff;
}

.form-transparencia input:focus,
.form-transparencia select:focus {
    outline: none;
    border-color: #1e5aa8;
    box-shadow: 0 0 0 2px rgba(30, 90, 168, 0.15);
}

.form-transparencia input[type='file'] {
    padding: 6px;
}

.form-transparencia button {
    margin-top: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #1e5aa8;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-transparencia button:hover {
    background: #164a8a;
}

.form-transparencia .mensagem-sucesso {
    padding: 10px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #72d678;
    margin-bottom: 15px;
}

.form-transparencia .mensagem-erro {
    padding: 10px;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #c62828;
    margin-bottom: 15px;
}

.btn-enviar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-enviar[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #ffffff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    display: none;
    animation: spin 0.8s linear infinite;
}

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

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


/* ===== LISTA DE DOCUMENTOS DE TRANSPARÊNCIA ===== */
.filtro-transparencia, .filtro-transparencia-public {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Container for each year */
.ano-section {
    margin-bottom: 20px;
}

/* The Grey Bar (Summary) */
.grupo-collapsible {
    background: #d1d1d1;
    margin-bottom: 5px;
    border-radius: 4px;
}

.grupo-collapsible summary {
    padding: 15px;
    list-style: none; /* Removes default arrow */
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

/* Custom indicator (The "-" in your image) */
.grupo-collapsible summary::before {
    content: '—';
    margin-right: 10px;
}

/* List of documents inside */
.grupo-collapsible ul {
    background: #e0e0e0; /* Slightly lighter or different shade */
    margin: 0;
    padding: 10px 0;
    list-style: none;
}

.grupo-collapsible li {
    padding: 8px 0;
	margin: 0;
    border-bottom: 1px solid #ccc;
}

.grupo-collapsible li a {
    text-decoration: underline;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
}

.filtro-transparencia select,
.filtro-transparencia input,
.filtro-transparencia-public select,
.filtro-transparencia-public input {
    padding: 8px 10px;
    border: 1px solid #cfd8dc;
    border-radius: 4px;
    font-size: 14px;
    min-width: 220px;
}

.transparencia-ano {
    margin-bottom: 30px;
}

.transparencia-ano h3 {
    background: #f1f3f5;
    padding: 10px 12px;
    border-left: 5px solid #1e5aa8;
    font-size: 16px;
    margin-bottom: 10px;
    color: #1e5aa8;
}

.transparencia-lista, 
.transparencia-lista-public {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
}

.transparencia-lista li,
.transparencia-lista-public li {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.transparencia-lista li a,
.transparencia-lista-public li a{
    color: #1e5aa8;
    text-decoration: none;
}

.transparencia-lista li a:hover,
.transparencia-lista-public li a:hover{
    text-decoration: underline;
}

.paginacao-transparencia {
    margin-top: 25px;
    text-align: center;
}

.paginacao-transparencia .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 10px;
    border: 1px solid #cfd8dc;
    border-radius: 3px;
    text-decoration: none;
    color: #1e5aa8;
    font-size: 14px;
}

.paginacao-transparencia .page-numbers.current {
    background: #1e5aa8;
    color: #fff;
    border-color: #1e5aa8;
}

.btn-deletar-doc {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
	width: 100px;
	height: 40px;
}

.btn-editar-doc {
    background: #164a8a;
    color: #fff;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
	width: 100px;
	height: 40px;
}

.btn-deletar-doc:hover {
    background: #a93226;
}

/* ===== CLASSES GENÉRICAS ===== */

.text-center {
    text-align: center;
}

.center {
    width: full;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.w-full {
    width: 100%;
}

.flex-between {
    display: flex;
    justify-content: space-between;
	align-items: center;
}

.mt-20 {
    margin-top: 50px;
}

.grid-cols-2 {
	display: grid;
	grid-template-columns: 7fr 1fr;
	grid-template-rows: 1fr;
	grid-column-gap: 0px;
	grid-row-gap: 0px;
}

@media (max-width: 767px) {
	.flex-end {
		display: flex;
		flex-direction: column;
		justify-content: end;
		gap: 10px;
	}
}

@media (min-width: 768px) {
	.flex-end {
		display: flex;
		flex-direction: row;
		justify-content: end;
		gap: 10px;
	}
}

.flex-end {
	display: flex;
	justify-content: end;
}


/* Botão abrir modal */
.btn-abrir-modal {
    padding: 12px 20px;
    margin: 24px 0px;
    background: #0057ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Caixa modal */
.modal-box {
    background: #fff;
    width: 100%;
    max-width: 520px;
    border-radius: 8px;
    padding: 25px;
    position: relative;
    animation: fadeIn .2s ease-in-out;
}

/* Botão fechar */
.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* Spinner */
.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    padding: 14px 42px 14px 18px;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    animation: toast-in 0.4s ease forwards;
}

.toast-deletado {
    background: #2ecc71;
}

.toast-erro {
    background: #e74c3c;
}

.toast-message {
    display: block;
}

.toast-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

hide {
    display: none;
}

.toast.hide {
    animation: toast-out 0.4s ease forwards;
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ===== RESPONSIVO ===== */
@media (max-width: 600px) {
    .filtro-transparencia {
        flex-direction: center;
    }

    .form-transparencia {
        padding: 15px;
    }
}