/******************** general ********************/

.explorer,
.POPIN_window .content.explorer {
    position: relative;
    overflow: hidden;
    background-color: #f6f6f6;
}

.explorer * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}

.explorer aside,
.explorer section {
    height: calc(100% - 112px);
}

.explorer [tabindex]:focus {
    outline: none;
}

.explorer button[disabled] {
    cursor: default;
    
    -webkit-opacity: 0.5;
    -moz-opacity: 0.5;
    -ms-opacity: 0.5;
    -o-opacity: 0.5;
    opacity: 0.5;
}

.explorer header,
.explorer aside,
.explorer .footer {
    background-color: #fff;
}

/******************** .explorer .spinner ********************/

.explorer .spinner {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    text-align: center;
}

.explorer .spinner > div {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 16px 4px;
    background-color: rgba(0, 47, 96, 1);
    
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    -o-border-radius: 100%;
    border-radius: 100%;
    
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    -moz-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    -ms-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    -o-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.explorer .spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    -moz-animation-delay: -0.32s;
    -ms-animation-delay: -0.32s;
    -o-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.explorer .spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    -moz-animation-delay: -0.16s;
    -ms-animation-delay: -0.16s;
    -o-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
    0%, 80%, 100% { -webkit-transform: scale(0) }
    40% { -webkit-transform: scale(1.0) }
}

@-moz-keyframes sk-bouncedelay {
    0%, 80%, 100% { -moz-transform: scale(0) }
    40% { -moz-transform: scale(1.0) }
}

@-ms-keyframes sk-bouncedelay {
    0%, 80%, 100% { -ms-transform: scale(0) }
    40% { -ms-transform: scale(1.0) }
}

