:root {
  --gd-bg: #f3f6fb;
  --gd-surface: #ffffff;
  --gd-surface-soft: #f8fafc;
  --gd-border: #d6e0ec;
  --gd-text: #12263a;
  --gd-text-soft: #5b6b7c;
  --gd-primary: #0f4c81;
  --gd-primary-strong: #0a3760;
  --gd-accent: #26a69a;
  --gd-danger: #c62828;
  --gd-warning: #f9a825;
  --gd-shadow: 0 10px 30px rgba(15, 76, 129, 0.12);
}

body {
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  background: var(--gd-bg);
  color: var(--gd-text);
}

.app-shell {
  min-height: 100vh;
}

.navbar.gd-navbar {
  background: var(--gd-primary);
  box-shadow: 0 6px 18px rgba(9, 26, 43, 0.35);
}

.gd-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.gd-layout {
  display: flex;
  min-height: 100vh;
}

.gd-sidebar {
  width: 270px;
  flex: 0 0 270px;
  background: var(--gd-primary-strong);
  color: #fff;
  padding: 1.25rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: width 0.22s ease, flex-basis 0.22s ease, padding 0.22s ease;
}

.gd-content {
  flex: 1;
  min-width: 0;
}

.gd-main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.gd-mobile-topbar {
  display: none;
}

.gd-sidebar-backdrop {
  display: none;
}

.gd-sidebar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.2px;
  min-width: 0;
}

.gd-brand-mark {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--gd-brand-mark-bg, rgba(255, 255, 255, 0.16));
  border: 1px solid var(--gd-brand-mark-border, rgba(255, 255, 255, 0.2));
  font-size: 1rem;
}

