* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --sidebar-width: 250px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: var(--text-color);
}

/* Tela de Login */
.screen {
    display: none !important;
}

.screen.active {
    display: block !important;
}

#loginScreen.active {
    display: flex !important;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#loginScreen {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    margin-bottom: 5px;
}

.login-header .subtitle {
    font-size: 12px;
    color: #999;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: var(--danger-color);
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Layout Principal */
#mainScreen {
    display: none;
    min-height: 100vh;
}

#mainScreen.active {
    display: flex !important;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--dark-color);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    font-size: 20px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: block;
    padding: 15px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--primary-color);
}

.nav-item i {
    margin-right: 10px;
    width: 20px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info i {
    font-size: 24px;
}

/* Conteúdo Principal */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 20px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.main-header h1 {
    font-size: 28px;
    color: var(--dark-color);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: white;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--light-color);
}

/* Páginas */
.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 24px;
    color: var(--dark-color);
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.blue {
    background: var(--primary-color);
}

.stat-icon.green {
    background: var(--secondary-color);
}

.stat-icon.orange {
    background: var(--warning-color);
}

.stat-icon.purple {
    background: #9b59b6;
}

.stat-info h3 {
    font-size: 32px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.stat-info p {
    color: #666;
    font-size: 14px;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* Tabelas */
.table-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input-search {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.select-filter {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: white;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--light-color);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:hover {
    background: #f9f9f9;
}

.text-center {
    text-align: center;
}

/* Botões */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Status Badge */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.ativo {
    background: #d4edda;
    color: #155724;
}

.status-badge.inativo {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.rascunho {
    background: #fff3cd;
    color: #856404;
}

/* Funcionários Badge */
.funcionarios-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #e3f2fd;
    color: #1565c0;
}

.funcionarios-badge.limite-atingido {
    background: #ffebee;
    color: #c62828;
}

/* Info Box para formulário */
.info-box {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-size: 14px;
    color: #495057;
}

.info-box .count {
    font-weight: 700;
    color: #1565c0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-sm {
    max-width: 450px;
}

/* Input de Cor */
.input-color {
    width: 60px;
    height: 40px;
    padding: 2px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
}

/* Cor Badge (indicador visual de cor) */
.cor-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid rgba(0,0,0,0.1);
}

/* Fator de Risco Badge */
.fator-risco-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
}

.fator-risco-badge .cor-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal-close:hover {
    color: var(--dark-color);
}

.modal-body {
    padding: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    border-radius: 5px;
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:hover:not(.active) {
    background: var(--light-color);
}

/* Configurações */
.config-section {
    margin-bottom: 30px;
}

.config-section h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.config-item {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.config-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.config-item input,
.config-item select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

/* Responsivo */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .table-controls {
        flex-direction: column;
    }
}

/* Estilos para Gerenciamento de Perguntas */
.modal-large {
    max-width: 900px;
    width: 95%;
}

.perguntas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.perguntas-list {
    max-height: 600px;
    overflow-y: auto;
}

.pergunta-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
}

.pergunta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.pergunta-body {
    padding-top: 10px;
}

.pergunta-body p {
    margin: 5px 0;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

.opcao-item {
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.opcao-item .form-row {
    align-items: flex-end;
}

.opcao-item .form-group {
    margin-bottom: 0;
}

.opcao-item label {
    font-size: 12px;
    font-weight: bold;
}

.opcao-item input[type="text"] {
    width: 100%;
}

.opcao-item input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

/* Opções de escala (não editáveis) */
.opcao-item.opcao-escala {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
}

.opcao-letra-fixed {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.opcao-pontuacao {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.opcao-pontuacao i {
    color: #f59e0b;
}

small {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* ====================================
   MODAL DE ENVIO DE QUESTIONÁRIO
   ==================================== */

.envio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 900px) {
    .envio-grid {
        grid-template-columns: 1fr;
    }
}

.envio-form {
    padding-right: 20px;
    border-right: 1px solid #e5e7eb;
}

@media (max-width: 900px) {
    .envio-form {
        padding-right: 0;
        border-right: none;
        padding-bottom: 20px;
        border-bottom: 1px solid #e5e7eb;
    }
}

.envio-historico h4 {
    margin-bottom: 15px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.envio-historico h4 i {
    color: #6b7280;
}

.alert-whatsapp {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #86efac;
}

.alert-whatsapp i {
    font-size: 24px;
    color: #25D366;
    flex-shrink: 0;
}

.alert-whatsapp p {
    margin: 0;
    color: #166534;
    font-size: 14px;
    line-height: 1.5;
}

.alert-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 15px;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-info-box i {
    font-size: 18px;
}

.alert-warning-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 15px;
    color: #92400e;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.alert-warning-box i {
    font-size: 18px;
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-warning-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Histórico de Envios */
.historico-lista {
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.historico-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.2s;
}

.historico-item:hover {
    background: #f3f4f6;
}

.historico-item.status-concluido {
    border-left: 4px solid #10b981;
}

.historico-item.status-andamento {
    border-left: 4px solid #f59e0b;
}

.historico-item.status-pendente {
    border-left: 4px solid #6b7280;
}

.historico-item.status-expirado {
    border-left: 4px solid #ef4444;
}

.historico-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.historico-header strong {
    color: #374151;
    font-size: 14px;
}

.status-badge-sm {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge-sm.status-concluido {
    background: #d1fae5;
    color: #065f46;
}

.status-badge-sm.status-andamento {
    background: #fef3c7;
    color: #92400e;
}

.status-badge-sm.status-pendente {
    background: #f3f4f6;
    color: #4b5563;
}

.status-badge-sm.status-expirado {
    background: #fee2e2;
    color: #991b1b;
}

.historico-body {
    font-size: 12px;
    color: #6b7280;
}

.historico-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.historico-info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.historico-info i {
    color: #9ca3af;
    font-size: 11px;
}

.historico-progresso {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-mini {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 3px;
    transition: width 0.3s;
}

.progress-text-mini {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}

.historico-acoes {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}

.historico-acoes .btn {
    font-size: 12px;
    padding: 6px 12px;
}

/* File Preview */
.file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-top: 8px;
}

.file-preview i {
    font-size: 24px;
    color: #dc3545;
}

.file-preview span {
    flex: 1;
    font-size: 13px;
    color: #495057;
    word-break: break-all;
}

.file-preview .btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* Pílulas de Sabedoria */
.nav-pilulas-sabedoria i {
    color: #ffc107;
}

.text-muted {
    color: #6c757d !important;
    font-size: 0.9em;
}

.text-warning {
    color: #f39c12 !important;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Liberação de Perguntas */
.liberacao-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.info-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.liberacao-status {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.status-item {
    text-align: center;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid transparent;
}

.status-item.status-liberado {
    background: #d1fae5;
    border-color: #10b981;
}

.status-item.status-lote {
    background: #fef3c7;
    border-color: #f59e0b;
}

.status-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
    margin-bottom: 8px;
}

.status-item.status-liberado .status-number {
    color: #059669;
}

.status-item.status-lote .status-number {
    color: #d97706;
}

.status-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
}

.liberacao-acao {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #f59e0b;
}

.liberacao-acao p {
    margin-bottom: 15px;
    font-size: 16px;
}

.liberacao-acao #liberacaoProximoLote {
    font-size: 24px;
    font-weight: 700;
    color: #d97706;
}

.liberacao-historico {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.liberacao-historico h4 {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.liberacao-historico h4 i {
    margin-right: 8px;
}

.historico-item-lib {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}

.historico-item-lib:hover {
    background: #e9ecef;
}

.historico-item-lib .data {
    color: #6c757d;
    font-size: 12px;
}

.historico-item-lib .quantidade {
    font-weight: 600;
    color: #059669;
}

.historico-item-lib .usuario {
    color: #6c757d;
    font-style: italic;
}

.alert-success-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success-box i {
    font-size: 24px;
    color: #059669;
}

.alert-success-box p {
    color: #065f46;
    margin: 0;
}

/* ======================================
   LAUDOS
   ====================================== */

.laudos-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.laudos-tabs .tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.laudos-tabs .tab-btn:hover {
    color: var(--primary-color);
}

.laudos-tabs .tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Prévia do Laudo */
.laudo-previa-container {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.laudo-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.laudo-header-card h2 {
    margin-bottom: 5px;
    font-size: 24px;
}

.laudo-header-card p {
    margin: 3px 0;
    opacity: 0.9;
}

.resultado-box {
    background: rgba(255,255,255,0.2);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    min-width: 180px;
}

.resultado-box .resultado-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.resultado-box .resultado-valor {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.resultado-box .resultado-nivel {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.3);
}

/* Estatísticas */
.estatisticas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-box i {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-box .stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-box .stat-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 5px;
}

/* Análise por Fator de Risco */
.fatores-analise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.fator-analise-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    background: white;
    position: relative;
    overflow: hidden;
}

.fator-analise-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
}

.fator-analise-card .fator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.fator-analise-card .fator-nome {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-color);
}

.fator-analise-card .fator-risco {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.fator-analise-card .fator-barra {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.fator-analise-card .fator-barra-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.fator-analise-card .fator-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

/* Classificação de risco cores */
.risco-baixo { background: #dcfce7; color: #166534; }
.risco-moderado { background: #fef9c3; color: #854d0e; }
.risco-alto { background: #fed7aa; color: #9a3412; }
.risco-critico { background: #fecaca; color: #991b1b; }

.barra-baixo { background: #22c55e; }
.barra-moderado { background: #eab308; }
.barra-alto { background: #f97316; }
.barra-critico { background: #ef4444; }

/* Análise por Setor */
.setores-analise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.setor-analise-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    background: white;
}

.setor-analise-card .setor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.setor-analise-card .setor-nome {
    font-weight: 600;
    font-size: 14px;
}

.setor-analise-card .setor-funcionarios {
    font-size: 12px;
    color: #6b7280;
}

/* Escala de Referência */
.escala-referencia {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.escala-item {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
}

.escala-item.baixo { background: #dcfce7; color: #166534; }
.escala-item.moderado { background: #fef9c3; color: #854d0e; }
.escala-item.alto { background: #fed7aa; color: #9a3412; }
.escala-item.critico { background: #fecaca; color: #991b1b; }

/* Ações do Laudo */
.laudo-acoes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-success {
    background: #22c55e;
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

/* Alert Info */
.alert-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    background: #dbeafe;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #1e40af;
}

.alert-info i {
    font-size: 20px;
    color: #3b82f6;
}

/* Ponderamentos Input */
.peso-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: border-color 0.2s;
}

.peso-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Classificação Badge na tabela de laudos */
.classificacao-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.classificacao-badge.baixo { background: #dcfce7; color: #166534; }
.classificacao-badge.moderado { background: #fef9c3; color: #854d0e; }
.classificacao-badge.alto { background: #fed7aa; color: #9a3412; }
.classificacao-badge.critico { background: #fecaca; color: #991b1b; }
.classificacao-badge.sem-dados { background: #f3f4f6; color: #6b7280; }

