*,
*:before,
*:after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

:root {
    --cnc-module-card-height: 200px;
    --cnc-module-card-margin-height: 2rem;
    --cnc-module-card-margin-width: 2rem;
    --cnc-module-card-background-color: #eaf5ff;
    --cnc-module-card-padding: 1rem;

    --navbar-height: 50px;
    --menu-width: 270px;
    --maincontent-padding: 20px;

    --mainframe-height: calc(100vh - var(--navbar-height) - (var(--maincontent-padding) * 2 ));
    --mainframe-width: calc(100vw - (var(--maincontent-padding) * 2) - var(--menu-width));
}

button:disabled{
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #555;
    cursor: not-allowed;
}
button:disabled:hover {
    background-color: #dfdfdf;
}

body {
    font-size: 12px;
    font-weight: 400;
    font-family: Roboto, Helvetica, Arial, sans-serif;
}

.navbar {
    background: #fff;
    height: var(--navbar-height);
    width: 100%;
    top: 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    z-index: 10000;
    padding: 0.5rem 0.7rem;
}

.navbar .navbar-logo {
    max-height: 30px;
    margin-right: 12px;
    display: none;
}

/* START: Legacy CSS */
#appheader {
    height: 50px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    position: relative;
}

.legacy-navbar {
    padding: 10px 16px 6px 16px;
    height: 50px;
}

.legacy-navbar a {
    padding: 0;
    vertical-align: middle;
}

.legacy-navbar img.navbar-logo {
    max-height: 30px;
    margin-right: 12px;
}

.chgb2b a {
    width: 85px;
}
.werkzeug,
.werkzeug * {
    top: 0;
    height: 50px;
    line-height: 50px;
    margin: 0 2px;
    background-position-y: center;
}
.werkzeug li img {
    vertical-align: middle !important;
}
/* END: Legacy CSS */

a.navbar-brand {
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    display: none;
}

.user-tool-menu {
    display: none;
    right: 1rem;
    height: 36px;
    margin: 0;
    text-align: right;
    position: absolute;
    top: 6px;
}

.user-tool-menu a {
    font-size: 1.25em;
    font-weight: 400;
}

.user-tool-menu a.dropdown-item {
    font-size: 14px;
    font-weight: 400;
    color: #095da8;
}

.user-tool-menu .dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #095da8;
}

.user-tool-menu a.dropdown-item i {
    padding-right: 10px;
}

h2 {
    font-family: "Roboto", sans-serif;
    font-size: 1.5em;
    font-weight: 500;
    color: #095da8;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    margin: 0;
    line-height: 50px;
    position: absolute;
}

.mainLayout {
    background: rgb(247, 245, 245);
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 0px 1fr;
    -ms-grid-rows: 1fr;
    grid-template-columns: 0px 1fr;
    grid-template-rows: 1fr;
    position: fixed;
    top: 50px;
    bottom: 0px;
    left: 0px;
    right: 0;
    transition: all 0.4s;
}

/* .mainLayout.menu-active
{
    grid-template-columns: 270px 1fr;
} */

.mainLayout .userMenu {
    -ms-grid-row: 1;
    grid-row: 1;
    grid-column: 2;
    transition: all 0.4s;
    left: -100%;
    position: fixed;
    z-index: 1000;
    width: var(--menu-width);
    height: 100%;
}

.mainLayout.menu-active .userMenu {
    left: 0;
}

.mainLayout.legacy-menu {
    position: initial;
    -ms-grid-columns: 190px auto;
    grid-template-columns: 190px auto;
}

.mainContent {
    padding: var(--maincontent-padding);
    /* overflow-y: scroll; */
    overflow-y: auto;
    -ms-grid-column: 2;
    grid-column: 2;
}

.mainContent .data {
    border: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.mainLayout.legacy-menu .mainContent {
    overflow: hidden;
}

.mainLayout #navi {
    float: none;
    border: 0;
    position: unset;
    width: 100%;
    padding-top: 10px;
    margin-left: 0px;
    margin-right: 10px;
}

