@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

html{
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Dark Professional Green */
    --primary: #047857;
    --primary-dark: #065f46;
    --primary-light: #059669;

    /* Accent Colors */
    --accent: #047857;
    --accent-secondary: #3b82f6;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #494e55;
    --text-light: #ffffff;

    /* Background Colors - Light & Clean */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;

    /* Border Colors */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-radar: #047857;

    /* Status Colors */
    --success: #047857;
    --info: #3b82f6;
    --warning: #f59e0b;
    --danger: #ef4444;
}
/* Novo Estilo*/

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: .5rem;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(4, 120, 87, 0.04) 2px, rgba(4, 120, 87, 0.04) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(4, 120, 87, 0.04) 2px, rgba(4, 120, 87, 0.04) 4px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

pre{
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

table{ border-collapse: collapse; border: 1px solid var(--text-primary); width: 100%;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: white; font-size: 1.5rem;
}
table caption {caption-side: top;}
td,th {border: 1px solid var(--text-primary); padding: 0.5rem; text-align: center; font-size: 1.5rem;}

section{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    overflow: hidden;
}
#LogoRadar {
    width: 200px;
}
.tabelas-envoltorio{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    overflow: auto;
    gap: 1rem
}
.escondido{
    opacity: 0;
    visibility: hidden;
}
.desativado{
    display: none !important;
}
/* Pages */
.page {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.page.active {
    display: block;
}

/* Navbar */
#navBar {
    padding: 16px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
}

.navBrand {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;

}



.navBrand:hover {
    color: var(--primary-dark);
}

.navLinks {
    display: flex;
    gap: 4px;
}

.desabilitado {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none; /* Garante que o clique não mude classes */
}

.navLinks a, .button, .opcoesIndex .selectA {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    height: fit-content;
}

#limpar{
    border: none;
    background-color: unset;
    cursor: pointer;
}

#limpar:hover{
    color: var(--primary-light);
}

.navLinks a.selectA, .opcoesIndex .selectA {
    text-align: center;
    background-color: var(--bg-card);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.navLinks a:hover, .button:hover {
    color: var(--bg-hover);
    background-color: var(--primary-light);
}

.navLinks a.active, .button.active {
    color: var(--text-light);
    background: var(--primary);
    font-weight: 600;
    box-shadow: none;
}

.btn-govbr{
    color: var(--text-light);
    text-decoration: none;
    background: var(--primary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    border: none;
    cursor: pointer;
}

.btn-govbr:hover{
    background: var(--primary-dark);
}

.containerSelect{
    height: fit-content;
    width: fit-content;
    display: flex;
    position: relative;
    justify-content: center;
}

.containerSelect.datas{
    font-size: initial;
    align-items: center;
}
.select{
    position: absolute;
    display: flex;
    flex-direction: column;
    width: max-content;
    height: 25dvh;
    overflow: auto;
    top: 100%;
    z-index: 3;
}


/* Home Page */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
    position: relative;
    gap:2rem;
    padding: 3rem;

}

.logo {
    text-align: center;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 550px;
    font-weight: 400;
    margin-top: 1rem;
}

.search-box {
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* System Selector - Chips */
.system-selector {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filtros-selector {
    display: flex;
    gap: 6px;
    width: fit-content;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.system-chip {
    background: var(--bg-card);
    border: 1.5px solid var(--border-medium);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 500;
    user-select: none;
}

.system-chip:hover {
    border-color: var(--primary-light);
    background: rgba(5, 150, 105, 0.08);
    color: var(--primary-light);
}

.system-chip.active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-color: #059669;
    color: var(--text-light);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
    font-weight: 600;
}

.system-chip.active:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px;
}

.search-input-wrapper.has-text #search-input {
    padding-right: 180px;
}

.text-input, .simple-captcha-text {
    width: 680px;
    width: 100%;
    padding: 18px 24px 18px 24px;
    font-size: 16px;
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
    background-color: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.captchaDiv{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:.5rem;
    margin-top: 1rem;
}

.captchaDiv.captchaPesq {
    margin-top: 0rem;
    margin-left: 1rem;
    flex-direction: row;
}
.simple-captcha-text{
    width: 180px;
    padding: 9px 12px;
}

.text-input::placeholder {
    color: var(--text-tertiary);
}

.text-input:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.text-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
}

.btn-search-inside {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
    z-index: 2;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
}

.btn-search-inside:hover {
    background: rgba(4, 120, 87, 0.1);
    color: var(--primary);
}

.btn-search-inside.active {
    background: var(--primary);
    color: var(--text-light);
    padding: 10px 18px;
}

.btn-search-inside.active:hover {
    background: var(--primary-light);
}

.btn-search-text {
    white-space: nowrap;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.2s ease;
}

.btn-search-inside.active .btn-search-text {
    max-width: 200px;
    opacity: 1;
}

.btn-clear-input {
    position: absolute;
    right: 58px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
    z-index: 2;
}

.search-input-wrapper.has-text .btn-clear-input {
    right: 150px;
}

.btn-clear-input:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.btn-clear-input.visible {
    display: flex;
}

.search-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
    border: none;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background-color: rgba(4, 120, 87, 0.08);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}


