/* ===== LOGISTICA PAGE STYLES ===== */

/* ===== CUSTOM SCROLLBAR - Elegant Style ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary, #141814);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold, #c4b896);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary, #b5a879);
}

::-webkit-scrollbar-corner {
    background: var(--bg-secondary, #141814);
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold, #c4b896) var(--bg-secondary, #141814);
}

/* Tabs Container */
.tabs-container {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px;
    background: rgba(10, 13, 10, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}

.tabs-container .tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tabs-container .tab-btn:hover {
    background: rgba(139, 138, 92, 0.1);
    color: var(--text-primary);
}

.tabs-container .tab-btn.active {
    background: var(--gradient-military);
    color: var(--bg-primary);
}

.tabs-container .tab-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Filters Bar */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.filter-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.filter-btn.active {
    background: var(--gradient-military);
    border-color: var(--accent-gold);
    color: var(--bg-primary);
}

.add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--gradient-military);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 138, 92, 0.4);
}

.add-btn svg {
    width: 18px;
    height: 18px;
}

/* Export Excel Button */
.btn-export-excel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #1d6f42, #217346);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(29, 111, 66, 0.3);
}

.btn-export-excel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(29, 111, 66, 0.5);
    background: linear-gradient(135deg, #217346, #28a55f);
}

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

.btn-export-excel svg {
    width: 18px;
    height: 18px;
}

/* Status Summary */
.status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-card.disponivel {
    border-left: 3px solid var(--success);
}

.status-card.empregada {
    border-left: 3px solid var(--warning);
}

.status-card.manutencao {
    border-left: 3px solid var(--danger);
}

.status-card.total {
    border-left: 3px solid var(--accent-gold);
}

.status-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-card.disponivel .status-icon {
    background: rgba(106, 114, 88, 0.2);
    color: var(--success);
}

.status-card.empregada .status-icon {
    background: rgba(181, 168, 121, 0.2);
    color: var(--warning);
}

.status-card.manutencao .status-icon {
    background: rgba(139, 90, 90, 0.2);
    color: var(--danger);
}

.status-card.total .status-icon {
    background: rgba(196, 184, 150, 0.2);
    color: var(--accent-gold);
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.status-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Viaturas Grid - Cards estilo Ficha Militar */
.viaturas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.viatura-card {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 35, 30, 0.95) 0%, rgba(15, 20, 15, 0.98) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(180, 165, 91, 0.3);
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(180, 165, 91, 0.1);
}

.viatura-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(180, 165, 91, 0.1), transparent);
    transition: left 0.5s ease;
}

.viatura-card:hover::after {
    left: 100%;
}

.viatura-card:hover {
    transform: translateY(-6px);
    border-color: rgba(180, 165, 91, 0.5);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(180, 165, 91, 0.2), inset 0 1px 0 rgba(180, 165, 91, 0.2);
}

