:root {
  --gc-bg: #eef1f6;
  --gc-surface: #ffffff;
  --gc-sidebar: #001b3d;
  --gc-sidebar-hover: rgba(255, 255, 255, 0.08);
  --gc-sidebar-active: rgba(0, 85, 164, 0.28);
  --gc-text: #1e293b;
  --gc-muted: #64748b;
  --gc-border: #e2e8f0;
  --gc-accent: #0055A4;
  --gc-accent-dark: #003d75;
  --gc-accent-2: #4d8cc9;
  --gc-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --gc-radius: 12px;
  --gc-topbar: 60px;
  --gc-sidebar-w: 232px;
  --gc-font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html, body {
  font-family: var(--gc-font) !important;
  background: var(--gc-bg) !important;
  color: var(--gc-text);
}

body {
  min-height: 100vh;
}

a {
  color: var(--gc-accent);
}

a:hover {
  color: var(--gc-accent-dark);
}

/* Top bar */
.navbar.navbar-dark.bg-dark {
  background: #001b3d !important;
  min-height: var(--gc-topbar);
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.16);
  z-index: 1030;
}

.navbar .navbar-brand,
.navbar-dark .gc-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,
.gc-brand-img {
  height: 34px;
  width: auto;
  max-height: 34px;
  max-width: 220px;
  object-fit: contain;
}

.gc-brand-mark {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  border-radius: 9px;
  flex-shrink: 0;
  object-fit: cover;
}

.gc-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.gc-brand-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.gc-brand-text span {
  color: #93c5fd;
}

.gc-brand-sub {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fca5a5;
}

.gc-brand-img:not(.gc-brand-wordmark) {
  border-radius: 8px;
}

.gc-logo-preview {
  display: block;
  height: 34px !important;
  width: auto !important;
  max-height: 34px !important;
  max-width: 220px !important;
  object-fit: contain;
  margin: 8px 0 4px;
}

.gc-favicon-preview {
  height: 32px !important;
  width: 32px !important;
}

.gc-brand-text {
  font-weight: 750;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  line-height: 1.1;
}

.navbar-dark .nav-link,
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
}

/* Settings / inner light navbars — dark text on light bg */
.navbar.bg-light,
.navbar.navbar-light,
.navbar.bg-primary.bg-light {
  background: #fff !important;
  border: 1px solid var(--gc-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(--gc-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: #1e293b !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(--gc-accent-dark) !important;
  background: #eff6ff;
}

.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(--gc-accent-dark) !important;
  background: #dbeafe;
}

.navbar.bg-primary.bg-light .dropdown-item.active,
.navbar.bg-light .dropdown-item.active {
  background: #dbeafe;
  color: #1e3a8a;
  font-weight: 700;
}

.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(0, 85, 164, 0.88) !important;
  color: #fff !important;
  font-size: 13px;
  padding: 0 12px;
  font-weight: 700;
  text-transform: capitalize;
}

#statusSwitcher option {
  color: #1e293b;
}

.navbar .form-control,
#global_search {
  border: 0 !important;
  border-radius: 8px 0 0 8px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  height: 36px;
}

#global_search::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.navbar .input-group-append .btn {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border-radius: 0 8px 8px 0 !important;
  height: 36px;
}

.navbar .dropdown-menu {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  padding: 8px;
}

.navbar .dropdown-item {
  border-radius: 8px;
  padding: 8px 12px;
}

.navbar .dropdown-item:hover {
  background: #eff6ff;
  color: var(--gc-accent-dark);
}

/* Layout */
.wrapper {
  min-height: calc(100vh - var(--gc-topbar));
  background: var(--gc-bg);
}

#sidebar {
  min-width: var(--gc-sidebar-w) !important;
  max-width: var(--gc-sidebar-w) !important;
  background: var(--gc-sidebar) !important;
  color: #fff !important;
}

#sidebar .sidebar-sticky {
  height: calc(100vh - var(--gc-topbar));
  padding: 16px 12px 28px;
}

.gc-sidebar-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px 14px;
}

