/* GLOBAL STYLE */
/* Things like `p` tag, bootstrap redefinition, global color, etc. */

body {
    background-color: white;
}

.textcomplete-item.active {
    background-color: #20a8d8;
    color: white;
}

table td img {
    max-width: 100%;
    max-height: 13em;
}

.dataTable, table.dataTable {
    width: 100% !important;
}

table.dataTable td {
    vertical-align: middle;
}

textarea.form-control {
    height: 5em;
}

.formset-table textarea {
    width: 15em;
}

.formset-table .form-control {
    min-width: 10em;
}

.formset-table td {
    vertical-align: middle;
}

select.is-invalid + .select2-container .select2-selection {
    border-color: #f86c6b !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23f86c6b' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23f86c6b' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem) !important;
}

.select2-container .select2-selection {
    min-width: 10em;
    min-height: calc(1.5em + .75rem + 2px);
    border-color: #e4e7ea;

}

label {
    margin-right: 0.25em;
}

.dataTables_scrollBody tbody tr {
    height: 60px;
}

img[lazy=loading] {
    width: 100%;
    background-color: lightgray;
}

input:required, select.required, select.required ~ .select2 .select2-selection, select:required, select:required ~ .select2 .select2-selection, textarea:required {
    border: 1px solid #ffd789 !important;
    background: #fff9ef !important;
}

.required-for-publication, .required-for-publication ~ .select2 .select2-selection {
    border: 1px solid #fff1d5 !important;
    background: #fffbf5 url("../img/required.png") no-repeat bottom right !important;
}

.auto-updated-field::before, .auto-updated-field ~ .select2 .select2-selection::before {
    content: "Auto updated!";
    font-size: 0.5em;
    position: absolute;
    right: 1px;
    bottom: -10px;
    color: #315aff;
}

input[type="file"].required-for-publication {
    width: 100%;
    padding-bottom: 13px;
}

.form-control::placeholder {
    color: #dadde0;
}

/* base.html STYLE */
.app-header {
    padding-right: 1.5em;
}

.app-header .navbar-brand {
    width: 200px;
    align-items: center;
    justify-content: left;
}

.app-header .navbar-brand img{
    width: 80%;
}

.banner .alert {
    margin: 0;
}

.breadcrumb {
    margin: 0;
}

.badge:not(.badge-pill) {
    border-radius: 0;
}

.badge-success-light {
    background-color: #69d100;
    color: white;
}

.badge-success-dark {
    background-color: #009800;
    color: white;
}

.extra-header {
    width: 100%;
    overflow: auto;
    margin-bottom: 20px;
}

.extra-header .btn {
    margin-top: 3px;
}

.sidebar.show {
    margin-left: 0px !important;
}

/* template_show_view.html STYLE */

.template-item-card .type-radios {
    margin-left: 1em;
}

.template-item-card .type-radios label {
    margin: 0;
}

/* item_list_view.html STYLE*/

.card-list a {
    text-decoration: none;
    border: 0;
}

.card-list .card-item:hover {
    border: 1px solid #aaa;
    box-shadow: 1px 1px #ddd inset
}

.card-list .left-filters {
    width: 20em;
}

.card-list .left-filters .card {
    margin: 0;
    z-index: 100;
}

.card-list .left-filters .card-header {
    padding: 0.1em;
}

.card-list .left-filters .select {
    widows: 100%;
}

.card-list .advanced-filters {
    margin-top: -2px;
    width: 20em;
}

.card-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, 170px);
}

/* item-list-view STYLE*/

#item-show-app div.dts tbody th, div.dts tbody td {
    white-space: normal !important;
}

#item-show-app #box-versions {
    font-size: 0.95em;
    min-width: min(500px, 100%);
}

#item-show-app #box-versions .card, #item-show-app #box-summary .card {
    height: 300px;
}

#item-show-app #box-versions .btn {
    font-size: 0.7em;
    padding: 2px 3px;
}

#item-show-app #box-versions tr {
    height: 15px;
}

#item-show-app #box-versions th {
    padding: 4px;
    padding-left: 2px;
    padding-right: 2px;
}

#item-show-app #box-versions td {
    padding: 1px;
    padding-left: 2px;
    padding-right: 2px;
}

#item-show-app #box-details ul {
    list-style: none;
    padding-left: 0px;
}

#item-show-app #box-details img {
    max-height: 190px;
    float: left;
    margin-right: 10px;
    border: lightgray solid 1px;
}

