/* ============================================
   LOGÍSTICA - GESTÃO DE TRANSPORTADORAS E VEÍCULOS
   Versão 14.1.0 - Parte 6: Design Modernizado
   ============================================ */

.logistica-page {
    padding: 0;
}

/* ============================================
   TABS
   ============================================ */
.logistica-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.02) 100%);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.03) 100%);
}

/* ============================================
   TOOLBAR
   ============================================ */
.logistica-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.logistica-toolbar-left {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.logistica-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.logistica-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.logistica-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.02) 0%, rgba(255, 255, 255, 1) 100%);
}

.logistica-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    transition: color 0.3s ease;
}

.logistica-search input:focus + i {
    color: var(--primary);
}

.logistica-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.25);
}

/* ============================================
   CARDS DE LOGÍSTICA
   ============================================ */
.logistica-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.logistica-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.logistica-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #0056b3 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logistica-card:hover {
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.2);
    transform: translateY(-6px);
    border-color: var(--primary);
}

.logistica-card:hover::before {
    opacity: 1;
}

.logistica-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.logistica-info {
    flex: 1;
}

.logistica-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
}

.logistica-card:hover .logistica-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
}

.logistica-nome {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
    line-height: 1.3;
}

.logistica-tipo {
    font-size: 13px;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.03) 100%);
    border-radius: 6px;
}

.logistica-tipo i {
    color: var(--primary);
}

