/* ==========================================================================
   BIOVIDA CONTROLE DE QUALIDADE - ESTILIZAÇÃO COMPLETA (TEMA CLARO COMPACTO)
   ========================================================================== */

/* Cores e Variáveis - Tema Claro */
:root {
    --bg-light: #f4f6f9;
    --panel-light: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);
    --brand-red: #e3262e;
    --brand-red-hover: #b81b21;
    --brand-red-glow: rgba(227, 38, 46, 0.15);
    --text-primary: #1c1e24;
    --text-secondary: #5e6675;
    --text-muted: #8c95a6;
    
    --font-sans: 'Outfit', sans-serif;
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.02);
    --transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Cores do Dashboard */
    --db-sidebar-width-collapsed: 64px;
    --db-sidebar-width-expanded: 240px;
    --active-blue: #1a73e8;
    --active-blue-hover: #1557b0;
    --active-blue-light: #e8f0fe;
    --header-height: 60px;
}

/* Reset Geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Helper de visibilidade */
.hidden {
    display: none !important;
}

/* Elementos de Fundo Decorativos */
.background-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    animation: pulse 8s infinite alternate;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background-color: var(--brand-red);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 500px;
    height: 500px;
    background-color: #3b82f6;
    bottom: -150px;
    left: -150px;
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.06;
    }
    100% {
        transform: scale(1.15) translate(30px, 20px);
        opacity: 0.12;
    }
}

/* ==========================================================================
   BIO GESTOR - TELA DE LOGIN SPLIT-SCREEN
   ========================================================================== */

/* Wrapper Principal (Ocupa a tela inteira) */
.login-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* Painel Esquerdo: Vídeo de Fundo (Fallback com imagem estática) */
.login-visual-panel {
    width: 30%;
    height: 100%;
    background-color: #000000;
    background-image: url('assets/cells-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay Escuro com Gradiente Vermelho no Painel Esquerdo */
.login-visual-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(183, 28, 28, 0.2) 100%);
    z-index: 1;
}

.network-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 30%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

/* Painel Direito: Área Branca do Formulário */
.login-form-panel {
    width: 70%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

/* Container do Formulário */
.login-form-inner {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Cabeçalho da Marca (Logo + Título) */
.login-header-brand {
    display: flex;
    justify-content: flex-start;
}

.brand-logo-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.brand-logo-details {
    display: flex;
    flex-direction: column;
}

.brand-title-text {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.8px;
    line-height: 1.1;
}

.brand-red-part {
    color: #e3262e;
}

.brand-divider-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.brand-line {
    height: 1.5px;
    background-color: #e3262e;
    flex-grow: 1;
    width: 25px;
}

.brand-subtitle-text {
    font-size: 8.5px;
    font-weight: 750;
    color: #555555;
    letter-spacing: 1.8px;
    white-space: nowrap;
}

/* Bloco de Boas-vindas */
.welcome-heading-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.welcome-heading-block h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1c1e24;
}

.welcome-heading-block p {
    font-size: 13.5px;
    color: #5e6675;
}

/* Formulário de Login */
.login-form-new {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    position: absolute;
    left: 16px;
    color: #8c95a6;
    font-size: 15px;
}

.form-input-wrapper input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-size: 13.5px;
    font-family: var(--font-sans);
    outline: none;
    transition: all 0.2s;
    background-color: #fafafa;
    color: var(--text-primary);
}

.form-input-wrapper input::placeholder {
    color: #8c95a6;
}

.form-input-wrapper input:focus {
    border-color: #e3262e;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(227, 38, 46, 0.08);
}

/* Botão de revelar senha */
.toggle-password-icon {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #8c95a6;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    padding: 4px;
}

.toggle-password-icon:hover {
    color: var(--text-primary);
}

/* Linha de Opções (Lembrar / Esqueci) */
.form-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-top: 2px;
}

.checkbox-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #5e6675;
    user-select: none;
}

.checkbox-remember input {
    cursor: pointer;
    accent-color: #e3262e;
    width: 15px;
    height: 15px;
}

.forgot-password-link {
    color: #e3262e;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: #b81b21;
}

/* Botão de Envio (Entrar) */
.btn-login-submit {
    width: 100%;
    padding: 14px;
    background-color: #e3262e;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    margin-top: 8px;
    box-shadow: 0 4px 10px rgba(227, 38, 46, 0.15);
}