/* Home Footer */
.home-footer {
    position: relative;
}

.footer-logo {
    max-width: 360px;
    height: auto;
    opacity: 0.7;
    filter: invert(1) grayscale(1);
}

/*search bar na nav bar*/

.navbar-search > .nav-links {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.nav-brand-search {
    font-size: 1.15rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.nav-brand-search:hover {
    color: var(--primary-dark);
}

.search-results-page {
    padding: 16px 48px 32px;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(4, 120, 87, 0.03) 0%, rgba(255, 255, 255, 0) 100%), var(--bg-secondary);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}

.search-section-results {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 0;
    width: 100%;
    position: sticky;
    top: 70px; /* Altura aproximada do navbar com search-header-row */
    z-index: 50;
    padding: 8px 0 4px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.search-section-results.scrolled {
    padding: 8px 0 8px;
    background: linear-gradient(180deg, rgba(4, 120, 87, 0.03) 0%, rgba(255, 255, 255, 0) 100%), var(--bg-secondary);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: none;
    border: none;
}



.search-header-row {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1400px;
    min-width: 0;
}

.navbar-search > .search-header-row {
    flex: 1;
    margin: 0;
    max-width: none;
    min-width: 0;
    overflow: hidden;
}

.logo-results {
    margin-left: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInLeft 0.5s ease-out;
    flex-shrink: 0;
    min-width: 0;
}

.logo-results:hover h1 {
    color: var(--primary-dark);
    transform: scale(1.05);
}

.logo-results h1 {
    font-size: 2.25rem;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.search-box-results {
    flex: 1;
    max-width: 680px;
    min-width: 0;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    padding: 4px 8px 4px 12px;
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    gap: 8px;
    overflow: hidden;
    transform: none !important;
}

.search-separator {
    color: var(--border-medium);
    font-size: 18px;
    font-weight: 300;
    user-select: none;
    flex-shrink: 0;
    padding: 0 4px;
}

.system-selector-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: none; /* Escondido por padrão */
    align-items: center;
    gap: 24px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

.system-selector-wrapper::before {
    content: '';
    width: 150px; /* Largura aproximada do título "Radar RJ" */
    flex-shrink: 0;
}

.system-selector-results {
    flex: 1;
    max-width: 680px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.search-box-results:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.12);
}

.search-box-results:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15), 0 4px 12px rgba(4, 120, 87, 0.08);
}

#search-input-results {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 15px;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-overflow: ellipsis;
}

#search-input-results::placeholder {
    color: var(--text-tertiary);
}

.btn-search-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-search-icon:hover {
    background: rgba(4, 120, 87, 0.12);
    transform: scale(1.1);
}

.btn-search-icon:active {
    transform: scale(0.95);
}

.btn-clear-input-results {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: background-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    transform: none !important;
}

.btn-clear-input-results:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

.btn-clear-input-results:active {
    transform: none !important;
}

.btn-clear-input-results.visible {
    display: flex;
}

/* System icons inline dentro do campo de busca, antes do input */
.system-icons-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}



.system-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.system-icon-btn:hover {
    background: rgba(4, 120, 87, 0.1);
    color: var(--primary);
    transform: scale(1.1);
}

