html.library-opened{
  font-size: 57.5%;
}

#library-modal{
  padding: 0 !important;
  z-index: 999998;
  top: 1rem;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  width: auto;
  height: auto;
}

#library-modal{
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1.4;
}

@media(min-width:992px){
  #library-modal .modal-dialog{
    overflow: hidden;
  }
}

#library-modal .modal-body{
  padding: 0;
}

#library-modal .modal-content{
  border: none;
}

#lib-image-viewer,
#lib-pdf-viewer,
#lib-audio-viewer,
#lib-model-viewer{
  z-index: 999999;
}

.modal-inside{
  background-color: rgba(0, 0, 0, 0.7);
}

#lib-image-viewer .modal-content,
#lib-pdf-viewer .modal-content,
#lib-audio-viewer .modal-content,
#lib-model-viewer .modal-content{
  border: none;
  padding: 15px;
}

#library-modal .no-padding{
  padding: 0;
}

#library-modal .row-library {
  overflow: hidden;
  margin: 0;
  min-height: calc(100vh - 10rem);
}

#library-modal .col-library{
  padding-left: 0;
  padding-right: 0;
}

#library-modal .col-library-type{
  position: relative;
  z-index: 100;
  background-color: #fff; /* body-bg */
  padding: 1rem;
}

#library-modal .col-library-type-inner{
  max-height: calc(100vh - 10rem);
}

#library-modal .col-library-explorer{
  background-color: #fff; /* body-bg */
}

#library-modal .col-library-explorer-inner{
  padding: 1rem 0;
  height: calc(100vh - 10rem);
}

#library-modal .col-library-content{
  background-color: #f9f9f9; /* grey-01 */
}

#library-modal .col-library-content-inner{
  padding: 3rem;
  height: calc(100vh - 10rem);
}

#library-modal .modal-header{
  background-color: #fff; /* body-bg */
  border-bottom: 1rem solid #f9f9f9; /* grey-01 */
  padding: 1.5rem 0;
  border-radius: 0
}

#library-modal .modal-header h4{
  color:#000; /* body-color */
  font-size: 2.4rem;
  margin: 0;
  line-height: 4rem;
  text-transform: uppercase;
  font-weight: 400;
}

#library-modal .col-lib-top-tools{
  text-align: right;
}

#library-modal .lib-top-tools{
  display: inline-block;
}

#library-modal .btn-library{
  border: none;
  border-radius: 4rem;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  line-height: 2rem;
  height: 4rem;
  margin-left: 1rem;
  cursor: pointer;
}

#library-modal .btn-library .fa{
  margin-right: 5px;
}

#library-modal .btn-add-folder{
  background-color: #666666; /* grey-07 */
  color:#fff; /* body-color-inv */
}

#library-modal .btn-add-folder:hover,
#library-modal .btn-add-folder:active,
#library-modal .btn-add-folder:focus{
  color:#fff; /* body-color-inv */
  background-color: #555555; /* grey-08 */
}

#library-modal .btn-add-folder:hover .fa{
  color:#fff; /* body-color-inv */
}

#library-modal .btn-add-file{
  position: relative;
  background-color: #0057cc; /* primary */
  color:#fff; /* body-color-inv */
}

#library-modal .btn-add-file:hover,
#library-modal .btn-add-file:active,
#library-modal .btn-add-file:focus{
  color:#fff; /* body-color-inv */
  background-color: darken(#0057cc, 10%); /* dark-primary */
}

#library-modal .btn-add-file:hover .fa{
  color:#fff; /* body-color-inv */
}

#library-modal .search-library{
  height: 4rem;
  width: 20rem;
  border: 1px solid #e5e5e5; /* grey-02 */
  border-radius: 2rem;
  margin-left: 1rem;

  display: inline-table;
  vertical-align: middle;
}

#library-modal .search-library .input-group-addon,
#library-modal .search-library .input-group-btn,
#library-modal .search-library .form-control,
#library-modal .search-library .btn{
  width: auto !important;
  background: transparent;
  border: none;
  color: #000; /* body-color */
}

#library-modal .search-library .btn:hover,
#library-modal .search-library .btn:active,
#library-modal .search-library .btn:focus{
  background: transparent;
  border: none;
  box-shadow: none;
}

