@charset "ISO-8859-1";

body {
    /*background: #f4f6f8;*/
    font-family: Inter, sans-serif;
    margin: 0;
}

.leg-accordion {
    border: 1px solid #cfcfcf;
    border-radius: 0.375rem;
    overflow: hidden;
}

.leg-accordion .ui-accordion-header {
    background: #fff !important;
    border: none !important;
    border-bottom: 1px solid #cfcfcf !important;
    border-radius: 0 !important;
    padding: 1rem 1.25rem !important;
    margin: 0 !important;
    box-shadow: none !important;
    color: #0A0A0A !important;
    /* Fonte originamente preta */
    position: relative;
    font-family: Inter, sans-serif;
    font-size: 1rem !important;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

/* Efeito hover do TRE-PR */
.leg-accordion .ui-accordion-header:hover {
    color: #4671c8 !important;
    /* Fonte na cor principal ao passar o mouse */
    background-color: #fff !important;
    /* Mantém o fundo limpo */
}

/* Mantém a cor da seta fixa no hover também ou removemos essa regra, 
   mas garantiremos o verde para a seta sempre */
.leg-accordion .ui-accordion-header:hover::after {
    border-color: #47c77d !important;
}

/* Esconde o ícone padrão do Primefaces */
.leg-accordion .ui-accordion-header .ui-icon {
    display: none !important;
}

/* Desenha o Chevron estilo Bootstrap, verde conforme solicitado */
.leg-accordion .ui-accordion-header::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #47c77d;
    border-bottom: 2px solid #47c77d;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s;
}

/* Estilos do cabeçalho ativo */
.leg-accordion .ui-accordion-header.ui-state-active {
    background-color: #fff !important;
    color: #4671c8 !important;
    /* Mantém texto destacado quando aberto */
    border-bottom: 1px solid #cfcfcf !important;
}

.leg-accordion .ui-accordion-header.ui-state-active::after {
    transform: translateY(-50%) rotate(-135deg);
    border-color: #47c77d !important;
    /* Mantém a seta na cor solicitada */
}

/* Remove última borda p/ não duplicar */
.leg-accordion>.ui-accordion-header:last-of-type:not(.ui-state-active) {
    border-bottom: none !important;
}

.leg-accordion .ui-accordion-content {
    border: none !important;
    border-bottom: 1px solid #cfcfcf !important;
    padding: 1.25rem !important;
    background: #fff !important;
}

.leg-accordion>.ui-accordion-content:last-of-type {
    border-bottom: none !important;
}

.anos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    border-top: 1px solid #cfcfcf;
    border-left: 1px solid #cfcfcf;
}

.ano-item {
    border-right: 1px solid #cfcfcf;
    border-bottom: 1px solid #cfcfcf;
    text-align: center;
    background-color: transparent;
    transition: background-color 0.2s;
}

.ano-item a {
    display: block;
    padding: 12px 5px;
    font-size: 1rem;
    font-family: Inter, sans-serif;
    color: #4671c8;
    font-weight: 500;
    text-decoration: none;
}

.ano-item:hover {
    background-color: #ffDA59;
}

.leg-header {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leg-title {
    color: #2b4987;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.back-btn {
    align-self: flex-start;
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #4671c8 !important;
    background: #fff;
    border: 1px solid #4671c8;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 1rem;
    cursor: pointer;
}

.back-btn:hover {
    background: #4671c8;
    color: #fff !important;
}

.leg-list-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 0.375rem;
    overflow: hidden;
}

.leg-list-container table td, .leg-list-container table th {
    padding: 12px 15px !important;
}

.leg-list {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
}

.leg-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.leg-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.leg-pub-title {
    color: #1b305a !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    transition: color 0.2s;
}

.leg-pub-title:hover {
    color: #2b4987 !important;
    text-decoration: underline !important;
}

.leg-ementa {
    color: #505050;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.empty-msg {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

.ui-datatable thead th,
.ui-datatable .ui-datatable-header,
.ui-datatable .ui-state-default {
    background: #ffffff;
    color: #505050;
    font-weight: 600;
    text-align: left;
}

.leg-emenda {
    color: #505050;
}  

.ui-datatable tbody td {
	vertical-align: top;
}

/* Odd rows */
.ui-datatable tbody tr:nth-child(odd) {
    background: #eaeaea;;
}

/* Even rows */
.ui-datatable tbody tr:nth-child(even) {
    background: #ffffff;
}

/* PrimeFaces DataTable */
.ui-datatable,
.ui-datatable table,
.ui-datatable thead th,
.ui-datatable tbody td,
.ui-datatable .ui-widget,
.ui-datatable .ui-widget-content {
    font-family: Inter, sans-serif !important;
}