.mainLayout #navi a {
    font-size: 1.1em;
}

input[type="button"],
button {
    background-color: #095da8;
    border: 0;
    color: #fff;
    padding: 0px 15px;
    line-height: 30px;
    cursor: pointer;
    display: inline-block;
    font-size: 1.3em;
    min-width: 30px;
    min-height: inherit;
    height: inherit;
    font-weight: normal;
    font-family: inherit;
    margin-bottom: 0;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 0;
}

.userMenu {
    background-color: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    overflow-y: hidden;
}

.navbar *,
.userMenu * {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.userMenu .menulink.dashboard {
    margin-top: 16px;
    margin-bottom: 8px;
}

.userMenu .menulink {
    display: block;
    padding: 16px;
    font-size: 1.3em;
    font-weight: 400;
    /* Anpassung von Simon - Mobile */
    display: none;
    /* Anpassung von Simon - Mobile ENDE */
}

.userMenu .menulink.mobile-view {
    display: block;
}

.userMenu .menulink:hover {
    background-color: #095ea80c;
}

.userMenu .menulink i {
    margin-right: 8px;
}

.userMenu .menu-category {
    position: relative;
    height: 30px;
}

.userMenu .menu-category.User {
    height: 12px;
}

.userMenu .menu-category .backline {
    border-top: solid 1px #eceaea;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 15px;
}

.userMenu .menu-category span {
    background-color: #fff;
    color: #095da8;
    position: relative;
    line-height: 30px;
    padding: 4px 8px;
    font-size: 0.9em;
    font-weight: 400;
    margin-left: 32px;
}

.userMenu .menumodule.active {
    margin-bottom: 16px;
}

.userMenu .menumodule {
    /* Anpassung von Simon - Mobile */
    display: none;
    /* display: block; */
    /* Anpassung von Simon - Mobile ENDE */
}

.userMenu .menumodule.mobile-view {
    display: block;
}

.userMenu .menumodule span {
    display: block;
    padding: 12px 16px;
    font-size: 1.15em;
    font-weight: 400;
    background: url("images/nav_down.png");
    background-repeat: no-repeat;
    background-position: 18px center;
    padding-left: 40px;
    cursor: pointer;
}

.userMenu .menumodule.active span {
    background: url("images/nav_up.png");
    background-repeat: no-repeat;
    background-position: 18px center;
}

.userMenu .menumodule:not(.active) .tasklinks {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.25s;
}

.userMenu .menumodule.active .tasklinks {
    transition: all 0.3s 0.05s;
}

.userMenu .menumodule .menulink {
    font-size: 1.15em;
    padding: 12px 8px 12px 56px;
    background-image: url("images/arrow_right_light.png");
    background-repeat: no-repeat;
    background-position: right 18px center;
    color: #64829c;
    border-right: solid 3px transparent;
}

.userMenu .menumodule .menulink.active {
    border-right: solid 3px #095da8;
    background-color: #f3f7fb;
    background-image: url("images/arrow_right_active.png");
    color: #095da8;
    font-weight: 500;
}

.userMenu .menumodule .menulink:hover {
    background-image: url("images/arrow_right_active.png");
    background-color: #f3f7fb;
    color: #095da8;
}

.userMenu .menumodule .menulink.type-ModuleLink {
    background-image: url("images/link_light.png");
    background-repeat: no-repeat;
    background-position: right 17px center;
}
.userMenu .menumodule .menulink.type-ModuleLink:hover,
.userMenu .menumodule .menulink.active.type-ModuleLink {
    background-color: #f3f7fb;
    background-image: url("images/link_active.png");
}

/* START: modullink */
.userMenu .menumodule .modullink {
    font-size: 1.15em;
    padding: 12px 40px;
    font-size: 1.15em;
    font-weight: 400;
    color: #212529;
    display: block;
    border-right: solid 3px transparent;
    /*
    background-image: url('images/asterisk.png');
    background-repeat: no-repeat;
    background-position: 18px center;
    */
}

.NewDashboardItem {
    /* font-size: 1.15em;
    padding: 12px 40px;
    font-size: 1.15em;
    font-weight: 400;
    color: #212529;
    display: block;
    border-right: solid 3px transparent;
    background-image: url("images/circle_red.png");
    background-repeat: no-repeat;
    background-position: 18px center; */
    position: relative;
}

.dashboard_indicator {
    display: flex;
    border-radius: 100%;
    min-width: 16px;
    height: 16px;
    width: 30px;
    /* max-width: 30px; */
    /* width: 30px; */
    background-color: red;
    position: absolute;
    top: calc(50% - 8px);
    left: 6px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding: 0px 5px;
    margin: 0;
    line-height: 0;
    cursor: pointer;
    transition: all 0.25s ease, border-radius 0.3s ease;
}
.dashboard_indicator:hover {
    /* height: 22px;
    width: 36px;
    top: calc(50% - 12px);
    left: 3px; */
    /* font-size: 14px; */
    box-shadow: 0px 0px 0px 3px red;

    /* transform:scale(1.2); */

}

.dashboard_new_item_menu {
    display: flex;
    position: absolute;
    /* top: 0; */
    /* left: 100%; */
    /* right: 0; */
    z-index: 999;
    background-color: white;
    border: 2px solid tranparent;
    border-radius: 0px 5px 5px 0px;
    box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.2);
    padding: 5px;
    gap: 5px;
    flex-direction: column;
    align-content: center;
    justify-content: space-evenly;
    align-items: center;
    transition: all 0.1s ease;
    /* height: 120px; */
    height: 100px;
    width: 140px;
}