#library-modal .search-library .form-control{
  font-size: 1.4rem;
  height: 3.8rem;
  color: #000; /* body-color */
  padding-left: 1.5rem;
}

#library-modal .search-library .form-control:focus{
  box-shadow: none;
}

#library-modal .search-library .input-group-btn{
  position: absolute;
  top: 0px;
  right: 5px;
}

#library-modal .search-library .btn{
  font-size: 15px;
  height: 36px;
  line-height: 24px;
  padding: 6px;
}

#library-modal .search-library .fa{
  color:#fff; /* body-color-inv */
}

#library-modal .search-library .form-control::placeholder {
  color: #9b757d; /* input-placeholder */
}

#library-modal .btn-close-library{
  padding-left: 30px;
  padding-right: 30px;
  background-color: transparent;
  border: 1px solid transparent;
}

#library-modal .treeview-icon-home{
  font-size: 20px;
  color: #999; /* grey-06 */
  position: relative;
  top: 3px;
  left: 4px;
  cursor: pointer;
}

#library-modal .treeview-icon-home:hover{
  text-decoration: underline;
  color: #0057cc; /* primary */
}

#library-modal .treeview-text-home{
  margin-left: 1rem !important;
  overflow: visible !important;
}

#library-modal .treeview-icon{
  font-size: 20px;
  color: #f1d35e; /* static */
  position: absolute;
  top: 2px;
  left: 15px;
}

#library-modal .list-group.lib-menu{
  display: block;
  font-size: 0;
}

#library-modal .lib-menu .list-group-item{
  display: block;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 2.4rem;
  padding: 1rem 1.5rem;
  margin: 0;
  color: #0057cc; /* primary */
  border-radius: 0;
}

#library-modal .category-icon{
  display: inline-block;
  width: 2.4rem;
  text-align: center;
  font-size: 2rem;
  margin-right: 1rem;
  position: relative;
}

#library-modal .lib-menu .list-group-item:hover,
#library-modal .lib-menu .list-group-item.active{
  background-color: #0057cc; /* primary */
  color: #fff; /* body-color-inv */
}

#library-modal .lib-tree-view{
  margin: 0;
  padding: 1.5rem 1rem 2.5rem 1rem;
}

#library-modal .lib-tree-view ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#library-modal .lib-tree-view ul {
  margin-left: 15px;
  position: relative;
}

#library-modal .lib-tree-view ul ul {
  margin-left: 10px;
}

#library-modal .lib-tree-view ul:before {
  content: "";
  width: 0;
  display: block;
  position: absolute;
  top: 1px;
  bottom: 0;
  left: 0;
  border-left: 1px solid #bbb; /* grey-05 */
}

#library-modal .lib-tree-view li {
  margin: 0;
  padding: 3px 15px;
  color: #333; /* grey-08 */
  position: relative;
}

#library-modal .lib-tree-view ul li:before {
  content: "";
  width: 13px;
  height: 0;
  display: block;
  border-top: 1px solid #bbb; /* grey-05 */
  margin-top: 3px;
  position: absolute;
  top: 12px;
  left: 0;
}

#library-modal .lib-tree-view ul li:last-child:before {
  height: auto;
  background: #fff; /* body-bg */
  top: 12px;
  bottom: 0;
}

#library-modal .lib-tree-view li i{
  position: relative;
  top: -1px;
  cursor: pointer;
  font-size: 20px;
  color: #999999; /* grey-06 */
  vertical-align: top;
  width: 24px;
}

#library-modal .lib-tree-view li a{
  display: inline-block;
  color: #333; /* grey-08 */
  line-height: 1.5;
  text-decoration: none;
  margin-top: 4px;
  margin-left: 2.5rem;
  position: relative;
  max-width: 95%;
  font-size: 1.4rem;
  padding: 0.1rem 0.5rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#library-modal .lib-tree-view li a:hover{
  text-decoration: underline;
  color: #0057cc; /* primary */
}

#library-modal .lib-tree-view li.active > a{
  color:#000; /* body-color */
  background-color: #e6eefa; /* light-primary */
  border-radius: 0.3rem;
}