.gd-brand-logo {
  width: 56px !important;
  min-width: 56px;
  max-width: 56px;
  height: 56px !important;
  max-height: 56px;
  display: block;
  object-fit: contain;
  object-position: center;
  overflow: hidden;
  border-radius: 14px;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid var(--gd-brand-mark-border, rgba(255, 255, 255, 0.2));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.gd-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gd-sidebar-user {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.gd-sidebar-user-name {
  font-weight: 600;
}

.gd-sidebar-user-role {
  font-size: 0.78rem;
  opacity: 0.9;
  margin-top: 0.15rem;
}

.gd-nav-notify-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.gd-nav-notify-badge {
  min-width: 22px;
}

.gd-nav-notify-menu {
  width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gd-nav-notify-head {
  padding: 0.6rem 0.8rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.gd-nav-notify-list {
  max-height: 280px;
  overflow-y: auto;
}

.gd-nav-notify-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #eaf3fc;
  text-decoration: none;
}

.gd-nav-notify-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.gd-nav-notify-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

.gd-nav-notify-meta {
  font-size: 0.72rem;
  opacity: 0.85;
}

.gd-nav-notify-pill {
  border-radius: 999px;
  padding: 0.06rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.gd-nav-notify-pill-critical {
  background: #d84b55;
  color: #fff;
}

.gd-nav-notify-pill-high {
  background: #e79d3b;
  color: #1a1a1a;
}

.gd-nav-notify-pill-medium {
  background: #d2d44f;
  color: #1a1a1a;
}

.gd-nav-notify-count {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.08rem 0.38rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.gd-nav-notify-empty {
  padding: 0.9rem 0.8rem;
  font-size: 0.82rem;
  opacity: 0.85;
}

.gd-nav-notify-foot {
  padding: 0.55rem 0.8rem;
}

.gd-sidebar-nav .nav-link {
  color: #d9e8f6;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gd-sidebar-nav .nav-link:hover,
.gd-sidebar-nav .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.gd-sidebar-nav .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.gd-nav-group {
  margin-bottom: 0.35rem;
}

.gd-nav-group-title {
  color: rgba(217, 232, 246, 0.85);
  border-radius: 10px;
  padding: 0.45rem 0.65rem 0.3rem 0.65rem;
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gd-nav-group-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  justify-content: space-between;
}

.gd-nav-group-toggle:hover,
.gd-nav-group-toggle:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.gd-nav-group-body {
  display: none;
}

.gd-nav-group-collapsible.is-open .gd-nav-group-body {
  display: block;
}

.gd-nav-group-caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  margin-left: auto;
  flex: 0 0 auto;
}

.gd-nav-group-collapsible.is-open .gd-nav-group-caret {
  transform: rotate(225deg);
}

.gd-sidebar-nav .gd-nav-sublink {
  margin-left: 0.72rem;
  width: calc(100% - 0.72rem);
}

.gd-nav-icon {
  color: inherit;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  line-height: 1;
}

.gd-nav-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.gd-sidebar-logout .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.gd-layout.gd-sidebar-collapsed .gd-sidebar {
  width: 88px;
  flex-basis: 88px;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.gd-layout.gd-sidebar-collapsed .gd-sidebar-brand-text,
.gd-layout.gd-sidebar-collapsed .gd-sidebar-user-name,
.gd-layout.gd-sidebar-collapsed .gd-sidebar-user-role,
.gd-layout.gd-sidebar-collapsed .gd-nav-text {
  display: none;
}

.gd-layout.gd-sidebar-collapsed .gd-nav-group-title {
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.gd-layout.gd-sidebar-collapsed .gd-nav-group-caret,
.gd-layout.gd-sidebar-collapsed .gd-nav-group-body {
  display: none;
}

.gd-layout.gd-sidebar-collapsed .gd-sidebar-nav .gd-nav-sublink {
  margin-left: 0;
  width: 100%;
}

.gd-layout.gd-sidebar-collapsed .gd-sidebar-brand {
  justify-content: center;
  width: 100%;
}

.gd-layout.gd-sidebar-collapsed .gd-sidebar-user {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.gd-layout.gd-sidebar-collapsed .gd-sidebar-nav .nav-link {
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.gd-layout.gd-sidebar-collapsed .gd-sidebar-logout .btn {
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.gd-card {
  background: var(--gd-surface);
  border: 1px solid var(--gd-border);
  border-radius: 14px;
  box-shadow: var(--gd-shadow);
  overflow: hidden;
}

.gd-kpi-card {
  background: var(--gd-surface);
  border: 1px solid var(--gd-border);
  border-radius: 14px;
  box-shadow: var(--gd-shadow);
  padding: 0.95rem 1rem;
  min-height: 96px;
}

.gd-kpi-label {
  color: var(--gd-text-soft);
  font-size: 0.84rem;
  margin-bottom: 0.25rem;
}

.gd-kpi-value {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
}

.gd-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.9rem;
}

.gd-file-card {
  background: #fff;
  border: 1px solid #dce7f2;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 8px 20px rgba(15, 76, 129, 0.08);
  min-height: 132px;
}

.gd-file-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.15rem;
  color: #1f3950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gd-file-card-subtitle {
  font-size: 0.78rem;
  color: #60778d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gd-file-icon-folder,
.gd-file-icon-doc {
  width: 44px;
  height: 32px;
  border-radius: 7px;
  position: relative;
}

.gd-file-icon-folder {
  background: #55c5e8;
}

.gd-file-icon-folder::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 5px;
  width: 18px;
  height: 8px;
  background: #77d6f1;
  border-radius: 4px 4px 0 0;
}

.gd-file-icon-doc {
  background: #ecf3fb;
  border: 1px solid #bfd2e6;
}

.gd-file-icon-doc::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #dce8f5 50%, transparent 51%);
  border-top-right-radius: 7px;
}

.gd-file-status {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-left: auto;
}

.gd-file-status-active {
  background: #1da35b;
}

.gd-file-status-expired {
  background: #d9534f;
}

.gd-file-status-inactive {
  background: #7b8794;
}

.gd-drive {
  background: #edf3fa;
  border: 1px solid #d5e1ef;
  border-radius: 16px;
  padding: 1.2rem;
}

.gd-drive-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gd-drive-view-toggle {
  display: inline-flex;
  border: 1px solid #c8d6e6;
  border-radius: 999px;
  overflow: hidden;
}

.gd-drive-view-toggle .btn {
  border: 0;
  border-radius: 0;
}

.gd-drive-view-toggle .btn.active {
  background: #d8eaf9;
  color: #0f4c81;
}

.gd-drive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.9rem;
}

.gd-drive-item {
  background: #e9eef4;
  border: 1px solid #d2dde8;
  border-radius: 14px;
  padding: 0.65rem;
}

.gd-drive-thumb {
  background: #fff;
  border: 1px solid #d3dfeb;
  border-radius: 10px;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gd-drive-folder .gd-drive-thumb {
  background: transparent;
  border-style: dashed;
}

.gd-drive-folder-active {
  border-color: #6caee7;
  box-shadow: 0 0 0 2px rgba(39, 132, 214, 0.18), 0 6px 16px rgba(15, 76, 129, 0.12);
}

.gd-drive-folder-icon {
  width: 64px;
  height: 44px;
  border-radius: 8px;
  background: #59c8ea;
  position: relative;
}

.gd-drive-folder-icon::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -8px;
  width: 24px;
  height: 10px;
  border-radius: 6px 6px 0 0;
  background: #80d9f1;
}

.gd-drive-doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 78px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #c7d8ea;
  color: #2a4b68;
  font-weight: 700;
}

.gd-drive-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd-drive-meta {
  margin-top: 0.55rem;
}

.gd-drive-name {
  font-size: 0.96rem;
  font-weight: 600;
  color: #1d3850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gd-drive-sub {
  font-size: 0.78rem;
  color: #5e768d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gd-drive-actions {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.35rem;
}

.gd-drive-badge {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #1f77d2;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.gd-doc-club-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gd-doc-club-card {
  background: #eef4fa;
  border: 1px solid #d6e2ef;
  border-radius: 16px;
  padding: 1rem;
}

.gd-doc-club-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.gd-doc-club-title {
  font-size: 1rem;
  font-weight: 700;
  color: #173854;
}

.gd-doc-club-subtitle {
  font-size: 0.82rem;
  color: #60788f;
}

.gd-doc-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.gd-doc-member-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #d5e1ee;
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  color: inherit;
}

.gd-doc-member-item-active {
  border-color: #6caee7;
  box-shadow: 0 0 0 2px rgba(39, 132, 214, 0.14);
}

.gd-doc-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d9ebfb 0%, #c4dff7 100%);
  color: #0f4c81;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 auto;
}

.gd-doc-member-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.gd-doc-member-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #173854;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gd-doc-member-sub {
  font-size: 0.78rem;
  color: #60788f;
}

.gd-file-manager {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.gd-file-sidebar {
  background: linear-gradient(180deg, #f4f8fc 0%, #edf3fa 100%);
  border: 1px solid #d7e2ef;
  border-radius: 18px;
  padding: 1rem;
}

.gd-file-sidebar-head {
  margin-bottom: 0.9rem;
}

.gd-file-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: #163752;
}

.gd-file-sidebar-sub {
  font-size: 0.8rem;
  color: #60788f;
}

.gd-file-tree {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.gd-file-tree-group {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #d9e5f2;
  border-radius: 14px;
  padding: 0.8rem;
}

.gd-file-tree-club {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}

.gd-file-tree-folder {
  width: 32px;
  height: 22px;
  border-radius: 6px;
  background: #59c8ea;
  position: relative;
  flex: 0 0 auto;
}

.gd-file-tree-folder::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -6px;
  width: 14px;
  height: 7px;
  border-radius: 5px 5px 0 0;
  background: #84dbf1;
}

.gd-file-tree-club-meta {
  min-width: 0;
}

.gd-file-tree-club-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #163752;
}

.gd-file-tree-club-sub {
  font-size: 0.76rem;
  color: #60788f;
}

.gd-file-tree-members {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 0.55rem;
}

.gd-file-tree-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  text-decoration: none;
  color: #264760;
}

.gd-file-tree-item:hover {
  background: #eef5fc;
}

.gd-file-tree-item-active {
  background: #dcecfb;
  color: #0f4c81;
  font-weight: 600;
}

.gd-file-tree-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6caee7;
}

