:root {
  --gt-bg: #eef5f3;
  --gt-surface: #ffffff;
  --gt-sidebar: #0b3d3a;
  --gt-sidebar-hover: rgba(255, 255, 255, 0.08);
  --gt-sidebar-active: rgba(45, 212, 191, 0.18);
  --gt-text: #12312f;
  --gt-muted: #5b736f;
  --gt-border: #d7e5e1;
  --gt-accent: #0f766e;
  --gt-accent-dark: #0b5f59;
  --gt-accent-2: #14b8a6;
  --gt-gold: #f59e0b;
  --gt-shadow: 0 10px 28px rgba(15, 61, 58, 0.07);
  --gt-radius: 12px;
  --gt-topbar: 60px;
  --gt-sidebar-w: 232px;
  --gt-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

html, body {
  font-family: var(--gt-font) !important;
  background: var(--gt-bg) !important;
  color: var(--gt-text);
}

body {
  min-height: 100vh;
}

a {
  color: var(--gt-accent);
}

a:hover {
  color: var(--gt-accent-dark);
}

/* Top bar */
.navbar.navbar-dark.bg-dark {
  background: linear-gradient(90deg, #0b3d3a 0%, #0f766e 100%) !important;
  min-height: var(--gt-topbar);
  padding: 0.5rem 1rem;
  box-shadow: 0 6px 20px rgba(11, 61, 58, 0.22);
  z-index: 1030;
}

.navbar .navbar-brand,
.navbar-dark .gt-brand {
  display: flex !important;
  align-items: center;
  gap: 10px;
  max-width: none;
  padding: 0 0.4rem;
  margin-right: 16px;
  color: #fff !important;
  text-decoration: none !important;
}

.navbar .navbar-brand img,
.gt-brand-img {
  height: 34px;
  width: auto;
  max-height: 34px;
  max-width: 220px;
  object-fit: contain;
}

.gt-brand-mark {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  border-radius: 9px;
  flex-shrink: 0;
  object-fit: cover;
}

.gt-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.gt-brand-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.gt-brand-text span {
  color: #5eead4;
}

.gt-brand-sub {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fcd34d;
}

.navbar-dark .nav-link,
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 500;
}

.navbar.bg-light,
.navbar.navbar-light,
.navbar.bg-primary.bg-light {
  background: #fff !important;
  border: 1px solid var(--gt-border);
  border-radius: 10px;
  margin-bottom: 16px;
  padding: 6px 12px;
  box-shadow: none;
}

.navbar.bg-light .navbar-brand,
.navbar.navbar-light .navbar-brand,
.navbar.bg-primary.bg-light .navbar-brand {
  color: var(--gt-accent) !important;
}

.navbar.bg-light .nav-link,
.navbar.navbar-light .nav-link,
.navbar.bg-primary.bg-light .nav-link,
.navbar.bg-light .navbar-nav .nav-link,
.navbar.navbar-light .navbar-nav .nav-link,
.navbar.bg-primary.bg-light .navbar-nav .nav-link {
  color: #12312f !important;
  font-weight: 600;
  padding: 8px 12px !important;
  border-radius: 8px;
}

.navbar.bg-light .nav-link:hover,
.navbar.navbar-light .nav-link:hover,
.navbar.bg-primary.bg-light .nav-link:hover {
  color: var(--gt-accent-dark) !important;
  background: #e6f7f4;
}

.navbar.bg-light .nav-item.active > .nav-link,
.navbar.navbar-light .nav-item.active > .nav-link,
.navbar.bg-primary.bg-light .nav-item.active > .nav-link {
  color: var(--gt-accent-dark) !important;
  background: #ccfbf1;
}

.navbar .staff-profile-image-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.22);
}

#statusSwitcher {
  width: 140px !important;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(15, 118, 110, 0.9) !important;
  color: #fff !important;
  font-size: 13px;
  padding: 0 12px;
  font-weight: 700;
  text-transform: capitalize;
}

#statusSwitcher option {
  color: #12312f;
}

.navbar .dropdown-menu {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 61, 58, 0.16);
  padding: 8px;
}

.navbar .dropdown-item {
  border-radius: 8px;
  padding: 8px 12px;
}

.navbar .dropdown-item:hover {
  background: #e6f7f4;
  color: var(--gt-accent-dark);
}

/* Layout */
.wrapper {
  min-height: calc(100vh - var(--gt-topbar));
  background: var(--gt-bg);
}

