.container-main {
  margin-top: 80px;
  height: calc(100vh - 80px);
}

#main-container { position: fixed; }
#main-container .row {
  height: 100%;
}

.template { display: none; }

.dropdown-menu [data-action="remove"] {
  color: var(--danger) !important;
}

/**
 * List container
 */
 .default-flex-list .loading-indicator {
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
}

.default-flex-list .list-container {
  width: 100%;
  min-height: 5rem;
  
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: start;
}

.default-flex-list .list-item {
  margin: 1rem;
  position: relative;
  width: 8rem;
  height: 8rem;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}
.default-flex-list .item-name {
  padding: 0.125rem;
  text-align: center;
}
.default-flex-list .item-checkbox input[type="checkbox"] {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}
.default-flex-list .item-image {
  text-align: center;
  width: 8rem;
  height: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.default-flex-list .item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.default-flex-list .empty-data {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.8em;
}

/* Link Category */

.default-flex-list.link-category .list-container {
  display: block;
}
.default-flex-list.link-category .list-item {
  width: unset;
  height: 2.5rem;
}
.default-flex-list .link-item .item-name {
  width: 100%;
  height: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.default-flex-list .link-item:hover {
  text-decoration: none;
}
.default-flex-list .link-item:hover .item-name {
  overflow: scroll;
  text-overflow: unset;
}
.default-flex-list.link-category .category-item {
  flex-direction: row;
  justify-content: flex-start;
  padding-bottom: 1rem;
}
.default-flex-list.link-category .category-item .item-image {
  width: 2rem;
  height: 2rem;
}
.default-flex-list.link-category .category-item .item-name {
  text-align: left;
  width: 100%;
}

/**
 * Sort toolbar
 */

.sort-toolbar {
  font-size: 0.8em;
}
.sort-toolbar > .btn-toolbar {
  min-width: 6rem;
}

.sort-toolbar .add-item-dropdown .dropdown-toggle {
  cursor: pointer;
}
.sort-toolbar .add-item-dropdown .dropdown-toggle::after {
  display: none;
}

.sort-toolbar .add-item-dropdown img {
  width: 4em;
  height: 4em;
}

.sort-toolbar .nav .nav-link {
  padding: 0.25rem 0.5rem;
}

.sort-toolbar .nav .nav-link.active {
  border-bottom: var(--primary) solid 0.125em;
}

/**
 * Panel
 */

.panel {
  border-radius: 0.5rem;
  background-color: var(--light);
  box-shadow: 0.125rem 0.125rem 0.25rem var(--dark);
  position: absolute;
}

.panel-header {
  background-color: var(--info);
  color: var(--white);
  padding: 0.5rem;
  height: 2.5rem;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.panel-content {
  overflow: scroll;
  width: 100%;
  height: calc(100% - 6rem);
}

.draggable-panel .panel-header {
  cursor: move;
}

.panel.droppable-hover .panel-header {
  background-color: var(--warning);
}

#root-category.droppable-hover > .list-container {
  border: var(--warning) solid 0.1rem;
}