* {
    margin: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    background-color: white
        /*color: #333;*/
        line-height: 1.5;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* usar vh em vez de % para garantir altura total */
}

main {
    /* background: #fff; */
    background: #ffffdf;
    margin: 10px 10px 0 10px;
    /* top right bottom left */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1 0 auto;
    /* flex-grow: 1, flex-shrink: 0, flex-basis: auto */
    display: flex;
    flex-direction: column;
}

footer {
    background-color: inherit margin: 10px 10px 10px 10px;
    /* top right bottom left */
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    flex-shrink: 0;
}

nav {
    --menu-link-color: green;
    background-color: yellow;
    color: #fff;
    padding: 1rem;
    margin: 10px 10px 0 10px;
    /* top right bottom left */
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

nav a {
    color: var(--menu-link-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
}

nav a:hover {
    background-color: #555;
    border-radius: 4px;
}

nav span {
    padding: 0.5rem 1rem;
}

h1 {
    font: 36px/38px AppleGaramond, Georgia, "Times New Roman", Times, serif;
    font-weight: bold;
    margin-bottom: 10px;
}

h2 {
    font: 24px/26px AppleGaramond, Georgia, "Times New Roman", Times, serif;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1
}

.dropdown:hover .dropdown-content {
    display: block;
}


.box {
    /* background-color: #e9f5e9; Tom de verde mais suave */
    background-color: white;
    border: 1px solid #d4e9d4;
    border-radius: 5px;
    margin-bottom: 1.5em;
    padding: 0 1em 1em 1em;
    margin-top: 2em;
}

/* Layout para campos na mesma linha */
.row {
    display: flex;
    align-items: flex-start;
    /* margin-bottom: 0.5rem; */
}

/* Ajuste para campos que devem ocupar a linha toda */
.field-row {
    width: 100%;
}

/* Container de campos para layout em linha */
.row .field-row {
    flex: 1;
    margin-right: 1rem;
    width: auto;
}

.row .field-row:last-child {
    margin-right: 0;
}

/* Ajuste específico para campo de frequência */
.row .field-row.frequency {
    flex: 0 0 80px;
}

/* Estilos para campos de entrada */
.item {
    padding: 0;
}

.value-container {
    display: flex;
    align-items: center;
}

.value-container input,
.value-container textarea {
    width: 100%;
    padding: 4px 8px;
}

.frequency input {
    min-width: 4em;
}

/* Ícone de desfazer */
.undo-icon {
    cursor: pointer;
    margin-left: 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.undo-icon:hover {
    opacity: 1;
}

.box * {
    font-size: inherit;
    font-family: inherit;
}

.box label {
    padding: 0.2em;
    font-weight: bold;
    /* color: white; */
    margin-right: 0.5em;
}

.box legend {
    font: 24px/26px AppleGaramond, Georgia, "Times New Roman", Times, serif;
    font-weight: bold;
    font-size: 24px;
    padding: 0.1em 1em;
    /* Reduced vertical padding */
    margin-left: 1em;
    /* background-color: #ffffdf; */
    background: linear-gradient(to bottom, rgb(229, 216, 192), white);
    border: 1px solid #d4e9d4;
    border-bottom: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    position: relative;
    top: -0.65em;
    /* Move legend up */
}

.box input,
.box .texto {
    flex-grow: 1;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin: 0;
    padding: 2px 4px;
    /* A small vertical and horizontal padding */
    white-space: pre-line;
}

.col {
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    gap: 1em;
    /* Espaçamento entre itens da linha */
}

.grow {
    display: flex;
    flex-grow: 1;
    align-items: center;
}

.shrink {
    display: flex;
    flex-shrink: 1;
    align-items: center;
}

/* Novo: Para itens onde o label fica acima do campo (ex: textareas) */
.item.col {
    flex-direction: column;
    align-items: flex-start;
    /* Alinha o label à esquerda */
}

/* Estilos para formulário de login e página de notícias */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

.auth-container h1 {
    text-align: center;
}

.auth-container input[type="email"],
.auth-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    /* Garante que padding não afete a largura */
}

/* .auth-container button { */
button {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #005a9e;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}

button:hover {
    background-color: #004170;
}

.auth-container button:hover {
    background-color: #004170;
}

.error-message {
    color: red;
    background-color: #ffebee;
    border: 1px solid red;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 1em;
}

/* Responsive Navigation */
.mobile-nav {
    display: none;
}

.mobile-menu-icon,
.mobile-user-icon {
    color: var(--menu-link-color);
    cursor: pointer;
    font-size: 1.5rem;
}

.mobile-menu-container,
.mobile-user-menu-container {
    display: none;
    position: absolute;
    top: 70px;
    /* Adjust based on nav height */
    left: 10px;
    right: 10px;
    background-color: yellow;
    flex-direction: column;
    align-items: stretch;
    border-radius: 5px;
    padding: 0;
    z-index: 10;
}

.mobile-menu-container a,
.mobile-user-menu-container a,
.mobile-menu-container .dropdown-toggle {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    color: var(--menu-link-color);
    display: block;
}

.mobile-menu-container .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

@media screen and (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

/* --- Agenda Page Specific Styles --- */
.box .row {
    display: flex;
    width: 100%;
    gap: 1em;
    padding: 0;
    margin-bottom: 0;
    /* Reset margin for all rows inside a box */
}

.box .row .row {
    margin-bottom: 0 !important;
}

/* Apply margin ONLY to the direct children of .box, which represent the actual rows */
.box>.row,
.box>.field-row {
    margin-bottom: 0.25em;
}

.box .item {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* NOVO: Força os itens que contêm um textarea a ficarem em formato de coluna */
.box .item:has(textarea) {
    flex-direction: column;
    align-items: flex-start;
    /* Alinha o label à esquerda */
    gap: 0.25em;
    /* Adiciona um pequeno espaço entre o label e o textarea */
}

/* Garante que o container do textarea ocupe 100% da largura no layout de coluna */
.box .item:has(textarea) .value-container {
    width: 100%;
}


.box .item label {
    flex-shrink: 0;
    margin-right: 0.5em;
}

.box .item .value-container {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}

/* Default state (view mode) makes inputs look like plain text */
#agenda-container .value-container input[readonly],
#agenda-container .value-container textarea[readonly] {
    border-color: transparent;
    background-color: transparent;
    cursor: default;
    color: inherit;
    padding-left: 0;
}

/* When in edit mode, make editable fields look like inputs */
#agenda-container.edit-mode .value-container input:not([data-readonly="true"]),
#agenda-container.edit-mode .value-container textarea,
/* Also style fields that are not readonly even in view mode */
#agenda-container.view-mode .value-container .edit-field:not([readonly]) {
    border: 1px solid #ccc;
    background-color: #fff;
}

#agenda-container.view-mode .obs-fieldset {
    display: none;
}

#agenda-container.view-mode .view-hidden {
    display: none;
}

.box.view-hidden {
    display: none;
}

.value-container input,
.value-container textarea {
    width: 100%;
    padding-right: 25px;
    box-sizing: border-box;
}

/* --- Hino Autocomplete Dropdown --- */
.hino-autocomplete {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 25px;
    /* deixa espaço para o ícone de undo */
    background: #fff;
    border: 1px solid #b0c8b0;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 200;
    max-height: 220px;
    overflow-y: auto;
}

.hino-option {
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.88em;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #f0f0f0;
}

.hino-option:last-child {
    border-bottom: none;
}

.hino-option:hover,
.hino-option.is-active {
    background-color: #e6f0e6;
    color: #1a5c1a;
}

.value-container textarea {
    resize: vertical;
    /* Permite redimensionamento vertical manual */
    min-height: 4em;
    /* Uma altura mínima inicial */
}

/* Em modo visualização, textarea sem barra de rolagem — altura ajustada pelo JS */
#agenda-container.view-mode .value-container textarea[readonly] {
    overflow: hidden;
    resize: none;
    height: auto;
}