/* Header da ficha */
.viatura-card-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 16px;
    border-bottom: 1px solid rgba(180, 165, 91, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.viatura-card-title {
    font-size: 9px;
    font-weight: 700;
    color: rgba(180, 165, 91, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.viatura-tipo {
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.viatura-tipo.leve {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.viatura-tipo.pesada {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.viatura-tipo.equipamento {
    background: rgba(139, 138, 92, 0.15);
    color: var(--accent-gold);
}

/* Conteudo do card */
.viatura-card-content {
    padding: 16px;
    display: flex;
    gap: 16px;
}

/* Foto da viatura */
.viatura-photo-section {
    position: relative;
    flex-shrink: 0;
}

.viatura-photo-frame {
    position: relative;
    padding: 2px;
    background: var(--gradient-military);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.viatura-photo {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: rgba(0, 0, 0, 0.3);
}

.viatura-photo-placeholder {
    width: 90px;
    height: 70px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viatura-photo-placeholder svg {
    width: 28px;
    height: 28px;
    color: rgba(180, 165, 91, 0.4);
}

/* Badge de status na foto */
.viatura-status-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid;
    white-space: nowrap;
}

.viatura-status-badge.disponivel {
    background: rgba(76, 140, 87, 0.9);
    border-color: #4c8c57;
    color: white;
}

.viatura-status-badge.empregada {
    background: rgba(70, 110, 150, 0.9);
    border-color: #466e96;
    color: white;
}

.viatura-status-badge.manutencao {
    background: rgba(160, 82, 82, 0.9);
    border-color: #a05252;
    color: white;
}

/* Info da viatura */
.viatura-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.viatura-main-info {
    border-bottom: 1px solid rgba(180, 165, 91, 0.15);
    padding-bottom: 10px;
}

.viatura-marca {
    font-size: 9px;
    font-weight: 600;
    color: rgba(180, 165, 91, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.viatura-modelo {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Detalhes em lista */
.viatura-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.viatura-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.viatura-detail-icon {
    width: 24px;
    height: 24px;
    background: rgba(180, 165, 91, 0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.viatura-detail-icon svg {
    width: 12px;
    height: 12px;
    color: var(--accent-gold);
}

.viatura-detail-content {
    flex: 1;
    min-width: 0;
}

.viatura-detail-label {
    font-size: 8px;
    color: rgba(180, 165, 91, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.viatura-detail-value {
    font-size: 11px;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viatura-chassi-value {
    font-size: 9px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Footer do card */
.viatura-card-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 16px;
    border-top: 1px solid rgba(180, 165, 91, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viatura-placa {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.viatura-ano {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

/* Loading Placeholder */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
    grid-column: 1 / -1;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.empty-state p {
    font-size: 13px;
}

/* Coming Soon */
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 80px 20px;
    text-align: center;
}

.coming-soon svg {
    color: var(--accent-primary);
    opacity: 0.6;
}

.coming-soon h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.coming-soon p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(139, 90, 90, 0.2);
    border-color: var(--danger);
    color: var(--danger);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 13, 10, 0.5);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 138, 92, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

/* Status Modal */
.modal-status {
    max-width: 400px;
}

.viatura-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(139, 138, 92, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

.viatura-info-header .viatura-placa {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
}

.viatura-info-header .viatura-modelo {
    font-size: 14px;
    color: var(--text-secondary);
}

.status-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

.status-option.active {
    border-color: var(--accent-gold);
    background: rgba(139, 138, 92, 0.15);
}

.status-option.disponivel:hover,
.status-option.disponivel.active {
    border-color: var(--success);
    background: rgba(106, 114, 88, 0.15);
    color: var(--success);
}

.status-option.empregada:hover,
.status-option.empregada.active {
    border-color: var(--warning);
    background: rgba(181, 168, 121, 0.15);
    color: var(--warning);
}

.status-option.manutencao:hover,
.status-option.manutencao.active {
    border-color: var(--danger);
    background: rgba(139, 90, 90, 0.15);
    color: var(--danger);
}

.status-option svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.status-option span {
    font-size: 14px;
    font-weight: 600;
}

.activity-fields {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Buttons */
.btn-primary {
    padding: 12px 24px;
    background: var(--gradient-military);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 138, 92, 0.4);
}

.btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-danger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: rgba(139, 90, 90, 0.15);
    border: 1px solid var(--danger);
    border-radius: 8px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-gold);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

/* Responsive */
@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .add-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

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

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

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

    .modal-content {
        max-height: 85vh;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

    .modal-footer button {
        width: 100%;
    }

    .btn-danger {
        justify-content: center;
        margin-right: 0;
        margin-top: 8px;
    }

    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .status-summary {
        grid-template-columns: 1fr;
    }

    .status-card {
        padding: 14px;
    }

    .status-count {
        font-size: 20px;
    }

    .tabs-container .tab-btn {
        padding: 10px 14px;
        font-size: 12px;
    }

    .tabs-container .tab-btn svg {
        width: 16px;
        height: 16px;
    }

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

/* ===== MODAL DETALHES DA VIATURA ===== */

.modal-viatura-form {
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) rgba(0, 0, 0, 0.2);
}

.modal-viatura-form::-webkit-scrollbar {
    width: 6px;
}

.modal-viatura-form::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.modal-viatura-form::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
}

.modal-viatura-form::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

.modal-viatura-details {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-viatura-details::-webkit-scrollbar {
    display: none;
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.modal-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: rgba(180, 165, 91, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-icon.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Viatura ID Card - Modal */
.viatura-details-body {
    padding: 20px;
}

.viatura-id-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.viatura-id-card .id-card-header {
    background: linear-gradient(135deg, rgba(180, 165, 91, 0.15) 0%, rgba(180, 165, 91, 0.05) 100%);
    border-bottom: 2px solid var(--accent-gold);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.viatura-id-card .id-card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.id-card-tipo {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.id-card-tipo.leve {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.id-card-tipo.pesada {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.id-card-tipo.equipamento {
    background: rgba(139, 138, 92, 0.15);
    color: var(--accent-gold);
}

.viatura-id-card .id-card-content {
    padding: 20px;
    display: flex;
    gap: 20px;
}

.viatura-id-card .id-card-photo-section {
    position: relative;
    flex-shrink: 0;
}

.viatura-id-card .id-card-photo-frame {
    width: 140px;
    height: 105px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--accent-gold);
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viatura-id-card .id-card-photo-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(180, 165, 91, 0.3);
}

.viatura-id-card .id-card-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viatura-id-card .id-card-photo-frame svg {
    color: rgba(180, 165, 91, 0.4);
}

.id-card-status-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.id-card-status-badge.disponivel {
    background: #4c8c57;
    color: white;
}

.id-card-status-badge.empregada {
    background: #466e96;
    color: white;
}

.id-card-status-badge.manutencao {
    background: #a05252;
    color: white;
}

.viatura-id-card .id-card-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.viatura-id-card .id-card-main-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.id-card-marca {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.id-card-modelo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1;
}

.id-card-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.id-card-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(180, 165, 91, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent-gold);
}

.id-card-detail-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.id-card-detail-content {
    flex: 1;
    min-width: 0;
}

.id-card-detail-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.id-card-detail-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}

.id-card-chassi {
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.viatura-id-card .id-card-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.id-card-footer-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.id-card-footer-label {
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.id-card-footer-value {
    font-size: 11px;
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Status Action Buttons */
.status-action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.btn-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
}

.btn-status:hover {
    transform: translateY(-2px);
}

.btn-status.active {
    transform: translateY(-2px);
}

.btn-status-disponivel:hover,
.btn-status-disponivel.active {
    border-color: #4c8c57;
    background: rgba(76, 140, 87, 0.15);
    color: #5ca86a;
    box-shadow: 0 4px 12px rgba(76, 140, 87, 0.3);
}

.btn-status-empregada:hover,
.btn-status-empregada.active {
    border-color: #466e96;
    background: rgba(70, 110, 150, 0.15);
    color: #5a88b0;
    box-shadow: 0 4px 12px rgba(70, 110, 150, 0.3);
}

.btn-status-manutencao:hover,
.btn-status-manutencao.active {
    border-color: #a05252;
    background: rgba(160, 82, 82, 0.15);
    color: #c06a6a;
    box-shadow: 0 4px 12px rgba(160, 82, 82, 0.3);
}

/* Manutencao Section */
.manutencao-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.manutencao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.manutencao-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.btn-add-manutencao {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--gradient-military);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-manutencao:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 138, 92, 0.4);
}

.manutencao-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 16px;
}

.manutencao-list::-webkit-scrollbar {
    width: 6px;
}

.manutencao-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.manutencao-list::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
}

.manutencao-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: var(--text-muted);
    text-align: center;
}

.manutencao-empty svg {
    opacity: 0.5;
}

.manutencao-empty p {
    font-size: 13px;
}

.manutencao-item {
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border-left: 4px solid;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

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

.manutencao-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.manutencao-item.preventiva {
    border-left-color: #4ade80;
}

.manutencao-item.corretiva {
    border-left-color: #ef4444;
}

.manutencao-item.revisao {
    border-left-color: #3b82f6;
}

.manutencao-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.manutencao-item-tipo {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.manutencao-item.preventiva .manutencao-item-tipo {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.manutencao-item.corretiva .manutencao-item-tipo {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.manutencao-item.revisao .manutencao-item-tipo {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.manutencao-item-date {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.manutencao-item-descricao {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.manutencao-item-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--text-muted);
}

.manutencao-item-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.manutencao-item-details strong {
    color: var(--text-secondary);
}

/* Modal Manutencao */
.modal-manutencao {
    max-width: 500px;
}

/* Modal Small (for status modals) */
.modal-small {
    max-width: 420px;
}

.modal-small .modal-header {
    padding: 16px 20px;
}

.modal-small .modal-header h3 {
    font-size: 16px;
}

.modal-small .modal-body {
    padding: 20px;
}

.modal-small .form-group {
    margin-bottom: 16px;
}

.modal-small .form-group:last-child {
    margin-bottom: 0;
}

.modal-small .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-small .form-group input,
.modal-small .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(10, 13, 10, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.modal-small .form-group input:focus,
.modal-small .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.modal-small .form-group input::placeholder,
.modal-small .form-group textarea::placeholder {
    color: var(--text-muted);
}

.modal-small .modal-footer {
    padding: 16px 20px;
    gap: 10px;
}

/* Photo Upload Section */
.photo-upload-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.photo-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.photo-upload-container {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.viatura-photo-preview {
    width: 140px;
    height: 100px;
}

.photo-preview-box {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: rgba(180, 165, 91, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-preview-box:hover {
    border-color: var(--accent-gold);
    background: rgba(180, 165, 91, 0.1);
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
}

.photo-placeholder span {
    font-size: 11px;
    text-align: center;
    padding: 0 8px;
}

.photo-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.btn-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-photo:hover {
    background: rgba(180, 165, 91, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.btn-photo.btn-remove {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-photo.btn-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* Form Section */
.form-section {
    margin-bottom: 16px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Responsive Modal Details */
@media (max-width: 768px) {
    .modal-viatura-details {
        max-width: 95vw;
        margin: 10px;
    }

    .viatura-id-card .id-card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .viatura-id-card .id-card-photo-frame {
        width: 160px;
        height: 120px;
    }

    .viatura-id-card .id-card-info-section {
        width: 100%;
    }

    .id-card-modelo {
        font-size: 20px;
    }

    .id-card-details-grid {
        grid-template-columns: 1fr;
    }

    .status-action-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn-status {
        flex-direction: row;
        padding: 14px 16px;
    }

    .viatura-id-card .id-card-footer {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .photo-upload-container {
        flex-direction: column;
        align-items: center;
    }

    .viatura-photo-preview {
        width: 160px;
        height: 110px;
    }

    .photo-buttons {
        width: 100%;
    }
}

/* ===== SUB-TABS (dentro de Cia E Ap) ===== */
.sub-tabs-container {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    width: fit-content;
}

.sub-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.sub-tab-btn:hover {
    background: rgba(180, 165, 91, 0.1);
    color: var(--text-primary);
}

.sub-tab-btn.active {
    background: var(--gradient-military);
    color: var(--bg-primary);
}

.sub-tab-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sub-tab-badge {
    background: rgba(70, 110, 150, 0.9);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.sub-tab-btn.active .sub-tab-badge {
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

/* Badge pulse animation for new vales */
.badge-pulse {
    animation: badgePulse 0.5s ease-in-out 3;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); background: #dc3545; }
}

/* Role badges above tabs */
.sub-tab-role-badge {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 13px;
    margin-left: -2px;
}

.role-cia {
    background: #1a6b65;
    color: #b0fff8;
    border: 1px solid #4ecdc4;
}

.role-s4 {
    background: #6b5a10;
    color: #ffe680;
    border: 1px solid #f0c040;
}

/* Sub-tab Content */
.sub-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.sub-tab-content.active {
    display: block;
}

/* ===== APOIOS TAB ===== */
.apoios-header {
    margin-bottom: 20px;
}

.apoios-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.apoios-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.apoios-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== APOIOS CALENDAR ===== */

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 0;
}

.calendar-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(70, 110, 150, 0.1);
    border: 1px solid rgba(70, 110, 150, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: rgba(70, 110, 150, 0.2);
    border-color: rgba(70, 110, 150, 0.5);
    color: var(--text-primary);
}

.calendar-nav-btn svg {
    width: 18px;
    height: 18px;
}

.calendar-today-btn {
    width: auto;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.calendar-month-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 200px;
    text-align: center;
    margin: 0;
}

.calendar-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(70, 110, 150, 0.08);
    border-bottom: 1px solid var(--border-color);
}

.calendar-weekday {
    padding: 10px 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 100px;
    padding: 6px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day:hover:not(.other-month) {
    background: rgba(70, 110, 150, 0.05);
}

.calendar-day.other-month {
    opacity: 0.3;
    cursor: default;
}

.calendar-day.today {
    background: rgba(90, 136, 176, 0.08);
}

.calendar-day.today .day-number {
    background: #5a88b0;
    color: white;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.day-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-block;
    margin-bottom: 4px;
}

.day-apoios {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-y: auto;
    max-height: 70px;
}

.day-apoios::-webkit-scrollbar {
    width: 3px;
}

.day-apoios::-webkit-scrollbar-thumb {
    background: rgba(196, 184, 150, 0.3);
    border-radius: 2px;
}

/* Calendar Apoio Item (compact card inside day cell) */
.calendar-apoio-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-apoio-item.agendado {
    background: rgba(181, 168, 121, 0.15);
    border-left: 2px solid #b5a879;
    color: #b5a879;
}

.calendar-apoio-item.agendado:hover {
    background: rgba(181, 168, 121, 0.25);
}

.calendar-apoio-item.ativo {
    background: rgba(90, 136, 176, 0.15);
    border-left: 2px solid #5a88b0;
    color: #5a88b0;
}

.calendar-apoio-item.ativo:hover {
    background: rgba(90, 136, 176, 0.25);
}

.calendar-apoio-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.calendar-apoio-dot.agendado {
    background: #b5a879;
}

.calendar-apoio-dot.ativo {
    background: #5a88b0;
    animation: pulse 2s infinite;
}

.calendar-apoio-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.calendar-apoio-time {
    font-size: 9px;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Context Menu */
.apoio-context-menu {
    position: fixed;
    z-index: 10000;
    background: var(--bg-secondary, #1a1f1a);
    border: 1px solid var(--border-color, rgba(70, 110, 150, 0.3));
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    min-width: 160px;
}

.apoio-context-header {
    padding: 6px 10px 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary, #e8e4d9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apoio-context-sub {
    padding: 0 10px 4px;
    font-size: 10px;
    color: var(--text-muted, #7a7a6a);
}

.apoio-context-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

.apoio-context-menu button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary, #b0b0a0);
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.apoio-context-menu button:hover {
    background: rgba(70, 110, 150, 0.15);
    color: var(--text-primary, #e8e4d9);
}

.apoio-context-menu button.danger:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }

    .day-number {
        font-size: 10px;
    }

    .calendar-apoio-item {
        font-size: 9px;
        padding: 2px 4px;
    }

    .calendar-apoio-text {
        max-width: 40px;
    }

    .calendar-apoio-time {
        display: none;
    }

    .calendar-month-title {
        font-size: 14px;
        min-width: 150px;
    }

    .day-apoios {
        max-height: 40px;
    }

    .calendar-nav {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        min-height: 44px;
        padding: 2px;
    }

    .calendar-apoio-text {
        display: none;
    }

    .calendar-apoio-item {
        padding: 2px 3px;
        gap: 2px;
    }

    .day-apoios {
        max-height: 28px;
    }
}

/* Apoio Card Compact */
.apoio-card-compact {
    background: var(--bg-card);
    border: 1px solid rgba(70, 110, 150, 0.4);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.apoio-card-compact:hover {
    border-color: rgba(70, 110, 150, 0.6);
    background: rgba(70, 110, 150, 0.05);
}

.apoio-compact-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.apoio-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5a88b0;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(90, 136, 176, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(90, 136, 176, 0); }
}

.apoio-compact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.apoio-compact-title {
    font-size: 13px;
    font-weight: 600;
    color: #5a88b0;
}

.apoio-compact-om {
    font-size: 11px;
    color: var(--text-muted);
}

.apoio-compact-meios {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.apoio-meio-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

.apoio-meio-badge.leve {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.apoio-meio-badge.pesada {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.apoio-meio-badge.equipamento {
    background: rgba(139, 138, 92, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(139, 138, 92, 0.3);
}

.apoio-compact-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.apoio-time-badge-small {
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    background: rgba(70, 110, 150, 0.15);
    border-radius: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.apoio-time-badge-small svg {
    width: 10px;
    height: 10px;
}

.btn-finalizar-apoio-small {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(76, 140, 87, 0.15);
    border: 1px solid #4c8c57;
    border-radius: 6px;
    color: #5ca86a;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-finalizar-apoio-small:hover {
    background: #4c8c57;
    color: white;
}

.btn-finalizar-apoio-small svg {
    width: 12px;
    height: 12px;
}

/* Empty state for Apoios */
.apoios-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
}

.apoios-empty svg {
    width: 64px;
    height: 64px;
    color: rgba(70, 110, 150, 0.4);
}

.apoios-empty h4 {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

.apoios-empty p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 300px;
}

/* ===== APOIOS SECTIONS (Agenda) ===== */
.apoios-section {
    margin-bottom: 24px;
}

.apoios-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.section-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.section-indicator.ativo {
    background: #5a88b0;
    box-shadow: 0 0 6px rgba(90, 136, 176, 0.5);
}

.section-indicator.agendado {
    background: #b5a879;
}

/* Apoio Card - Agendado State */
.apoio-card-compact.agendado {
    border-color: rgba(181, 168, 121, 0.4);
    position: relative;
    flex-wrap: wrap;
}

.apoio-card-compact.agendado:hover {
    border-color: rgba(181, 168, 121, 0.6);
    background: rgba(181, 168, 121, 0.05);
}

.apoio-card-compact.agendado .apoio-status-indicator {
    background: #b5a879;
    animation: none;
}

.apoio-card-compact.agendado .apoio-compact-title {
    color: #b5a879;
}

/* Apoio Card - Ativo State */
.apoio-card-compact.ativo {
    border-color: rgba(70, 110, 150, 0.4);
}

.apoio-card-compact.ativo .apoio-status-indicator {
    background: #5a88b0;
    animation: pulse 2s infinite;
}

.apoio-card-compact.ativo .apoio-compact-title {
    color: #5a88b0;
}

/* Apoio Time Badge States */
.apoio-time-badge-small.agendado {
    background: rgba(181, 168, 121, 0.15);
    color: #b5a879;
}

.apoio-time-badge-small.ativo {
    background: rgba(70, 110, 150, 0.15);
    color: #5a88b0;
}

/* Apoio Action Buttons Container */
.apoio-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Iniciar Button */
.btn-iniciar-apoio {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(90, 136, 176, 0.15);
    border: 1px solid #5a88b0;
    border-radius: 6px;
    color: #5a88b0;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-iniciar-apoio:hover:not(:disabled) {
    background: #5a88b0;
    color: white;
}

.btn-iniciar-apoio:disabled,
.btn-iniciar-apoio.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-iniciar-apoio svg {
    width: 12px;
    height: 12px;
}

/* Editar Button */
.btn-editar-apoio {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: rgba(181, 168, 121, 0.15);
    border: 1px solid #b5a879;
    border-radius: 6px;
    color: #b5a879;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-editar-apoio:hover {
    background: #b5a879;
    color: var(--bg-primary);
}

.btn-editar-apoio svg {
    width: 14px;
    height: 14px;
}

/* Conflito Alert */
.apoio-conflito-alert {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-top: 8px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 6px;
    color: #dc3545;
    font-size: 11px;
    font-weight: 500;
}

.apoio-conflito-alert svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.conflito-message {
    flex: 1;
}

/* Meio badge em uso (conflito) */
.apoio-meio-badge.em-uso {
    background: rgba(220, 53, 69, 0.15) !important;
    color: #dc3545 !important;
    border-color: rgba(220, 53, 69, 0.4) !important;
    position: relative;
}

.apoio-meio-badge.em-uso::after {
    content: '!';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #dc3545;
    color: white;
    font-size: 8px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card with conflict */
.apoio-card-compact.has-conflict {
    border-color: rgba(220, 53, 69, 0.4);
    background: rgba(220, 53, 69, 0.03);
}

/* Meio Select - Em uso state (still selectable for scheduling) */
.meio-select-item.em-uso {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.05);
}

.meio-select-item.em-uso:hover {
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.1);
}

.meio-em-uso-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border-radius: 4px;
    margin-left: auto;
}

/* Responsive for sub-tabs and compact apoio card */
@media (max-width: 768px) {
    .sub-tabs-container {
        width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sub-tabs-container::-webkit-scrollbar {
        display: none;
    }

    .sub-tab-btn {
        padding: 8px 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    .apoio-card-compact {
        flex-wrap: wrap;
        gap: 10px;
    }

    .apoio-compact-left {
        min-width: 100%;
    }

    .apoio-compact-meios {
        justify-content: flex-start;
    }

    .apoio-compact-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ===== STATUS BUTTONS - 2 columns layout ===== */
.status-action-buttons-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ===== APOIO INFO SECTION (viatura em apoio) ===== */
.apoio-info-section {
    margin-bottom: 20px;
}

.apoio-info-card {
    background: rgba(70, 110, 150, 0.1);
    border: 1px solid rgba(70, 110, 150, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.apoio-info-header {
    background: rgba(70, 110, 150, 0.15);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(70, 110, 150, 0.2);
    font-size: 13px;
    font-weight: 600;
    color: #5a88b0;
}

.apoio-info-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5a88b0;
    animation: pulse 2s infinite;
}

.apoio-info-content {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.apoio-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.apoio-info-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apoio-info-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== APOIOS HEADER BAR ===== */
.apoios-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.apoios-header-bar .apoios-header {
    margin-bottom: 0;
}

/* Historico Actions (search + export) */
.historico-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.historico-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.historico-search-box:focus-within {
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.4);
}

.historico-search-box svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.historico-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    width: 280px;
}

.historico-search-box input::placeholder {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .historico-actions {
        flex-direction: column;
        width: 100%;
    }

    .historico-search-box {
        width: 100%;
    }

    .historico-search-box input {
        width: 100%;
    }

    .btn-export-excel {
        width: 100%;
        justify-content: center;
    }
}

/* ===== MODAL APOIO ===== */
.modal-apoio {
    max-width: 550px;
}

/* Scrollbar for modal content */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.section-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Meios Select List (Viaturas + Equipamentos) */
.meios-select-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.meios-select-list::-webkit-scrollbar {
    width: 6px;
}

.meios-select-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.meios-select-list::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
}

.meio-select-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.meio-select-item:last-child {
    border-bottom: none;
}

.meio-select-item:hover {
    background: rgba(180, 165, 91, 0.1);
}

.meio-select-item.selected {
    background: rgba(76, 140, 87, 0.15);
    border-left: 3px solid #4c8c57;
}

.meio-select-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.meio-select-item.selected .meio-select-checkbox {
    background: #4c8c57;
    border-color: #4c8c57;
}

.meio-select-checkbox svg {
    width: 12px;
    height: 12px;
    color: white;
    display: none;
}

.meio-select-item.selected .meio-select-checkbox svg {
    display: block;
}

.meio-select-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.meio-select-placa {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-gold);
    font-family: 'Courier New', monospace;
}

.meio-select-modelo {
    font-size: 10px;
    color: var(--text-secondary);
}

.meio-select-tipo {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.meio-select-tipo.leve {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.meio-select-tipo.pesada {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.meio-select-tipo.equipamento {
    background: rgba(139, 138, 92, 0.15);
    color: var(--accent-gold);
}

.meios-select-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
}

.meios-select-empty svg {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.meios-select-empty p {
    font-size: 12px;
}

/* ===== HISTORICO GRID ===== */
.historico-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Historico Card */
.historico-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.historico-card:hover {
    border-color: rgba(180, 165, 91, 0.3);
}

.historico-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(76, 140, 87, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.historico-icon svg {
    width: 22px;
    height: 22px;
    color: #4c8c57;
}

.historico-info {
    flex: 1;
    min-width: 0;
}

.historico-atividade {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.historico-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-secondary);
}

.historico-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.historico-details strong {
    color: var(--text-muted);
    font-weight: 500;
}

.historico-meios {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.historico-meio-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

.historico-meio-badge.leve {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.historico-meio-badge.pesada {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.historico-meio-badge.equipamento {
    background: rgba(139, 138, 92, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(139, 138, 92, 0.3);
}

.historico-dates {
    text-align: right;
    flex-shrink: 0;
}

.historico-date-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-bottom: 6px;
}

.historico-date-item:last-child {
    margin-bottom: 0;
}

.historico-date-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.historico-date-value {
    font-size: 11px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* Delete button for historico */
.historico-delete-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.historico-delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

.historico-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
}

.historico-empty svg {
    width: 64px;
    height: 64px;
    color: rgba(76, 140, 87, 0.4);
}

.historico-empty h4 {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

.historico-empty p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 300px;
}

/* ===== MODAL DE CONFIRMACAO ===== */
.modal-confirm {
    max-width: 400px;
    text-align: center;
}

.modal-confirm .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-confirm .modal-content {
    padding: 20px 24px 24px;
}

.confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.confirm-icon svg {
    width: 32px;
    height: 32px;
}

.confirm-icon.danger {
    background: rgba(220, 53, 69, 0.15);
    border: 2px solid rgba(220, 53, 69, 0.3);
}

.confirm-icon.danger svg {
    color: #dc3545;
}

.confirm-icon.success {
    background: rgba(76, 140, 87, 0.15);
    border: 2px solid rgba(76, 140, 87, 0.3);
}

.confirm-icon.success svg {
    color: #4c8c57;
}

.confirm-icon.warning {
    background: rgba(251, 191, 36, 0.15);
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.confirm-icon.warning svg {
    color: #fbbf24;
}

.confirm-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.confirm-footer {
    justify-content: center;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.btn-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid #dc3545;
    border-radius: 8px;
    color: #dc3545;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #dc3545;
    color: white;
}

.btn-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(76, 140, 87, 0.15);
    border: 1px solid #4c8c57;
    border-radius: 8px;
    color: #5ca86a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background: #4c8c57;
    color: white;
}

/* ===== BOTAO EXCLUIR APOIO ===== */
.btn-excluir-apoio {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 6px;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-excluir-apoio:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}

.btn-excluir-apoio svg {
    width: 14px;
    height: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .apoios-header-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .apoio-info-content {
        grid-template-columns: 1fr;
    }

    .historico-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .historico-dates {
        text-align: left;
        display: flex;
        gap: 20px;
    }

    .historico-date-item {
        align-items: flex-start;
    }
}

/* ===== COMBUSTIVEL STYLES ===== */

/* Section Label */
.section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Cotas Grid */
.cotas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* Cota Card */
.cota-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cota-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

.cota-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 0 0 4px 0;
}

.cota-description {
    font-size: 11px;
    color: var(--text-muted);
}

/* Tanks Container */
.cota-tanks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tank-container {
    background: var(--bg-darker);
    border-radius: 10px;
    padding: 12px;
}

.tank-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tank-label.diesel {
    color: #fbbf24;
}

.tank-label.gasolina {
    color: #22c55e;
}

.tank-label svg {
    width: 12px;
    height: 12px;
}

/* Tank Visual */
.tank-visual {
    position: relative;
    height: 100px;
    background: var(--bg-dark);
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.tank-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.8), rgba(251, 191, 36, 0.4));
    transition: height 0.5s ease;
    border-radius: 0 0 4px 4px;
}

.tank-fill.gasolina {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.8), rgba(34, 197, 94, 0.4));
}

.tank-fill.low {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.8), rgba(239, 68, 68, 0.4));
}

.tank-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tank-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 11px;
}

.tank-current {
    color: var(--text-primary);
    font-weight: 600;
}

.tank-capacity {
    color: var(--text-muted);
}

/* Form Section Title */
.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fbbf24;
    margin: 16px 0 10px 0;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.form-section-title.gasolina {
    color: #22c55e;
}

.form-section-title.diesel {
    color: #fbbf24;
}

/* Cota Info Display */
.cota-info-display {
    background: var(--bg-darker);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
}

.cota-info-display .cota-name {
    font-size: 15px;
    margin-bottom: 10px;
}

.cota-info-levels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cota-info-level {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cota-info-level-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cota-info-level-value {
    font-size: 13px;
    font-weight: 600;
}

.cota-info-level-value.diesel {
    color: #fbbf24;
}

.cota-info-level-value.gasolina {
    color: #22c55e;
}

/* Capacity Warning */
.capacity-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 12px;
    margin-bottom: 14px;
}

.capacity-warning svg {
    flex-shrink: 0;
}

/* Cota Details Modal */
.cota-tanks-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.tank-detail {
    background: var(--bg-darker);
    border-radius: 12px;
    padding: 16px;
}

.tank-detail .tank-visual {
    height: 130px;
    margin-bottom: 14px;
}

.tank-detail .tank-percentage {
    font-size: 28px;
}

.tank-detail-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tank-detail-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.tank-detail-capacity {
    font-size: 12px;
    color: var(--text-muted);
}

/* Cota Detail Actions */
.cota-detail-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Cota Movements */
.cota-movements {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.cota-movements h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 14px 0;
}

.movements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.movement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-darker);
    border-radius: 8px;
}

.movement-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.movement-item-icon.recebimento {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.movement-item-icon.abastecimento {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.movement-item-info {
    flex: 1;
    min-width: 0;
}

.movement-item-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.movement-item-date {
    font-size: 10px;
    color: var(--text-muted);
}

.movement-item-quantity {
    font-size: 13px;
    font-weight: 600;
}

.movement-item-quantity.entrada {
    color: #22c55e;
}

.movement-item-quantity.saida {
    color: #ef4444;
}

/* Movimentacoes Grid - Estilo Dashboard */
.movimentacoes-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

/* Row Header */
.mov-row-header {
    display: grid;
    grid-template-columns: 100px 1fr 120px 100px;
    gap: 16px;
    padding: 12px 20px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}

.mov-row-header span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Row */
.mov-row {
    display: grid;
    grid-template-columns: 100px 1fr 120px 100px;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.mov-row:last-child {
    border-bottom: none;
}

.mov-row:hover {
    background: rgba(180, 165, 91, 0.03);
}

/* Date Column */
.mov-row-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mov-row-day {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.mov-row-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Info Column */
.mov-row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mov-row-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mov-row-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

/* Quantity Column */
.mov-row-quantity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.mov-row-liters {
    font-size: 15px;
    font-weight: 600;
}

.mov-row-liters.diesel {
    color: #fbbf24;
}

.mov-row-liters.gasolina {
    color: #22c55e;
}

.mov-row-fuel {
    font-size: 11px;
    color: var(--text-muted);
}

/* Cota Column */
.mov-row-cota {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.mov-row-cota-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Action Buttons (S4/Admin only) */
.mov-action-btn {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mov-action-btn:hover {
    background: rgba(180, 165, 91, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.mov-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

/* ===== CONFIRM MODAL ===== */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.confirm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.2s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.confirm-modal-overlay.active .confirm-modal {
    transform: scale(1) translateY(0);
}

.confirm-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.confirm-modal-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.confirm-modal-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.confirm-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.confirm-modal-message {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 24px;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-modal-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 100px;
}

.confirm-modal-btn.cancel {
    background: var(--bg-darker);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.confirm-modal-btn.cancel:hover {
    background: var(--bg-dark);
    border-color: var(--text-muted);
}

.confirm-modal-btn.confirm {
    background: #ef4444;
    color: #fff;
}

.confirm-modal-btn.confirm:hover {
    background: #dc2626;
}

/* ===== VALES DE ABASTECIMENTO ===== */

/* Barra de Busca Inline */
.search-bar-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 16px;
    max-width: 500px;
    transition: all 0.2s ease;
}

.search-bar-inline:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(196, 184, 150, 0.1);
}

.search-bar-inline svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.search-bar-inline input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    min-width: 0;
}

.search-bar-inline input::placeholder {
    color: var(--text-muted);
}

/* Mobile: Ajustes para histórico de vales */
@media (max-width: 768px) {
    #subtab-historico-vales .section-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    #subtab-historico-vales .filter-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    #subtab-historico-vales .filter-buttons .filter-btn {
        flex: 1;
        min-width: auto;
        padding: 8px 12px;
        font-size: 11px;
        text-align: center;
    }

    .search-bar-inline {
        max-width: 100%;
    }

    .search-bar-section {
        margin-bottom: 16px !important;
    }
}

/* Tab Badge */
.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 9px;
    margin-left: 6px;
}

/* Formulário de Vale */
.vale-form-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.vale-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.vale-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vale-form .form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vale-form .form-group input,
.vale-form .form-group select,
.vale-form .form-group textarea {
    padding: 10px 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.vale-form .form-group input:focus,
.vale-form .form-group select:focus,
.vale-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(180, 165, 91, 0.1);
}

.vale-form .form-group input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

.vale-form .form-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.vale-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.vale-form-actions .btn-primary,
.vale-form-actions .btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vale-form-actions .btn-primary {
    background: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
}

.vale-form-actions .btn-primary:hover {
    background: #a08c50;
}

.vale-form-actions .btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.vale-form-actions .btn-secondary:hover {
    border-color: var(--text-muted);
}

/* Grid de Vales */
.vales-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card de Vale - Novo Layout */
.vale-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.vale-card:hover {
    border-color: rgba(180, 165, 91, 0.3);
    transform: translateY(-2px);
}

/* Status border colors */
.vale-card.pendente {
    border-left: 4px solid #f59e0b;
}

.vale-card.aprovado {
    border-left: 4px solid #22c55e;
}

.vale-card.executado {
    border-left: 4px solid #3b82f6;
}

.vale-card.cancelado {
    border-left: 4px solid #ef4444;
    opacity: 0.7;
}

/* Vale Card Header */
.vale-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vale-numero {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-gold);
}

.vale-numero svg {
    opacity: 0.7;
}

.vale-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vale-status.pendente {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.vale-status.aprovado {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.vale-status.executado {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.vale-status.cancelado {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Vale Card Body */
.vale-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px 16px;
}

.vale-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.vale-info-row.obs {
    grid-column: 1 / -1;
}

.vale-label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    min-width: 70px;
}

.vale-value {
    color: var(--text-primary);
    font-weight: 500;
}

.vale-value.litros-destaque {
    color: var(--accent-gold);
    font-size: 15px;
    font-weight: 700;
}

.vale-value.combustivel-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.vale-value.combustivel-badge.diesel {
    background: rgba(180, 155, 91, 0.15);
    color: #c4a961;
}

.vale-value.combustivel-badge.gasolina {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Vale Card Footer */
.vale-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-muted);
}

.vale-cota {
    padding: 2px 8px;
    background: var(--bg-darker);
    border-radius: 4px;
}

.vale-cota.aguardando {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-style: italic;
}

/* Vale Actions */
.vale-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.vale-action-btn {
    flex: 1;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.vale-action-btn:hover {
    background: rgba(180, 165, 91, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.vale-action-btn.aprovar {
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.vale-action-btn.aprovar:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
}

.vale-action-btn.executar {
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.vale-action-btn.executar:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.vale-action-btn.rejeitar {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.vale-action-btn.rejeitar:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

.vale-action-btn.cancelar {
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.vale-action-btn.cancelar:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
}

/* Empty State para Vales */
.vales-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
}

.vales-empty svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 16px;
}

.vales-empty h4 {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.vales-empty p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* Filter buttons */
.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.filter-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
}

/* Modal de Vale */
.modal-vale,
.modal-aprovar-vale {
    max-width: 560px;
    width: 95%;
}

/* Resumo do Vale no modal de aprovação */
.vale-resumo {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.vale-resumo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.vale-resumo-numero {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
}

.vale-resumo-data {
    font-size: 12px;
    color: var(--text-muted);
}

.vale-resumo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.vale-resumo-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vale-resumo-item .label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vale-resumo-item .value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.vale-resumo-item .value.destaque {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
}

.vale-resumo-obs {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
}

.vale-resumo-obs .label {
    color: var(--text-muted);
    margin-right: 8px;
}

.vale-resumo-obs .value {
    color: var(--text-secondary);
}

/* Seção de seleção de cota na aprovação */
.aprovar-cota-section {
    background: var(--card-bg);
    border: 1px solid rgba(180, 165, 91, 0.3);
    border-radius: 10px;
    padding: 16px;
}

.aprovar-cota-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0 0 16px 0;
}

/* Footer do modal de aprovação */
.aprovar-footer {
    display: flex;
    gap: 12px;
}

.aprovar-footer .btn-danger {
    margin-right: auto;
}

/* Botões de ação */
.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
}

.btn-danger {
    background: transparent;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* Responsive Vales */
@media (max-width: 768px) {
    .vale-form-grid {
        grid-template-columns: 1fr;
    }

    .vale-card {
        flex-wrap: wrap;
    }

    .vale-card-litros {
        align-items: flex-start;
    }

    .vale-devolucao {
        display: inline;
    }

    .filter-buttons {
        flex-wrap: wrap;
    }

    .vale-resumo-grid {
        grid-template-columns: 1fr;
    }

    .aprovar-footer {
        flex-wrap: wrap;
    }

    .aprovar-footer .btn-danger {
        width: 100%;
        margin-right: 0;
        order: 3;
    }
}

/* Empty State */
.mov-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.mov-empty-state svg {
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 16px;
}

.mov-empty-state p {
    color: var(--text-muted);
    font-size: 13px;
}

/* Loading Placeholder */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.loading-placeholder .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 14px;
}

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

.loading-placeholder p {
    color: var(--text-muted);
    font-size: 13px;
}

/* Combustivel Responsive */
@media (max-width: 768px) {
    .cotas-grid {
        grid-template-columns: 1fr;
    }

    .cota-tanks {
        grid-template-columns: 1fr;
    }

    .cota-tanks-detail {
        grid-template-columns: 1fr;
    }

    .cota-detail-actions {
        flex-direction: column;
    }

    .cota-detail-actions button {
        width: 100%;
        justify-content: center;
    }

    /* Movimentacoes responsivo */
    .mov-row-header {
        display: none;
    }

    .mov-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
    }

    .mov-row-date {
        flex-direction: row;
        gap: 8px;
    }

    .mov-row-quantity {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }

    .mov-row-cota {
        justify-content: flex-start;
    }

    .movimentacao-meta {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--border-color);
    }
}

/* ===== COTA INFO DISPLAY ===== */
.cota-info-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-darker);
    border-radius: 8px;
    margin-bottom: 16px;
}

.cota-info-label {
    font-size: 13px;
    color: var(--text-muted);
}

.cota-info-nome {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-gold);
}

/* ===== CHECKBOX LABEL ===== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding-top: 24px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-gold);
    cursor: pointer;
}

.checkbox-label span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== TANQUES VISUALIZATION (NEW) ===== */

/* Tanques Unified Grid - 2 tanques lado a lado */
.tanques-unified-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .tanques-unified-grid {
        grid-template-columns: 1fr;
    }
}

/* Tanques Section */
.tanques-section {
    margin-bottom: 32px;
}

.tanques-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.tanques-section-title.diesel {
    color: #fbbf24;
}

.tanques-section-title.diesel svg {
    fill: #fbbf24;
}

.tanques-section-title.gasolina {
    color: #22c55e;
}

.tanques-section-title.gasolina svg {
    fill: #22c55e;
}

/* Tanques Grid */
.tanques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.tanques-grid.gasolina {
    grid-template-columns: minmax(200px, 300px);
}

/* Tanque Card */
.tanque-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tanque-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.tanque-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.tanque-card-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tanque-card-capacity {
    font-size: 10px;
    color: var(--text-muted);
}

/* Tanque Visual Container - Vertical Bar with Stacked Cotas */
.tanque-visual-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tanque-bar-wrapper {
    width: 100%;
    max-width: 120px;
    height: 180px;
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
}

/* Cota Segment inside Tank */
.cota-segment {
    width: 100%;
    position: relative;
    transition: height 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2px;
}

.cota-segment:first-child {
    border-radius: 0 0 10px 10px;
}

.cota-segment:last-child {
    border-radius: 10px 10px 0 0;
}

.cota-segment-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    padding: 2px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Tank Empty State */
.tanque-empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.tanque-empty svg {
    margin-bottom: 8px;
    opacity: 0.5;
}

.tanque-empty span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tank Info (below the bar) */
.tanque-info {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.tanque-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.tanque-info-row:last-child {
    margin-bottom: 0;
}

.tanque-info-label {
    font-size: 11px;
    color: var(--text-muted);
}

.tanque-info-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.tanque-info-value.diesel {
    color: #fbbf24;
}

.tanque-info-value.gasolina {
    color: #22c55e;
}

.tanque-percent-badge {
    font-size: 14px;
    font-weight: 700;
}

/* Cotas Legend */
.cotas-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.cotas-legend-section {
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.cotas-diesel {
    border-left: 3px solid #f0c040;
}

.cotas-gasolina {
    border-left: 3px solid #4ecdc4;
}

.cotas-legend-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.cotas-legend-title .legend-count {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.legend-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.legend-item:hover {
    background: rgba(180, 165, 91, 0.1);
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-info {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.legend-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legend-volume {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: auto;
}

.legend-empty {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    padding: 4px;
}

/* Tanque Espaco Info (no modal) */
.tanque-espaco-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #60a5fa;
    font-size: 12px;
    margin-bottom: 16px;
}

.tanque-espaco-info svg {
    flex-shrink: 0;
}

.tanque-espaco-info.warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.tanque-espaco-info.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ===== MODAL COTA - ETAPAS ===== */
.cota-step {
    animation: fadeIn 0.2s ease;
}

.step-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

.cota-type-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cota-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cota-type-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(180, 165, 91, 0.1);
}

.cota-type-btn svg {
    color: var(--accent-gold);
}

.cota-type-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.cota-type-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Info da cota existente selecionada */
.cota-existente-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 16px;
}

.cota-existente-info .cota-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.cota-existente-info .cota-details {
    flex: 1;
}

.cota-existente-info .cota-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.cota-existente-info .cota-volume {
    font-size: 12px;
    color: var(--text-secondary);
}

.cota-existente-info .cota-tanque {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== HINT EXPLICATIVO NO MODAL (Passo a passo) ===== */
.modal-hint {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.modal-hint .hint-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    opacity: 0.7;
}

.modal-hint .hint-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.modal-hint .hint-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: rgba(180, 165, 91, 0.15);
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
}

.modal-hint .hint-step span:last-child {
    flex: 1;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.modal-hint strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===== NAO ATRIBUIDO BADGE (Repasse Modal) ===== */
.nao-atribuido-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(158, 158, 158, 0.1);
    border: 1px solid rgba(158, 158, 158, 0.25);
    border-left: 3px solid #9e9e9e;
    border-radius: 8px;
    margin-bottom: 16px;
}

.nao-atribuido-badge .na-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.nao-atribuido-badge .na-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.nao-atribuido-badge.empty {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
}

.nao-atribuido-badge.empty .na-value {
    color: #ef4444;
}

/* ===== REPASSE SUB-OPTIONS (Nova / Existente) ===== */
.repasse-sub-options {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.repasse-sub-btn {
    flex: 1;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.repasse-sub-btn:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.repasse-sub-btn.active {
    background: rgba(180, 165, 91, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 600;
}

/* ===== COTA SEGMENT NAO ATRIBUIDO (Tanque Visual) ===== */
.cota-segment.nao-atribuido {
    background: repeating-linear-gradient(
        45deg,
        #9e9e9e,
        #9e9e9e 4px,
        #8a8a8a 4px,
        #8a8a8a 8px
    ) !important;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .tanques-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tanques-grid.gasolina {
        grid-template-columns: 1fr;
    }

    .tanque-bar-wrapper {
        height: 150px;
    }

    .cotas-legend {
        grid-template-columns: 1fr;
    }

    .tanque-visual-container {
        flex-direction: row;
        align-items: stretch;
        gap: 16px;
    }

    .tanque-bar-wrapper {
        max-width: 80px;
        height: 140px;
    }

    .tanque-info {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tanques-grid {
        grid-template-columns: 1fr;
    }

    .legend-items-grid {
        grid-template-columns: 1fr;
    }

    .legend-item {
        padding: 6px 4px;
    }

    .tanque-bar-wrapper {
        max-width: 60px;
        height: 120px;
    }

    .tanque-info-value {
        font-size: 11px;
    }

    .tanque-percent-badge {
        font-size: 12px;
    }
}

/* ===== AUTOCOMPLETE SUGGESTIONS ===== */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #151a15;
    border: 1px solid var(--accent-gold);
    border-radius: 0 0 10px 10px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(180, 165, 91, 0.2);
}

.autocomplete-suggestions.active {
    display: block;
}

.autocomplete-item {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(180, 165, 91, 0.15);
    transition: all 0.15s ease;
    background: transparent;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: rgba(180, 165, 91, 0.15);
    padding-left: 18px;
}

.autocomplete-item-main {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.autocomplete-item-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.autocomplete-item-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

.autocomplete-item-badge.leve {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.autocomplete-item-badge.pesada {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.autocomplete-item-badge.blindada {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.autocomplete-no-results {
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* ===== EMPRÉSTIMOS DE COMBUSTÍVEL ===== */

/* Toggle switch no modal de aprovação */
.emprestimo-section {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 165, 0, 0.03);
}

.emprestimo-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border-color);
    border-radius: 22px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: #f0a030;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
}

.emprestimo-toggle-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.emprestimo-toggle-hint {
    width: 100%;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: -4px;
}

.emprestimo-fields {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

/* Devolução de litros no histórico */
.vale-devolucao {
    color: #fbbf24;
    font-size: 11px;
    font-weight: 600;
}

/* Empréstimos container */
.emprestimos-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.emprestimos-filter-group {
    display: flex;
    gap: 6px;
}

.emprestimos-filter-group .filter-btn {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.emprestimos-filter-group .filter-btn.active,
.emprestimos-filter-group .filter-btn:hover {
    background: var(--gradient-military);
    color: var(--bg-primary);
    border-color: transparent;
}

/* Empréstimo Card */
.emprestimo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.emprestimo-card.emp-pendente {
    border-left: 3px solid #f0a030;
}

.emprestimo-card.emp-quitado {
    border-left: 3px solid #4ecdc4;
    opacity: 0.8;
}

.emp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.15);
    gap: 12px;
    flex-wrap: wrap;
}

.emp-om {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.emp-om svg {
    color: var(--accent-gold);
}

.emp-totais {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.emp-total-litros {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.emp-pendente-litros {
    font-size: 13px;
    color: #f0a030;
    font-weight: 700;
}

.emp-quitado-litros {
    font-size: 13px;
    color: #4ecdc4;
    font-weight: 500;
}

.emp-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emp-status-badge.emp-pendente {
    background: rgba(240, 160, 48, 0.15);
    color: #f0a030;
}

.emp-status-badge.emp-quitado {
    background: rgba(78, 205, 196, 0.15);
    color: #4ecdc4;
}

.emp-vales-list {
    padding: 12px 20px;
}

.emp-vale-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.emp-vale-item:last-child {
    border-bottom: none;
}

.emp-vale-item.quitado {
    opacity: 0.5;
    text-decoration: line-through;
}

.emp-vale-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.emp-vale-numero {
    font-weight: 600;
    font-size: 13px;
    color: var(--accent-gold);
}

.emp-vale-data {
    font-size: 12px;
    color: var(--text-secondary);
}

.emp-vale-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.emp-vale-litros {
    font-weight: 600;
    color: var(--text-primary);
}

.emp-vale-missao {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.emp-vale-motivo {
    font-size: 11px;
    color: #f0a030;
    font-style: italic;
    margin-top: 2px;
}

.emp-vale-quitado-info {
    font-size: 11px;
    color: #4ecdc4;
    margin-top: 4px;
    text-decoration: none;
}

.emp-actions {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.btn-quitar-om {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--accent-gold, #c4b896);
    color: #0a0e0a;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-quitar-om:hover {
    background: #d4c896;
    transform: translateY(-1px);
}

/* Botão quitar individual por vale */
.btn-quitar-vale {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--accent-gold, #c4b896);
    color: #0a0e0a;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-quitar-vale:hover {
    background: #d4c896;
    transform: translateY(-1px);
}

/* Layout row para vale item com botão */
.emp-vale-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.emp-vale-content {
    flex: 1;
    min-width: 0;
}

/* Quitar modal info */
.quitar-info {
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: 8px;
}

.quitar-info p {
    margin: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.quitar-info strong {
    color: var(--text-primary);
}

/* Quitar progress bar */
.quitar-progress-section {
    margin: 14px 0;
}

.quitar-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.quitar-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.quitar-progress-fill {
    height: 100%;
    background: var(--accent-gold, #c4b896);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.quitar-restante {
    text-align: center;
    font-size: 13px;
    color: var(--accent-gold, #c4b896);
    margin-top: 6px;
}

/* Progress bar inline nos cards */
.emp-vale-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

.emp-vale-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.emp-vale-progress-fill {
    height: 100%;
    background: var(--accent-gold, #c4b896);
    border-radius: 2px;
}

/* Empréstimo badge */
.emprestimo-badge {
    background: rgba(240, 160, 48, 0.9) !important;
}
