/* Management dashboard: Feature Control toggle switches + a few layout helpers. */

.stdb-mgmt-feature-panel + .stdb-mgmt-feature-panel { margin-top: 4px; }

.stdb-mgmt-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px 18px;
}

.stdb-mgmt-feature-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--stdb-border, #e6e8ee);
    border-radius: 10px;
}

.stdb-mgmt-feature-row .dashicons { color: var(--stdb-muted, #7b8495); }

.stdb-mgmt-feature-label { flex: 1; font-size: 13.5px; font-weight: 600; }

.stdb-switch { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; flex-shrink: 0; }
.stdb-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.stdb-switch-track {
    position: absolute; inset: 0;
    background: #d7dbe4;
    border-radius: 999px;
    transition: background .18s ease;
}
.stdb-switch-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    transition: transform .18s ease;
}
.stdb-switch input:checked + .stdb-switch-track { background: #22c55e; }
.stdb-switch input:checked + .stdb-switch-track .stdb-switch-thumb { transform: translateX(18px); }
.stdb-switch input:disabled + .stdb-switch-track { opacity: .55; cursor: not-allowed; }
.stdb-switch-locked { cursor: not-allowed; }

.stdb-mgmt-quicklinks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

.stdb-mgmt-users-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

@media (max-width: 680px) {
    .stdb-mgmt-feature-grid { grid-template-columns: 1fr; }
}