.system-icon-btn.active {
    background: var(--primary);
    color: var(--text-light);
}

.system-icon-btn.active:hover {
    background: var(--primary-light);
    transform: scale(1.15);
}

.system-selector-results {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.system-chip-results {
    background: var(--bg-card);
    border: 1.5px solid var(--border-medium);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    font-weight: 500;
    user-select: none;
    white-space: nowrap;
}

.system-chip-results:hover {
    border-color: var(--primary-light);
    background: rgba(5, 150, 105, 0.1);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(4, 120, 87, 0.15);
}

.system-chip-results.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.3);
    font-weight: 600;
    transform: translateY(-1px);
}

.system-chip-results.active:hover {
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.4);
    transform: translateY(-2px);
}

.search-info {
    padding-bottom: 12px;
    margin-bottom: 20px;
    margin-top: 8px;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
}

.results-count {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}
.resultados-empilhados{
    display: flex;
    position: relative;
}
.result-card-tabela{
    background-color: var(--bg-card);
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    max-width: 850px;
    opacity: 1;
}
.result-card, .sei-card {
    background-color: var(--bg-card);
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    max-width: 850px;
    z-index: 1;
}



.result-card:hover .copy-result-btn, .result-card:hover .table-btn, .result-card:hover .foco-navigator-centered, .mention-card:hover .table-btn, .mention-card:hover .foco-navigator-centered {
    opacity: 1;
    pointer-events: all;
}

.foco-navigator-centered.ativo{
    opacity: 1;
    pointer-events: all;
}

.copy-result-btn, .table-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.copy-result-btn:hover, .table-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
    transform: scale(1.05);
}

.copy-result-btn:active, .table-btn:active{
    transform: scale(0.95);
}

.copy-result-btn svg, .table-btn svg {
    width: 16px;
    height: 16px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: block;
    letter-spacing: -0.01em;
}