.gd-file-tree-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gd-file-tree-count {
  font-size: 0.72rem;
  background: #e9f2fb;
  color: #32597b;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
}

.gd-file-content {
  min-width: 0;
}

.gd-file-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #61788f;
  margin-bottom: 0.8rem;
}

.gd-file-breadcrumb strong {
  color: #173854;
}

.gd-doc-groupbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.gd-doc-group-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  background: #eef5fc;
  border: 1px solid #d5e2ef;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  color: #264760;
  font-size: 0.82rem;
  font-weight: 600;
}

.gd-doc-group-chip span {
  background: #dcecfb;
  color: #0f4c81;
  border-radius: 999px;
  padding: 0.05rem 0.38rem;
  font-size: 0.72rem;
}

.gd-doc-group-chip.is-active {
  background: #dcecfb;
  border-color: #a8ccee;
  color: #0f4c81;
}

.gd-doc-results.gd-doc-results-list {
  grid-template-columns: 1fr;
}

.gd-doc-results.gd-doc-results-list .gd-drive-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.gd-doc-results.gd-doc-results-list .gd-drive-thumb {
  height: 88px;
}

.gd-doc-results.gd-doc-results-list .gd-drive-meta {
  margin-top: 0;
}

.gd-doc-results.gd-doc-results-list .gd-drive-actions {
  flex-wrap: wrap;
}

.gd-card-header {
  background: var(--gd-surface-soft);
  border-bottom: 1px solid var(--gd-border);
  border-radius: 14px 14px 0 0;
  font-weight: 600;
  padding: 0.9rem 1.1rem;
}

.gd-card > .card-body {
  padding: 1.1rem 1.2rem;
}

.gd-card > .table-responsive,
.gd-card .card-body.table-responsive {
  padding: 0.95rem 1rem;
}

.gd-card .table > :not(caption) > * > * {
  padding: 0.72rem 0.8rem;
}

.gd-page-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.gd-page-subtitle {
  color: var(--gd-text-soft);
  margin-bottom: 0;
}