.btn-login-submit:hover {
    background-color: #b81b21;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(227, 38, 46, 0.25);
}

.btn-login-submit:active {
    transform: translateY(0);
}

/* Rodapé de Valores */
.login-footer-values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5e6675;
    margin-top: 8px;
}

.value-dot {
    color: #e3262e;
    font-weight: bold;
}

/* Responsividade: Oculta painel esquerdo em telas menores */
@media (max-width: 768px) {
    .login-visual-panel {
        display: none;
    }
    .login-form-panel {
        width: 100%;
        padding: 24px;
    }
}


/* ==========================================================================
   BIOVIDA CONTROLE DE QUALIDADE - ESTRUTURA DO DASHBOARD (TELA PRINCIPAL)
   ========================================================================== */

.app-container {
    display: flex;
    min-height: 100vh;
    background-color: #f4f6fa;
    position: relative;
    z-index: 5;
}

/* 1. Sidebar Esquerda */
.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--db-sidebar-width-collapsed);
    background-color: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

/* Expansão da Sidebar no Hover */
.app-sidebar:hover {
    width: var(--db-sidebar-width-expanded);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.02);
}

/* Cabeçalho da Sidebar (Logo) */
.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}
.logo-text-exp {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, width 0.2s ease;
    margin-left: 10px;
}

.app-sidebar:hover .logo-text-exp {
    opacity: 1;
    width: auto;
    pointer-events: auto;
}

/* Navegação da Sidebar */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 6px;
    gap: 6px;
}

.sidebar-footer {
    padding: 12px 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

/* Itens de Menu - Mais Compactos */
.nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    height: 42px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0 12px;
    gap: 12px;
    overflow: hidden;
}

