/* Login screen */

body.login-screen {
    background-color: #2e2e2e;
    overflow: auto;
}
body.login-screen::after {
    content: "";
    background-image: url(../img/login-bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.3;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
}

div.login-container {
    margin: 32px auto;
    max-width: 95%;
    width: 420px;
}
@media (min-width: 720px) {
    div.login-container {
        position: absolute;
        left: 50%;
        top: 10%;
        margin-left: -210px;
    }
}
div.login-container .alert .close {
    display: none;
}
div.login-container svg.logo {
    display: block;
    fill: #fff;
    margin: 0 auto 24px;
    width: 50%;
}
@media (min-width: 720px) {
    div.login-container svg.logo {
        margin-bottom: 64px;
    }
}
div.login-container div.flex {
    display: flex;
}
div.login-container div.md-icon {
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    margin: 0 2px 2px 0;
    padding: 16px;
    text-align: center;
    width: 60px;
}
div.login-container div.md-icon svg {
    height: 24px;
    margin: auto;
    width: 24px;
}
div.login-container input {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0;
    color: #fff;
    flex-grow: 1;
    font-size: 20px;
    margin-bottom: 2px;
    padding: 16px;
}
div.login-container input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}
div.login-container input:-moz-placeholder { /* Firefox 18- */
    color: rgba(255, 255, 255, 0.5);
}
div.login-container input::-moz-placeholder { /* Firefox 19+ */
    color: rgba(255, 255, 255, 0.5);
}
div.login-container input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}
div.login-container .alert {
    border: none;
    border-radius: 0;
    flex-grow: 1;
    font-size: 14px;
    padding: 16px;
}
div.login-container .alert-danger {
    background-color: rgba(255, 0, 0, 0.3);
    color: #fff;
}

/*
 * Terrible hack to work around Chrome autocomplete background color.
 * See http://stackoverflow.com/a/32506173/114168
 */
input:-webkit-autofill {
  -webkit-transition: color 99999s ease-out, background-color 99999s ease-out;
}

div.login-container input.btn-content-orange {
    background-color: rgba(242, 146, 6, 0.8);
}
div.login-container input.btn-content-orange:hover,
div.login-container input.btn-content-orange:focus,
div.login-container input.btn-content-orange:active {
    background-color: rgba(242, 146, 6, 0.9);
}

/* End login screen */

div.content {
    margin: 0 25px 0 265px;
}

div.top-panel {
    height: 35px;
    border-bottom: 1px solid black;
}

table.admin th {
    text-align: left;
    background-color: #cccccc;
}

table.admin th {
    text-align: left;
    background-color: #cccccc;
}

table.admin tr.group {
    text-align: left;
    background-color: #eeeeee;
    font-weight:bold;
}

table.admin td.expanded-group {
    background: url("../img/interface/minus.jpg") no-repeat scroll left center transparent;
    padding-left: 15px !important;
}

table.admin td.collapsed-group {
    background: url("../img/interface/plus.jpg") no-repeat scroll left center transparent;
    padding-left: 15px !important;
}

div.list-group a.list-group-item {
    padding: 8px;
    border: none;
}

div.list-group a.list-group-item:not(:first-of-type) {
    border-top: 1px solid #ddd;
}

.no-image {
    background-color: #fff;
    display: table;
    height: 80px;
    width: 128px;
    border: 1px solid #ddd;
    text-align: center;
}
.no-image span {
    color: #cecece;
    display: table-cell;
    font-size: 11px;
    letter-spacing: 2px;
    line-height: 18px;
    text-transform: uppercase;
    vertical-align: middle;
}

.cover-image {
    background-color: #eee;
    background-repeat:no-repeat;
    background-position: center center;
    background-size: contain;
    width: 128px;
    height: 128px;
    border: 1px solid #ddd;
}

.CodeMirror {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    height: 600px;
}

div.spread {
    margin-left: -5px;
    margin-top: 10px;
}

.button-reset, .legacy-app button.button-reset {
    padding: 0;
    border: none;
    background-color: inherit;
}

.button-reset:focus {
    outline: none;
}

.invisible {
    height: 1px;
    left: -999px;
    position: absolute;
    top: -999px;
    visibility: hidden;
    width: 1px;
}

table.joblog span.error-level-critical, table.apilog span.error-level-critical {
    color: #e62020;
    font-weight: bold;
}

table.joblog span.error-level-error, table.apilog span.error-level-error {
    color: red;
}

table.joblog span.error-level-warning, table.apilog span.error-level-warning {
    color: blue;
}

#APP {
    /* Fix for rendering the content-panel at the correct y position. Without
       this the content-panel is rendered at zero and pushed down when the
       topbar is loaded. */
    min-height: 60px;
}

.content-panel {
    padding: 20px;
    /* Matches topbar height as defined in PrenlyAdmin constants */
    height: calc(100vh - 60px);
    min-width: 300px;
    overflow: auto;
    display: block;
}

/* Adds a left margin to make space for the menu rendered by React */
.content-panel {
    margin-left: 280px;
}
.content-panel.extra-large {
    padding-bottom: 0;
}
/* Below 1280 px screen width menu is by default collapsed and no margin is necessary */
@media (max-width: 1279px) {
    .content-panel {
        margin-left: 0;
    }
}
/* When displaying article manager, menu is collapsed up to 1600 px screen width */
@media (max-width: 1599px) {
    .content-panel.extra-large {
        margin-left: 0;
    }
}
/* Regardless of screen size, apply margin if menu is visible */
.content-panel.menu-visible {
    margin-left: 280px;
}

/**
    End Top and side navigation
*/

div.margin-bottom {
    margin-bottom: 15px;
}

form.apilogfilter {
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 8px 10px 3px 10px;
    margin-bottom: 3px;
}

form.debugfilter {
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 8px 10px 3px 10px;
    margin-bottom: 3px;
}

table.issue-version-list {
}
table.issue-version-list td {
    padding: 4px 0;
    border-top: 1px solid #d0d0d0;
}
table.issue-version-list td:first-child {
    min-width:270px;
}
table.issue-version-list tr:first-child td {
    border-top: 0;
}


/**
 Media picker
*/

.media-picker ul.thumbnails.image_picker_selector li .thumbnail {
    width: 120px;
    height: 120px;
    position: relative;
    border: 3px solid transparent;
    margin-bottom: 0px;
}

.media-picker ul.thumbnails.image_picker_selector li .thumbnail.selected {
    background-color: transparent;
    border: 3px solid #08C;
}

.media-picker ul.thumbnails.image_picker_selector li .thumbnail img {
    max-height: 110px;
    max-width: 110px;
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    margin: auto;
}

.modal-dialog h3 {
    margin-top: 20px;
    margin-bottom: 2px;
    font-size: 16px;
    font-weight: bold;
}


/** Alerts **/

#alert {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1048;
}

#alert div.alert {
    max-width: 560px;
    max-height: 90%;
    margin: 0;
}

#alert div.alert-success {
    background-color: #5cb85c;
    border-color: #4cae4c;
    color: #fff;
}

#alert div.alert-danger {
    background-color: #d9534f;
    border-color: #d43f3a;
    color: #fff;
}

#alert div.alert .close {
    margin-left: 15px;
}

/* Client settings form */
form#edit-client-form .custom-page-headers > .row:not(:last-child) .form-group {
    margin-bottom: 0px;
}
form#edit-client-form .custom-page-headers .sub-description {
    padding-left: 5px;
    display: inline-block;
    font-weight: normal;
}