#sidebar {
  min-width: var(--gt-sidebar-w) !important;
  max-width: var(--gt-sidebar-w) !important;
  background: var(--gt-sidebar) !important;
  color: #fff !important;
}

#sidebar .sidebar-sticky {
  height: calc(100vh - var(--gt-topbar));
  padding: 16px 12px 28px;
}

#sidebar ul.components {
  border-bottom: 0 !important;
}

#sidebar ul li a {
  color: rgba(255, 255, 255, 0.82) !important;
  padding: 10px 12px !important;
  border-radius: 8px;
  margin: 2px 0;
  font-weight: 500;
  font-size: 13.5px !important;
  display: flex;
  align-items: center;
}

#sidebar ul li a .menu-icon {
  width: 18px;
  margin-right: 10px;
  text-align: center;
}

#sidebar ul li a:hover {
  background: var(--gt-sidebar-hover) !important;
  color: #fff !important;
}

#sidebar ul li.active > a,
#sidebar a[aria-expanded="true"] {
  background: var(--gt-sidebar-active) !important;
  color: #99f6e4 !important;
  border-left: 0 !important;
  font-weight: 650 !important;
  box-shadow: inset 3px 0 0 var(--gt-accent-2);
}

#sidebar ul ul a {
  background: transparent !important;
  padding-left: 40px !important;
}

#sidebar ul.CTAs,
#sidebar a.article {
  display: none !important;
}

#content {
  width: 100%;
  min-width: 0;
  background: transparent;
}

#content > div[style] {
  margin-left: 18px !important;
  margin-right: 18px !important;
}

.main-content,
.white-background {
  background: var(--gt-surface) !important;
  border: 1px solid var(--gt-border);
  border-radius: var(--gt-radius);
  box-shadow: var(--gt-shadow) !important;
  padding: 20px !important;
  overflow: visible;
}

.main-content h5,
.main-content h4,
.main-content h3 {
  font-weight: 700;
}

.main-content hr {
  border-top-color: var(--gt-border);
}

/* Buttons */
.btn {
  border-radius: 8px !important;
  font-weight: 600;
}

.btn-primary {
  background: var(--gt-accent) !important;
  border-color: var(--gt-accent-dark) !important;
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--gt-accent-dark) !important;
}

/* Forms */
.form-control,
.select2-container--bootstrap .select2-selection {
  border-radius: 8px !important;
  border-color: #cfe0db !important;
}

.form-control:focus {
  border-color: var(--gt-accent-2) !important;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18) !important;
}

label {
  font-weight: 600;
  color: #345652;
  font-size: 12.5px;
}

/* Stats */
.stat-block .bd-highlight {
  border: 1px solid var(--gt-border) !important;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
  text-align: center;
}

.stat-block .bd-highlight h5 {
  margin-bottom: 2px;
  color: var(--gt-accent);
  font-weight: 800;
}

/* DataTables — keep header/body columns aligned with scrollX */
.dataTables_wrapper {
  position: relative;
  width: 100%;
}

div.dataTables_wrapper div.dataTables_processing {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden;
  z-index: 6;
}

div.dataTables_wrapper div.dataTables_processing::before {
  content: "";
  display: block;
  height: 2px;
  width: 32%;
  border-radius: 999px;
  background: var(--gt-accent);
  animation: gt-dt-load 0.9s ease-in-out infinite;
}

@keyframes gt-dt-load {
  0% { transform: translateX(-40%); }
  100% { transform: translateX(340%); }
}

.dataTables_scroll {
  width: 100% !important;
}

.dataTables_scrollHead {
  overflow: hidden !important;
}

.dataTables_scrollBody {
  overflow-x: auto !important;
  overflow-y: auto !important;
}

.dataTables_scrollHeadInner,
.dataTables_scrollHeadInner table,
.dataTables_scrollBody table {
  margin: 0 !important;
}

table.dataTable,
table.dataTable.no-footer,
.table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

table.dataTable thead th,
table.dataTable tbody td,
.table thead th,
.table tbody td {
  box-sizing: border-box !important;
  padding: 8px 10px !important;
  font-size: 13px;
  vertical-align: middle !important;
}

table.dataTable thead th,
.table thead th {
  background: #f4faf8 !important;
  color: #345652 !important;
  border-bottom: 1px solid var(--gt-border) !important;
  font-weight: 700 !important;
  font-size: 12px;
  white-space: nowrap !important;
}

