﻿:root {
    --primary-color: #ff6b35;
    --primary-color-dark: #d94f12;
    --primary-color-light: #ff9a4f;
    --primary-color-soft: #fff1e8;
    --primary-color-border: #ffd0ba;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #f59f00;
}

.bg-primary,
.bg-info,
.btn-primary,
.badge.bg-primary,
.badge.bg-info {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-color-dark) !important;
    border-color: var(--primary-color-dark) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.spinner-border.text-primary {
    color: var(--primary-color) !important;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--primary-color-light);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.18);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Risk level colors */
.risk-low {
    background-color: var(--success-color);
    color: white;
}

.risk-medium {
    background-color: var(--warning-color);
    color: black;
}

.risk-high {
    background-color: var(--danger-color);
    color: white;
}

/* Card styles */
.dimension-card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.dimension-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Estilos para a Tabela de Resultados Detalhados - VERSÃO COMPACTA */
.dimensoes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px; /* Reduzido */
}

.dimensoes-table th {
    background-color: #343a40;
    color: white;
    padding: 8px 10px; /* Reduzido de 12px */
    text-align: left;
    font-size: 13px; /* Reduzido */
    font-weight: 500;
}

.dimensoes-table td {
    padding: 8px 10px; /* Reduzido de 12px */
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.dimensoes-table tr:hover {
    background-color: #f8f9fa;
}

.dimensoes-table .dim-nome {
    font-weight: 600;
    color: #495057;
}

.dimensoes-table .dim-media {
    font-size: 1.1rem; /* Reduzido de 1.5rem */
    font-weight: 600;
    margin: 0;
}

/* Badges de risco menores */
.risco-badge {
    padding: 4px 8px; /* Reduzido de 6px 12px */
    border-radius: 20px;
    font-size: 11px; /* Reduzido de 12px */
    font-weight: 500;
    display: inline-block;
    text-align: center;
    min-width: 70px; /* Reduzido de 80px */
    margin: 0 auto;
}

/* Centralizar conteúdo das células da tabela */
.dimensoes-table td,
.dimensoes-table th {
    text-align: center; /* Centraliza todo o conteúdo */
    vertical-align: middle; /* Centraliza verticalmente */
}

.risco-badge.baixo {
    background-color: #28a745;
    color: white;
}

.risco-badge.medio {
    background-color: #ffc107;
    color: #212529;
}

.risco-badge.alto {
    background-color: #dc3545;
    color: white;
}

/* Células de contagem */
.dim-contagem {
    text-align: center;
    font-weight: 500;
    font-size: 13px;
}

.dim-contagem.baixo {
    color: #28a745;
}

.dim-contagem.medio {
    color: #ffc107;
}

.dim-contagem.alto {
    color: #dc3545;
}

/* Cores de fundo para linhas (opcional - mais suaves) */
.table-success-light {
    background-color: #f0fff4;
}

.table-warning-light {
    background-color: #fff9e6;
}

.table-danger-light {
    background-color: #fff0f0;
}

/* Ajuste no card */
.card.dimensoes-card .card-body {
    padding: 0.75rem; /* Reduzido */
    max-height: 400px; /* Altura máxima com scroll */
    overflow-y: auto;
}

.card.dimensoes-card .card-header {
    padding: 0.5rem 0.75rem; /* Reduzido */
}

.card.dimensoes-card .card-header h5 {
    font-size: 1rem; /* Reduzido */
    margin-bottom: 0;
}

/* Question form */
.question-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.question-text {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.question-number {
    flex: 0 0 auto;
    min-width: 1.75rem;
    color: #0d6efd;
    font-weight: 700;
}

.likert-scale {
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto;
}

.likert-option {
    text-align: center;
    flex: 1;
}

.likert-option label {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Progress bar */
.progress-container {
    position: sticky;
    top: 0;
    background-color: white;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Dashboard charts */
.chart-container {
    position: relative;
    height: 400px;
    margin: 1rem 0;
}

.dashboard-help-header,
.dashboard-subsection-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-help-card .card-body {
    position: relative;
    padding-right: 2.25rem;
}

.dashboard-help-btn {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    font-size: 0.68rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dashboard-help-card .dashboard-help-btn {
    position: absolute;
    top: 8px;
    right: 8px;
}

.dashboard-subsection-title .dashboard-help-btn {
    color: #343a40;
    border-color: #ced4da;
    background: #fff;
}

.dashboard-help-btn:hover,
.dashboard-help-btn:focus {
    background: #fff;
    border-color: #fff;
    color: var(--primary-color);
}

.dashboard-subsection-title .dashboard-help-btn:hover,
.dashboard-subsection-title .dashboard-help-btn:focus {
    border-color: var(--primary-color);
}

.dashboard-help-modal .modal-body {
    color: #2f3a45;
    line-height: 1.55;
}

.dashboard-help-formula {
    padding: 12px 14px;
    margin: 12px 0 16px;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    background: #f4f7fb;
    font-weight: 700;
}

.dashboard-help-list {
    margin: 12px 0 16px;
    padding-left: 18px;
}

.dashboard-help-list li {
    margin-bottom: 6px;
}

.dashboard-help-table {
    margin-top: 12px;
}

.dashboard-help-table th {
    white-space: nowrap;
}

/* Loading spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Login form */
.login-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .likert-scale {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .chart-container {
        height: 300px;
    }
}

/* Estilos para o Gráfico Semáforo em Barras - VERSÃO COMPACTA */
.semaforo-barras {
    padding: 10px; /* Reduzido de 20px */
    background-color: #fff;
    border-radius: 8px;
    max-height: 500px; /* Altura máxima */
    overflow-y: auto; /* Adiciona scroll se necessário */
}

.semaforo-barra-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px; /* Reduzido de 15px */
    gap: 10px; /* Reduzido de 15px */
}

.semaforo-barra-label {
    width: 200px; /* Reduzido de 250px */
    font-weight: 500;
    color: #333;
    font-size: 13px; /* Reduzido de 14px */
}

.semaforo-barra-container {
    flex: 1;
}

.semaforo-barra {
    display: flex;
    height: 20px; /* Reduzido de 30px */
    width: 100%;
    border-radius: 3px; /* Reduzido de 4px */
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.semaforo-barra-verde {
    background-color: #28a745;
    height: 100%;
    transition: width 0.3s ease;
}

.semaforo-barra-amarelo {
    background-color: #ffc107;
    height: 100%;
    transition: width 0.3s ease;
}

.semaforo-barra-vermelho {
    background-color: #dc3545;
    height: 100%;
    transition: width 0.3s ease;
}

.semaforo-barra-valores {
    display: flex;
    justify-content: space-between;
    margin-top: 2px; /* Reduzido de 5px */
    font-size: 10px; /* Reduzido de 12px */
    color: #666;
}

.semaforo-barra-valores span {
    background: #f8f9fa;
    padding: 1px 4px; /* Reduzido de 2px 8px */
    border-radius: 8px; /* Reduzido de 12px */
}

.semaforo-escala {
    margin-top: 15px; /* Reduzido de 30px */
    padding-top: 10px; /* Reduzido de 20px */
    border-top: 1px solid #dee2e6;
}

.semaforo-escala-marcadores {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px; /* Reduzido de 5px */
    font-size: 10px; /* Reduzido de 12px */
    color: #666;
}

.semaforo-escala-barra {
    display: flex;
    height: 15px; /* Reduzido de 20px */
    width: 100%;
    border-radius: 3px; /* Reduzido de 4px */
    overflow: hidden;
}

.semaforo-escala-verde {
    flex: 0 0 33.33%;
    background-color: #28a745;
    opacity: 0.3;
}

.semaforo-escala-amarelo {
    flex: 0 0 33.33%;
    background-color: #ffc107;
    opacity: 0.3;
}

.semaforo-escala-vermelho {
    flex: 0 0 33.34%;
    background-color: #dc3545;
    opacity: 0.3;
}

.semaforo-legenda {
    display: flex;
    justify-content: center;
    gap: 20px; /* Reduzido de 30px */
    margin-top: 12px; /* Reduzido de 20px */
    padding: 8px; /* Reduzido de 15px */
    background-color: #f8f9fa;
    border-radius: 6px; /* Reduzido de 8px */
    font-size: 12px; /* Fonte menor */
}

.semaforo-legenda-item {
    display: flex;
    align-items: center;
    gap: 5px; /* Reduzido de 8px */
}

.semaforo-legenda-cor {
    width: 15px; /* Reduzido de 20px */
    height: 15px; /* Reduzido de 20px */
    border-radius: 3px; /* Reduzido de 4px */
}

.semaforo-legenda-verde {
    background-color: #28a745;
}

.semaforo-legenda-amarelo {
    background-color: #ffc107;
}

.semaforo-legenda-vermelho {
    background-color: #dc3545;
}

/* Opcional: Layout em duas colunas para itens */
.semaforo-barras.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.semaforo-barras.grid-layout .semaforo-barra-item {
    width: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
    .semaforo-barra-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        margin-bottom: 12px;
    }
    
    .semaforo-barra-label {
        width: 100%;
        font-size: 12px;
    }
    
    .semaforo-legenda {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .semaforo-barras.grid-layout {
        grid-template-columns: 1fr;
    }
}



.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.verde {
    background-color: #28a745;
}

.legend-color.amarelo {
    background-color: #ffc107;
}

.legend-color.vermelho {
    background-color: #dc3545;
}

.legend-text {
    font-size: 14px;
    font-weight: 500;
}

/* Estilos para a Tabela de Fatores de Risco - VERSÃO COMPACTA */
.fatores-risco-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px; /* Reduzido */
}

.fatores-risco-table th {
    background-color: #343a40;
    color: white;
    padding: 8px 10px; /* Reduzido de 12px */
    text-align: left;
    font-size: 15px; /* Reduzido */
    font-weight: 500;
}

.fatores-risco-table td {
    padding: 6px 10px; /* Reduzido de 10px 12px */
    border-bottom: 1px solid #dee2e6;
}

.fatores-risco-table tr:hover {
    background-color: #f8f9fa;
}

.fatores-risco-table .perigo {
    font-weight: 600;
    color: #495057;
    font-size: 15px; /* Reduzido */
}

.fatores-risco-table .consequencia {
    color: #6c757d;
    font-size: 13px; /* Reduzido */
}

/* Badges menores */
.risco-alto-badge {
    background-color: #dc3545;
    color: white;
    padding: 2px 6px; /* Reduzido de 3px 8px */
    border-radius: 10px; /* Reduzido de 12px */
    font-size: 12px; /* Reduzido de 12px */
    font-weight: 500;
    display: inline-block;
}

.risco-medio-badge {
    background-color: #ffc107;
    color: #212529;
    padding: 2px 6px; /* Reduzido de 3px 8px */
    border-radius: 10px; /* Reduzido de 12px */
    font-size: 12px; /* Reduzido de 12px */
    font-weight: 500;
    display: inline-block;
}

.risco-baixo-badge {
    background-color: #28a745;
    color: white;
    padding: 2px 6px; /* Reduzido de 3px 8px */
    border-radius: 10px; /* Reduzido de 12px */
    font-size: 12px; /* Reduzido de 12px */
    font-weight: 500;
    display: inline-block;
}

/* Texto pequeno dentro das células */
.fatores-risco-table td small {
    font-size: 11px; /* Reduzido */
    color: #999;
    display: block;
    margin-top: 2px;
}

.chart-risk-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    margin-top: 12px;
    color: #495057;
    font-size: 12px;
    line-height: 1.35;
}

.chart-risk-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chart-risk-dot {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    display: inline-block;
    flex: 0 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.14);
}

.chart-risk-low {
    background: #198754;
}

.chart-risk-medium,
.chart-risk-moderate {
    background: #ffc107;
}

.chart-risk-high {
    background: #dc3545;
}

.chart-risk-trivial {
    background: #2f80de;
}

.chart-risk-high-orange {
    background: #f59a44;
}

.chart-risk-very-high {
    background: #dc4446;
}

.risk-matrix-legend {
    margin-top: 14px;
}

.risk-matrix-scroll {
    overflow-x: auto;
    padding-bottom: 4px;
}

.risk-matrix-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
    color: #1f2d3d;
}

.risk-matrix-table th,
.risk-matrix-table td {
    border: 1px solid #f4f7f6;
}

.risk-matrix-empty {
    background: transparent;
    border: none !important;
}

.risk-matrix-probability {
    background: #075a2d;
    color: #fff;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0;
    padding: 10px;
}

.risk-matrix-axis {
    width: 42px;
    background: #075a2d;
    color: #fff;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-weight: 700;
    letter-spacing: 0;
}

.risk-matrix-axis-spacer {
    width: 42px;
    background: transparent;
    border: none !important;
}

.risk-matrix-corner,
.risk-matrix-scale,
.risk-matrix-effect {
    background: #c9ddcf;
    color: #1f2d3d;
}

.risk-matrix-corner {
    width: 120px;
}

.risk-matrix-scale {
    height: 60px;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.risk-matrix-effect {
    width: 120px;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.risk-matrix-scale strong,
.risk-matrix-effect strong {
    display: block;
    font-size: 14px;
    line-height: 1;
}

.risk-matrix-scale span,
.risk-matrix-effect span,
.risk-matrix-scale small,
.risk-matrix-effect small {
    display: block;
    line-height: 1.2;
}

.risk-matrix-scale small,
.risk-matrix-effect small {
    color: #426255;
    font-size: 10px;
    margin-top: 2px;
}

.risk-matrix-cell {
    height: 56px;
    padding: 8px 6px;
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    position: relative;
}

.risk-matrix-cell span {
    display: block;
}

.risk-matrix-cell strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-top: 5px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1f2d3d;
    font-size: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.risk-matrix-cell.has-items {
    outline: 3px solid rgba(21, 38, 53, 0.22);
    outline-offset: -4px;
}

.risk-trivial {
    background: #239b55;
    color: #102a19;
}

.risk-baixo {
    background: #239b55;
    color: #102a19;
}

.risk-medio,
.risk-moderado {
    background: #f4c84f;
    color: #3b3420;
}

.risk-alto {
    background: #dc3545;
    color: #fff;
}

.risk-muito-alto {
    background: #dc3545;
    color: #fff;
}

.risk-assessment-group-title {
    color: #2f5597;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.risk-assessment-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}

.risk-assessment-table th {
    background: #2f65d9;
    color: #fff;
    border: 1px solid #d8dee9;
    padding: 9px 7px;
    text-transform: uppercase;
    font-size: 11px;
    text-align: center;
    vertical-align: middle;
}

.risk-assessment-table td {
    border: 1px solid #d8dee9;
    padding: 8px 7px;
    vertical-align: middle;
    color: #1f2d3d;
    word-break: normal;
    overflow-wrap: anywhere;
}

.risk-assessment-table th:nth-child(1),
.risk-assessment-table td:nth-child(1) {
    width: 16%;
}

.risk-assessment-table th:nth-child(2),
.risk-assessment-table td:nth-child(2) {
    width: 18%;
}

.risk-assessment-table th:nth-child(3),
.risk-assessment-table td:nth-child(3) {
    width: 24%;
}

.risk-assessment-table th:nth-child(4),
.risk-assessment-table td:nth-child(4) {
    width: 12%;
    text-align: center;
    font-weight: 700;
}

.risk-assessment-table th:nth-child(5),
.risk-assessment-table td:nth-child(5) {
    width: 10%;
    text-align: center;
    font-weight: 700;
}

.risk-assessment-table th:nth-child(6),
.risk-assessment-table td:nth-child(6) {
    width: 10%;
    text-align: center;
    font-weight: 700;
}

.risk-assessment-table th:nth-child(7),
.risk-assessment-table td:nth-child(7) {
    width: 14%;
    text-align: center;
    font-weight: 700;
}

.risk-assessment-number small {
    display: block;
    color: #5f6c7b;
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
}

.risk-assessment-percent.favoravel {
    background: #c6f6d5;
    color: #22543d;
}

.risk-assessment-percent.intermediario {
    background: #fef08a;
    color: #713f12;
}

.risk-assessment-percent.critico {
    background: #fed7aa;
    color: #7c2d12;
}

.risk-assessment-percent.sem-dados {
    background: #e9ecef;
    color: #495057;
}

.risk-assessment-level.trivial {
    background: #bae6fd;
    color: #075985;
}

.risk-assessment-level.toleravel {
    background: #bbf7d0;
    color: #166534;
}

.risk-assessment-level.baixo {
    background: #bbf7d0;
    color: #166534;
}

.risk-assessment-level.medio,
.risk-assessment-level.moderado {
    background: #fde68a;
    color: #92400e;
}

.risk-assessment-level.alto,
.risk-assessment-level.substancial {
    background: #fecaca;
    color: #991b1b;
}

.risk-assessment-level.intoleravel {
    background: #fecaca;
    color: #991b1b;
}

.risk-assessment-level.sem-dados {
    background: #e9ecef;
    color: #495057;
}

.reliability-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: center;
}

.reliability-label {
    color: #6c757d;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.reliability-value {
    font-size: 30px;
    font-weight: 800;
    color: #212529;
    line-height: 1;
}

.reliability-meta {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
}

.dashboard-report-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.report-side-panel {
    position: sticky;
    top: 72px;
}

.report-side-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
}

.report-side-title {
    color: #6c757d;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.report-mode-toggle {
    display: grid;
    gap: 6px;
}

.report-mode-toggle label,
.report-check {
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    padding: 8px 9px;
}

.report-mode-toggle label.active {
    border-color: #ff6b35;
    color: #ff6b35;
    font-weight: 700;
}

.report-section-list {
    display: grid;
    gap: 6px;
}

.report-check {
    font-size: 13px;
}

.technical-responsible-fields {
    display: grid;
    gap: 8px;
}

.technical-responsible-fields label {
    color: #495057;
    display: grid;
    font-size: 12px;
    gap: 3px;
}

.technical-profile-table th:nth-child(2),
.technical-profile-table th:nth-child(3),
.technical-profile-table th:nth-child(4),
.technical-profile-table td:nth-child(2),
.technical-profile-table td:nth-child(3),
.technical-profile-table td:nth-child(4) {
    text-align: center;
    width: 14%;
}

.technical-report {
    display: grid;
    gap: 16px;
}

.technical-cover {
    align-items: center;
    background: #fff;
    border: 1px solid #dee2e6;
    border-left: 5px solid #ff6b35;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
}

.technical-kicker {
    color: #ff6b35;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.technical-cover h3 {
    margin: 2px 0 6px;
}

.technical-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
}

.technical-section h4 {
    color: #ff6b35;
    margin-bottom: 12px;
}

.technical-section h5 {
    font-size: 1rem;
    margin-top: 14px;
}

.technical-footnote {
    color: #6c757d;
    font-size: 11px;
    margin: 8px 0 0;
}

.technical-risk-matrix-section .risk-matrix-table {
    min-width: 620px;
    font-size: 10px;
}

.technical-risk-matrix-section .risk-matrix-scale,
.technical-risk-matrix-section .risk-matrix-effect {
    padding: 5px;
}

.technical-risk-matrix-section .risk-matrix-cell {
    height: 42px;
    padding: 5px 4px;
}

.technical-risk-matrix-section .risk-matrix-scale strong,
.technical-risk-matrix-section .risk-matrix-effect strong {
    font-size: 12px;
}

.technical-risk-matrix-section .risk-matrix-scale small,
.technical-risk-matrix-section .risk-matrix-effect small,
.technical-risk-matrix-section .risk-matrix-legend {
    font-size: 9px;
}

.technical-table th {
    background: #f8f9fa;
    width: 34%;
}

.technical-table.compact th {
    width: auto;
}

.technical-action-plan-table {
    font-size: 10px;
    table-layout: fixed;
}

.technical-action-plan-table th,
.technical-action-plan-table td {
    text-align: center;
    vertical-align: middle;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.technical-action-plan-table th:nth-child(2),
.technical-action-plan-table th:nth-child(3),
.technical-action-plan-table td:nth-child(2),
.technical-action-plan-table td:nth-child(3) {
    text-align: left;
}

.technical-action-item-col {
    width: 4%;
}

.technical-action-focus-col {
    width: 12%;
}

.technical-action-description-col {
    width: 32%;
}

.technical-action-month-col {
    width: 2.2%;
}

.technical-action-owner-col {
    width: 10%;
}

.technical-action-date-col {
    width: 6%;
}

.technical-action-status-col {
    width: 9.6%;
}

.technical-action-plan-table thead tr:nth-child(2) th {
    font-size: 9px;
    line-height: 1;
    padding-left: 1px;
    padding-right: 1px;
}

.technical-signature {
    min-height: 190px;
}

.technical-signature-block {
    margin-top: 72px;
    max-width: 460px;
    text-align: center;
}

.signature-line {
    border-top: 1px solid #212529;
    margin: 0 0 10px;
    width: 100%;
}

.signature-name {
    font-weight: 700;
    margin: 0;
}

.signature-meta,
.signature-date {
    color: #6c757d;
    margin: 4px 0 0;
}

@media (max-width: 768px) {
    .reliability-summary {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-report-layout {
        grid-template-columns: 1fr;
    }

    .report-side-panel {
        position: static;
    }

    .technical-cover {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Ajuste no card para reduzir padding */
.card.fatores-risco-card .card-body {
    padding: 0.75rem; /* Reduzido */
}

.card.fatores-risco-card .card-header {
    padding: 0.5rem 0.75rem; /* Reduzido */
}

.card.fatores-risco-card .card-header h5 {
    font-size: 1.5rem; /* Reduzido */
    margin-bottom: 0;
}

.card.fatores-risco-card .card-header small {
    font-size: 0.9rem; /* Reduzido */
}

/* Estilos para botões de exportação */
.btn-group .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    padding: 0.375rem 1rem;
    font-size: 0.9rem;
}

.btn-group .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-group .btn-success:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group .btn-success:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Ajuste no select de ciclo */
#cycleSelector {
    margin-right: 10px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
}

/* Plano de ação */
.action-plan-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.action-summary-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.action-summary-pill.high {
    background: #f8d7da;
    color: #842029;
}

.action-summary-pill.medium {
    background: #fff3cd;
    color: #664d03;
}

.action-summary-note {
    color: #6c757d;
    font-size: 13px;
}

.action-plan-tools {
    margin-bottom: 16px;
}

.action-plan-tool-card {
    border: 1px solid #dbe4dd;
    border-radius: 12px;
    background: #f8fbf8;
    padding: 14px;
}

.action-plan-tool-card h6 {
    margin-bottom: 6px;
    color: #146c43;
}

.action-plan-month-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.action-plan-month-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid #d8dee3;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
}

.action-plan-editor-actions {
    display: grid;
    gap: 6px;
}

.action-plan-input,
.action-plan-textarea,
.action-status-select {
    min-width: 110px;
}

.action-plan-textarea {
    min-height: 56px;
    resize: vertical;
}

.month-editor-cell {
    min-width: 34px;
}

.month-editor-cell .form-check-input {
    cursor: pointer;
}

.action-plan-table {
    width: 100%;
    min-width: 1320px;
    border-collapse: collapse;
    font-size: 12px;
}

.action-plan-table th,
.action-plan-table td {
    border: 1px solid #cfd4da;
    padding: 8px 6px;
    vertical-align: middle;
    text-align: center;
}

.action-plan-table thead th {
    background: #f1f3f5;
    color: #212529;
    font-weight: 700;
    white-space: nowrap;
}

.action-plan-table .month-cell {
    min-width: 34px;
    font-size: 11px;
    padding: 6px 4px;
}

.action-plan-table .action-item-index {
    font-weight: 700;
}

.action-plan-table .action-focus,
.action-plan-table .action-description {
    text-align: left;
}

.action-plan-table .action-focus {
    font-weight: 600;
    color: #495057;
}

.action-plan-table .action-description {
    color: #343a40;
}

.month-indicator {
    padding: 4px 2px;
    background: #fff;
}

.month-indicator.active {
    background: #e8f5e9;
}

.month-indicator.active span {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: #198754;
}

.action-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.action-status.high {
    background: #f8d7da;
    color: #842029;
}

.action-status.medium {
    background: #fff3cd;
    color: #664d03;
}

.action-status.low {
    background: #d1e7dd;
    color: #0f5132;
}

.action-status.custom {
    background: #e2e3e5;
    color: #41464b;
}

@media (max-width: 768px) {
    .action-plan-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-summary-note {
        font-size: 12px;
    }

    .action-plan-month-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
