html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
  font-family: 'Ubuntu';
}

body, * {
  font-family: 'Ubuntu';
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --gc-sidebar: #23614e;
  --gc-sidebar-hover: #2f7560;
  --gc-sidebar-active: rgba(141, 209, 181, 0.24);
  --gc-header: #23614e;
  --gc-bg: #f3f6f5;
  --gc-card: #ffffff;
  --gc-border: #dfe7e3;
  --gc-text: #1f312b;
  --gc-text-soft: #668378;
  --gc-radius-sm: 10px;
  --gc-radius-md: 14px;
  --gc-space-1: 6px;
  --gc-space-2: 10px;
  --gc-space-3: 14px;
  --gc-space-4: 18px;
  --gc-space-5: 24px;
  --gc-control-height: 44px;
  --gc-line: 1.45;
}

body {
  background: var(--gc-bg);
  color: var(--gc-text);
  margin: 0;
  padding-left: 84px;
  overflow-x: hidden;
  line-height: var(--gc-line);
  text-rendering: optimizeLegibility;
  scrollbar-width: thin;
  scrollbar-color: #d3dfd9 transparent;
}

body::-webkit-scrollbar { width: 4px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb { background: #d3dfd9; border-radius: 999px; }
body::-webkit-scrollbar-thumb:hover { background: #b0ccc3; }

body.gc-auth-body {
  padding-left: 0;
}

body.gc-side-open {
  overflow: hidden;
}

.gc-side {
  position: fixed;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 60px;
  border-radius: 14px;
  background: var(--gc-sidebar);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1060;
  overflow: hidden;
  transition: width .18s ease;
}

.gc-side:hover,
body.gc-side-open .gc-side {
  width: 196px;
}

.gc-side__top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
}

.gc-side__bot {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 8px;
  display: flex;
  justify-content: center;
}

.gc-side:hover .gc-side__bot,
body.gc-side-open .gc-side__bot {
  justify-content: flex-start;
}

.gc-navitem-wrap {
  width: 100%;
}

.gc-navitem {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(230,246,239,.84);
  text-decoration: none;
  cursor: pointer;
}

.gc-navitem:hover {
  background: var(--gc-sidebar-hover);
  color: #fff;
}

.gc-navitem.is-active {
  background: var(--gc-sidebar-active);
  color: #fff;
}

.gc-navitem__ico {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.gc-navitem__txt {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s ease;
}

.gc-side:hover .gc-navitem__txt,
body.gc-side-open .gc-navitem__txt {
  opacity: 1;
}

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

.gc-userchip__badge {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(169,222,200,.22);
  color: #e8f7f0;
  font-size: 12px;
  font-weight: 900;
}

.gc-userchip__name {
  font-size: 14px;
  color: #d7efe6;
  font-weight: 700;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity .15s ease, max-width .18s ease;
}

.gc-side:hover .gc-userchip__name,
body.gc-side-open .gc-userchip__name {
  opacity: 1;
  max-width: 160px;
}

.gc-topbar {
  position: fixed;
  left: 84px;
  right: 10px;
  top: 10px;
  height: 54px;
  border-radius: 12px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--gc-header);
  color: #fff;
  z-index: 1050;
}

.gc-topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gc-menu-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.09);
  color: #ecf8f3;
  display: none;
  align-items: center;
  justify-content: center;
}

.gc-topbar__title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-topbar__tenant {
  font-size: 12px;
  font-weight: 700;
  color: rgba(224,245,236,.82);
}

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

.gc-search {
  position: relative;
  width: 300px;
}

.gc-search__ico {
  position: absolute;
  left: 12px;
  top: 8px;
  color: rgba(232,246,239,.8);
}

.gc-search__input {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.10);
  color: #fff;
  padding: 0 12px 0 36px;
  outline: none;
}

.gc-search__input::placeholder {
  color: rgba(232,246,239,.72);
}

.gc-actions {
  display: flex;
  gap: 4px;
}

.gc-act {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(239,249,244,.92);
  text-decoration: none;
}

.gc-act:hover {
  background: rgba(255,255,255,.12);
}

.gc-badge2 {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  padding: 0;
  min-width: 0;
  font-size: 0;
  border: 0;
}