.nav-item i {
    font-size: 15px; /* Ícones menores e elegantes */
    min-width: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-label {
    font-size: 13px; /* Fonte menor */
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Hover nos Menus Inativos */
.nav-item:hover {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

/* Ativação do Menu */
.nav-item.active {
    background-color: var(--active-blue);
    color: #ffffff;
}

/* Exibição dos Textos na Expansão */
.app-sidebar:hover .nav-label {
    opacity: 1;
    visibility: visible;
}

/* 2. Área Principal de Conteúdo */
.app-main {
    flex: 1;
    margin-left: var(--db-sidebar-width-collapsed);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 3. Barra Superior (Header) */
.app-header {
    height: var(--header-height);
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.current-path {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.current-path i {
    color: var(--text-muted);
    font-size: 13px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    position: relative;
}

.header-action-btn:hover {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.header-action-btn span {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    margin-left: 5px;
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background-color: var(--brand-red);
    border-radius: 50%;
    border: 1px solid #ffffff;
}

/* Perfil do Usuário na Barra Superior */
.header-user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.header-user-profile:hover {
    background-color: var(--bg-light);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-display-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-arrow {
    font-size: 9px;
    color: var(--text-muted);
}

/* Dropdown de Logout */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    width: 160px;
    padding: 4px;
    display: none;
    z-index: 110;
    animation: fadeInUp 0.2s ease;
}

.profile-dropdown.show {
    display: block;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: #ef5350;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.profile-dropdown a:hover {
    background-color: #ffebee;
}

/* 4. Corpo de Conteúdo Principal */
.app-content {
    flex: 1;
    padding: 24px;
}

.content-header {
    margin-bottom: 20px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.03) 0%, rgba(26, 115, 232, 0.005) 100%);
    border: 1px solid rgba(26, 115, 232, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.welcome-banner h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.welcome-banner p {
    font-size: 13px;
    color: var(--text-secondary);
}


/* ==========================================================================
   BIOVIDA CONTROLE DE QUALIDADE - TELA: PAINEL DE QUALIDADE
   ========================================================================== */

.quality-tools-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.005);
    margin-bottom: 20px;
}

.header-right-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Botão Nova Norma - Compacto */
.btn-add-norma {
    background: linear-gradient(135deg, #5caced 0%, #1a73e8 100%);
    border: none;
    border-radius: 16px;
    color: #ffffff;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-add-norma:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.25);
}

/* Toggle Inativos Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 18px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background-color: #4caf50;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Campo de busca */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 6px 32px 6px 12px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    outline: none;
    font-family: var(--font-sans);
    font-size: 12px;
    width: 180px;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    border-color: var(--active-blue);
    width: 220px;
}

.search-icon {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

/* Grid de Cards de Normas */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    width: 100%;
}

.standard-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
    transition: var(--transition-smooth);
    position: relative;
    animation: fadeInUp 0.4s ease;
}

.standard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
    border-color: rgba(26, 115, 232, 0.15);
}

/* Topo do Card */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-title-section h3 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.card-title-section p {
    font-size: 11.5px;
    color: var(--text-secondary);
}

.card-menu-container {
    position: relative;
}

.btn-card-menu {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: var(--transition-smooth);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-card-menu:hover {
    color: var(--text-primary);
    background-color: var(--bg-light);
}

/* Dropdown de Opções do Card */
.card-dropdown {
    position: absolute;
    top: 30px;
    right: 0;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    width: 120px;
    padding: 4px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-dropdown.hidden {
    display: none !important;
}

.dropdown-item {
    background: none;
    border: none;
    padding: 8px 12px;
    font-family: var(--font-sans);
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    border-radius: 5px;
    color: var(--text-secondary);
    width: 100%;
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.dropdown-item.text-danger {
    color: #e3262e;
}

.dropdown-item.text-danger:hover {
    background-color: #ffebee;
}

/* Barra de Progresso */
.card-progress-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.progress-bar-container {
    flex: 1;
    height: 6px;
    background-color: #f0f2f5;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #64b5f6 0%, #1a73e8 100%);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.progress-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--active-blue);
    min-width: 25px;
    text-align: right;
}

/* Rodapé do Card */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 14px;
    margin-top: 4px;
}

/* Responsável */
.responsible-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.responsible-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.responsible-info {
    display: flex;
    flex-direction: column;
}

.responsible-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.responsible-role {
    font-size: 9px;
    color: var(--text-muted);
}

/* Seção de Consultores Premium (Pilha de Avatares Sobrepostos com Tooltip) */
.consultants-section {
    position: relative;
    display: flex;
    align-items: center;
}

.avatar-pile {
    display: flex;
    flex-direction: row-reverse; /* Inverte a ordem para a sobreposição de borda funcionar corretamente */
    align-items: center;
}

.pile-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -6px;
    object-fit: cover;
}

.pile-more {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #f1f3f4;
    color: var(--text-secondary);
    font-size: 8.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    margin-left: -6px;
}

/* Tooltip Premium em CSS */
.consultants-section[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background-color: #1c1e24;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    white-space: pre-line; /* Permite quebras de linha */
    text-align: right;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 100;
    line-height: 1.3;
}

.consultants-section[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateY(-2px);
}


/* ==========================================================================
   BIOVIDA CONTROLE DE QUALIDADE - ESTILIZAÇÃO DO MODAL (NOVA NORMA COMPACTA)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(18, 18, 24, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.25s ease;
}

.modal-card {
    background-color: #ffffff;
    border-radius: 12px;
    width: 480px;
    max-width: 92%;
    max-height: 85vh;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-header {
    background: linear-gradient(135deg, #4fc3f7 0%, #0288d1 100%);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.modal-header h2 {
    font-size: 16px;
    font-weight: 700;
}

.btn-close-modal {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.btn-close-modal:hover {
    opacity: 1;
}

.modal-form {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Custom Thin Scrollbar para o Modal Form */
.modal-form::-webkit-scrollbar {
    width: 5px;
}
.modal-form::-webkit-scrollbar-track {
    background: transparent;
}
.modal-form::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}
.modal-form::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input {
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    border-color: var(--active-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.08);
}

.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-primary);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    background: #ffffff;
}

/* Custom Select Sutil Caret Arrow */
.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-wrapper .select-arrow {
    position: absolute;
    right: 12px;
    color: #8c95a6;
    pointer-events: none;
    font-size: 9px !important;
    transition: var(--transition-smooth);
}

.form-group select:focus ~ .select-arrow {
    color: var(--active-blue);
    transform: rotate(180deg);
}

/* Upload area */
.upload-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-upload {
    padding: 8px 12px;
    background-color: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-upload:hover {
    background-color: #f0f0f0;
}

.upload-meta {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.2;
}

/* Linhas de Switches do Modal */
.form-row-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.04);
}

.toggle-label-main {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.toggle-switch-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-state-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 42px;
}

.toggle-state-text.active-txt {
    color: #4caf50;
}

