/* CSS Reset & Variáveis Globais */
:root {
    --bg-primary: #0a0f1d;
    --bg-secondary: #111827;
    --bg-card: rgba(23, 30, 49, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Cores de Destaque */
    --accent-primary: #8b5cf6; /* Roxo */
    --accent-secondary: #3b82f6; /* Azul */
    --accent-green: #10b981; /* Verde */
    --accent-red: #ef4444; /* Vermelho */
    --accent-yellow: #f59e0b; /* Amarelo */
    
    /* Gradientes */
    --gradient-glow: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-success: linear-gradient(135deg, #059669, #10b981);
    --gradient-danger: linear-gradient(135deg, #dc2626, #ef4444);
    
    /* Sombras e Efeitos */
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.35);
    --blur-glass: 16px;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar Customizado */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Utilidades Comuns */
.hidden {
    display: none !important;
}
.w-full {
    width: 100%;
}
.mt-3 {
    margin-top: 0.75rem;
}
.mt-4 {
    margin-top: 1rem;
}
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.font-bold {
    font-weight: 700;
}
.text-green {
    color: var(--accent-green) !important;
}
.text-red {
    color: var(--accent-red) !important;
}

/* ==========================================================================
   TELA DE LOGIN (PROTEÇÃO DE ACESSO)
   ========================================================================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1e1b4b 0%, #020617 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1.5rem;
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-premium), 0 0 40px rgba(99, 102, 241, 0.15);
    animation: fadeIn 0.5s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-glow);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.25rem;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.logo-icon i {
    width: 30px;
    height: 30px;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
}

.btn-icon {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    color: var(--text-primary);
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}

input:focus,
select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
    background: rgba(17, 24, 39, 0.9);
}

.error-msg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-red);
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-red);
}

.btn-primary {
    background: var(--gradient-glow);
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ==========================================================================
   LAYOUT PRINCIPAL DO APP
   ========================================================================== */
.app-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* SIDEBAR */
.app-sidebar {
    width: 380px;
    min-width: 380px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: var(--gradient-glow);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.brand h1 {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.badge-premium {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-glow);
    padding: 2px 6px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.btn-icon-danger {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-icon-danger:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.config-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition-smooth);
}

.config-section:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.section-title i {
    width: 18px;
    height: 18px;
    color: var(--accent-secondary);
}

.section-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Roteiro & Nós da Viagem */
.itinerary-builder {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.route-node {
    display: flex;
    gap: 0.75rem;
    position: relative;
}

.node-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.8rem;
}

.node-icon i {
    width: 16px;
    height: 16px;
}

.node-input-group {
    flex: 1;
    position: relative;
}

.node-input-group label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1f2937;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    margin-top: 4px;
}

.autocomplete-item {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.autocomplete-item:hover {
    background-color: var(--accent-primary);
    color: white;
}

/* Linha conetora entre paradas */
.route-node:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 2.8rem;
    bottom: -1rem;
    width: 2px;
    border-left: 2px dashed rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.btn-secondary-sm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-left: 1.75rem;
    transition: var(--transition-smooth);
}

.btn-secondary-sm:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.btn-icon-remove {
    position: absolute;
    right: 0.5rem;
    top: 1.8rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-icon-remove:hover {
    color: var(--accent-red);
}

/* Tooltip */
.info-tooltip {
    position: relative;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #1f2937;
    color: #fff;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    pointer-events: none;
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Hospedagem de Paradas */
.stop-lodging-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.stop-lodging-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

/* Slider Customizado */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #1f2937;
    outline: none;
    margin-top: 0.5rem;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
    transition: transform 0.1s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Itens Extras Lista */
.extra-cost-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

/* Footer Sidebar */
.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 15, 29, 0.4);
}

.btn-text-danger {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-smooth);
    margin: 0 auto;
}

.btn-text-danger:hover {
    color: var(--accent-red);
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL (DASHBOARD & MAPA)
   ========================================================================== */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    background-color: var(--bg-primary);
}

/* CARD DO MAPA */
.map-card {
    height: 380px;
    min-height: 380px;
    width: 100%;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

#map {
    height: 100%;
    width: 100%;
    background: #0f172a;
}

/* Customização Leaflet Dark Mode Tiles */
.leaflet-container {
    background: #0d1117 !important;
}

.map-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* SEÇÃO DASHBOARD */
.dashboard-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* GRID DE MÉTRICAS */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: var(--transition-smooth);
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.metric-card.highlight {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.3);
}

.metric-card.highlight::before {
    background: var(--gradient-glow);
}

.metric-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-secondary);
}

