.modal-overlay {
	position: fixed; top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(0,0,0,0.5); display: flex;
	align-items: center; justify-content: center;
	z-index: 9999;
}
.modal-box {
	background: #fff; padding: 20px; border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.3);
	text-align: center;
}
.modal-box button {
	margin: 10px; padding: 10px 15px;
}
.modal-box .btn-replace{
	background: #f8981d;
	border: 1px solid #777;
	color: #fff;
}
.modal-box .btn-replace:hover{
	background: #ec8809;
}
/*-------------------------------------*/
.mediathek_size{
	background: rgba(225, 232, 245, 0.73);
	bottom: 8px;
	position: absolute;
	right: 8px;
	border-radius: 2px;
	padding: 2px 6px;
}
.mediathek_grid{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, 1fr);
	grid-column-gap: 10px;
	grid-row-gap: 10px; 
	counter-reset: line;
}
.mediathek_grid > div{
	position: relative;
	min-height: 150px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 10px;
}
.mediathek_grid button{
	width: 30px;
	height: 30px; 
	border: none;
	position: absolute;
	right: 9px;
	top: 9px;
	border-radius: 2px;
	background: rgba(225, 232, 245, 0.73);
	background-image: url(../img/x-close.svg);
	background-repeat: no-repeat;
    background-position: center center;
}
.mediathek_grid > div:first-child{
	grid-area: 1 / 1 / 3 / 2;
}
.mediathek_grid > div:before{
	position: absolute;
	counter-increment: line;
	content: counter(line);
	display: flex;
	width: 26px;
	height: 26px;
	background: rgba(255,255,255,0.88);
	left: 9px;
	bottom: 9px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700; 
}
.mediathek_button{
	background: #8895a8;
	border: 1px solid #8895a8;
	text-decoration: none;
	color: #fff;
	padding: 5px 15px;
	font-weight: 600;
	border-radius: 6px;
	outline: none;
	text-align: center;
	cursor: pointer;
	position: relative;
	margin-right:10px;
}
.mediathek_button.icon{
padding: 5px 45px 5px 15px;
}
.mediathek_button:hover{
	background: #697585;
}
.mediathek_button.icon:after{
	content:'';
	display:block;
	width:20px;
	height:20px;
	background-image: url(../img/mediathek.svg);
	background-repeat: no-repeat;
    background-position: center center;
	position: absolute;
	top:5px;
	right:10px;
	filter: brightness(0) invert(1);
	background-size: contain;
}
.media_search, .media_date_range {
    position: relative;
}
.media-wrapper {
    margin-bottom: 100px;
}
.media_date_range:after {
    content: '';
    width: 24px;
    height: 24px;
    position: absolute;
    left: 10px;
    top: 10px;
    background-image: url("../img/calendar.svg");
}
.media_search:after{
    content: '';
    width: 24px;
    height: 24px;
    position: absolute;
    left: 10px;
    top: 10px;
    background-image: url("../img/search.svg");
}
.mediathek_group {
	width:100%;
	display:flex;
	justify-content: space-between;
	align-items: center;
}
.mediathek_group input{
	height:40px;
	border: 1px solid rgba(208, 213, 221, 1);
	padding: 10px 14px 10px 44px;
	border-radius:8px;
}
.mediathek_search{
	position: relative;
}
.mediathek_search:after{
	content: '';
	width: 24px;
	height: 24px;
	position: absolute;
	left: 10px;
	top: 8px;
	background-image: url("../img/search.svg");
}
#mediathek_buttons {display:flex;}
#mediathek_buttons > button{
	display:flex;
	justify-content: center;
	align-items: center;
	width:40px;
	height:40px;
	margin-right:10px;
	box-shadow: 0px 2px 8px 0px rgba(17, 38, 146, 0.24);
	background: #fff;
	border:none;
	border-radius:8px;
	user-select:none;
}
#mediathek_buttons > button img{
	width: 18px;
	height: 18px;
}
#mediathek_buttons > button.danger{
	background: rgba(245, 94, 78, 1);
}
#mediathek_buttons > button.danger > img{
	filter: brightness(0) invert(1);
}
.edit-actions{white-space: nowrap;}
.turn90{transform: rotate(90deg);}
.media-filters {
    display: flex;
    align-items: center;
    gap: 40px;
}
.media-filters.right {
    justify-content: flex-end;
}
.media-filters .checkbox-filter label{
    padding: 0 !important;
}
#media_filter_mime {
    max-width: 150px;
}
#media_uploader, #media_folder_create {
    display: none;
}
#media_folder_create {
    margin: 25px 0;

    padding: 15px;
    background: #f1f4fb;
}
.media-table label{
    margin: 0;
}
#media_folder_create form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
#media_folder_create  .form-control {
    height: auto;
}
#media_dropzone {
    /*display: none;*/
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 20px;
    border: 2px dashed #8895a8;
    margin: 20px 0;
    background: #f1f4fb;
    padding: 0 110px;
    cursor: pointer;
}
#media_dropzone:hover {
    border: 2px solid #8895a8;
    -webkit-box-shadow: 0px 0px 15px 0px rgba(163,163,163,1);
    -moz-box-shadow: 0px 0px 15px 0px rgba(163,163,163,1);
    box-shadow: 0px 0px 15px 0px rgba(163,163,163,1);
}
#media_dropzone .btn-default{
    width: auto;
}
.data_container.views {
    padding-top: 0;
    padding-bottom: 0;
    height: 33px;
}
.preview {
    width: 60px;
    height: 60px;
    background-position: center;
    background-size: cover;
    border-radius: 8px;
}
.media-table td {
    vertical-align: middle !important;
}
.media-table tr.folder td {
    background: #fff5e7;
}
.sort-field {
    font-weight: bold;

}
.sort-field img {
    max-height: 12px;
    width: auto;
    margin-right: 5px;
}
.sort-field .hidden {
    display: none !important;
}
.media-filters.right input {
    padding-left: 40px;
}
.edit-actions a img {
    max-height: 20px;
    width: auto;
    margin-right: 5px;
}
.edit-actions a.delete img  {
    max-height: 25px;
}
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #8895a8;
    border-bottom-color: #FF3D00;
    border-radius: 50%;
    display: block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin: 100px auto;
}
#mediatek_wrapper .alert {
    margin: 0;
	position: relative;
}
.alert #media_close{
	position: absolute;
	top: 0;
	right: 0;
	width: 25px;
	height: 25px;
	background-image: url(../img/arrow-dropdown.svg);
	background-repeat: no-repeat;
	background-position: center;
	cursor: pointer;
	background-origin: border-box;
	transform: rotate(180deg);
	background-size: contain;
}
table.dataTable.no-footer {
    border-bottom: 1px solid #ddd;
}
table.dataTable thead th, table.dataTable thead td, table.dataTable tbody td {
    border-bottom: none;
}
#mediatek_wrapper .breadcrumb img {
    margin-right: 5px;
    max-height: 20px;
    width: auto;
}
.media-pagination {
    margin-top: 20px;
}
.data_container.views.list-view.active {
    background-image: url(../img/list_orange.svg);
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.data_container.views.list-view {
    background-image: url(../img/list_gray.svg);
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}
#mediatek_open_delete_selected {
    display: none;
}
#mediatek_open_move_selected {
    display: none;
}
.data_container.views.grid-view {
    background-image: url(../img/grid_gray.svg);
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}
.data_container.views.grid-view.active {
    background-image: url(../img/grid_orange.svg);
}
.data_container.views.grid-view:hover {
    background-image: url(../img/grid_orange.svg);
}
.grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}
.media_upload_progress_items{
    padding-right: 15px;
    max-height: 400px;
    overflow-y: scroll;
}
.media_upload_progress_items .item > span {
    font-weight: bold;
    font-size: 17px;
}
.scan-log {
    margin: 20px 0;
    padding-right: 10px;
    margin-right: 10px;
    max-height: 500px;
    overflow-y: scroll;
}
.scan-log .well {
    margin-bottom: 10px;
}
.grid-wrapper .grid-item{
    display: flex;
	flex-direction: column;
	align-items: center;
    border-radius: 5px;
    background: #FFF;
    box-shadow: 0 10px 13px 0 rgba(17, 38, 146, 0.05);
    padding: 15px;
	position: relative;
	width: 175px;
	max-width: 175px;
}
.grid-wrapper .grid-item label {
  position: absolute;
  top: 5px;
  right: 5px;
}
.scan_button, .scan_button:hover{
    display: block;
    text-decoration: none;
    color: #fff;
}
.floatleft .top_buttons {
    height: 35px;
}
.grid-wrapper .grid-item .stats .size{
    color: #717171;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 25px;
}
.progress-bar {
    min-width: 5%;
}
.single-preview {
    height: 150px;
    width: 150px;
    background-position: center;
    background-size: cover;
    margin-bottom: 20px;
	display: flex;
	justify-content:center;
	align-items:center;
	font-weight: bold;
	user-select:none;
}
.grid-wrapper .grid-item .stats{
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.grid-wrapper .grid-item .title{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.grid-wrapper .grid-item .title strong{
    text-overflow: ellipsis;
    overflow: hidden;
    width: 120px;
    white-space: nowrap;
}
.dropdown-btn {
    background: none;
    border: none;
    outline: none;
    padding: 8px 5px;
}
.dropdown-move {
	position:relative;
}
.dropdown-move-list {
	display: none;
	position:absolute;
	top:-8px;
	right:-100%;
	z-index: 1000;
	min-width: 160px;
	padding: 5px 0;
	margin: 2px 0 0;
	font-size: 14px;
	text-align: left;
	list-style: none;
	background-color: #fff;
	-webkit-background-clip: padding-box;
	background-clip: padding-box;
	border: 1px solid #ccc;
	border: 1px solid rgba(0,0,0,.15);
	border-radius: 4px;
	-webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
	box-shadow: 0 6px 12px rgba(0,0,0,.175);
}
.btn-group.dropleft .dropdown-menu, #mediatek_open_move_selected .dropdown-menu{
    left: auto;
    right: 0;
}
.btn-group.dropleft .dropdown-move-list, #mediatek_open_move_selected .dropdown-move-list{
    transform: translateX(-100%);
	right: auto;
}
.dropdown-move-list a{
	display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: 400;
  line-height: 1.42857143;
  color: #333;
  white-space: nowrap;
}
.dropdown-move-list a:hover{
	color: #262626;
	text-decoration: none;
	background-color: #f5f5f5;
	cursor:pointer;
}
.dropdown-move:hover > .dropdown-move-list {
	display:block;
}
.grid-wrapper .grid-item .preview{
    width: 100px;
    height: 100px;
}
.back {
    margin-bottom: 20px;
}
.back button{
    width: auto !important;
}
.back img {
    margin-top: -4px;
    width: 15px;
    height: 15px;
    margin-right: 5px;
}
span.cp {
    min-width: 24px;
    display: block;
}
a.cp img {
    width: 20px;
    height: 20px;
    margin-right: 4px;
}
.flexer {
  display: flex;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.modaltek_checkbox {
	display: none;
}
.modaltek_checkbox + label{
	position: relative;
	background: #ffc589;
	border-radius: 25%/50%;
	border:none;
	width: 56px;
	height: 28px;
	transition: .2s;
	cursor: pointer;
	margin: 6px 70px 6px 0;
}
.modaltek_checkbox:checked + label{
	background: #ff982d;
}
.modaltek_checkbox + label::before{
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	display: inline-block;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border:none;
	background: white;
	box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
	transition: .15s;
}
.modaltek_checkbox + label::after{
	display: block;
	width: 55px;
	position: absolute;
	content: attr(data-unchecked);
	top: 3px;
	right: -65px;
}
.modaltek_checkbox:checked + label::after{
	content: attr(data-checked);
}
.modaltek_checkbox:checked + label::before {
  transform: translateX(28px);
}