/********************
 * Search container *
 ********************/

.modal-search-control {
  background: #fff;
  min-width: 34px;
  max-width: 34px;
  outline: none;
  border: none;
  height: 34px;
}

#modalSearchContainer {
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
  border: thin solid #cccdce;
  margin: 9px 10px 0px 10px;
  box-sizing: content-box;
  border-radius: 1px;
  font-weight: 400;
  font-size: 14px;
  display: flex;
  height: 34px;
}

#modalSearchClose:hover {
  background: #f2f2f2;
  cursor: pointer;
}

#modalSearchIcon:hover {
  background: #c56d5f;
  cursor: auto;
}

#modalSearchInput {
  padding: 6px 12px;
  outline: none;
  border: none;
  height: 34px;
  width: 100%;
}

#modalSearchClose {
  background: #ffffff;
  padding: 6px 6px;
}

#modalSearchIcon {
  background: #c56d5f;
  padding: 0px 0px;
}

/********************
 * Recent container *
 ********************/

.modal-recent-item:hover .modal-recent-icon-right {
  background: transparent;
}

.modal-recent-item:hover .modal-recent-icon-left {
  background: #e5e5e5;
}

.modal-recent-item:hover {
  filter: drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.15));
  border: 1px solid #cccdce;
  border-radius: 1px;
  cursor: pointer;
}

#modalRecentHeader:hover {
  cursor: pointer;
}

.modal-recent-icon-right {
  background: transparent;
  margin-left: auto;
  padding: 0 0 0 0;
  outline: none;
  border: none;
  height: 20px;
  width: 20px;
}

.modal-recent-icon-left {
  background: linear-gradient(
    180deg,
    #f9f9f9 0%,
    rgba(249, 249, 249, 0.8) 100%
  );
  border-radius: 2px;
  margin-right: 2px;
  height: 20px;
  width: 3px;
}

.modal-recent-item:not(:last-child) {
  margin-bottom: 10px;
}

.modal-recent-item:last-child {
  margin-bottom: 0px;
}

.modal-recent-item {
  border: 1px solid #e3e3e3;
  align-items: center;
  border-radius: 2px;
  background: #fff;
  user-select: none;
  list-style: none;
  padding: 5px 7px;
  max-width: 216px;
  min-width: 200px;
  display: flex;
}

.modal-recent-text {
  margin-right: 10px;
  margin-left: 10px;
  line-height: 14px;
  font-weight: 500;
  font-size: 12px;
}

#modalRecentHeaderIcon {
  background: transparent;
  margin-left: auto;
  padding: 0 0 0 0;
  outline: none;
  border: none;
  height: 17px;
  width: 17px;
  order: 1;
}

#modalRecentHeaderText {
  text-transform: uppercase;
  margin: 0 10px 0 10px;
  user-select: none;
  line-height: 15px;
  color: #4f4f4f;
  font-weight: 500;
  font-size: 13px;
  width: 100%;
  order: 2;
}

#modalRecentContainer {
  border-left: 1px solid rgba(224, 224, 224, 0.5);
  background: rgba(249, 249, 249, 0.5);
  flex-direction: column;
  display: flex;
  height: 100%;
}

#modalRecentContent {
  position: relative;
  margin-right: 16px;
  margin-left: 16px;
  display: flex;
  flex-grow: 1;
}

#modalRecentHeader {
  padding: 20px 16px 13px 16px;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  display: flex;
}

#modalRecentWrapper {
  font-weight: normal;
  overflow-y: auto;
  padding: 0px 0px;
  margin: 10px 0px;
  width: 100%;
}

#modalRecentHide {
  background: transparent;
  position: static;
  margin-left: 0px;
  padding: 0 0 0 0;
  outline: none;
  border: none;
  height: 17px;
  width: 6px;
  order: 3;
}

#modalRecentShow {
  transform: rotate(180deg);
  background: transparent;
  position: absolute;
  margin-left: 0px;
  outline: none;
  border: none;
  height: 17px;
  width: 17px;
  top: 50%;
}

.modal-recent-sm > #modalRecentContent::before {
  background: #e3e3e3;
  position: absolute;
  width: 48px;
  height: 1px;
  content: "";
  left: -16px;
}

.modal-recent-lg > #modalRecentContent::before {
  background: #e3e3e3;
  position: absolute;
  width: 100%;
  height: 2px;
  content: "";
  left: 0px;
}

.modal-recent-sm > #modalRecentContent {
  overflow: visible;
}

.modal-recent-lg > #modalRecentContent {
  overflow: hidden;
}

.modal-recent-sm:hover {
  cursor: pointer;
}

.modal-recent-lg:hover {
  cursor: default;
}

.modal-recent-sm {
  width: 48px;
}

.modal-recent-lg {
  width: auto;
}

/******************
 * List container *
 ******************/

@media (max-width: 564px) {
  #modalListItems {
    column-gap: 4px;
  }
}

@media (min-width: 564px) {
  #modalListItems {
    column-gap: 8px;
  }
}

#modalListAdd:not(:hover) {
  cursor: default;
}

#modalListAdd:hover {
  cursor: pointer;
}

#modalListContainer {
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
  flex: 1;
}

#modalListWrapper {
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
}

#modalListContent {
  padding: 15px 10px;
  overflow-x: hidden;
  overflow-y: hidden;
  min-height: 100%;
}

#modalListItems {
  column-width: 264px;
  padding-right: 0px;
  padding-left: 0px;
  margin: 0px;
}

