/* /includes/css/panel.css */

.panel-container {
    padding-top: 20px;
}
.panel-container h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Panel Cliente */
.citas-lista-cliente .cita-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.cita-card h4 {
    margin-top: 0;
}
.status {
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    color: white;
}
.status-pendiente { background-color: #ffc107; color: #333; }
.status-confirmada { background-color: var(--success-color); }
.status-cancelada { background-color: var(--danger-color); }

/* Panel Negocio (CRM) */
.crm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.crm-card {
    display: block;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.2s ease;
}
.crm-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}
.crm-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* CRM Sub-páginas */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.filter-form .form-group {
    margin-bottom: 0;
    flex: 1;
}
.filter-form input, .filter-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.filter-form .btn {
    align-self: flex-end;
    padding: 10px 20px;
}

.citas-lista-crm .cita-card-crm {
    background-color: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
}
.cita-card-crm p { margin: 5px 0; }
.cita-acciones { margin-top: 10px; }
.btn-sm { padding: 5px 10px; font-size: 14px; }
.btn-success { background-color: var(--success-color); color: white; }
.btn-danger { background-color: var(--danger-color); color: white; }

.form-container {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.form-container h3 { margin-top: 0; }
.form-row {
    display: flex;
    gap: 20px;
}
.col-md-6 { flex: 1; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; 
}
textarea { min-height: 80px; }

/* Tabla */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.table th, .table td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: left;
}
.table th {
    background-color: #f8f9fa;
}
.table img {
    border-radius: 5px;
}

/* Estadísticas en el reporte de ventas */
.stats-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.stats-card {
    flex: 1;
    min-width: 120px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.stats-card h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #6B7280;
}
.stats-card .stats-number {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}
.stats-card.pending {
    border-top: 4px solid #FBBF24; /* amarillo */
}
.stats-card.confirmed {
    border-top: 4px solid #10B981; /* verde */
}
.stats-card.cancelled {
    border-top: 4px solid #EF4444; /* rojo */
}