.dashboard_new_item_menu_hidden{
    display: flex;
    position: absolute;
    /* top: 0; */
    /* left: 100%; */

    /* right: 0; */
    z-index: 999;
    background-color: transparent;
    border-radius: 0px;
    box-shadow: 0px 0px 2px 2px rgba(0,0,0,0.0);
    padding: 0px;
    gap: 0px;
    flex-direction: column;
    align-content: center;
    justify-content: space-evenly;
    align-items: center;
    transition: all 0.1s ease;
    height: 0px;
    width: 0px;
    overflow: hidden;
}
.dashboard_new_item_menu_content {
    display: flex;
    gap: 5px;
    flex-direction: row;
    align-content: space-evenly;
    margin-left: 0px;
    transition: all 0.25s ease;
    justify-content: flex-start;
    width: 100%;
    align-items: center;
    cursor: pointer;
}

.dashboard_new_item_menu_content:hover{
    margin-left: 10px;
    background-color: #eaf5ff;
}


.hidden {
    opacity: 0;
}

.userMenu .menumodule .modullink.active {
    border-right: solid 3px #095da8;
    background-color: #f3f7fb;
    background-image: url("images/arrow_right_active.png");
    background-repeat: no-repeat;
    background-position: right 70px center;
    color: #095da8;
    font-weight: 600;
}

.userMenu .menumodule .modullink:hover {
    background-color: #f3f7fb;
    color: #095da8;
    background-image: url("images/arrow_right_active.png");
    background-repeat: no-repeat;
    background-position: right 70px center;
}

/* END: modullink */

.button {
    padding: 6px 12px;
    background-color: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #095da8;
    border: 0;
    cursor: pointer;
    float: inherit;
    margin: 0 2px;
}

.button.primary {
    background-color: #fff;
    color: #fff;
    background-color: #095da8;
    border-radius: 4px;
}

.button.primary:active {
    background-color: #104777;
}

#AppMenuExpander {
    width: 50px;
    height: 50px;
    fill: #095da8;
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
    padding: 13px;
    transition: all 0.2s;
}

#AppMenuExpander:hover {
    background-color: #f3f7fb;
}

.card {
    background-color: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    padding: 15px;
    border: 0;
    border-radius: 0;
    flex-direction: inherit;
    display: block;
}

.aproval-body {
    margin: 0;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    overflow: hidden;
    height: 100svh;
}