#item-show-app #diff-modal {
    font-size: 13px;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

@media(min-width: 900px) {
    #item-show-app #diff-modal {
        padding-left: 50px !important;
        padding-right: 50px !important;
        padding-top: 50px !important;
    }
}

#item-show-app #diff-modal .modal-body {
    overflow-x: auto;
}

#item-show-app #diff-modal .modal-dialog {
    max-width: none !important;
}

#item-show-app #box-summary .card-body {
    overflow: auto;
}

.item-page-title {
    float: left;
    position: relative;
    font-size: 17px;
    line-height: 36px;
    color: #333;
}

/* card.html STYLE */

.card-item {
    border: 1px solid #ddd;
    box-shadow: 1px 1px #ddd;
    border-radius: 0;
    margin: 0 5px 5px 0;
    padding: 4px;
    width: 160px;
    height: 238px;
    cursor: pointer;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: #337ab7;
    text-decoration: none;
    overflow: hidden;
    font-family: Source Sans Pro, Helvetica Neue, Arial;
}

.card-item .details {
    position: relative
}

.card-item .details .title,
.card-item .details .line1,
.card-item .details .line2,
.card-item .details .line3,
.card-item .details .line4 {
    color: #fff;
    padding: 2px;
    margin: 2px;
    height: 20px;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 151px;
    white-space: nowrap
}

.card-item .details .title {
    font-size: 0.8em;
    text-align: center;
    margin-bottom: 4px;
}

.card-item .details .line1,
.card-item .details .line2,
.card-item .details .line3,
.card-item .details .line4 {
    font-size: 10px;
    margin-left: 19px;
    margin-top: 2.7px;
}

.card-item .details .image {
    text-align: center;
    height: 88px;
    width: 100%;
}

.card-item .details .image img {
    height: 85px;
    margin: auto;
    margin-top: 2px;
}

.card-item .details .url {
    color: #000;
    font-size: 0.53em;
    text-align: right;
    padding-right: 2px;
    margin-top: -3px;
}

.card-item .badge {
    color: white;
}

.card-item .badge-secondary {
    background-color: #777777;
}

.card-item .badge-tech-review {
    background-color: #ff6107;
}

.card-item div.float-right {
    margin-top: -4px;
}

/* template_edit_view.html STYLE */

#template-app .card-container {
    max-width: 165px;
    margin-top: 15px;
    min-height: 329px;
}

/* template_delete_view.html STYLE */

.error-item {
    background-color: #eee;
}

.error-version {
    margin-left: 10px;
}

/* home.html STYLE */


#home a:hover {
    text-decoration: none;
}


/* cardstyle_list_view STYLE */

#list-cardstyle .dataTables_scrollBody tbody tr {
    height: 90px;
}

#list-cardstyle .dataTables_scrollBody tbody tr img {
    max-height: 70px;
}

/* template card STYLE */
#template-show-app .card-item {
    cursor: inherit;
}

.warn {
    color: #f86c6b;
    font-weight: bold;
    text-align: center;
}

.popupImage {
    text-align: center;
}

.popupImage img {
    max-height: none !important;
    float: none !important;
    padding: 10px 10px;
    border: none !important;
}

.popupSource {
    padding: 1rem 1rem;
    margin: -1rem -1rem -1rem auto;

    display: inline-block;
    vertical-align: middle;
    margin: 0px 0;
}

.popupClose {
    padding: 10px 10px;
    float: right;
    border: none;
    background-color: white;
    font-size: 1.5em;
    border-radius: .3rem;
}

.popupClose:hover {
    background-color: #eee;
}

/* dataTables */
div.dataTables_wrapper div.dataTables_filter input {
    margin-left: 0.5em;
    display: inline-block;
    width: auto;
    height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
    font-size: .765625rem;
    line-height: 1.5;
    border-radius: .2rem;
    color: #5c6873;
    font-weight: 400;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #e4e7ea;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

table.dataTable.no-footer {
    border: transparent;
}

table.dataTable thead th, table.dataTable thead td {
    border-bottom: 2px solid #c8ced3;
}

table.dataTable tbody th, table.dataTable tbody td {
    padding: .75rem;
}

.diffButtons {
    text-align: right;
    display: inline-block;
    margin-right: 3px;
}

.non_active_notification {
    visibility: hidden
}

.error-version {
    padding-left: 5px;
}

.error-version i {
    color: #f86c6b;
}

#list-app .container,
#template-app .container {
    width: 30px;
}
