/**
 * All of the CSS for your dashboard-specific functionality should be
 * included in this file.
 */

table.media .column-title .media-icon img {
    width: 100%;
}

table.media .column-title .has-media-icon ~ .row-actions {
    margin-left: 0;
    overflow: hidden;
    width: 100%;
    margin-bottom: 5px;
}

table.media .column-title .has-media-icon .add-bg {
    margin-left: 70px;
}

.full-width {
    width: 100%;
    display: block;
    clear: both;
}

.wp-filter .filter-items {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.wp-filter .media-filter-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.media-filter-items input#post-query-submit,
.media-filter-items .actions,
.media-filter-items select#attachment-filter,
.media-filter-items .search-form {
    margin-left: 10px;
}

.media-filter-items .search-form,
.media-filter-items .actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 10px 0;
}

.media-filter-items .search-form input[type=search] {
    max-width: 280px;
    width: 100%;
}

.media-filter-items label.media-search-input-label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.media-filter-items select#search-term {
    margin-left: 5px;
}

.table-editable > span {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.table-editable > span span {
    font-size: 15px;
    line-height: 18px;
    margin-right: -5px;
    margin-left: 3px;
    width: 15px;
    margin-top: 2px;
}

.table-editable.lock-hide {
    visibility: hidden;
}

.edit-column-content {
    padding: 5px 8px;
    min-height: 11px;
}

.edit-column-content.add-bg {
    background: #dddddd;
}

.table-editable[data-editable=false] .text-mode-unlock {
    display: none;
}

.table-editable[data-editable=true] .text-mode-lock {
    display: none;
}

.post-type-attachment th#title {
    width: 250px;
}

.post-type-attachment th#alt,
.post-type-attachment th#caption {
    width: 150px;
}

.post-type-attachment th#description {
    width: 200px;
}

.post-type-attachment .column-alt,
.post-type-attachment .column-caption,
.post-type-attachment .column-description {
    padding-left: 2px;
    padding-right: 2px;
}

.loder-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 15px;
    cursor: pointer;
    color: #0073aa;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
}

.loder-wrapper:hover {
    color: #006799;
}

.loder-wrapper:focus {
    -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8);
    box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8);
    outline: 1px solid transparent;
}

.ajaxloader {
    border: 2px solid #ddd;
    border-radius: 50%;
    border-top: 2px solid #000;
    width: 10px;
    height: 10px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

.spiner-add .edit-column-content {
    position: relative;
}

.spiner-add .ajaxloader {
    opacity: 1;
    visibility: visible;
}

/* Safari */

@media only screen and (max-width: 767px) {

    .wp-filter .filter-items {
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }

    .wp-admin .form-table select,
.wp-core-ui select {
        height: 30px;
        min-height: 30px;
        line-height: 1;
    }

    .media-filter-items .search-form input[type=search] {
        height: 30px;
        min-height: 30px;
    }

    .media-filter-items input#post-query-submit {
        height: 30px;
        min-height: 30px;
        display: inline-block;
        line-height: 1;
    }
}

@media only screen and (max-width: 600px) {

    .media-filter-items .search-form {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
    }
}

@media only screen and (max-width: 400px) {

    .wp-filter .media-filter-items.filter-items {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .media-filter-items .actions {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        width: 100%;
    }

    .wp-filter .media-filter-group {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
    }

    .media-filter-items .search-form label.media-search-input-label,
.media-filter-items .search-form {
        width: 100%;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .media-filter-items select {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .media-filter-items .actions select {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    .media-filter-items input#post-query-submit {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .media-filter-items .search-form input[type=search] {
        width: 100%;
        max-width: 100%;
    }
}

@-webkit-keyframes spin {

    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {

    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

