.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--color-primary);
  background: #eaf3ff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  box-shadow: var(--shadow-blue);
}

.btn-teal {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
  box-shadow: 0 18px 36px rgba(17, 184, 174, 0.18);
}

.btn-success {
  color: #ffffff;
  background: var(--color-success);
}

.btn-danger {
  color: #ffffff;
  background: #dc3545;
  box-shadow: none;
}

.btn-danger:hover {
  background: #bb2d3b;
}

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: var(--color-primary);
  background: #eaf3ff;
}

.icon-box.teal {
  color: var(--color-teal);
  background: #e9fbfa;
}

.icon-box.green {
  color: var(--color-success);
  background: #ecfdf5;
}

.input,
.select,
.textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--color-text);
  background: #fbfdff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.textarea {
  min-height: 110px;
  padding: 14px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(13, 110, 253, 0.55);
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.10);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.field-wide {
  grid-column: 1 / -1;
  min-width: 0;
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-switch__track {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 50px;
  width: 50px;
  height: 28px;
  border: 1px solid #cfe0f4;
  border-radius: 999px;
  background: #eaf3ff;
  transition: background 160ms ease, border-color 160ms ease;
}

.theme-switch__track span {
  position: absolute;
  left: 4px;
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
  transition: transform 180ms ease, background 160ms ease;
}

.theme-switch input:checked + .theme-switch__track {
  border-color: rgba(13, 110, 253, 0.75);
  background: #0d6efd;
}

.theme-switch input:checked + .theme-switch__track span {
  transform: translateX(22px);
}

.theme-switch input:focus-visible + .theme-switch__track {
  outline: 3px solid rgba(13, 110, 253, 0.18);
}

.theme-switch__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.theme-switch__copy strong {
  color: inherit;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}

.theme-switch__copy small {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.theme-switch--compact {
  justify-content: center;
  width: 48px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: #edf5ff;
  box-shadow: none;
}

.theme-switch--compact:hover {
  border-color: #cfe2fb;
  background: #f4f8fd;
}

.theme-switch--compact .theme-switch__track {
  flex-basis: 36px;
  width: 36px;
  height: 22px;
}

.theme-switch--compact .theme-switch__track span {
  width: 16px;
  height: 16px;
  left: 3px;
}

.theme-switch--compact input:checked + .theme-switch__track span {
  transform: translateX(14px);
}

.theme-switch--compact .theme-switch__copy {
  display: none;
}

.theme-switch--dropdown {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 13px;
}

.theme-switch--dropdown:hover {
  background: #f4f8fd;
}

.theme-switch--settings {
  justify-content: flex-end;
  width: 100%;
  min-width: min(360px, 100%);
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: #fbfdff;
}

.app-wrap {
  position: fixed;
  inset: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
  padding: 0;
}

.app-shell {
  --current-sidebar-width: var(--sidebar-width);
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
}

.app-shell.sidebar-expanded {
  --current-sidebar-width: var(--sidebar-expanded-width);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: var(--current-sidebar-width);
  min-height: 100vh;
  padding: 16px 10px;
  overflow: hidden;
  border-right: 1px solid var(--color-line);
  background: #fbfdff;
  box-shadow: none;
  transition: width 180ms ease, padding 180ms ease;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  padding: 0;
  border: 1px solid #dce8f6;
  border-radius: 16px;
  color: var(--color-text);
  background: #ffffff;
  box-shadow: none;
  line-height: 0;
  transition: border-color 160ms ease, background 160ms ease, width 180ms ease, padding 180ms ease;
}

.sidebar__logo:hover {
  border-color: #b9d5f7;
  background: #f6faff;
}

.sidebar__logo img {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin: auto;
}

.sidebar__brand-text,
.sidebar__label {
  display: none;
  width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 140ms ease, width 180ms ease;
}

.sidebar__brand-text {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.1;
}

.sidebar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 48px;
  height: 48px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: #52647c;
  background: #edf5ff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, width 180ms ease, padding 180ms ease;
}

.sidebar__item:hover {
  border-color: #cfe2fb;
  color: #1f3f66;
  background: #f4f8fd;
}

.sidebar__item .icon {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: auto;
  overflow: visible;
}

.sidebar__item.active {
  color: #ffffff;
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: none;
}

.sidebar-expanded .sidebar {
  align-items: stretch;
  padding-right: 12px;
  padding-left: 12px;
}

.sidebar-expanded .sidebar__logo,
.sidebar-expanded .sidebar__item {
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 0 13px;
}

.sidebar-expanded .theme-switch--sidebar {
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0 14px;
}

.sidebar-expanded .theme-switch--sidebar .theme-switch__copy {
  display: grid;
  min-width: 0;
}

.sidebar-expanded .theme-switch--sidebar .theme-switch__copy strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-expanded .theme-switch--sidebar .theme-switch__track {
  flex-basis: 42px;
  width: 42px;
  height: 24px;
}

.sidebar-expanded .theme-switch--sidebar .theme-switch__track span {
  width: 18px;
  height: 18px;
}

.sidebar-expanded .theme-switch--sidebar input:checked + .theme-switch__track span {
  transform: translateX(16px);
}

.sidebar-expanded .sidebar__brand-text,
.sidebar-expanded .sidebar__label {
  display: inline-flex;
  align-items: center;
  width: auto;
  opacity: 1;
}

.sidebar-expanded .sidebar__logo img,
.sidebar-expanded .sidebar__item .icon {
  margin: 0;
}

.sidebar__spacer {
  flex: 1 1 auto;
}

.sidebar__profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 15px;
  background: #edf5ff;
  transition: border-color 160ms ease, width 180ms ease, padding 180ms ease, background 180ms ease;
}

.sidebar__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  color: var(--color-primary);
  background: #ffffff;
  font-weight: 900;
}

.sidebar__profile-name {
  width: 0;
  overflow: hidden;
  opacity: 0;
  color: #52647c;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  transition: opacity 140ms ease, width 180ms ease;
}

.sidebar-expanded .sidebar__profile {
  justify-content: flex-start;
  width: 100%;
  padding: 0 10px;
  border-color: #dce8f6;
  background: #edf5ff;
}

.sidebar-expanded .sidebar__avatar {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 13px;
  background: #ffffff;
}

.sidebar-expanded .sidebar__profile-name {
  width: auto;
  opacity: 1;
}

.main-area {
  min-width: 0;
  height: 100%;
  margin-left: var(--current-sidebar-width);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--topbar-height) + var(--shell-padding)) var(--shell-padding) var(--shell-padding);
  transition: margin-left 180ms ease;
}

.page-surface {
  min-width: 0;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--current-sidebar-width);
  z-index: 24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: var(--topbar-height);
  margin: 0;
  padding: 0 var(--shell-padding);
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  background: rgba(242, 247, 253, 0.94);
  color: #5a6b85;
  font-weight: 800;
  backdrop-filter: blur(16px);
  transition: left 180ms ease;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__brand {
  width: 174px;
  max-height: 42px;
  object-fit: contain;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-menu {
  position: relative;
}

.notification-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  color: var(--color-primary);
  background: #eaf3ff;
}

.notification-dot {
  position: absolute;
  right: 11px;
  top: 10px;
  width: 8px;
  height: 8px;
  border: 2px solid #eaf3ff;
  border-radius: 50%;
  background: var(--color-success);
}

.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 28;
  display: none;
  width: 360px;
  overflow: hidden;
  border: 1px solid rgba(220, 232, 246, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

.notification-panel.open {
  display: block;
}

.notification-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 12px;
}

.notification-panel__head strong {
  display: block;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 950;
}

.notification-panel__head span {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.notification-panel__head .btn {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 12px;
  font-size: 22px;
}

.notification-panel__body {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding: 0 14px 14px;
}

.notification-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--color-line-soft);
  border-radius: 18px;
  background: #fbfdff;
}

.notification-card.unread {
  border-color: rgba(24, 194, 198, 0.24);
  background: linear-gradient(135deg, #f2fffd, #f8fbff);
}

.notification-card__dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--color-teal);
}

.notification-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notification-card__btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  color: var(--color-primary);
  background: #ffffff;
}

.notification-card__btn .icon {
  width: 17px;
  height: 17px;
}

.notification-card__btn.danger {
  color: #dc3545;
}

:root[data-theme="dark"] .notification-card {
  border-color: #223653;
  color: #edf4ff;
  background: #101b2d;
}

:root[data-theme="dark"] .notification-card.unread {
  border-color: rgba(54, 216, 222, 0.34);
  background: #0f2435;
}

:root[data-theme="dark"] .notification-card__btn {
  border-color: #2a3f5d;
  color: #dbeafe;
  background: #13243a;
}

:root[data-theme="dark"] .notification-card__btn.danger {
  color: #fecdd3;
}

.notification-card strong {
  display: block;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 900;
}

.notification-card p {
  margin: 5px 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
}

.notification-card small {
  color: #8a9ab0;
  font-size: 11px;
  font-weight: 800;
}

.notification-panel__foot {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--color-line-soft);
}

.notification-panel__foot .btn {
  width: 100%;
}

.account-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  color: var(--color-primary);
  background: #eaf3ff;
  font-weight: 900;
  line-height: 1;
}

.account-menu {
  position: relative;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 25;
  display: none;
  width: 220px;
  padding: 10px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
}

.account-dropdown.open {
  display: grid;
  gap: 6px;
}

.account-dropdown__user {
  display: grid;
  gap: 3px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--color-line-soft);
  margin-bottom: 4px;
}

.account-dropdown__user strong {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 900;
}

.account-dropdown__user span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.account-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 10px;
  color: var(--color-text);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}

.account-dropdown button:hover {
  background: #f3f8ff;
}

.account-dropdown .icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.status-pill,
.role-badge,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--color-primary);
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 900;
}

.role-badge.owner {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
}

.role-badge.agent {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--color-success);
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.page-title {
  margin: 10px 0 6px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
}

.page-subtitle {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
}

.card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.card-pad {
  padding: 22px;
}

.card-title {
  margin: 0 0 16px;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 900;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.stat-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  min-height: 116px;
  padding: 22px 20px;
  animation: stat-in 180ms ease both;
}

