﻿html, body, form {
    height: 100%;
    overflow: hidden;
}

form {
    min-height: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.header, .footer {
    flex: 0 0 auto;
}

.footer {
    background-color: black;
    z-index: 1000;
}

    .footer, .footer a {
        color: white;
    }

        .footer .dropdown-item {
            color: black;
        }

        .footer #errorBar button {
            background-color: transparent;
            border-width: 0px;
            color: white;
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 0.7;
            padding: 0 0 0 .5rem;
            text-shadow: 0 1px 0 black;
        }

.content {
    flex: 1 1 auto;
    align-items: stretch;
    min-height: 0;
    overflow-y: scroll;
}

.flex-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
}

.container, .container-fluid, .container-xl {
    padding-left: 5px;
    padding-right: 5px;
}

@media (min-width: 1200px) {
    .container-xl {
        max-width: 1140px;
        width: 1140px;
        margin: 0 auto;
    }
}

#notificationArea {
    position: absolute;
    bottom: 60px;
    right: 30px;
}

ul.typeahead.dropdown-menu {
    max-height: 550px;
    overflow: auto;
}

.dropdown-menu ::-webkit-scrollbar {
    width: 2em !important;
    height: 2em !important;
}

::-webkit-scrollbar-button {
    background: no-repeat #e9ecef;
    background-size: 0.75em;
    background-position: center bottom;
}

    ::-webkit-scrollbar-button:vertical:decrement {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%235a6268'><polygon points='0,50 100,50 50,0'/></svg>");
    }

    ::-webkit-scrollbar-button:vertical:increment {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%235a6268'><polygon points='0,0 100,0 50,50'/></svg>");
    }

::-webkit-scrollbar-track-piece {
    background: #f8f9fa;
}

.scroll-primary ::-webkit-scrollbar-thumb {
    background: #cce5ff;
}

.scroll-danger ::-webkit-scrollbar-thumb {
    background: #f8d7da;
}

.scroll-info ::-webkit-scrollbar-thumb {
    background: #d1ecf1;
}

.scroll-success ::-webkit-scrollbar-thumb {
    background: #d4edda;
}

.scroll-warning ::-webkit-scrollbar-thumb {
    background: #fff3cd;
}

select.form-control-lg option {
    padding: 1rem 1rem !important;
}

.mh-85-of-auto .dropdown-menu {
    max-height: 85vh;
    overflow: auto;
}

.dropdown-item {
    padding: 0.75rem 1rem;
}

body.wait *, body.wait {
    cursor: progress !important;
}

#sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: calc(100vh - 40px);
    margin-bottom: 50px;
    z-index: 999;
    background: #424343;
    color: #fff;
    transition: all 0.3s;
    overflow-y: hidden;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
    padding: 0.25rem;
}

    #sidebar.active {
        right: 0;
    }

    #sidebar div {
        background: #303030;
        margin: 0.25rem 0.5rem;
        padding: 0.75rem;
    }

    #sidebar .text-muted {
        color: #a3a3a3 !important;
    }

.td-px-2 th, .td-px-2 td {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.divItems th, .divItems td {
    vertical-align: middle;
}

.divItems .small {
    vertical-align: top;
}

.divItems .result {
    width: 80px;
}

fieldset .remove-item {
    pointer-events: all !important;
}

fieldset.nondeletable .remove-item {
    display: none;
}

fieldset:disabled #btnAddAll, fieldset:disabled .koty, fieldset:disabled .calc-item, fieldset:disabled .delete-item {
    display: none;
}

fieldset .kotaname {
    display: none;
}

fieldset:disabled .kotaname {
    display: initial;
}