.btn-primary {
  color: var(--gd-action-text, #fff);
  background-color: var(--gd-action-bg, var(--gd-primary-strong));
  border-color: var(--gd-action-bg, var(--gd-primary-strong));
  box-shadow: 0 8px 18px rgba(var(--gd-action-rgb, 15, 76, 129), 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
  color: var(--gd-action-text, #fff);
  background-color: var(--gd-action-bg-hover, var(--gd-primary-strong));
  border-color: var(--gd-action-bg-hover, var(--gd-primary-strong));
}

.btn-primary:active,
.btn-primary.active,
.btn-primary.show {
  color: var(--gd-action-text, #fff);
  background-color: var(--gd-action-bg-hover, var(--gd-primary-strong));
  border-color: var(--gd-action-bg-hover, var(--gd-primary-strong));
}

.gd-login-submit {
  color: #fff !important;
  background: #0f4c81 !important;
  border-color: #0f4c81 !important;
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.22);
}

.gd-login-submit:hover,
.gd-login-submit:focus,
.gd-login-submit:active {
  color: #fff !important;
  background: #0a3760 !important;
  border-color: #0a3760 !important;
}

.btn-outline-primary {
  color: var(--gd-action-bg, var(--gd-primary-strong));
  border-color: var(--gd-action-bg, var(--gd-primary-strong));
}

.btn-outline-primary:hover {
  color: var(--gd-action-text, #fff);
  background-color: var(--gd-action-bg, var(--gd-primary-strong));
  border-color: var(--gd-action-bg, var(--gd-primary-strong));
}

.form-control,
.form-select {
  border-color: #c7d4e3;
}

.form-control:focus,
.form-select:focus {
  border-color: #78a6cf;
  box-shadow: 0 0 0 0.2rem rgba(var(--gd-primary-rgb, 15, 76, 129), 0.16);
}

.gd-auth-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.gd-auth-panel {
  background: var(--gd-primary-strong);
  color: #fff;
  border-radius: 14px 0 0 14px;
  padding: 2rem;
  min-height: 100%;
}

.gd-auth-brand,
.gd-auth-form-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gd-auth-brand-logo,
.gd-auth-form-logo {
  width: 84px;
  min-width: 84px;
  max-width: 84px;
  height: 84px;
  max-height: 84px;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.gd-auth-brand-mark,
.gd-auth-form-mark {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gd-auth-brand-mark {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.gd-auth-brand-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.gd-auth-support {
  font-size: 0.88rem;
  opacity: 0.95;
}

.gd-auth-support a {
  color: #fff;
}

.gd-auth-form-brand {
  color: var(--gd-primary);
  font-weight: 700;
  justify-content: center;
}

.gd-auth-form-mark {
  background: rgba(var(--gd-primary-rgb, 15, 76, 129), 0.08);
  border: 1px solid rgba(var(--gd-primary-rgb, 15, 76, 129), 0.14);
  color: var(--gd-primary);
}

.gd-auth-panel h2 {
  font-weight: 600;
}

.gd-auth-panel p,
.gd-auth-panel li {
  opacity: 0.95;
}

.gd-auth-form {
  border-radius: 0 14px 14px 0;
}

.gd-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.gd-pill-active {
  color: #0d5d32;
  background-color: #dcf6e7;
}

.gd-pill-inactive {
  color: #7a2f2f;
  background-color: #ffe1e1;
}

.gd-table thead th {
  background-color: #f0f5fb;
  border-bottom: 1px solid var(--gd-border);
  color: #2b425a;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gd-role-badge {
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  background-color: #e3edf8;
  color: #214464;
}

.gd-users-bulkbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.gd-users-bulkbar .form-select {
  max-width: 260px;
}

.gd-user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.gd-user-pill-active {
  background: #e8f5ec;
  color: #0c6a38;
}

.gd-user-pill-inactive {
  background: #eef2f6;
  color: #5f6d80;
}

.gd-user-pill-approval-approved {
  background: #e7f6ed;
  color: #147b48;
}

.gd-user-pill-approval-pending {
  background: #fff2dc;
  color: #915b00;
}

.gd-user-pill-approval-rejected {
  background: #fdecee;
  color: #b72b38;
}

.gd-user-pill-verified,
.gd-user-pill-2fa,
.gd-user-pill-risk-low {
  background: #e8f1fb;
  color: #0f4c81;
}

.gd-user-pill-unverified {
  background: #f3f0f0;
  color: #7a4c4c;
}

.gd-user-pill-risk-high {
  background: #fdecee;
  color: #b72b38;
}

.gd-user-row {
  cursor: context-menu;
}

.gd-user-context-menu {
  position: absolute;
  z-index: 1085;
  min-width: 220px;
  background: #fff;
  border: 1px solid #d7e2ef;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(18, 58, 99, 0.18);
  padding: 0.4rem;
}

.gd-user-context-head {
  font-size: 0.82rem;
  font-weight: 700;
  color: #173854;
  padding: 0.5rem 0.65rem 0.4rem;
  border-bottom: 1px solid #ebf0f5;
  margin-bottom: 0.25rem;
}

.gd-user-context-item {
  width: 100%;
  display: block;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #264760;
  text-decoration: none;
  padding: 0.55rem 0.65rem;
  font-size: 0.88rem;
}

.gd-user-context-item:hover {
  background: #eef5fc;
  color: #0f4c81;
}

.gd-user-context-item-danger {
  color: #b72b38;
}

.gd-user-context-item-danger:hover {
  background: #fdecee;
  color: #b72b38;
}

span.gd-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.78rem;
  height: 0.78rem;
  margin-right: 0.28rem;
  vertical-align: -0.05rem;
}

span.gd-btn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.btn-sm span.gd-btn-icon {
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.22rem;
}

button.gd-btn-icon,
a.gd-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  height: auto;
}

button.gd-btn-icon svg,
a.gd-btn-icon svg {
  width: 0.82rem;
  height: 0.82rem;
  flex: 0 0 auto;
}

.swal2-popup {
  border-radius: 12px;
}

.gd-inscription-form {
  background: #f7f7f9;
  border: 1px solid #d7dbe3;
  border-radius: 12px;
  padding: 1rem;
}

.gd-inscription-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.gd-inscription-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #303751;
}

.gd-inscription-date {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.gd-inscription-date label {
  margin: 0;
  font-weight: 600;
  color: #3b4564;
}

.gd-inscription-date input {
  width: 90px;
  border: 1px solid #c5cddd;
  border-radius: 8px;
  padding: 0.36rem 0.5rem;
}

.gd-inscription-section {
  background: #d33c46;
  color: #fff;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  border-radius: 12px 12px 0 0;
  margin-top: 0.9rem;
}

.gd-inscription-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid #d7dbe3;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding: 0.8rem;
}

.gd-inscription-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  color: #303751;
  font-size: 0.88rem;
  font-weight: 600;
}

.gd-inscription-full {
  grid-column: 1 / -1;
}

.gd-inscription-sheet {
  position: relative;
  background: #f5f5f7;
  border: 1px solid #d5d8df;
  border-radius: 14px;
  padding: 1.25rem 1.1rem;
  overflow: hidden;
}

.gd-insc-watermark {
  position: absolute;
  inset: 90px 0 0 0;
  margin: 0 auto;
  width: min(620px, 82%);
  height: 74%;
  opacity: 0.08;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 25%, #66759a 0 18%, transparent 18.5%),
    radial-gradient(circle at 50% 78%, #66759a 0 12%, transparent 12.5%),
    linear-gradient(165deg, transparent 0 22%, #66759a 22.5% 25.5%, transparent 26% 74%, #66759a 74.5% 77.5%, transparent 78% 100%),
    linear-gradient(15deg, transparent 0 22%, #66759a 22.5% 25.5%, transparent 26% 74%, #66759a 74.5% 77.5%, transparent 78% 100%);
}

.gd-insc-brand {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 140px;
  gap: 0.7rem;
  align-items: start;
  margin-bottom: 0.6rem;
}

.gd-insc-brand-left {
  color: #d63d49;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.gd-insc-brand-center {
  color: #2d3557;
  font-size: clamp(1.55rem, 3.25vw, 2.35rem);
  line-height: 1.05;
  font-weight: 800;
  text-align: left;
}

.gd-insc-photo-box {
  width: 130px;
  height: 150px;
  border: 2px solid #ccd1db;
  background: #ebedf1;
  justify-self: end;
}

.gd-insc-main-title {
  position: relative;
  z-index: 1;
  margin: 0.55rem 0 0.9rem;
  font-size: 1.6rem;
  color: #2d3557;
  font-weight: 800;
}

.gd-insc-section-title {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0.65rem;
  display: inline-block;
  padding: 0.48rem 0.95rem;
  border-radius: 0 18px 0 0;
  background: #d33c46;
  color: #fff;
  font-weight: 800;
  font-size: 1.06rem;
}

.gd-insc-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.45rem 0.55rem;
  margin-bottom: 0.35rem;
}

.gd-insc-field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.gd-insc-field > span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2f385a;
}

.gd-insc-field input,
.gd-insc-field select,
.gd-insc-field textarea {
  width: 100%;
  display: block;
  box-sizing: border-box;
  border: 0;
  border-bottom: 2px solid #c5c9d3;
  border-radius: 0;
  padding: 0.26rem 0.2rem;
  font-size: 0.9rem;
  background: transparent;
  color: #1f2c43;
}

.gd-insc-field textarea {
  resize: vertical;
  min-height: 66px;
}

.gd-insc-field input:focus,
.gd-insc-field select:focus,
.gd-insc-field textarea:focus {
  outline: none;
  border-bottom-color: #0f4c81;
}

.gd-insc-span-2 { grid-column: span 2; }
.gd-insc-span-3 { grid-column: span 3; }
.gd-insc-span-4 { grid-column: span 4; }
.gd-insc-span-5 { grid-column: span 5; }
.gd-insc-span-6 { grid-column: span 6; }
.gd-insc-span-8 { grid-column: span 8; }

.gd-insc-date-triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
}

.gd-insc-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

#inscriptionModal .modal-content {
  border-radius: 14px;
  border: 1px solid #cfd7e4;
}

#inscriptionModal .modal-body {
  background: #edf1f6;
}

.gd-alert-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gd-alert-item {
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #21344a;
  background: #f8fbff;
}

.gd-alert-item:hover {
  border-color: #9fb9d6;
  background: #eef6ff;
  color: #15293f;
}

.gd-alert-label {
  font-weight: 600;
}

.gd-alert-value {
  min-width: 42px;
  text-align: center;
  border-radius: 999px;
  background: #dbeaf9;
  color: #0f4c81;
  font-weight: 700;
  padding: 0.1rem 0.55rem;
}

.gd-audit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.gd-audit-list li {
  border-left: 3px solid #b7cde5;
  padding-left: 0.7rem;
}

.gd-settings-timeline li {
  position: relative;
  border-left: 2px solid #c7d9ec;
  padding: 0.15rem 0 0.85rem 1rem;
  margin-left: 0.2rem;
}

.gd-settings-timeline li::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 0.2rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #0f4c81;
  box-shadow: 0 0 0 3px #e8f1fb;
}