.stat-card__label {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.stat-card__value {
  margin-top: 10px;
  color: var(--color-text);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.stat-card__trend {
  margin-top: 8px;
  color: var(--color-success);
  font-size: 13px;
  font-weight: 900;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.table-card {
  overflow: hidden;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 8px;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lead-table {
  width: 100%;
  border-collapse: collapse;
}

.lead-table th,
.lead-table td {
  height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid var(--color-line-soft);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.lead-table th {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.lead-table-sort {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: 0;
  text-align: left;
  text-transform: inherit;
}

.lead-table-sort em {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #d7e6f7;
  border-radius: 999px;
  color: #7b8da5;
  background: #ffffff;
  font-style: normal;
}

.lead-table-sort em:empty {
  display: none;
}

.lead-table-sort-icon {
  width: 14px;
  height: 14px;
}

.lead-table-sort.is-active {
  color: #0d6efd;
}

.lead-table-sort.is-active em {
  border-color: #b6d4fe;
  color: #0d6efd;
  background: #eff6ff;
}

.lead-table td {
  color: #1f2a44;
  font-size: 13px;
  font-weight: 650;
}

.lead-table tbody tr {
  transition: background 160ms ease;
}

.lead-table tbody tr:hover {
  background: #f8fbff;
}

.dashboard-leads-pagination {
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
}

.agents-pagination {
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
}

.owner-dashboard-page .grid-2 {
  align-items: start;
}

.row-link {
  color: var(--color-text);
  font-weight: 900;
}

.source-badge,
.status-badge,
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.source-badge {
  color: var(--color-primary);
  background: #eaf3ff;
}

.source-badge.facebook,
.source-badge.referral {
  color: #0f9f67;
  background: #e9fbf1;
}

.source-badge.google-ads {
  color: #7c3aed;
  background: #f2eaff;
}

.source-badge.instagram {
  color: #ea580c;
  background: #fff4e7;
}

.status-badge {
  color: var(--color-primary);
  background: #eaf3ff;
}

.status-badge.interesat,
.status-badge.programare,
.status-badge.propunere {
  color: #0f9f9d;
  background: #e9fbfa;
}

.status-badge.castigat {
  color: #16a34a;
  background: #ecfdf5;
}

.status-badge.pierdut {
  color: #dc2626;
  background: #fff1f2;
}

.score-badge {
  width: 34px;
  height: 34px;
  padding: 0;
  color: #16a34a;
  background: #dcfce7;
}

.score-badge.mid {
  color: #b45309;
  background: #fef3c7;
}

.score-badge.low {
  color: #dc2626;
  background: #fee2e2;
}

.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 22px 20px;
  padding: 16px 18px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: #fbfdff;
}

.mini-chart {
  width: 100%;
  height: 130px;
}

.donut {
  --value: 64%;
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: conic-gradient(var(--color-primary) var(--value), #e4eefb 0);
}

.donut::after {
  content: attr(data-label);
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-text);
  font-size: 24px;
  font-weight: 900;
}

.activity-list,
.lead-list {
  display: grid;
  gap: 12px;
}

.activity-item,
.lead-mini {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-teal);
}

.avatar-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  color: var(--color-primary);
  background: #edf5ff;
  font-weight: 900;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.kanban-column {
  min-height: 430px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: #fbfdff;
}

.kanban-title {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 96px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #ffffff;
  background: var(--color-primary);
  font-size: 13px;
  font-weight: 900;
}

.kanban-title.teal {
  background: var(--color-teal);
}

.kanban-title.green {
  background: var(--color-success);
}

.kanban-card {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.kanban-card.dragging {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-blue);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(8px);
}

.modal {
  display: grid;
  gap: 16px;
  width: min(640px, calc(100vw - 48px));
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.20);
  overflow: hidden;
}

.modal__body {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}

.logout-confirm {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.38);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity 160ms ease;
}

.logout-confirm.is-open {
  opacity: 1;
}

.logout-confirm.is-closing {
  opacity: 0;
}

.logout-confirm__dialog {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(462px, 100%);
  padding: 30px;
  border: 1px solid rgba(220, 232, 246, 0.95);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 68px rgba(15, 23, 42, 0.18);
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
}

.logout-confirm.is-open .logout-confirm__dialog {
  transform: translateY(0) scale(1);
}

.logout-confirm.is-closing .logout-confirm__dialog {
  transform: translateY(10px) scale(0.98);
}

.logout-confirm__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(220, 232, 246, 0.95);
  border-radius: 14px;
  color: #52647c;
  background: #ffffff;
}

.logout-confirm__close .icon {
  width: 18px;
  height: 18px;
}

.logout-confirm__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 22px;
  color: #ef4444;
  background: #fff1f2;
}

.logout-confirm__icon .icon {
  width: 28px;
  height: 28px;
}

.logout-confirm__content {
  text-align: center;
}

.logout-confirm__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--color-primary);
  background: #eaf3ff;
  font-size: 12px;
  font-weight: 900;
}

.logout-confirm__content h2 {
  margin: 14px 0 8px;
  color: var(--color-text);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 950;
}

.logout-confirm__content p {
  max-width: 340px;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.logout-confirm__error {
  margin-top: 12px !important;
  color: #dc2626 !important;
}

.logout-confirm__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 24px;
}

.logout-confirm__actions .btn {
  min-height: 50px;
  border-radius: 16px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 900;
}

.logout-confirm__cancel {
  border: 1px solid rgba(220, 232, 246, 0.95);
  color: #52647c;
  background: #ffffff;
}

.logout-confirm__submit {
  color: #ffffff;
  background: #ef4444;
}

.logout-confirm__submit:hover {
  background: #dc2626;
}

.agents-page {
  display: grid;
  gap: 18px;
}

.agents-page .btn,
.agents-page button,
.agent-modal-backdrop .btn,
.agent-modal-backdrop button {
  box-shadow: none;
}

.agents-page .btn:hover,
.agents-page button:hover,
.agent-modal-backdrop .btn:hover,
.agent-modal-backdrop button:hover {
  transform: none;
}

.agents-page__header {
  align-items: center;
}

.agents-add-btn,
.agents-save-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  color: #ffffff;
  background: #0d6efd;
  font-size: 14px;
  font-weight: 900;
}

.agents-add-btn:hover,
.agents-save-btn:hover {
  background: #0b5ed7;
}

.agents-secondary-btn,
.agents-clear-btn {
  min-height: 44px;
  border: 1px solid #d7e6f7;
  border-radius: 12px;
  color: #52647c;
  background: #ffffff;
}

.agents-danger-btn {
  min-height: 44px;
  border-radius: 12px;
  color: #ffffff;
  background: #dc3545;
}

.agents-danger-btn:hover {
  background: #bb2d3b;
}

.agents-table-shell {
  overflow: hidden;
  border: 1px solid #d7e6f7;
  border-radius: 16px;
  background: #ffffff;
}

.agents-table-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf2f8;
}

.agents-table-top strong {
  display: block;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 950;
}

.agents-table-top span {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 750;
}

.agents-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.agents-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.agents-table th,
.agents-table td {
  min-height: 58px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f8;
  color: #24324a;
  text-align: left;
  vertical-align: middle;
}

.agents-table th {
  color: #5f718a;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.agents-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

.agents-sort-btn em {
  display: inline-grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #d7e6f7;
  border-radius: 999px;
  padding: 0;
  color: #7b8da5;
  background: #ffffff;
  font-style: normal;
}

.agents-sort-btn em:empty {
  display: none;
}

.agents-sort-icon {
  width: 15px;
  height: 15px;
}

.agents-sort-btn.is-active {
  color: #0d6efd;
}

.agents-sort-btn.is-active em {
  border-color: #b6d4fe;
  color: #0d6efd;
  background: #eff6ff;
}

.agents-table td {
  font-size: 14px;
  font-weight: 750;
}

.agents-table tbody tr:hover td {
  background: #fbfdff;
}

.agents-filter-row th {
  background: #ffffff;
}

.agents-filter {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d7e6f7;
  border-radius: 10px;
  padding: 0 12px;
  color: var(--color-text);
  background: #ffffff;
  outline: none;
  font-size: 13px;
  font-weight: 750;
}

.agents-filter:focus {
  border-color: rgba(13, 110, 253, 0.58);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.10);
}

.agents-name {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 950;
}

.agents-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.agents-name-bar {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: var(--agent-color, #0d6efd);
}

.agents-percent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 56px;
  padding: 0 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #0d6efd;
  background: #eff6ff;
  font-weight: 950;
}

.agents-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agents-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d7e6f7;
  border-radius: 12px;
  color: #0d6efd;
  background: #ffffff;
}

.agents-icon-btn:hover {
  border-color: #b6d4fe;
  background: #f3f8ff;
}

.agents-icon-btn--danger {
  color: #dc3545;
}

.agents-icon-btn--danger:hover {
  border-color: #f1aeb5;
  background: #fff5f6;
}

.agents-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid #d7e6f7;
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  color: #6b7d95;
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.agents-switch span {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #dbeafe;
  transition: background 160ms ease;
}

.agents-switch span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  transform: translateY(-50%);
  transition: transform 160ms ease;
}

.agents-switch.is-active {
  color: #198754;
  border-color: #badbcc;
  background: #f6fff9;
}

.agents-switch.is-active span {
  background: #198754;
}

.agents-switch.is-active span::after {
  transform: translateX(20px) translateY(-50%);
  border-color: #198754;
}

.agents-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 850;
}

.agent-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.40);
  opacity: 1;
  backdrop-filter: blur(10px);
  transition: opacity 150ms ease;
}

.agent-modal-backdrop.is-closing {
  opacity: 0;
}

.agent-modal,
.agent-confirm {
  width: min(560px, 100%);
  border: 1px solid #d7e6f7;
  border-radius: 18px;
  background: #ffffff;
}

.agent-modal {
  padding: 22px;
}

.agent-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.agent-modal__head span {
  display: block;
  color: #0d6efd;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.agent-modal__head h2,
.agent-confirm h2 {
  margin: 6px 0 0;
  color: var(--color-text);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 950;
}

.agent-modal__form {
  display: grid;
  gap: 14px;
}

.agent-color-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border: 1px solid #d7e6f7;
  border-radius: 14px;
  padding: 6px 12px 6px 8px;
  background: #fbfdff;
}

.agent-color-control input {
  width: 44px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
}

.agent-color-control span {
  color: #52647c;
  font-size: 13px;
  font-weight: 850;
}

.agent-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.password-field__control {
  position: relative;
  display: block;
}

.password-field__control .input {
  padding-right: 56px;
}

.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 12px;
  transform: translateY(-50%);
}

.password-modal__notice,
.password-modal__hint {
  margin: 0;
  border: 1px solid #d7e6f7;
  border-radius: 14px;
  padding: 12px 14px;
  color: #52647c;
  background: #f8fbff;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

.password-current-card {
  display: grid;
  gap: 7px;
  border: 1px solid #d7e6f7;
  border-radius: 16px;
  padding: 14px;
  background: #fbfdff;
}

.password-current-card span {
  color: #0d6efd;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.password-current-card strong {
  color: var(--color-text);
  font-size: 18px;
  font-weight: 950;
}

.password-current-card em,
.password-current-card p {
  margin: 0;
  color: #52647c;
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 780;
}

.password-modal__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.agent-confirm {
  display: grid;
  justify-items: center;
  padding: 28px;
  text-align: center;
}

.agent-confirm__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 18px;
  color: #dc3545;
  background: #fff5f6;
}

.agent-confirm__icon .icon {
  width: 28px;
  height: 28px;
}

.agent-confirm p {
  max-width: 420px;
  margin: 10px auto 18px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 750;
}

.leads-page {
  display: grid;
  gap: 18px;
}

.leads-page .btn,
.leads-page button {
  box-shadow: none;
}

.leads-page .btn:hover,
.leads-page button:hover {
  transform: none;
}

.leads-page__header {
  align-items: center;
}

.leads-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.leads-primary-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  color: #ffffff;
  background: #0d6efd;
  font-size: 14px;
  font-weight: 900;
}