.aproval-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: both;
    top: 0;
    padding: 15px;
}

.aproval-card {
    display: flex;
    flex-direction: column;
    background: #eaf5ff;
    padding: 15px;
    scroll-snap-align: start;
    scroll-behavior: smooth;
    scroll-snap-type: both;
    border-radius: 1rem;
    gap: 5px;
    box-shadow: rgba(99, 99, 99, 0.2) 3px 3px 5px 0px;
}
.aproval-card-content {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #ccc;
    padding: 5px 0px;
}

.aproval-card-content-header {
    font-size: 0.9rem;
    font-weight: bold;
}

.aproval-card-content-text {
    font-size: 0.8rem;
    word-break: break-all;
    word-wrap: normal;
}


.cnc-module-body {
    /* margin: 0; */
    /* height: 100svh; */
    height:calc(100svh - 90px);
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    position: relative;

}

.cnc-module-body:hover::-webkit-scrollbar-thumb {
    background: #dff0ff;
    transition: all 1s ease;
}

.cnc-module-body::-webkit-scrollbar {
    width: 8px;
    background-color: transparent;
    height: 8px;
    transition: all 1s ease;
}
.cnc-module-body::-webkit-scrollbar-thumb {
    background: #dff0ff;
    border-radius: 5px;
}
.cnc-module-body::-webkit-scrollbar-track {
    background-color: transparent;
}

.cnc-module-container {
    position: relative;
    display: flex;
    /* height: 95%; */
    height: 100svh;
    flex-wrap: nowrap;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.cnc-module-container:hover::-webkit-scrollbar-thumb {
    background: #dff0ff;
    transition: all 1s ease;
}

.cnc-module-container::-webkit-scrollbar {
    width: 5px;
    background-color: transparent;
    height: 8px;
    transition: all 1s ease;
}
.cnc-module-container::-webkit-scrollbar-thumb {
    background: #dff0ff;
    border-radius: 5px;
}
.cnc-module-container::-webkit-scrollbar-track {
    background-color: transparent;
}

.cnc-module-card {
    flex: 0 0 calc(100% - var(--cnc-module-card-margin-width) * 2 - var(--cnc-module-card-padding) * 2);
    margin: var(--cnc-module-card-margin-height) var(--cnc-module-card-margin-width);
    scroll-snap-align: center;
    background-color: var(--cnc-module-card-background-color);
    padding: var(--cnc-module-card-padding);
    border-radius: 10px;
    display: flex;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    gap: 5px;
    align-items: stretch;
    /* grid-auto-rows: .2fr 1fr .2fr; */
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.cnc-module-card-part {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.cnc-module-card-center-part {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    border-bottom: 1px solid #ccc;
}

.cnc-module-card-center-part-item {
    display: grid;
    flex-direction: row;
    justify-content: flex-start;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    grid-template-columns: 1fr .25fr .25fr .5fr;
    flex-wrap: wrap;
    justify-items: start;
    gap: 5px 15px;
    align-items: start;
}

.cnc-module-card-center-row {
    display: flex;
    /* flex-direction: row; */
    flex-direction: column;
    justify-content: space-between;
    align-items: baseline;
    justify-content: start;
}

.cnc-module-card-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: baseline;
    justify-content: start;

}

.cnc-module-card-header {
    font-size: 1rem;
    font-weight: bold;
}

.cnc-module-card-text {
    font-size: 0.8rem;
    word-break: break-all;
    word-wrap: break-word;
}

.cnc-module-container-header {
    position: absolute;
    font-weight: bold;
    top: 0;
    left: 0;
    font-size: 1.2rem;
    z-index: 1;
    padding: 5px;
}

.cnc-module-filter-btn {
    display: flex;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    padding: 5px;
    z-index: 1;
    background-color: white;
    border-radius: 50%;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    flex-wrap: nowrap;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
    line-height: 0px;
}

.cnc-module-filter-content {
    position: absolute;
    bottom: 60px;
    right: 30px;
    width: calc(100% - 60px - 15px);
    height: calc(100% - 80px - 15px);
    padding: 15px;
    overflow-y: auto;
    gap: 10px;
    z-index: 2;
    background-color: white;
    border-radius: 10px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    display: none;
    transition: all 0.5s ease;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: space-evenly;
    align-items: flex-start;
}


.selected_search_content{
    background-color: #225eaa !important;
    color: white;
}


.tracking_layout_container{
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    scroll-snap-type: both;
    padding: 10px;
    max-width: 100%;
}

.toggle_all_button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 5px;
    min-width: 100px;
    border-radius: 5px;
    background-color: #225eaa;
    color: white;
    cursor: pointer;
}
.tracking_header_container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
}