#sidebar ul.components {
  border-bottom: 0 !important;
}

#sidebar ul li a {
  color: rgba(255, 255, 255, 0.8) !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(--gc-sidebar-hover) !important;
  color: #fff !important;
}

#sidebar ul li.active > a,
#sidebar a[aria-expanded="true"] {
  background: var(--gc-sidebar-active) !important;
  color: #bfdbfe !important;
  border-left: 0 !important;
  font-weight: 650 !important;
  box-shadow: inset 3px 0 0 var(--gc-accent);
}

#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(--gc-surface) !important;
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  box-shadow: var(--gc-shadow) !important;
  padding: 20px !important;
  overflow: hidden;
}

.main-content h5,
.main-content h4,
.main-content h3 {
  font-weight: 700;
}

.main-content hr {
  border-top-color: var(--gc-border);
}

/* Buttons */
.btn {
  border-radius: 8px !important;
  font-weight: 600;
}

.btn-primary {
  background: var(--gc-accent) !important;
  border-color: var(--gc-accent-dark) !important;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--gc-accent-dark) !important;
}

/* Forms */
.form-control,
.select2-container--bootstrap .select2-selection {
  border-radius: 8px !important;
  border-color: #dbe3ee !important;
}

.form-control:focus {
  border-color: var(--gc-accent-2) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

label {
  font-weight: 600;
  color: #334155;
  font-size: 12.5px;
}

/* Stats */
.stat-block .bd-highlight {
  border: 1px solid var(--gc-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(--gc-accent);
  font-weight: 800;
}

/* DataTables — keep header/body columns aligned */
.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(--gc-accent);
  animation: gc-dt-load 0.9s ease-in-out infinite;
}

@keyframes gc-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;
}

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: #f1f5f9 !important;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap !important;
  border-bottom: 1px solid var(--gc-border) !important;
}

table.dataTable tbody td,
.table tbody td {
  white-space: nowrap;
  border-top: 1px solid var(--gc-border) !important;
  overflow: visible;
}

table.dataTable thead th.last_comment,
table.dataTable thead th.gc-clip-col,
.dataTables_scrollHead th.last_comment,
.dataTables_scrollHead th.gc-clip-col {
  width: 140px !important;
  max-width: 140px !important;
  min-width: 140px !important;
}

table.dataTable tbody td:has(.gc-clip),
.table tbody td:has(.gc-clip) {
  overflow: hidden;
  width: 140px !important;
  max-width: 140px !important;
  vertical-align: top;
}

table.dataTable tbody td:has(.gc-clip.is-open),
.table tbody td:has(.gc-clip.is-open) {
  white-space: normal;
  overflow: visible;
  width: 210px !important;
  max-width: 210px !important;
}

.gc-clip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  width: 130px;
  max-width: 130px;
  gap: 4px;
}

.gc-clip.is-open {
  width: 200px;
  max-width: 200px;
}

.gc-clip-preview {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gc-clip.is-open .gc-clip-preview {
  flex: 1 1 100%;
  white-space: pre-wrap;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}

.gc-more-btn {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 0;
  color: var(--gc-accent);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: none;
}

.gc-more-btn:hover {
  color: var(--gc-accent-dark);
  text-decoration: underline;
}

.copy-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--gc-border);
  border-radius: 8px;
  padding: 2px 4px 2px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: nowrap;
}

.copy-text {
  color: #1e293b;
  white-space: nowrap;
}

.edit-comment {
  display: inline-flex !important;
  margin-left: 6px;
  padding: 2px 6px !important;
  line-height: 1;
  vertical-align: middle;
}

.copy-btn {
  border: 0;
  background: var(--gc-accent) !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.copy-btn:hover,
.copy-btn.copied {
  background: var(--gc-accent-dark) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f8fafc;
}

.table tbody tr:hover,
table.dataTable tbody tr:hover {
  background: #eff6ff !important;
}

.dataTables_wrapper .dt-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 14px 12px 0;
}

.dataTables_wrapper .dataTables_length {
  margin-left: 4px;
  margin-bottom: 12px;
}