.leads-primary-btn:hover {
  background: #0b5ed7;
}

.leads-primary-btn:disabled,
.leads-secondary-btn:disabled,
.leads-clear-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.leads-secondary-btn,
.leads-clear-btn {
  min-height: 48px;
  border: 1px solid #d7e6f7;
  border-radius: 12px;
  color: #52647c;
  background: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.leads-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.leads-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  border: 1px solid #d7e6f7;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
}

.leads-metric > span {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #0d6efd;
  background: #eff6ff;
}

.leads-metric strong {
  display: block;
  color: var(--color-text);
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.leads-metric em {
  display: block;
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.leads-workbench {
  overflow: hidden;
  border: 1px solid #d7e6f7;
  border-radius: 16px;
  background: #ffffff;
}

.leads-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(4, minmax(150px, 0.7fr)) auto;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid #edf2f8;
  background: #ffffff;
}

.leads-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid #d7e6f7;
  border-radius: 12px;
  padding: 0 13px;
  color: #7b8da5;
  background: #ffffff;
}

.leads-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--color-text);
  background: transparent;
  font-size: 14px;
  font-weight: 750;
}

.leads-control {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d7e6f7;
  border-radius: 12px;
  padding: 0 12px;
  color: var(--color-text);
  background: #ffffff;
  outline: none;
  font-size: 14px;
  font-weight: 800;
}

.leads-search:focus-within,
.leads-control:focus {
  border-color: rgba(13, 110, 253, 0.58);
  outline: 3px solid rgba(13, 110, 253, 0.12);
  outline-offset: 1px;
}

.leads-filter-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 18px 16px;
  border-bottom: 1px solid #edf2f8;
}

.leads-filter-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid #d7e6f7;
  border-radius: 999px;
  padding: 0 12px;
  color: #52647c;
  background: #fbfdff;
  font-size: 12px;
  font-weight: 850;
}

.leads-filter-strip strong {
  margin-left: 4px;
  color: var(--color-text);
}

.leads-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid #edf2f8;
}

.leads-table-head strong {
  display: block;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 950;
}

.leads-table-head span {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 750;
}

.leads-page-note {
  margin-top: 0 !important;
  text-align: right;
}

.lead-db-scroll {
  width: 100%;
  overflow-x: auto;
}

.lead-db-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.lead-db-table th,
.lead-db-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f8;
  color: #24324a;
  text-align: left;
  vertical-align: middle;
}

.lead-db-table th {
  color: #5f718a;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.lead-db-table td {
  font-size: 14px;
  font-weight: 750;
}

.lead-db-table tbody tr:hover td,
.lead-db-table tbody tr.is-selected td {
  background: #fbfdff;
}

.lead-db-table tbody tr.is-assigned td:first-child {
  border-left: 4px solid var(--agent-color, #d7e6f7);
}

.lead-db-table tbody tr.is-unassigned td:first-child {
  border-left: 4px solid #d7e6f7;
}

.lead-db-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0d6efd;
}

.lead-db-sort {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  text-transform: uppercase;
}

.lead-db-sort em {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #d7e6f7;
  border-radius: 999px;
  color: #7b8da5;
  background: #ffffff;
  font-style: normal;
}

.lead-db-sort em:empty {
  display: none;
}

.lead-db-sort.is-active {
  color: #0d6efd;
}

.lead-db-sort.is-active em {
  border-color: #b6d4fe;
  color: #0d6efd;
  background: #eff6ff;
}

.lead-db-sort-icon {
  width: 15px;
  height: 15px;
}

.lead-db-name {
  display: grid;
  grid-template-columns: 5px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  gap: 4px;
  min-width: 190px;
  border: 0;
  padding: 0;
  color: var(--color-text);
  background: transparent;
  text-align: left;
}