.customsearch_output_container {
    max-height: 300px;
    z-index: 21;
    background: white;
    box-shadow: rgba(99, 99, 99, 0.2) 3px 3px 5px 0px;
}


.customsearch_output_container:hover::-webkit-scrollbar-thumb {
    background-color: rgb(152, 205, 255);
    transition: all 5s ease;
    overflow: hidden;
    border-radius: 5px;


}

.customsearch_output_container::-webkit-scrollbar {
    width: 7px;
    background-color: transparent;
    height: 5px;
    transition: all 1s ease;
    overflow: hidden;
    /* border-left: 1px solid black; */
    border-left: 1px solid #ccc;

    /* margin-bottom: 1rem; */

}
.customsearch_output_container::-webkit-scrollbar-thumb {
    background-color: rgb(202, 229, 255);
    transition: all 2s ease;
    /* border-left: 1px solid black; */


    /* overflow: hidden; */
    /* transition: all 1s ease; */


}
.customsearch_output_container::-webkit-scrollbar-track {
    /* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); */
    /* background-color: transparent; */
    /* outline: 1px solid #ccc; */

    background-color: rgb(233, 239, 235);
    overflow: hidden;
    /* margin-bottom: .5rem; */
    transition: all 1s ease;


}

.navbarhoverclass {
    /* background-color: #f3f7fb; */
    left : -240px !important;
    transition: all 0.2s !important;
}

.navbarhoverclass:hover {
    /* background-color: #f3f7fb; */
    left : 0px !important;
}



.input-validator-overlay {
    position: absolute;
    width: 0px;
    height: 0px;
    opacity: 0;
    z-index: 1000;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px dashed green;
    display: none;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* .input-validator-overlay:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.9);
}

.input-validator-overlay:target{
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.9);
} */

/* START: Desktop */

/* #AppMenuExpander {
    display: none;
} */

.mainLayout-Desktop {
    -ms-grid-columns: 270px 1fr;
    -ms-grid-rows: 1fr;
    grid-template-columns: 270px 1fr;
}

.mainLayout-Desktop .userMenu {
    left: 0;
}

a.navbar-brand {
    display: inline-block;
}

.navbar .navbar-logo {
    display: inline-block;
}

.user-tool-menu {
    display: inline-block;
}

.userMenu .menulink {
    display: block;
}

.userMenu .menumodule {
    display: block;
}

.data-ss-container {
    height: calc(100% - 50px) !important;
}

.hideOnDesktop {
    display: none !important;
}

@media only screen and (max-width: 900px) {
    #AppMenuExpander {
        display: block !important;
    }

    :root{
        --mainframe-width: calc(100vw - (var(--maincontent-padding) * 2));
    }

    .mainLayout-Desktop {
        -ms-grid-columns: 0px 1fr;
        -ms-grid-rows: 1fr;
        grid-template-columns: 0px 1fr;
        grid-template-rows: 1fr;
    }

    .mainLayout-Desktop.menu-active .userMenu {
        left: 0;
    }
    .mainLayout-Desktop .userMenu {
        transition: all 0.4s;
        left: -100%;
    }

    .mainLayout.menu-active .userMenu {
        left: 0;
    }

    a.navbar-brand {
        display: none;
    }

    .navbar .navbar-logo {
        display: none;
    }

    .user-tool-menu {
        display: inline-block;
    }
}

/* END: Desktop */