@-o-keyframes sk-bouncedelay {
    0%, 80%, 100% { -o-transform: scale(0) }
    40% { -o-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% { transform: scale(0) }
    40% { transform: scale(1.0) }
}

/******************** .explorer header ********************/

.explorer header {
    position: relative;
    height: 56px;
    z-index: 1;
    border-bottom: 1px solid #ddd;
}

.explorer header .actions {
    float: right;
    padding: 4px 8px;
}

.explorer header .actions .icon {
    padding: 12px;
    display: block;
    float: left;
}

.explorer.list header .icon-view_list,
.explorer.grid header .icon-view_module {
    display: none;
}

.explorer header input[type=text] {
    width: 304px;
    height: 32px;
    line-height: 32px;
    margin: 12px;
    padding: 0 16px;
}

/******************** .explorer aside ********************/

.explorer aside {
    position: absolute;
    /* z-index: 2; */
    top: 56px;
    left: 0;
    width: 304px;
    padding: 16px 0;
    overflow: hidden;
    overflow-y: auto;
}

.explorer aside > div {
    padding: 12px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -ms-text-overflow: ellipsis;
}

.explorer aside > div[class*="border-color"] {
    border-right-width: 4px;
    border-right-style: solid;
    padding-right: 8px;
}

.explorer aside > div .icon {
    margin: 0 20px 0 8px;
    float: left;
}

/******************** .explorer section ********************/

.explorer section {
    position: relative;
    width: calc(100% + 17px);
    overflow-y: scroll;
}

.explorer aside + section {
    left: 304px;
    width: calc(100% - 304px + 17px);
}

.explorer section > table {
    position: absolute;
    z-index: 0;
    width: 100%;    
    height: 100%;
    text-align: center;
}

.explorer section > table,
.explorer section.dark * {
    pointer-events: none;
}

.explorer section > table p {
    margin: 16px 0;
}

.explorer section .file .icon,
.explorer section .file .spinner {
    line-height: 256px;
    font-size: 84px;
}

.explorer section .file.text .preview {
    background-color: #FFF;
    color: initial;
    text-align: initial;
}

/******************** .explorer .file ********************/

.preview {
    overflow: hidden;
    filter: alpha(opacity=1);
    opacity: 1;
    
    -webkit-transition: opacity 0.5s ease-out;
    -moz-transition: opacity 0.5s ease-out;
    -ms-transition: opacity 0.5s ease-out;
    -o-transition: opacity 0.5s ease-out;
    transition: opacity 0.5s ease-out;
}

.explorer .file.selected,
.explorer .file.deleted,
.explorer .file.selected .title,
.explorer .file.deleted .title {
    outline: none;
    /* background-color: rgb(25, 176, 218) !important; */
    color: #FFF;
}

.explorer .file.deleted {
    opacity: 0;
}

.explorer .file .preview {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    /* background-color: #fff; */
}

.explorer .file.text .preview * {
    height: initial;
    position: initial;
    border: none;
    color: initial;
    font-weight: 300;
    background: none;
    text-align: initial;
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-shadow: none;
    -mos-box-shadow: none;
    -ms-box-shadow: none;
    -o-box-shadow: none;
    box-shadow: none;
}

/******************** .explorer.list ********************/

.explorer.list section > div,
.explorer.list section > div .title {
    font-size: 14px;
}

.explorer.list section > div {
    display: table;
    width: 100%;
    color: #000;
    background-color: #FFF;
}

.explorer.list section > div > div,
.explorer.list section > div .file {
    display: table-row;
    width: 100%;
}

.explorer.list section > div > div > div,
.explorer.list section > div .file > div {
    display: table-cell;
    line-height: 32px;
    padding: 8px 16px;
    white-space: nowrap;
}

.explorer.list section > div .icon,
.explorer.list section > div .preview {
    width: 48px !important;
    font-size: 14px;
}

.explorer.list section > div .file.selected > div {
    border-color: rgb(5, 156, 198);
}

.explorer.list section > div .file:nth-child(odd) {
    /* background-color: #F6F6F6; */
}

/******************** .explorer.grid ********************/
 
.explorer.grid section > div {
    padding-top: 16px;
}

.explorer.grid section .file div:nth-child(n+4) {
    display: none;
}
 
.explorer.grid section .file {
    float: left;
    margin: 0 0 16px 16px;
    width: 288px;
    height: 288px;
    border: 1px solid #ddd;
}

.explorer.grid section .file > div {
    overflow: hidden;
    font-size: 12px;
}

.explorer.grid section .file > div:not([class*=icon]):not([class*=preview]) {
    line-height: 32px;
    text-align: center;
    white-space: nowrap;
}

.explorer.grid section .file .icon,
.explorer.grid section .file .preview {
    display: block;
    width: 100%;
    height: calc(100% - 33px);
}

.explorer.grid section .file .icon {
    line-height: 255px;
    font-size: 112px;
}

.explorer.grid section .file.selected {
    /* -webkit-box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.3); */
    -moz-box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.3);
    -ms-box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.3);
    -o-box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.3);
    /* box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.3); */
    filter:progid:DXImageTransform.Microsoft.Shadow(color=rgba(0, 0, 0, 0.3), Direction=180, Strength=8);
    border-color: transparent;
}

.explorer.grid section > div:last-child:after {
    content: '';
    display: block;
    clear: both;
}

/******************** .explorer .footer ********************/

.explorer .footer {
    display: block;
    position: absolute;
    z-index: 4;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    text-align: left;
}

.explorer .footer p {
    line-height: 40px;
    margin: 8px 16px;
}

.explorer .footer .actions {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px;
    display: flex;
}

.explorer .footer .actions .button {
    margin-right: 8px;
}

/*.explorer .footer .actions button:focus {
    -webkit-box-shadow: 0px 0px 8px 0px rgba(0, 191, 255, 0.8);
    -moz-box-shadow: 0px 0px 8px 0px rgba(0, 191, 255, 0.8);
    -ms-box-shadow: 0px 0px 8px 0px rgba(0, 191, 255, 0.8);
    -o-box-shadow: 0px 0px 8px 0px rgba(0, 191, 255, 0.8);
    box-shadow: 0px 0px 8px 0px rgba(0, 191, 255, 0.8);
    filter: progid:DXImageTransform.Microsoft.Shadow(color=rgba(0, 191, 255, 0.8), Direction=0, Strength=8);
}*/

.explorer .footer .actions input[type=file] {
    display: none;
}
