﻿/*Prevent 300ms touch delay*/
html {
    touch-action: manipulation;
}

/*
HELPERS
*/
.no-padding {
    padding: 0 !important;
}

.no-margin {
    margin: 0 !important;
}

.white {
    color: white;
}

.cursor-pointer {
    cursor: pointer !important;
}

.table-cell {
    display: table-cell;
}

.table-row {
    display: table-row;
}

.flex {
    display: flex;
}

.flex-grow-1 {
    flex-grow: 1;
}

.vertical-align {
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-bold {
    font-weight: bold;
}

.text-underline {
    text-decoration: underline;
}

.invisible-backdrop {
    z-index: 1035;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.margin-top-12 {
    margin-top: 12px;
}

.padding-top-12 {
    padding-top: 12px;
}

.margin-7 {
    margin: 7px;
}

.pt-24 {
    padding-top: 24px;
}

.alert-slim {
    margin-bottom: 0px;
    padding: 5px;
}

@media (min-width: 768px) {
    .modal-xl .modal-dialog. {
        width: 600px;
    }
}

@media (min-width: 992px) {
    .modal-xl .modal-dialog {
        width: 900px;
    }
}

@media (min-width: 1366px) {
    .modal-xl .modal-dialog {
        width: 1200px;
    }
}

@media (min-width: 1680px) {
    .modal-xl .modal-dialog {
        width: 1440px;
    }
}

.modal-header, .modal-footer {
    padding: 8px;
}
.modal, .modal-dialog, .modal-content {
    border-radius: 6px;
}

.modal-content {
    border: none;
    background-color: #E1E4E5;

    /*Bootstrap 4 style*/
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
}

.modal-body {
    background-color: white;
    
    /*Bootstrap 4 style*/
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}
.modal-footer {
    /*Bootstrap 4 style*/
    display: -ms-flexbox;
    /*display: flex; iOS app doesnt support this, footer doesnt not adapt to content height */
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.modal-dialog-scrollable .modal {
    max-height: calc(100% - 160px);
}
.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 60px);
    overflow: hidden;
}
.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.modal-header {
    -webkit-border-top-left-radius: 6px;
    -webkit-border-top-right-radius: 6px;
    -moz-border-radius-topleft: 6px;
    -moz-border-radius-topright: 6px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

    /*.modal-header .modal-title {
        width: 430px;
    }*/
     
    .modal-header .info {
        flex-grow: 1;
    }

.modal-footer {
    -webkit-border-bottom-right-radius: 6px;
    -webkit-border-bottom-left-radius: 6px;
    -moz-border-radius-bottomright: 6px;
    -moz-border-radius-bottomleft: 6px;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.position-right {
    position: absolute;
    right: 5px;
}

.full-height {
    height: 100%;
}

.full-width {
    width: 100%;
}

.display-inline {
    display: inline;
}

.display-inline-block {
    display: inline-block;
}

.display-block {
    display: block;
}

.borderless, .borderless:focus, .borderless:active {
    border: none;
    outline: none;
    box-shadow: none;
}

.gray {
    color: #D9DDDE;
}

.radio-button {
    vertical-align: text-bottom;
    margin-left: 4px;
    line-height: 24px;
}

.arrow-up {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid black;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #f00;
}

.arrow-right {
    width: 0;
    height: 0;
    border-top: 60px solid transparent;
    border-bottom: 60px solid transparent;
    border-left: 60px solid green;
}

.arrow-left {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid blue;
}

div.group {
    border-radius: 4px;
    padding: 1px;
}

    div.group.focus {
        outline: 0;
        -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
        box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
    }

    div.group.has-error,
    .has-error div.group {
        border-color: #a94442;
    }

    div.group .form-control:focus {
        box-shadow: none;
    }

    div.group .input-group input,
    div.group input {
        border: none;
        box-shadow: none;
        outline: none;
    }

    div.group .input-group .input-group-addon {
        border: none;
        background-color: white;
    }

    div.group > .input-group:first-of-type input,
    div.group > input:first-of-type {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    div.group > .input-group + .input-group input,
    div.group > input + input {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    div.group .input-group:first-of-type .input-group-addon {
        border-bottom-right-radius: 0;
    }

    div.group .input-group + .input-group .input-group-addon {
        border-top-right-radius: 0;
    }

.form-control::-webkit-input-placeholder,
.form-control:-moz-placeholder,
.form-control::-moz-placeholder,
.form-control:-ms-input-placeholder {
    color: #C3C6CA;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

img.center-image {
    display: block;
    margin-left: auto;
    margin-right: auto
}

.textarea-container {
    position: relative;
    width: 100%;
    max-height: 125px;
}

    .textarea-container > .ps-scrollbar-x-rail {
        display: none !important;
    }

.textarea {
    width: 100%;
    max-width: 100%;
    border: none;
    resize: none;
    -webkit-appearance: none;
}

    .textarea:focus {
        outline: none;
    }

.ps-container > .ps-scrollbar-y-rail {
    width: 11px;
    /*margin-right: 3px;*/
    border-radius: 6px;
}

    .ps-container > .ps-scrollbar-y-rail > .ps-scrollbar-y {
        right: 0;
    }

.rotate-45 {
    -ms-transform: rotate(45deg); /* IE 9 */
    -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
    transform: rotate(45deg);
}

.rotate-90 {
    -ms-transform: rotate(90deg); /* IE 9 */
    -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
    transform: rotate(90deg);
}