.lead-db-name i {
  grid-row: 1 / span 2;
  align-self: stretch;
  width: 5px;
  min-height: 34px;
  border-radius: 999px;
  background: var(--agent-color, #d7e6f7);
}

.lead-db-name strong {
  grid-column: 2;
  font-size: 14px;
  font-weight: 950;
}

.lead-db-name span {
  grid-column: 2;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 750;
}

.lead-agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border: 1px solid color-mix(in srgb, var(--agent-color, #0d6efd) 34%, #ffffff);
  border-radius: 999px;
  padding: 0 11px;
  color: #263954;
  background: color-mix(in srgb, var(--agent-color, #0d6efd) 10%, #ffffff);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.lead-agent-badge i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--agent-color, #0d6efd);
}

.lead-agent-badge.is-empty {
  border-color: #d7e6f7;
  color: #6b7d94;
  background: #fbfdff;
}

.lead-agent-badge.is-empty i {
  background: #b7c8dc;
}

.lead-row-action {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d7e6f7;
  border-radius: 12px;
  color: #52647c;
  background: #ffffff;
}

.lead-row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}

.lead-row-action:hover {
  border-color: #b6d4fe;
  color: #0d6efd;
  background: #eff6ff;
}

.lead-row-action.danger:hover {
  border-color: #f1aeb5;
  color: #dc3545;
  background: #fff5f6;
}

.lead-row-action .icon {
  width: 18px;
  height: 18px;
}

.lead-db-muted {
  color: #7b8da5;
  font-size: 12px;
  font-weight: 850;
}

.lead-status-select {
  min-width: 132px;
  min-height: 38px;
  border: 1px solid #d7e6f7;
  border-radius: 999px;
  padding: 0 34px 0 12px;
  color: #24324a;
  background: #ffffff;
  outline: none;
  font-size: 12px;
  font-weight: 900;
}

.lead-status-select:focus {
  border-color: rgba(13, 110, 253, 0.58);
  outline: 3px solid rgba(13, 110, 253, 0.12);
}

.lead-call-toggle {
  display: inline-grid;
  grid-template-columns: 18px auto;
  align-items: center;
  gap: 2px 8px;
  min-width: 126px;
  min-height: 42px;
  border: 1px solid #d7e6f7;
  border-radius: 14px;
  padding: 7px 10px;
  color: #52647c;
  background: #ffffff;
  text-align: left;
}

.lead-call-toggle .icon {
  grid-row: 1 / span 2;
  width: 17px;
  height: 17px;
}

.lead-call-toggle span {
  color: #24324a;
  font-size: 12px;
  font-weight: 950;
}

.lead-call-toggle small {
  max-width: 122px;
  color: #7b8da5;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-call-toggle.is-called {
  border-color: rgba(34, 197, 94, 0.34);
  color: #11844b;
  background: #f0fdf6;
}

.lead-call-toggle.is-called span {
  color: #08713d;
}

.lead-call-toggle:hover {
  border-color: #b6d4fe;
  color: #0d6efd;
  background: #eff6ff;
}

.lead-reminder-cell {
  display: grid;
  gap: 3px;
  min-width: 150px;
  color: #52647c;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
}

.lead-reminder-cell strong {
  color: #101a2f;
  font-size: 13px;
  font-weight: 950;
}

.lead-reminder-cell em {
  max-width: 220px;
  color: #52647c;
  font-style: normal;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-reminder-cell small {
  color: #0d6efd;
  font-size: 11px;
  font-weight: 900;
}

.lead-reminder-cell.is-empty {
  color: #8a9ab0;
}

.leads-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 850;
}

.leads-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid #edf2f8;
  background: #ffffff;
}

.leads-pagination__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.leads-pagination__summary > div {
  display: grid;
  gap: 4px;
  color: #52647c;
  font-size: 12px;
  font-weight: 850;
}

.leads-pagination__summary strong {
  color: #101a2f;
  font-size: 14px;
  font-weight: 950;
}

.leads-pagination__total-mobile {
  display: none;
}

.leads-pagination__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.lead-page-btn {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid #d7e6f7;
  border-radius: 12px;
  padding: 0 10px;
  color: #52647c;
  background: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.lead-page-btn.is-active {
  border-color: #0d6efd;
  color: #ffffff;
  background: #0d6efd;
}

.lead-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lead-page-btn .icon {
  width: 17px;
  height: 17px;
}

.lead-page-dots {
  display: grid;
  place-items: center;
  min-width: 24px;
  color: #7b8da5;
  font-size: 13px;
  font-weight: 950;
}

.lead-page-current-mobile {
  display: none;
}

.leads-page-size {
  width: auto;
  min-width: 112px;
}

.lead-edit-modal-grid {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.leads-bulk-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(160px, 0.75fr) minmax(260px, 1.2fr) minmax(220px, 0.8fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid #d7e6f7;
  background: rgba(255, 255, 255, 0.98);
}

.leads-bulk-bar strong {
  display: block;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 950;
}

.leads-bulk-bar span {
  display: block;
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.leads-bulk-bar.is-active {
  background: #fbfdff;
}

.leads-assignment-picker {
  display: grid;
  gap: 8px;
}

.leads-assignment-picker > span {
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.leads-agent-palette {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.leads-agent-palette em {
  color: var(--color-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.leads-agent-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #d7e6f7;
  border-radius: 999px;
  padding: 0 12px;
  color: #263954;
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.leads-agent-choice i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--agent-color, #0d6efd);
}

.leads-agent-choice.is-active {
  border-color: color-mix(in srgb, var(--agent-color, #0d6efd) 58%, #ffffff);
  background: color-mix(in srgb, var(--agent-color, #0d6efd) 11%, #ffffff);
}

.leads-bulk-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.leads-bulk-actions .btn {
  min-width: 124px;
}

.leads-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  border: 1px solid #cfe2fb;
  border-radius: 14px;
  padding: 0 14px;
  color: #0d6efd;
  background: #eaf3ff;
  font-size: 13px;
  font-weight: 900;
}

.leads-selected-chip[hidden] {
  display: none;
}

.leads-selected-chip strong {
  color: inherit;
  font-weight: 950;
}

.lead-assign-modal {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  color: var(--color-text);
}

.lead-assign-modal__summary {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.5;
  font-weight: 750;
}

.lead-assign-modal__summary strong {
  color: var(--color-text);
  font-weight: 950;
}

.lead-assign-list {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.lead-assign-choice {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 66px;
  box-sizing: border-box;
  border: 1px solid #d7e6f7;
  border-radius: 18px;
  padding: 12px 14px;
  color: #263954;
  background: #fbfdff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 160ms ease, background 160ms ease;
}

.lead-assign-choice:has(input:checked) {
  border-color: rgba(13, 110, 253, 0.82);
  background: #f2f7ff;
}

.lead-assign-choice:has(input:checked) b {
  color: #ffffff;
  background: #0d6efd;
}

.lead-assign-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lead-assign-choice i {
  width: 12px;
  height: 44px;
  border-radius: 999px;
  background: var(--agent-color, #0d6efd);
}

.lead-assign-choice span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.lead-assign-choice strong {
  overflow: hidden;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-assign-choice em {
  color: var(--color-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.lead-assign-choice b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #0d6efd;
  background: #eaf3ff;
  font-size: 13px;
  font-weight: 950;
}

.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  gap: 10px;
}

.toast {
  width: min(360px, calc(100vw - 44px));
  padding: 14px 16px;
  border-radius: 18px;
  color: #0f5132;
  background: #ecfdf5;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

.toast.error {
  color: #991b1b;
  background: #fef2f2;
}

.toast.reminder {
  color: #075985;
  background: #e0f2fe;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--color-muted);
  font-weight: 800;
}

.leadflow-loader-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: max(22px, env(safe-area-inset-top, 0px)) 18px max(22px, env(safe-area-inset-bottom, 0px));
  color: #edf6ff;
  background:
    radial-gradient(circle at 50% 38%, rgba(79, 147, 255, 0.14), transparent 220px),
    radial-gradient(circle at 42% 56%, rgba(24, 194, 198, 0.12), transparent 180px),
    linear-gradient(180deg, #06111f 0%, #081322 100%);
  opacity: 1;
  transition: opacity 240ms ease, transform 240ms ease;
}

.leadflow-loader-screen.is-leaving {
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
}

.leadflow-loader-screen--route {
  background: rgba(6, 17, 31, 0.72);
  backdrop-filter: blur(7px);
}

.leadflow-loader-screen--route .leadflow-loader-card {
  width: min(300px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 22px;
}

.leadflow-loader-card {
  display: grid;
  justify-items: center;
  gap: 20px;
  width: min(340px, calc(100vw - 32px));
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 24px;
  background: rgba(10, 24, 42, 0.76);
  backdrop-filter: blur(18px);
  animation: loader-card-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.leadflow-loader-screen.is-leaving .leadflow-loader-card {
  animation: loader-card-out 240ms ease both;
}

.leadflow-loader-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: rgba(147, 197, 253, 0.12);
  overflow: hidden;
}

.leadflow-loader-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(from 0deg, #0d6efd 0 34%, #18c2c6 34% 58%, rgba(147, 197, 253, 0.16) 58% 100%);
  animation: loader-spin 900ms linear infinite;
}

.leadflow-loader-ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(219, 234, 254, 0.10);
  border-radius: inherit;
  background: #081322;
}

.leadflow-loader-ring img {
  position: relative;
  z-index: 1;
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  animation: loader-pulse 900ms ease-in-out infinite;
}

.leadflow-loader-copy {
  display: grid;
  gap: 7px;
  text-align: center;
}

.leadflow-loader-copy strong {
  color: #f8fbff;
  font-size: clamp(17px, 4.6vw, 22px);
  font-weight: 950;
  line-height: 1.12;
}

.leadflow-loader-copy span {
  color: #a9c6e8;
  font-size: clamp(12px, 3.2vw, 14px);
  font-weight: 800;
  line-height: 1.45;
}

:root[data-theme="light"] .leadflow-loader-screen {
  color: #0f172a;
  background:
    radial-gradient(circle at 50% 38%, rgba(13, 110, 253, 0.12), transparent 220px),
    radial-gradient(circle at 42% 56%, rgba(24, 194, 198, 0.10), transparent 180px),
    linear-gradient(180deg, #f7fbff 0%, #edf6ff 100%);
}

:root[data-theme="light"] .leadflow-loader-card {
  border-color: rgba(207, 224, 244, 0.92);
  background: rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] .leadflow-loader-ring::after {
  background: #f7fbff;
  border-color: rgba(13, 110, 253, 0.08);
}

:root[data-theme="light"] .leadflow-loader-copy strong {
  color: #0f172a;
}

:root[data-theme="light"] .leadflow-loader-copy span {
  color: #5b6d86;
}

@keyframes stat-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loader-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes loader-pulse {
  0%,
  100% {
    transform: scale(0.72);
    opacity: 0.58;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes loader-card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loader-card-out {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
}

@media (max-width: 480px) {
  .leadflow-loader-card {
    gap: 16px;
    width: min(304px, calc(100vw - 28px));
    padding: 22px;
    border-radius: 22px;
  }

  .leadflow-loader-ring {
    width: 70px;
    height: 70px;
  }

  .leadflow-loader-ring::after {
    inset: 8px;
  }

  .leadflow-loader-ring img {
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leadflow-loader-card,
  .leadflow-loader-ring::before,
  .leadflow-loader-ring img,
  .leadflow-loader-screen.is-leaving .leadflow-loader-card {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .app-wrap {
    height: 100vh;
    padding: 0;
    overflow-x: hidden;
  }

  .app-shell {
    --current-sidebar-width: 0px;
    display: block;
    min-height: 100vh;
    overflow-x: hidden;
  }

  .main-area {
    position: fixed;
    top: 82px;
    right: 0;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    left: 0;
    height: auto;
    margin-left: 0;
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }

  .page-surface,
  .content-stack,
  .card,
  .table-card,
  .page-header {
    min-width: 0;
  }

  .page-header > div {
    min-width: 0;
  }

  .page-subtitle {
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }

  .content-stack {
    gap: 14px;
  }

  .sidebar {
    position: fixed;
    inset: auto 10px calc(12px + env(safe-area-inset-bottom, 0px)) 10px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    width: auto;
    height: 66px;
    min-height: 0;
    max-height: 66px;
    padding: 7px;
    border: 1px solid var(--color-line);
    border-radius: 22px;
    background: rgba(251, 253, 255, 0.98);
    box-shadow: none;
  }

  .sidebar__logo,
  .sidebar__spacer,
  .sidebar__profile,
  .sidebar [data-logout],
  .theme-switch--sidebar {
    display: none;
  }

  .sidebar__label,
  .sidebar__brand-text {
    display: none;
  }

  .sidebar__item {
    justify-content: center;
    width: 100%;
    height: 50px;
    padding: 0;
    border-radius: 16px;
  }

  .sidebar__item .icon {
    width: 19px;
    height: 19px;
  }

  .topbar {
    position: fixed;
    top: 8px;
    left: 8px;
    right: 8px;
    z-index: 24;
    display: block;
    height: 66px;
    max-width: calc(100vw - 16px);
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
  }

  .topbar__left,
  .topbar__brand {
    min-width: 0;
  }

  .topbar__left {
    position: absolute;
    top: 10px;
    left: 12px;
    align-items: center;
    width: min(150px, calc(100vw - 132px));
    overflow: hidden;
  }

  .topbar__brand {
    width: 100%;
    max-height: 40px;
  }

  .topbar__left span {
    display: none;
  }

  .topbar__right {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
  }

  .topbar__right .btn {
    min-height: 44px;
    width: 44px;
    padding: 0;
    border-radius: 15px;
  }

  .notification-button,
  .account-button {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .logout-confirm {
    align-items: end;
    padding: 14px;
  }

  .logout-confirm__dialog {
    width: 100%;
    padding: 26px 20px 20px;
    border-radius: 24px;
  }

  .logout-confirm__content h2 {
    font-size: 24px;
  }

  .logout-confirm__actions {
    grid-template-columns: 1fr;
  }

  .notification-button {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .notification-panel {
    position: fixed;
    top: 94px;
    left: 20px;
    right: 20px;
    width: auto;
    max-height: calc(100vh - 178px);
    border-radius: 24px;
  }

  .notification-panel__body {
    max-height: calc(100vh - 330px);
  }

  .notification-panel__head .btn {
    width: 34px;
    min-height: 34px;
  }

  .notification-panel__foot .btn {
    width: 100%;
  }

  .modal-backdrop {
    align-items: end;
    place-items: end stretch;
    padding: 10px;
  }

  .modal {
    width: 100%;
    max-height: calc(100dvh - 20px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 22px;
    padding: 18px;
    box-shadow: none;
  }

  .modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal__actions .btn {
    width: 100%;
  }

  .account-dropdown {
    position: fixed;
    top: 78px;
    right: 22px;
    width: min(250px, calc(100vw - 44px));
  }

  .page-header {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
  }

  .page-title {
    margin-top: 8px;
    font-size: 25px;
  }

  .page-subtitle {
    font-size: 13px;
    line-height: 1.45;
  }

  .page-actions,
  .table-tools,
  .quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .page-actions .btn,
  .quick-actions .btn,
  .quick-actions .select,
  .table-tools .input,
  .table-tools .select {
    width: 100%;
    max-width: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
  }

  .stat-card {
    min-height: 98px;
    padding: 18px;
    border-radius: 22px;
  }

  .stat-card__value {
    font-size: 27px;
  }

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

  .card-pad {
    padding: 18px;
  }

  .card-title {
    font-size: 15px;
  }

  .table-scroll {
    overflow: visible;
  }

  .table-head {
    display: grid;
    align-items: stretch;
    padding: 18px;
  }

  .lead-table,
  .lead-table tbody,
  .lead-table tr,
  .lead-table td {
    display: block;
    width: 100%;
  }

  .lead-table thead {
    display: none;
  }

  .lead-table tbody {
    display: grid;
    gap: 12px;
    padding: 0 18px 18px;
  }

  .lead-table tr {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  }

  .lead-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 0;
    height: auto;
    padding: 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .lead-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .lead-table td.lead-table__select {
    position: absolute;
    right: 16px;
    top: 16px;
    width: auto;
  }

  .lead-table td.lead-table__select::before {
    display: none;
  }

  .lead-table .row-link {
    justify-content: flex-start;
    max-width: calc(100% - 44px);
    padding: 0;
    min-height: auto;
    color: var(--color-text);
    background: transparent;
    text-align: left;
  }

  .lead-table td[data-label="Nume"] {
    align-items: flex-start;
    padding-right: 36px;
  }

  .lead-table td[data-label="Nume"]::before {
    display: none;
  }

  .selection-bar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    margin: 14px 18px 18px;
    padding: 14px;
    border-radius: 18px;
  }

  .selection-bar .select,
  .selection-bar .btn {
    width: 100%;
  }

  .source-badge,
  .status-badge,
  .score-badge {
    min-height: 30px;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .lead-mini {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .lead-mini .status-badge {
    grid-column: 2;
    justify-self: start;
  }

  .kanban {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 2px 2px 12px;
  }

  .kanban-column {
    flex: 0 0 280px;
    min-height: 360px;
    scroll-snap-align: start;
  }

  .settings-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .agent-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }

  .report-band {
    display: grid;
    align-items: stretch;
  }

  .toast-root {
    left: 18px;
    right: 18px;
    bottom: 88px;
  }

  .toast {
    width: 100%;
  }

  .agents-page__header {
    align-items: stretch;
  }

  .agents-add-btn {
    width: 100%;
  }

  .agents-table-top {
    display: grid;
    padding: 16px;
  }

  .agents-clear-btn {
    width: 100%;
  }

  .agents-table {
    min-width: 0;
  }

  .agents-table,
  .agents-table tbody,
  .agents-table tr,
  .agents-table td {
    display: block;
    width: 100%;
  }

  .agents-table thead {
    display: grid;
    gap: 10px;
    padding: 16px 16px 0;
  }

  .agents-sort-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .agents-sort-row th {
    flex: 0 0 auto;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .agents-sort-row th:last-child {
    display: none;
  }

  .agents-sort-btn {
    min-height: 40px;
    border: 1px solid #d7e6f7;
    border-radius: 999px;
    padding: 0 10px;
    background: #ffffff;
    font-size: 11px;
  }

  .agents-sort-btn em {
    width: 24px;
    height: 24px;
  }

  .agents-filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .agents-filter-row th {
    display: block;
    padding: 0;
    border: 0;
  }

  .agents-table tbody {
    display: grid;
    gap: 12px;
    padding: 16px;
  }

  .agents-table tbody tr {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #d7e6f7;
    border-radius: 14px;
    background: #ffffff;
  }

  .agents-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 0;
    padding: 0;
    border: 0;
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .agents-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .agents-actions {
    justify-content: flex-end;
  }

  .agent-modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .agent-modal,
  .agent-confirm {
    border-radius: 18px;
  }

  .agent-modal {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 18px;
  }

  .agent-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .agent-modal__actions .btn {
    width: 100%;
  }

  .leads-page__header {
    align-items: stretch;
  }

  .leads-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .leads-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .leads-metric {
    min-height: 72px;
    padding: 12px;
  }

  .leads-metric > span {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 13px;
  }

  .leads-metric strong {
    font-size: 22px;
  }

  .leads-toolbar {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .leads-filter-strip {
    padding: 0 16px 14px;
  }

  .leads-table-head {
    display: grid;
    padding: 16px;
  }

  .leads-page-note {
    text-align: left;
  }

  .lead-db-table {
    min-width: 0;
  }

  .lead-db-table,
  .lead-db-table tbody,
  .lead-db-table tr,
  .lead-db-table td {
    display: block;
    width: 100%;
  }

  .lead-db-table thead {
    display: block;
    padding: 14px 16px 0;
  }

  .lead-db-table thead tr {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .lead-db-table thead tr::-webkit-scrollbar {
    display: none;
  }

  .lead-db-table thead th {
    flex: 0 0 auto;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .lead-db-table thead th:first-child {
    display: grid;
    place-items: center;
    min-width: 42px;
    min-height: 40px;
    border: 1px solid #d7e6f7;
    border-radius: 999px;
    background: #ffffff;
  }

  .lead-db-sort {
    min-height: 40px;
    border: 1px solid #d7e6f7;
    border-radius: 999px;
    padding: 0 10px;
    background: #ffffff;
    font-size: 11px;
    white-space: nowrap;
  }

  .lead-db-table tbody {
    display: grid;
    gap: 10px;
    padding: 12px 12px 20px;
  }

  .lead-db-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    width: 100%;
    min-width: 0;
    padding: 14px;
    border: 1px solid #d7e6f7;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
  }

  .lead-db-table td {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 4px;
    width: 100%;
    min-height: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .lead-db-table td::before {
    content: attr(data-label);
    min-width: 0;
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 950;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .lead-db-table td.lead-db-field--name,
  .lead-db-table td.lead-db-field--source,
  .lead-db-table td.lead-db-field--actions {
    grid-column: 1 / -1;
  }

  .lead-db-table td.lead-db-field--name::before {
    display: none;
  }

  .lead-db-table td.lead-db-select {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.86);
  }

  .lead-db-table td.lead-db-select input[type="checkbox"] {
    margin: 0;
  }

  .lead-db-table td.lead-db-select::before {
    display: none;
  }

  .lead-db-name {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    text-align: left;
    max-width: 100%;
    padding-right: 48px;
    grid-template-columns: 5px minmax(0, 1fr);
  }

  .lead-db-name i {
    min-height: 50px;
  }

  .lead-db-name strong,
  .lead-db-name span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  .lead-db-name strong {
    font-size: 14px;
    line-height: 1.14;
  }

  .lead-db-name span,
  .lead-db-value {
    color: #4f6078;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
  }

  .lead-db-field--email .lead-db-value,
  .lead-db-field--phone .lead-db-value {
    overflow-wrap: anywhere;
  }

  .lead-db-field--source .source-badge {
    justify-content: flex-start;
    width: 100%;
    min-height: 34px;
    padding: 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lead-agent-badge {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
    min-height: 36px;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .lead-status-select {
    justify-self: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 36px;
  }

  .lead-call-toggle {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    border-radius: 12px;
  }

  .lead-call-toggle small {
    max-width: none;
  }

  .lead-reminder-cell {
    justify-self: stretch;
    align-items: start;
    max-width: 100%;
    min-width: 0;
    text-align: left;
  }

  .lead-reminder-cell em {
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .lead-row-actions {
    justify-self: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 7px;
    padding-top: 2px;
  }

  .lead-row-action {
    flex: 1 1 38px;
    width: auto;
    height: 38px;
    border-radius: 12px;
  }

  .leads-pagination {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
  }

  .leads-pagination__summary {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 10px;
  }

  .leads-pagination__summary > div {
    gap: 2px;
  }

  .leads-pagination__summary strong {
    font-size: 13px;
  }

  .leads-pagination__summary span {
    font-size: 11px;
  }

  .leads-pagination__summary > div {
    display: flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
  }

  .leads-pagination__total {
    display: none;
  }

  .leads-pagination__total-mobile {
    display: inline;
    color: #52647c;
    font-size: 11px;
    font-weight: 900;
  }

  .leads-pagination__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: auto;
  }

  .lead-page-number,
  .lead-page-dots {
    display: none;
  }

  .lead-page-current-mobile {
    display: grid;
    place-items: center;
    min-width: 52px;
    height: 36px;
    border: 1px solid #d7e6f7;
    border-radius: 12px;
    color: #24324a;
    background: #f8fbff;
    font-size: 12px;
    font-weight: 950;
  }

  .lead-page-btn {
    min-width: 36px;
    height: 36px;
    border-radius: 12px;
    padding: 0;
  }

  .leads-page-size {
    width: 94px;
    min-width: 94px;
    min-height: 36px;
    padding: 0 30px 0 10px;
    font-size: 12px;
  }

  .lead-edit-modal-grid {
    min-width: 0;
  }

  .leads-bulk-bar {
    position: static;
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .leads-bulk-bar .btn,
  .leads-bulk-bar .leads-control {
    width: 100%;
  }

  .leads-agent-palette {
    padding-bottom: 6px;
  }

  .leads-agent-choice {
    min-height: 42px;
  }

  .leads-bulk-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .leads-selected-chip,
  .leads-actions [data-bulk-assign] {
    width: 100%;
  }

  .lead-assign-modal {
    min-width: 0;
  }

  .lead-assign-choice {
    grid-template-columns: 10px minmax(0, 1fr) 38px;
    min-height: 60px;
    border-radius: 16px;
    padding: 10px 12px;
  }

  .lead-assign-choice b {
    width: 38px;
    height: 38px;
  }
}

:root[data-theme="dark"] .app-shell {
  background: rgba(7, 17, 31, 0.86);
}

:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .topbar {
  border-color: var(--color-line);
  background: #07111f;
  box-shadow: none;
}

:root[data-theme="dark"] .topbar__brand {
  border-radius: 14px;
  padding: 5px 8px;
  background: #ffffff;
}

:root[data-theme="dark"] .sidebar__logo {
  border-color: #23364f;
  background: #0f1b2d;
  box-shadow: none;
}

:root[data-theme="dark"] .sidebar__logo .sidebar__brand-text {
  color: #edf4ff;
}

:root[data-theme="dark"] :is(
  .card,
  .stat-card,
  .table-card,
  .notification-panel,
  .account-dropdown,
  .logout-confirm__dialog,
  .modal,
  .agent-modal,
  .agent-confirm,
  .agents-table-shell,
  .leads-workbench,
  .lead-db-table tbody tr,
  .leads-pagination,
  .leads-bulk-bar,
  .lead-detail-card,
  .sales-clean-card,
  .settings-clean-card
) {
  border-color: var(--color-line);
  background: var(--color-surface);
  box-shadow: none;
}

:root[data-theme="dark"] :is(
  .sidebar__item,
  .notification-button,
  .account-button,
  .sidebar__avatar,
  .btn,
  .icon-box,
  .lead-page-btn,
  .lead-table-sort em,
  .lead-row-action,
  .agents-icon-btn,
  .leads-control,
  .input,
  .select,
  .textarea,
  .lead-status-select,
  .theme-switch--compact,
  .theme-switch--settings
) {
  border-color: var(--color-line);
  color: var(--color-text);
  background: #13233a;
  box-shadow: none;
}

:root[data-theme="dark"] :is(.btn-primary, .leads-primary-btn, .lead-page-btn.is-active, .lead-table-sort.is-active em) {
  color: #ffffff;
  background: #0d6efd;
}

:root[data-theme="dark"] .lead-table-sort.is-active {
  color: #7db7ff;
}

:root[data-theme="dark"] :is(.btn-teal) {
  color: #042325;
  background: #36d8de;
}

:root[data-theme="dark"] :is(.sidebar__item.active) {
  color: #ffffff;
  background: #0d6efd;
  box-shadow: none;
}

:root[data-theme="dark"] :is(.sidebar__item:hover, .theme-switch--compact:hover) {
  border-color: #314663;
  color: #edf4ff;
  background: #172842;
}

:root[data-theme="dark"] .sidebar__item.active:hover {
  border-color: #0d6efd;
  color: #ffffff;
  background: #0d6efd;
}

:root[data-theme="dark"] .sidebar__profile {
  border-color: transparent;
  background: #13233a;
}

:root[data-theme="dark"] .sidebar__profile-name {
  color: #dbeafe;
}

:root[data-theme="dark"] :is(.input, .select, .textarea, .leads-control, .lead-status-select)::placeholder {
  color: #7f93ad;
}

:root[data-theme="dark"] :is(.input, .select, .textarea, .leads-control, .lead-status-select):focus {
  border-color: rgba(91, 157, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(91, 157, 255, 0.14);
}

:root[data-theme="dark"] :is(
  .account-dropdown__user,
  .notification-panel__foot,
  .leads-pagination,
  .lead-db-table th,
  .lead-db-table td,
  .agents-table th,
  .agents-table td,
  .services-table th,
  .services-table td
) {
  border-color: var(--color-line);
}

:root[data-theme="dark"] :is(
  .lead-db-table th,
  .agents-table th,
  .services-table th,
  .lead-db-sort,
  .agents-sort-btn,
  .lead-db-table thead th:first-child
) {
  color: var(--color-muted);
  background: #0b1728;
}

:root[data-theme="dark"] :is(
  .account-dropdown button:hover,
  .theme-switch--dropdown:hover,
  .notification-card,
  .lead-db-table tbody tr:hover td,
  .lead-db-table tbody tr.is-selected td
) {
  background: #14243b;
}

:root[data-theme="dark"] :is(.source-badge, .status-badge, .lead-agent-badge, .lead-page-current-mobile) {
  border-color: var(--color-line);
  color: #dbeafe;
  background: #132b4c;
}

:root[data-theme="dark"] .score-badge {
  color: #fef3c7;
  background: #3d2f10;
}

:root[data-theme="dark"] .score-badge.low {
  color: #fecaca;
  background: #3b151c;
}

:root[data-theme="dark"] .score-badge.high,
:root[data-theme="dark"] .score-badge.mid {
  color: #bbf7d0;
  background: #12361f;
}

:root[data-theme="dark"] .theme-switch__track {
  border-color: #314663;
  background: #1a2b45;
}

:root[data-theme="dark"] .theme-switch__track span {
  background: #edf4ff;
}

:root[data-theme="dark"] .theme-switch input:checked + .theme-switch__track {
  border-color: #5b9dff;
  background: #0d6efd;
}

:root[data-theme="dark"] .password-modal__notice,
:root[data-theme="dark"] .password-modal__hint {
  border-color: #2a3d59;
  color: #a9bbd2;
  background: #0d1727;
}

:root[data-theme="dark"] .password-current-card {
  border-color: #2a3d59;
  background: #0d1727;
}

:root[data-theme="dark"] .password-current-card span {
  color: #93c5fd;
}

:root[data-theme="dark"] .password-current-card strong {
  color: #edf4ff;
}

:root[data-theme="dark"] .password-current-card em,
:root[data-theme="dark"] .password-current-card p {
  color: #a9bbd2;
}

:root[data-theme="dark"] .sidebar-expanded .sidebar__profile {
  border: 1px solid #2a3d59;
  color: #edf4ff;
  background: #13243a;
}

:root[data-theme="dark"] .sidebar-expanded .sidebar__avatar {
  color: #ffffff;
  background: #0b1728;
}

:root[data-theme="dark"] .sidebar-expanded .sidebar__profile-name {
  color: #dbeafe;
}

:root[data-theme="dark"] .logout-confirm {
  background: rgba(2, 6, 23, 0.76);
}

:root[data-theme="dark"] .owner-dashboard-page {
  --dash-panel: #111c2e;
  --dash-border: #2a3d59;
  --dash-border-soft: #1f314a;
  --dash-text: #f4f8ff;
  --dash-muted: #a9bbd2;
  --dash-blue: #4f93ff;
  color: var(--dash-text);
}

:root[data-theme="dark"] .owner-dashboard-page .page-header {
  align-items: center;
  border: 1px solid var(--dash-border-soft);
  border-radius: 20px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(79, 147, 255, 0.10), transparent 42%),
    var(--dash-panel);
}

:root[data-theme="dark"] .owner-dashboard-page .page-title {
  color: var(--dash-text);
}

:root[data-theme="dark"] .owner-dashboard-page .page-subtitle {
  color: var(--dash-muted);
}

:root[data-theme="dark"] .owner-dashboard-page .role-badge {
  color: #dbeafe;
  background: rgba(79, 147, 255, 0.18);
}

:root[data-theme="dark"] .owner-dashboard-page .page-actions .btn:not(.btn-primary) {
  border: 1px solid var(--dash-border);
  color: #dbeafe;
  background: #13243a;
}

:root[data-theme="dark"] .owner-dashboard-page .stat-card,
:root[data-theme="dark"] .owner-dashboard-page .table-card,
:root[data-theme="dark"] .owner-dashboard-page aside .card {
  border-color: var(--dash-border-soft);
  background: var(--dash-panel);
}

:root[data-theme="dark"] .owner-dashboard-page .stat-card {
  position: relative;
  overflow: hidden;
}

:root[data-theme="dark"] .owner-dashboard-page .stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--dash-blue);
}

:root[data-theme="dark"] .owner-dashboard-page .stat-card__label,
:root[data-theme="dark"] .owner-dashboard-page .small,
:root[data-theme="dark"] .owner-dashboard-page .muted {
  color: var(--dash-muted);
}

:root[data-theme="dark"] .owner-dashboard-page .stat-card__value,
:root[data-theme="dark"] .owner-dashboard-page .card-title,
:root[data-theme="dark"] .owner-dashboard-page .activity-item strong,
:root[data-theme="dark"] .owner-dashboard-page .grid-3 strong {
  color: var(--dash-text);
}

:root[data-theme="dark"] .owner-dashboard-page .table-head {
  border-bottom: 1px solid var(--dash-border-soft);
  background: var(--dash-panel);
}

:root[data-theme="dark"] .owner-dashboard-page .chip {
  border-color: rgba(79, 147, 255, 0.30);
  color: #bfdbfe;
  background: rgba(79, 147, 255, 0.16);
}

:root[data-theme="dark"] .owner-dashboard-page .lead-table th {
  border-bottom-color: var(--dash-border-soft);
  color: #a9bbd2;
  background: #0b1423;
}

:root[data-theme="dark"] .owner-dashboard-page .lead-table td {
  border-bottom-color: var(--dash-border-soft);
  color: #dce8f7;
  background: #101b2d;
}

:root[data-theme="dark"] .owner-dashboard-page .lead-table tbody tr:nth-child(even) td {
  background: #0d1828;
}

:root[data-theme="dark"] .owner-dashboard-page .lead-table tbody tr:hover,
:root[data-theme="dark"] .owner-dashboard-page .lead-table tbody tr:hover td,
:root[data-theme="dark"] .owner-dashboard-page .lead-table tbody tr:has(input:checked),
:root[data-theme="dark"] .owner-dashboard-page .lead-table tbody tr:has(input:checked) td {
  background: #162842;
}

:root[data-theme="dark"] .owner-dashboard-page .lead-table input[type="checkbox"] {
  accent-color: #4f93ff;
}

:root[data-theme="dark"] .owner-dashboard-page .row-link {
  color: var(--dash-text);
  background: rgba(79, 147, 255, 0.10);
}

:root[data-theme="dark"] .owner-dashboard-page .source-badge {
  border-color: rgba(79, 147, 255, 0.22);
  color: #bfdbfe;
  background: rgba(79, 147, 255, 0.16);
}

:root[data-theme="dark"] .owner-dashboard-page .score-badge {
  color: #bbf7d0;
  background: #12361f;
}

:root[data-theme="dark"] .owner-dashboard-page .score-badge.low {
  color: #fecaca;
  background: #3b151c;
}

:root[data-theme="dark"] .owner-dashboard-page .score-badge.mid {
  color: #fef3c7;
  background: #3d2f10;
}

:root[data-theme="dark"] .owner-dashboard-page .selection-bar {
  border-color: var(--dash-border-soft);
  color: var(--dash-text);
  background: #0d1727 !important;
}

:root[data-theme="dark"] .owner-dashboard-page .selection-bar strong {
  color: var(--dash-text);
}

:root[data-theme="dark"] .owner-dashboard-page .selection-bar .select {
  border-color: var(--dash-border);
  color: var(--dash-text);
  background: #0c1727;
}

@media (max-width: 780px) {
  :root[data-theme="dark"] .owner-dashboard-page .page-header {
    align-items: stretch;
    padding: 16px;
    border-radius: 18px;
  }

  :root[data-theme="dark"] .owner-dashboard-page .lead-table tbody {
    background: #0d1727;
  }

  :root[data-theme="dark"] .owner-dashboard-page .lead-table tr,
  :root[data-theme="dark"] .owner-dashboard-page .lead-table tbody tr:nth-child(even) {
    border-color: var(--dash-border-soft);
    background: #101b2d;
    box-shadow: none;
  }

  :root[data-theme="dark"] .owner-dashboard-page .lead-table tr td,
  :root[data-theme="dark"] .owner-dashboard-page .lead-table tbody tr:nth-child(even) td {
    background: transparent;
  }

  :root[data-theme="dark"] .owner-dashboard-page .lead-table td::before {
    color: #8ea3bd;
  }
}

:root[data-theme="dark"] .agents-page {
  --agents-panel: #111c2e;
  --agents-panel-2: #0f1a2b;
  --agents-panel-3: #15243a;
  --agents-border: #2a3d59;
  --agents-border-soft: #1f314a;
  --agents-text: #f4f8ff;
  --agents-muted: #a9bbd2;
  --agents-blue: #4f93ff;
  color: var(--agents-text);
}

:root[data-theme="dark"] .agents-page__header {
  align-items: center;
  border: 1px solid var(--agents-border-soft);
  border-radius: 20px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(79, 147, 255, 0.10), transparent 42%),
    var(--agents-panel);
}

:root[data-theme="dark"] .agents-page .page-title {
  color: var(--agents-text);
}

:root[data-theme="dark"] .agents-page .page-subtitle {
  color: var(--agents-muted);
}

:root[data-theme="dark"] .agents-page .role-badge {
  color: #dbeafe;
  background: rgba(79, 147, 255, 0.18);
}

:root[data-theme="dark"] .agents-add-btn,
:root[data-theme="dark"] .agents-save-btn {
  color: #ffffff;
  background: #0d6efd;
}

:root[data-theme="dark"] .agents-secondary-btn,
:root[data-theme="dark"] .agents-clear-btn {
  border-color: var(--agents-border);
  color: #dbeafe;
  background: #13243a;
}

:root[data-theme="dark"] .agents-secondary-btn:hover,
:root[data-theme="dark"] .agents-clear-btn:hover {
  border-color: rgba(79, 147, 255, 0.68);
  color: #ffffff;
  background: #18345a;
}

:root[data-theme="dark"] .agents-table-shell {
  border-color: var(--agents-border-soft);
  background: var(--agents-panel);
}

:root[data-theme="dark"] .agents-table-top {
  border-bottom-color: var(--agents-border-soft);
  background: var(--agents-panel);
}

:root[data-theme="dark"] .agents-table-top strong {
  color: var(--agents-text);
}

:root[data-theme="dark"] .agents-table-top span {
  color: var(--agents-muted);
}

:root[data-theme="dark"] .agents-table-scroll {
  background: var(--agents-panel);
}

:root[data-theme="dark"] .agents-table {
  border-collapse: separate;
  border-spacing: 0;
}

:root[data-theme="dark"] .agents-table th {
  border-bottom-color: var(--agents-border-soft);
  color: #a9bbd2;
  background: #0b1423;
}

:root[data-theme="dark"] .agents-table td {
  border-bottom-color: var(--agents-border-soft);
  color: #dce8f7;
  background: #101b2d;
}

:root[data-theme="dark"] .agents-table tbody tr:nth-child(even) td {
  background: #0d1828;
}

:root[data-theme="dark"] .agents-table tbody tr:hover td {
  background: #162842;
}

:root[data-theme="dark"] .agents-filter-row th {
  background: #0d1727;
}

:root[data-theme="dark"] .agents-filter {
  border-color: var(--agents-border);
  color: var(--agents-text);
  background: #0c1727;
}

:root[data-theme="dark"] .agents-filter::placeholder {
  color: #88a0bc;
}

:root[data-theme="dark"] .agents-filter:focus {
  border-color: rgba(79, 147, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(79, 147, 255, 0.14);
}

:root[data-theme="dark"] .agents-sort-btn {
  color: inherit;
  background: transparent;
}

:root[data-theme="dark"] .agents-sort-btn.is-active {
  color: #93c5fd;
}

:root[data-theme="dark"] .agents-sort-btn em {
  border-color: var(--agents-border);
  color: #9db4ce;
  background: #101d31;
}

:root[data-theme="dark"] .agents-sort-btn.is-active em {
  border-color: rgba(79, 147, 255, 0.62);
  color: #bfdbfe;
  background: rgba(79, 147, 255, 0.16);
}

:root[data-theme="dark"] .agents-name {
  color: var(--agents-text);
}

:root[data-theme="dark"] .agents-percent {
  border-color: rgba(79, 147, 255, 0.35);
  color: #bfdbfe;
  background: rgba(79, 147, 255, 0.16);
}

:root[data-theme="dark"] .agents-icon-btn {
  border-color: var(--agents-border);
  color: #c5d6ea;
  background: #13243a;
}

:root[data-theme="dark"] .agents-icon-btn:hover {
  border-color: rgba(79, 147, 255, 0.68);
  color: #ffffff;
  background: #18345a;
}

:root[data-theme="dark"] .agents-icon-btn--danger {
  color: #fecdd3;
}

:root[data-theme="dark"] .agents-icon-btn--danger:hover {
  border-color: rgba(251, 113, 133, 0.58);
  color: #fecdd3;
  background: #3b1420;
}

:root[data-theme="dark"] .agents-switch {
  border-color: var(--agents-border);
  color: #c4d4e8;
  background: #14243a;
}

:root[data-theme="dark"] .agents-switch span {
  background: #263a55;
}

:root[data-theme="dark"] .agents-switch span::after {
  border-color: #405875;
  background: #edf4ff;
}

:root[data-theme="dark"] .agents-switch.is-active {
  border-color: rgba(61, 220, 132, 0.42);
  color: #bbf7d0;
  background: rgba(61, 220, 132, 0.10);
}

:root[data-theme="dark"] .agents-switch.is-active span {
  background: #15945d;
}

:root[data-theme="dark"] .agents-switch.is-active span::after {
  border-color: #15945d;
}

:root[data-theme="dark"] .agents-empty {
  min-height: 180px;
  border: 1px dashed var(--agents-border);
  border-radius: 16px;
  color: var(--agents-muted);
  background:
    linear-gradient(135deg, rgba(79, 147, 255, 0.08), transparent 48%),
    #0d1727;
}

@media (max-width: 780px) {
  :root[data-theme="dark"] .agents-page__header {
    padding: 16px;
    border-radius: 18px;
  }

  :root[data-theme="dark"] .agents-sort-btn,
  :root[data-theme="dark"] .agents-filter-row th {
    border-color: var(--agents-border);
    background: #13243a;
  }

  :root[data-theme="dark"] .agents-table tbody {
    background: #0d1727;
  }

  :root[data-theme="dark"] .agents-table tbody tr,
  :root[data-theme="dark"] .agents-table tbody tr:nth-child(even) {
    border-color: var(--agents-border-soft);
    background: #101b2d;
  }

  :root[data-theme="dark"] .agents-table tbody tr td,
  :root[data-theme="dark"] .agents-table tbody tr:nth-child(even) td {
    background: transparent;
  }

  :root[data-theme="dark"] .agents-table td::before {
    color: #8ea3bd;
  }

  :root[data-theme="dark"] .agents-empty {
    min-height: 140px;
  }
}

:root[data-theme="dark"] .leads-page {
  --lead-bg: #0b1220;
  --lead-panel: #111c2e;
  --lead-panel-2: #0f1a2b;
  --lead-panel-3: #15243a;
  --lead-border: #2a3d59;
  --lead-border-soft: #1f314a;
  --lead-text: #f4f8ff;
  --lead-muted: #a9bbd2;
  --lead-blue: #4f93ff;
  color: var(--lead-text);
}

:root[data-theme="dark"] .leads-page__header {
  align-items: center;
  border: 1px solid var(--lead-border-soft);
  border-radius: 20px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(79, 147, 255, 0.10), transparent 42%),
    var(--lead-panel);
}

:root[data-theme="dark"] .leads-page .page-title {
  color: var(--lead-text);
}

:root[data-theme="dark"] .leads-page .page-subtitle {
  color: var(--lead-muted);
}

:root[data-theme="dark"] .leads-page .role-badge {
  color: #dbeafe;
  background: rgba(79, 147, 255, 0.18);
}

:root[data-theme="dark"] .leads-summary {
  gap: 14px;
}

:root[data-theme="dark"] .leads-metric {
  position: relative;
  overflow: hidden;
  border-color: var(--lead-border-soft);
  background: var(--lead-panel);
}

:root[data-theme="dark"] .leads-metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--lead-blue);
}

:root[data-theme="dark"] .leads-metric > span {
  color: #93c5fd;
  background: rgba(79, 147, 255, 0.14);
}

:root[data-theme="dark"] .leads-metric strong {
  color: var(--lead-text);
}

:root[data-theme="dark"] .leads-metric em {
  color: var(--lead-muted);
}

:root[data-theme="dark"] .leads-workbench {
  border-color: var(--lead-border-soft);
  background: var(--lead-panel);
}

:root[data-theme="dark"] .leads-toolbar {
  border-bottom-color: var(--lead-border-soft);
  background: var(--lead-panel);
}

:root[data-theme="dark"] .leads-search,
:root[data-theme="dark"] .leads-control,
:root[data-theme="dark"] .lead-status-select {
  border-color: var(--lead-border);
  color: var(--lead-text);
  background: #0c1727;
}

:root[data-theme="dark"] .leads-search {
  color: #8fb3df;
}

:root[data-theme="dark"] .leads-search input {
  color: var(--lead-text);
}

:root[data-theme="dark"] .leads-search input::placeholder {
  color: #88a0bc;
}

:root[data-theme="dark"] .leads-search:focus-within,
:root[data-theme="dark"] .leads-control:focus,
:root[data-theme="dark"] .lead-status-select:focus {
  border-color: rgba(79, 147, 255, 0.82);
  outline-color: rgba(79, 147, 255, 0.14);
  box-shadow: none;
}

:root[data-theme="dark"] .leads-secondary-btn,
:root[data-theme="dark"] .leads-clear-btn {
  border-color: var(--lead-border);
  color: #dbeafe;
  background: #13243a;
}

:root[data-theme="dark"] .leads-secondary-btn:hover,
:root[data-theme="dark"] .leads-clear-btn:hover,
:root[data-theme="dark"] .lead-row-action:hover {
  border-color: rgba(79, 147, 255, 0.68);
  color: #ffffff;
  background: #18345a;
}

:root[data-theme="dark"] .leads-primary-btn {
  color: #ffffff;
  background: #0d6efd;
}

:root[data-theme="dark"] .leads-filter-strip {
  border-bottom-color: var(--lead-border-soft);
}

:root[data-theme="dark"] .leads-filter-strip span {
  border-color: var(--lead-border);
  color: var(--lead-muted);
  background: #0c1727;
}

:root[data-theme="dark"] .leads-filter-strip strong {
  color: var(--lead-text);
}

:root[data-theme="dark"] .leads-table-head {
  border-bottom-color: var(--lead-border-soft);
  background: #0d1727;
}

:root[data-theme="dark"] .leads-table-head strong {
  color: var(--lead-text);
}

:root[data-theme="dark"] .leads-table-head span {
  color: var(--lead-muted);
}

:root[data-theme="dark"] .leads-page-note {
  align-self: center;
  border: 1px solid var(--lead-border-soft);
  border-radius: 999px;
  padding: 8px 12px;
  color: #c8d8ee;
  background: #111f33;
}

:root[data-theme="dark"] .lead-db-scroll {
  background: var(--lead-panel);
}

:root[data-theme="dark"] .lead-db-table {
  border-collapse: separate;
  border-spacing: 0;
}

:root[data-theme="dark"] .lead-db-table th {
  border-bottom-color: var(--lead-border-soft);
  color: #a9bbd2;
  background: #0b1423;
}

:root[data-theme="dark"] .lead-db-table td {
  border-bottom-color: var(--lead-border-soft);
  color: #dce8f7;
  background: #101b2d;
}

:root[data-theme="dark"] .lead-db-table tbody tr:nth-child(even) td {
  background: #0d1828;
}

:root[data-theme="dark"] .lead-db-table tbody tr:hover td,
:root[data-theme="dark"] .lead-db-table tbody tr.is-selected td {
  background: #162842;
}

:root[data-theme="dark"] .lead-db-table tbody tr.is-assigned td:first-child {
  border-left-color: var(--agent-color, #4f93ff);
}

:root[data-theme="dark"] .lead-db-table tbody tr.is-unassigned td:first-child {
  border-left-color: #415674;
}

:root[data-theme="dark"] .lead-db-table input[type="checkbox"] {
  accent-color: #4f93ff;
}

:root[data-theme="dark"] .lead-db-sort {
  color: inherit;
  background: transparent;
}

:root[data-theme="dark"] .lead-db-sort.is-active {
  color: #93c5fd;
}

:root[data-theme="dark"] .lead-db-sort em {
  border-color: var(--lead-border);
  color: #9db4ce;
  background: #101d31;
}

:root[data-theme="dark"] .lead-db-sort.is-active em {
  border-color: rgba(79, 147, 255, 0.62);
  color: #bfdbfe;
  background: rgba(79, 147, 255, 0.16);
}

:root[data-theme="dark"] .lead-db-name {
  color: var(--lead-text);
}

:root[data-theme="dark"] .lead-db-name span,
:root[data-theme="dark"] .lead-db-value,
:root[data-theme="dark"] .lead-db-muted {
  color: var(--lead-muted);
}

:root[data-theme="dark"] .lead-agent-badge {
  border-color: color-mix(in srgb, var(--agent-color, #4f93ff) 48%, #0b1220);
  color: #eef6ff;
  background: color-mix(in srgb, var(--agent-color, #4f93ff) 18%, #0b1220);
}

:root[data-theme="dark"] .lead-agent-badge.is-empty {
  border-color: var(--lead-border);
  color: #c4d4e8;
  background: #14243a;
}

:root[data-theme="dark"] .lead-call-toggle {
  border-color: var(--lead-border);
  color: #9ec5fe;
  background: #0c1727;
}

:root[data-theme="dark"] .lead-call-toggle span {
  color: #eef6ff;
}

:root[data-theme="dark"] .lead-call-toggle small {
  color: #9db4ce;
}

:root[data-theme="dark"] .lead-call-toggle.is-called {
  border-color: rgba(34, 197, 94, 0.36);
  color: #7ddfa9;
  background: rgba(34, 197, 94, 0.10);
}

:root[data-theme="dark"] .lead-call-toggle.is-called span {
  color: #c8f7da;
}

:root[data-theme="dark"] .source-badge {
  border-color: rgba(79, 147, 255, 0.22);
  color: #bfdbfe;
  background: rgba(79, 147, 255, 0.16);
}

:root[data-theme="dark"] .lead-row-action {
  border-color: var(--lead-border);
  color: #c5d6ea;
  background: #13243a;
}

:root[data-theme="dark"] .lead-row-action.danger:hover {
  border-color: rgba(251, 113, 133, 0.58);
  color: #fecdd3;
  background: #3b1420;
}

:root[data-theme="dark"] .lead-reminder-cell,
:root[data-theme="dark"] .lead-reminder-cell em {
  color: var(--lead-muted);
}

:root[data-theme="dark"] .lead-reminder-cell strong {
  color: #edf4ff;
}

:root[data-theme="dark"] .lead-reminder-cell small {
  color: #93c5fd;
}

:root[data-theme="dark"] .leads-pagination,
:root[data-theme="dark"] .leads-bulk-bar {
  border-color: var(--lead-border-soft);
  background: #0d1727;
}

:root[data-theme="dark"] .leads-pagination__summary > div,
:root[data-theme="dark"] .leads-bulk-bar span,
:root[data-theme="dark"] .leads-assignment-picker > span {
  color: var(--lead-muted);
}

:root[data-theme="dark"] .leads-pagination__summary strong,
:root[data-theme="dark"] .leads-bulk-bar strong {
  color: var(--lead-text);
}

:root[data-theme="dark"] .lead-page-btn {
  border-color: var(--lead-border);
  color: #dbeafe;
  background: #13243a;
}

:root[data-theme="dark"] .lead-page-btn.is-active {
  border-color: #0d6efd;
  color: #ffffff;
  background: #0d6efd;
}

:root[data-theme="dark"] .lead-page-dots {
  color: var(--lead-muted);
}

:root[data-theme="dark"] .lead-page-current-mobile {
  border-color: var(--lead-border);
  color: #dbeafe;
  background: #13243a;
}

:root[data-theme="dark"] .leads-agent-choice {
  border-color: var(--lead-border);
  color: #eaf2ff;
  background: #13243a;
}

:root[data-theme="dark"] .leads-agent-choice.is-active {
  border-color: color-mix(in srgb, var(--agent-color, #4f93ff) 62%, #0b1220);
  background: color-mix(in srgb, var(--agent-color, #4f93ff) 20%, #0b1220);
}

:root[data-theme="dark"] .leads-selected-chip {
  border-color: rgba(79, 147, 255, 0.42);
  color: #dbeafe;
  background: rgba(79, 147, 255, 0.15);
}

:root[data-theme="dark"] .lead-assign-choice {
  border-color: var(--lead-border);
  color: #eaf2ff;
  background: #13243a;
}

:root[data-theme="dark"] .lead-assign-choice:has(input:checked) {
  border-color: rgba(79, 147, 255, 0.88);
  background: #172842;
}

:root[data-theme="dark"] .lead-assign-choice b {
  color: #dbeafe;
  background: #0d1727;
}

:root[data-theme="dark"] .lead-assign-choice:has(input:checked) b {
  color: #ffffff;
  background: #0d6efd;
}

@media (max-width: 780px) {
  :root[data-theme="dark"] .leads-page__header {
    padding: 16px;
    border-radius: 18px;
  }

  :root[data-theme="dark"] .leads-page-note {
    border-radius: 14px;
    text-align: left;
  }

  :root[data-theme="dark"] .lead-db-table thead th:first-child,
  :root[data-theme="dark"] .lead-db-sort {
    border-color: var(--lead-border);
    background: #13243a;
  }

  :root[data-theme="dark"] .lead-db-table tbody {
    background: #0d1727;
  }

  :root[data-theme="dark"] .lead-db-table tbody tr,
  :root[data-theme="dark"] .lead-db-table tbody tr:nth-child(even) {
    border-color: var(--lead-border-soft);
    background: #101b2d;
  }

  :root[data-theme="dark"] .lead-db-table tbody tr td,
  :root[data-theme="dark"] .lead-db-table tbody tr:nth-child(even) td {
    background: transparent;
  }

  :root[data-theme="dark"] .lead-db-table td.lead-db-select {
    background: rgba(11, 18, 32, 0.82);
  }

  :root[data-theme="dark"] .lead-db-table td::before {
    color: #8ea3bd;
  }

  :root[data-theme="dark"] .lead-db-field--source .source-badge,
  :root[data-theme="dark"] .lead-agent-badge,
  :root[data-theme="dark"] .lead-status-select {
    min-height: 38px;
  }

  :root[data-theme="dark"] .leads-pagination__total-mobile {
    color: var(--lead-muted);
  }
}

@media (max-width: 780px) {
  .notification-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .notification-card__actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .theme-switch--settings {
    justify-content: flex-start;
    min-width: 0;
  }

  .theme-switch--settings .theme-switch__copy small {
    display: none;
  }
}

body.leadflow-shell-active {
  height: 100vh;
  overflow: hidden;
}

body.leadflow-shell-active .app-root {
  height: 100vh;
  overflow: hidden;
}

@media (max-width: 780px) {
  .owner-dashboard-page {
    gap: 14px;
  }

  .owner-dashboard-page .page-header {
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
  }

  .owner-dashboard-page .stats-grid,
  .agent-dashboard-page .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
  }

  .owner-dashboard-page .stat-card,
  .agent-dashboard-page .stat-card {
    min-height: 92px;
    padding: 14px;
    border-radius: 18px;
  }

  .owner-dashboard-page .stat-card__label,
  .agent-dashboard-page .stat-card__label {
    font-size: 12px;
  }

  .owner-dashboard-page .stat-card__value,
  .agent-dashboard-page .stat-card__value {
    margin-top: 6px;
    font-size: 24px;
  }

  .owner-dashboard-page .table-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .owner-dashboard-page .dashboard-assign-tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .owner-dashboard-page .dashboard-assign-tools .chip,
  .owner-dashboard-page .dashboard-agent-select,
  .owner-dashboard-page .dashboard-assign-tools .btn {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 44px;
  }

  .owner-dashboard-page .lead-table tbody {
    gap: 10px;
    padding: 12px;
  }

  .owner-dashboard-page .lead-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .owner-dashboard-page .lead-table td {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 3px;
    min-height: 0;
    padding: 0;
    text-align: left;
  }

  .owner-dashboard-page .lead-table td::before {
    font-size: 10px;
    line-height: 1.1;
    text-align: left;
  }

  .owner-dashboard-page .lead-table td.lead-table__select {
    top: 12px;
    right: 12px;
  }

  .owner-dashboard-page .lead-table td[data-label="Nume"] {
    grid-column: 1 / -1;
    min-height: 38px;
    padding-right: 38px;
  }

  .owner-dashboard-page .lead-table td[data-label="Telefon"],
  .owner-dashboard-page .lead-table td[data-label="Email"] {
    color: var(--color-text);
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .owner-dashboard-page .lead-table td[data-label="Sursa"],
  .owner-dashboard-page .lead-table td[data-label="Scor"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .owner-dashboard-page .lead-table .row-link {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    border-radius: 12px;
    padding: 7px 12px;
    background: rgba(13, 110, 253, 0.10);
    line-height: 1.15;
    white-space: normal;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .owner-dashboard-page .source-badge {
    max-width: 100%;
    min-height: 28px;
    padding: 0 10px;
    white-space: normal;
    text-align: right;
  }

  .owner-dashboard-page .score-badge {
    justify-self: end;
    width: 32px;
    height: 32px;
  }

  .owner-dashboard-page .dashboard-leads-pagination,
  .agents-pagination {
    gap: 10px;
    padding: 12px;
  }

  .owner-dashboard-page .dashboard-leads-pagination .leads-pagination__summary,
  .agents-pagination .leads-pagination__summary {
    align-items: center;
    gap: 10px;
  }

  .agents-page {
    gap: 12px;
  }

  .agents-page__header {
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
  }

  .agents-table-shell {
    border-radius: 20px;
  }

  .agents-table-top {
    gap: 12px;
    padding: 14px;
  }

  .agents-table thead {
    display: grid;
    gap: 0;
    padding: 0;
  }

  .agents-sort-row {
    display: none !important;
  }

  .agents-filter-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid var(--color-line);
    background: #fbfdff;
  }

  .agents-filter-row th:nth-child(5) {
    grid-column: 1 / -1;
  }

  .agents-filter-row th {
    display: block !important;
    width: 100%;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .agents-filter {
    min-height: 44px;
    border-radius: 13px;
    font-size: 13px;
  }

  .agents-table tbody {
    gap: 12px;
    padding: 12px;
  }

  .agents-table tbody tr {
    gap: 9px;
    padding: 14px;
    border-radius: 18px;
  }

  .agents-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    min-height: 30px;
    text-align: right;
  }

  .agents-table td::before {
    align-self: center;
    text-align: left;
  }

  .agents-name-wrap {
    justify-content: flex-end;
  }

  .agents-name {
    text-align: right;
    overflow-wrap: anywhere;
  }

  .agents-switch,
  .agents-percent {
    justify-self: end;
  }

  .agents-actions {
    justify-content: flex-end;
    gap: 8px;
  }

  .agents-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}

@media (max-width: 390px) {
  .owner-dashboard-page .stats-grid,
  .agent-dashboard-page .stats-grid {
    grid-template-columns: 1fr;
  }

  .owner-dashboard-page .lead-table tbody tr,
  .agents-table tbody tr {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="dark"] .activities-page {
  color: #edf4ff;
}

:root[data-theme="dark"] .activities-page .page-title,
:root[data-theme="dark"] .activities-page .card-title,
:root[data-theme="dark"] .activities-notification strong {
  color: #f8fbff;
}

:root[data-theme="dark"] .activities-page .page-subtitle {
  color: #a9bbd2;
}

@media (max-width: 780px) {
  :root[data-theme="dark"] .agents-filter-row {
    border-bottom-color: var(--agents-border-soft);
    background: #0d1727;
  }

  :root[data-theme="dark"] .agents-filter-row th {
    background: transparent !important;
  }
}

@media (max-width: 780px) {
  .agents-table tbody {
    gap: 10px;
    padding: 10px;
  }

  .agents-table tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 12px;
    border-radius: 17px;
  }

  .agents-table td {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    min-height: 0;
    padding: 0;
    text-align: left;
  }

  .agents-table td::before {
    color: var(--color-muted);
    font-size: 10px;
    line-height: 1.1;
    text-align: left;
  }

  .agents-table td:nth-child(1),
  .agents-table td:nth-child(6) {
    grid-column: 1 / -1;
  }

  .agents-table td:nth-child(1) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
  }

  .agents-table td:nth-child(1)::before {
    display: none;
  }

  .agents-name-wrap {
    justify-content: flex-start;
    width: 100%;
  }

  .agents-name {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.2;
    text-align: left;
  }

  .agents-name-bar {
    width: 4px;
    height: 32px;
  }

  .agents-table td:nth-child(2),
  .agents-table td:nth-child(3) {
    min-width: 0;
    color: var(--color-text);
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .agents-table td:nth-child(4),
  .agents-table td:nth-child(5) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .agents-table td:nth-child(6) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 40px;
  }

  .agents-table td:nth-child(6)::before {
    display: none;
  }

  .agents-percent {
    min-width: 48px;
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }

  .agents-switch {
    gap: 7px;
    min-height: 32px;
    padding: 3px 10px 3px 3px;
    font-size: 11px;
  }

  .agents-switch span {
    width: 42px;
    height: 24px;
  }

  .agents-switch span::after {
    left: 3px;
    width: 18px;
    height: 18px;
  }

  .agents-switch.is-active span::after {
    transform: translateX(18px) translateY(-50%);
  }

  .agents-actions {
    justify-content: flex-end;
    gap: 7px;
  }

  .agents-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
}

@media (max-width: 390px) {
  .agents-table tbody tr {
    padding: 11px;
  }

  .agents-filter-row {
    padding: 12px;
  }

  .agents-filter {
    min-height: 42px;
  }
}
