/*
 * elFinder Integration
 *
 * Copyright (c) 2010-2025, Alexey Sukhotin. All rights reserved.
 */


.elfinder-button-icon-chown {
  background-image: url('/core/misc/icons/000000/people.svg');
}

.ckeditor5-toolbar-item .ckeditor5-toolbar-button-elfinder_link::before {
  content: "\00a0";
  background: url(/core/modules/ckeditor5/icons/link.svg);
  display: block;
  background-size: 40%;
  background-repeat: no-repeat;
  background-position: 2px 2px;
}

.ckeditor5-toolbar-item .ckeditor5-toolbar-button-elfinder_image::before {
  content: "\00a0";
  background-image: url(/core/modules/ckeditor5/icons/image.svg);
  display: block;
  background-size: 40%;
  background-repeat: no-repeat;
  background-position: 2px 2px;
}

.ckeditor5-toolbar-item .ckeditor5-toolbar-button-elfinder_link, .ckeditor5-toolbar-item .ckeditor5-toolbar-button-elfinder_image {
  background-image: url(/sites/all/libraries/elfinder/img/logo.png);
  width: 10px;
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: bottom 2px right 2px;
}

button.ck-button.btn-elfinder-image, button.ck-button.btn-elfinder-image:hover, button.ck-button.btn-elfinder-link, button.ck-button.btn-elfinder-link:hover {
  background-image: url(/sites/all/libraries/elfinder/img/logo.png)!important;
  background-size: 66%!important;
  background-repeat: no-repeat!important;
  background-position: bottom right!important;
}

button.ck-button.btn-elfinder-image::before {
  content: "\00a0";
  background-image: url(/core/modules/ckeditor5/icons/image.svg);
  display: block;
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: top left;
  width: 18px;
  position: absolute;
  top: 0;
  left: 0;
}

button.ck-button.btn-elfinder-link::before {
  content: "\00a0";
  background-image: url(/core/modules/ckeditor5/icons/link.svg);
  display: block;
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: top left;
  width: 18px;
  position: absolute;
  top: 0;
  left: 0;
}

button.ck-button.btn-elfinder-browse {
  width: 40px;
  height: 40px;
  margin: auto 5px auto 0;
}

button.ck-button.btn-elfinder-browse .ico-elfinder-browse {
  background: url(/sites/all/libraries/elfinder/img/icons-big.svg) 0px -64px;
  background-size: 30px;
  text-indent: -10000px;
  height: 29px;
  width: 30px;
  overflow: hidden;
}

.dialog-insert-image-elfinder.ck-dialog__content {
  display:flex;
}

.elfinder-browser-dialog {
  z-index: 10000!important;
}

#finder {
  padding: 0;
}

.elfinder-info-tb td {
  height: auto;
}