.gd-settings-event-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #e8f1fb;
  color: #0f4c81;
  flex: 0 0 auto;
}

.gd-settings-event-icon svg {
  width: 0.9rem;
  height: 0.9rem;
}

.gd-settings-timeline li.gd-settings-event-save {
  border-left-color: #b8dfc6;
  background: linear-gradient(90deg, rgba(20, 123, 72, 0.06), transparent 45%);
}

.gd-settings-timeline li.gd-settings-event-save::before {
  background: #147b48;
  box-shadow: 0 0 0 3px #e7f6ed;
}

.gd-settings-timeline li.gd-settings-event-save .gd-settings-event-icon {
  background: #e7f6ed;
  color: #147b48;
}

.gd-settings-timeline li.gd-settings-event-delete {
  border-left-color: #efc2c7;
  background: linear-gradient(90deg, rgba(183, 43, 56, 0.06), transparent 45%);
}

.gd-settings-timeline li.gd-settings-event-delete::before {
  background: #b72b38;
  box-shadow: 0 0 0 3px #fdecee;
}

.gd-settings-timeline li.gd-settings-event-delete .gd-settings-event-icon {
  background: #fdecee;
  color: #b72b38;
}

.gd-settings-timeline li.gd-settings-event-test {
  border-left-color: #c7d7ef;
  background: linear-gradient(90deg, rgba(15, 76, 129, 0.06), transparent 45%);
}

.gd-settings-timeline li.gd-settings-event-test::before {
  background: #0f4c81;
  box-shadow: 0 0 0 3px #e8f1fb;
}

.gd-settings-timeline li.gd-settings-event-test .gd-settings-event-icon {
  background: #e8f1fb;
  color: #0f4c81;
}

.gd-settings-timeline li.gd-settings-event-neutral {
  border-left-color: #d7dee8;
  background: linear-gradient(90deg, rgba(95, 109, 128, 0.04), transparent 45%);
}

.gd-settings-timeline li.gd-settings-event-neutral::before {
  background: #5f6d80;
  box-shadow: 0 0 0 3px #eef2f6;
}

.gd-settings-timeline li.gd-settings-event-neutral .gd-settings-event-icon {
  background: #eef2f6;
  color: #5f6d80;
}

.gd-brand-color-field {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
}

.gd-settings-page {
  max-width: 1480px;
  margin: 0 auto;
}

.gd-brand-studio {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
}

.gd-brand-studio-preview-col,
.gd-brand-studio-fields {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.gd-brand-panel-note {
  border: 1px solid #d9e5f1;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: #f7fbff;
  color: #4b6178;
  font-size: 0.88rem;
  line-height: 1.5;
}

.gd-brand-summary {
  display: grid;
  gap: 0.6rem;
}

.gd-brand-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d9e5f1;
  border-radius: 12px;
  background: #fff;
}

.gd-brand-summary-item span {
  color: #637a91;
  font-size: 0.82rem;
  font-weight: 600;
}

.gd-brand-summary-item strong {
  color: #183a5b;
  font-size: 0.85rem;
}

.gd-brand-section {
  border: 1px solid #d9e5f1;
  border-radius: 16px;
  padding: 1rem;
  background: #fbfdff;
}

.gd-brand-section-head {
  margin-bottom: 0.85rem;
}

.gd-brand-section-head h6 {
  color: #163a5c;
  font-weight: 700;
}

.gd-brand-section-head p {
  color: #647c93;
  font-size: 0.84rem;
}

.gd-brand-color-card {
  height: 100%;
  border: 1px solid #e0e9f3;
  border-radius: 14px;
  padding: 0.85rem;
  background: #fff;
}

.gd-brand-logo-state {
  min-height: 100%;
  border: 1px dashed #cddced;
  border-radius: 14px;
  background: #f7fbff;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.gd-brand-logo-state small {
  color: #60788f;
  font-weight: 600;
}

.gd-brand-logo-state-image,
.gd-brand-logo-state-mark {
  width: 78px;
  height: 78px;
  border-radius: 18px;
}

.gd-brand-logo-state-image {
  object-fit: contain;
  object-position: center;
  padding: 0.25rem;
  background: #fff;
  border: 1px solid #d9e5f1;
}

