:root {
    --light-gray: #f5f5f5;
    --deutz-red: rgb(220, 0, 0);
    --deutz-red-light: rgb(220, 0, 0);
    --button-color: rgb(160, 159, 165);
    --btn-primary: #000;
    --blue: rgb(92, 56, 255);
    --background-color: rgb(249, 250, 251);
}

@font-face {
    font-family: 'DeutzPROBold';
    src: url('../fonts/DeutzPROBold.otf') format("truetype");
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DeutzPROHeadline';
    src: url('../fonts/DeutzPROHeadline.otf') format("truetype");
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DeutzPRORegular';
    src: url('../fonts/DeutzPRORegular.otf') format("truetype");
    font-style: normal;
    font-display: swap;
}

html, body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    font-size: 1em;
    background-color: var(--background-color);
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

main {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    /*background-color: rgba(0, 50, 152, 0.02);*/
    padding: 1em;
    border-top-left-radius: .5em;
    overflow: clip;
}

a {
    cursor: pointer;
    color: var(--deutz-red);
    text-decoration: none;
}

a:hover {
    color: black;
}

.content {
    margin-top: 5em;
}

.form-check-input[type="checkbox"] {
    border-color: black;
    margin-top: .2em;
    min-width: 15px;
}

.row {
    margin-bottom: .5em;
}

.header {
    color: var(--main-solid-color);
    margin-bottom: 2em;
}

.btn {
    font-weight: bold;
    font-size: 14px;
    border: none;
    color: white;
    min-height: 36px;
    border-radius: .25em;
    width: max-content;
}

.middle {
    vertical-align: middle;
}

.headline {
    font-weight: 500;
    font-size: 1.2rem;
    color: #8d8d90;
}

.loginStatus {
    float: right;
    font-size: 0.75em;
    margin-right: 1.5em;
    margin-left: auto;
}


.logogdiv {
    /*background-color: white;*/
    float: right;
    max-width: 120px;
}

.logo {
    max-height: 5rem;
    object-fit: cover;
}

.logout {
    font-weight: bold;
    /*color: black;*/
    text-decoration: none;
}

.bg-nav {
    /*background-color: #d5d5d5 !important;*/
}

#navbarHeader {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    padding: .5em 0 .5em 0;
}

.navbar-toggler {
    text-align: left;
    border: 0 none;
    padding: 0.25rem 0.25rem;
}

.navbar-toggler:focus {
    border: 0 none;
    border-color: transparent;
    box-shadow: 0 0 0 0rem;
}

.navbar {
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    /*color: black;*/
}

.nav-link {
    padding-top: unset;
    padding-bottom: unset;
    padding-right: 1em;
}

.navtitle {
    font-size: 0.85em;
    /*color: black;*/
}


.dropdown:hover {
    /*background-color: #f1f1f1;*/
}

.dropdown-item {
    white-space: normal;
}

.dropdown-toggle {
    /*color: black;*/
}


.btn-toggle {
    display: inline-flex;
    align-items: center;
    padding: .25rem .5rem;
    font-weight: 600;
    /*color: rgba(0, 0, 0, .65);*/
    /*background-color: transparent;*/
    border: 0;
}

.btn-toggle:hover,
.btn-toggle:focus {
    /*color: rgba(0, 0, 0, .85);*/
    /*background-color: #d2f4ea;*/
}

.btn-toggle::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
    /*color: rgba(0, 0, 0, .85);*/
}

.btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.btn-toggle-nav a {
    display: inline-flex;
    padding: .1875rem .5rem;
    margin-top: .125rem;
    margin-left: 1.25rem;
    text-decoration: none;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
    /*background-color: #d2f4ea;*/
}

.p1-4 {
    padding: 0.25rem !important;
}

.singleLink {
    margin-left: 0.9rem;
}

