/* KONSALTOFF CRM v97.28 · сотрудники по отделам */
.sg-tabs{display:inline-flex;gap:4px;background:#eaf0f7;border-radius:12px;padding:4px;margin:14px 0 10px}.sg-tabs button{border:0;background:none;border-radius:9px;padding:9px 18px;font:600 14px system-ui;color:#52667f;cursor:pointer}.sg-tabs button span{display:inline-block;margin-left:6px;font-size:12px;background:#d9e3ef;border-radius:999px;padding:1px 8px;color:#36526d}.sg-tabs button.active{background:#fff;color:#0b63ce;box-shadow:0 1px 4px rgba(22,50,79,.12)}.sg-tabs button.active span{background:#e3efff;color:#0b63ce}.sg-dept-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:22px 0 10px;padding:0 4px 8px;border-bottom:2px solid #dce5ef}.sg-dept-head h3{margin:0;font-size:16px;color:#12304f}.sg-dept-head span{font-size:13px;color:#6b7f96}
.sg-top{display:flex;flex-direction:column;gap:10px;margin:14px 0 10px}.sg-top .sg-tabs{margin:0;align-self:flex-start}.sg-filter{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}.sg-chips{display:flex;flex-wrap:wrap;gap:8px}.sg-chips button{border:1px solid #d5e0ec;background:#fff;border-radius:999px;padding:7px 14px;font:600 13px system-ui;color:#36526d;cursor:pointer}.sg-chips button span{display:inline-block;margin-left:5px;font-size:12px;color:#7a8ca3}.sg-chips button:hover{border-color:#0b63ce}.sg-chips button.active{background:#0b63ce;border-color:#0b63ce;color:#fff}.sg-chips button.active span{color:#d6e6fb}.sg-search{min-width:230px;padding:8px 12px;border:1px solid #cfd9e5;border-radius:10px;font:14px system-ui;background:#fff}.staff-card .staff-line.sg-extra{display:none}.staff-card.sg-open .staff-line.sg-extra{display:grid}.sg-toggle{border:1px solid #cfd9e5;background:#f4f8fd;border-radius:8px;padding:7px 12px;font:600 13px system-ui;color:#12304f;cursor:pointer}.sg-toggle:hover{border-color:#0b63ce;color:#0b63ce}
.sg-dept-grid .staff-card-actions{flex-wrap:wrap}
.sg-pool{display:flex;align-items:center;gap:8px;margin-top:8px;padding-top:8px;border-top:1px dashed #dce5ef;font-size:13px;font-weight:600;color:#12304f;cursor:pointer}.sg-pool input{width:16px;height:16px}.sg-hint{display:block;margin-top:5px;font-size:12px;font-weight:400;color:#6b7f96}
.sg-cand-del{margin-left:6px;border-color:#e8aeb5!important;color:#b62d3d!important;background:#fff7f8!important}.sg-pos-select{margin-bottom:6px}
.sg-row{display:flex;gap:6px;align-items:stretch}.sg-row select{flex:1 1 auto;min-width:0}.sg-plus{flex:0 0 44px;border:1px solid #0b63ce;background:#eef4fc;color:#0b63ce;border-radius:10px;font:700 20px/1 system-ui;cursor:pointer}.sg-plus:hover{background:#0b63ce;color:#fff}.sg-chips .sg-chip-plus{border-style:dashed;border-color:#0b63ce;color:#0b63ce;background:#f4f8fd}.sg-empty{grid-column:1/-1;padding:14px 16px;border:1px dashed #cfd9e5;border-radius:10px;color:#6b7f96;font-size:13px;background:#fff}
/* v97.63: блоки должностей внутри отдела, «＋ Должность», перевод сотрудника между отделами */
.sg-dept-head{display:flex;align-items:center;gap:12px}.sg-dept-head h3{margin-right:auto}
.sg-pos-plus{font-size:12.5px!important;padding:5px 11px!important}
.sg-pos-head{grid-column:1/-1;display:flex;align-items:baseline;gap:10px;margin:6px 0 -2px;padding:7px 12px;border-radius:8px;background:#eef4fc;color:#12304f;font-size:13.5px}
.sg-pos-head span{font-size:12px;color:#6b7f96}.sg-pos-head.empty{background:#f5f7fa;color:#8794a5}
.sg-move{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px;padding-top:10px;border-top:1px dashed #dce5ef}
.sg-move label{display:flex;flex-direction:column;gap:3px;font-size:11px;font-weight:600;text-transform:uppercase;color:#6b7f96}
.sg-move select{min-height:32px;padding:5px 8px;border:1px solid #cdd9e6;border-radius:7px;font-size:13px;text-transform:none;font-weight:400}
.sg-move .sg-cash{grid-column:1/-1;flex-direction:row!important;align-items:center;gap:8px!important;text-transform:none!important;font-size:13px!important;font-weight:500!important;color:#12304f!important}.sg-move .sg-cash input{width:16px;height:16px}

/* v97.77: «Изменить / Удалить» у своих отделов и должностей, «Удалить» у сотрудника */
.sg-mini{border:1px solid #cdd9e8;background:#fff;border-radius:7px;padding:3px 10px;font-size:12px;font-weight:600;color:#1f4f8f;cursor:pointer;margin-left:6px}.sg-mini:hover{background:#eef4fc}.sg-mini.del{color:#b42318;border-color:#f0c7c2}.sg-mini.del:hover{background:#fdecea}
.sg-pos-head .sg-mini{padding:2px 8px;font-size:11px}.staff-card-actions .sg-emp-del{margin-left:auto}

/* v97.79: компактные карточки сотрудников */
.sg-dept-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))!important;gap:10px!important}
.sg-dept-grid .staff-card{border-radius:8px;overflow:hidden}
.sg-dept-grid .staff-card-head{padding:6px 10px}.sg-dept-grid .staff-card-head h3{font-size:14px;margin:0}
.sg-dept-grid .staff-card-body{padding:5px 10px 8px}
.sg-dept-grid .staff-line{grid-template-columns:86px 1fr;padding:3px 0;font-size:12px}
.sg-dept-grid .sg-move{gap:5px 8px;margin-top:5px;padding-top:6px}.sg-dept-grid .sg-move label{font-size:10px;gap:2px}
.sg-dept-grid .sg-move select{min-height:27px;padding:2px 6px;font-size:12.5px}
.sg-dept-grid .sg-move .sg-cash{font-size:12px!important;gap:6px!important}.sg-dept-grid .sg-move .sg-cash input{width:14px;height:14px}
.sg-dept-grid .staff-card-actions{padding:6px 10px}.sg-dept-grid .staff-card-actions[data-sg-compact]{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.sg-dept-grid .staff-card-actions[data-sg-compact] button{height:25px;padding:0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important;width:100%}
.sg-dept-grid .staff-card-actions .sg-toggle{order:1}.sg-dept-grid .staff-card-actions .employee-card-link{order:2}.sg-dept-grid .staff-card-actions [data-edit-staff]{order:3}
.sg-dept-grid .staff-card-actions [data-delete-staff],.sg-dept-grid .staff-card-actions .sg-clear-off{order:4}.sg-dept-grid .staff-card-actions .v87-terminate-btn{order:5}.sg-dept-grid .staff-card-actions .sg-emp-del{order:6}
.sg-clear-off:disabled{opacity:.45;cursor:not-allowed}
.sg-pos-head{margin:4px 0 -4px;padding:5px 10px}.sg-dept-head{margin:16px 0 8px}

/* v97.80: «＋ Сотрудник» у отдела и должности */
.sg-add-emp{border-style:solid!important;background:#0b63ce!important;color:#fff!important;border-color:#0b63ce!important}.sg-mini.add{color:#0b63ce;border-color:#b9d2f1}