.dataTables_wrapper .dt-buttons > .btn,
.dataTables_wrapper .dt-buttons > .dt-button {
  margin: 0 !important;
  height: 36px;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  letter-spacing: 0.01em;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: #1e3a8a !important;
  background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
  border: 1px solid #c7d2fe !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 10px rgba(37, 99, 235, 0.06);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dataTables_wrapper .dt-buttons > .btn:hover,
.dataTables_wrapper .dt-buttons > .dt-button:hover {
  color: #003d75 !important;
  background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
  border-color: #93c5fd !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.16);
  transform: translateY(-1px);
}

.dataTables_wrapper .dt-buttons > .btn:active,
.dataTables_wrapper .dt-buttons > .dt-button:active,
.dataTables_wrapper .dt-buttons > .dt-button.active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.dataTables_wrapper .dt-buttons > .dt-button .dropdown {
  display: inline-flex;
  align-items: center;
}

.dataTables_wrapper .dt-buttons .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit !important;
  font-weight: 650;
  background: none;
  border: 0;
  padding: 0;
}

.dataTables_wrapper .dt-buttons #translateBtn {
  color: #fff !important;
  background: linear-gradient(180deg, #1a6fc2, #0055A4) !important;
  border-color: #003d75 !important;
  box-shadow: 0 6px 16px rgba(0, 85, 164, 0.28);
}

.dataTables_wrapper .dt-buttons #translateBtn:hover {
  color: #fff !important;
  background: linear-gradient(180deg, #0055A4, #003d75) !important;
  border-color: #002654 !important;
}

.dataTables_wrapper .dt-buttons > .dropdown::before,
.dataTables_wrapper .dt-buttons > .buttons-collection::before,
.dataTables_wrapper .dt-buttons > .buttons-colvis::before,
.dataTables_wrapper .dt-buttons #translateBtn::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  opacity: 0.92;
}

.dataTables_wrapper .dt-buttons > .dropdown::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.dataTables_wrapper .dt-buttons > .dropdown:has(#dropdownMenuButton3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/%3E%3Cline x1='4' y1='22' x2='4' y2='15'/%3E%3C/svg%3E");
}

.dataTables_wrapper .dt-buttons > .buttons-collection::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

.dataTables_wrapper .dt-buttons > .buttons-colvis::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='18' rx='1'/%3E%3Crect x='14' y='3' width='7' height='18' rx='1'/%3E%3C/svg%3E");
}

.dataTables_wrapper .dt-buttons #translateBtn::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15 15 0 0 1 0 20'/%3E%3Cpath d='M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E");
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  height: 36px;
  border-radius: 10px;
  border: 1px solid #c7d2fe;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #1e3a8a;
  font-weight: 600;
  padding: 0 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.dataTables_wrapper .dataTables_filter input {
  min-width: 220px;
}

.dataTables_wrapper .dataTables_length select {
  min-width: 64px;
}

.page-item.active .page-link {
  background-color: var(--gc-accent);
  border-color: var(--gc-accent);
}

.page-link {
  color: var(--gc-accent);
}

.card {
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  box-shadow: var(--gc-shadow);
}

.dropdown-menu {
  border-radius: 10px;
  border: 1px solid var(--gc-border);
}

.badge {
  border-radius: 999px;
  padding: 0.35em 0.65em;
  font-weight: 600;
}

.nav-tabs {
  border-bottom: 1px solid var(--gc-border);
}

.nav-tabs .nav-link {
  color: #334155 !important;
  font-weight: 600;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
}

.nav-tabs .nav-link:hover {
  color: var(--gc-accent-dark) !important;
  border-bottom-color: #bfdbfe !important;
}

.nav-tabs .nav-link.active {
  color: var(--gc-accent-dark) !important;
  font-weight: 700;
  border-bottom-color: var(--gc-accent) !important;
  background: transparent !important;
}

.btn-light,
.btn-secondary,
.btn-default,
.dt-button,
.buttons-html5,
.buttons-collection {
  color: #1e293b !important;
  background: #fff !important;
  border: 1px solid var(--gc-border) !important;
}

