﻿@charset "UTF-8";

/* File upload */

.fileinput-button {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.fileinput-button input {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    opacity: 0;
    -ms-filter: 'alpha(opacity=0)';
    font-size: 200px;
    direction: ltr;
    cursor: pointer;
}

/* Fixes for IE < 8 */
@media screen\9 {
    .fileinput-button input {
        filter: alpha(opacity=0);
        font-size: 100%;
        height: 100%;
    }
}

/* Bootstrap overrides */

.img-picker {
    position: fixed;
    top: calc(50% - 100px);
    right: 0;
    height: 200px;
    /*width: 50px;*/
    width: 0;
    background-color: #5bc0de;
    /*border: 1px solid #46b8da;*/
    -webkit-transition-duration: 0.3s;
    -moz-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    box-shadow: 2px 2px 5px #888888;
}

.img-picker > h3 {
    -webkit-transform: rotate(270deg);
    -moz-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    transform: rotate(270deg);
    white-space: nowrap;
    position: absolute;
    left: -75px;
    bottom: 63px;
    color: #ffffff;
    cursor: pointer;
    height: 50px;
    line-height: 50px;
    width: 200px;
    text-align: center;
    font-size: 20px;
    display: none; /* Hidden for HOPE */
}

.img-picker-inner {
    position: fixed;
    top: 0px;
    bottom: 0px;
    background-color: #31b0d5;
    height: 100%;
    -webkit-transition-duration: 0.3s;
    -moz-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    padding: 20px;
}

/* Expanded  */
.img-picker.visible.visible > .img-picker-inner {
    right: 0;
}

.img-picker.visible.visible,
.img-picker:hover {
    background-color: #31b0d5;
    border-color: #269abc;
}

@media (min-width: 768px) {
    .img-picker-inner {
        right: -650px;
        width: 650px;
    }

    /* Expanded */
    .img-picker.visible {
        right: 650px;
        z-index: 5000;
    }
}

@media (max-width: 767px) {
    .img-picker-inner {
        right: -747px;
        width: 747px;
        padding: 20px 10px;
    }

    /* Expanded */
    .img-picker.visible {
        right: 747px;
        z-index: 5000;
    }
}

/* Reusable panel */

.img-picker-panel {
    position: relative;
}

/* Inner details */

.img-picker-inner > h2 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: normal;
}

/* Grid */

.img-picker-inner .gallery {
    position: relative;
}

.img-picker-inner .gallery > .gallery-imgs {
    height: calc(100vh - 160px);
    background-color: white;
    border: solid 3px #ddd;
    overflow-y: scroll;
    padding-top: 15px;
}

.img-picker-inner .gallery > .gallery-imgs .gallery-column {
    position: relative;
}

.img-picker-inner .gallery > .gallery-imgs .gallery-column > label {
    border: solid 2px #ccc;
    padding: 5px;
    margin-bottom: 15px;
    cursor: pointer;
    font-weight: normal;
    color: #666;
    font-size: .8em;
    overflow: hidden;
    display: block;
}

.img-picker-inner .gallery > .gallery-imgs .gallery-column > label:hover {
    border-color: #999;
    background-color: azure;
}

.img-picker-inner .gallery > .gallery-imgs .gallery-column > label.active {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: green;
}

.img-picker-inner .gallery > .gallery-imgs .gallery-column > .img-picker-delete {
    position: absolute;
    top: -4px;
    right: 11px;
    color: #fff;
    background-color: #d9534f;
    border-color: #d43f3a;
    display: inline-block;
    cursor: pointer;
    font-size: .8em;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}

@media (max-width: 767px) {
    .img-picker-inner .gallery > .gallery-imgs {
        height: calc(100vh - 193px);
    }

    .img-picker-panel {
        margin-left: 6px;
    }
}

/* Action Panel */

.gallery-send {
    background-color: #ddd;
    padding: 5px;
    font-size: .8em;
}

