/* ==============================================
           PAINEL ADMINISTRATIVO
           ============================================== */
        .admin-panel {
            padding: 20px;
            background: #f8f9fa;
            border-radius: 12px;
        }

        .tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 2px solid #dee2e6;
        }

        .tab {
            padding: 10px 15px;
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            color: #6c757d;
            border-bottom: 2px solid transparent;
            transition: all 0.2s ease;
        }

        .tab.active {
            color: #e879b9;
            border-bottom-color: #e879b9;
        }

        .tab-content {
            display: none;
        }

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

        .stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .stat-card {
            background: white;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            text-align: center;
        }

        .stat-value {
            font-size: 24px;
            font-weight: 700;
            color: #e879b9;
        }

        .stat-label {
            font-size: 14px;
            color: #6c757d;
        }

        .filters {
            margin-bottom: 20px;
            background: white;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }

        .filter-row {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .filter-group {
            flex: 1;
        }

        .table-responsive {
            overflow-x: auto;
        }

        .table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }

        .table th, .table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #dee2e6;
        }

        .table th {
            background: #f8f9fa;
            font-weight: 600;
            color: #495057;
        }

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

        .table tbody tr:hover {
            background: #f1f3f5;
        }




/* Estilos para o Histórico de Pedidos/Pagamentos */
#lista-historico {
    max-height: 400px; /* Altura máxima para ativar o scroll */
    overflow-y: auto; /* Adiciona scroll vertical quando o conteúdo excede a altura máxima */
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.historico-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.historico-item .item-header h4 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
}

.historico-item .item-data {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

.historico-item .item-descricao {
    font-size: 1em;
    color: #555;
    margin-bottom: 5px;
}

.historico-item .item-valor {
    font-size: 1.1em;
    font-weight: bold;
    text-align: right;
}

.historico-item.pedido .item-valor.debito {
    color: #e53e3e; /* Vermelho para débitos */
}

.historico-item.pagamento .item-valor.credito {
    color: #38a169; /* Verde para créditos */
}

.historico-item .status {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}

.historico-item .status.pendente {
    background-color: #ffc107; /* Amarelo */
}

.historico-item .status.concluido {
    background-color: #28a745; /* Verde */
}

.historico-item .status.cancelado {
    background-color: #dc3545; /* Vermelho */
}

.historico-item .status.credito {
    background-color: #28a745; /* Verde */
}

.historico-item .status.debito {
    background-color: #dc3545; /* Vermelho */
}



/* Estilos para tabela de pedidos compacta */
#tabela-pedidos {
    table-layout: fixed;
    width: 100%;
}

#tabela-pedidos th,
#tabela-pedidos td {
    padding: 8px 6px;
    vertical-align: top;
    word-wrap: break-word;
}

#tabela-pedidos td:nth-child(2) {
    /* Coluna do telefone - quebra de linha */
    word-break: break-all;
    line-height: 1.2;
    font-size: 11px;
}

#tabela-pedidos td:nth-child(1) {
    /* Coluna da data */
    font-size: 11px;
    line-height: 1.2;
}

/* Scroll personalizado para a tabela */
.table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}



#tabela-pedidos th:nth-child(2), #tabela-pedidos td:nth-child(2) {
    width: 100px; /* Largura fixa para o telefone */
    white-space: normal;
}

#tabela-pedidos th:nth-child(5), #tabela-pedidos td:nth-child(5) {
    width: 50px; /* Largura fixa para Qtd */
    text-align: center;
}

#tabela-pedidos th:nth-child(6), #tabela-pedidos td:nth-child(6) {
    width: 80px; /* Largura fixa para Total */
    text-align: right;
}




/* Estilos para botões de ação na tabela de clientes */
.btn-action {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: white;
    text-decoration: none;
    min-width: 65px;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-action-green {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.btn-action-green:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
}

.btn-action-pink {
    background: linear-gradient(135deg, #ed64a6, #d53f8c);
}

.btn-action-pink:hover {
    background: linear-gradient(135deg, #d53f8c, #b83280);
}


/* Estilos para cards de estatísticas minimalistas na aba Pedidos */
.stats-pedidos {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: space-between;
}

.stat-card-pedidos {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    flex: 1;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.stat-card-pedidos:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.stat-value-pedidos {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #e879b9;
}

.stat-value-pedidos.verde {
    color: #38a169;
}

.stat-label-pedidos {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .stats-pedidos {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-card-pedidos {
        padding: 10px 12px;
    }
    
    .stat-value-pedidos {
        font-size: 18px;
    }
    
    .stat-label-pedidos {
        font-size: 11px;
    }
}

