/* Dashboard Styles Fix */

/* KPI Container Styles */
.leadmahu-kpis-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.leadmahu-kpi-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 20px;
    min-width: 150px;
    flex: 1;
    text-align: center;
    border-left: 4px solid #2271b1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.leadmahu-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.leadmahu-kpi-card.total {
    border-left-color: #2271b1;
}

.leadmahu-kpi-card.nuevo {
    border-left-color: #00a32a;
}

.leadmahu-kpi-card.contactado {
    border-left-color: #ff9800;
}

.leadmahu-kpi-card.convertido {
    border-left-color: #0073aa;
}

.leadmahu-kpi-card.perdido {
    border-left-color: #d63638;
}

.leadmahu-kpi-title {
    margin: 0;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leadmahu-kpi-value {
    margin: 10px 0 0;
    font-size: 28px;
    font-weight: bold;
    color: #2271b1;
}

/* Action Buttons */
.leadmahu-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.leadmahu-action-button {
    padding: 3px 8px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    border-radius: 3px !important;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: 3px;
}

.leadmahu-btn-view {
    background-color: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
}

.leadmahu-btn-view:hover {
    background-color: #135e96 !important;
    color: #fff !important;
}

.leadmahu-btn-edit {
    background-color: #f0b849 !important;
    border-color: #f0b849 !important;
    color: #000 !important;
}

.leadmahu-btn-edit:hover {
    background-color: #daa520 !important;
    color: #000 !important;
}

.leadmahu-btn-delete {
    background-color: #d63638 !important;
    border-color: #d63638 !important;
    color: #fff !important;
}

.leadmahu-btn-delete:hover {
    background-color: #b32d2e !important;
    color: #fff !important;
}

/* Lead Detail Card */
.lead-detail-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
    max-width: 1000px;
    margin: 20px 0;
}

.lead-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.lead-title {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.lead-id {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.lead-section {
    margin-bottom: 25px;
}

.lead-section-title {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: #2271b1;
}

.lead-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.lead-info-item {
    margin-bottom: 5px;
}

.lead-info-full {
    grid-column: 1 / -1;
}

.lead-info-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.lead-info-value {
    display: block;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    border-left: 3px solid #ddd;
}

.lead-info-value.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 600;
    text-align: center;
}

.lead-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.lead-action-btn {
    text-decoration: none;
}

.lead-btn-back {
    background-color: #f0f0f1 !important;
    color: #3c434a !important;
}
