/* Toggle Switch (Enterprise Reusable) */

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.toggle-row:last-child {
    border-bottom: none;
}

.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toggle-info small {
    color: #888;
    font-size: 12px;
}

/* Switch container */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

/* Hide default checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider */
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

/* Checked (ON) */
input:checked + .slider {
    background-color: #22c55e; /* green */
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Disabled */
.switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 12px;
    margin-left: 6px;
}

.badge.mandatory {
    background: #fde68a;
    color: #92400e;
}

.badge.coming-soon {
    background: #e5e7eb;
    color: #374151;
}

/* =========================================
   Coming Soon Pill (GLOBAL, enterprise)
   Works wherever HTML has: .has-coming-soon
   ========================================= */
.has-coming-soon {
    position: relative; /* badge positioning anchor */
}

/* spacing + one-line control on the clickable text */
.has-coming-soon > a {
    display: inline-flex;
    align-items: center;
    padding-right: 92px;      /* reserve space for pill */
    white-space: nowrap;      /* keep text one line */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* maroon pill */
.has-coming-soon::after {
    content: "Coming soon";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: #7b1e2b;      /* maroon */
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.55);
    white-space: nowrap;
    pointer-events: none;
}

/* ===== Coming Soon Pill (GLOBAL, used by header + sidebar) ===== */
.has-coming-soon {
    position: relative; /* badge positioning anchor */
}

/* reserve space so text doesn't collide with pill */
.has-coming-soon > a {
    display: block;
    padding-right: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.has-coming-soon::after {
    content: "Coming soon";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: #7b1e2b;
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    white-space: nowrap;
    pointer-events: none;
}