:root {
    --fundo-padrao: var(--bg-primary);
    --fundo-secundario: var(--bg-secondary);
    --fundo-card: var(--card-bg);
    --texto-titulo: var(--text-primary);
    --texto-descricao: var(--text-secondary);
    --borda-suave: var(--border-color);
    --destaque-principal: var(--accent-primary);
    --header-h: 75px;
    --sidebar-w: 240px;    /* +confortável */
    --sidebar-min: 340px;
    --sidebar-max: 620px;
    --rail-w: 80px;        /* ícones centralizados */
}

/* Tema claro */
:root[data-bs-theme="light"]{
    --bs-modal-bg: #ffffff;
    --bs-modal-color: #212529;
    --bs-modal-border-color: rgba(0,0,0,.175);
    --bs-modal-footer-bg: #f8f9fa;
    --bs-backdrop-bg: #000;
    --bs-backdrop-opacity: .5;
    --bg-light: #f1f3f5;

    /* Select2 claro */
    --select2-bg: var(--bg-light);
    --select2-color: #212529;
    --select2-border: rgba(0,0,0,.175);
    --select2-hover: #e2e6ea;

    --intro-bg: #ffffff;
    --intro-color: #212529;
    --intro-border: #dee2e6;
    --intro-progress: #0d6efd;
    --intro-button-bg: #0d6efd;
    --intro-button-color: #ffffff;
}

/* Tema escuro */
:root[data-bs-theme="dark"]{
    --bs-modal-bg: #1f2937;
    --bs-modal-color: #f8f9fa;
    --bs-modal-border-color: rgba(255,255,255,.15);
    --bs-modal-footer-bg: #0f172a;
    --bs-backdrop-bg: #000;
    --bs-backdrop-opacity: .7;
    --bg-light:  #374151;


    /* Select2 escuro */
    --select2-bg: #212529;
    --select2-color: #dee2e6;
    --select2-border: #495057;
    --select2-hover: #4b5563;

    --intro-bg: #1f2937;
    --intro-color: #f8f9fa;
    --intro-border: #44475a;
    --intro-progress: #8be9fd;
    --intro-button-bg: #6272a4;
    --intro-button-color: #f8f9fa;
}
:root[data-bs-theme="light"] input::placeholder,
:root[data-bs-theme="light"] .form-control::placeholder,
:root[data-bs-theme="light"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-search .select2-search__field::placeholder,
:root[data-bs-theme="light"] .select2-selection__placeholder {
    color: #6c757d;
    font-style: italic;
}
:root[data-bs-theme="dark"] input::placeholder,
:root[data-bs-theme="dark"] .form-control::placeholder,
:root[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-search .select2-search__field::placeholder,
:root[data-bs-theme="dark"] .select2-selection__placeholder{
    color: #adb5bd;
    font-style: italic;
}
/* SweetAlert modo claro */
:root[data-bs-theme="light"] .swal2-popup {
    background: #fff !important;
    color: #212529 !important;
}

/* SweetAlert modo escuro */
:root[data-bs-theme="dark"] .swal2-popup {
    background: #212529 !important;
    color: #f8f9fa !important;
}
.light-mode {
    --bg-primary: #F5F5F5;
    --bg-secondary: #dfe6ec;
    --bg-tertiary: #e8edf2;
    --bg-gradiente2: #BFD0C9;
    --bg-gradiente1: #65879D;
    --text-primary: #1c2836;
    --text-secondary: #5a6d80;
    --text-tertiary: #3f688d;
    --text-muted: #7c8da0; /* Texto desabilitado levemente mais escuro */
    --border-color: rgba(190, 200, 215, 0.8); /* Borda mais visível */
    --shadow-light: rgba(0, 0, 0, 0.04);
    --shadow-medium: rgba(0, 0, 0, 0.08);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
    --accent-primary: #3b82f6; /* Azul principal */
    --accent-hover: rgba(59, 130, 246, 0.08);
    --accent-border: rgba(59, 130, 246, 0.2);
    --header-bg: rgba(240, 244, 248, 0.98); /* Fundo do header com tom suave */
    --card-bg: #ffffff; /* Cartões brancos para foco no conteúdo */
    --card-hover-bg: #f8fafc; /* Leve mudança no hover */
    --decorative-bg: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    --border-color: #e9ecef;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --accent-success: #198754;
    --accent-danger: #dc3545;
    --accent-warning: #fd7e14;
    --bg-list-pca: var(--tblr-gray-50);
    --bg-list-head-pca: var(--tblr-gray-100);
}
.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-gradiente2: #679280;
    --bg-gradiente1: #1e4964;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(71, 85, 105, 0.3);
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.4);
    --accent-primary: #60a5fa;
    --accent-hover: rgba(96, 165, 250, 0.1);
    --accent-border: rgba(96, 165, 250, 0.3);
    --header-bg: rgba(15, 23, 42, 0.95);
    --card-bg: rgba(30, 41, 59, 0.8);
    --card-hover-bg: rgba(30, 41, 59, 0.95);
    --decorative-bg: radial-gradient(circle at 25% 25%, rgba(96, 165, 250, 0.05) 0%, transparent 50%),
        --border-color: #4a5568;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.4);
    --accent-success: #48bb78;
    --accent-danger: #f56565;
    --accent-warning: #ed8936;
    --bg-list-pca: var(--tblr-gray-700);
    --bg-list-head-pca: var(--tblr-gray-900);
}
/* Tooltip */
.introjs-tooltip {
    background-color: var(--intro-bg);
    color: var(--intro-color);
    border: 1px solid var(--intro-border);
}

