body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px; /* Espaço para o menu fixo */
}

.main-container {
    flex: 1;
}

footer {
    margin-top: auto;
}

.navbar {
    border-bottom: 1px solid #000;
}

.navbar-brand {
    color: #fff !important;
    font-weight: 600;
}

.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-header {
    font-weight: 600;
    background-color: #f1f5f9;
}

.btn-primary {
    background-color: #0d6efd;
}

.btn-success {
    background-color: #198754;
}

.btn-danger {
    background-color: #dc3545;
}

.table-responsive {
    overflow-x: auto;
}

.preview-image {
    max-width: 100%;
    max-height: 200px;
    margin-top: 10px;
}

.comprovante-thumbnail {
    max-width: 100px;
    max-height: 100px;
    cursor: pointer;
}

#map {
    height: 300px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
}

.coordenadas {
    font-size: 0.8rem;
    color: #6c757d;
}

.item-despesa {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #0d6efd;
    animation: spin 1s ease-in-out infinite;
}

.status-badge {
    font-size: 0.9rem;
    padding: 5px 10px;
}

.deslocamentos-container {
    border-left: 3px solid #0d6efd;
    padding-left: 15px;
    margin-left: 10px;
}

.deslocamento-item {
    position: relative;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.deslocamento-item::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0d6efd;
}

.timeline-connector {
    position: absolute;
    left: -15px;
    top: 27px;
    bottom: -15px;
    width: 2px;
    background-color: #dee2e6;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media print {
    .no-print {
        display: none !important;
    }

    .print-break-after {
        page-break-after: always;
    }

    .print-full-width {
        width: 100% !important;
    }

    body {
        padding-top: 0;
    }
}
