/* 진단장비/CADCAM 고객 전환버튼 (web_ars/index.php, web_ars/cadcam/ 헤더 공용) */
.customer-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
/* 좌측: 진단장비 고객, 우측: CAD/CAM 고객. 선택된 쪽만 굵게(.is-cadcam 유무로 판단) */
.customer-toggle .toggle-text {
    font-size: 14px;
    font-weight: 400;
    color: #86868b;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.customer-toggle:not(.is-cadcam) .text-device,
.customer-toggle.is-cadcam .text-cadcam {
    font-weight: 700;
    color: #1d1d1f;
}
.customer-toggle .switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin: 0;
}
.customer-toggle .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.customer-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #34c759; /* 진단장비 고객(꺼짐) */
    border-radius: 24px;
    transition: background-color 0.25s;
}
.customer-toggle .slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s;
}
.customer-toggle input:checked + .slider {
    background-color: #0071e3;
}
.customer-toggle input:checked + .slider:before {
    transform: translateX(20px);
}

/* cadcam 헤더 안에서는 조금 작게 */
.header .customer-toggle .toggle-text { font-size: 13px; }
@media (max-width: 480px) {
    .header .customer-toggle { gap: 6px; }
    .header .customer-toggle .toggle-text { font-size: 11px; }
    .header .logo { font-size: 1rem; }
}