.introjs-tooltip-header {
    border-bottom: 1px solid var(--intro-border);
}

/* Setas do tooltip */
.introjs-arrow {
    border-top-color: var(--intro-bg) !important;
}

/* Progress bar */
.introjs-progressbar {
    background-color: var(--intro-progress);
}

/* Botões */
.introjs-button {
    background-color: var(--intro-button-bg);
    color: var(--intro-button-color);
}

.introjs-skipbutton {
    color: inherit; /* mantém a cor do texto do tema */
}

.col-id {
    white-space: nowrap !important;
    min-width: 60px;
    width: 60px;
    text-align: center;
}

/* AÇÕES: não quebrar, mas permitir que a coluna tenha largura mínima */
.col-acoes {
    white-space: nowrap !important;
    min-width: 130px; /* espaço suficiente para 3 botões */
    text-align: center;
}

/* Colunas de texto: permitir texto fluir normalmente */
#painel td,
#painel th {
    white-space: normal !important;
}
.select2-container--bootstrap-5 .select2-selection {
    background-color: var(--select2-bg);
    color: var(--select2-color);
    border: 1px solid var( --select2-border);
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered{
    color: var(--select2-color);
}
.select2-container--bootstrap-5 .select2-dropdown {
    background-color: var(--select2-bg);
    color: var(--select2-color);
    border-color: var(--select2-border);
}
.select2-container--bootstrap-5.select2-dark .select2-results__option {
    color: var(--select2-color);
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--select2-bg);
    color: var(--select2-color);
}
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    color: var(--select2-color);
}
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    background-color: var(--select2-bg);
    color: var(--select2-color);
}
.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--bg-secondary)!important; /* cor de destaque (Bootstrap primary, por exemplo) */
    color: var(--text-secondary)!important;
}

/* Ícones de imagem na sidebar (padronizados ao tamanho dos ícones Font Awesome) */
.sidebarImageIcon {
    width:38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebarImageIcon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: var(--sidebar-icon-filter, none); /* permite tema escuro */
    transition: transform 0.2s ease-in-out;
}

.nav-link:hover .sidebarImageIcon img {
    transform: scale(1.2);
}
.usuarioContainer{
    display: flex;
    justify-content: center;
    background-color: var(--bg-primary);
    border-radius: 30px;
    padding: 60px 80px;
    margin: 0 40px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}


.usuarioContainer .input-file {
    text-align: center;
}

.usuarioContainer .input-file img {
    max-height: 165px;
}