.undo-icon {
    display: none;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #007bff;
    font-style: normal;
    width: 16px;
    height: 16px;
}

#agenda-container .undo-icon.visible {
    display: block;
}

.field-changed {
    border-color: #007bff !important;
}

.controls {
    /* This is now controlled by header-row flex properties */
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.row-group {
    display: flex;
    gap: 1em;
    width: 100%;
}

.row-group .field-row {
    flex-grow: 1;
}

.row-group .frequency-field {
    flex-grow: 0;
    max-width: 10em;
}


/* --- Date Picker Modal Styles --- */
.date-picker-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.date-picker-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
}

.date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.date-picker-header button {
    background: none;
    border: none;
    padding: 10px;
    /* Make the clickable area larger */
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.date-picker-header button:hover {
    background: #d0eaff;
    border-radius: 50%;
    /* Make hover a circle */
}

/* Common style for the arrow pseudo-element */
.date-picker-header button::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
}

#prev-year::after {
    border-width: 8px 10px 8px 0;
    border-color: transparent #333 transparent transparent;
    margin-left: -5px;
    /* Fine-tune position */
}

#next-year::after {
    border-width: 8px 0 8px 10px;
    border-color: transparent transparent transparent #333;
    margin-right: -5px;
    /* Fine-tune position */
}

