/*
 * Common hacks
 * -------------------------------------------
 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
/* ------------------------------------------- */

/*
 * Errors
 * -------------------------------------------
 */
.error-box {
    display: none;
}

.error-box span {
    color: #dc3545;
    display: inline-block;
    font-weight: 700;
    margin-bottom: .5rem;
}

.error-box ul {
    padding-left: 0px;
}

.error-box ul li {
    color: #dc3545;
    list-style: none;
}

.error-page > .error-content {
    padding-top: 20px;
}

.card-error {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
    display: none;
    float: left;
    padding-right: 1.75rem;
}

.card-specify-error {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
    display: none;
    padding-right: 1.75rem;
}
/* ------------------------------------------- */

/*
 * Loading animations
 * -------------------------------------------
 */
@keyframes row-loading {
    0% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.2;
    }
}

.table-loading tr {
    animation-name: row-loading;
    animation-duration: 2s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.table-loading tr td span div {
    margin-top: 6px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: #d9d9d9;
    height: 12px;
}

.table-loading tr:nth-child(2) {
    opacity: 0.75;
}

.table-loading tr:nth-child(3) {
    opacity: 0.5;
}

.pace {
    -webkit-pointer-events: none;
    pointer-events: none;

    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.pace-inactive {
    display: none;
}

.pace .pace-progress {
    background: #007bff;
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 100%;
    width: 100%;
    height: 3px;
}
/* ------------------------------------------- */

/*
 * Modals
 * -------------------------------------------
 */
.swal2-modal {
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 50%);
}

.swal2-content {
    font-size: 1rem !important;
}

.swal2-title {
    font-size: 1.25rem !important;
}
/* ------------------------------------------- */

/*
 * Controls
 * -------------------------------------------
 */
.table-controls {
    height: 51px;
    padding: 10px;
}

.form-controls {
    border-bottom: 1px solid rgba(0,0,0,.125);
    height: 51px;
    padding: 10px;
}

.table-hover tbody tr:hover {
    cursor: pointer;
}

.label-normal {
    font-weight: normal !important;
}

.custom-control-label {
    font-weight: normal !important;
}

#card-damages .card {
    padding: 0px !important;
}

.files-drag-active {
    background-color: lightgray;
}

.card-img {
    width: 100%;
    height: 13vw;
    object-fit: cover;
}

.dm-uploader {
    height: 264px;
}

.opacity-50 {
    opacity: 0.5;
}

.bootstrap-autocomplete.dropdown-menu {
    max-height: 500px;
    overflow-y: auto;
}

.card-deck {
    margin-bottom: 1rem;
}

.link-damage-select {
    cursor: pointer;
}

.custom-select:disabled {
    color: #000000;
}

[class*=icheck-]>input:first-child:disabled+label {
    opacity: 1;
}

.icheck-primary>input:first-child:disabled+label::before {
    opacity: 0.65;
}

.dropdown-menu-min-height {
    min-height: 50px;
}

.costs-total {
    border-top: 2px solid #dee2e6 !important;
    font-weight: bold;
    padding-right: 1.75rem !important;
}

.expandable-body > td {
    width: inherit !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #007bff;
}
/* ------------------------------------------- */

/*
 * Tables
 * -------------------------------------------
 */
.btn-table-actions > .btn-xs {
    line-height: 0.5;
}
/* ------------------------------------------- */

/*
 * Finance - actual costs overview
 * -------------------------------------------
 */
.sub-header {
    font-size: smaller;
    font-style: italic;
    text-align: right;
}
/* ------------------------------------------- */

/*
 * Management - Logs
 * -------------------------------------------
 */
.error-callstack {
    font-size: smaller;
    font-style: italic;
}
/* ------------------------------------------- */
