/*
 * Staff screen (wp-admin).
 *
 * Was printed inline in admin/views/staff.php on every page load. Moved to a
 * real stylesheet so it is cached between visits, minified by the build, and
 * covered by the asset-integrity gate -- none of which applies to CSS living
 * inside a PHP template.
 */
.sbs-admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.sbs-admin-table-wrap .wp-list-table {
    min-width: 900px;
}
#sbs-staff-table tr.is-selected td {
    background: #f0fdf4 !important;
}
.sbs-portal-access {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fafafa;
    max-width: 620px;
}
.sbs-portal-access-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}
.sbs-portal-access-row + .sbs-portal-access-row {
    border-top: 1px solid #ececec;
}
.sbs-portal-access-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.sbs-pin-state {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}
.sbs-pin-state.is-set { color: #16a34a; font-weight: 600; }
.sbs-pin-length-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    white-space: nowrap;
}
.sbs-portal-toggle {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0 2px;
    border-top: 1px solid #ececec;
}
.sbs-portal-toggle input[type="checkbox"] { margin-top: 3px; }
.sbs-portal-toggle .sbs-portal-hint { display: block; margin: 2px 0 0; font-size: 12px; }
.sbs-portal-toggle input:disabled + span strong { color: #6b7280; } /* 4.6.2: contrast - was #9ca3af. Disabled labels are WCAG-exempt but were unreadable. */
#sbs-staff-modal-remove-pin { color: #b32d2e; }

.sbs-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.sbs-toggle input { display: none; }
.sbs-toggle-slider {
    position: relative;
    width: 42px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    transition: background .2s;
    flex-shrink: 0;
}
.sbs-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: right .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.sbs-toggle input:checked + .sbs-toggle-slider { background: #10B981; }
.sbs-toggle input:checked + .sbs-toggle-slider::after { right: 21px; }
.sbs-toggle-label { font-size: 13px; color: #555; min-width: 42px; }
.sbs-toggle input:checked ~ .sbs-toggle-label { color: #10B981; font-weight: 600; }
.sbs-saving { opacity: .5; pointer-events: none; }