.usuarioContainer input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.usuarioContainer .image-label {
    background-color:  var(--bg-primary);
    color: var(--text-primary);
    width: 100%;
    height: 30px;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    margin-top: 15px;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    height: calc(100vh - var(--header-h));
    background: var(--card-bg, #1e293b);
    border-right: 1px solid var(--border-color, #444);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    width: var(--sidebar-w);
    transition: width 0.3s ease;
    overflow: hidden;
}


/* MENU INTERNO: ícone + texto lado a lado */
.sidebar .rail-menu {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    color: var(--text-primary, #fff);
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar .nav-link:hover {
    background: var(--accent-hover, rgba(255,255,255,0.1));
}

/* Ícone */
.sidebar .icon-pill {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary, #334155);
    color: var(--text-tertiary, #fff);
    flex-shrink: 0;
}

.sidebar .icon-pill-contraste{
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-tertiary);
}

.viewer-shell.compact .sidebar .nav-link span:not(.icon-pill) {
    display: none;
}
/* Sidebar */
.viewer-shell .sidebar {
    width: var(--sidebar-w);
    transition: width 0.3s ease;
    flex-shrink: 0
}

/* Sidebar compacta */
.viewer-shell.compact .sidebar {
    width: var(--rail-w);
}
/* Quando a sidebar está expandida */
.viewer-shell main.container {
    flex: 1;
    padding: 20px;
    transition: margin-left 0.3s ease, width 0.3s ease;
    width: calc(100% - var(--sidebar-w));
}
/* Quando está recolhida (compacta) */
.viewer-shell.compact main.container {
    /*margin-left: var(--rail-w) !important;*/
    width: calc(100% - var(--rail-w)) !important;
}
/* Responsivo */
@media (max-width: 992px) {
    .viewer-shell {
        flex-direction: column;
    }
    .viewer-shell .sidebar {
        width: 100%;
        height: auto;
    }
    .resizer {
        display: none;
    }
    .viewer-shell main.container {
        margin-left: 0;
        width: 100%;
    }
}

/* CONTEÚDO PRINCIPAL */

.section-label{
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:var(--text-secondary, #334155);
    padding:10px 12px 6px;
    font-size:12px;
}
.funcoes {
    background-color: transparent;
    border: none;
}

.icon-pill{
    width:36px;
    height:36px;
    border-radius:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background: var(--bg-tertiary, #e9eef3);
    color: var(--text-tertiary, #34536f);
    flex: 0 0 auto;
}
#resizer {
    width: 6px;
    background: transparent;
    cursor: col-resize;
    height: calc(100vh - var(--header-h));
    position: fixed;
    top: var(--header-h);
    left: var(--sidebar-w);
    z-index: 1001;
}
.resizer:hover{
    background:var(--accent-hover);
}
.viewer-shell.compact #resizer {
    display: none !important;
}

.resizing iframe{
    pointer-events:none;
} /* evita capturar o mouse durante arraste */

/* Área do PDF (direita) */
.pdf-area{
    flex:1;
    position:relative;
    overflow:hidden;
}
.pdf-container{
    height:100%;
    width:100%;
    margin:0;
}
iframe{
    width:100%;
    height:100%;
    border:0;
}

.compact .label, .compact .side-title{
    display:none;
}
.compact .side-head{
    padding:10px 6px 6px;
    justify-content:center;
}

/* estado compacto (rail fechado) */
.compact .sidebar{
    width:var(--rail-w);
    min-width:var(--rail-w);
    overflow-x:hidden;          /* evita texto “comido” na horizontal */
}

.compact .side-title,
.compact .section-label,      /* esconde DOCUMENTOS/AÇÕES */
.compact .label,              /* esconde rótulos dos links */
.compact .sidebar-footer small{ /* esconde ID */
    display:none !important;
}

.compact .side-head{
    padding:10px 6px 6px;
    justify-content:center;
    border-bottom:1px solid var(--border-color, #22314333);
}
.compact .sidebar-footer{
    padding:10px 6px 6px;
    justify-content:center;
    border-top:1px solid var(--border-color, #22314333);
}

.compact .side-toggle i{
    transform: rotate(180deg);
}

.compact .sidebar .nav-link{
    justify-content:center;
}

.icon-pill{
    width:40px;
    height:40px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

/* melhora foco/hover no rail */
.compact .sidebar .nav-link:hover{
    background: var(--accent-hover, #E2E6EC33);
}

/* Estilo do separador vertical */
.vr-nav {
    width: 1px;
    height: 36px; /* Exatamente igual ao botão */
    background-color: currentColor; /* mesma cor do texto/botão */
    opacity: 0.5;
    align-self: center; /* centraliza verticalmente no d-flex */
    border-radius: 1px;
    transition: background-color 0.3s ease-in-out;
}

.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--bg-gradiente2) 0%, var(--bg-gradiente1) 100%);
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);

}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}
.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-section p {
    font-size: 1.25rem;
    font-weight:300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.section-light {
    padding: 60px 20px;
    height: auto;
}
.section-dark {
    background: linear-gradient(135deg, var(--bg-gradiente2) 0%, var(--bg-secondary) 100%);
    padding: 20px;
    padding-bottom: 100px;
    height: auto;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../imagens/pagina-inicial/estatisticas_crescimento.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.section-dark .container {
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
    height: 100%;
}
.feature-card h5{
    color: var(--text-secondary);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e4964, #679280);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px var(--card-hover-bg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #3f688d;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-image {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.feature-image img {
    width: 100%;
    max-height: 200px;
    height: auto;
    object-fit: cover;
}


.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.stats {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.stat-card {
    padding: 30px;
    background: var(--bg-gradiente1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-card p {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin: 0;
}
@media (max-width: 576px) {
    .stats {
        font-size: 2rem;
    }
}
@media (max-width: 576px) {
    .feature-card {
        padding: 20px 15px;
    }

    .stat-card {
        padding: 20px 10px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }
}
@media (max-width: 576px) {
    .hero-section,
    .section-dark {
        clip-path: none;
        padding: 80px 15px 60px;
    }
}
.footer {
    background-color: #20232a;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
}
footer img {
    max-width: 100%;
    height: auto;
}

.btn-custom {
    background: linear-gradient(100deg, #1e4964, #679280);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 10px var(--shadow-light);
    text-decoration: none;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 15px var(--shadow-medium);
    color: white;
}

.btn-custom i {
    transition: transform 0.3s ease;
}

.btn-custom:hover i {
    transform: translateX(5px);
}

.cta-section {
    text-align: center;
    position: relative;
    padding: 100px 20px;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .feature-card {
        padding: 30px 25px;
    }

    .stats {
        font-size: 2.5rem;
    }
}

.top-header {
    background-color: transparent;
    color: var(--text-primary);
    z-index: 9999;
    transition: background-color 0.1s ease-in-out;
    width: auto;
}
/* Header com cor de fundo ao rolar */
.top-header.scrolled {
    background-color:var(--bg-primary);
    box-shadow: 0 4px 8px var(--shadow-light);
}

.top-header .nav-link {
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    transition: color 0.2s ease;
}

.top-header .nav-link:hover {
    color: var(--accent-primary);
}

.top-header .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.top-header .nav-link:hover::after {
    width: 100%;
}

.top-header .btn-outline-primary {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.top-header .btn-outline-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-primary);
}

h1,
h2,
h3,
h6 {
    color: var(--text-primary);
}

p,
label,
small {
    color: var(--text-secondary);
}

input,
textarea {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 40px 20px;
}

.card-menu {
    background-color: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 2px 8px var(--shadow-medium);
    width: 260px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius:  6px !important;
}

.card-menu:hover {
    background-color: var(--card-hover-bg);
    box-shadow: 0 6px 16px var(--shadow-medium);
    transform: translateY(-6px);
}

.card-image {
    padding: 25px 15px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image img {
    max-width: 70px;
    height: auto;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.text-muted-container{
    color: var(--text-muted);
}
.badge-notification{
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
}

label.error {
    color: red;
    /* color: #58151c !important; */
    font-size: 0.8rem;
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.device_smoll {
    display: none;
}

body {
    font-family: "Lato", sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    position: relative;
    transition: all 0.3s ease;
}
.content table tbody tr .cell a img {
    width: 25px;
}
.content table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    font-size: 1rem;
}
.content td.cell{
    background-color: var(--bg-list-pca);
    padding: 0.75rem;
    vertical-align: middle;
    /*border: 1px solid var(--border-color);*/
    font-size: 0.95rem;
    color: var(--text-tertiary);
    word-break: break-word;
}
.content th{
    background-color: var(--bg-list-head-pca) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem;
    color: var(--text-secondary);
    text-align: center;

}

.header-bar{
    min-height: 68px;           /* altura confortável */
    gap: 12px;                   /* respiro entre blocos */
}

/* Logo no header: remover width percentual e usar altura fixa */
.top-header .img-logo{
    height: 68px;
    width: auto !important;      /* sobrescreve width:40% anterior */
    display: block;
}
@media (min-width: 992px){
    .top-header .img-logo{
        height: 60px;
    }
}

/* Avatar do usuário */
#perfilUsuario{
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
}

/* Divisor vertical no header */
.vr-nav{
    width: 1px;
    height: 28px;
    opacity: .3;
    background-color: currentColor;
    border-radius: 1px;
}

/* Cores dos links do header */
.header-option{
    color: var(--text-tertiary);
}
.header-option:hover{
    color: #1e4964;
}
header .back-button img {
    width: 32px;
    height: 32px;
    cursor: pointer;
}

#perfilUsuario {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
}

.bt-voltar-home .bt-voltar {
    position: fixed;
    bottom: 40px;
    left: 80px;
    z-index: 1000;
}

.bt-voltar-home .bt-voltar img {
    width: 50%;
    border-radius: 50%;
}

.bt-voltar-home .bt-voltar img:hover {
    transform: scale(1.1);
}

.bt-next-home .bt-next {
    position: fixed;
    bottom: 40px;
    right: 35px;
}

.bt-next-home .bt-next img {
    width: 50%;
    border-radius: 50%;
    transform: scaleX(-1);
}

.bt-next-home .bt-next img:hover {
    transform: scale(1.1) scaleX(-1);
}

@media only screen and (max-width: 768px) {
    header .logo {
        justify-content: center;
    }

    .wrapper {
        margin-top: 120px;
    }
}

#buscar {
    padding-left: 40px;
    height: 38px;
    border: 1px solid var( --border-color);
    border-radius: 5px;
    outline: none;
    background-color: var(--bs-modal-border-color);
}
.search-wrapper {
    position: relative;
    width: 100%;

}

.search-wrapper input {
    width: 100%;
    padding: 8px 12px 8px 35px; /* espaço para o ícone */
    border-radius: 6px;
    outline: none;
}

.search-wrapper i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none; /* Ícone não atrapalha o clique no input */
}
#buscar:focus {
    border-color: var(--shadow-heavy);
}

#btn-buscar {
    display: none;
}

/* ESTIZILAÇÃO DAS PÁGINAS DE CRIAÇÃO DO PROCESSO */

.button-container {
    top: 50%;
    left: 100%;
    /* Alinhar o botão à direita da sidebar */
    transform: translateY(-50%);
    z-index: 1000;
    /* Garante que o botão fique sobre a sidebar */
}

.lateral {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.5s ease;
    position: relative;
    bottom: 25px;
}
.dados {
    height: 550px;
}

#listarEtapa2,
#listarEtapa3,
#listarEtapa4 {
    display: none;
    height: 100%;
}

.hidden {
    display: none;
}

.titulo {
    display: flex;
    align-items: center;
    justify-content: center;
}
.titulo img {
    width: 50px;
    margin-right: 10px;
}

.menu{
    display: flex;
    min-height: 600px;
    width: 60%;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--bg-tertiary);
    box-shadow: 1px 1px 2px var(--shadow-light);
    color: var(--text-secondary);
    transition: all 0.3s, margin-left 0.3s ease, width 0.2s ease;
}
.tittle {
    padding-top: 5%;
}
.tittle h1 {
    text-align: center;
}
.menu .buttons {
    width: 100%;
    padding: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.buttons .formEditar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    row-gap: 30px;
    min-width: 800px;
}
.buttons .formEditar textarea {
    min-width: 800px;
    background-color: #ebf6ff;
}
.menu .formSubdados {
    width: 100%;
}
.menu .box {
    width: 240px;
    height: auto;
    padding: 30px 20px;
    margin: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-light);
    transition: all 0.3s ease-in-out;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu .box:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 8px 20px var(--shadow-light);
    transform: translateY(-6px);
}

.menu .box  p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.2s ease;
}

.menu .box .botaoAtributo {
    all: unset;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.menu .box img {
    max-width: 85px;
    margin-top: 20px;
}
/* CAPA DO PROCESSO - ETAPA 3 */
.capaProcesso {
    display: flex;
    justify-content: center;
}

.capaProcesso .table {
    width: 100%;
    border-collapse: collapse;
    /* Faz com que as bordas se fundam em uma só linha */
    width: 100%;
    /* A tabela ocupará toda a largura disponível */
    height: 100%;
    /* A tabela ocupará toda a altura disponível */
    border-spacing: 0 15px;
    /* Aumenta o espaço entre as linhas */
}

.capaProcesso .a4-container {
    width: 210mm;
    /* Largura de uma folha A4 */
    height: 297mm;
    /* Altura de uma folha A4 */
}

.capaProcesso .a4-container .titulo {
    text-align: center;
    line-height: 20px;
    font-size: 20px;
}

.capaProcesso .a4-container th {
    text-align: left;
    background-color: var(--header-bg);
}

.capaProcesso th,
.capaProcesso td {
    border: 0.5px solid #000;
    margin-top: 20px;
    vertical-align: middle;
    word-wrap: break-word;
}

.capaProcesso .maiusculo {
    text-transform: uppercase;
}

/* POPUP TOASTIFY */
.my-toast {
    box-sizing: border-box;
}

.my-toast .toastify-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 250px;
    min-width: 200px;
    word-break: break-word;
    gap: 15px;
}

.my-toast .toastify-content .text-alert {
    margin: auto;
    /*text-align: center;*/
}

.my-toast .toastify-content .close-btn {
    cursor: pointer;
    font-weight: bold;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 60px 0 20px 0;
    /* Espaço superior e inferior */
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 3px solid #ddd;
    /* Linha */
    border-radius: 7px;
    margin: 0 10px;
    /* Espaçamento entre linha e texto */
}

.divider span {
    white-space: nowrap;
    /* Garante que o texto não quebra */
    padding: 0 10px;
    /* Espaçamento ao redor do texto */
    font-size: 20px;
    /* Tamanho do texto */
    color: #666;
    /* Cor do texto */
}

hr.rounded {
    border-top: 2px solid #bbb;
    border-radius: 5px;
    margin-top: 45px;
}

.tooltip-inner {
    background-color: black !important;
    color: white !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    max-width: 400px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

.tooltip {
    z-index: 1060 !important;
}


.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #222 !important;
}

.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #222 !important;
}

