/* Portal da Transparência - Frontend */

.pt-portal {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 0;
    color: #1d2327;
}

.pt-portal-header {
    margin-bottom: 28px;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 16px;
}

.pt-portal-title {
    margin: 0 0 6px;
    font-size: 1.75rem;
    font-weight: 600;
}

.pt-portal-desc {
    margin: 0;
    color: #50575e;
    font-size: 0.95rem;
}

/* Filtros */
.pt-filtros {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 28px;
}

.pt-filtros-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr auto;
    gap: 14px;
    align-items: end;
}

@media (max-width: 768px) {
    .pt-filtros-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .pt-filtros-grid {
        grid-template-columns: 1fr;
    }
}

.pt-filtro label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #50575e;
}

.pt-filtro input[type="text"],
.pt-filtro select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #fff;
}

.pt-filtro-btn {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Botões */
.pt-btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    line-height: 1.3;
    transition: background 0.15s ease;
}

.pt-btn-primary {
    background: #2271b1;
    color: #fff;
}

.pt-btn-primary:hover {
    background: #135e96;
    color: #fff;
}

.pt-btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
    border: 1px solid #c3c4c7;
}

.pt-btn-secondary:hover {
    background: #dcdcde;
    color: #2c3338;
}

.pt-btn-download {
    background: #00a32a;
    color: #fff;
    white-space: nowrap;
}

.pt-btn-download:hover {
    background: #008a20;
    color: #fff;
}

.pt-btn-download small {
    opacity: 0.85;
    font-weight: 400;
}

.pt-btn-disabled {
    background: #dcdcde;
    color: #8c8f94;
    cursor: not-allowed;
}

/* Lista */
.pt-count {
    margin: 0 0 16px;
    font-size: 0.9rem;
    color: #50575e;
}

.pt-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 16px 20px;
    transition: box-shadow 0.15s ease;
}

.pt-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

@media (max-width: 600px) {
    .pt-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

.pt-item-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 600;
}

.pt-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pt-tag {
    display: inline-block;
    background: #e7f0f7;
    color: #135e96;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 500;
}

.pt-tag-ano {
    background: #f0f6e7;
    color: #3d6b1e;
}

.pt-tag-mes {
    background: #f7f0e7;
    color: #6b4e1e;
}

.pt-date {
    font-size: 0.8rem;
    color: #8c8f94;
    margin-left: 4px;
}

.pt-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f6f7f7;
    border-radius: 6px;
    color: #50575e;
}