/*    */

#library-modal .lib-thumbnail{
  min-width: 200px;
  position: relative;
}

#library-modal .lib-thumbnail a > canvas,
#library-modal .lib-thumbnail > canvas{
  margin-right: auto;
  margin-left: auto;
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

#library-modal .lib-thumbnail .label{
  position: absolute;
  bottom: 35px;
  width: 100%;
  text-align: center;
  overflow: hidden;
  font-size: 1.4rem;
  font-weight: 500;
  background-color: #e5e5e5; /* grey-02 */
  color: #000; /* body-color */
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}

#library-modal .lib-thumbnail .progress{
  height: 30px;
  position: relative;
  display: none;
  margin: 0;
  border-radius: 15px;
}

#library-modal .lib-thumbnail .progress .btn-abort{
  position: absolute;
  top: 3px;
  right: -1px;
  background-color: #e52020; /* red */
  height: 24px;
  width: 24px;
  line-height: 24px;
  padding: 0px;
  color: #fff; /* body-color-inv */
  font-size: 14px;
  border-radius: 50%;
  cursor: pointer;
}

#library-modal .lib-item-thumb{
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

#library-modal .lib-item-thumb .thumbnail{
  position:relative;
  overflow:hidden;
  border:none;
  padding: 1rem;
  border-radius: 1rem;
}

#library-modal .lib-item-thumb .thumbnail:hover .caption{
  top:0%;
}

#library-modal .lib-item-thumb .thumbnail img{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-height: 150px;
  width: auto;
}

#library-modal .lib-item-thumb .caption{
  position :absolute;
  top: -100%;
  right: 0;
  background: #0057cc; /* primary */
  width: 100%;
  height: 100%;
  padding: 2%;
  text-align: center;
  color: #fff !important; /* body-color-inv */
  z-index: 2;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  -ms-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

#library-modal .thumbnail p{
  text-align: center;
}

#library-modal .thumbnail .btn{
  border:none;
}

#library-modal .lib-item-shared-picto{
  position: absolute;
  top: 5px;
  left: 5px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background-color: #0057cc; /* primary */
  border-radius: 50%;
  color: #fff; /* body-color-inv */
  font-size: 16px;
  z-index: 1;
}

#library-modal .lib-item-droppable-active .thumbnail{
  background-color: #e5e5e5; /* grey-02 */
}

#library-modal .lib-item-droppable-hover .thumbnail{
  background-color: #ddd; /* grey-03 */
}

#library-modal .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle).lib-btn-thumb-zoom.last-btn{
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

#library-modal .breadcrumb{
  background-color: transparent;
  padding: 0;
  margin: -2rem 0 1rem 0;
}

#library-modal .breadcrumb > li > a,
#library-modal .breadcrumb > li > span{
  display: inline-block;
  font-size: 14px;
  padding: 5px 10px;
  line-height: 20px;
}

#library-modal .breadcrumb > li > span{
  color: #000; /* body-color */
}

#library-modal .breadcrumb > li + li:before {
  color: #999; /* grey-06 */
  line-height: 30px;
  content: "\00bb" !important;
  margin: 0 5px;
}

#library-modal .label-default.lib-item-name{
  width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:left;
}

#library-modal .btn-upload{
  background-color: #43cd43; /* green */
  color: #fff; /* body-color-inv */
  cursor: pointer;
}

#library-modal .btn-cancel{
  background-color: #e52020; /* red */
  color: #fff; /* body-color-inv */
  cursor: pointer;
}

#library-modal .dropdown-menu > li > a{
  padding:5px 10px;
  font-size: 12px;
  text-align: left;
}

#library-modal .btn-add-file.fileinput-button input{
  display: block;
  width: 100%;
  height: 40px;
}

.upload-container{

}

.upload-container .caption{
  position: absolute;
  bottom: -5px;
  width: 100%;
  padding: 5px 0px
}

.upload-container .caption .btn{
  margin: 0 5px;
}

.upload-container canvas{
  position: absolute;
  left:50%;
  margin-left: -100px;
}

.sweet-alert.library-swal{
  z-index: 999999;
  box-shadow: 0px 0px 50px rgba(0,0,0,0.1);
}