.logistica-status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.logistica-status-badge.ativo {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.logistica-status-badge.inativo {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.logistica-detalhes {
    margin: 16px 0;
    padding: 16px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

.logistica-detalhes-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    padding: 6px 0;
    transition: all 0.2s ease;
}

.logistica-detalhes-item:last-child {
    margin-bottom: 0;
}

.logistica-detalhes-item:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.logistica-detalhes-item i {
    width: 20px;
    color: var(--primary);
    font-size: 16px;
}

.logistica-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.logistica-stat {
    text-align: center;
    padding: 14px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.logistica-stat:hover {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
}

.logistica-stat-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.logistica-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
}

.logistica-stat-value.destaque {
    background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logistica-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #f0f0f0;
}

.btn-action {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
}

.btn-action:hover {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
}

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

/* ============================================
   DESPESAS
   ============================================ */
.despesas-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.summary-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #0056b3 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.summary-card:hover::before {
    opacity: 1;
}

.summary-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.summary-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.summary-card:hover .summary-icon {
    transform: scale(1.1) rotate(5deg);
}

.summary-icon.total {
    background: linear-gradient(135deg, var(--primary) 0%, #0056b3 100%);
    color: white;
}

.summary-icon.mes {
    background: linear-gradient(135deg, #34C759 0%, #28a745 100%);
    color: white;
}

.summary-icon.categoria {
    background: linear-gradient(135deg, #FF9500 0%, #e67e00 100%);
    color: white;
}

.summary-icon.media {
    background: linear-gradient(135deg, #AF52DE 0%, #8e44ad 100%);
    color: white;
}

.summary-info h3 {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.summary-value {
    font-size: 26px;
    font-weight: 700;
    color: #1d1d1f;
}

.summary-subtitle {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* ============================================
   TABELA DE DESPESAS
   ============================================ */
.despesas-table-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow-x: auto;
}

.despesas-table {
    width: 100%;
    border-collapse: collapse;
}

.despesas-table thead {
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
}

.despesas-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid var(--primary);
}

.despesas-table td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #1d1d1f;
    transition: background 0.2s ease;
}

.despesas-table tbody tr {
    transition: all 0.2s ease;
}

.despesas-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(255, 255, 255, 1) 100%);
    transform: scale(1.01);
}

.despesas-table tbody tr:last-child td {
    border-bottom: none;
}

.categoria-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.categoria-badge.operacional {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.categoria-badge.marketing {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.categoria-badge.administrativo {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.categoria-badge.transporte {
    background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
    color: #004085;
}

.categoria-badge.manutencao {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.categoria-badge.outros {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    color: #383d41;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(10px);
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    color: #666;
}

.modal-close:hover {
    background: linear-gradient(135deg, #ff3b30 0%, #d62828 100%);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.modal-body {
    padding: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.form-label.required::after {
    content: "*";
    color: #FF3B30;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.02) 0%, rgba(255, 255, 255, 1) 100%);
}

.form-input.error {
    border-color: #FF3B30;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.02) 0%, rgba(255, 255, 255, 1) 100%);
}

.modal-footer {
    padding: 20px 28px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background: white;
    border-radius: 0 0 20px 20px;
    backdrop-filter: blur(10px);
}

.btn-secondary {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
}

/* ============================================
   ESTADO VAZIO
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.02) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 16px;
    border: 2px dashed #e0e0e0;
}

.empty-state i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    color: #555;
    margin-bottom: 12px;
    font-weight: 700;
}

.empty-state p {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .logistica-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .despesas-summary {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .logistica-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    .logistica-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .logistica-toolbar-left {
        flex-direction: column;
    }

    .logistica-search {
        max-width: 100%;
    }

    .logistica-search input {
        font-size: 16px; /* Previne zoom no iOS */
    }

    .logistica-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Card compacto em 2 colunas */
    .logistica-card {
        padding: 12px 10px;
        border-radius: 12px;
    }

    .logistica-card-header {
        margin-bottom: 8px;
    }

    .logistica-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
        margin-bottom: 6px;
    }

    .logistica-nome {
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 3px;
        line-height: 1.2;
    }

    .logistica-tipo {
        font-size: 10px;
        padding: 2px 6px;
    }

    .logistica-status-badge {
        font-size: 10px;
        padding: 3px 7px;
    }

    /* Ocultar detalhes e stats de custo/prazo — mostrar apenas cobertura */
    .logistica-detalhes,
    .logistica-stats {
        display: none;
    }

    /* Área de atendimento compacta */
    .logistica-area-atendimento {
        display: block;
        padding: 8px !important;
        margin: 8px 0 !important;
        border-radius: 7px !important;
        font-size: 11px;
    }

    .logistica-area-atendimento > div:first-child {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }

    .logistica-area-atendimento > div:nth-child(2) {
        gap: 8px !important;
        font-size: 10px !important;
        flex-wrap: wrap;
    }

    /* Botões de ação compactos */
    .logistica-actions {
        flex-direction: row;
        gap: 6px;
        margin-top: 8px;
    }

    .logistica-actions .btn-action {
        flex: 1;
        padding: 7px 4px;
        font-size: 11px;
        gap: 3px;
    }

    .logistica-actions .btn-action i {
        font-size: 11px;
    }

    .despesas-summary {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 20px;
        border-radius: 16px 16px 0 0;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 16px 20px;
        flex-direction: column-reverse;
        border-radius: 0 0 16px 16px;
    }

    .modal-footer .btn-primary,
    .modal-footer .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .logistica-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .despesas-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .summary-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
    .logistica-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 8px;
    }

    .filter-btn {
        font-size: 13px;
        padding: 10px 12px;
    }

    .logistica-card {
        padding: 16px;
    }

    .logistica-nome {
        font-size: 16px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

    .modal-title {
        font-size: 18px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }

    .logistica-stat-value {
        font-size: 16px;
    }

    .summary-value {
        font-size: 22px;
    }

    .logistica-grid {
        gap: 12px;
    }
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */

/* Reduzir animações para usuários sensíveis */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .logistica-card:hover,
    .btn-action:hover,
    .filter-btn:hover,
    .summary-card:hover {
        transform: none;
    }
}

/* Melhor contraste para leitores de tela */
@media (prefers-contrast: high) {
    .logistica-card {
        border: 2px solid #000;
    }

    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }

    .filter-btn.active {
        background: #000;
        border: 2px solid #000;
    }
}

/* Estilos de impressão */
@media print {
    .logistica-toolbar,
    .logistica-tabs,
    .logistica-actions,
    .btn-action,
    .btn-primary,
    .modal-close,
    .filter-btn {
        display: none !important;
    }

    .logistica-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .logistica-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        position: relative;
        background: white;
    }

    .modal-content {
        box-shadow: none;
        max-height: none;
    }
}
