/* Modal de Pedidos */
/* Container Principal */


.header-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
   
}

.logo-img {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)) !important;
}

.salcerrado-modal-header-rastreamento h3 {
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    line-height: 1.3 !important;
}

/* Info Cards */
.rastreamento-info-modern {
    margin-bottom: 30px !important;
}

.info-card-modern {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    padding: 20px !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
    border-left: 4px solid #667eea !important;
}

.info-icon {
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.info-icon i {
    color: white !important;
    font-size: 18px !important;
}

.info-content {
    flex: 1 !important;
}

.info-title {
    font-weight: 700 !important;
    color: #2d3748 !important;
    margin: 0 0 5px 0 !important;
    font-size: 16px !important;
}

.info-desc {
    color: #718096 !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Pedido Info */
.pedido-info-modern {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

.pedido-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #f7fafc !important;
    padding: 15px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
}

.pedido-item i {
    color: #667eea !important;
    font-size: 16px !important;
    width: 20px !important;
    text-align: center !important;
}

.pedido-label {
    display: block !important;
    font-size: 12px !important;
    color: #718096 !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
}

.pedido-value {
    display: block !important;
    font-size: 14px !important;
    color: #2d3748 !important;
    font-weight: 700 !important;
}

/* BotÃ£o de LocalizaÃ§Ã£o */
.rastreamento-actions-modern {
    margin-bottom: 20px !important;
}



.btn-content {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    position: relative !important;
    z-index: 2 !important;
}

.btn-icon {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px) !important;
}

.btn-icon i {
    font-size: 24px !important;
    color: white !important;
}

.btn-text {
    text-align: left !important;
    flex: 1 !important;
}

.btn-title {
    display: block !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

.btn-subtitle {
    display: block !important;
    font-size: 13px !important;
    opacity: 0.9 !important;
    font-weight: 500 !important;
}

/* Efeito Pulsar */
.pulse-effect {
    position: absolute !important;
    top: 50% !important;
    left: 35px !important;
    transform: translateY(-50%) !important;
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    animation: pulse 2s infinite !important;
    z-index: 1 !important;
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(0.8) !important;
        opacity: 1 !important;
    }
    70% {
        transform: translateY(-50%) scale(1.4) !important;
        opacity: 0 !important;
    }
    100% {
        transform: translateY(-50%) scale(1.4) !important;
        opacity: 0 !important;
    }
}

/* Loading */
.salcerrado-loading-modern {
    text-align: center !important;
    padding: 30px !important;
}

.loading-spinner-modern {
    width: 50px !important;
    height: 50px !important;
    border: 4px solid #e2e8f0 !important;
    border-top: 4px solid #667eea !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin: 0 auto 15px !important;
}

@keyframes spin {
    0% { transform: rotate(0deg) !important; }
    100% { transform: rotate(360deg) !important; }
}

.salcerrado-loading-modern p {
    color: #718096 !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* Resultado */
.rastreamento-resultado-modern {
    background: #f0fff4 !important;
    border: 1px solid #9ae6b4 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    text-align: center !important;
    margin-top: 20px !important;
}

/* Responsividade */
@media (max-width: 480px) {
    .salcerrado-modal-content-rastreamento {
        padding: 25px 20px !important;
        border-radius: 16px !important;
        margin: 10px !important;
    }
    
    .salcerrado-modal-header-rastreamento h3 {
        font-size: 20px !important;
    }
    
    .logo-img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .pedido-info-modern {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .btn-content {
        gap: 12px !important;
    }
    
    .btn-icon {
        width: 45px !important;
        height: 45px !important;
    }
    
    .btn-title {
        font-size: 16px !important;
    }
    
    .btn-subtitle {
        font-size: 12px !important;
    }
}

@media (max-width: 320px) {
    .salcerrado-modal-content-rastreamento {
        padding: 20px 15px !important;
    }
    
    .info-card-modern {
        padding: 15px !important;
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .btn-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
}
.salcerrado-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn 0.3s ease;
}

.salcerrado-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: scaleUp 0.3s ease;
}

.salcerrado-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.salcerrado-close-modal:hover {
    color: #333;
}

.salcerrado-modal-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #2d5a3d;
    padding-bottom: 15px;
}

.salcerrado-modal-header h3 {
    color: #2d5a3d;
    margin: 0;
    font-size: 1.5rem;
}
.status-modal-content.compact {
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.modal-header h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #2d5a3d;
}

.pedido-info-compact {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.info-item.warning {
    background: #fff3cd;
    color: #856404;
}

.info-item i {
    font-size: 12px;
    opacity: 0.7;
}

.modal-body {
    padding: 10px 0;
}

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

.section-label i {
    margin-right: 5px;
}

.status-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.status-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: white;
}

.status-option:hover {
    border-color: #2d5a3d;
    background: #f8fff9;
}

.status-option.selected {
    border-color: #2d5a3d;
    background: #2d5a3d;
    color: white;
}

.status-option i {
    font-size: 16px;
    margin-bottom: 5px;
}

.status-option span {
    font-size: 11px;
    font-weight: 500;
}

.salcerrado-select.compact {
    padding: 8px 12px;
    font-size: 13px;
    height: auto;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

.btn-compact {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 100px;
}
/* FormulÃ¡rio */
.salcerrado-form {
    margin-top: 20px;
}

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

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2d5a3d;
}

.form-text {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* BotÃµes */
.salcerrado-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.salcerrado-btn-primary {
    background: #2d5a3d;
    color: white;
}

.salcerrado-btn-primary:hover {
    background: #1a3a20;
    transform: translateY(-2px);
}

.salcerrado-btn-secondary {
    background: #6c757d;
    color: white;
}

.salcerrado-btn-secondary:hover {
    background: #545b62;
}

.salcerrado-btn-success {
    background: #25D366;
    color: white;
}

.salcerrado-btn-success:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.salcerrado-btn-warning {
    background: #ffc107;
    color: #212529;
}

.salcerrado-btn-warning:hover {
    background: #e0a800;
}

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

.salcerrado-btn-danger:hover {
    background: #c82333;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 25px;
}

/* Info do Produto */
.salcerrado-produto-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2d5a3d;
}

.salcerrado-produto-info h4 {
    margin: 0 0 5px 0;
    color: #2d5a3d;
}

.salcerrado-produto-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Resumo do Pedido */
.pedido-resumo {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #c8e6c9;
}

.pedido-resumo h4 {
    margin: 0 0 15px 0;
    color: #2d5a3d;
    text-align: center;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #c8e6c9;
}

.resumo-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.resumo-item span:first-child {
    font-weight: 600;
    color: #333;
}

.resumo-item span:last-child {
    color: #2d5a3d;
}

/* Dashboard */
#salcerrado-dashboard {
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.salcerrado-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.salcerrado-dashboard-header h1 {
    color: #2d5a3d;
    margin: 0;
    font-size: 1.8rem;
}

/* EstatÃ­sticas */
.salcerrado-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.total-pedidos {
    background: #007bff;
}

.stat-icon.pedidos-pendentes {
    background: #ffc107;
}

.stat-icon.pedidos-confirmados {
    background: #28a745;
}

.stat-icon.total-sacos {
    background: #6f42c1;
}

.stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 2rem;
    color: #2d5a3d;
}

