/* =============================================================================
   Sales Dashboard Styles
   Minimal additions — reuses existing dashboard card/infobox styles.
   ============================================================================= */

/* ── "My Day" cards row ── */
.sales-my-day {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.sales-my-day-card {
    flex: 1 1 200px;
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #6caa32;
    transition: box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.sales-my-day-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.sales-my-day-card .card-number {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.sales-my-day-card .card-label {
    font-size: 15px;
    color: #555;
    font-weight: 500;
}

/* Color variants */
.sales-my-day-card.card-green {
    border-left-color: #6caa32;
}

.sales-my-day-card.card-green .card-number {
    color: #6caa32;
}

.sales-my-day-card.card-red {
    border-left-color: #dc3545;
}

.sales-my-day-card.card-red .card-number {
    color: #dc3545;
}

.sales-my-day-card.card-yellow {
    border-left-color: #f0ad4e;
}

.sales-my-day-card.card-yellow .card-number {
    color: #f0ad4e;
}

/* ── Section headers ── */
.sales-section-header {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #e9ecef;
}

.sales-section-header .section-icon {
    margin-right: 8px;
    color: #6caa32;
}

/* ── Activity Timeline ── */
.sales-activity-timeline {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.sales-activity-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sales-activity-item:last-child {
    border-bottom: none;
}

.sales-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9f5e0;
    color: #6caa32;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 14px;
    font-size: 16px;
}

.sales-activity-content {
    flex: 1;
    min-width: 0;
}

.sales-activity-subject {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sales-activity-meta {
    font-size: 12px;
    color: #888;
}

.sales-activity-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    margin-left: 12px;
    flex-shrink: 0;
    align-self: center;
}

.sales-no-activities {
    text-align: center;
    color: #999;
    padding: 24px;
    font-size: 14px;
}

/* ── Pipeline InfoBoxes — 3-column grid (2 rows of 3 for 6 cards) ── */
.sales-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.sales-pipeline-grid .sales-pipeline-cell {
    min-width: 0; /* prevent grid blowout */
}

/* Ensure the InfoBox inside each cell fills height to match siblings */
.sales-pipeline-grid .sales-pipeline-cell .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sales-pipeline-grid .sales-pipeline-cell .card .card-body {
    flex: 1;
}

/* ── "Add New Lead" action card ── */
.sales-add-lead-card {
    background: linear-gradient(135deg, #6caa32 0%, #5a9428 100%);
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(108, 170, 50, 0.3);
    -webkit-user-select: none;
    user-select: none;
}

.sales-add-lead-card:hover {
    box-shadow: 0 6px 18px rgba(108, 170, 50, 0.45);
    transform: translateY(-2px);
}

.sales-add-lead-card:active {
    transform: translateY(0);
}

.sales-add-lead-card .add-lead-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.9;
}

.sales-add-lead-card .add-lead-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sales-add-lead-card .add-lead-subtitle {
    font-size: 13px;
    opacity: 0.85;
}

/* Responsive: stack to 2 columns on medium screens, 1 on small */
@media (max-width: 900px) {
    .sales-pipeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .sales-pipeline-grid {
        grid-template-columns: 1fr;
    }
}

/* Legacy class — keep for backward compat if referenced elsewhere */
.sales-pipeline-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.sales-pipeline-row .sales-pipeline-box {
    flex: 1 1 0;
    min-width: 150px;
}