table.dataTable tbody td,
.table tbody td {
  white-space: nowrap;
  border-top: 1px solid var(--gt-border) !important;
  overflow: visible;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: #f8fcfb;
}

.dataTables_wrapper .dt-buttons {
  margin-bottom: 10px;
}

.page-item.active .page-link {
  background: var(--gt-accent) !important;
  border-color: var(--gt-accent) !important;
}

.page-link {
  color: var(--gt-accent);
}

.badge-primary,
.label-primary {
  background: var(--gt-accent) !important;
}

.bottom-toolbar .btn-primary {
  min-width: 128px;
  height: 40px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.25);
}

/* Login */
.gt-login-body {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(251, 191, 36, 0.22), transparent 52%),
    radial-gradient(700px 380px at 90% 10%, rgba(45, 212, 191, 0.18), transparent 48%),
    linear-gradient(155deg, #072624 0%, #0b3d3a 48%, #0f766e 100%) !important;
}

.gt-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.gt-login-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  animation: gt-rise 0.55s ease-out both;
}

@keyframes gt-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gt-login-hero {
  background: linear-gradient(135deg, #0b3d3a, #0f766e 70%, #14b8a6);
  color: #fff;
  padding: 28px 28px 22px;
  position: relative;
  overflow: hidden;
}

.gt-login-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.18);
}

.gt-login-hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 700;
}

.gt-login-hero h3 {
  margin: 4px 0 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gt-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.gt-login-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.gt-login-body-inner {
  padding: 26px 28px 30px;
}

.gt-login-body-inner .form-control {
  height: 44px;
  font-size: 14px;
}

.gt-login-body-inner .btn-primary {
  height: 46px;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gt-login-body-inner .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.28);
}

.gt-login-body-inner .help-block {
  color: #e11d48;
  font-size: 12px;
}

.gt-login-body-inner .btn-link {
  color: var(--gt-accent);
  font-weight: 600;
}

@media (max-width: 767px) {
  .navbar .navbar-brand.col-sm-3 {
    display: flex !important;
  }

  #sidebar {
    min-width: 100% !important;
    max-width: 100% !important;
  }
}

/* Team Members page */
.gt-members-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.gt-members-head h5 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gt-members-sub {
  margin: 4px 0 0;
  color: var(--gt-muted);
  font-size: 13px;
}

.gt-traffic-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f4faf8;
  border: 1px solid var(--gt-border);
}

.gt-traffic-switch > span {
  font-weight: 700;
  font-size: 13px;
}

.gt-traffic-switch #global_traffic_toggle {
  min-width: 52px;
  border-radius: 999px !important;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.gt-members-new {
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px !important;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.25);
}

.gt-members-new i {
  font-size: 12px;
}

.gt-members-page .dataTables_wrapper,
.gt-members-page table.dataTable {
  width: 100% !important;
}

.gt-members-page table.dataTable {
  border: 1px solid var(--gt-border) !important;
  border-radius: 12px;
  overflow: hidden;
}

.gt-members-page table.dataTable thead th {
  background: #ecf7f4 !important;
  border-bottom: 1px solid var(--gt-border) !important;
  padding: 11px 12px !important;
  font-size: 11.5px !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gt-members-page table.dataTable tbody td {
  padding: 10px 12px !important;
  vertical-align: middle !important;
  border-top: 1px solid #e8f1ee !important;
}

.gt-members-page table.dataTable tbody tr:hover td {
  background: #f5fbf9 !important;
}

.gt-th-traffic {
  white-space: nowrap;
}

.gt-th-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 6px;
  font-weight: 650;
  color: var(--gt-muted);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.gt-th-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--gt-accent);
}

.gt-id-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #e7f4f1;
  color: #0f524c;
  font-weight: 800;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.gt-member-namecell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.gt-member-ava {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  color: #0f524c;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.gt-member-meta {
  min-width: 0;
  flex: 1;
}

.gt-member-name {
  font-weight: 750;
  color: #12312f !important;
  text-decoration: none !important;
}

.gt-member-name:hover {
  color: var(--gt-accent) !important;
}

.gt-member-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1px);
  transition: opacity .15s ease, transform .15s ease;
}

.gt-members-page table.dataTable tbody tr:hover .gt-member-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.gt-member-act {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5b736f !important;
  background: #f8fbfa;
  border: 1px solid var(--gt-border);
  text-decoration: none !important;
}

.gt-member-act:hover {
  color: var(--gt-accent-dark) !important;
  background: #e6f7f4;
  border-color: #99f6e4;
}

