/* Scoped to Settings / Employees: no rental, payment or other page styles. */
.gb-settings {--staff-bg:#f5f6f8;--staff-paper:#fff;--staff-text:#24272b;--staff-muted:#667182;--staff-line:#e8ebef;--staff-green:#56ad2a;display:grid;grid-template-columns:208px minmax(0,1fr);gap:32px;min-height:70vh;color:var(--staff-text);font-family:Inter,system-ui,-apple-system,Arial,sans-serif}
.gb-settings button,.gb-settings input,.gb-settings select {font:inherit}
.gb-settings-nav {border-right:1px solid var(--staff-line);padding:6px 20px 24px 0}
.gb-settings-nav h2 {font-size:15px;margin:0 0 24px;font-weight:650}
.gb-settings-group {margin-bottom:22px}
.gb-settings-group h3 {font-size:11px;color:var(--staff-muted);font-weight:500;margin:0 0 8px 10px}
.gb-settings-link {display:flex;align-items:center;gap:9px;width:100%;min-height:38px;padding:9px 10px;text-align:left;background:transparent;border:0;border-radius:7px;color:var(--staff-text);font-size:12px!important;cursor:pointer}
.gb-settings-link svg {flex-shrink:0}
.gb-settings-link small {font-size:9px;margin-left:auto}
.gb-settings-link.is-active {background:var(--staff-green);color:#102d05;font-weight:600}
.gb-settings-link:disabled {color:#79828e;cursor:not-allowed}
.gb-settings-link:not(:disabled):not(.is-active):hover {background:#eaf0e6}
.gb-settings-note {font-size:11px;color:var(--staff-muted);line-height:1.6;margin:28px 10px 0}
.gb-employees {max-width:1120px;min-width:0;padding-top:6px}
.gb-employees-head {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}
.gb-employees-head h1 {font-size:22px;font-weight:650;margin:0;letter-spacing:-.3px}
.gb-employees-head p {font-size:12px;color:var(--staff-muted);margin:7px 0 0;line-height:1.5}
.gb-staff-primary {display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:10px 15px;background:var(--staff-green);color:#102d05;border:1px solid var(--staff-green);border-radius:7px;font-size:13px!important;font-weight:600!important;white-space:nowrap;cursor:pointer}
.gb-staff-primary:hover {background:#4c9d24;border-color:#4c9d24}
.gb-employees-filters {display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.gb-settings .gb-employees-filters select,.gb-settings .gb-employees-table select,.gb-staff-search {min-height:38px;background:var(--staff-paper);border:1px solid var(--staff-line);border-radius:7px;color:var(--staff-text);font-size:12px;padding:8px 10px}
.gb-staff-search {display:flex;gap:8px;align-items:center;flex:1;min-width:200px;color:var(--staff-muted)}
.gb-settings .gb-staff-search input {border:0;background:transparent;outline:none;padding:0;min-width:0;width:100%;color:var(--staff-text);font-size:12px}
.gb-settings :is(button,input,select):focus-visible,.gb-staff-search:focus-within {outline:2px solid #40851e;outline-offset:2px}
.gb-employees-table-wrap {position:relative;background:var(--staff-paper);border:1px solid var(--staff-line);border-radius:12px;overflow-x:auto}
.gb-employees-table {width:100%;border-collapse:collapse;text-align:left;font-size:13px}
.gb-employees-table th {font-size:11px;color:var(--staff-muted);font-weight:500;background:#fafbfc;padding:14px 18px;text-transform:none;letter-spacing:0;white-space:nowrap}
.gb-employees-table td {padding:20px 18px;border-top:1px solid #eef0f3;vertical-align:middle}
.gb-employees-table td:first-child {width:32%;min-width:190px}
.gb-employees-table td:last-child {padding:12px 10px;width:44px}
.gb-employees-table tbody tr:hover {background:#fafcf9}
.gb-staff-name {display:block;border:0;padding:0;background:none;text-align:left;font-size:13px;font-weight:550!important;color:var(--staff-text);line-height:1.5;cursor:pointer;overflow-wrap:anywhere}
.gb-staff-name:hover {color:#376f20}
.gb-staff-meta {font-size:11px;color:var(--staff-muted);line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
.gb-settings .gb-employees-table select {width:100%;min-width:170px;max-width:240px}
.gb-staff-fixed-role {font-size:12px;color:var(--staff-muted)}
.gb-staff-access {display:block;background:none;border:0;color:#376f20;font-size:11px!important;padding:6px 0;cursor:pointer;text-align:left}
.gb-staff-badge {display:inline-block;white-space:nowrap;padding:3px 8px;border-radius:20px;font-size:11px;line-height:1.4}
.gb-staff-badge.is-active {background:#edf8ef;color:#28743a}
.gb-staff-badge.is-inactive {background:#f0f2f5;color:#596575}
.gb-staff-badge.is-pending {background:#fff5e7;color:#925916}
.gb-staff-telegram {display:flex;align-items:center;gap:6px;margin-top:7px;padding:0;border:0;background:none;color:var(--staff-muted);font-size:11px!important;white-space:nowrap;cursor:not-allowed}
.gb-staff-edit {display:grid;place-items:center;background:transparent;color:var(--staff-muted);border:0;border-radius:7px;width:38px;height:38px;cursor:pointer}
.gb-staff-edit:hover {background:#eaf0e6;color:#376f20}
.gb-staff-footer {display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:var(--staff-muted);font-size:11px;line-height:1.6;padding:16px 2px}
.gb-staff-empty {text-align:center;padding:40px 20px;color:var(--staff-muted);font-size:13px;line-height:1.6}
.gb-staff-empty h2 {font-size:15px;color:var(--staff-text);margin:0 0 8px}
.gb-staff-secondary {background:white;color:var(--staff-text);border:1px solid #dce1e7;border-radius:7px;min-height:38px;padding:8px 14px;cursor:pointer}
.gb-staff-sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.gb-settings .user-editor.drawer.open {position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:560px;max-width:calc(100vw - 32px);height:auto;max-height:calc(100dvh - 40px);border:1px solid var(--staff-line);border-radius:14px;background:var(--staff-paper);color:var(--staff-text);box-shadow:0 24px 72px #0003;animation:none;z-index:1001;display:flex;flex-direction:column}
.gb-settings>.gb-staff-editor-scrim {z-index:1000;background:#0006;animation:none;transition:none}
.gb-settings .user-editor .drawer-head {padding:22px 24px;flex-shrink:0;border-bottom:1px solid var(--staff-line)}
.gb-settings .user-editor .drawer-body {overflow-y:auto;padding:20px 24px;min-height:0}
.gb-settings .user-editor .drawer-foot {padding:16px 24px;flex-shrink:0;border-top:1px solid var(--staff-line);flex-wrap:wrap;gap:12px}
.gb-settings .user-editor .form-grid {gap:16px;display:grid;grid-template-columns:1fr 1fr}
.gb-settings .user-editor .form-grid .full {grid-column:1/-1}
.gb-settings .user-editor .form-grid label {display:flex;flex-direction:column;gap:7px;min-width:0}
.gb-settings .user-editor .form-grid label>span {font-size:12px;font-weight:500;text-transform:none;letter-spacing:0;color:var(--staff-text)}
.gb-settings .user-editor .form-grid input:not([type=checkbox]),.gb-settings .user-editor .form-grid select {width:100%;min-height:40px;border:1px solid #dce1e7;border-radius:7px;padding:9px 10px;background:white;color:var(--staff-text);font-size:13px}
.gb-settings .user-editor .btn.primary {background:var(--staff-green);color:#102d05;border-color:var(--staff-green);min-height:40px}
.gb-settings .user-editor input[type=checkbox] {appearance:auto!important;accent-color:#40851e;flex-shrink:0}
@media(max-width:700px){.gb-employees-table-wrap::before{content:'Проведите по таблице влево, чтобы увидеть все поля';display:block;padding:12px 16px;font-size:11px;line-height:1.5;color:var(--staff-muted);border-bottom:1px solid var(--staff-line)}}
.gb-staff-telegram-note {display:flex;flex-direction:column;gap:6px;padding:13px 15px;background:#f7f8fa;border-radius:8px;font-size:12px}
.gb-staff-telegram-note small {color:var(--staff-muted);line-height:1.5}
@media(max-width:1100px){.gb-settings{grid-template-columns:180px minmax(0,1fr);gap:22px}.gb-employees-head{align-items:flex-start;flex-wrap:wrap}.gb-employees-table{min-width:700px}}
@media(max-width:700px){.gb-settings{grid-template-columns:minmax(0,1fr);gap:20px}.gb-settings-nav{border-right:0;border-bottom:1px solid var(--staff-line);padding:0 0 14px}.gb-settings-nav h2{margin-bottom:12px}.gb-settings-group{display:flex;overflow-x:auto;gap:4px;margin-bottom:8px}.gb-settings-group h3{min-width:76px;margin:0;align-self:center}.gb-settings-link{width:auto;white-space:nowrap;min-height:44px}.gb-settings-note{margin:10px 0 0}.gb-employees-head{gap:14px}.gb-staff-primary{width:100%;min-height:44px}.gb-employees-filters select{flex:1;min-width:130px}.gb-staff-search{flex-basis:100%}.gb-settings .user-editor .form-grid{grid-template-columns:minmax(0,1fr)}.gb-settings .user-editor .drawer-head,.gb-settings .user-editor .drawer-body,.gb-settings .user-editor .drawer-foot{padding:16px}.gb-staff-edit{width:44px;height:44px}}