.btn-light:hover,
.btn-secondary:hover,
.btn-default:hover,
.dt-button:hover {
  color: var(--gc-accent-dark) !important;
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

.dt-button-collection .buttons-columnVisibility {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

.dt-button-collection .buttons-columnVisibility:hover {
  background: #f8fafc !important;
  color: #64748b !important;
}

.dt-button-collection .buttons-columnVisibility.active {
  background: #dbeafe !important;
  color: #1e3a8a !important;
  font-weight: 700 !important;
}

.dt-button-collection .buttons-columnVisibility.active:hover {
  background: #bfdbfe !important;
  color: #1e3a8a !important;
}

.dt-button-collection .buttons-columnVisibility::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
}

.dt-button-collection .buttons-columnVisibility.active::before {
  content: "";
  border-color: var(--gc-accent);
  background: var(--gc-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 / 12px 12px no-repeat;
}

.bottom-toolbar {
  position: static !important;
  width: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  margin: 20px 0 0;
  padding: 16px 0 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-top: 1px solid var(--gc-border);
  border-radius: 0;
  z-index: auto !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(37, 99, 235, 0.25);
}

/* Login */
.gc-login-body {
  min-height: 100vh;
  background:
    radial-gradient(1000px 480px at 92% -8%, rgba(206, 17, 38, 0.22), transparent 52%),
    linear-gradient(160deg, #001018 0%, #002654 62%, #0055A4 140%) !important;
}

.gc-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.gc-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;
}

.gc-login-hero {
  background: linear-gradient(135deg, #001b3d, #0055A4);
  color: #fff;
  padding: 28px 28px 22px;
  position: relative;
}

.gc-login-hero::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #002654 0 33.33%, #fff 33.33% 66.66%, #CE1126 66.66%);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.gc-login-hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 1;
  font-weight: 700;
  color: #fca5a5;
}

.gc-login-hero h3 {
  margin: 4px 0 0;
  font-weight: 750;
}

.gc-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.gc-login-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.gc-login-body-inner {
  padding: 26px 28px 30px;
}

.gc-login-body-inner .btn-primary {
  height: 46px;
  font-size: 15px;
}

.gc-login-body-inner .help-block {
  color: #e11d48;
  font-size: 12px;
}

.gc-ips-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.gc-ips-head h5 {
  margin: 0;
}

.gc-ips-sub {
  margin: 4px 0 0;
  color: var(--gc-muted);
  font-size: 13px;
}

.gc-ips-page .dataTables_wrapper,
.gc-ips-page table.dataTable {
  width: 100% !important;
}

.gc-ip-chip {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 5px 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.gc-ip-chip a {
  color: #1e3a8a !important;
  text-decoration: none;
}

.gc-ip-chip a:hover {
  color: var(--gc-accent) !important;
}

.gc-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.gc-status-pill.is-ok {
  background: #dcfce7;
  color: #166534;
}

.gc-status-pill.is-blocked {
  background: #fee2e2;
  color: #991b1b;
}

.gc-ips-page .btn-danger.btn-sm {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
}

.gc-ips-check label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.gc-dash .row {
  margin-left: -8px;
  margin-right: -8px;
}

.gc-dash .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

.gc-dash .main-content {
  margin-bottom: 16px;
}

.gc-dash .dataTables_wrapper,
.gc-dash table.dataTable,
.gc-stat-table {
  width: 100% !important;
}

.gc-stat-table th,
.gc-dash table.dataTable thead th {
  background: #f1f5f9 !important;
  white-space: nowrap;
}

.gc-stat-table td,
.gc-stat-table th {
  padding: 10px 12px !important;
}

.gc-dash-todo .form-control,
.gc-dash-todo .todos__input {
  width: 100% !important;
  max-width: none;
}

.gc-stat-tile {
  padding: 4px 0;
}

.gc-stat-label {
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.gc-dash-progress .progress {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.gc-dash-progress .progress-bar {
  border-radius: 999px;
  font-size: 10px;
  line-height: 10px;
  font-weight: 700;
}

.gc-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;
}

.gc-role-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 50%;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.gc-role-gray {
  background: #e8eef5;
  color: #334155;
}

.gc-role-slate {
  background: #e2e8f0;
  color: #1e293b;
}

.gc-role-teal {
  background: #ccfbf1;
  color: #0f766e;
}

.gc-role-cyan {
  background: #cffafe;
  color: #0e7490;
}

.gc-role-blue {
  background: #dbeafe;
  color: #003d75;
}

.gc-role-navy {
  background: #bfdbfe;
  color: #1e3a8a;
}

.gc-role-purple {
  background: #ede9fe;
  color: #6d28d9;
}

.gc-role-amber {
  background: #fef3c7;
  color: #b45309;
}

.gc-role-orange {
  background: #ffedd5;
  color: #c2410c;
}

.gc-role-pink {
  background: #fce7f3;
  color: #be185d;
}

.gc-import {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.gc-import-file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}

.gc-import-file input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.gc-import-pick {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #c7d2fe;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 10px rgba(37, 99, 235, 0.06);
}

.gc-import-file:hover .gc-import-pick {
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  border-color: #93c5fd;
}

.gc-import-name {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.gc-import-submit {
  height: 36px;
  padding: 0 18px;
  border-radius: 10px !important;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.gc-stats-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.gc-stats-head h5 {
  margin: 0;
}

.gc-stats-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 18px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--gc-border);
  border-radius: 12px;
}

.gc-stats-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gc-stats-date {
  min-width: 170px;
}

.gc-stats-date label {
  display: block;
  margin-bottom: 4px;
}

.gc-stats-date .form-control {
  height: 38px;
  font-weight: 600;
}

.gc-stats-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 2px;
}

.gc-range-pill {
  border: 1px solid #c7d2fe;
  background: #fff;
  color: #1e3a8a;
  border-radius: 999px;
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 32px;
  cursor: pointer;
}

.gc-range-pill:hover,
.gc-range-pill.is-on {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #003d75;
}

.gc-stats-page .dataTables_wrapper,
.gc-stats-page table.dataTable {
  width: 100% !important;
}

.gc-stats-page table.dataTable tbody td {
  padding: 12px 14px !important;
}

.gc-id-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.gc-stats-name {
  font-weight: 700;
  color: #1e3a8a !important;
  text-decoration: none !important;
}

.gc-stats-name:hover {
  color: var(--gc-accent) !important;
  text-decoration: underline !important;
}

.gc-stat-h {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.gc-stat-h i {
  font-size: 11px;
}

.gc-stat-h-offline { color: #475569; }
.gc-stat-h-online { color: #15803d; }
.gc-stat-h-learn { color: #003d75; }
.gc-stat-h-break { color: #b45309; }

.gc-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 96px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
}

.gc-time i {
  font-size: 11px;
}

.gc-time-offline {
  background: #e2e8f0;
  color: #334155;
}

.gc-time-online {
  background: #dcfce7;
  color: #166534;
}

.gc-time-learn {
  background: #dbeafe;
  color: #003d75;
}

.gc-time-break {
  background: #ffedd5;
  color: #c2410c;
}

.gc-time.is-zero {
  background: #f8fafc;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  font-weight: 650;
}

.gc-teams-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.gc-teams-head h5 {
  margin: 0;
}

.gc-teams-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(37, 99, 235, 0.25);
}

.gc-teams-new i {
  font-size: 12px;
}

.gc-teams-page .dataTables_wrapper,
.gc-teams-page table.dataTable {
  width: 100% !important;
}

.gc-teams-page table.dataTable tbody td {
  padding: 14px 16px !important;
  vertical-align: middle !important;
}

.gc-teams-page table.dataTable tbody td:nth-child(2) {
  width: 46%;
}

.gc-team-namecell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  width: 100%;
}

.gc-team-name {
  font-weight: 750;
  color: #0f172a !important;
  text-decoration: none !important;
  min-width: 0;
}

a.gc-team-name:hover {
  color: var(--gc-accent) !important;
}

.gc-team-del {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8 !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1px);
  transition: opacity .15s ease, background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.gc-teams-page table.dataTable tbody tr:hover .gc-team-del {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.gc-team-del:hover {
  color: #fff !important;
  background: #ef4444;
  border-color: #dc2626;
}

.gc-team-del i {
  font-size: 11px;
}

.gc-team-leader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 650;
}

.gc-team-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.gc-team-empty {
  color: #94a3b8;
  font-weight: 650;
}

.gc-team-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.gc-team-count.is-on {
  background: #dbeafe;
  color: #003d75;
}

.gc-team-count.is-off {
  background: #f1f5f9;
  color: #64748b;
}

.gc-teams-page .modal-content,
.gc-teams-modal .modal-content {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.gc-teams-page .modal-header,
.gc-teams-page .modal-footer,
.gc-teams-modal .modal-header,
.gc-teams-modal .modal-footer {
  border-color: #eef2f7;
  padding: 16px 20px;
}

.gc-teams-page .modal-body,
.gc-teams-modal .modal-body {
  padding: 8px 20px 4px;
}

.gc-teams-page .modal-footer .btn-primary,
.gc-teams-modal .modal-footer .btn-primary {
  min-width: 112px;
  height: 38px;
  font-weight: 700;
}

.gc-members-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.gc-members-head h5 {
  margin: 0;
}

.gc-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(37, 99, 235, 0.25);
}

.gc-members-new i {
  font-size: 12px;
}

.gc-members-page .dataTables_wrapper,
.gc-members-page table.dataTable {
  width: 100% !important;
}

.gc-members-page table.dataTable tbody td {
  padding: 12px 14px !important;
  vertical-align: middle !important;
}

.gc-th-traffic {
  white-space: nowrap;
}

.gc-th-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 6px;
  font-weight: 650;
  color: #64748b;
  cursor: pointer;
}

.gc-th-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #0055A4;
}

.gc-member-namecell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.gc-member-ava {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.gc-member-meta {
  min-width: 0;
  flex: 1;
}

.gc-member-name {
  font-weight: 750;
  color: #0f172a !important;
  text-decoration: none !important;
}

.gc-member-name:hover {
  color: var(--gc-accent) !important;
}

.gc-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;
}

.gc-members-page table.dataTable tbody tr:hover .gc-member-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.gc-member-act {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
}

.gc-member-act:hover {
  color: #003d75 !important;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.gc-member-del:hover {
  color: #fff !important;
  background: #ef4444;
  border-color: #dc2626;
}

.gc-member-act i {
  font-size: 11px;
}

.gc-traffic {
  position: relative;
  display: inline-flex;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}

.gc-traffic input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.gc-traffic span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  display: block;
  box-sizing: border-box;
  transition: background .15s ease, border-color .15s ease;
}

.gc-traffic input:checked + span {
  border-color: #0055A4;
  background: #0055A4 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;
}

.gc-member-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
  text-transform: lowercase;
}

.gc-member-status i {
  font-size: 7px;
}

.gc-member-status.is-online {
  background: #dcfce7;
  color: #166534;
}

.gc-member-status.is-offline {
  background: #e2e8f0;
  color: #475569;
}

.gc-member-status.is-learn {
  background: #dbeafe;
  color: #003d75;
}

.gc-member-status.is-break {
  background: #ffedd5;
  color: #c2410c;
}

.gc-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;
}

.gc-leads-count.is-on {
  background: #dbeafe;
  color: #003d75;
}

.gc-leads-count.is-off {
  background: #f1f5f9;
  color: #64748b;
}

.gc-members-modal .modal-content {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.gc-members-modal .modal-header,
.gc-members-modal .modal-footer {
  border-color: #eef2f7;
  padding: 16px 20px;
}

.gc-members-modal .modal-body {
  padding: 8px 20px 4px;
}

@media (max-width: 767px) {
  #sidebar {
    margin-left: calc(-1 * var(--gc-sidebar-w));
  }
  #sidebar.active-sidebar {
    margin-left: 0 !important;
  }
}
