.admin-users-content {
  gap: 22px;
}

/* Employee profile v2: shared create, edit and self-profile surfaces. */
.employee-page{display:flex;flex-direction:column;gap:20px;max-width:1440px;margin:0 auto;padding-bottom:28px;color:var(--text-primary,#29263a)}
.employee-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.employee-page-head h1{margin:0 0 6px;font-size:clamp(28px,3vw,42px);line-height:1.05;letter-spacing:-.035em}
.employee-page-head p{margin:0;color:var(--text-muted,#777487);max-width:720px;line-height:1.55}
.employee-page-head>.btn{flex:0 0 auto}
.employee-form{display:flex;flex-direction:column;gap:18px;min-width:0}
.employee-form-main{display:flex;flex-direction:column;gap:16px;min-width:0}
.employee-section{border:1px solid var(--border,#e7e4f0);border-radius:16px;background:var(--surface,#fff);padding:24px;box-shadow:0 14px 40px rgba(60,44,108,.055);min-width:0}
.employee-section>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}
.employee-section h2{font-size:20px;line-height:1.2;margin:0 0 5px;letter-spacing:-.015em}
.employee-section p{margin:0;color:var(--text-muted,#777487);line-height:1.5}
.employee-personal-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:28px;align-items:start}
.employee-avatar-editor{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.employee-avatar-preview{width:112px;height:112px;border-radius:16px;display:grid;place-items:center;overflow:hidden;background:#ede9ff;color:#6047e8;font-size:30px;font-weight:800;border:1px solid #ddd5ff}
.employee-avatar-preview img{width:100%;height:100%;object-fit:cover}
.employee-avatar-button{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 13px;border:1px solid #ddd8eb;border-radius:10px;background:#fff;color:#4d475c;font-weight:700;cursor:pointer}
.employee-avatar-button:hover{border-color:#7762ec;color:#5b43db}
.employee-avatar-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.employee-remove-avatar{display:flex;align-items:center;gap:7px;color:#9b3f50;cursor:pointer;font-size:13px}
.employee-avatar-editor>small{color:var(--text-muted,#777487);line-height:1.4}
.employee-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;min-width:0}
.employee-field{display:flex;flex-direction:column;gap:7px;min-width:0;position:relative}
.employee-field>span{font-size:13px;font-weight:750;color:#4f4b5d}
.employee-field>small{font-size:12px;line-height:1.45;color:var(--text-muted,#777487)}
.employee-field input,.employee-field select{width:100%;min-height:46px;padding:0 13px;border:1px solid #dedbe8;border-radius:10px;background:#fff;color:#29263a;font:inherit;outline:none;transition:border-color .15s ease,box-shadow .15s ease}
.employee-field input::placeholder{color:#9893a7}
.employee-field input:focus,.employee-field select:focus{border-color:#7258ea;box-shadow:0 0 0 3px rgba(114,88,234,.14)}
.employee-field input[readonly]{background:#f7f6fa;color:#6c6877}
.employee-field-wide{grid-column:1/-1}
.employee-age-field output{display:flex;align-items:center;min-height:46px;padding:0 13px;border-radius:10px;background:#f5f3fb;border:1px solid #e7e2f3;font-size:16px;font-weight:750;color:#4d3cb7}
.employee-city-input-wrap{position:relative}
.employee-city-input-wrap input{padding-left:40px}
.employee-city-input-wrap>i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#7565c9;pointer-events:none}
.employee-city-options{position:absolute;z-index:30;left:0;right:0;top:75px;max-height:260px;overflow:auto;padding:6px;border:1px solid #ded9ec;border-radius:12px;background:#fff;box-shadow:0 18px 48px rgba(46,35,84,.16)}
.employee-city-options button,.employee-city-empty{display:block;width:100%;border:0;background:transparent;border-radius:8px;padding:10px 11px;text-align:left;color:#363143;font:inherit;line-height:1.35}
.employee-city-options button:hover,.employee-city-options button.is-active{background:#f0edff;color:#543bd3}
.employee-city-empty{color:#777281}
.employee-city-manual{display:flex;align-items:center;gap:8px;font-size:13px;color:#625d6c;cursor:pointer}
.employee-field .employee-city-manual input[type="checkbox"]{appearance:auto;flex:0 0 18px;width:18px!important;height:18px!important;min-width:18px;min-height:18px!important;margin:0;padding:0;border:0;border-radius:4px;box-shadow:none;accent-color:#6854e8;cursor:pointer}
.employee-city-manual span{line-height:1.3}
.employee-access-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.employee-choice{position:relative;cursor:pointer;min-width:0}
.employee-choice>input{position:absolute;opacity:0;pointer-events:none}
.employee-choice>span{display:grid;grid-template-columns:26px 1fr;gap:3px 10px;min-height:100%;padding:15px;border:1px solid #dedbe8;border-radius:12px;background:#fff}
.employee-choice i{grid-row:1/3;color:#7060c9;margin-top:2px}
.employee-choice b{font-size:14px}.employee-choice small{grid-column:2;color:#777281;line-height:1.4}
.employee-choice>input:checked+span{border-color:#745bec;background:#f2efff;box-shadow:0 0 0 2px rgba(116,91,236,.11)}
.employee-access-switch{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:14px;padding:16px;border:1px solid #dcd8e7;border-radius:12px;cursor:pointer;background:#faf9fc}
.employee-access-switch>input{position:absolute;opacity:0;pointer-events:none}
.employee-access-switch>span:last-child{display:flex;flex-direction:column;gap:3px}.employee-access-switch small{color:#716c7a}
.employee-switch-track{width:46px;height:26px;border-radius:999px;background:#aaa5b3;padding:3px;transition:background .16s ease}
.employee-switch-track i{display:block;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.2);transition:transform .16s ease}
.employee-access-switch.is-active{border-color:#bcded1;background:#f1faf6}.employee-access-switch.is-active .employee-switch-track{background:#24a976}.employee-access-switch.is-active .employee-switch-track i{transform:translateX(20px)}
.employee-access-switch.is-disabled{border-color:#edd0d5;background:#fff6f7}.employee-access-switch.is-disabled b{color:#9c3549}
.employee-technical{padding:0;overflow:visible}
.employee-technical>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;cursor:pointer;list-style:none}
.employee-technical>summary::-webkit-details-marker{display:none}.employee-technical>summary>span{display:grid;grid-template-columns:26px 1fr;gap:2px 10px}.employee-technical>summary>span>i{grid-row:1/3;color:#6751dc}.employee-technical>summary small{grid-column:2;color:#777281}
.employee-technical[open]>summary>i{transform:rotate(180deg)}.employee-technical>.employee-fields-grid{padding:0 24px 24px}.employee-telephony-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 24px 18px}.employee-telephony-status>a{margin-left:auto;color:#5e48d7;font-weight:700}.employee-technical-actions{display:flex;gap:10px;flex-wrap:wrap;padding:0 24px 24px}
.employee-sticky-actions{position:sticky;z-index:20;bottom:14px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 16px;border:1px solid #ddd8eb;border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 18px 50px rgba(49,37,89,.16);backdrop-filter:blur(12px)}
.employee-sticky-actions>div{display:flex;align-items:center;gap:10px}.employee-sticky-actions>div:first-child{flex-direction:column;align-items:flex-start;gap:2px}.employee-sticky-actions span{color:#746f7d;font-size:13px}
.employee-profile-overview{display:grid;grid-template-columns:minmax(280px,.7fr) minmax(0,1.3fr);gap:28px}.employee-profile-identity{display:flex;align-items:center;gap:16px}.employee-profile-identity h2{margin:0 0 5px}.employee-profile-identity p{margin:0}.employee-profile-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}.employee-profile-data div{padding:12px 0;border-bottom:1px solid #eeeaf4}.employee-profile-data dt{font-size:12px;color:#777281;margin-bottom:5px}.employee-profile-data dd{margin:0;font-weight:700}.employee-security-summary{display:flex;justify-content:space-between;align-items:center;gap:20px}.employee-security-summary>div:last-child{display:flex;gap:10px;flex-wrap:wrap}
.employee-invitations{margin-bottom:16px}.employee-invitation-list{display:grid;gap:8px}.employee-invitation-list>article{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid #ebe7f3;border-radius:12px;background:#fcfbff}.employee-invitation-avatar{width:44px;height:44px;border-radius:11px;display:grid;place-items:center;background:#eeeaff;color:#6048db;font-weight:800}.employee-invitation-list>article>div:nth-child(2){display:flex;flex-direction:column;gap:2px}.employee-invitation-list span,.employee-invitation-list small{color:#777281}.employee-invitation-actions{display:flex;align-items:center;gap:7px}.employee-invitation-actions form{margin:0}
.account-action-shell{width:min(760px,calc(100% - 32px));max-width:760px;margin:5vh auto;padding:30px;border-radius:16px}.account-action-brand{display:flex;align-items:center;gap:9px;margin-bottom:24px;font-size:18px}.account-action-shell h1{margin:0 0 8px}.account-action-shell>p{color:#746f7d}.account-action-error{padding:12px;border:1px solid #edc6cd;border-radius:10px;background:#fff3f5;color:#9b3347;margin-bottom:16px}.account-action-notice{padding:13px 14px;border:1px solid #d9d0ff;border-radius:10px;background:#f4f1ff;color:#4f3cb0;line-height:1.45}.account-action-form{display:flex;flex-direction:column;gap:16px;margin-top:20px}.account-action-form>label{display:flex;flex-direction:column;gap:7px}.account-action-form>label>span{font-weight:700}
@media(max-width:1024px){.employee-personal-layout{grid-template-columns:150px minmax(0,1fr)}.employee-profile-overview{grid-template-columns:1fr}.employee-sticky-actions>div:first-child{display:none}}
@media(max-width:720px){.employee-page-head,.employee-security-summary{flex-direction:column}.employee-page-head>.btn{width:100%}.employee-section{padding:18px}.employee-personal-layout{grid-template-columns:1fr}.employee-avatar-editor{align-items:flex-start;text-align:left}.employee-fields-grid,.employee-access-modes,.employee-profile-data{grid-template-columns:1fr}.employee-field-wide{grid-column:auto}.employee-sticky-actions{bottom:8px}.employee-sticky-actions>div:last-child{width:100%;display:grid;grid-template-columns:1fr 1fr}.employee-invitation-list>article{grid-template-columns:44px 1fr}.employee-invitation-actions{grid-column:1/-1;justify-content:flex-end}}
@media(prefers-reduced-motion:reduce){.employee-field input,.employee-field select,.employee-switch-track,.employee-switch-track i{transition:none}}

.admin-users-content .is-hidden {
  display: none !important;
}

.admin-users-card {
  padding: 20px;
}

.admin-users-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.admin-users-timezone {
  color: var(--text-muted);
}

.admin-user-form-shell {
  padding: 20px;
}

.admin-user-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-user-edit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-user-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
  align-items: start;
}

.admin-user-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-user-form-grid-single {
  grid-template-columns: 1fr;
}

.admin-form-full {
  grid-column: 1 / -1;
}

.admin-form-max {
  width: 100%;
  max-width: 520px;
}

.admin-note-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.admin-note-title {
  font-weight: 800;
}

.admin-note-text {
  color: var(--text-secondary);
}

.admin-help {
  color: var(--text-muted);
}

.admin-check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.admin-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.admin-user-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-users-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(140px, 0.55fr)) auto;
  gap: 12px;
  align-items: end;
}

.admin-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-filter-field input,
.admin-filter-field select {
  width: 100%;
}

.admin-filter-search {
  min-width: 240px;
}

.admin-filter-small {
  max-width: 160px;
}

.admin-filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.admin-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.admin-users-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.users-table {
  width: 100%;
  min-width: 1260px;
  border-collapse: collapse;
}

.users-table-resizable {
  table-layout: fixed;
}

.users-table-resizable col[data-col="user"] { width: 320px; }
.users-table-resizable col[data-col="role"] { width: 150px; }
.users-table-resizable col[data-col="project"] { width: 240px; }
.users-table-resizable col[data-col="status"] { width: 150px; }
.users-table-resizable col[data-col="sip"] { width: 240px; }
.users-table-resizable col[data-col="created"] { width: 170px; }
.users-table-resizable col[data-col="last_activity"] { width: 200px; }
.users-table-resizable col[data-col="actions"] { width: 124px; }

.users-table th {
  text-align: left;
  padding: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.users-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
}

.users-table-resizable th,
.users-table-resizable td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.users-col-resize-handle {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
  z-index: 2;
}

.users-col-resize-handle::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.16s ease;
}

.users-col-resize-handle:hover::after,
.users-col-resize-handle.is-dragging::after {
  background: rgba(124, 92, 255, 0.8);
}

body.users-col-resizing,
body.users-col-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.users-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.admin-users-content .user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-users-content .user-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  flex-shrink: 0;
}

.admin-users-content .user-info {
  min-width: 0;
}

.admin-users-content .user-name {
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-users-content .user-email {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-users-content .role-badge,
.admin-users-content .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
}

.admin-users-content .status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.admin-users-content .role-badge.admin {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
}

.admin-users-content .role-badge.supervisor {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}

.admin-users-content .role-badge.operator {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.admin-users-content .role-badge.client {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.admin-users-content .role-badge.ai {
  background: rgba(6, 182, 212, 0.16);
  color: var(--cyan);
}

.admin-users-content .role-badge.muted {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.admin-users-content .status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.admin-users-content .status-badge.inactive {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
}

.admin-users-content .status-badge.online {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.admin-users-content .status-badge.offline {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.admin-users-content .status-badge.working {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

.admin-users-content .status-badge.in-call {
  background: rgba(14, 165, 233, 0.22);
  color: #7dd3fc;
}

.admin-users-content .status-badge.wrap-up {
  background: rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
}

.admin-users-content .status-badge.paused {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.admin-users-content .status-badge.sip-badge.sip-disabled {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.admin-users-content .status-badge.sip-badge.sip-missing {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.admin-users-content .status-badge.sip-badge.sip-configured {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.admin-users-content .status-badge.sip-badge.sip-connected {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.admin-users-content .status-badge.sip-badge.sip-problem {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.admin-users-content .status-badge.sip-live-badge.sip-live-disabled {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.admin-users-content .status-badge.sip-live-badge.sip-live-missing {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.admin-users-content .status-badge.sip-live-badge.sip-live-ready {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.admin-users-content .status-badge.sip-live-badge.sip-live-error {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.admin-users-content .status-badge.sip-live-badge.sip-live-stale {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.admin-users-content .status-badge.sip-live-badge.sip-live-unknown {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
}

.admin-users-content .users-sip-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.admin-users-content .users-project {
  min-width: 240px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.admin-users-content .users-activity-type {
  min-width: 170px;
  font-size: 12px;
  color: var(--text-secondary);
}

.users-created {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.admin-users-content .actions-cell {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.admin-users-content .admin-inline-form {
  display: inline-flex;
}

.admin-users-content .action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-users-content .action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-light);
}

.admin-users-content .action-btn.primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.admin-users-content .action-btn.danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.admin-pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-page-btn {
  min-width: 40px;
  justify-content: center;
}

.admin-page-ellipsis {
  color: var(--text-muted);
  padding: 0 3px;
}

.admin-users-content .is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.admin-user-profile-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
}

/* Employee profile v2. Scoped to avoid inheriting legacy admin-card geometry. */
.employee-profile-page{max-width:1520px;margin:0 auto;padding-bottom:36px}
.employee-profile-page .admin-user-profile-grid{grid-template-columns:minmax(350px,.82fr) minmax(0,1.38fr);gap:20px;align-items:start}
.employee-profile-page .card{border:1px solid #e8e5f1;border-radius:24px;background:#fff;box-shadow:0 12px 34px rgba(46,36,82,.055)}
.employee-profile-page .admin-user-profile-card,.employee-profile-page .admin-user-activity-card{padding:24px}
.employee-profile-page .card-header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #eeebf5;padding-bottom:16px;margin-bottom:18px}
.employee-profile-page .card-title{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:800;color:#2d293d}
.employee-profile-page .employee-profile-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.employee-profile-page .employee-profile-card-actions .btn{min-height:38px;padding:8px 12px;font-size:13px}
.employee-profile-page .admin-user-profile-role{margin:0 0 7px}
.employee-profile-page .admin-user-profile-block{padding:4px 0 18px;margin:0 0 18px;border-bottom:1px solid #f0edf6}
.employee-profile-page .admin-user-profile-avatar{width:68px;height:68px;border-radius:20px;box-shadow:0 10px 24px rgba(105,84,245,.2)}
.employee-profile-page .admin-user-profile-name{font-size:20px;letter-spacing:-.02em}
.employee-profile-page .admin-user-profile-email{font-size:13px;margin-top:5px}
.employee-profile-page .admin-user-profile-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
.employee-profile-page .admin-user-profile-list div{min-width:0;padding:13px 0;border:0;border-bottom:1px solid #f1eef6;border-radius:0;background:transparent}
.employee-profile-page .admin-user-profile-list dt{font-size:10px;font-weight:800;letter-spacing:.085em;color:#918ba1}
.employee-profile-page .admin-user-profile-list dd{font-size:14px;font-weight:650;color:#332f42;overflow-wrap:anywhere}
.employee-profile-page .admin-role-chips{display:flex;gap:6px;flex-wrap:wrap;padding:4px;border-radius:13px;background:#f5f3fa}
.employee-profile-page .pro-chip{padding:7px 10px;border-radius:9px;color:#756f82;text-decoration:none;font-size:12px;font-weight:750}
.employee-profile-page .pro-chip.active{color:#6250ed;background:#fff;box-shadow:0 3px 10px rgba(67,50,128,.1)}
.employee-profile-page .admin-user-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 20px}
.employee-profile-page .stat-box{min-width:0;display:flex;align-items:center;gap:11px;padding:14px;border:1px solid #ece9f3;border-radius:16px;background:#fbfaff}
.employee-profile-page .stat-box-icon{flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;border-radius:11px;color:#6958ed;background:#eeebff}
.employee-profile-page .stat-box-icon.green{color:#149a6c;background:#e7f8f1}.employee-profile-page .stat-box-icon.orange{color:#c97a10;background:#fff2df}.employee-profile-page .stat-box-icon.cyan{color:#18869a;background:#e5f7fa}
.employee-profile-page .stat-box-info{min-width:0}.employee-profile-page .stat-box-value{font-size:19px;line-height:1.1;font-weight:850;color:#2d293a;white-space:nowrap}.employee-profile-page .stat-box-label{margin-top:4px;font-size:11px;color:#837d90;line-height:1.25}
.employee-profile-page .admin-users-table-wrap{width:100%;overflow:auto;border:1px solid #ece9f3;border-radius:16px}
.employee-profile-page .users-table{width:100%;min-width:780px;border-collapse:collapse;table-layout:auto}
.employee-profile-page .users-table th{padding:12px 14px;background:#f8f7fb;color:#817b8e;font-size:10px;letter-spacing:.06em;text-transform:uppercase;text-align:left}
.employee-profile-page .users-table td{padding:12px 14px;border-top:1px solid #f0edf5;font-size:12px;vertical-align:top}
.employee-profile-page .users-table td:last-child{max-width:300px;white-space:normal;overflow-wrap:anywhere;color:#777184}
.employee-profile-page .admin-user-performance-card,.employee-profile-page .admin-user-danger-zone{margin-top:20px;padding:24px}
.employee-profile-page .admin-user-danger-zone{background:#fffafa;border-color:#f1dede}

.admin-user-profile-card,
.admin-user-activity-card {
  padding: 18px;
}

.admin-user-profile-card .card-header,
.admin-user-activity-card .card-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.admin-user-profile-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 16px;
}

.admin-user-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  font-weight: 800;
  overflow: hidden;
}

.admin-user-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-user-profile-name {
  font-size: 18px;
  font-weight: 700;
}

.admin-user-profile-email {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
}

.admin-user-sip-line {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-sip-meta {
  color: var(--text-muted);
}

.admin-user-sip-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-user-profile-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-user-profile-list div {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.015);
}

.admin-user-profile-list dt {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.admin-user-profile-list dd {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.35;
}

.admin-user-stats-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-user-performance-card,
.admin-user-danger-zone {
  margin-top: 14px;
  padding: 18px;
}

.admin-user-performance-card .card-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.admin-user-daily-chart {
  display: grid;
  gap: 9px;
}

.admin-user-daily-row {
  display: grid;
  grid-template-columns: 94px minmax(100px, 1fr) 42px 64px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.admin-user-daily-row time,
.admin-user-daily-row span {
  color: var(--text-muted);
}

.admin-user-daily-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(109, 93, 251, .09);
}

.admin-user-daily-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8173ff, #5d4ce9);
}

.admin-user-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-color: rgba(199, 70, 78, .22);
}

.admin-user-danger-zone strong { color: var(--text-main); }
.admin-user-danger-zone p { margin: 5px 0 0; max-width: 720px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.admin-user-danger-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-user-danger-actions form { margin: 0; }
.admin-user-danger-actions .btn.danger { color: #a5333c; border-color: rgba(199, 70, 78, .3); background: rgba(199, 70, 78, .06); }

@media (max-width: 1300px) {
  .admin-user-edit-grid {
    grid-template-columns: 1fr;
  }

  .admin-users-filters {
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.6fr));
  }

  .admin-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .admin-users-card .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-users-filters {
    grid-template-columns: 1fr 1fr;
  }

  .admin-user-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-filter-search,
  .admin-filter-small {
    max-width: none;
  }

  .admin-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-user-profile-grid {
    grid-template-columns: 1fr;
  }

  .employee-profile-page .admin-user-profile-grid{grid-template-columns:1fr}

  .admin-user-profile-list {
    grid-template-columns: 1fr;
  }

  .admin-user-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-danger-zone { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .admin-users-filters {
    grid-template-columns: 1fr;
  }

  .admin-filter-actions {
    width: 100%;
  }

  .admin-user-stats-grid {
    grid-template-columns: 1fr;
  }

  .employee-profile-page .card-header{align-items:flex-start}
  .employee-profile-page .employee-profile-card-actions{width:100%;justify-content:flex-start}
  .employee-profile-page .admin-user-stats-grid{grid-template-columns:1fr 1fr}
  .employee-profile-page .admin-user-profile-list{grid-template-columns:1fr}

  .admin-user-daily-row { grid-template-columns: 78px minmax(70px, 1fr) 30px; }
  .admin-user-daily-row span { display: none; }
}