.result-url {
    color: var(--primary);
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.result-container{
    width: 780px;
    max-height: 500px;
    box-sizing: border-box;
    overflow: hidden;
}
.result-snippet, .sei-snippet {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 12px;
    width: 760px;
    text-align: justify;
    text-wrap: auto;
}

.result-snippet.menor{
    font-size: 13px;
}



.result-metadata {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.result-metadata-inicio {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.result-parte-id{
    display: flex;
    gap: 12px;
}

/* foco pesquisa*/
.foco-navigator-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--bg-card);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    width: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    align-self: center;
}

.foco-nav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 3px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.disabled{
    opacity: 0.5;
    pointer-events: none;
}

.foco-nav-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.texto-grifado{
    font-size: 14px;
    max-width: 200px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.texto-qntgrifado{
    font-size: 14px;
}


.result-metadata-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.result-date {
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 500;
}

.result-system-badge {
    background: rgba(4, 120, 87, 0.1);
    color: var(--primary);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(4, 120, 87, 0.2);
}

.result-system-badge.sei {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-secondary);
    border-color: rgba(59, 130, 246, 0.2);
}

.result-source {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.highlight-term {
    background-color: rgba(4, 120, 87, 0.15);
    color: var(--primary-dark);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.pagination {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    width: 100%;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
    font-family: inherit;
}

.pagination-btn:hover {
    border-color: var(--primary);
    background: rgba(4, 120, 87, 0.08);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(4, 120, 87, 0.2);
}

/* Meus Termos Page */
#pagTermos{
    margin-top: 32px;
}
.content-container {
    display: flex;
    height: calc(100vh - 65px);
    overflow: hidden;
}

.main-content {
    flex: 1;
    padding: 24px 18px;
    background: linear-gradient(180deg, rgba(4, 120, 87, 0.03) 0%, rgba(255, 255, 255, 0) 100%), var(--bg-secondary);
    overflow-y: auto;
}

/* Custom scrollbar */
.main-content::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.main-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

/* Date Section */
.date-section {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    position: relative;
}

.date-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.date-and-day-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.toggle-all-dates {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    right: -130px;
    top: 50%;
    transform: translateY(30%);
}

.toggle-all-dates.user{
    position: relative;
    right: 0;
    top: 0;
    transform: translateY(0%);
}

.day-of-week {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
    text-align: center;
}


.toggle-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    transition: all 0.3s ease;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-color: #059669;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(18px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.date-navigator-centered.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Date Navigator Centered */
.date-navigator-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-card);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    width: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.date-nav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.date-nav-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.date-picker-input {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.date-picker-input:hover {
    background: var(--bg-tertiary);
}

.date-picker-input:focus {
    outline: none;
    background: var(--bg-tertiary);
}

.sidebar.seis{
    width: 405px;
}
.sidebar {
    width: 25vw;
    background: var(--bg-secondary);
    padding: 24px 18px;
    border-left: 1px solid var(--border-light);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.sidebar-header .seiButtons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#LogoRadarHome{
    width: 333px;
}

.btn-icon:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}


.mentions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mention-card {
    background-color: var(--bg-card);
    padding: 24px;
    padding-bottom: 56px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
}

.mention-card:hover {
    border-color: var(--primary);
    background-color: var(--bg-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mention-card:hover .copy-mention-btn {
    opacity: 1;
}

.mention-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.mention-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mention-system-badge {
    background: rgba(4, 120, 87, 0.1);
    color: var(--primary);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(4, 120, 87, 0.2);
}

.mention-system-badge.sei {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-secondary);
    border-color: rgba(59, 130, 246, 0.2);
}

.copy-mention-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.copy-mention-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
    transform: scale(1.05);
}

.copy-mention-btn svg {
    width: 16px;
    height: 16px;
}

.mention-term {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.mention-date {
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 500;
}

.mention-source {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 500;
}
.mention-text-container{
    width: 100%;
    max-height: 500px;
    box-sizing: border-box;
    overflow: hidden;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}
.mention-text-container:hover{
    box-sizing: border-box;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}
.mention-text {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 14px;
    text-align: justify;
    text-wrap: auto;
    width: 98%;
}

.mention-info-span{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}
.mention-info{
    display: flex;
    gap: 12px;
}

.highlight-term {
    background-color: rgba(4, 120, 87, 0.15);
    color: var(--primary-dark);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.terms-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
    gap: 8px;
}

.term-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 95%;
    gap: 12px;
    position: relative;
}

.term-item:hover {
    background-color: var(--bg-card);
    border-color: var(--primary);
    transform: translateX(2px);
}

.term-item:hover .term-name {
    max-width: fit-content;
}

.term-item.active {
    background-color: rgba(4, 120, 87, 0.1);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.15);
}

.term-item.active .term-name {
    color: var(--primary);
    font-weight: 600;
}

.term-info {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    width: 80%;
}
.term-item:hover .term-info{
    flex-wrap: wrap;
}

.term-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 80%;
    color: var(--text-primary);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.term-count {
    background-color: var(--primary);
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* System Badges */
.system-badges {
    display: flex;
    gap: 3px;
    align-items: center;
}

.system-badge {
    background: rgba(4, 120, 87, 0.12);
    color: var(--primary);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.85;
}

.system-badge.sei {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-secondary);
}
.system-badge.sem {
    background: rgba(246, 59, 59, 0.12);
    color: var(--danger);
}
.system-badge.adm {
    background: rgba(246, 212, 59, 0.12);
    color: var(--warning);
}

.term-item.active .term-count {
    background-color: var(--primary-dark);
}

.term-count.alert{
    background-color: var(--danger);
    height: 15px;
    width: 15px;
    border-radius: 100%;
    padding: 0;
    min-width: 0px;
}

.term-actions {
    display: flex;
    gap: 8px;
    position: relative;
}

.term-menu-wrapper {
    position: relative;
}

.term-item.has-active-menu {
    z-index: 9999;
}

.term-menu-wrapper.has-active-menu {
    z-index: 10001;
}

.btn-menu-dots {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
}

.btn-menu-dots:hover {
    background-color: rgba(4, 120, 87, 0.1);
    color: var(--primary-dark);
}

.btn-menu-dots svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.term-menu-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.term-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.term-menu-item {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
}

.term-menu-item:hover {
    background-color: var(--bg-hover);
}

.term-menu-item.delete {
    color: var(--danger);
}