.stat-info p {
    margin: 0;
    color: #666;
    font-weight: 600;
}

/* Filtros */
.salcerrado-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.salcerrado-input,
.salcerrado-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.salcerrado-input:focus,
.salcerrado-select:focus {
    outline: none;
    border-color: #2d5a3d;
}

/* Tabela */
.salcerrado-table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

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

.salcerrado-table th {
   background:linear-gradient( rgb(238, 238, 238), #d0d0d0);
    color: #555;
    padding: 5px;
    text-align: center;
}

.salcerrado-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.salcerrado-table tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pendente {
    background: #fff3cd;
    color: #856404;
}

.status-confirmado {
    background: #d1edff;
    color: #004085;
}

.status-processando {
    background: #d4edda;
    color: #155724;
}

.status-enviado {
    background: #e2e3ff;
    color: #383d41;
}

.status-entregue {
    background: #d1e7dd;
    color: #0f5132;
}

.status-cancelado {
    background: #f8d7da;
    color: #721c24;
}

/* AÃ§Ãµes */
.acoes-cell {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-acao {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-status {
    background: #17a2b8;
    color: white;
}

.btn-status:hover {
    background: #138496;
}

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

.btn-excluir:hover {
    background: #c82333;
}

/* PaginaÃ§Ã£o */
.salcerrado-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #2d5a3d;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #2d5a3d;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

/* Modal Status */
.status-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

.status-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
}

.status-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 20px 0;
}

.status-option {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.status-option:hover {
    border-color: #2d5a3d;
}

.status-option.selected {
    border-color: #2d5a3d;
    background: #e8f5e8;
}

/* AnimaÃ§Ãµes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2d5a3d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .salcerrado-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .salcerrado-btn {
        width: 100%;
        justify-content: center;
    }
    
    .salcerrado-dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .salcerrado-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .salcerrado-filters {
        flex-direction: column;
    }
    
    .salcerrado-table-container {
        overflow-x: auto;
    }
    
    .salcerrado-table {
        min-width: 800px;
    }
    
    .acoes-cell {
        flex-direction: column;
    }
}

#salcerrado-acompanhar-pedido {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.salcerrado-acompanhar-header {
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #2d5a3d 0%, #1a3a20 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.salcerrado-acompanhar-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.2rem;
}

.salcerrado-acompanhar-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Busca de Pedido */
.salcerrado-busca-pedido {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.busca-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.salcerrado-input-large {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.salcerrado-input-large:focus {
    outline: none;
    border-color: #2d5a3d;
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}
.whatsapp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.whatsapp-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.whatsapp-actions {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}
.whatsapp-info-grid {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #2d5a3d;
}

.info-item {
    margin-bottom: 8px;
    font-size: 14px;
}

.info-item:last-child {
    margin-bottom: 0;
}
.whatsapp-action {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.whatsapp-action h4 {
    margin: 0 0 10px 0;
    color: #2d5a3d;
}

.whatsapp-action p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.transportadora-group {
    transition: all 0.3s ease;
}
/* Resultado do Pedido */
.salcerrado-resultado-pedido {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}
.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

@media (max-width: 768px) {
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}
/* Header do Resultado */
.resultado-header {
   
    color: #666;
    padding: 25px;
    text-align: center;
}

.resultado-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.pedido-id {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: 1px;
}

/* InformaÃ§Ãµes do Pedido */
.pedido-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-card h3 {
    margin: 0 0 15px 0;
    color: #2d5a3d;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.info-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Timeline */
.timeline-container {
    padding: 30px;
}

.timeline-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2d5a3d;
    font-size: 1.3rem;
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 80px;
}

.timeline-icon {
    position: absolute;
    left: 20px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #2d5a3d;
}

.timeline-content h4 {
    margin: 0 0 5px 0;
    color: #2d5a3d;
    font-size: 1.1rem;
}

.timeline-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}



/* Estados da Timeline */
.timeline-item.completed .timeline-icon {
    background: #28a745;
}

.timeline-item.current .timeline-icon {
    background: #2d5a3d;
    animation: pulse 2s infinite;
}

.timeline-item.pending .timeline-icon {
    background: #6c757d;
}

/* Timeline - VersÃ£o Simplificada */
.timeline-item.current .timeline-content {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border-left: 4px solid #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.timeline-item.completed .timeline-content {
    background: white;
    border-left: 4px solid #6c757d;
    opacity: 1;
}

.timeline-item .timeline-content small {
    display: block;
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.timeline-date {
    font-size: 0.8rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.timeline-date strong {
    color: #28a745;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Status Atual */
.status-atual {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
    border-top: 1px solid #e0e0e0;
}

.status-badge-grande {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading */
.salcerrado-loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2d5a3d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Mensagens */
.mensagem-erro {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #f5c6cb;
}

.mensagem-sucesso {
    background: #d1edff;
    color: #004085;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #b8daff;
}

/* AÃ§Ãµes */
.pedido-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

/* Responsividade */
@media (max-width: 768px) {
    .busca-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .salcerrado-input-large {
        margin-bottom: 10px;
    }
    
    .pedido-info-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-icon {
        left: 10px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .pedido-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    #salcerrado-acompanhar-pedido {
        padding: 10px;
    }
    
    .salcerrado-acompanhar-header {
        padding: 30px 15px;
    }
    
    .salcerrado-acompanhar-header h1 {
        font-size: 1.8rem;
    }
    
    .salcerrado-busca-pedido {
        padding: 20px;
    }
}
/* Mapa Full Width para Mobile */
.timeline-item.current .timeline-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mapa-localizacao {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

.mapa-localizacao > div {
    width: 100% !important;
    height: 250px !important;
    border-radius: 0 !important;
}

.coordenadas-info {
    padding: 12px 15px !important;
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    font-size: 12px !important;
}

.localizacao-info {
    padding: 15px !important;
    background: #f8fafc !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    border-top: 1px solid #e2e8f0 !important;
}

.localizacao-info small {
    font-size: 11px !important;
    color: #718096 !important;
    display: block !important;
    margin-bottom: 4px !important;
}

/* Ajustes especÃ­ficos para a timeline */
.timeline-item.current {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.timeline-item.current .timeline-icon {
    margin-left: 15px !important;
    z-index: 2 !important;
}

.timeline-item.current .timeline-content h4 {
    padding: 15px 15px 5px 15px !important;
    margin: 0 !important;
    font-size: 16px !important;
}

.timeline-item.current .timeline-content p {
    padding: 0 15px 15px 15px !important;
    margin: 0 !important;
    font-size: 14px !important;
    color: #718096 !important;
}

/* Remove qualquer padding ou margin que limite a largura */
.timeline-container,
.timeline,
.timeline-content {
    max-width: 100% !important;
}

/* Para telas menores que 768px (mobile) */
@media (max-width: 768px) {
    .timeline-item.current {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }
    
    .timeline-item.current .timeline-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .mapa-localizacao {
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    .mapa-localizacao > div {
        border-radius: 0 !important;
    }
    
    /* Ajusta o Ã­cone da timeline para mobile */
    .timeline-item.current .timeline-icon {
        position: absolute !important;
        left: 15px !important;
        top: 15px !important;
        background: white !important;
        border: 2px solid #667eea !important;
        z-index: 10 !important;
    }
}

/* Para telas muito pequenas (atÃ© 360px) */
@media (max-width: 360px) {
    .mapa-localizacao > div {
        height: 200px !important;
    }
    
    .timeline-item.current .timeline-content h4 {
        font-size: 15px !important;
        padding: 12px 12px 5px 12px !important;
    }
    
    .timeline-item.current .timeline-content p {
        font-size: 13px !important;
        padding: 0 12px 12px 12px !important;
    }
    
    .coordenadas-info,
    .localizacao-info {
        padding: 10px 12px !important;
    }
}

/* Remove sombras e bordas para full width */
.timeline-item.current .timeline-content {
    box-shadow: none !important;
    border: none !important;
}

/* Garante que o Leaflet map container seja full width */
.leaflet-container {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
}

/* Ajusta o marker do mapa para mobile */
.zooming-marker {
    animation: zoomInOut 2s ease-in-out infinite !important;
}

@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1) !important;
    }
    50% {
        transform: scale(1.1) !important;
    }
}

/* Remove qualquer overflow hidden que possa cortar o mapa */
.timeline-item.current,
.timeline-content,
.mapa-localizacao {
    overflow: visible !important;
}
/* BotÃ£o WhatsApp no Invoice */
.invoice-item-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border-color: #25D366 !important;
}

.invoice-icon-whatsapp {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%) !important;
}

.invoice-icon-whatsapp i {
    color: #25D366 !important;
    font-size: 16px !important;
}

.btn-whatsapp-cliente {
    width: 100% !important;
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    color: white !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: all 0.3s ease !important;
    font-size: 12px !important;
}

.btn-whatsapp-cliente:hover {
    background: rgba(255,255,255,0.1) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
}

.btn-whatsapp-cliente:active {
    transform: translateY(0) !important;
}

.whatsapp-text {
    font-weight: 700 !important;
}

.whatsapp-icon {
    font-size: 16px !important;
    animation: whatsappPulse 2s ease-in-out infinite !important;
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1) !important;
    }
    50% {
        transform: scale(1.1) !important;
    }
}
/* Estilos para modo tempo real */
.modo-tempo-real .status-atual {
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
    border-left: 4px solid #2196f3;
    animation: pulse-blue 2s infinite;
}

.modo-tempo-real .timeline-container {
    border: 2px solid #e3f2fd;
    background: #f8fdff;
}

.tempo-real-badge {
    background: #ff5722;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
    animation: blink 1.5s infinite;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(33, 150, 243, 0); }
    100% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.salcerrado-btn-warning {
    background: #ff9800;
    color: white;
    border: none;
}

.salcerrado-btn-warning:hover {
    background: #f57c00;
}
.dashboard-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    border-radius: 8px;
}


/* Modal de Visualização de Pedido */
.salcerrado-modal-visualizar {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.salcerrado-modal-content-visualizar {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.salcerrado-modal-header-visualizar {
    background: linear-gradient(135deg, rgb(238, 238, 238), rgb(204, 204, 204));
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.salcerrado-modal-header-visualizar h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.salcerrado-close-modal-visualizar {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.salcerrado-close-modal-visualizar:hover {
    background-color: rgba(255,255,255,0.2);
}

.salcerrado-modal-body-visualizar {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.salcerrado-modal-footer-visualizar {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
    background-color: #f9f9f9;
    border-radius: 0 0 12px 12px;
}

/* Estilos para os detalhes do pedido */
.detalhes-pedido-container {
    font-size: 14px;
}

.pedido-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8f5e8;
}

.pedido-id-status {
    flex: 1;
}

.pedido-id-status h4 {
    margin: 0 0 8px 0;
    color: #2d5a3d;
    font-size: 1.3em;
}

.pedido-data {
    text-align: right;
    color: #666;
    font-size: 0.9em;
}

.pedido-data p {
    margin: 2px 0;
}

.info-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2d5a3d;
}

.info-section h5 {
    margin: 0 0 15px 0;
    color: #2d5a3d;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.info-item label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
}

.info-item span {
    color: #333;
    text-align: right;
    flex: 1;
}

.itens-pedido {
    background: white;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #dee2e6;
}

.item-pedido {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.observacoes-content,
.localizacao-content {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Botão Visualizar na tabela */
.btn-visualizar {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
    margin: 2px;
}

.btn-visualizar:hover {
    background-color: #138496;
}

.botoes-acao {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* Responsividade */
@media (max-width: 768px) {
    .salcerrado-modal-content-visualizar {
        width: 95%;
        margin: 5% auto;
    }
    
    .pedido-header-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .pedido-data {
        text-align: left;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-item span {
        text-align: left;
    }
    
    .botoes-acao {
        flex-direction: column;
    }
    
    .btn-visualizar {
        width: 100%;
        margin: 2px 0;
    }
}
.tabela-itens-pedido {
    margin: 15px 0;
    overflow-x: auto;
}
.tabela-itens {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tabela-itens th {
    background: rgb(204 204 204 / 54%);
    color: #000;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
}

.tabela-itens td {
    padding: 10px 8px;
    border-bottom: 1px solid #e8f5e8;
}

.tabela-itens tbody tr:hover {
    background-color: #f8f9fa;
}

.tabela-itens tfoot {
    background: #f1f8f1;
}

.tabela-itens .total-geral td {
    padding: 12px 8px;
    font-size: 1.1em;
    border-top: 2px solid #2d5a3d;
}

/* Responsividade */
@media (max-width: 768px) {
    .tabela-itens-pedido {
        font-size: 0.85em;
    }
    
    .tabela-itens th,
    .tabela-itens td {
        padding: 8px 4px;
    }
}