::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #fff;
  border-left: solid 1px #ececec;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px #fff;
}

#metadata_editor {
  font-family: Arial, Helvetica, sans-serif;
}

.mde_root {
  display: flex;
}

/* input files */
button, input, select, textarea{
  min-height: 2em;
  margin: 0.2em;
}
.table>tbody>tr>td{
  vertical-align: middle;
}
.mde_inputfile_container {
  flex: 1;
  height: 80vh;
  overflow-x: visible;
  overflow-y: scroll;
  padding-top: 10px;
}
.mde_inputfile_container_thumbs {
  display: flex;
  flex-wrap: wrap;
}
.mde_inputfile_container_thumbs_div {
  padding: 0 4px 8px 0;
}
.mde_inputfile_container_thumbs_caption {
  font-size: 9px;
  color: #666;
  word-break: break-all;
  text-align: center;
}
.mde_inputfile_container_thumbs img {
  width: 128px;
  height: 96px;
  margin: 0 6px 4px 0;
}

.mde_inputfile_default {
  border-radius: 4px;
}

.mde_inputfile_selected {
  border-radius: 4px;
  border: 5px solid #2384ff;
  box-sizing: border-box;
}

.mde_inputfile_moved {
  border-radius: 4px;
  border: 5px solid #f0f0f0;
  box-sizing: border-box;
  filter: brightness(0.5);
  filter: contrast(0.2);
}

/* folder_summary */

.mde_folder_list {
  flex: 1;
  height: 80vh;
  overflow-x: visible;
  overflow-y: scroll;
  margin-left: 10px;
  background: #fff;
  padding: 6px;
}

.mde_folder_is-empty {
  margin: 10px;
  color: #999;
  font-size: 70%;
  font-weight: bold;
  text-align: center;
}

.mde_folder_summary {
  background-color: #f9f9f9;
  margin-bottom: 10px;
}

.mde_folder_summary_title_1 {
  color: #cc0033;
  font-weight: bold;
  font-size: 120%;
  margin-bottom: 0.6em;
}
.mde_folder_summary_title_2 {
  color: #333;
  font-size: 120%;
  margin-bottom: 0.6em;
}

.mde_folder_summary_thumbs {
  padding: 0 10px;
  display: flex;
  flex-wrap: wrap;
}

.mde_folder_summary_thumbs img {
  width: 64px;
  height: 48px;
  display: inline-flex;
  border: 1px solid #ccc;
  margin: 0 4px 4px 0;
}

.mde_folder_footer {
  margin: 20px 0;
  text-align: center;
}

.mde_detail_modal {
  height: calc(100vh - 40px);
  margin: 20px;
  padding: 20px;
}

.mde_detail_modal_tags_ok {
  font-weight: bold;
  color: #390;
  font-size: 120%;
  line-height: 50px;
}
.mde_detail_modal_tagsperfile {
  font-weight: bold;
  color: #ff008d;
  font-size: 120%;
  line-height: 50px;
}
.mde_detail_modal_tagsperfile_root {
  border: 6px solid #ff008d;
}

.mde_detailItemContainer {
  max-height: calc(45vh - 100px);
  padding: 10px 20px;
  overflow-y: scroll;
}
.mde_detailItemContainer_is-empty {
  margin: 30px;
  color: #ccc;
  font-size: 70%;
  font-weight: bold;
  text-align: left;
}
.mde_detailItemContainer img {
  width: 128px;
  height: 96px;
  display: inline-flex;
  margin-right: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
}
.mde_detailItemContainer img.selected {
  border: 4px solid #2384ff;
}
.mde_detailItemContainer img.hasTag {
  border: 2px solid #90f;
}
.mde_detailItemContainer img.hasTag-selected {
  border: 4px solid #90f;
}

.detailOptionBar {
  margin: 4px 0 12px 0px;
}
.detailOptionBar button {
  text-transform: none;
}
.detailOptionBar-hidden {
  display: none;
}

.mde_detail_tag_container {
  max-height: calc(50vh - 20px);
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  overflow-y: scroll;
}
.mde_detail_tag_panel {
  display: flex;
  flex-wrap: wrap;
  max-height: 50%;
  overflow-y: scroll;
}
.mde_detail_tag_panel button {
  font-size: 120%;
  margin: 0 6px 12px 0;
  text-transform: none;
}
.mde_detail_tag_mv {
  display: block;
  margin: 0 0 8px 0;
  border: 0;
  padding: 0px;
  color: #f06;
  font-size: larger;
}

.mde_detail_modal_cb-tpf {
  color: rgb(108, 65, 208);
}

.mde_photoview {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.mde_photoview_prev {
  flex-grow: 1;
  text-align: center;
  flex-basis: 40px;
}
.mde_photoview_img {
  flex-grow: 4;
  text-align: center;
}
.mde_photoview_img_filename {
  font-size: 80%;
  margin: 10px;
  color: white;
}
.mde_photoview_img img {
  min-width: 400px;
  min-height: 300px;
  max-width: 70vw;
  max-height: 70vh;
}
.mde_photoview_next {
  flex-grow: 1;
  flex-basis: 40px;
  text-align: center;
}

.tags_img_container {
  display: flex;
  flex-wrap: wrap;
}
.tags_img {
  margin: 2px;
  border: 4px solid #ccc;
}
.tags_img img {
  width: 128px;
  height: 96px;
}

/* --- 以下obsolete --------------- */

.mde_header {
  margin: 0px 0px 10px 0px;
}

.mde_header_label {
  line-height: 36px;
  text-align: right;
}

.mde_header_datasetname {
  width: 36em;
}

.mde_header_dropzone {
  margin: 10px 10px 0px 10px;
  border: 4px dashed #ccc;
  border-radius: 10px 10px 10px 10px;
  padding: 100px;
  text-align: center;
  color: #ccc;
  font-weight: bold;
  background-color: white;
}

.mde_header_busy {
  color: #36c;
  background-color: #e0e0e0;
}

.mde_header_dropzone_hidden {
  display: none;
}

.mde_input {
  display: flex;
  margin-bottom: 8px;
}

.mde_input_hidden {
  display: none;
}

/* save */
.mde_save {
  text-align: center;
  padding: 16px 0 4px 0;
}

.flex{
  display: flex;
}
.flex.between{
  justify-content: space-between;
}
.hidden {
  display: none;
}