.box {
    padding: .5rem;
    border: thin solid lightgray;
    border-radius: 5px;
    box-shadow: 0.2rem 1rem 3rem -1.2rem rgb(128, 128, 128);
}

.login-inner {
    margin: 1em;
}

.small {
    font-size: 0.8rem;
}

input:has(invalid) {
    border-bottom: 0.2rem solid darkred;
}

.form-control.invalid {
    border-bottom: 1px solid darkred;
}

.validation-message {
    color: darkred;
    display: none;
    font-size: .75em;
    position: absolute;
    top: 100%;
    padding-bottom: 2rem;
}

.bi::before {
    padding: .2em;
}

@media (min-width: 992px) {
    .mt-lg-4-5 {
        margin-top: 2rem !important;
    }
}

@media (min-width: 768px) {
    .w-m-25 {
        width: 25% !important;
    }

    .form-container {
        box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
        padding: 1rem;
        margin-bottom: 1rem;
        background-color: rgba(var(--bs-white-rgb));
        border-radius: var(--bs-border-radius);
    }

    .documentCampaignModal {
        max-width: 80vw !important;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (min-width: 1400px) {
    .w-xxl-25 {
        width: 25% !important;
    }

    .w-xxl-50 {
        width: 50% !important;
    }
}

@media (min-width: 1600px) {
    .table-responsive {
        overflow-x: unset !important;
    }
}

@media (max-width: 1500px) {
    #sidebarCollapse, #sidebarRightCollapse {
        display: block !important;
        font-size: 2em;
    }

    #sidebarRightCollapse {
        font-size: 1.5em;
        margin-right: .25em;
    }

    .main-container {
        flex: 0 0 auto;
        width: 100% !important;
        overflow: clip;
    }
}

@media (max-width: 767px) {

    .btn-sm2 {
        font-size: 0.55rem;
    }

    .logo {
        max-height: 3.5em;
    }

}


.tableButton {
    padding: .15em .15em;
    font-size: 1.0em;
    border-radius: .3em;
    line-height: 1
}

.navbar-nav {
    padding-left: 1em;
}

.offcanvas-sm {
    margin-top: 6em;
}

.offcanvas-md {
    margin-top: 6em;
}

.offcanvas-body {
    margin-top: 1em;
}

[type=submit]:disabled, button:disabled {
    opacity: 0.5;
}

.btn.btn-primary {
    background: var(--deutz-red);
    color: white;
    box-shadow: 0 1px 3px #0000003d;
}

.btn-primary i {
    color: white;
}

.btn.btn-secondary {
    background-color: white;
    color: var(--deutz-red);
    box-shadow: 0 1px 3px #0000003d;
}

#sidebarCollapse, #sidebarRightCollapse {
    display: none;
}

.main-container {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--bs-border-radius);
    flex: 1 0 auto;
}

.main-container.blue-shadow {
    box-shadow: 0 .125rem .25rem rgba(0, 50, 152, 0.6);
}

table.dataTable thead > tr > th.sorting::before, table.dataTable thead > tr > th.sorting::after, table.dataTable thead > tr > th.sorting_asc::before, table.dataTable thead > tr > th.sorting_asc::after, table.dataTable thead > tr > th.sorting_desc::before, table.dataTable thead > tr > th.sorting_desc::after, table.dataTable thead > tr > th.sorting_asc_disabled::before, table.dataTable thead > tr > th.sorting_asc_disabled::after, table.dataTable thead > tr > th.sorting_desc_disabled::before, table.dataTable thead > tr > th.sorting_desc_disabled::after, table.dataTable thead > tr > td.sorting::before, table.dataTable thead > tr > td.sorting::after, table.dataTable thead > tr > td.sorting_asc::before, table.dataTable thead > tr > td.sorting_asc::after, table.dataTable thead > tr > td.sorting_desc::before, table.dataTable thead > tr > td.sorting_desc::after, table.dataTable thead > tr > td.sorting_asc_disabled::before, table.dataTable thead > tr > td.sorting_asc_disabled::after, table.dataTable thead > tr > td.sorting_desc_disabled::before, table.dataTable thead > tr > td.sorting_desc_disabled::after {
    right: 5px !important;
}