#modalListEmpty {
  transform: translate(-50%, -50%);
  position: absolute;
  user-select: none;
  font-weight: 400;
  font-size: 18px;
  display: none;
  left: 50%;
  top: 50%;
}

#modalListAdd {
  background: #c56d5f;
  border-radius: 50%;
  text-align: center;
  position: absolute;
  user-select: none;
  line-height: 35px;
  font-size: 18px;
  color: white;
  height: 35px;
  width: 35px;
  bottom: 24px;
  right: 24px;
}

.modal-list-item-desc[data-clickable="false"]:hover {
  color: #828282;
}

.modal-list-item-desc[data-clickable="true"]:hover {
  color: #000000;
}

.modal-header-visible > .modal-list-header-text {
  visibility: visible;
}

.modal-header-hidden > .modal-list-header-text {
  visibility: hidden;
}

.modal-header-visible::after {
  background: rgba(227, 227, 227, 0.5);
  height: calc(100% - 30px);
  position: absolute;
  content: "";
  width: 1px;
  left: 15px;
  top: 30px;
}

.modal-header-hidden::after {
  background: rgba(227, 227, 227, 0.5);
  height: calc(100% - 0px);
  position: absolute;
  content: "";
  width: 1px;
  left: 15px;
  top: 0px;
}

.modal-list-content:hover {
  cursor: pointer;
}

.modal-list-header-text {
  background-color: #3279bb;
  text-transform: uppercase;
  text-align: center;
  border-radius: 3px;
  user-select: none;
  line-height: 30px;
  font-weight: bold;
  font-size: 13px;
  color: white;
  height: 30px;
  width: 30px;
}

.modal-list-item-desc {
  margin: 8px 0px 0px 0px;
  justify-content: start;
  max-width: min-content;
  align-items: center;
  color: #828282;
  display: flex;
}

.modal-list-text-lg {
  line-height: 15px;
  margin-left: 0px;
  font-weight: 500;
  font-size: 12px;
}

.modal-list-text-sm {
  line-height: 14px;
  margin-left: 5px;
  font-weight: 300;
  font-size: 12px;
}

.modal-list-content {
  box-shadow: 0px 2px 6px 0px rgba(130, 130, 130, 0.25);
  border: thin solid #cccdce;
  margin: 0 0 8px 8px;
  border-radius: 1px;
  padding: 14px 15px;
  width: 226px;
}

.modal-list-prefix {
  background: #8e8e8e;
  font-style: italic;
  border-radius: 2px;
  padding-right: 2px;
  padding-left: 2px;
  margin-right: 5px;
  font-size: 13px;
  color: white;
}

.modal-list-header {
  position: relative;
  width: 30px;
}

.modal-list-item {
  display: inline-block;
  user-select: none;
  list-style: none;
  width: 264px;
}

.modal-list-wrap {
  display: flex;
}

/*********************
 * Content container *
 *********************/

#modalContentContainer::before {
  background-color: rgba(224, 224, 224, 0.5);
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
}

#modalContentContainer {
  margin: 14px 0px 0px 0px;
  position: relative;
  overflow: hidden;
  font-weight: 400;
  font-size: 14px;
  display: flex;
  flex: 1;
}

/*********************
 * Options container *
 *********************/

#modalOptionsContainer > .modal-option + .modal-option {
  border-left: 1px solid rgba(224, 224, 224, 1);
}

.modal-option-switch > input:checked + label:before {
  transform: translateX(13px) translateY(-50%);
}

.modal-option-switch > input:not(:checked) + label {
  background: #cccccc;
}

.modal-option-switch > input:checked + label {
  background: #529653;
}

.modal-option-switch > label::before {
  transform: translateX(0px) translateY(-50%);
  background: white;
  border-radius: 50%;
  position: absolute;
  transition: 0.2s;
  display: block;
  height: 12px;
  width: 12px;
  content: "";
  left: 3px;
  top: 50%;
}

.modal-option-switch > input {
  display: none;
}

.modal-option-switch > label {
  border-radius: 16px;
  position: relative;
  transition: 0.2s;
  cursor: pointer;
  margin: 0px 0px;
  height: 16px;
  width: 30px;
}

#modalOptionsContainer {
  border-top: 1px solid rgba(224, 224, 224, 1);
  justify-content: space-around;
  align-items: center;
  display: flex;
  width: 100%;
}

.modal-option-switch {
  display: inline-block;
  position: relative;
  margin: 4px 5px;
  height: 16px;
  width: 30px;
}

.modal-option-text {
  line-height: 16px;
  font-size: 13px;
}

.modal-option:hover {
  cursor: pointer;
}

.modal-option {
  justify-content: center;
  align-items: center;
  user-select: none;
  padding: 5px 0px;
  display: flex;
  width: 100%;
  background-color: rgba(249, 249, 249, 0.5);
}

.modal-option:hover {
  background-color: rgba(249, 249, 249, 1) !important;
}

/********************
 * Dialog container *
 ********************/

#modalDialogContainer {
  background-color: #fff;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  z-index: 100000;
  display: flex;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}

/***************
 * Text styles *
 ***************/

.modal-text-nowrap {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.modal-text-green {
  color: #529653;
}

.modal-text-gray {
  color: #828282;
}

.modal-text-dark {
  color: #000000;
}

.modal-text-mark {
  color: #ff553e;
}

/**************
 * Svg styles *
 **************/

.modal-svg-toggle {
  margin: 0px 0px 0px auto;
  display: block;
}

.modal-svg-normal {
  margin: 0px 0px 0px 0px;
  display: block;
}
