:root {
  --tpc-bg: #f6f8f8;
  --tpc-sidebar: #10201f;
  --tpc-sidebar-active: #173130;
  --tpc-line: #d9e4e1;
  --tpc-text: #061318;
  --tpc-muted: #64777f;
  --tpc-primary: #006fac;
  --tpc-sidebar-width: 240px;
  --tpc-sidebar-gap: 32px;
  --tpc-sidebar-collapsed-width: 78px;
}

html.theme-pro-client-ready,
body.customers {
  overflow-x: hidden;
}

body.customers {
  min-height: 100vh;
  background: var(--tpc-bg) !important;
  color: var(--tpc-text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.theme-pro-client-shell {
  min-height: 100vh;
}

.theme-pro-client-sidebar {
  position: fixed;
  inset: 16px auto 16px 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: var(--tpc-sidebar-width);
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  overflow: hidden;
  border-radius: 10px;
  background: var(--tpc-sidebar);
  box-shadow: 0 16px 40px rgba(4, 18, 21, 0.12);
  transition: width 0.2s ease;
}

.theme-pro-client-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(219, 228, 227, 0.14);
  color: #fff;
}

.theme-pro-client-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #1c3737;
  color: #dff2f1;
  font-weight: 700;
}

.theme-pro-client-name {
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-pro-client-toggle {
  position: absolute;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #dff2f1;
  cursor: pointer;
}

.theme-pro-client-toggle:hover,
.theme-pro-client-toggle:focus {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.theme-pro-client-nav {
  display: grid;
  gap: 3px;
  padding: 14px 12px;
  overflow-y: auto;
}

.theme-pro-client-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: #c7dddd;
  font-weight: 650;
}

.theme-pro-client-link:hover,
.theme-pro-client-link:focus,
.theme-pro-client-link.active {
  background: var(--tpc-sidebar-active);
  color: #fff;
  text-decoration: none;
}

.theme-pro-client-link i {
  flex: 0 0 18px;
  width: 18px;
  color: #bdd5d4;
  text-align: center;
}

.theme-pro-client-profile {
  margin: 0;
}

.theme-pro-client-footer {
  display: grid;
  gap: 8px;
  margin: auto 12px 16px;
}

.theme-pro-client-profile > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 7px 9px;
  border: 1px solid rgba(219, 228, 227, 0.12);
  border-radius: 8px;
  background: rgba(20, 41, 40, 0.86);
  color: #d7e8e7;
  font-weight: 650;
}

.theme-pro-client-profile > a:hover,
.theme-pro-client-profile > a:focus {
  background: #173130;
  color: #fff;
  text-decoration: none;
}

.theme-pro-client-profile img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.theme-pro-client-profile .dropdown-menu {
  right: auto;
  left: 0;
  min-width: 210px;
  border-color: rgba(219, 228, 227, 0.14);
  border-radius: 8px;
  background: #142928;
  box-shadow: 0 16px 40px rgba(4, 18, 21, 0.28);
}

.theme-pro-client-profile .dropdown-menu > li > a {
  color: #d7e8e7;
}

.theme-pro-client-profile .dropdown-menu > li > a:hover {
  background: #1b3736;
  color: #fff;
}

.theme-pro-client-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 8px;
  color: #c7dddd;
  font-weight: 650;
}

.theme-pro-client-logout:hover,
.theme-pro-client-logout:focus {
  background: #173130;
  color: #fff;
  text-decoration: none;
}

.theme-pro-client-logout i {
  width: 18px;
  color: #bdd5d4;
  text-align: center;
}

.theme-pro-client-main {
  width: calc(100% - var(--tpc-sidebar-width) - var(--tpc-sidebar-gap));
  margin-left: calc(var(--tpc-sidebar-width) + var(--tpc-sidebar-gap));
  min-height: 100vh;
  overflow-x: hidden;
}

.theme-pro-client-shell.is-public .theme-pro-client-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  min-height: 100vh;
  padding: 72px 24px;
}

.theme-pro-client-shell.is-public #content {
  width: 100%;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.theme-pro-client-shell.is-public .theme-pro-client-container {
  width: 100%;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  padding: 0;
}

body.customers .theme-pro-client-shell.is-public #wrapper.theme-pro-client-main {
  width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.theme-pro-client-shell.is-public .theme-pro-client-container:empty {
  display: none;
}

.theme-pro-client-shell.is-public .theme-pro-client-toggle {
  display: none;
}

.theme-pro-client-auth {
  width: 100%;
  margin: 0 auto;
}

.theme-pro-client-login {
  max-width: 480px;
}

.theme-pro-client-auth-heading,
.theme-pro-client-auth-form {
  float: none;
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
}

.theme-pro-client-login .login-heading {
  max-width: 440px;
  margin-right: auto;
  margin-left: auto;
  font-size: 26px;
  line-height: 1.12;
}

.theme-pro-client-login .panel_s {
  width: 100%;
  margin: 0;
}

.theme-pro-client-login .panel-body {
  padding: 28px;
}

.theme-pro-client-register {
  max-width: 1120px;
}

.theme-pro-client-register-head,
.theme-pro-client-register-form {
  float: none;
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.theme-pro-client-register-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.theme-pro-client-register-title {
  display: grid;
  gap: 10px;
}

.theme-pro-client-back-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #263e49;
  font-weight: 650;
}

.theme-pro-client-back-login:hover,
.theme-pro-client-back-login:focus {
  color: #061318;
  text-decoration: none;
}