/*PAINEL DE CONTROLE*/

.card-icon-painel {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--licitapro);
    transition: all 0.2s ease-in-out;
}

.card-painel:hover {
    background-color: var(--bg-secondary);
    box-shadow: 0 0 10px var(--shadow-light);
    transition: all 0.2s ease-in-out;
}

.painel-titulo {
    font-weight: bold;
    font-family: "Volkhov", serif;
    text-align: center;
    color: var(--text-color1);

    margin-top: 30px;
}

.secao-titulo-painel {
    font-size: 1.3rem;
    font-weight: bold;
    font-family: "Volkhov", serif;
    margin-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 5px;
}

/*BARRA DE BUSCA E ADICIONAR*/

.content .options {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.content .search,
.content .buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content .search {
    flex: 1;
    max-width: 800px;
}

.content h3 {
    font-family: sans-serif;
    color: var(--text-tertiary);
}

.content .search input {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--accent-border);
    border-radius: 0.375rem;
}

.container .search button {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}
.section-light::after,
.section-dark::after,
.hero-section::after{
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 0px;
    pointer-events: none;
    z-index: 1;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.side-toggle{
    --_size:32px;
    width:var(--_size);
    height:var(--_size);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--accent-border, #A9B6CC);
    background:transparent;
    border-radius:8px;
    cursor:pointer;
    color: var(--text-tertiary, #3f688d);
}
.side-toggle:hover{
    background: var(--accent-hover, #E2E6EC);
}
.side-title{
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
    color: var(--text-secondary, #334155);
    font-size:12.5px;
    display:flex;
    align-items:center;
    gap:.5rem;
}
.side-head{
    position: sticky;
    top: 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:.5rem;
    padding:10px 10px 6px 12px;
    border-bottom:1px solid var(--accent-border);
    z-index:2;
}
/* Rodapé da sidebar */
.sidebar-footer {
    overflow: visible !important;
    position: relative;
    z-index: 2000;
    margin-top: auto;
    border-top: 1px solid var(--border-color, #eef2f7);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    justify-content: flex-start;
    color: var(--text-secondary, #6b7280);
    font-size: 12.5px;
}

/* Ajuste global para quando a sidebar está recolhida */
.viewer-shell.compact .sidebar {
    overflow: visible !important;
}

/* container do dropdown “casado” com a margem lateral do .nav-link */
.sidebar-footer .dropdown{
    position: relative;
    padding: 0 8px;
}

/* menu do tema: largura do botão e acima de tudo */
.sidebar-footer .dropdown-menu,
.sidebar-footer .dropdown-menu.show{
    position: absolute !important;
    inset: auto 0 100% 0 !important;   /* dropUP: bottom:100%, left/right:0 */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    z-index: 2003 !important;          /* filho > pai, mas pai já está > resizer */

    /* anula estilos inline do Popper */
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: 100% !important;
    transform: none !important;
}

/* botão sem margens laterais dentro do dropdown */
.sidebar-footer .dropdown > .nav-link{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.light-mode #helpIcon {
    color: #212529;
}
.dark-mode  #helpIcon {
    color: #f8f9fa;
}

.text-capitalize-first::first-letter{
    text-transform: capitalize !important;
}