/* Bookmark
  ========================================================================================= */

.btn-bookmark {
  position: fixed;
  width: 40px;
  height: 40px;
  bottom: 10px;
  right: 10px;
  background-color: rgb(65 118 144 / 10%);
  color: #fff;
  border-radius: 50px;
  text-align: center;
}

.btn-bookmark:hover {
  cursor: pointer;
  background-color: #628da3;
}

.btn-bookmark .icon {
  margin-top: 14px;
}

/* INLINE MODEL
  ========================================================================================= */
.inline-group .tabular td.original p {
  display: none;
}

.inline-group .tabular tr.has_original td {
  padding-top: 8px;
}

/* FILTER BOX
  ========================================================================================= */
#content-main {
  position: relative;
}

#changelist-filter {
  position: absolute;
  right: 10px;
  top: 8px;
  background: var(--hairline-color);
}

#changelist-filter #changelist-filter-extra-actions {
  margin-bottom: 0px;
}

#changelist-filter details > summary {
  cursor: pointer;
}

#changelist-filter h2 {
  margin: 0;
  text-align: right;
  color: var(--sidebar-caption-color);
  font-weight: bold;
}

#changelist-filter h2:hover {
  cursor: pointer;
}

#changelist-filter h3,
#changelist-filter ul,
details {
  display: none;
}

#changelist-filter:hover h3,
#changelist-filter:hover ul,
#changelist-filter:hover details {
  display: block;
  min-width: 200px;
}

@media (max-width: 1024px) {
  #changelist-filter {
    top: 196px;
  }
}

/* STYLE CUSTOM BUTTONS
  ========================================================================================= */
.d-btn {
  background-color: #ffffff;
  border-radius: 3px;
  border: 1px solid #dcdcdc;
  display: inline-block;
  cursor: pointer;
  color: #666666;
  font-weight: bold;
  padding: 2px 5px;
  min-width: 40px;
  text-decoration: none;
}

.d-btn:focus {
  border: 1px solid #dcdcdc;
  outline: #dcdcdc !important;
}

.d-btn:hover {
  background-color: #f6f6f6;
}

.d-btn:active {
  border: 1px solid #dcdcdc;
  position: relative;
  top: 1px;
}

/* CHANGE LIST TABLE
  ========================================================================================= */
table#result_list .field-id {
  font-family: monospace;
  white-space: nowrap;
}

.f-mono {
  font-family: monospace;
}

/* ALIGN FROM ROW
  ========================================================================================= */
.form-multiline > div {
  flex: 1;
}

#content-main {
  margin-bottom: 5px;
}

.submit-row {
  justify-content: end;
  margin-top: 5px;
}

/* MENU SIDEBAR
  ========================================================================================= */

#nav-filter {
  height: 35px;
  margin-top: 10px;
  border-radius: 3px;
  /* background-color: var(--primary); */
  border: none;
}

#nav-filter:focus {
  outline: none;
}

#nav-filter.no-results {
  background: var(--primary);
}

/**
  #nav-sidebar::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
  }

  #nav-sidebar::-webkit-scrollbar {
    width: 10px;
    background-color: #F5F5F5;
  }

  #nav-sidebar::-webkit-scrollbar-thumb {
    background-color: #ffffff;
    border: 1px solid #d6d6d6;
  }
  */

.toggle-nav-sidebar::before {
  content: "\2630";
}

.main.shifted .toggle-nav-sidebar::before {
  content: "\2630";
}

.toggle-nav-sidebar {
  position: absolute;
  height: 48px;
  border: none;
  top: 0;
  left: 8px;
  background-color: rgba(0, 0, 0, 0);
  color: var(--header-link-color);
  font-size: 1.5em;
}

.toggle-nav-sidebar:hover {
  background-color: var(--secondary);
}

.toggle-nav-sidebar:focus {
  outline: none;
  background-color: var(--secondary);
}

.main.shifted > #nav-sidebar {
  left: 0;
}

#nav-sidebar {
  flex: 0 0 256px;
  border-right: 0;
  border-top: 0;
  background-color: var(--sidebar-bg);
}

.main > #nav-sidebar + .content {
  margin-left: 40px;
}

.main.shifted > #nav-sidebar + .content {
  margin-left: 0;
  max-width: calc(100% - 257px);
}

@media (max-width: 768px) {
  .main.shifted > #nav-sidebar + .content {
    max-width: 100%;
  }

  .main > #nav-sidebar + .content {
    margin-left: 0;
  }
}

#nav-sidebar table {
  width: 100%;
}

#nav-sidebar tbody {
  display: none;
}

#nav-sidebar tbody tr {
  padding-left: 10px;
}

#nav-sidebar .module {
  margin-bottom: 0;
}

#nav-sidebar .module caption {
  color: var(--sidebar-caption-color);
  line-height: 2em;
  font-size: 13px;
  font-weight: bold;
  text-transform: capitalize;
}

#nav-sidebar .module caption .app-icon {
  position: absolute;
}

#nav-sidebar .module caption .app-name {
  margin-left: 30px;
}

#nav-sidebar .module caption:hover {
  background-color: var(--sidebar-hover-bg);
  cursor: pointer;
}

#nav-sidebar tbody tr:hover {
  background-color: var(--sidebar-hover-bg);
}

#nav-sidebar tr {
  background-color: var(--sidebar-bg);
  color: var(--sidebar-row-color);
}

.module h2,
.module caption,
.inline-group h2 {
  background-color: var(--sidebar-bg);
}

#nav-sidebar tr th a {
  padding-left: 30px;
  white-space: nowrap;
  display: inline-block;
  width: 140px;
}

#nav-sidebar tr a:focus {
  text-decoration: none;
}

#nav-sidebar td,
#nav-sidebar th {
  border: none;
  font-weight: normal;
  line-height: 1.5em;
}
