/*
 * Sales area styles
 *
 * Backend has no Tailwind JIT (only FrankenUI utilities + static app.css),
 * so the customer wizard progress bar and the dashboard status dots are
 * implemented with dedicated classes here instead of Tailwind arbitrary values.
 */

/* ------------------------------------------------------------------ */
/* Customer wizard progress bar (visual clone of the frontend /kaufen) */
/* ------------------------------------------------------------------ */

.sales-wizard {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding-top: 0.25rem;
}

.sales-wizard__item {
    position: relative;
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
}

.sales-wizard__connector {
    position: absolute;
    top: 20px;
    left: calc(50% + 1.375rem);
    right: calc(-50% + 1.375rem);
    z-index: 0;
    height: 4px;
    border-radius: 9999px;
    background: #e5e7eb;
}

.sales-wizard__connector.is-done {
    background: linear-gradient(110deg, #1cdf73 0%, #15c9a7 65%, #00aebb 100%);
}

.sales-wizard__circle {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    font-size: 1rem;
    font-weight: 900;
    color: #9ca3af;
    transition: all 0.3s ease-out;
}

.sales-wizard__item.is-active .sales-wizard__circle,
.sales-wizard__item.is-done .sales-wizard__circle {
    border-color: transparent;
    background: linear-gradient(110deg, #1cdf73 0%, #15c9a7 65%, #00aebb 100%);
    color: #ffffff;
}

.sales-wizard__item.is-active .sales-wizard__circle {
    box-shadow: 0 8px 20px rgba(0, 23, 54, 0.15);
}

.sales-wizard__label {
    max-width: 9rem;
    font-size: 0.72rem;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
    color: #9ca3af;
    overflow-wrap: anywhere;
}

.sales-wizard__item.is-active .sales-wizard__label,
.sales-wizard__item.is-done .sales-wizard__label {
    color: var(--color-primary, #0a0c19);
}

@media (max-width: 480px) {
    .sales-wizard__label {
        font-size: 0.6rem;
    }
}

/* ------------------------------------------------------------------ */
/* Dashboard status dots (login / course)                             */
/* ------------------------------------------------------------------ */

.sales-status-cell {
    display: block;
    text-align: center;
}

.sales-status-dot {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    vertical-align: middle;
}

.sales-status-dot--ok {
    background: #22c55e;
}

.sales-status-dot--pending {
    background: #ef4444;
}
