/* Estilos personalizados para a aplicação Ahnur */

/* === Estilos Globais === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.datatable-full-width {
    width: 100% !important;
}

/* === Estilos da Página de Login (index.html) === */
.landing-page {
    background-image: url('https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?q=80&w=2574&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.landing-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    min-height: 100vh;
}

.landing-content {
    min-height: 80vh;
}

#loginModal .login-card-body {
    border-radius: .25rem;
}

/* === Estilos da Página de Detalhe do Processo e Portal do Cliente === */
.post {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    padding-bottom: 15px;
}
.post:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.dl-horizontal dt {
    font-weight: 500;
}
.timeline-steps {
    display: flex;
    justify-content: space-between;
    text-align: center;
}
.timeline-step {
    flex: 1;
    position: relative;
}
.timeline-step .step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    line-height: 40px;
    font-size: 1.2rem;
    margin: 0 auto 10px auto;
    border: 2px solid #e9ecef;
}
.timeline-step.completed .step-icon {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}
.timeline-step.active .step-icon {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}
.timeline-step .step-title {
    font-weight: 500;
}
#pdf-viewer {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    text-align: center;
    overflow: auto;
}
.ocr-debug-output {
    font-size: 0.8em;
    background-color: #f3f4f6;
}

/* === Estilos de Formulários === */
#nationality, #representative, .select2-full-width {
    width: 100% !important; /* Important para sobrepor o Select2 */
}
#phoneCode {
    width: 100px !important;
}

/* === Estilos da Dashboard === */
a.kpi-link, a.kpi-link:hover {
    color: inherit;
    text-decoration: none;
}
.dashboard-chart-canvas {
    min-height: 250px;
    height: 250px;
    max-height: 250px;
    max-width: 100%;
}
.deadlines-list-container {
    max-height: 250px;
    overflow-y: auto;
}

/* === Estilos do Portal do Cliente === */
.portal-body {
    background-color: #f4f6f9;
}
.portal-timeline .timeline-step .step-title {
    font-size: 0.9rem;
}

/* === Estilos do Modal de Mapeamento === */
#mapping-viewer-container {
    background-color: #525659; /* Cor de fundo escura para contraste */
    border: 1px solid #ccc;
    max-height: 75vh; /* Altura máxima de 75% da tela */
    overflow: auto; /* Adiciona barras de rolagem se o conteúdo for maior */
    position: relative; /* Necessário para o posicionamento do canvas de desenho */
}

#mapping-viewer-container canvas {
    margin: 0 auto; /* Centraliza o canvas horizontalmente */
    display: block;
}