.form-group-box {
    border-top: unset;
    border-right: unset;
    border-left: unset;
    border-radius: unset;
    padding-top: 0.5em;
}

.vscomp-toggle-button {
    border: 1px solid #ced4da;
    border-top: unset;
    border-right: unset;
    border-left: unset;
    border-radius: unset;
    padding: 7px 30px 7px 1px;
}

.vscomp-wrapper.focused .vscomp-toggle-button, .vscomp-wrapper:focus .vscomp-toggle-button {
    box-shadow: none;
}

.vscomp-wrapper {
    color: unset;
    font-family: unset;
    font-size: unset;
    text-align: unset;
}

.form-group {
    position: relative;
    border-top: unset;
    border-right: unset;
    border-left: unset;
    border-radius: unset;
    margin-bottom: 1em;
    font-size: 1em;
}

#sidebarRight .form-group {
    margin-bottom: .5em;
}

.form-group .bi-x {
    position: absolute;
    right: .2%;
    top: 35%;
    cursor: pointer;
    font-size: 1.8em;
    /*color: rgb(160, 159, 165);*/
}

.form-group input:not([type=radio]):not([type=checkbox]):first-of-type {
    border-top: unset;
    border-right: unset;
    border-left: unset;
    border-radius: unset;
    padding-left: 0.2em;
    padding-right: 2em;
}

.form-group textarea:first-of-type {
    border-top: unset;
    border-right: unset;
    border-left: unset;
    border-radius: unset;
    padding-left: 0.2em;
}

.form-group select {
    border-top: unset;
    border-right: unset;
    border-left: unset;
    border-radius: unset;
    padding-left: 0;
}

.form-group:focus-within input {
    box-shadow: unset;
}

.form-group:focus-within select {
    box-shadow: unset;
}

.form-group:focus-within textarea {
    box-shadow: unset;
}

.form-group:focus-within label:first-of-type {
    /*color: #86b7fe !important;*/
}

.form-group label:first-of-type {
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    padding-left: 0.2em;
}

.form-check-label {
    margin-top: 0.25em;
}

.form-control:active {
    border-color: var(--main-blue);
}

.form-control:focus {
    border-color: var(--main-blue);
}

.side-bar-container {
    max-width: 300px;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before {
    top: unset;
    margin-top: unset;
}

@media (prefers-color-scheme: dark) {
    /* defaults to dark theme */
    body {
        --main-solid-color: rgb(211, 211, 211);
        --nav_background: #2c2c2c;
        --main-blue: rgb(0, 50, 152);
    }

}

@media (prefers-color-scheme: light) {
    body {
        --main-solid-color: #000;
        --nav_background: rgb(211, 211, 211);
        --main-blue: rgb(0, 50, 152);
    }
}

.open-file-icon {
    font-size: 1.6em;
    color: var(--main-blue);
    margin-top: .4em;
}

#dilist a {
    text-decoration: underline;
    color: var(--bs-link-color);
}

.btn.dropdown-toggle {
    padding-left: 0.2em;
    font-size: 1rem;
    border-top: unset;
    border-right: unset;
    border-left: unset;
    border-bottom: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    height: 38px;
}


.btn.dropdown-toggle.btn-light {
    background-color: white;
}


.th {
    font-weight: bold;
}

.upload-area {
    width: 70%;
    text-align: center;
    overflow: auto;
}

.upload-area-box {
    height: 200px;
    border: 2px solid lightgray;
    border-radius: 3px;

}

.upload-area:hover {
    cursor: pointer;
}

.upload-area h1 {
    text-align: center;
    font-weight: normal;
    font-family: sans-serif;
    line-height: 50px;
    color: darkslategray;
}