.gallery-send .input-group .input-group-btn .btn {
    padding: 6px 10px;
    border: 1px solid #ccc;
}

.gallery-send .input-group .input-group-btn .btn i {
    font-size: inherit;
}

@media (max-width: 767px) {
    .gallery-send .text-right {
        margin-top: 10px;
    }
}

/* Upload panel */

.gallery-progress {
    position: absolute;
    width: 80%;
    left: 10%;
    top: 40px;
    z-index: 6000;
    background-color: #dff0d8;
    border: solid 1px #d6e9c6;
    color: #3c763d;
    border-radius: 3px;
    padding: 15px;
    box-shadow: 1px 3px 5px #333;
    font-size: .8em;
    text-align: center;
}

/* Pager */
.img-picker-inner .gallery > .gallery-pager {
    background-color: #ddd;
    padding: 5px;
    font-size: .8em;
    width: 100%;
}

.img-picker-inner .gallery > .gallery-pager:before,
.img-picker-inner .gallery > .gallery-pager:after,
.img-picker-panel:before,
.img-picker-panel:after {
    display: table;
    content: " ";
}

.img-picker-inner .gallery > .gallery-pager:after,
.img-picker-panel:after {
    clear: both;
}

.img-picker-inner .gallery > .gallery-pager > p {
    margin: 0;
    display: inline-block;
    float: right;
    padding: 5px 0;
}

.img-picker-inner .gallery > .gallery-pager > ul {
    display: inline-block;
    float: left;
    margin: 0;
}

.img-picker-inner .gallery > .gallery-pager > ul > li {
    margin: 0;
    padding: 0;
    float: left;
}

.img-picker-inner .gallery > .gallery-pager > ul > li > .img-picker-page {
    display: inline-block;
    padding: 5px 8px;
    border: solid 1px #ccc;
    text-align: center;
    background-color: white;
    cursor: pointer;
}

.img-picker-inner .gallery > .gallery-pager > ul > li > .img-picker-page.active,
.img-picker-inner .gallery > .gallery-pager > ul > li > .img-picker-page:hover {
    background-color: azure;
    color: blue;
    border-color: #5bc0de;
}

.img-picker-close {
    color: white;
    cursor: pointer;
    margin-top: -5px;
}

/* Preview panel */

.img-picker-preview {
    padding: 0px;
}

.img-picker-preview img.item {
    border: solid 1px #ddd;
    padding: 2px;
    margin-bottom: 10px;
    background-color: white;
}

.img-picker-preview .column-empty {
    border: 1px solid #666;
    background-color: #999;
    color: white;
    text-align: center;
    height: 120px;
    line-height: 120px;
    vertical-align: middle;
    margin-bottom: 5px;
}

.img-picker-invoke,
.img-uploader-invoke {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

.img-picker-invoke:hover,
.img-picker-invoke:active,
.img-uploader-invoke:hover,
.img-uploader-invoke:active {
    background-color: #666;
    border-color: #666;
    color: #fff;
}

.img-picker-panel > .img-picker-invoke {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
}

.img-picker-panel > .img-uploader-invoke {
    background-color: #5d5386;
    border-color: #5d5386;
    position: absolute;
    left: -7px;
    top: -7px;
    cursor: pointer;
    padding: 2px 5px;
}

.img-picker-panel.picker-profile > .img-uploader-invoke {
    left: 0;
    top: 0;
}

.img-picker-panel > .img-picker-invoke > .fa,
.img-picker-panel > .img-uploader-invoke > .icon {
    display: inline;
    margin: 0;
    padding: 0;
    line-height: 1.2em;
    height: auto;
    width: auto;
}

.img-picker-panel > .img-uploader-invoke > .icon {
    font-size: 32px;
    line-height: 32px;
}

.img-picker-search-panel .input-group-prepend > .btn {
    font-size: inherit;
    line-height: inherit;
}

.img-picker-search-panel.input-group .dropdown-toggle.btn-info {
    background: #5bc0de;
    color: #fff;
}