.gd-brand-logo-state-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--gd-primary-rgb, 15, 76, 129), 0.08);
  color: var(--gd-primary);
  border: 1px solid rgba(var(--gd-primary-rgb, 15, 76, 129), 0.14);
  font-weight: 700;
}

.gd-brand-preview {
  border: 1px solid #d7e3ef;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fbff;
}

.gd-brand-preview-head {
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid #dfe8f2;
  background: #fff;
}

.gd-brand-preview-shell {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.9rem;
}

.gd-brand-preview-sidebar {
  border-radius: 14px;
  padding: 0.9rem;
  color: #fff;
  background: var(--gd-brand-preview-strong, #0a3760);
}

.gd-brand-preview-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gd-brand-preview-logo,
.gd-brand-preview-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.gd-brand-preview-logo {
  object-fit: contain;
  object-position: center;
  padding: 0.18rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.gd-brand-preview-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gd-brand-preview-chip {
  margin-top: 1rem;
  display: inline-flex;
  border-radius: 999px;
  padding: 0.24rem 0.65rem;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.76rem;
  font-weight: 600;
}

.gd-brand-preview-login {
  border: 1px solid #d9e5f1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.gd-brand-preview-login-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  color: #fff;
  font-weight: 700;
  background: var(--gd-brand-preview-primary, #0f4c81);
}

.gd-brand-preview-login-card {
  padding: 0.95rem;
}

.gd-brand-preview-login-title {
  font-weight: 700;
  color: #153b63;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.gd-brand-preview-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gd-brand-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  background: #eef4fb;
  color: #29485f;
  font-size: 0.72rem;
  font-weight: 700;
}

.gd-brand-swatch i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.gd-doc-alerts-modal .modal-content {
  border-radius: 14px;
  border: 1px solid #cfdae8;
  overflow: hidden;
}

.gd-doc-alerts-modal .modal-header {
  background: linear-gradient(135deg, #f5f9ff 0%, #eef4fb 100%);
  border-bottom: 1px solid #d9e4f1;
}

.gd-doc-alerts-modal .modal-title {
  font-weight: 700;
  color: #153b63;
}

.gd-doc-alerts-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.gd-doc-kpi {
  border: 1px solid #d7e3f1;
  background: #f7fbff;
  border-radius: 10px;
  padding: 0.5rem 0.62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.gd-doc-kpi span {
  font-size: 0.78rem;
  color: #4f6279;
  font-weight: 600;
}

.gd-doc-kpi strong {
  font-size: 1rem;
  color: #123a63;
}

.gd-doc-kpi-danger {
  border-color: #f2ced1;
  background: #fff5f5;
}

.gd-doc-kpi-danger strong {
  color: #b32a36;
}

.gd-doc-kpi-warn {
  border-color: #f3dfc1;
  background: #fffaf1;
}

.gd-doc-kpi-warn strong {
  color: #a06400;
}

.gd-doc-alerts-table thead th {
  background: #f3f8ff;
  color: #264b72;
  border-bottom: 1px solid #dbe6f2;
}

.gd-doc-alerts-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 0.55rem;
}

.gd-doc-sev {
  min-width: 56px;
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 0.1rem 0.48rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.gd-doc-sev-expired {
  background: #fde8ea;
  color: #b32634;
}

.gd-doc-sev-soon {
  background: #fff2dc;
  color: #915b00;
}

.gd-doc-sev-ok {
  background: #e8f5ec;
  color: #0c6a38;
}

.gd-doc-status {
  background: #ecf2f9;
  color: #375472;
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.gd-players-table tbody tr {
  transition: background-color 0.15s ease;
}

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

.gd-fit-pill {
  border-radius: 999px;
  padding: 0.14rem 0.55rem;
  font-size: 0.73rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gd-fit-fit {
  background: #e9f7ef;
  color: #126b3b;
}

.gd-fit-restricted {
  background: #fff5dd;
  color: #8a5b00;
}

.gd-fit-injured {
  background: #fdecee;
  color: #b52d3a;
}

.gd-fit-rest {
  background: #eaf2ff;
  color: #21538a;
}

.gd-fit-none {
  background: #eef1f6;
  color: #5f6d80;
}

@media (max-width: 575.98px) {
  .gd-doc-alerts-toolbar {
    grid-template-columns: 1fr;
  }
}

.gd-trend {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.gd-trend-up {
  color: #1a7f4d;
}

.gd-trend-down {
  color: #b43232;
}

.gd-trend-flat {
  color: #5f6c7b;
}

.gd-alert-sev {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.12rem 0.5rem;
}

.gd-alert-sev-critical {
  background: #fde2e2;
  color: #a61b1b;
}

.gd-alert-sev-high {
  background: #ffe7d1;
  color: #9f4e00;
}

.gd-alert-sev-medium {
  background: #fff3cd;
  color: #8b6b00;
}

.gd-op-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.gd-op-pill-success {
  background: #e7f6eb;
  color: #12723f;
}

.gd-op-pill-info {
  background: #e8f0ff;
  color: #1e4f8d;
}

.gd-op-pill-warn {
  background: #fff3dd;
  color: #8c5e00;
}

.gd-op-pill-danger {
  background: #fde8ea;
  color: #af2b37;
}

.gd-op-pill-muted {
  background: #edf1f6;
  color: #5f6d80;
}

.gd-op-session-banner {
  border: 1px solid #d5e2f1;
  border-radius: 10px;
  background: #f8fbff;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.gd-op-notes-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.gd-op-note-item {
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  background: #f8fbff;
  padding: 0.55rem 0.65rem;
}

.gd-checkin-scanner {
  min-height: 280px;
  border: 1px dashed #b9cce2;
  border-radius: 12px;
  background: #f9fcff;
  padding: 0.5rem;
}

.gd-checkin-scanner video {
  border-radius: 10px;
}

.gd-ob-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.5rem;
  background: #f8fbff;
}

.gd-chart-wrap {
  height: 280px;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  padding: 0.55rem;
  background: #fbfdff;
}

.gd-chart-wrap-sm {
  height: 220px;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  padding: 0.55rem;
  background: #fbfdff;
}

.gd-heatmap-wrap {
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: #fbfdff;
  overflow: hidden;
}

.gd-heatmap-table th,
.gd-heatmap-table td {
  text-align: center;
  vertical-align: middle;
  font-size: 0.78rem;
}

.gd-heat-cell {
  min-width: 62px;
  font-weight: 700;
}

.gd-heat-l0 {
  background: #f5f8fc !important;
  color: #6d7b8b !important;
}

.gd-heat-l1 {
  background: #dcecff !important;
  color: #19456f !important;
}

.gd-heat-l2 {
  background: #b8d8fb !important;
  color: #153d62 !important;
}

.gd-heat-l3 {
  background: #89bdf4 !important;
  color: #113455 !important;
}

.gd-heat-l4 {
  background: #4e99e8 !important;
  color: #fff !important;
}

.gd-heat-l5 {
  background: #1f6fbe !important;
  color: #fff !important;
}

.gd-heat-legend {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.gd-heat-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}

.gd-title-icon,
.gd-section-icon,
.gd-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gd-title-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #dcecff;
  color: #0f4c81;
}

.gd-title-icon svg,
.gd-section-icon svg,
.gd-kpi-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.gd-section-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #e6f0fb;
  color: #1f4f7c;
}

.gd-kpi-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #e9f2fc;
  color: #1f588d;
}

.gd-filter-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.gd-dashboard-page .gd-card {
  overflow: hidden;
}

.gd-dashboard-page .gd-card-header {
  padding: 0.9rem 1.05rem;
}

.gd-dashboard-page .gd-card .card-body {
  padding: 1.05rem 1.1rem;
}

.gd-dashboard-page .gd-filter-card .card-body {
  padding: 1rem 1.1rem !important;
}

.gd-dashboard-page .gd-kpi-card {
  padding: 1.1rem 1.15rem;
}

.gd-dashboard-page .gd-kpi-label {
  margin-bottom: 0.42rem;
}

.gd-dashboard-page .gd-ob-row {
  padding: 0.62rem 0.75rem;
}

.gd-dashboard-page .table-responsive {
  padding: 0.35rem;
  border: 1px solid #e1e9f4;
  border-radius: 12px;
  background: #fcfdff;
}

.gd-dashboard-page .gd-chart-wrap,
.gd-dashboard-page .gd-chart-wrap-sm,
.gd-dashboard-page .gd-heatmap-wrap {
  padding: 0.75rem;
}

.gd-club-kpi-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gd-club-kpi-card:hover {
  transform: translateY(-2px);
  border-color: #b7cde6;
  box-shadow: 0 12px 24px rgba(15, 76, 129, 0.14);
}

.gd-card .card-body.table-responsive {
  padding: 0.95rem 1rem;
}

.gd-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.gd-calendar-head {
  text-align: center;
  font-size: 0.75rem;
  color: #5f6d7f;
  font-weight: 700;
  padding: 0.2rem 0;
}

.gd-calendar-cell {
  border: 1px solid #d6e3f1;
  border-radius: 10px;
  min-height: 62px;
  background: #ffffff;
  padding: 0.35rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gd-calendar-empty {
  background: #f5f8fc;
  border-style: dashed;
}

.gd-calendar-has-events {
  background: #eef6ff;
  border-color: #9ec2ea;
}

.gd-calendar-day {
  font-size: 0.78rem;
  color: #2b3f56;
  font-weight: 600;
}

.gd-calendar-badge {
  margin-left: auto;
  border-radius: 999px;
  background: #0f4c81;
  color: #fff;
  font-size: 0.7rem;
  min-width: 20px;
  text-align: center;
  padding: 0.05rem 0.35rem;
}

.gd-calendar-events {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gd-calendar-event {
  border: 1px solid #d8e5f4;
  border-radius: 10px;
  background: #fbfdff;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  color: inherit;
}

.gd-calendar-event:hover {
  border-color: #9fc2e7;
  background: #eff6ff;
  color: inherit;
}

.gd-2fa-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gd-2fa-qr-frame {
  border: 1px solid #d8e5f4;
  border-radius: 12px;
  background: #fff;
  padding: 0.65rem;
  box-shadow: 0 8px 20px rgba(15, 76, 129, 0.08);
}

.gd-2fa-qr-frame svg {
  width: 220px;
  height: 220px;
  display: block;
}

.gd-comp-page .gd-card > .card-body {
  padding: 1.05rem 1.1rem;
}

.gd-comp-page .gd-card-header svg {
  margin-right: 0.4rem;
  vertical-align: -2px;
}

.gd-comp-page .table > :not(caption) > * > * {
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
}

.gd-comp-page .list-group-item {
  border-radius: 10px;
  margin-bottom: 0.4rem;
  border: 1px solid #d7e4f3;
}

.gd-comp-page .list-group-item.active {
  background: linear-gradient(145deg, #0f4c81, #1d6fb2);
  border-color: #0f4c81;
}

.gd-comp-page .badge.text-bg-light {
  color: #2d4158;
  border: 1px solid #d4e2f1;
  background: #f7fbff !important;
}

.gd-comp-page .gd-kpi-card {
  min-height: 92px;
}

.gd-comp-page .gd-match-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border: 1px solid #d9e6f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 0.65rem 0.8rem;
}

.gd-comp-page .gd-match-toolbar p {
  font-size: 0.92rem;
}

.gd-comp-page .gd-matches-table thead th {
  background: #f2f7ff;
  color: #23486f;
  font-size: 0.78rem;
}

.gd-comp-page .gd-matches-table tbody td {
  vertical-align: top;
}

.gd-comp-page .gd-match-actions {
  display: grid;
  gap: 0.4rem;
}

.gd-comp-page .gd-score-form .form-control-sm,
.gd-comp-page .gd-score-form .form-select-sm {
  min-height: 34px;
}

.gd-comp-page .gd-round-report-table thead th {
  background: #f2f7ff;
  color: #23486f;
  font-size: 0.78rem;
  white-space: nowrap;
}

.gd-comp-page .gd-round-report-table tbody tr:hover {
  background: #f8fbff;
}

.gd-round-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #cfe0f4;
  background: #eef5ff;
  color: #1f4d78;
  font-weight: 600;
  font-size: 0.74rem;
}

.gd-comp-create-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.1rem;
}

.gd-comp-create-title {
  font-size: 1rem;
  font-weight: 700;
  color: #153a5b;
  margin-bottom: 0.2rem;
}

.gd-comp-modal-form .modal-body {
  padding: 1rem 1rem 0.85rem;
}

.gd-comp-form-block {
  border: 1px solid #d6e3f2;
  border-radius: 12px;
  background: #f9fcff;
  padding: 0.85rem;
}

.gd-comp-form-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f466d;
  margin-bottom: 0.7rem;
}

.gd-comp-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.gd-comp-tools-grid .btn,
.gd-comp-tools-grid form .btn {
  min-height: 42px;
}

.gd-match-ops-card .accordion-item {
  border: 1px solid #d5e3f2;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.gd-match-ops-card .accordion-button {
  font-weight: 600;
  color: #153d62;
  background: #f7fbff;
}

.gd-match-ops-card .accordion-button:not(.collapsed) {
  background: #eaf3ff;
  color: #0f4c81;
}

.gd-match-ops-banner {
  border: 1px solid #d8e4f3;
  border-radius: 10px;
  background: #f8fbff;
  color: #2a4865;
  padding: 0.65rem 0.8rem;
  font-size: 0.9rem;
}

.gd-simple-list {
  padding-left: 1rem;
}

.gd-simple-list li {
  margin-bottom: 0.3rem;
}

#dashboardFilters.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

@media (max-width: 1399.98px) {
  .gd-brand-studio {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .gd-brand-preview-shell {
    grid-template-columns: 1fr;
  }

  .gd-brand-studio {
    grid-template-columns: 1fr;
  }

  .gd-file-manager {
    grid-template-columns: 1fr;
  }

  .gd-layout {
    display: block;
    position: relative;
  }

  .gd-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: min(86vw, 320px);
    max-width: 320px;
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
    box-shadow: 0 24px 60px rgba(6, 28, 54, 0.32);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .gd-layout.gd-sidebar-mobile-open .gd-sidebar {
    transform: translateX(0);
  }

  .gd-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    border: 0;
    padding: 0;
    background: rgba(9, 26, 43, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .gd-layout.gd-sidebar-mobile-open .gd-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .gd-content {
    width: 100%;
  }

  .gd-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 1010;
    padding: 0.75rem 0.95rem 0.65rem;
    background: rgba(243, 246, 251, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 76, 129, 0.1);
  }

  .gd-mobile-topbar-title {
    min-width: 0;
    flex: 1;
    text-align: right;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gd-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gd-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
  }

  .gd-mobile-menu-icon {
    width: 16px;
    height: 12px;
    display: inline-block;
    position: relative;
    background:
      linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  }

  .gd-auth-panel,
  .gd-auth-form {
    border-radius: 14px;
  }

  .gd-main {
    padding-top: 1rem;
    padding-bottom: 1.4rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .gd-sidebar-toggle {
    display: none;
  }

  .gd-nav-notify-menu {
    width: min(88vw, 320px);
  }

  .gd-inscription-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gd-comp-page .gd-match-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .gd-dashboard-page .gd-card .card-body {
    padding: 0.9rem 0.9rem;
  }

  .gd-dashboard-page .table-responsive {
    padding: 0.2rem;
  }

  .gd-dashboard-page .table {
    min-width: 620px;
  }

  .gd-card > .card-body {
    padding: 0.95rem 0.95rem;
  }

  .gd-card-header {
    padding: 0.78rem 0.95rem;
  }

  .gd-calendar-cell {
    min-height: 54px;
  }

  .gd-inscription-sheet {
    padding: 0.95rem 0.85rem;
  }

  .gd-insc-brand {
    grid-template-columns: 1fr;
  }

  .gd-insc-photo-box {
    justify-self: start;
    width: 108px;
    height: 128px;
  }

  .gd-insc-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .gd-insc-span-2,
  .gd-insc-span-3,
  .gd-insc-span-4,
  .gd-insc-span-5,
  .gd-insc-span-6,
  .gd-insc-span-8 {
    grid-column: span 6;
  }
}

@media (max-width: 575.98px) {
  .gd-mobile-topbar {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .gd-main {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .gd-sidebar {
    width: min(92vw, 320px);
    padding: 1rem 0.85rem;
  }

  .gd-nav-notify-menu {
    width: min(92vw, 300px);
  }

  .gd-kpi-card,
  .gd-card {
    border-radius: 12px;
  }

  .gd-page-title,
  .gd-dashboard-page .gd-page-title {
    font-size: 1.55rem;
    line-height: 1.15;
  }

  .gd-page-subtitle,
  .gd-dashboard-page .gd-page-subtitle {
    font-size: 0.94rem;
  }

  .gd-kpi-value {
    font-size: 1.4rem;
  }

  .gd-dashboard-page .btn,
  .gd-card .btn,
  .gd-filter-card .btn {
    width: 100%;
  }

  .gd-dashboard-page .d-flex.justify-content-between.align-items-start.flex-wrap.gap-3.mb-3 {
    align-items: stretch !important;
  }

  .gd-dashboard-page .d-flex.justify-content-between.align-items-start.flex-wrap.gap-3.mb-3 > div:last-child {
    width: 100%;
  }

  .gd-inscription-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gd-inscription-grid {
    grid-template-columns: 1fr;
  }

  .gd-inscription-date input {
    width: 78px;
  }

  .gd-insc-main-title {
    font-size: 1.25rem;
  }

  .gd-insc-section-title {
    font-size: 0.96rem;
    width: 100%;
    border-radius: 10px;
  }
}
