/* IAcessivel CRM 0.21.0: navegacao lateral e configuracao progressiva do cliente. */
#clientModeBar {
  display: none !important;
}

#tenantPanel .tenant-tabs > .client-quick-setup-tab {
  display: none !important;
}

#tenantPanel[data-client-panel-mode="advanced"] .tenant-tabs > button.client-advanced-only {
  display: inline-flex !important;
}

#tenantUsagePanel > .card > .section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

#tenantUsagePanel > .card > .section-title > div:first-child {
  min-width: 0;
}

.client-usage-head-action {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
}

.client-usage-head-action #tenantHandoffSettingsBtn {
  width: auto;
  max-width: 100%;
  min-height: 40px;
  margin: 0;
  white-space: normal;
}

.client-side-navigation {
  display: grid;
  min-height: 0;
  max-height: calc(100vh - 330px);
  margin: 9px 0 3px;
  padding: 13px 8px 10px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 241, 111, .35) transparent;
}

.client-side-navigation.hide {
  display: none !important;
}

.client-side-navigation > span {
  padding: 0 7px 8px;
  color: #7f9f93;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.client-side-tabs {
  display: grid;
  gap: 3px;
}

.client-side-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #9db5ab;
  background: transparent;
  box-shadow: none;
  font-size: .66rem;
  font-weight: 720;
  text-align: left;
}

.client-side-tab:hover,
.client-side-tab.active {
  transform: none;
  color: #fff;
  border-color: rgba(216, 241, 111, .12);
  background: rgba(255, 255, 255, .07);
  box-shadow: none;
}

.client-side-tab.active::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #d8f16f;
  box-shadow: 0 0 0 4px rgba(216, 241, 111, .1);
}

.client-side-tab[data-private="true"] {
  margin-top: 7px;
  padding-top: 10px;
  border-top-color: rgba(255, 255, 255, .09);
  border-radius: 0 0 10px 10px;
  color: #c4d9d0;
}

.client-training-mode {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 12px 0 16px;
  padding: 14px 16px;
  border: 1px solid #cce3db;
  border-radius: 14px;
  background: #f3faf7;
}

.client-training-mode > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.client-training-mode b {
  color: #173d31;
  font-size: .8rem;
}

.client-training-mode p {
  margin: 0;
  color: #5c746b;
  font-size: .67rem;
  line-height: 1.45;
}

.client-mode-switch {
  display: grid;
  grid-template-columns: auto minmax(110px, auto);
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

.client-mode-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.client-mode-switch-track {
  position: relative;
  width: 46px;
  height: 26px;
  border: 1px solid #a9c8bd;
  border-radius: 999px;
  background: #dfeae6;
  transition: background .18s ease, border-color .18s ease;
}

.client-mode-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(8, 56, 43, .22);
  transition: transform .18s ease;
}

.client-mode-switch input:checked + .client-mode-switch-track {
  border-color: #14755a;
  background: #14755a;
}

.client-mode-switch input:checked + .client-mode-switch-track::after {
  transform: translateX(20px);
}

.client-mode-switch input:focus-visible + .client-mode-switch-track {
  outline: 3px solid rgba(216, 241, 111, .65);
  outline-offset: 2px;
}

.client-mode-switch strong {
  color: #23473b;
  font-size: .68rem;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .client-side-navigation {
    display: none !important;
  }
}

@media (max-width: 640px) {
  #tenantUsagePanel > .card > .section-title,
  .client-training-mode {
    grid-template-columns: 1fr;
  }

  .client-usage-head-action,
  .client-usage-head-action #tenantHandoffSettingsBtn {
    width: 100%;
  }

  .client-usage-head-action {
    justify-content: stretch;
  }

  .client-mode-switch {
    justify-content: space-between;
  }
}