.upload-area i {
    color: rgba(0, 50, 152, 0.8);
    font-size: 3em;
}

#file {
    display: none;
}

#sidebarRight .form-group .vscomp-wrapper {
    font-size: 14px !important;
}

.vscomp-value {
    padding-left: .1em;
}

.gray-color {
    color: rgb(128, 128, 128);
}

[data-bs-toggle="collapse"].collapsed .if-not-collapsed {
    display: none;
}

[data-bs-toggle="collapse"]:not(.collapsed) .if-collapsed {
    display: none;
}

a.btn-primary:hover, a.btn-primary:focus {
    color: white;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.vscomp-ele {
    max-width: unset !important;
}

.bi.bi-x {
    color: rgb(128, 128, 128);
    font-size: 1.5em;
}

/*.vscomp-options-container {
    max-height: 100% !important;
}

.vscomp-options-list {
    height: unset !important;
}*/

.borderless tr, .borderless td {
    border: none !important;
}

#orderTable td > div:not(.d-flex), th > div {
    text-align: end;
    width: 100px;
}

#orderTable label {
    white-space: nowrap;
}

div.dataTables_wrapper div.dataTables_info {
    padding-top: 0 !important;
}

.vertical-align-middle {
    vertical-align: middle;
}

#footer {
    padding: .3em;
    font-size: 12px;
}

.pop-comp-wrapper {
    z-index: 999 !important;
}

.hidden {

}

.djvuDoc {
    text-decoration: underline;
    color: var(--bs-link-color);
    cursor: pointer;
}

.gradient-custom-3 {
    /* fallback for old browsers */
    background: #84fab0;

    /* Chrome 10-25, Safari 5.1-6 */
    background: -webkit-linear-gradient(to right, rgba(132, 250, 176, 0.5), rgba(143, 211, 244, 0.5));

    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: linear-gradient(to right, rgba(132, 250, 176, 0.5), rgba(143, 211, 244, 0.5))
}

.gradient-custom-4 {
    /* fallback for old browsers */
    background: #84fab0;

    /* Chrome 10-25, Safari 5.1-6 */
    background: -webkit-linear-gradient(to right, rgba(132, 250, 176, 1), rgba(143, 211, 244, 1));

    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: linear-gradient(to right, rgba(132, 250, 176, 1), rgba(143, 211, 244, 1))
}

.registration-company-address {
    background: ghostwhite;
    padding: 15px;
    border-radius: 5px;
}

#loadingModal .spinner-grow {
    color: var(--deutz-red);
}

#logout-icon {
    color: var(--deutz-red);
    cursor: pointer;
    font-size: 1.4em;
}

.nav-item .nav-link {
    padding: 10px;
}

#map {
    height: 500px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}
#loading-indicator {
    display: none;
    text-align: center;
    margin-bottom: 10px;
    animation: fadeInOut 1s infinite alternate;
}
.spinner-border {
    color: #dc3545;
}
#suggestions {
    cursor: pointer;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1, h3 {
    color: #dc3545;
}
@keyframes fadeInOut {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

#formTabsContent {
    border: solid var(--bs-border-width) var(--bs-border-color);
    padding: 1em;
    border-radius: var(--bs-border-radius);
    border-top-left-radius: 0;
    border-top: none;
}

#formTabs.nav-tabs {
    width: 99.59%;
}

#footer a {
    color: black;
}

#footer a:hover {
    color: var(--deutz-red);
    text-decoration: underline;
}
.hidden, .hidden-input {
    display: none;
}

.add-remove-icon {
    font-size: 1.5em;
    margin-left: .5em;
    cursor: pointer;
}

.form-label {
    margin-bottom: 0;
    font-size: 14px;
}

#partConversionResults tbody td {
    white-space: nowrap;
}

.deutz-logo {
    height: 35px;
    margin-left: 1rem;
}
