/* Estilos para a página de Boletim */

.tabs-container-custom {
    background-color: #f5f5f5;
    border-radius: 8px 0px;
    padding: 20px;
}

.custom-tabs {
    border-bottom: none;
    margin-bottom: 20px;
}

.tab-custom {
    background: none;
    border: none;
    padding: 12px 24px;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-custom:hover {
    color: #683D9E;
    background-color: rgba(104, 61, 158, 0.1);
}

.tab-custom.active {
    color: #683D9E;
    border-bottom-color: #683D9E;
    background-color: rgba(104, 61, 158, 0.1);
}

.tab-underline-wrapper {
    position: relative;
    height: 2px;
    background-color: #e9ecef;
    margin-bottom: 20px;
}

.tab-underline-custom {
    position: absolute;
    height: 2px;
    background-color: #683D9E;
    transition: all 0.3s ease;
    top: 0;
}

.status-box {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #1976d2;
    font-weight: 500;
}

.box-parcela {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.box-parcela:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-detalhes {
    background-color: #683D9E;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-detalhes:hover {
    background-color: #5a2d8a;
    transform: translateY(-1px);
}

.btn-download {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-download:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.documento-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.documento-header {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #683D9E;
}

.documento-header h4 {
    color: #683D9E;
    font-weight: 600;
    margin-bottom: 10px;
}

.documento-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
}

.documento-summary {
    background-color: #e3f2fd;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #1976d2;
}

.documento-table {
    margin-bottom: 0;
    font-size: 14px;
}

.documento-table th {
    background-color: #495057;
    border-color: #495057;
    color: white;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    padding: 12px 8px;
    font-size: 13px;
}

.documento-table td {
    vertical-align: middle;
    text-align: center;
    border-color: #dee2e6;
    padding: 10px 8px;
    font-size: 12px;
}

.documento-table tbody tr:hover {
    background-color: #f8f9fa;
}

.documento-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.documento-table tbody tr:nth-child(odd) {
    background-color: white;
}

/* Status badges */
.badge {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
}

.bg-success {
    background-color: #28a745 !important;
    color: white !important;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

.bg-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

.status-encerrado {
    background-color: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-em-execucao {
    background-color: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-pendente {
    background-color: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Responsividade */
@media (max-width: 768px) {
    .btn-detalhes,
    .btn-download {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box-parcela {
    animation: fadeIn 0.5s ease-out;
}

/* Estados de loading */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* PDF generation specific styles */
.pdf-container {
    width: 210mm;
    min-height: 297mm;
    background: white;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.pdf-title {
    text-align: center;
    color: #6f42c1;
    margin-bottom: 20px;
    border-bottom: 2px solid #6f42c1;
    padding-bottom: 10px;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.pdf-table th,
.pdf-table td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: left;
    font-size: 10px;
}

.pdf-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Print/PDF generation - Hide mobile cards, show desktop table */
@media print {
    .mobile-cards-only {
        display: none !important;
    }
    .desktop-table-only {
        display: block !important;
    }
}

/* Additional rule to ensure table is visible in PDF capture */
.capturing-pdf .mobile-cards-only {
    display: none !important;
}

.capturing-pdf .desktop-table-only {
    display: block !important;
}