.term-menu-item.delete:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.term-menu-item svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

.btn-icon-small {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
}

.btn-icon-small svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.btn-icon-small:hover {
    background-color: rgba(4, 120, 87, 0.1);
    color: var(--primary-dark);
}

.btn-icon-small.delete-term:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/*modal*/

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-medium);
    margin: 8% auto;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close {
    color: var(--text-tertiary);
    float: right;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    line-height: 20px;
    transition: all 0.2s ease;
}

.close:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.modal-content h2 {
    margin-bottom: 28px;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    transition: all 0.2s ease;
}

.form-group input:hover {
    border-color: var(--border-medium);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

/* Segmented Control */
.segmented-control {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.segmented-option {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
}

.segmented-option:hover {
    background: rgba(4, 120, 87, 0.1);
    color: var(--primary);
}

.segmented-option.active {
    background: var(--primary);
    color: var(--text-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* diarios Oficiais*/
.content-wrapper {
    padding: 32px 40px;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(4, 120, 87, 0.03) 0%, rgba(255, 255, 255, 0) 100%), var(--bg-secondary);
    min-height: calc(100vh - 65px);
}

.content-wrapper h2 {
    margin-bottom: 28px;
    font-size: 1.75rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.diarios-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.diario-card {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.diario-card:hover {
    border-color: var(--primary);
    background-color: var(--bg-hover);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.diario-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.diario-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.diario-date {
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.diario-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.diario-actions {
    display: flex;
    gap: 10px;
}

.diario-actions a {
    flex: 1;
    text-align: center;
    text-decoration: none;
}

.open-diario {
    background: var(--primary);
    color: var(--text-light);
}

.open-diario:hover {
    background: var(--primary-light);
}

.download-diario {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.download-diario:hover {
    background-color: rgba(4, 120, 87, 0.08);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap:10px;
}

#poder-filter{
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* Tela User*/

#headerUser{
    display: flex;
    width: 100%;
    justify-content: space-between;
}
.envelopeInputText{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 35%;
}
#userInfo{
    width: 55vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-input.user{
    width: 100%;
    text-align: center;
    padding: 18px 24px 18px 24px;
}

.text-input.busca{
    width: 100%;
    text-align: center;
    padding: 12px 18px 12px 18px;
    margin-bottom: 24px;
}

label{
    font-size: .8rem;
}

.btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
    z-index: 2;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
}

.btn:hover, .btn.active {
    background: rgba(4, 120, 87, 0.1);
    color: var(--primary);
}

.btn#excluir{
    color: var(--danger);
}

.btn#excluir:hover{
    background: rgba(250, 120, 87, 0.1);
}

#footerFormUser{
    display: flex;
    gap:1rem;
}

.main-content.user{
    height: fit-content;
}

.main-content.termos{
    width: 66vw;
}

.main-content.seis{
    width: 66vw;
}

.containerPopUp{
    position: absolute;
    width: 22vw;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    z-index: 3;
    top: 15%;
    left: calc(100vw - 22vw);
}
.popup{
    position: relative;
    width: 20vw;
    height: fit-content;
    padding: .5rem 1rem;
    font-size: 1rem;
    background-color: var(--bg-card);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    left: 100vw;
    transition: all .5s ease-in-out;
    cursor: pointer;
    overflow: hidden;
}

.popup.active{
    display: flex;
    left: 0%;
    
}
.popup .barra{
    position: absolute;
    height: 5px; 
    width: 1%;
    background-color: var(--accent);
    top: calc(100% - 5px);
    left: 0%;
}

.barra.erro{
    background-color: var(--danger);
}

.popup .info{
    color: var(--accent);
}

.popup .erro{
    color: var(--danger);
}

p.erro{
    font-size: .9rem;
    color: var(--danger);
    margin-bottom: 0;
}

.seta {
    width: 15px;
    transition: all .5s ease-in-out;
}

.seta.up{
    rotate: 180deg;
}

.negrito{
    font-weight: bold;
}

/* tela Contato*/

.content-wrapper.contato{
    overflow: auto;
}
.formEmailer{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    width: 50vw;
}

.formEmailer .envelopeInputText{
    width: fit-content;
}

.formEmailer .user{
    width: 20rem;
}

.formEmailer .areaTexto{
    width: 40rem;
}

.formEmailer .obrigatorio{
    font-size: small;
    color: var(--danger);
}

.texto-grifado {
    cursor: pointer;
}
.texto-grifado:hover {
    text-decoration: underline; 
}

.tabela-responsiva{
    width: 100%;
    height: fit-content;
}

.tabela-responsiva table{
    margin: 0 auto;
}

@media (min-width: 769px) {
    .mobile-tab-bar, .user-chip,.select-mobile-backdrop, .select-mobile-bottom, .btn-govbr-mobile, .sidebar-backdrop, .floating-terms-btn, .barrinha-arrastar, #results-count-mobile , .inline-pag-card, .search-box-results.mobile, #captcha-backdrop{
        display: none !important;
    }

    .sidebar.abaixo{
        transform: none !important;
    }

    .result-container:hover{
        box-sizing: border-box;
        overflow: auto;
        scrollbar-width: thin;
        scrollbar-gutter: stable;
    }
    .result-card:hover, .sei-card:hover {
        border-color: var(--primary);
        background-color: var(--bg-hover);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    header{
        height: fit-content;
        width: 100vw;
    }
    section{
        height: 90vh;
        width: 100vw;
    }

    .navLinks,#results-count, .pagination-controls, .search-box-results, .captchaPesq{
        display: none !important;
    }

    #navBar{
        padding: 1rem 1rem;
    }
    .home-container{
        padding: 1rem;
        font-size: small;
    }
    .footer-logo{
        width: 60vw;
    }
    
    p, .results-count, .day-of-week, .mention-text, .subtitle{
        font-size: .8rem;
    }

    .day-of-week{
        font-size: 1rem;
    }
    .date-and-day-wrapper{
        gap: .3rem;
    }

    .mention-card{
        padding: .8rem;
    }

    .search-info{
        margin-bottom: .8rem;
    }

    .date-picker-input{
        font-size: .8rem;
        width: fit-content;
    }
    .toggle-all-dates{
        position: relative;
        right: 0;
        top: 0;
    }

    .mobile-tab-bar {
        display: flex;
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background-color: #ffffff;
        border-top: 1px solid #e2e8f0;
        justify-content: space-around;
        align-items: center;
        z-index: 2;
        /* Padding extra na parte inferior para o notch/gestos de iPhones novos */
        padding-bottom: env(safe-area-inset-bottom, 16px);
    }

    .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #718096;
        font-size: 11px;
        font-weight: 500;
        transition: color 0.2s ease;
        flex: 1;
    }

    .tab-item svg {
        margin-bottom: 4px;
        transition: transform 0.2s ease;
    }

    /* Estado Ativo mapeado pelo Jinja */
    .tab-item.active {
        color: var(--border-radar); /* Cor de destaque para o item ativo */
    }
    
    .tab-item.active svg {
        transform: scale(1.1);
    }

    #LogoRadarHome {
        width: 70vw;
    }

    .user-chip {
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 8px;
        width: 40vw;
        color: var(--text-primary);
        background: rgba(255, 255, 255, 0.6);
        padding: 6px 10px 6px 6px;
        border-radius: 8px;
        border: 1px solid var(--border-medium);
    }
    .user-avatar {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: var(--accent);
        color: white;
        display: grid;
        place-items: center;
        font-weight: 600;
        font-size: 12px;
    }

    /* Estilização interna do cabeçalho do select */
    .select-mobile-header {
        text-align: center;
        padding: 12px 0 8px 0;
        font-weight: bold;
        color: #4a5568;
        position: relative;
        border-bottom: 1px solid #edf2f7;
    }
    .barrinha-arrastar {
        width: 40px;
        height: 4px;
        background-color: #cbd5e0;
        border-radius: 2px;
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Itens de clique */
    .select-mobile-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        text-decoration: none;
        color: #2d3748;
        font-size: 16px;
        border-bottom: 1px solid #f7fafc;
    }
    .select-mobile-item:active {
        background-color: #edf2f7;
    }

    /* Estilo especial vermelho para o Logout */
    .select-mobile-item.logout {
        color: #e53e3e;
        font-weight: 500;
    }

    .containerPopUp{
        width: 40vw;
        left: 55vw
    } 
    .containerPopUp .popup{
        width: 40vw;
    }

    #setaMobile{
        width: 10px;
        height: 10px;
    }
    .btn-govbr-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Cores baseadas no padrão de botões limpos do seu app */
    background-color: #ffffff;
    color: #133052; /* Azul escuro padrão da marca Gov.br */
    border: 1px solid #cbd5e1; /* Borda sutil idêntica ao botão SEI-RJ */
    
    /* Tipografia e Espaçamento */
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none; /* Remove o sublinhado feio */
    white-space: nowrap; /* Impede o texto de quebrar em 3 linhas */
    
    /* Formato de Pílula (Pill) combinando com o resto do app */
    padding: 8px 16px;
    border-radius: 100px;
    
    /* Efeitos visuais */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease-in-out;
}

