/* nav details-summary */
details>summary {
  display: flex;
  background-color: var(--nav_bkgr);
  cursor: pointer;
  list-style: none;
  outline: none;
}

/* nav details hover nav line */
details ul li:hover {
  font-weight: 600;
}

/* nav summary hover nav line */
summary:hover {
  border: 1px solid var(--nav_sel_bkgr);
}

/* nav line */
li {
  display: flex;
  justify-content: flex-start;
  text-decoration: none;
  height: 45px;
  cursor: pointer;
  line-height: 45px;
  font-weight: 600;
}

/* details nav line text */
details ul li {
  padding-left: 45px;
  background-color: var(--nav_bkgr_open);
  color: var(--nav_txt_open);
  font-weight: 400;
}
/* nav line hover */
li:hover {
  border: 1px solid var(--nav_sel_bkgr);
}

/* header of nav */
.nav_hdr {
  display: block;
  height: 56px;
  width: 100%;
  font-size: 1.5rem;
  font-weight: 600;
  padding-left: 20px;
  line-height: 56px;
  background-color: var(--nav_bkgr);
  color: var(--nav_hdr_txt);
  border-bottom: 1px solid var(--nav_line);
  position: relative;
}

/* chevron icon for details */
.chevron {
  border: solid rebeccapurple;
  border-width: 0 1px 1px 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(-45deg);
  transition: transform 0.4s ease;
  flex-shrink: 0;
  margin-right: 5px;
}

/* rotate chevron when details is open */
details[open] .chevron {
  transform: rotate(45deg);
}

/* summary text */
summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding-right: 12px;
  height: 45px;
  width: 100%;
}

/* summary text - ellipsis */
.summary-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  color: var(--nav_txt);
  text-overflow: ellipsis;
}

/* selected nav line */
nav li.selected {
  background-color: var(--nav_sel_bkgr);
  color: var(--nav_sel_txt);
  font-weight: 600;
}

/* --------------- checked --------------- */