.gt-member-del:hover {
  color: #fff !important;
  background: #ef4444;
  border-color: #dc2626;
}

.gt-member-act i {
  font-size: 11px;
}

.gt-traffic {
  position: relative;
  display: inline-flex;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}

.gt-traffic input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.gt-traffic span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid #b7d0ca;
  background: #fff;
  display: block;
  box-sizing: border-box;
  transition: background .15s ease, border-color .15s ease;
}

.gt-traffic input:checked + span {
  border-color: var(--gt-accent);
  background: var(--gt-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.gt-member-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f4;
  color: #5b736f;
  text-transform: lowercase;
}

.gt-member-status i {
  font-size: 7px;
}

.gt-member-status.is-online {
  background: #dcfce7;
  color: #166534;
}

.gt-member-status.is-offline {
  background: #e8eeec;
  color: #475569;
}

.gt-member-status.is-learn {
  background: #ccfbf1;
  color: #0f766e;
}

.gt-member-status.is-break {
  background: #ffedd5;
  color: #c2410c;
}

.gt-leads-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.gt-leads-count.is-on {
  background: #ccfbf1;
  color: #0f766e;
}

.gt-leads-count.is-off {
  background: #f1f5f4;
  color: #5b736f;
}

.gt-team-empty {
  color: #94a3b8;
  font-weight: 700;
}

.gt-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.gt-role-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px dashed #b7d0ca;
  border-radius: 50%;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.gt-role-gray { background: #e8eef5; color: #334155; }
.gt-role-slate { background: #e2e8f0; color: #1e293b; }
.gt-role-teal { background: #ccfbf1; color: #0f766e; }
.gt-role-cyan { background: #cffafe; color: #0e7490; }
.gt-role-blue { background: #dbeafe; color: #1d4ed8; }
.gt-role-navy { background: #e0e7ff; color: #3730a3; }
.gt-role-amber { background: #fef3c7; color: #b45309; }
.gt-role-orange { background: #ffedd5; color: #c2410c; }
.gt-role-pink { background: #fce7f3; color: #be185d; }

.gt-members-page .dataTables_filter input {
  border-radius: 8px !important;
  border: 1px solid var(--gt-border) !important;
  height: 36px;
  padding: 0 12px;
}

.gt-members-page .dt-buttons .btn {
  border-radius: 8px !important;
  border: 1px solid var(--gt-border) !important;
  background: #fff !important;
  color: #345652 !important;
  font-weight: 650;
}

.gt-members-modal .modal-content {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15, 61, 58, 0.18);
  overflow: hidden;
}

.gt-members-modal .modal-dialog {
  max-width: 560px;
}

.gt-members-modal .modal-header,
.gt-members-modal .modal-footer {
  border-color: #e8f1ee;
  padding: 16px 20px;
  flex-shrink: 0;
}

.gt-members-modal .modal-body {
  padding: 8px 20px 12px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

.gt-members-modal .select2-wrapper {
  width: 100%;
}

.gt-members-modal .select2-container {
  width: 100% !important;
  display: block !important;
}

.gt-members-modal .select2-container--bootstrap .select2-selection--multiple {
  min-height: 42px;
  max-height: 180px;
  height: auto !important;
  padding: 4px;
  border-radius: 10px !important;
  overflow-y: auto;
}

.gt-members-modal .select2-container--bootstrap .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 6px;
  padding: 2px !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  list-style: none;
  box-sizing: border-box;
}

.gt-members-modal .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin: 0 !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  border: 1px solid #b7d0ca !important;
  background: #ecf7f4 !important;
  color: #0f524c !important;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gt-members-modal .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove {
  float: none !important;
  margin: 0 2px 0 0 !important;
  color: #5b736f !important;
  font-weight: 800;
}

.gt-members-modal .select2-container--bootstrap .select2-selection--multiple .select2-search--inline {
  float: none !important;
  display: inline-flex !important;
  flex: 1 1 120px;
  margin: 0;
}

.gt-members-modal .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
  width: 100% !important;
  min-width: 100px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 6px !important;
  line-height: 28px !important;
}

.gt-members-modal .select2-container--bootstrap .select2-selection--single {
  height: 38px !important;
  border-radius: 10px !important;
}

.gt-members-modal .select2-dropdown {
  border-radius: 10px;
  border-color: #cfe0db;
  z-index: 2000;
}

/* Teams page extras */
.gt-teams-page .gt-team-ava {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.gt-leader-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}

.gt-leader-ava {
  width: 26px;
  height: 26px;
  font-size: 10px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #3730a3;
}

.gt-leader-name {
  font-weight: 650;
  color: #12312f;
  font-size: 13px;
}

.gt-teams-page table.dataTable tbody td:last-child {
  text-align: left;
}

/* Statistics page */
.gt-stats-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--gt-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fcfa 0%, #ffffff 100%);
}

.gt-stats-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gt-stats-field {
  min-width: 180px;
}

.gt-stats-field label {
  display: block;
  margin-bottom: 6px;
}

.gt-stats-field .form-control {
  height: 38px;
  border-radius: 10px !important;
}

.gt-stats-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gt-preset {
  border: 1px solid var(--gt-border);
  background: #fff;
  color: #345652;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.gt-preset:hover,
.gt-preset.is-active {
  background: #ecf7f4;
  border-color: #99f6e4;
  color: #0f766e;
}

.gt-stat-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.gt-stat-time.is-offline {
  background: #e8eeec;
  color: #475569;
}

.gt-stat-time.is-online {
  background: #dcfce7;
  color: #166534;
}

.gt-stat-time.is-learn {
  background: #ccfbf1;
  color: #0f766e;
}

.gt-stat-time.is-break {
  background: #ffedd5;
  color: #c2410c;
}

.gt-stat-time.is-zero {
  background: #f4f7f6;
  color: #94a3b8;
}

@media (max-width: 767px) {
  .gt-stats-filters {
    align-items: stretch;
  }

  .gt-stats-field {
    min-width: 100%;
    flex: 1 1 100%;
  }
}

/* Leads page */
.gt-leads-secondary {
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px !important;
  border: 1px solid var(--gt-border) !important;
  background: #fff !important;
  color: #345652 !important;
  font-weight: 700;
}

.gt-leads-filters {
  margin: 0 0 16px;
  padding: 12px 12px 4px;
  border: 1px solid var(--gt-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fcfa 0%, #ffffff 100%);
}

.gt-leads-filters .form-group {
  margin-bottom: 10px;
}

.gt-leads-page .gt-translate-btn {
  border-radius: 999px !important;
  border: 1px solid #99f6e4 !important;
  background: #ecf7f4 !important;
  color: #0f766e !important;
  font-weight: 750 !important;
  padding: 0.35rem 0.9rem !important;
}

.gt-leads-page .gt-translate-btn:hover {
  background: #ccfbf1 !important;
  color: #0f524c !important;
}

.gt-id-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gt-edit-comment {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--gt-border);
  background: #f8fbfa;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.gt-edit-comment:hover {
  background: #e6f7f4;
  border-color: #99f6e4;
}

.gt-edit-comment i {
  font-size: 11px;
}

.gt-dup {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.gt-dup.is-no {
  background: #f1f5f4;
  color: #64748b;
}

.gt-dup.is-yes {
  background: #fee2e2;
  color: #b91c1c;
}

.gt-dup.is-cross {
  background: #ffedd5;
  color: #c2410c;
}

.gt-comment-cell {
  min-width: 180px;
  max-width: 280px;
}

.gt-comment-author {
  display: inline-block;
  font-size: 12px;
  font-weight: 750;
  color: var(--gt-accent) !important;
  text-decoration: none !important;
  margin-bottom: 2px;
}

.gt-comment-author:hover {
  color: var(--gt-accent-dark) !important;
}

.gt-comment-body {
  font-size: 12.5px;
  line-height: 1.35;
  color: #23403d;
  white-space: normal;
  word-break: break-word;
}

.gt-leads-page th.last_comment {
  min-width: 200px;
}

/* Lead show / profile */
.gt-lead-show {
  padding-bottom: 24px;
}

.gt-lead-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.gt-lead-topbar-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.gt-lead-kicker {
  font-size: 13px;
  color: var(--gt-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gt-lead-topbar-title strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--gt-text);
}

.gt-lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.gt-lead-btn {
  border-radius: 9px !important;
  border: 1px solid var(--gt-border) !important;
  background: #fff !important;
  color: #345652 !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.gt-lead-btn:hover {
  background: #ecf7f4 !important;
  border-color: #99f6e4 !important;
  color: #0f524c !important;
}

.gt-lead-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 14px;
  margin-bottom: 14px;
}

.gt-lead-hero-main,
.gt-lead-sidepanel,
.gt-lead-tabs-panel,
.gt-side-card-body,
#social_links,
#smart_summary {
  background: #fff;
  border: 1px solid var(--gt-border);
  border-radius: 14px;
  box-shadow: var(--gt-shadow);
}

.gt-lead-hero-main {
  display: flex;
  gap: 16px;
  padding: 18px;
}

.gt-lead-avatar {
  flex-shrink: 0;
}

.gt-lead-avatar img,
.gt-lead-avatar .profile-photo,
.gt-lead-avatar .img-thumbnail {
  width: 88px !important;
  height: 88px !important;
  border-radius: 18px !important;
  object-fit: cover;
  border: 1px solid var(--gt-border) !important;
}

.gt-lead-identity {
  min-width: 0;
  flex: 1;
}

.gt-lead-identity h4 {
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gt-lead-facts {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.gt-lead-fact span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gt-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gt-lead-fact a,
.gt-lead-fact strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--gt-text);
  word-break: break-all;
}

.gt-lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.gt-lead-meta small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gt-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gt-lead-sidepanel {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gt-lead-side-block {
  padding-bottom: 10px;
  border-bottom: 1px solid #e8f1ee;
}

.gt-lead-side-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gt-lead-side-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f524c;
  margin-bottom: 8px;
}

.gt-lead-side-title i {
  color: var(--gt-accent-2);
  margin-right: 4px;
}

.gt-lead-side-value {
  font-weight: 750;
  font-size: 13px;
}

.gt-lead-side-sub,
.gt-lead-side-empty {
  color: var(--gt-muted);
  font-size: 12px;
}

.gt-lead-kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 4px;
}

.gt-lead-kv span {
  color: var(--gt-muted);
}

.gt-lead-badges {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gt-lead-callrow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gt-lead-callrow input[type="datetime-local"] {
  flex: 1 1 150px;
  min-width: 0;
  height: 34px;
  border: 1px solid var(--gt-border);
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12px;
}

.gt-lead-tabs-panel {
  padding: 0 !important;
  overflow: hidden;
}

.gt-lead-tabs {
  border-bottom: 1px solid var(--gt-border) !important;
  padding: 0 10px;
  background: #f7fcfa;
  font-size: 13px;
}

.gt-lead-tabs .nav-link {
  border: 0 !important;
  color: var(--gt-muted) !important;
  font-weight: 700;
  padding: 12px 14px !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
}

.gt-lead-tabs .nav-link.active {
  color: var(--gt-accent) !important;
  background: transparent !important;
  border-bottom-color: var(--gt-accent) !important;
}

.gt-lead-tab-body {
  padding: 16px 18px;
}

.gt-lead-info-table {
  font-size: 13px;
  margin-bottom: 0;
}

.gt-lead-info-table td {
  border-top: 1px solid #e8f1ee !important;
  padding: 10px 8px !important;
  vertical-align: middle !important;
}

.gt-lead-info-table td:first-child {
  width: 140px;
  color: var(--gt-muted);
  font-weight: 700;
}

.gt-lead-other {
  background: #f7fcfa;
  border: 1px solid var(--gt-border);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 100%;
}

.gt-lead-other-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f524c;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gt-lead-other-body {
  font-size: 13px;
  color: #23403d;
  word-break: break-word;
}

.gt-side-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#social_links,
#smart_summary {
  overflow: hidden;
}

.gt-side-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: #f7fcfa;
  border-bottom: 1px solid var(--gt-border);
}

.gt-side-card-head h6 {
  margin: 0;
  font-weight: 800;
  font-size: 13px;
}

.gt-side-add {
  border-radius: 8px !important;
  border: 1px solid var(--gt-border) !important;
  background: #fff !important;
  color: #0f766e !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 2px 10px !important;
}

.gt-side-card-body {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 12px 14px;
  min-height: 72px;
}

.gt-side-empty {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 650;
  padding: 8px 0;
}

.gt-summary-item {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e8f1ee;
}

.gt-summary-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.gt-summary-item-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.gt-summary-item-head a {
  color: var(--gt-text);
  font-weight: 750;
}

.gt-summary-remove {
  color: #94a3b8 !important;
  font-size: 16px;
  line-height: 1;
  text-decoration: none !important;
}

.gt-summary-item p {
  margin: 0;
  font-size: 12px;
  color: #345652;
}

.gt-social-list .list-group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-color: #e8f1ee;
  font-size: 13px;
  padding: 8px 10px;
}

@media (max-width: 991px) {
  .gt-lead-hero {
    grid-template-columns: 1fr;
  }
}