.metric-card.highlight .metric-icon {
    background: var(--gradient-glow);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-info h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 0.25rem;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

/* BANNER DE ALERTA DE MANUTENÇÃO */
.alert-banner {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    align-items: center;
    animation: fadeIn 0.4s ease-out;
}

.alert-banner.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-left: 4px solid var(--accent-yellow);
}

.alert-icon {
    color: var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.alert-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* DETALHES GRID */
.details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.2px;
}

/* Gráfico de Rosca Dinâmico via SVG */
.chart-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
    flex: 1;
}

.svg-chart-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.donut-chart {
    transform: rotate(-90deg);
}

.donut-segment {
    transition: stroke-dasharray 0.5s ease-in-out;
}

.chart-center-val {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.center-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.center-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 130px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Cronograma / Linha do tempo */
.timeline-container {
    flex: 1;
    overflow-y: auto;
    max-height: 320px;
    padding-right: 0.5rem;
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.timeline-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0;
}

.timeline-empty i {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.25rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.45rem;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-secondary);
    border: 2px solid var(--bg-primary);
}

.timeline-item.finish::before {
    background: var(--accent-red);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.timeline-body {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    margin-top: 0.35rem;
}

.btn-primary-sm {
    background: var(--gradient-glow);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.btn-primary-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

/* ==========================================================================
   ANIMAÇÕES E RESPONSIVIDADE
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Customização de Elementos do Mapa */
.custom-pin {
    background: var(--accent-secondary);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Responsividade Geral */
@media (max-width: 1024px) {
    .app-wrapper {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }
    
    .app-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .app-main {
        height: auto;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ESTILOS DE IMPRESSÃO (PDF EXPORT)
   ========================================================================== */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
    }
    
    .app-sidebar,
    .map-card,
    #btn-logout,
    #btn-export-pdf,
    .sidebar-footer {
        display: none !important;
    }
    
    .app-wrapper {
        display: block !important;
        height: auto !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    .app-main {
        display: block !important;
        overflow: visible !important;
        padding: 0 !important;
    }
    
    .dashboard-section {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .metric-card {
        border: 1px solid #ddd !important;
        background: #fafafa !important;
        color: #000 !important;
        box-shadow: none !important;
        display: inline-block !important;
        width: 23% !important;
        margin-right: 2% !important;
        vertical-align: top;
        padding: 10px !important;
        border-radius: 4px !important;
    }
    
    .metric-card.highlight {
        background: #f0f0f0 !important;
        border: 2px solid #000 !important;
    }
    
    .metric-info h2,
    .metric-info h3 {
        color: #000 !important;
        -webkit-text-fill-color: initial !important;
        background: none !important;
        font-size: 14pt !important;
    }
    
    .details-grid {
        display: block !important;
        margin-top: 30px;
    }
    
    .card {
        border: 1px solid #ddd !important;
        background: #fff !important;
        box-shadow: none !important;
        margin-bottom: 20px;
        page-break-inside: avoid;
        padding: 15px !important;
    }
    
    .timeline::before {
        background: #ccc !important;
    }
    
    .timeline-item::before {
        border-color: #fff !important;
        background: #000 !important;
    }
    
    .timeline-body {
        border: 1px solid #ddd !important;
        background: #f9f9f9 !important;
        color: #333 !important;
    }
    
    /* Adiciona cabeçalho de impressão */
    body::before {
        content: "RELATÓRIO DE PLANEJAMENTO DE VIAGEM";
        display: block;
        font-size: 18pt;
        font-weight: bold;
        text-align: center;
        margin-bottom: 20px;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
    }
}