/* Rodapé do Modal */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-modal-cancel {
    padding: 8px 18px;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-modal-cancel:hover {
    background-color: var(--bg-light);
}

.btn-modal-save {
    padding: 8px 18px;
    background-color: #29b6f6;
    background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
    border: none;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(2, 136, 209, 0.15);
}

/* Animações de Efeitos */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   BIOVIDA CONTROLE DE QUALIDADE - TELA DE REQUISITOS DA NORMA
   ========================================================================== */

.requirements-header {
    justify-content: space-between;
}

.requirements-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-back-to-standards {
    background: none;
    border: none;
    font-size: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.btn-back-to-standards:hover {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.req-progress-section {
    width: 180px;
    margin-top: 0 !important;
}

.btn-add-requirement {
    background: linear-gradient(135deg, #52a3db 0%, #1a73e8 100%);
    border: none;
    border-radius: 16px;
    color: #ffffff;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-add-requirement:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.25);
}

/* Tabela de Requisitos */
.requirements-table-container {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.requirements-table-header {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.5fr 1.2fr;
    padding: 10px 18px;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.08);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.requirements-list {
    display: flex;
    flex-direction: column;
}

/* Accordion Item */
.req-accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.req-accordion-item:last-child {
    border-bottom: none;
}

.req-accordion-header {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.5fr 1.2fr;
    padding: 10px 18px;
    cursor: pointer;
    align-items: center;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
    background-color: #fafafa;
    transition: var(--transition-smooth);
    user-select: none;
}

.req-accordion-header:hover {
    background-color: #f2f2f2;
}

.chevron-icon {
    font-size: 8px;
    margin-right: 6px;
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

/* Rotação do Chevron */
.req-accordion-item.active .chevron-icon {
    transform: rotate(90deg);
}

.req-accordion-content {
    display: none;
    background-color: #ffffff;
}

.req-accordion-item.active .req-accordion-content {
    display: block;
}

/* Sub-Requisitos */
.sub-req-row {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.5fr 1.2fr;
    padding: 8px 18px;
    align-items: center;
    font-size: 11px;
    transition: var(--transition-smooth);
    cursor: pointer;
    user-select: none;
}

.req-title-col {
    display: flex;
    align-items: center;
}

.pad-left {
    padding-left: 18px;
}

.req-status-col {
    display: flex;
    align-items: center;
    position: relative;
}

.req-resp-col {
    display: flex;
    align-items: center;
    width: 100%;
}

.req-date-col {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.req-status-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

/* Estilo do status "Concluido" */
.status-concluido-text {
    font-weight: 600;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Estilo do status "Pendente" */
.status-pendente-text {
    font-weight: 600;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fbc02d;
}

/* Dropdown de Edição de Status */
.req-status-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 200;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 4px 0;
    min-width: 110px;
    margin-top: 4px;
}

.req-status-dropdown .status-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.req-status-dropdown .status-opt:hover {
    background-color: #f5f5f5;
}

/* Ícones de ação no hover */
.req-actions-hover {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
}

.req-accordion-header:hover .req-actions-hover,
.sub-req-row:hover .req-actions-hover {
    display: flex;
}

.btn-req-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    color: #52a3db;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-req-circle:hover {
    transform: scale(1.1);
    background-color: #fafafa;
}

/* Painel Operacional Styles */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.department-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.department-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.department-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: #ffffff;
}

.department-card-header h3 {
    font-size: 11.5px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 85%;
}

.department-card-header .btn-card-menu {
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.department-card-header .btn-card-menu:hover {
    opacity: 1;
}

.department-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.dept-responsibles-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dept-responsibles-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dept-avatars-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dept-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    object-fit: cover;
    background-color: var(--bg-light);
}

.dept-description {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.department-card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #fafafa;
}

.dept-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-muted);
}

.dept-stat-item i {
    font-size: 11px;
}

/* Card Criador dashed */
.creator-card {
    border: 2px dashed rgba(0, 0, 0, 0.12);
    background-color: #fafbfd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
    color: var(--text-secondary);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.creator-card:hover {
    background-color: #f2f5fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.creator-card i {
    font-size: 28px;
    opacity: 0.7;
}

.creator-card span {
    font-weight: 700;
    font-size: 12.5px;
}

/* Responsividade */
@media (max-width: 768px) {
    .app-sidebar {
        width: 0;
    }
    .app-sidebar:hover {
        width: var(--db-sidebar-width-expanded);
    }
    .app-main {
        margin-left: 0;
    }
    .quality-tools-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .header-right-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .search-box input {
        width: 100%;
    }
    .search-box input:focus {
        width: 100%;
    }
}

/* Modal Drawer (Painel Lateral do Acredite-se) */
.modal-drawer {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 350px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #ffffff !important;
    animation: slideInRight 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    margin: 0 !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Color Picker Grid */
.color-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.color-opt {
    width: 32px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.color-opt:hover {
    transform: scale(1.08);
}

.color-opt.active {
    transform: scale(1.06);
    border: 2px solid #0056f3 !important;
    outline: 2px solid #ffffff;
    outline-offset: -4px;
}

/* ==========================================================================
   BIO GESTOR - ESTILOS DO GRID DE PLANILHAS (EXCEL SIMPLIFICADO)
   ========================================================================== */

.biogestor-grid-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    background-color: #ffffff;
}

.biogestor-grid-table th {
    font-size: 11px;
    font-weight: 700;
    color: #4a4a4a;
    background-color: #f8f9fa;
    padding: 10px 14px;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    user-select: none;
}

.biogestor-grid-table td {
    font-size: 12.5px;
    color: #444444;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 250px;
}

.biogestor-grid-table tbody tr {
    transition: background-color 0.15s;
}

.biogestor-grid-table tbody tr:hover {
    background-color: #fafbfd;
}

/* Status Capsules */
.status-pill-concluida {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-pill-pendente {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Grid Drag Handle Icon */
.grid-drag-handle {
    cursor: grab;
    color: #b0bec5;
    transition: color 0.15s;
}

.grid-drag-handle:hover {
    color: #78909c;
}

.grid-action-eye {
    cursor: pointer;
    color: #78909c;
    transition: color 0.15s;
}

.grid-action-eye:hover {
    color: #1a73e8;
}

/* Encadeamento de Avatares (Pessoas na Célula) */
.grid-avatar-stack {
    display: flex;
    align-items: center;
    gap: -4px;
}

.grid-avatar-stack img, 
.grid-avatar-stack .avatar-initials {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    object-fit: cover;
    margin-right: -6px;
    transition: transform 0.2s;
}

.grid-avatar-stack img:hover, 
.grid-avatar-stack .avatar-initials:hover {
    transform: scale(1.1);
    z-index: 10;
}

.grid-avatar-stack .avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0056f3;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

/* Custom Field Card List in Configuration Screen */
.config-field-card {
    border: 1px solid rgba(0,0,0,0.08);
    background-color: #ffffff;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.config-field-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    border-color: rgba(0,86,243,0.15);
}

.config-field-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.config-field-type-badge {
    font-size: 10px;
    font-weight: 700;
    color: #666;
    background-color: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* ==========================================================================
   TELA DE GERENCIAMENTO DE USUÁRIOS
   ========================================================================== */

.user-management-table th {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.user-management-table td {
    padding: 14px 16px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
}

.user-management-table tr:hover {
    background-color: #fafafa;
}

/* Badges de cargos */
.role-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 750;
    border-radius: 4px;
    text-transform: uppercase;
}

.role-admin {
    background-color: #ffebee;
    color: #e53935;
}

.role-responsavel {
    background-color: #e3f2fd;
    color: #1e88e5;
}

.role-consultor {
    background-color: #f1f3f4;
    color: #5f6368;
}

/* Avatar picker option */
.avatar-option {
    transition: transform 0.2s, border-color 0.2s;
}

.avatar-option:hover {
    transform: scale(1.1);
    border-color: #0056f3;
}

.avatar-option.selected {
    border-color: #0056f3 !important;
    box-shadow: 0 0 0 3px rgba(0, 86, 243, 0.15);
}

/* Estilo dos itens de pesquisa de membros */
.search-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 12.5px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.search-member-item:hover {
    background-color: #f0f4ff;
    color: #0056f3;
}

/* Chips/blocos de membros selecionados */
.team-member-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    transition: background-color 0.2s;
}

.team-member-chip:hover {
    background-color: #f5f5f5;
}

.team-member-chip-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-member-chip-left img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.team-member-chip-left span {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.team-member-chip-remove {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.team-member-chip-remove:hover {
    background-color: #ffebee;
}

/* Menu de Ações do Arquivo (Evidências) */
.file-actions-menu-container {
    position: relative;
    display: inline-block;
}
.file-actions-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}
.file-actions-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}
.file-actions-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 170px;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
}
.file-actions-menu.hidden {
    display: none;
}
.file-actions-menu-item {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    transition: background-color 0.15s, color 0.15s;
}
.file-actions-menu-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}
.file-actions-menu-item.danger {
    color: #e53935;
    border-top: 1px solid rgba(0,0,0,0.04);
}
.file-actions-menu-item.danger:hover {
    background-color: #fef2f2;
    color: #d32f2f;
}



/* Estilos para Edição Inline */
.inline-editable, .inline-pessoas, .inline-data {
    cursor: text;
    transition: all 0.2s;
}
.inline-editable:hover, .inline-pessoas:hover, .inline-data:hover {
    background-color: rgba(0, 0, 0, 0.02);
    box-shadow: inset 0 0 0 1px #e0e0e0;
}
.inline-editable:focus, .inline-pessoas:focus, .inline-data:focus {
    outline: 2px solid var(--primary);
    background-color: #fff;
    border-radius: 4px;
}


/* =========================================
   Estilos das Abas do Painel Lateral
   ========================================= */
.modal-tabs {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}
.tab-btn {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
}
.tab-btn:hover {
    color: #555;
    background: #fafafa;
    border-radius: 6px 6px 0 0;
}
.tab-btn.active {
    color: #7e57c2;
    border-bottom: 2px solid #7e57c2;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: flex;
}

/* Comentários Feed */
.comentario-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.comentario-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    object-fit: cover;
}
.comentario-body {
    flex: 1;
}
.comentario-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.comentario-author {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}
.comentario-date {
    font-size: 11px;
    color: #999;
}
.comentario-text {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Evidencias List */
.evidencia-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: white;
}
.evidencia-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}
.evidencia-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.evidencia-name {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}
.evidencia-date {
    font-size: 11px;
    color: #888;
}
.evidencia-actions {
    display: flex;
    gap: 8px;
}
.btn-evi-action {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}
.btn-evi-action:hover {
    background: #f0f0f0;
    color: #333;
}
.btn-evi-delete:hover {
    color: #d32f2f;
    background: #ffebee;
}

/* FR-35 Fixed Table Styles */
.fr35-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #000;
    margin-bottom: 20px;
    background-color: #fff;
    font-family: Arial, sans-serif;
}

.fr35-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    border-right: 2px solid #000;
}

.fr35-header-center {
    flex-grow: 1;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    padding: 10px;
}

.fr35-header-right {
    border-left: 2px solid #000;
    display: flex;
    flex-direction: column;
}

.fr35-header-right-row {
    padding: 5px 15px;
    font-size: 13px;
    border-bottom: 1px solid #000;
    font-weight: bold;
}
.fr35-header-right-row:last-child {
    border-bottom: none;
}

.fr35-meta-section {
    margin-bottom: 20px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.table-fixed-fr35 {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin-bottom: 20px;
    background-color: #fff;
}

.table-fixed-fr35 th, .table-fixed-fr35 td {
    border: 1px solid #000;
    text-align: center;
    padding: 6px 4px;
    font-size: 11px;
}

.table-fixed-fr35 th {
    background-color: #e6e6e6;
    font-weight: bold;
}

.table-fixed-fr35 .main-group-header {
    font-size: 13px;
    padding: 8px;
    background-color: #e6e6e6;
}

.input-fr35 {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 11px;
    outline: none;
    box-sizing: border-box;
}

.input-fr35:focus {
    background-color: #fdf2f2;
}

.input-fr35-meta {
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 13px;
    outline: none;
    width: 150px;
    padding-left: 5px;
}

.fr35-footer {
    font-family: Arial, sans-serif;
    font-size: 12px;
    margin-top: 10px;
}

.fr35-criterios {
    margin-bottom: 15px;
    font-weight: bold;
}

.fr35-obs-box {
    border: 1px solid #000;
    padding: 10px;
    min-height: 80px;
    margin-bottom: 30px;
}

.input-fr35-obs {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 12px;
    outline: none;
    resize: none;
}

.fr35-signature-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 50px;
    font-size: 12px;
}

.fr35-signature-line {
    border-bottom: 1px solid #000;
    width: 300px;
    text-align: center;
    padding-bottom: 5px;
    margin-left: 10px;
}