.sweet-alert.library-swal button.cancel{
  background-color: #e52020; /* red */
}

.sweet-alert.library-swal button.confirm{
  background-color: #43cd43 !important; /* green */
  border-color: #43cd43 !important; /* green */
}

.sweet-alert.library-swal .sa-input-error{
  top: 19px;
  right: 12px;
}

#library-modal .thumbnail .btn-success.lib-btn-thumb-insert,
#library-modal .thumbnail .btn-success.lib-btn-thumb-attachment{
  background-color: #43cd43; /* green */
  border: 2px solid #fff; /* body-bg */
  border-radius: 20px;
  margin-top: 5px;
}

#library-modal .thumbnail .btn-success.lib-btn-thumb-insert:hover,
#library-modal .thumbnail .btn-success.lib-btn-thumb-attachment:hover{
  background-color: #2f902f; /* dark-green */
  border: 2px solid #fff; /* body-bg */
  border-radius: 20px;
}

/* Pages */
#library-modal .pager li {
  margin: 0 10px 0 0;
}

#library-modal .pager li {
  display: inline;
}

#library-modal .pager li > a,
#library-modal .pager li > span {
  background-color: #ffffff; /* body-bg */
  border: 1px solid #ffffff; /* body-bg */
  color: #0057cc; /* primary */
  margin: 0;
  padding: 5px 10px !important;
  border-radius: 5px;
}

#library-modal .pager li > a:hover,
#library-modal .pager li > a:focus,
#library-modal .pager li.active a{
  background-color: #e6eefa; /* light-primary */
  border: 1px solid #e6eefa; /* light-primary */
  color: #333333 !important; /* grey-08 */
  font-weight: normal;
  margin: 0;
  border-radius: 5px;
}

#library-modal .pager li.active a{
  font-weight: bold;
}

#library-modal #lib-items-message{
  padding: 0 0 15px 0;
}

#library-modal #lib-items-message,
#library-modal .lib-items-message{
  padding: 1.5rem;
  margin: 0;
  color: #000; /* body-color */
  width: 100%;
  text-align: center;
  background-color: #e5e5e5; /* grey-02 */
}

#library-modal #lib-items-list .lib-items-message{
  margin: 0 1.5rem;
}

#library-modal #lib-items-message p,
#library-modal .lib-items-message p{
  margin: 0;
  color: #000; /* body-color */
}

#library-modal .thumb-file-container{
  position: absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
}

#library-modal .thumb-file{
  font-size: 8rem;
  color: #cccccc; /* grey-04 */
}

#library-modal img.thumb-file{
  font-size: 8rem;
  color: #cccccc; /* grey-04 */
}

#library-modal .media-thumbnail-hover{
  background-color: rgba(0, 0, 0, 0.5);
}

#library-modal .media-more{
  position: absolute;
  width: 100%;
  top: 65%;
}

#library-modal .media-more p{
  color: #fff; /* body-color-inv */
}

#library-modal .lib-item-date,
#library-modal .lib-item-property{
  text-align: center;
  color: #fff; /* body-color-inv */
  font-size: 1.4rem;
}

#library-modal .lib-thumbnail-upload{
  padding: 1rem;
  border: 2px solid #e5e5e5; /* grey-02 */
  border-radius: 1rem;
}

/* MODALS */
#lib-shared-with-viewer{
  z-index: 999997;
}

/* MEDIA */

#library-modal .media-thumbnail-container{
  position: relative;
  min-height: 24rem;
  background-color: transparent;
  box-shadow: none;
}

#library-modal .media-thumbnail-hover{
  display: none;
  position: absolute;
  top:0px;
  bottom: 0px;
  width: 100%;
  background-color: rgba(0,0,0,0.2);
}

#library-modal .media-thumbnail-container:hover .media-thumbnail-hover{
  display: block;
}

#library-modal .media-thumbnail-icon{
  display: inline-block;
  position: absolute;
  top:0px;
  left:0px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 0 0 50px 0;
  background-color: #fff; /* body-bg */
  text-align: center;
  font-size: 2.6rem;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

#library-modal .media-thumbnail-icon .icon{
  position: relative;
  top: -3px;
  left: -6px;
}