.gc-badge2--danger { background: #f43f5e; }
.gc-badge2--warn { background: #f59e0b; }

.gc-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gc-user__avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(196,235,220,.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
}

.gc-user__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.gc-user__name {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.gc-user__role {
  color: rgba(224,245,236,.85);
  font-size: 12px;
}

.gc-content {
  padding-top: 74px;
  padding-inline: 14px;
  padding-bottom: 18px;
  min-width: 0;
}

.gc-content--auth {
  padding-top: 0;
  padding-inline: 0;
}

.gc-side-overlay {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1040;
}

body.gc-side-open .gc-side-overlay {
  opacity: 1;
  pointer-events: auto;
}

.gc-settings { position: relative; width: 100%; }
.gc-pop {
  position: fixed;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  z-index: 2000;
  opacity: 0;
  transform: translateY(6px) scale(.98);
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}

.gc-pop.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.gc-pop__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(0,0,0,.84);
  font-weight: 800;
  font-size: 13px;
  border: 1px solid transparent;
  background: transparent;
}

.gc-pop__item:hover {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.06);
}

.gc-pop__ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
}

.gc-pop__sep {
  height: 1px;
  margin: 8px 6px;
  background: rgba(0,0,0,.08);
}

.gc-pop__danger { color: #991b1b; }
.gc-pop__danger .gc-pop__ico {
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.18);
}

.gc-content > h1,
.gc-content h1 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 1.8vw, 1.85rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #0f172a;
}

.gc-content .btn,
.gc-content button.btn,
.gc-content a.btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #0b1220;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gc-content .input,
.gc-content input.input,
.gc-content select.input,
.gc-content textarea.input,
.gc-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.gc-content select,
.gc-content textarea {
  width: 100%;
  min-height: var(--gc-control-height);
  border-radius: var(--gc-radius-sm);
  border: 1px solid rgba(0,0,0,.14);
  padding: 10px 14px;
  outline: none;
  background: #fafcfb;
  color: var(--gc-text);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
}

.gc-content textarea {
  min-height: 112px;
  resize: vertical;
}

.gc-content .input::placeholder,
.gc-content input::placeholder,
.gc-content textarea::placeholder {
  color: #9ab4aa;
}

.gc-content .input:focus,
.gc-content input:focus,
.gc-content select:focus,
.gc-content textarea:focus {
  background: #fff;
  border-color: #2f7560;
  box-shadow: 0 0 0 3px rgba(47,117,96,.13);
}

.gc-content label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gc-text);
  margin-bottom: 0;
}

.gc-content form[method="get"],
.gc-content form[method="post"],
.gc-content table,
.gc-content .table {
  background: var(--gc-card);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-md);
}

.gc-content table,
.gc-content .table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.gc-content .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gc-content table thead th,
.gc-content .table thead th {
  padding: 13px 14px;
  background: #f6faf8;
  border-bottom: 1px solid var(--gc-border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  line-height: 1.35;
}

.gc-content table tbody td,
.gc-content .table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf2ef;
  font-size: 13px;
  line-height: 1.45;
  vertical-align: middle;
}

@media (max-width: 992px) {
  body {
    padding-left: 0;
  }

  .gc-side {
    transform: translateX(-110%);
    transition: transform .2s ease;
    width: min(280px, calc(100vw - 40px));
    left: 8px;
    top: 8px;
    bottom: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,.28);
  }

  body.gc-side-open .gc-side {
    transform: translateX(0);
  }

  .gc-topbar {
    left: 10px;
  }

  .gc-menu-btn {
    display: inline-flex;
  }

  .gc-topbar__title {
    font-size: 22px;
  }

  .gc-search {
    width: min(220px, 100%);
  }

  .gc-content {
    padding-inline: 10px;
    padding-top: 74px;
  }

  .gc-settings {
    position: relative;
  }

  .gc-pop {
    position: absolute;
    left: 8px !important;
    right: 8px !important;
    top: calc(100% + 8px) !important;
    bottom: auto !important;
    min-width: 0;
    width: auto;
    max-height: min(60vh, 420px);
    overflow: auto;
  }
}

@media (max-width: 700px) {
  .gc-topbar {
    left: 8px;
    right: 8px;
    height: auto;
    min-height: 54px;
    padding: 8px 10px;
    gap: 8px;
  }

  .gc-topbar__left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .gc-topbar__right {
    flex: 0 0 auto;
    gap: 4px;
  }

  .gc-search {
    display: none;
  }

  .gc-user__meta {
    display: none;
  }

  .gc-content {
    padding-inline: 8px;
    padding-top: 70px;
  }

  .gc-side {
    width: min(272px, calc(100vw - 24px));
    left: 6px;
    top: 6px;
    bottom: 6px;
    border-radius: 16px;
  }
}


@media (max-width: 480px) {
  .gc-topbar {
    align-items: flex-start;
  }

  .gc-topbar__title {
    font-size: 18px;
    line-height: 1.1;
  }

  .gc-topbar__tenant {
    font-size: 11px;
  }

  .gc-act,
  .gc-user__avatar,
  .gc-menu-btn {
    width: 32px;
    height: 32px;
  }

  .gc-content {
    padding-top: 74px;
    padding-inline: 6px;
  }
}
