/* ─── 고객관리 모듈 전용 UI (플랫폼 토큰 --bizeni-ui-* 재사용) ─── */

.bizeni-customer-edit-host {
    font-family: var(--bizeni-font-family);
    letter-spacing: -0.01em;
}

.bizeni-customer-edit-host .bizeni-quote-page-context-bar--sticky {
    padding: 0.65rem 0;
    border-bottom-color: var(--bizeni-ui-border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.bizeni-customer-edit-host .bizeni-quote-page-context-bar__no {
    font-size: var(--bizeni-ui-subtitle-size, 0.9375rem);
    font-weight: 700;
    max-width: 20rem;
}

/* 고객 포털 */
.bizeni-customers-portal {
    max-width: 1080px;
    font-family: var(--bizeni-ui-font);
}

.bizeni-customer-portal-hero {
    padding: 2rem 1.75rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--accent-fill-rest) 92%, #0f172a) 0%,
        color-mix(in srgb, var(--accent-fill-rest) 45%, #1e3a5f) 100%
    );
    color: #fff;
    box-shadow: var(--bizeni-ui-shadow);
}

.bizeni-customer-portal-hero__eyebrow {
    margin: 0 0 0.4rem;
    font-size: var(--bizeni-ui-caption-size);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.bizeni-customer-portal-hero__title {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
}

.bizeni-customer-portal-hero__subtitle {
    margin: 0.75rem 0 0;
    font-size: 1.02rem;
    line-height: 1.55;
    opacity: 0.92;
    max-width: 36rem;
}

.bizeni-customer-portal-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.bizeni-customer-portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.bizeni-customer-portal-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.35rem;
    border: 1px solid var(--bizeni-ui-border);
    border-radius: var(--bizeni-ui-radius);
    background: var(--bizeni-ui-surface);
    box-shadow: var(--bizeni-ui-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.bizeni-customer-portal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
    border-color: color-mix(in srgb, var(--accent-fill-rest) 35%, var(--bizeni-ui-border));
}

.bizeni-customer-portal-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bizeni-ui-accent-soft);
    color: var(--accent-fill-rest);
}

.bizeni-customer-portal-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.bizeni-customer-portal-card__desc {
    margin: 0;
    font-size: var(--bizeni-ui-caption-size);
    color: var(--neutral-foreground-hint);
    line-height: 1.5;
    flex: 1;
}

.bizeni-customer-portal-card__cta {
    font-size: var(--bizeni-ui-caption-size);
    font-weight: 600;
    color: var(--accent-fill-rest);
}

.bizeni-customer-portal-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* 고객 등록·상세 프로필 히어로 */
.bizeni-customer-profile-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    margin: 0 0 1rem;
    border-radius: var(--bizeni-ui-radius);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--accent-fill-rest) 8%, var(--neutral-layer-1)) 0%,
        var(--neutral-layer-1) 55%
    );
    border: 1px solid var(--bizeni-ui-border);
    box-shadow: var(--bizeni-ui-shadow);
}

.bizeni-customer-profile-hero__title {
    margin: 0;
    font-size: var(--bizeni-ui-title-size);
    font-weight: 800;
    line-height: 1.2;
    color: var(--neutral-foreground-rest);
}

.bizeni-customer-profile-hero__subtitle {
    margin: 0.35rem 0 0;
    font-size: var(--bizeni-ui-subtitle-size);
    color: var(--neutral-foreground-hint);
}

.bizeni-customer-profile-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.bizeni-customer-metric-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.bizeni-customer-metric-tile {
    padding: 0.75rem 0.85rem;
    border-radius: var(--bizeni-ui-radius-sm);
    background: var(--bizeni-ui-surface-muted);
    border: 1px solid var(--bizeni-ui-border);
}

.bizeni-customer-metric-tile__label {
    font-size: var(--bizeni-ui-caption-size);
    color: var(--neutral-foreground-hint);
    font-weight: 500;
}

.bizeni-customer-metric-tile__value {
    margin-top: 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--neutral-foreground-rest);
}

.bizeni-customer-picture-zone {
    padding: 1.5rem;
    border-radius: var(--bizeni-ui-radius-sm);
    background: var(--bizeni-ui-surface-muted);
    border: 1px dashed var(--bizeni-ui-border);
    text-align: center;
}

@media (max-width: 768px) {
    .bizeni-customer-profile-hero {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}