/* Efeito de toque/clique no Mobile */
    .btn-govbr-mobile:active {
        transform: scale(0.97);
        background: linear-gradient(135deg, #059669 0%, #10b981 100%);
        border-color: #059669;
    }

    .content-container {
        display: block ;
        width: 100%;
        height: 100%;
    }
    
    .main-content.termos {
        width: 100% ;
        height: 100%;
        overflow: auto;
        display: flex;
        flex-direction: column;
    }

    /* Transforma a sidebar antiga em um Bottom Sheet deslizante */
    .sidebar, .select-mobile-bottom {
        position: fixed ;
        bottom: 0 ;
        left: 0 ;
        width: 100% ;
        max-height: 75vh ;
        background-color: #ffffff ;
        border-top-left-radius: 20px ;
        border-top-right-radius: 20px ;
        z-index: 3 ;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2) ;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) ;
        transform: translateY(0);
        display: flex ;
        flex-direction: column ;
        box-sizing: border-box;
    }
    
    /* Quando contiver desativado, o painel é recolhido para baixo */
    .sidebar.abaixo, .select-mobile-bottom.abaixo{
        transform: translateY(100%) ;
    }

    /* Lista interna de termos com scroll independente */
    .terms-list {
        overflow-y: auto ;
        flex-grow: 1;
        padding: 10px 20px 30px 20px ;
    }

    /* Customizações do cabeçalho do modal deslizante */
    .sidebar-header {
        position: relative;
        padding: 20px 20px 10px 20px !important;
        border-bottom: 1px solid #edf2f7;
    }
    
    .barrinha-arrastar {
        display: block !important;
        width: 40px;
        height: 4px;
        background-color: #cbd5e0;
        border-radius: 2px;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Cortina preta de fundo */
    .sidebar-backdrop, .select-mobile-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 2;
        transition: opacity 0.3s ease;
    }
    .sidebar-backdrop.abaixo, .select-mobile-backdrop.abaixo {
        opacity: 0;
        pointer-events: none;
    }

    /* O Botão Flutuante no canto inferior direito */
    .floating-terms-btn {
        display: flex ;
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: 75px; /* Fica logo acima da sua mobile-tab-bar */
        right: 20px;
        background-color: var(--primary-dark); /* Troque pela cor primária do RadarRJ */
        color: #ffffff;
        border: none;
        padding: 12px 18px;
        border-radius: 30px;
        font-weight: 600;
        font-size: 14px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
        z-index: 2;
        cursor: pointer;
        transition: transform 0.2s ease;
    }
    .floating-terms-btn:active {
        transform: scale(0.95);
    }

    .main-content h2{
        font-size: 1rem;
    }
    .main-content{
        padding: .5rem .5rem;
    }

    .date-content-wrapper{
        flex-direction: row;
        width: 100%;
        justify-content: space-evenly;
    }

    #meus-termos-page{
        width: 100%;
        height: 100%
    }

    .mentions-list, .results-list{
        flex-direction: column;
        overflow: auto;
        width: 100%;
        padding: .3rem;
        height: 100%;
        min-height: 50dvh;
    }

    .mention-card{
        display: flex;
        flex-direction: column;
        width: 90vw;
        min-width: 90vw;
        max-width: 90vw;
        flex: 0 0 90vw;
        height: 100%;
    }
    .mention-info-span{
        flex-direction: column;
    }
    .mention-source{
        margin-bottom: 5px;
    }

    .inline-pag-card {
        /* Largura fixa um pouco menor que um card normal de menção */
        flex: 0 0 130px ; 
        
        display: flex ;
        flex-direction: column ;
        justify-content: center ;
        align-items: center ;
        gap: 12px;
        
        background: #f8fafc;
        border: 2px dashed #cbd5e1;
        border-radius: 12px;
        color: #475569;
        font-size: 0.95rem;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
        box-sizing: border-box;
        scroll-snap-align: center !important; /* Para parar exatamente neles ao rolar */
        transition: all 0.2s ease;
        
        /* Pega quase a altura toda do carrossel para ficar imponente, mas respeita limites */
        min-height: 200px;
        margin: 10px 0;
    }

    /* Efeito ao clicar no mobile e desktop */
    .inline-pag-card:active,
    .inline-pag-card:hover {
        background: #e2e8f0;
        border-color: #94a3b8;
        color: #0f172a;
    }

    /* Garante que se a classe escondido for ativada pelo JS, eles somem completamente */
    .inline-pag-card.escondido {
        display: none !important;
    }

    .main-content.seis{
        width: 100vw;
        height: 100%;
        padding: 0px;
    }

    .sei-card{
        width: 90vw;
        padding: .8rem;
    }
    .sei-container{
        width: 100%;
        white-space: normal;
    }
    .sei-snippet{
        width: 100%;
    }
    .sei-card.ativo {
        border-color: var(--primary);
        background-color: var(--bg-hover);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }
    .mentions-list.seis{
        flex-direction: column;
        height: 95%;
    }
    .ultimos {
        display: grid;
        grid-template-rows: 0fr; /* O segredo está aqui: o tamanho da linha é ZERO */
        opacity: 0;
        transition: grid-template-rows 0.4s ease-out, opacity 0.3s ease-out;
        overflow: hidden; /* Impede que o conteúdo vaze enquanto a div estiver com 0 de altura */
    }
    /* O elemento interno precisa disso para não vazar a altura real */
    .ultimos-inner {
        min-height: 0;
    }

    /* Estado Aberto (Quando você ativar no JavaScript) */
    .ultimos.aberto {
        grid-template-rows: 1fr; /* Cresce suavemente até o tamanho do conteúdo */
        opacity: 1;
    }

    #userInfo{
        width: 100%;
        height: fit-content;
    }
    
    .envelopeInputText{
        width: 75%;
    }

    .content-wrapper{
        padding: 0px;
        margin: 0px;
        max-width: 100%;
    
    }
    .content-wrapper.contato{
        width: 100%;
    }

    .formEmailer{
        width: 100%;
    }


    .formEmailer .envelopeInputText{
        width: 20rem;
    }

    .formEmailer .areaTexto{
        width: 100%;
    }

    .search-results-page{
        width: 100%;
        height: 100%;
        padding: 0px 0px 16px;
    }

    .results-list{
        height: 80%;
    }

    .result-metadata-inicio{
        margin-bottom: .3rem;
    }

    .result-title{
        font-size: 1rem;
    }

    .result-card{
        padding: .4rem .5rem;
        width: 90vw;
        max-width: 90vw;
        min-width: 90vw;
        height: 100%;
    }

    .result-container{
        width: 100%;
        height: 70%;
        overflow: auto;
        padding-right: .5rem;
    }

    .result-snippet{
        width: 100%;
        overflow-y: auto;
    }

    .pagination{
        display: none;
    }
    .search-box-results.mobile{
        display: flex !important;
    }
    .search-box-results.mobile.desativado{
        display: none !important;
    }

    #opcoes-parte,#opcoes-norma,#opcoes-secao {
        position: fixed;
        top: 55vh;
        right: 0vw;
        width: 100vw;
        height: calc(45vh - 70px);
        overflow: auto;
    }
    #captcha-mobile-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 10px 0;
    }

    .select-mobile-bottom{
        padding: 20px;
        text-align: center;
        gap: 16px;
    }

    .result-metadata{
        padding-top: .5rem;
    }
}

