@import "./css/_variables.css";

.ui-datepicker-trigger {
    display: none;
    visibility: hidden
}

th {
    background-repeat: no-repeat;
    color: black;
}

tr {
    height: 25px;
}

.resizing {
    cursor: col-resize;
}

hr {
    border: 0;
    clear: both;
    display: block;
    width: 100%;
    background-color: #eee;
    height: 1px;
}

html,
body {
    height: 100%;
    /* The html and body elements cannot have any padding or margin. */
}

#wrap {
    min-height: 100%;
    height: auto;
    /* Negative indent footer by its height */
    margin: 0 auto -5.5%;
    /* Pad bottom by footer height */
    padding: 0 0 1%;
}

/* Set the fixed height of the footer here */
#footer {
    height: 100px;
}

/* jQuery calendar*/
.ui-widget-header {
    border: 1px solid #357ebd;
    background: #428bca;
    color: #ffffff;
    font-weight: bold;
}

.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    /* add padding to account for vertical scrollbar */
    padding-right: 20px;
}

/* Custom range slider from Bootstrap 4 */
.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: opacity .15s ease-in-out;
    transition: opacity .15s ease-in-out;
}

.custom-range:hover {
    opacity: 1;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #e5173f;
    cursor: pointer;
    border-radius: 8px;
}

.custom-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #e5173f;
    cursor: pointer;
    border-radius: 8px;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.layout-compact #form-fields .form-group .input-group-btn > button {
    padding: 0 8px;
}

.table-inline {
    display: grid;
    max-height: 50vh;
    width: 100%;
    overflow: auto;
}

.table-inline th {
    position: sticky;
    top: 0;
    background: hsl(0 0% 97% / 1);
    max-height: 24rem;
    width: 100%;
    gap: .25rem;
    overflow: auto;
    padding: .5rem;
    z-index: 11;
}

.table-inline td {
    border-top: 1px solid #ddd;
    position: relative;
}

.table-inline .delete-row-button,
.table-inline .btn-inline {
    border: none;
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.table-inline tr:not(:hover) .delete-row-button,
.table-inline.table-inline-extensible tr:last-child .delete-row-button {
    visibility: hidden;
}

.table-inline thead,
.table-inline tbody,
.table-inline tr {
    display: contents;
}

.form-control-inline {
    display: block;
    height: 36px;
    width: 100%;
    border-radius: 0;
    border: 0;
    background-color: transparent;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-weight: 400;
}

.form-control-inline:not(:disabled):hover,
.form-control-inline:not(:disabled):focus {
    background-color: rgb(243 244 246);
}

.form-control-inline:disabled {
    cursor: not-allowed;
    filter: opacity(0.5);
}

.overlay {
    cursor: wait;
    background-color: #EFEFEF;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
    opacity: .5;
    filter: alpha(opacity:50);
    display: none;
}

.overlay.enabled {
    display: block;
}

kbd {
    display: inline-block;
    margin: 0 .1em;
    padding: .1em .6em;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #242729;
    text-shadow: 0 1px 0 #fff;
    background-color: #fff;
    border: 1px solid #9fa6ad;
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(12, 13, 14, 0.15), inset 0 1px 0 0 #fff;
    overflow-wrap: break-word;
    white-space: nowrap;
}

#helpModal p {
    height: 24px;
}

#license-refresh-date {
    visibility: hidden;
}

#pConfirmDeleteMsg {
    overflow-wrap: break-word;
}

table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
    opacity: .5;
}

.ui-draggable-handle {
    cursor: grab;
}

.ui-draggable-dragging,
.ui-draggable-dragging * {
    cursor: grabbing !important;
}

.modal-xl {
    width: 125rem;
}

.modal-xxl {
    width: 160rem;
}

.modal-header {
    padding-bottom: 1rem;
}

label input {
    font-weight: 400;
}

.icon-sm {
    width: 1.1rem;
    height: auto;
    opacity: .8;
}

.icon-md {
    width: 1.4rem;
    height: auto;
    opacity: .8;
}

.icon {
    width: 1.6rem;
    height: auto;
    opacity: .8;
}

.icon-lg {
    width: 2rem;
    height: auto;
    opacity: .8;
}

.icon-inverted {
    width: 1.6rem;
    height: auto;
    filter: invert(1);
}

.btn-loading {
    color: transparent;
    position: relative;
    transition: color .2s ease;
    overflow-x: hidden;
    will-change: color;
    
    img {
        visibility: hidden;
    }

    &:hover,
    &:active,
    &:focus,
    &:active:hover,
    &:active:focus {
        color: transparent;
    }

    &:after {
        content: "";
        position: absolute;
        background-image: url("/Images/refresh-b.png");
        background-repeat: no-repeat;
        background-size: contain;
        height: 1.6rem;
        width: 1.6rem;
        top: calc(50% - 0.8rem);
        left: calc(50% - 0.8rem);
        transform: rotate(72deg);
        animation: spinBackground 1s linear infinite, spinnerSlideIn .2s ease normal;
        will-change: opacity, transform;
    }

    &.btn-primary:after,
    &.btn-success:after,
    &.btn-info:after,
    &.btn-warning:after,
    &.btn-danger:after {
        filter: invert(1);
    }
}

.modal-resizable.in {
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;

    .modal-dialog {
        resize: horizontal;
        overflow: hidden;
        min-width: 50rem;
        max-width: 98vw;
        box-shadow: 0 5px 15px rgba(0,0,0,.5);
    }
}

.daterangepicker {
    box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
    
    select.monthselect,
    select.yearselect {
        display: inline-block;
        line-height: 1.42857143;
        color: #555;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    }
}

@keyframes spinBackground {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spinnerSlideIn {
    from {
        transform: translateX(-500%) rotate(-72deg);
        opacity: 0;
    }

    to {
        transform: translateX(0) rotate(72deg);
        opacity: 1;
    }
}