.date-picker-header span {
    font-weight: bold;
    font-size: 1.2em;
}

.meeting-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
}

.meeting-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.meeting-item a {
    text-decoration: none;
    color: #333;
}

.meeting-item:hover {
    background-color: #f0f0f0;
}

.active-date {
    background-color: #d0eaff;
}

/* .date-header { cursor: pointer; text-decoration: underline; color: #007bff; } */
.date-header {
    cursor: pointer;
    color: #005a9e;
}

.date-header:hover {
    color: #004170;
}



@font-face {
    font-family: 'AppleGaramond';
    src: url('fonts/AppleGaramond.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AppleGaramond';
    src: url('fonts/AppleGaramond-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'AppleGaramond';
    src: url('fonts/AppleGaramond-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'AppleGaramond';
    src: url('fonts/AppleGaramond-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'DistrictThin';
    src: url('fonts/district-thin-webfont.eot');
    src: url('fonts/district-thin-webfont.eot?#iefix') format('embedded-opentype'),
        url('fonts/district-thin-webfont.woff') format('woff'),
        url('fonts/district-thin-webfont.ttf') format('truetype'),
        url('fonts/district-thin-webfont.svg#DistrictThin') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DistrictLight';
    src: url('fonts/district-light-webfont.eot');
    src: url('fonts/district-light-webfont.eot?#iefix') format('embedded-opentype'),
        url('fonts/district-light-webfont.woff') format('woff'),
        url('fonts/district-light-webfont.ttf') format('truetype'),
        url('fonts/district-light-webfont.svg#DistrictLight') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* @end font-face */

/* ============================================================
   Generic Utility Classes
   ============================================================ */
.container-centered {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.title-main {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.title-sub {
    font-size: 1.25rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 2rem;
}

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

.empty-message {
    color: #6b7280;
}

.block {
    display: block;
}

.border-bottom {
    border-bottom: 1px solid #e5e7eb;
}

.pt-2 {
    padding-top: 2rem;
}

.pb-2 {
    padding-bottom: 2rem;
}

.pb-05 {
    padding-bottom: 0.5rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-15 {
    margin-top: 15px;
}

.ml-5 {
    margin-left: 5px;
}

.ml-15 {
    margin-left: 15px;
}

.pre-wrap {
    white-space: pre-wrap;
}

.text-dark {
    color: #374151;
}

.line-height-16 {
    line-height: 1.6;
}

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

.text-13 {
    font-size: 13px;
}

/* Flexbox Utilities */
.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

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

.gap-5 {
    gap: 5px;
}

.gap-10 {
    gap: 10px;
}

.flex-1 {
    flex: 1;
}

.flex-1-1-0 {
    flex: 1 1 0%;
}

/* Form & Input Utilities */
.relative {
    position: relative;
}

.w-100 {
    width: 100%;
}

.min-w-200 {
    min-width: 200px;
}

.box-border {
    box-sizing: border-box;
}

.cursor-pointer {
    cursor: pointer;
}

.input-mini {
    width: 48px;
    cursor: pointer;
    padding: 3px 2px 3px 6px;
}

.input-icon-right {
    width: 100%;
    padding-left: 4px;
    padding-right: 20px;
    box-sizing: border-box;
}

.icon-right-out {
    right: -15px;
}

.icon-right-in {
    right: 5px;
}

.col-orador-nome {
    flex: 0 0 var(--nome-width, 25%);
    max-width: var(--nome-width, 25%);
    min-width: 40px;
}

.resizer-col {
    flex: 0 0 16px;
    cursor: col-resize;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='16' viewBox='0 0 8 16'%3E%3Cpath fill='%23aaa' d='M2.5 3h1v10h-1zm2 0h1v10h-1z'/%3E%3C/svg%3E") center no-repeat;
}

.btn-print {
    padding: 6px 12px;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
}

/* ============================================================
   Sacramentais Agenda — Estilos específicos da página
   ============================================================ */

#sac-agenda-container {
    width: 100%;
    box-sizing: border-box;
    padding: 1em 5px 3em;
    /* Padding reduzido para parecer com a tela esticada principal */
}

/* --- Toolbar (só título) --- */
.sac-toolbar {
    margin-bottom: 0.6em;
}

.sac-toolbar h1 {
    margin: 0;
    font-size: 1.4em;
}

/* --- Linha de busca --- */
.sac-search-row {
    display: flex;
    gap: 0.5em;
    align-items: center;
    margin-bottom: 0.5em;
    flex-wrap: wrap;
}

/* --- Linha do botão adicionar --- */
.sac-add-row {
    margin-bottom: 1.4em;
}

#sac-search {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
    flex: 1 1 220px;
    max-width: 400px;
}

#sac-search:focus {
    outline: none;
    border-color: #4a90a4;
    box-shadow: 0 0 0 2px rgba(74, 144, 164, 0.2);
}

.btn-search {
    padding: 6px 16px;
    background-color: #1565c0;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.92em;
    width: auto;
    transition: background-color 0.2s;
}

.btn-search:hover {
    background-color: #0d47a1;
}

.btn-clear {
    padding: 6px 14px;
    background-color: #fff;
    color: #c62828;
    border: 1px solid #c62828;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.92em;
    width: auto;
    transition: background-color 0.2s, color 0.2s;
}

.btn-clear:hover {
    background-color: #ffebee;
}

.btn-recent {
    padding: 6px 14px;
    background-color: #ff9800;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.92em;
    width: auto;
    transition: background-color 0.2s;
    font-weight: bold;
}

.btn-recent:hover {
    background-color: #e68a00;
}

.btn-primary {
    padding: 6px 14px;
    background-color: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.92em;
    width: auto;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1b5e20;
}

/* --- Mensagem sem resultados --- */
.sac-no-results {
    text-align: center;
    padding: 2em;
    color: #888;
    font-style: italic;
}

.sac-empty {
    text-align: center;
    color: #888;
    padding: 2em 0;
}

/* --- Box individual --- */
.sac-box {
    border: 1px solid #d4e9d4;
    border-radius: 6px;
    padding: 0.8em 1em 1em;
    margin-bottom: 1.2em;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

.sac-date {
    color: #555;
    font-size: 1.05em;
    font-weight: bold;
}

.sac-obs-preview {
    color: #555;
    font-size: 1.05em;
    font-weight: bold;
}

/* --- Campos editáveis dentro das boxes --- */
.sac-box .row.field-row {
    display: flex;
    width: 100%;
    gap: 0.5em;
    padding: 0;
    margin-bottom: 0.25em;
    align-items: center;
}

.sac-box .item {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.sac-box .item:has(textarea) {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2em;
}

.sac-box .item:has(textarea) .value-container {
    width: 100%;
}

.sac-box .item label {
    flex-shrink: 0;
    font-weight: bold;
    margin-right: 0.5em;
    font-size: 0.9em;
    color: #333;
    min-width: 130px;
}

.sac-box .item.orador-item label.orador-label {
    min-width: 70px;
}

.sac-box .value-container {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.sac-box .value-container input,
.sac-box .value-container select,
.sac-box .value-container textarea,
.sac-box .value-container .read-only-box {
    width: 100%;
    padding: 4px 28px 4px 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
    resize: vertical;
}

.sac-box .value-container .read-only-box {
    background: #f5f5f5;
    color: #333;
    min-height: 28px;
    display: flex;
    align-items: center;
    margin: 0;
    line-height: 1.4;
}

.sac-box .value-container textarea {
    min-height: 3.5em;
    resize: vertical;
}

.sac-box .value-container input:focus,
.sac-box .value-container textarea:focus {
    outline: none;
    border-color: #4a90a4;
    box-shadow: 0 0 0 2px rgba(74, 144, 164, 0.15);
}

/* Campo alterado */
.sac-box .field-changed {
    border-color: #007bff !important;
}

/* Undo icon dentro das sac-boxes */
.sac-box .undo-icon {
    display: none;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #007bff;
    font-style: normal;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.sac-box .undo-icon.visible {
    display: block;
}

.sac-box .undo-icon:hover {
    color: #0056b3;
}

/* Box oculto pela busca */
.sac-box.search-hidden {
    display: none;
}

/* Highlight de termos encontrados na legenda */
mark.search-mark {
    background-color: #fff176;
    color: #c62828;
    border-radius: 2px;
    padding: 0 1px;
    font-style: normal;
}

/* Campo (input/textarea) que contém o termo pesquisado */
.search-match-highlight {
    background-color: #fffde7 !important;
    border-color: #f9a825 !important;
    box-shadow: 0 0 0 2px rgba(249, 168, 37, 0.25) !important;
}

/* --- Navegação por ano --- */
.year-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    justify-content: center;
    margin-top: 2.5em;
    padding-top: 1em;
    border-top: 1px solid #e0e0e0;
}

.year-link {
    padding: 4px 12px;
    border: 1px solid #b0c8b0;
    border-radius: 20px;
    color: #2e7d32;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.15s, color 0.15s;
}

.year-link:hover {
    background: #e8f5e9;
}

.year-link.active {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
    font-weight: bold;
}

.year-link.year-no-results {
    text-decoration: line-through;
    color: #c62828;
    border-color: #ffcdd2;
    background: #fff;
    opacity: 0.65;
}

/* --- Responsivo --- */
@media (max-width: 600px) {
    .sac-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    #sac-search {
        width: 100%;
    }

    .sac-box .item label {
        min-width: 100px;
    }
}

/* --- Tabs --- */
.sac-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 15px;
    gap: 5px;
}

.sac-tab-btn {
    padding: 8px 16px;
    background: #f1f1f1;
    border: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
    color: #555;
    position: relative;
    transition: background 0.2s;
}

.sac-tab-btn:hover {
    background: #e0e0e0;
}

.sac-tab-btn.active {
    background: #2e7d32;
    color: #fff;
    border-bottom: 2px solid #2e7d32;
    margin-bottom: -2px;
}

.sac-tab-btn.has-match::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    background-color: #ffeb3b;
    border: 1px solid #333;
    border-radius: 50%;
}

.sac-tab-content {
    display: none;
}

.sac-tab-content.active {
    display: block;
}

@media (max-width: 600px) {
    .orador-inputs-wrapper {
        flex-direction: column !important;
        gap: 5px !important;
    }

    .orador-inputs-wrapper .resizer {
        display: none !important;
    }

    .orador-inputs-wrapper .orador-nome {
        flex: auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .orador-inputs-wrapper .assunto-wrapper {
        flex: auto !important;
        width: 100% !important;
    }
}