.theme-pro-client-register-head > .col-md-6,
.theme-pro-client-register-head > .col-md-3 {
  float: none;
  width: auto;
}

.theme-pro-client-register .register-heading {
  margin: 0;
  text-align: left;
}

.theme-pro-client-register .panel_s {
  margin-bottom: 0;
}

.theme-pro-client-register-steps {
  display: flex;
  gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--tpc-line);
}

.theme-pro-client-register-steps button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--tpc-line);
  border-radius: 999px;
  background: #fff;
  color: #50646c;
  font-weight: 700;
}

.theme-pro-client-register-steps button.active {
  border-color: var(--tpc-sidebar);
  background: var(--tpc-sidebar);
  color: #fff;
}

.theme-pro-client-register .panel-body {
  padding: 30px;
}

.theme-pro-register-step-pane {
  display: none;
}

.theme-pro-register-step-pane.active {
  display: block;
}

.theme-pro-register-step-pane .form-group {
  max-width: 680px;
}

.theme-pro-client-register-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.theme-pro-client-register-footer [data-theme-pro-register-submit] {
  margin-left: auto;
}

.theme-pro-client-login-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.theme-pro-client-login-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--tpc-line);
  border-radius: 999px;
  background: #fff;
  color: #263e49;
  font-weight: 650;
}

.theme-pro-client-login-actions a:hover,
.theme-pro-client-login-actions a:focus {
  border-color: #b9cbc8;
  color: #061318;
  text-decoration: none;
}

.theme-pro-client-container {
  width: 100%;
  max-width: 1220px;
  padding: 24px;
  box-sizing: border-box;
}

.theme-pro-client-main canvas,
.theme-pro-client-main table,
.theme-pro-client-main .table-responsive,
.theme-pro-client-main .dataTables_wrapper,
.theme-pro-client-main .panel_s {
  max-width: 100%;
}

.theme-pro-client-submenu {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin: 10px 0 26px;
  padding: 0;
  list-style: none;
}

.theme-pro-client-submenu a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #263e49;
  font-size: 16px;
}

body.customers .panel_s,
body.customers .panel-body,
body.customers .well,
body.customers .table {
  border-color: var(--tpc-line);
  border-radius: 8px;
  box-shadow: none;
}

body.customers .btn-primary {
  border-color: var(--tpc-primary) !important;
  background: var(--tpc-primary) !important;
  border-radius: 7px;
  font-weight: 650;
}

footer.footer {
  width: calc(100% - var(--tpc-sidebar-width) - var(--tpc-sidebar-gap));
  margin-left: calc(var(--tpc-sidebar-width) + var(--tpc-sidebar-gap));
  border-top: 1px solid var(--tpc-line);
  background: transparent;
}

body.theme-pro-client-collapsed .theme-pro-client-sidebar {
  width: var(--tpc-sidebar-collapsed-width);
}

body.theme-pro-client-collapsed .theme-pro-client-brand {
  justify-content: center;
  padding-right: 8px;
  padding-left: 8px;
}

body.theme-pro-client-collapsed .theme-pro-client-name,
body.theme-pro-client-collapsed .theme-pro-client-link span,
body.theme-pro-client-collapsed .theme-pro-client-profile span,
body.theme-pro-client-collapsed .theme-pro-client-logout span {
  display: none;
}

body.theme-pro-client-collapsed .theme-pro-client-toggle {
  right: 4px;
  top: 18px;
}

body.theme-pro-client-collapsed .theme-pro-client-toggle i {
  transform: rotate(180deg);
}

body.theme-pro-client-collapsed .theme-pro-client-link {
  justify-content: center;
  padding: 0;
}

body.theme-pro-client-collapsed .theme-pro-client-profile > a,
body.theme-pro-client-collapsed .theme-pro-client-logout {
  justify-content: center;
  padding-right: 0;
  padding-left: 0;
}

body.theme-pro-client-collapsed .theme-pro-client-main,
body.theme-pro-client-collapsed footer.footer {
  width: calc(100% - var(--tpc-sidebar-collapsed-width) - var(--tpc-sidebar-gap));
  margin-left: calc(var(--tpc-sidebar-collapsed-width) + var(--tpc-sidebar-gap));
}

@media (max-width: 768px) {
  .theme-pro-client-sidebar {
    inset: 0 auto 0 0;
    width: var(--tpc-sidebar-collapsed-width);
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }

  .theme-pro-client-brand {
    justify-content: center;
    padding: 14px 8px;
  }

  .theme-pro-client-name,
  .theme-pro-client-link span,
  .theme-pro-client-profile span,
  .theme-pro-client-logout span {
    display: none;
  }

  .theme-pro-client-link {
    justify-content: center;
    padding: 0;
  }

  .theme-pro-client-profile > a,
  .theme-pro-client-logout {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
  }

  .theme-pro-client-main,
  footer.footer {
    width: calc(100% - var(--tpc-sidebar-collapsed-width));
    margin-left: var(--tpc-sidebar-collapsed-width);
  }

  .theme-pro-client-container {
    padding: 16px;
  }

  .theme-pro-client-shell.is-public .theme-pro-client-main {
    padding: 32px 16px;
  }

  .theme-pro-client-register-head {
    display: block;
  }

  .theme-pro-client-register-head > .col-md-6,
  .theme-pro-client-register-head > .col-md-3 {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }
}