#library-modal .media-thumbnail-status,
#library-modal .media-thumbnail-container .picto-site-online{
  display: inline-block;
  position: absolute;
  top: -5px;
  left: 35px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 15px;
  color: #fff; /* body-color-inv */
  text-align: center;
  z-index: 2;
}

#library-modal .media-thumbnail-container .picto-site-online{
  background-color: #43cd43; /* green */
}

#library-modal .media-thumbnail-container .picto-site-online.picto-site-offline{
  background-color: #e52020; /* red */
}

#library-modal .media-thumbnail-container img{
  max-width: 100%;
}

#library-modal ul.media-thumbnail-menu{
  position: absolute;
  top: 10px;
  right: 10px;
  height: 40px;
  background-color: #fff; /* body-bg */
  box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

#library-modal ul.media-thumbnail-menu > li > a{
  width: 40px;
  height: 40px;
  line-height: 40px;
  color: #0057cc; /* primary */
  padding: 0;
  text-align: center;
}

#library-modal ul.media-thumbnail-menu .dropdown-menu{
  min-width: 190px;
  margin-left: 2px;
  border: none;
  border-radius: 0;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

#library-modal ul.media-thumbnail-menu .dropdown-item{
  font-size: 1.3rem;
  color: #666; /* grey-07 */
  padding: 0.5rem 1.5rem;
}

#library-modal ul.media-thumbnail-menu .dropdown-item .icon{
  color: #0057cc; /* primary */
  margin-right: 0.5rem;
}

#library-modal .media-thumbnail-preview-link{
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -30px;
  margin-top: -30px;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  color: #fff; /* body-color-inv */
  font-size: 3.6rem;
  background-color: rgba(255,255,255,0.3);
  border-radius: 1rem;
}

#library-modal .media-thumbnail-preview-link:hover{
  color: #fff; /* body-color-inv */
}

#library-modal .modele-media-name{
  position: relative;
  background-color: #e5e5e5; /* grey-02 */
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

#library-modal .modele-media-name p{
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 2.4rem;
  color: #000; /* body-color */
}

/* PAGINATION */

.pagination{
  flex-wrap: wrap;
}

.pagination-light li{
  margin-left: 0.5rem;
  top: 0.5rem;
  margin-bottom: 0.5rem;
}

.pagination-light .page-link{
  border: none;
  padding: 1rem;
  font-size: 1.4rem;
  text-align: center;
  line-height: 2rem;
  min-width: 4rem;
  margin: 0;
  border-radius: 2px;
}

.form-control.pagination-goto-input{
  width: 8rem;
  height: calc(3.8rem + 2px);
}

.pagination-goto-btn,
.pagination-goto-btn:hover{
  display: inline-block;
  width: 4rem;
  height: 4rem;
  line-height: 4rem;
  text-align: center;
  color:#fff;
  background-color: #0057cc; /* primary */
  border-radius: 2px;
}

.page-item.active .page-link{
  background-color: #0057cc; /* primary */
  border-color: #0057cc; /* primary */
}

/* DIVERS */

.text-120{
  font-size: 12rem;
}

.text-140{
  font-size: 14rem;
}

.text-light-grey{
  color: #cccccc;
}

.pt-40,
.py-40{
  padding-top: 4rem;
}

.form-control-lg,
.input-group-lg > .form-control,
.sweet-alert input{
  font-size: 1.8rem;
  height: calc(4.8rem + 2px);
  border-color: #e5e5e5; /* grey-02 */
  border-radius: 0.5rem;
}

.sweet-alert input{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.input-group-custom{
  position: relative;
}

.input-group-custom-icon{
  position: absolute;
  top: 1px;
  right: 1rem;
  font-size: 1.8rem;
  line-height: 3.2rem;
  color: #0057cc;
}

.input-group-custom-lg .form-control{
  padding-right: 5rem;
}

.input-group-custom-lg .input-group-custom-icon{
  font-size: 2.6rem;
  line-height: 4.8rem;
}

.swal-btn-copy{
  cursor: pointer;
}

.thumb-icon{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10rem;
  color: #bbb; /* grey-05 */
}

.thumb-icon-folder{
  color: #f1d35e; /* static */
}
