:root {
    --main-bg-color: #414549;
}

::-webkit-scrollbar {
    height: 0.7rem;
    width: 0.7rem;
}
::-webkit-scrollbar-thumb {
    --tw-border-opacity: 1;
    background-color: rgba(217,217,227,.8);
    border-color: rgba(255,255,255,var(--tw-border-opacity));
    border-radius: 9999px;
    border-width: 1px;
}
::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 9999px;
}

.cursor-auto {
    cursor: auto;
}
.cursor-default {
	cursor: default;
}
.cursor-pointer {
    cursor: pointer;
}
.cursor-wait {
    cursor: wait;
}
.cursor-text {
    cursor: text;
}
.cursor-move {
    cursor: move;
}
.cursor-help {
    cursor: help;
}
.cursor-not-allowed {
    cursor: not-allowed;
}

.sticky-top {
    position: sticky;
    top: 0;
}

.sticky-bottom {
    position: sticky;
    bottom: 0;
}

.sticky-left {
    position: sticky;
    left: 0;
}

.page-contents {
    z-index: 1029;
}

body {
    background-color: #fff !important;
}

header {
    height: 36px;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background-color: #6c757d!important;
}

.nav-link {
    border-radius: 0 !important;
}

ul.errorlist {
    list-style: none;
    padding-left: 0px;
}

ul.errorlist li {
    color: #dc3545!important;
}

.form-switch {
    padding-left: 0px;
}

.form-switch .form-check-input {
    float: initial;
    margin-left: 0px !important;
    width: 4em;
}

.form-switch .form-check-input {
    height: 2em;
}

.overlay {
    z-index: 1051;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color:rgba(0,0,0,0.5);
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.z-index-overlay2 {
    z-index: 1052 !important;
}

.z-index-overlay3 {
    z-index: 1053 !important;
}

.overlay-content {
    z-index: 1052;
    position: fixed;
    top: 36px;
    display: block;
    align-items: center;
    justify-content: center;
    width: auto;
    max-height: calc(100vh - 36px);
    overflow-y: scroll;
    padding: 0 1.5rem 1rem;
    background: #fefefe !important;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
}

.overlay-content-full {
    margin-top: 36px;
    z-index: 1052;
    width: 100% !important;
    height: 100% !important;
    max-height: calc(100vh - 36px);
    overflow-y: scroll;
    padding: 0 1.5rem 1rem;
    background: #fefefe !important;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
}


.overlay-file {
    z-index: 1054;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem;
    color: #fff;
    background-color:rgba(0,0,0,0.8);
    overflow-y: scroll;
}

.overlay-header {
    text-align: center;
    padding-bottom: 1rem;
}

.overlay-body {
    padding-bottom: 1rem;
}

.overlay-target {
    background-color: #fff;
}

.loader {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: solid 4px;
    border-color: #000000 #00000010 #00000010;
    position: relative;
    animation-name: spin;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.sticky-table thead {
    position: sticky;
    top: 36px;
    z-index: 1;
}

.tabs {
    background-color: #fff;
    width: auto;
}

.tab_item {
    width: calc(100%/11);
    background-color: #d9d9d9;
    text-align: center;
    color: #565656;
    display: block;
    float: left;
    padding: 0.5rem 0.5rem;
    text-align: center;
    font-weight: bold;
    transition: all 0.2s ease;
}

.tab_item:hover {
    opacity: 0.75;
}
input[name="tab_item"] {
    display: none;
}

.tab_content {
    display: none;
    padding: 1rem;
    clear: both;
    overflow: hidden;
}

#tab1:checked ~ #tab1_content,
#tab2:checked ~ #tab2_content,
#tab3:checked ~ #tab3_content,
#tab4:checked ~ #tab4_content,
#tab5:checked ~ #tab5_content,
#tab6:checked ~ #tab6_content,
#tab7:checked ~ #tab7_content,
#tab8:checked ~ #tab8_content,
#tab9:checked ~ #tab9_content,
#tab10:checked ~ #tab10_content,
#tab11:checked ~ #tab11_content {
    display: block;
}

.tabs input:checked + .tab_item {
    background-color: #212529;
    color: #fff;
}

#list-tab1:checked ~ #list-tab1_content,
#list-tab2:checked ~ #list-tab2_content,
#list-tab3:checked ~ #list-tab3_content,
#list-tab4:checked ~ #list-tab4_content,
#list-tab5:checked ~ #list-tab5_content,
#list-tab6:checked ~ #list-tab6_content,
#list-tab7:checked ~ #list-tab7_content {
    display: block;
}