.btn-grayblue {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

    .btn-grayblue:not(:disabled):not(.disabled).active, .btn-grayblue:not(:disabled):not(.disabled):active, .show > .btn-grayblue.dropdown-toggle {
        color: #fff;
        background-color: #0062cc;
        border-color: #005cbf;
    }

.btn span.check {
    opacity: 0;
}

.btn.active span.check {
    opacity: 1;
}

.btn-secondary.aspNetDisabled {
    color: white !important;
}

.btn-scroll-up, .btn-scroll-down {
    display: none;
    position: absolute;
    right: 24px;
}

.btn-scroll-up {
    bottom: 105px;
}

.btn-scroll-down {
    bottom: 45px;
}

.col-result, .closed .col-waiting, .deleted .col-waiting, .forwarded .col-waiting {
    display: none;
}

.closed .col-result, .deleted .col-result, .forwarded .col-result {
    display: table-cell;
}

.c-pointer, .clickable tr {
    cursor: pointer;
}

.table-nonfluid {
    width: auto !important;
}

.roundbox {
    border: 1px solid #ced4da;
    border-radius: 0.2rem;
    width: 100%;
}

.card-header a {
    color: inherit;
}

#alertResults {
    padding-right: 3rem;
}

    #alertResults .badge {
        font-size: 100%;
    }

    #alertResults .close {
        padding: .25rem 1.25rem .5rem .75rem;
    }

#collapseResults {
    height: 400px;
    overflow: auto;
}

    #collapseResults tbody th {
        color: black;
        font-weight: normal;
        vertical-align: middle;
    }

    #collapseResults td {
        color: black;
        text-align: right;
        vertical-align: middle;
    }

.forklift59g {
    background: url(../Images/forklift_gray_small.png) no-repeat;
    font-size: 1.75rem;
    font-weight: bold;
    font-style: italic;
    padding: 0.5rem 0.5rem 0.5rem 5rem;
    display: block;
}

.caliper {
    background-image: url(../Images/caliper_white.png);
    background-repeat: no-repeat;
    background-position: right 40px;
}

.grow-left, .grow-right {
    position: relative;
    -webkit-transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    transform: scale(1, 1);
    transition: all .3s ease-in-out;
    -webkit-transition-duration: 0.3s; /* Safari */
    z-index: 10;
}

    .grow-left:hover, .grow-right:hover {
        position: relative;
        cursor: pointer;
        transition: all .3s ease-in-out;
        -webkit-transition-duration: 0.3s; /* Safari */
        z-index: 10;
    }

    .grow-right:hover {
        -webkit-transform: scale(5, 5);
        -ms-transform: scale(5, 5);
        transform: scale(5, 5);
        transform-origin: top left;
    }

    .grow-left:hover {
        transform-origin: top right;
    }

.col-6 .grow-left:hover {
    -webkit-transform: scale(4, 4);
    -ms-transform: scale(4, 4);
    transform: scale(4, 4);
}

.col-12 .grow-left:hover {
    -webkit-transform: scale(2, 2);
    -ms-transform: scale(2, 2);
    transform: scale(2, 2);
}

#table-switch .fa-table, #table-switch.active .fa-th-list {
    display: initial;
}

#table-switch.active .fa-table, #table-switch .fa-th-list {
    display: none;
}

.selectable.active {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

    .selectable .colapsed-row, .selectable.active .expanded-row, .selectable.active + .after-selectable {
        display: table-row;
    }

    .selectable.active .colapsed-row, .selectable .expanded-row, .selectable + .after-selectable {
        display: none;
    }

.selectable-striped tbody tr:nth-of-type(4n+3) {
    background-color: rgba(0, 0, 0, .05);
}

.fileinput-button {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

    .fileinput-button input {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
        opacity: 0;
        -ms-filter: 'alpha(opacity=0)';
        font-size: 200px !important;
        direction: ltr;
        cursor: pointer;
    }

.btn-checkmode, .image-checkbox input[type="checkbox"] {
    display: none;
}

.image-checkbox .fa {
    position: absolute;
    color: #4A79A3;
    background-color: #fff;
    padding: 10px;
    top: 7px;
    right: 7px;
}

.image-checkbox-checked img {
    border: 2px solid #4783B0;
}

.checkmode .btn-checkmode, .image-checkbox-checked .fa {
    display: block !important;
}

.images {
    margin-bottom: 10rem;
}

.font-weight-bold optgroup {
    font-weight: 700 !important;
}

@media (max-width: 767px) {
    .fixed-buttons {
        position: fixed;
        bottom: 40px;
        left: 4px;
        right: 4px;
    }
}

canvas.drawing, canvas.drawingBuffer {
    position: absolute;
    left: 0;
    top: 0;
}

.modal-body video, .modal-body canvas {
    max-width: 100%;
}
