body {
  background-color: var(--gray10);
}

.sg {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: 50px 1fr;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "sg-header sg-header"
    "sg-leftnav sg-main-body";
  height: 100vh;
  /* width: 1440px; */
  margin: auto;
}

.sg-header {
  grid-area: sg-header;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray30);
  display: flex;
  align-items: center;

  color: var(--gray50);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.sg-leftnav {
  grid-area: sg-leftnav;
  border-right: 1px solid var(--gray30);
  background: var(--white);
  overflow-y: auto;
  padding-bottom: 16px;
}
.sg-leftnav a {
  padding: 8px;
  display: block;
  margin: 4px;
  border-radius: var(--border-radius);
  font-size: 16px;
}

.sg-leftnav a:hover {
  background: var(--blue10);
  color: var(--gray60);
}
.nav-sel {
  width: 100%;
  text-align: left;
  border: none;
  padding: 8px;
  background: white;
  transition: background-color 0.3s ease-in-out;
  border-radius: 4px;
  color: var(--gray60);
  font-weight: 400;
  margin: 0;
}
.nav-sel:hover {
  background: var(--blue10);
}

.nav-sel.active {
  background: var(--blue10);
  border-right: 4px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
}
.sg-main-body {
  grid-area: sg-main-body;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--gray10);
}
/* .sg-main-body .card:first-of-type{
position: sticky;
top: 0;
z-index: 1;
} */
.html {
  width: 100%;

  padding: 2px 16px;

  border-radius: var(--border-radius);
  border: 1px solid var(--blue20);
  background: var(--blue10);
  color: var(--accent);
  cursor: copy;
}
.html:not(:last-of-type) {
  margin-right: 8px;
}
/* textarea.html {
  width: 100%;
} */
.sg_search_bar {
  padding: 4px;
  margin-bottom: 8px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--gray20);
}
.swatches {
  box-shadow: var(--box-shadow);
  margin: 10px;
  width: 160px;
  height: 190px;
}
.swatches__color {
  width: 160px;
  height: 150px;
}
.swatches__val {
  padding: 8px;
}
.palette {
  display: flex;
  flex-wrap: wrap;
}
.sg_nav__title {
  padding: 8px;
  border-bottom: 1px solid var(--gray30);
  border-top: 1px solid var(--gray30);
  margin: 8px 0;
  font-weight: 600;
  position: sticky;
  top: 45px;
  z-index: 1;
  background: var(--gray20);
}

ol,
ul {
  margin: 0 10px;
}
.code {
  font-family: consolas;
  background: var(--gray10);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--gray60);
  font-size: 14px;
}

.body-widgets {
  grid-template-columns: 1fr;
  grid-template-areas:
    "BWR " "BWC"
    "BWL ";
}

/* layouts */

/* main three col */
.tcol {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: 60px auto auto 1fr auto;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "header header header "
    "left-nav sub-nav breadcrumbs "
    "left-nav sub-nav ee-notice "
    "left-nav sub-nav mani-body "
    "footer  footer footer ";
  height: 100vh;
  width: 100%;
}

.tcol .header {
  grid-area: header;
}
.tcol .left-nav {
  grid-area: left-nav;
  width: 60px;
}
.tcol .breadcrumbs {
  grid-area: breadcrumbs;
  height: 34px;
}

.tcol .sub-nav {
  grid-area: sub-nav;
  width: 200px;
}
.tcol .ee-notice {
  grid-area: ee-notice;
}
.tcol .mani-body {
  grid-area: mani-body;
}
.tcol .footer {
  grid-area: footer;
  height: 34px;
}

.tcol * {
  border: 1px solid red;
  position: relative;
}

.tcol *:after {
  content: attr(class);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  align-items: center;
  justify-content: center;
}

/* table */

.iconDisp {
  font-size: 32px !important;
}
h1 {
  margin: 16px;
  font-weight: 300;
  font-size: 32px;
}

textarea,
textarea.form-control {
  max-height: unset;
}

.sg-nav {
}
.sectionTitle {
  font-size: 24px;
  margin: 24px 0 8px 24px;
  position: sticky;
  top: 48px;
  background-color: var(--white);
  padding: 24px 16px 16px 16px;
  z-index: 9;
  border-bottom: 1px solid var(--gray30);
  display: flex;
  align-items: center;
}
.sectionTitle i {
  font-size: 16px;
}
.sectionItem {
  margin-left: 40px;
}

.sectionSubTitle {
  position: absolute;
  bottom: 25px;
  font-size: 20px;
  right: 10px;
  /* position: absolute;
  top: 4px;
  left: 25px;
  font-size: 16px; */
}

.headerTitle {
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 8px 16px;
  margin: 0;
}
.mainbody__wrapper {
  padding: 0 !important;
}