.badge {
    padding: .25em .65em;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

input.invalid {
    border: 1px solid #dc3545 !important;
}

select.invalid {
    border: 1px solid #dc3545 !important;
}

textarea.invalid {
    border: 1px solid #dc3545 !important;
}

.invalid input {
    border: 1px solid #dc3545 !important;
}

.invalid select {
    border: 1px solid #dc3545 !important;
}

.invalid textarea {
    border: 1px solid #dc3545 !important;
}

.invalid .field-error {
    display: none !important;
}

pre {
    font-size: 1em;
    font-family: inherit;
    overflow-x: visible;
    white-space: pre-wrap;
}

.form-label {
    font-size: 0.9rem;
    margin-bottom: 1px !important;
}

.form-control-plaintext {
    margin-top: -10px;
}

.flatpickr-input {
    width: 100%;
    background-color: #fff !important;
}

.monthpicker {
    width: 90px;
    background-color: #fff !important;
}

.shadow-white {
    text-shadow: 0 0 5px #fff;
    -webkit-text-stroke: 1px #fff;
    text-stroke: 1px #fff;
}

.sticky-user-name {
	left: 200px;
}

.router-view-toggle .sticky-user-name {
	left: 0;
}

@media screen and (min-width:1024px) {
    .func1::before { content: 'F1 '; }
    .func2::before { content: 'F2 '; }
    .func3::before { content: 'F3 '; }
    .func4::before { content: 'F4 '; }
    .func5::before { content: 'F5 '; }
    .func6::before { content: 'F6 '; }
    .func7::before { content: 'F7 '; }
    .func8::before { content: 'F8 '; }
    .func9::before { content: 'F9 '; }
    .func10::before { content: 'F10 '; }
    .func11::before { content: 'F11 '; }
    .func12::before { content: 'F12 '; }

    html {
        font-size: 12px;
    }

    .navbar-brand {
        margin-left: 0;
        margin-right: 0;
    }

    .form-control {
        height: 25px;
        padding: 3px 7px;
        line-height: 1.5;
        border-radius: 3px;
    }
    .form-select {
        height: 25px;
        padding: 3px 2rem 3px 7px;
        line-height: 1.5;
        border-radius: 3px;
        background-size: 12px 10px;
    }
    .form-label {
        margin-bottom: 0 !important;
    }
    .form-control-plaintext {
        padding: 0.125rem 0;
        margin-top: 0px;
    }
    .button {
        padding: 0.25rem 0.5rem;
        font-size: .875rem;
        border-radius: 0.2rem;
    }
    .btn {
        padding: 0.25rem 0.5rem;
        font-size: .875rem;
        border-radius: 0.2rem;
    }
    .btn-sm {
        padding: 0.15rem 0.25rem;
        font-size: .875rem;
        border-radius: 0.15rem;
    }
    .btn-lg {
        padding: 0.3rem 0.75rem;
        font-size: 1rem;
        border-radius: 0.3rem;
    }
    .input-group-text {
        line-height: 1;
    }
    .flatpickr-input {
        width: 80px !important;
    }
    .monthpicker {
        width: 60px !important;
    }
    .overlay {
        align-items: center;
    }
    
    .overlay-content {
        max-width: 100%;
    }

    .overlay-xs {
        width: 384px !important;
    }

    .overlay-sm {
        width: 576px !important;
    }
    
    .overlay-md {
        width: 768px !important;
    }
    
    .overlay-lg {
        width: 992px !important;
    }

    .input-age {
        width: 5em !important;
    }
    .input-price {
        width: 8.5em !important;
    }
    .input-price-sm {
        width: 5.5em !important;
    }
    .input-price-md {
        width: 6em !important;
    }
    .input-postal-code {
        width: 6em !important;
    }
    .input-com-distance {
        width: 5em !important;
    }
    .input-com-gen-value {
        width: 5em !important;
    }
    .input-com-process-price {
        width: 7em !important;
    }
    .input-emp-no {
        width: 5.5em !important;
    }
    .input-system-emp-no {
        width: 6.5em !important;
    }
    .input-grade {
        width: 4.5em !important;
    }
    .input-count {
        width: 4.5em !important;
    }
    .input-gen-value {
        width: 5.5em !important;
    }
}

@media print {
    .form-control, .form-select {
        height: 21px;
        padding: 1px 5px;
        line-height: 1;
        border-radius: 3px;
    }
    .input-group-text {
        height: 21px;
        line-height: 1;
        padding: 1px 5px;
    }
    .input-group .btn {
        display: none !important;
    }
    .table>:not(caption)>*>* {
        padding: .125rem .25rem;
    }
    .table th {
        color: #212529 !important;
    }

    .input-age {
        width: 5em !important;
    }
    .input-price {
        width: 8.5em !important;
    }
    .input-price-sm {
        width: 5.5em !important;
    }
    .input-postal-code {
        width: 6em !important;
    }
    .input-com-distance {
        width: 5em !important;
    }
    .input-com-gen-value {
        width: 5em !important;
    }
    .input-com-process-price {
        width: 7em !important;
    }
    .input-emp-no {
        width: 5.5em !important;
    }
    .input-system-emp-no {
        width: 6.5em !important;
    }
    .input-grade {
        width: 4.5em !important;
    }
    .input-count {
        width: 4.5em !important;
    }
    .input-gen-value {
        width: 5.5em !important;
    }
    .flatpickr-input {
        width: 95px !important;
    }
    .bi {
        font-size: 0.9rem !important;
    }
    .no-print {
        display: none !important;
    }
    .field-group {
        break-inside: avoid;
    }
}