/* --------------------------------------------------- */

/* ------------ COLOR PALETTE & CI COLOR ------------- */

/* --------------------------------------------------- */
:root {
    --color-primary: #ff9f43;
    --color-secondary: #2e86de;
}

.id-primary-color {
    color: var(--color-primary) !important;
}

.id-secondary-color {
    color: var(--color-secondary) !important;
}

.id-primary-background {
    background-color: var(--color-primary) !important;
}

.id-secondary-background {
    background-color: var(--color-secondary) !important;
}

.id-primary-border {
    border: 1px solid var(--color-primary) !important;
}

.id-secondary-border {
    border: 1px solid var(--color-secondary) !important;
}


.id-grey {
    color: #6c757d !important;
}

.white-background {
    background-color: #fff !important;
}

.grey-background {
    background-color: #eee !important;
}

table {
    font-size: 12px;
}

.btn-custom-secondary, .btn-secondary {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
}

/* --------------------------------------------------- */

/* ---------------------- GENERAL -------------------- */

/* --------------------------------------------------- */

/* ID colors var(--color-secondary) !important blue
/* ID colors var(--color-primary) !important orange
*/

/* enable tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

/* 1/7 of a column */
@media (min-width: 768px) {
    .col-lg-1_7, .col-xl-1_7 {
        max-width: 14.285714285714285714285714285714%;
    }

    .col-lg-1_7 .kpi_name_and_timespan h5, .col-xl-1_7 .kpi_name_and_timespan h5 {
        min-height: 55px;
    }

    .col-lg-1_7 .card-body .card-content,
    .col-xl-1_7 .card-body .card-content {
        min-height: 165px;
    }

    .col-lg-1_7 i, .col-xl-1_7 i {
        display: grid;
    }

    .col-lg-1_7 .ml-4, .col-xl-1_7 .ml-4,
    .col-lg-1_7 .ml-md-4, .col-xl-1_7 .ml-md-4,
    .col-lg-1_7 .ml-xl-4, .col-xl-1_7 .ml-xl-4 {
        margin-left: 0 !important;
    }

    .col-lg-1_5, .col-xl-1_5 {
        max-width: 20%;
    }

    .col-lg-1_5 .kpi_name_and_timespan h5, .col-xl-1_5 .kpi_name_and_timespan h5 {
        min-height: 55px;
    }

    .col-lg-1_5 .card-body .card-content,
    .col-xl-1_5 .card-body .card-content {
        min-height: 165px;
    }

    .col-lg-1_5 i, .col-xl-1_5 i {
        display: grid;
    }

    .col-lg-1_5 .ml-4, .col-xl-1_5 .ml-4,
    .col-lg-1_5 .ml-md-4, .col-xl-1_5 .ml-md-4,
    .col-lg-1_5 .ml-xl-4, .col-xl-1_5 .ml-xl-4 {
        margin-left: 0 !important;
    }

}

/* mouseover on botton hover */
.hover-cursor-pointer:hover, .hover-cursor-pointer:focus {
    cursor: pointer;
}

.spinner-grow.text-primary {
    color: rgba(0, 102, 176, .4) !important;
}

#reload-on-filter-change-stadtteile .spinner-grow.text-primary {
    color: rgba(205, 92, 92, .7) !important;
}

.col-half-offset {
    margin-left: 3.333333333%;
}


#topnav .has-submenu.active .submenu li.active > a {
    color: var(--color-primary) !important;
}


.wrapper {
    padding-top: 70px;
    padding-bottom: 70px;
    position: relative;
}

.full-width {
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
}

.btn-custom-primary, .btn-primary {
    background-color: var(--color-primary) !important;
    border: 1px solid var(--color-primary) !important;
}

.custom-control-input:checked ~ .custom-control-label::before {
    color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    background-color: var(--color-secondary) !important;
}

.page-item.active .page-link {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

/* ------------------- DATEPICKER -------------------- */
.datepicker-dropdown {
    z-index: 1002 !important; /* +1 compared to navigation*/
}


/* --------------------------------------------------- */

/* ------------------- Loading animation ------------- */

/* --------------------------------------------------- */

.loading {
    font-size: 12px;
    font-family: "Avenir", sans-serif;
    font-weight: 600;
    text-align: center;
}

.loading span {
    display: inline-block;
    margin: 0 -0.05em;
}

/* code #1 */
.loading01 span {
    animation: loading01 1.4s infinite alternate;
}

.loading01 span:nth-child(1) {
    animation-delay: 0s;
}

.loading01 span:nth-child(2) {
    animation-delay: 0.1s;
}

.loading01 span:nth-child(3) {
    animation-delay: 0.2s;
}

.loading01 span:nth-child(4) {
    animation-delay: 0.3s;
}

.loading01 span:nth-child(5) {
    animation-delay: 0.4s;
}

.loading01 span:nth-child(6) {
    animation-delay: 0.5s;
}

.loading01 span:nth-child(7) {
    animation-delay: 0.6s;
}

@keyframes loading01 {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}


/* --------------------------------------------------- */

/* ------------------- Datatables -------------------- */

/* --------------------------------------------------- */

.dataTables_length {
    float: right !important;
    margin-left: 10%;
}


/* --------------------------------------------------- */

/* ------------------- HEADER NAV -------------------- */

/* --------------------------------------------------- */

.table-condensed {
    font-size: 12px;
}

#topnav {
    background-color: #fff;
    border-bottom: 1px solid #6c757d;
}

#topnav a {
    color: #6c757d;
}

#topnav .has-submenu.active > a {
    color: #6c757d;
    font-weight: bold;
}

.navbar-custom {
    position: fixed;
    display: contents;
    right: 0;
    padding: 0 12px;
    z-index: unset;
}

.navigation-menu li {
    margin-top: 5px;
}

@media only screen and (min-width: 991px) and (max-width: 1323px) {
    .logo-box img {
        height: 35px;
        /*padding-top: 10px;*/
    }

    .navigation-menu li a {
        font-size: .8rem;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* --------------------------------------------------- */

/* ------------------- Login PHP --------------------- */

/* --------------------------------------------------- */

.help-block.user-pwd-combination {
    display: block;
    margin-top: 20px;
    text-align: center;
    color: darkred;
}


/* --------------------------------------------------- */

/* ------------------- SITE TITLE -------------------- */

/* --------------------------------------------------- */

.page-title-box h4 {
    color: var(--color-primary) !important;
}

/* --------------------------------------------------- */

/* ------------------- commission  -------------------- */

/* --------------------------------------------------- */

.card-finance, .card-sales, .card-customer, .card-partner {
    background-color: transparent !important;
}

.card-finance-body, .card-sales-body, .card-customer-body, .card-partner-body {
    position: relative;
}

.card-finance-body h2, .card-sales-body h2, .card-customer-body h2, .card-partner-body h2 {
    color: #2D3436 !important;
}

.card-finance-body::after, .card-sales-body::after, .card-customer-body::after, .card-partner-body::after {
    content: "";
    display: block;
    position: absolute;
    background-size: cover;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: -1;
}

.card-finance-body::after {
    background-image: url("../images/dashboard/finance.png");
}

.card-sales-body::after {
    background-image: url("../images/dashboard/sales.png");
}

.card-customer-body::after {
    background-image: url("../images/dashboard/customer.png");
}

.card-partner-body::after {
    background-image: url("../images/dashboard/partner.png");
}

/* --------------------------------------------------- */

/* ------------------- footer ------------------------ */

/* --------------------------------------------------- */

.footer a {
    color: var(--color-primary) !important;
}

.footer {
    position: absolute;
    bottom: 0;
    height: 60px;
}

/* --------------------------------------------------- */

/* ------------------- Slider ------------------------ */

/* --------------------------------------------------- */
.slider.slider-horizontal {
    max-width: 60%;
}

.slider.slider-horizontal .slider-track {
    height: 7px;
}

.slider-handle {
    background-image: linear-gradient(to bottom, #fff, #fff);
    border: 1px solid var(--color-primary) !important;
    /* circles within slider */
    width: 17px;
    height: 17px;
}

/* selected part of slider */
.slider-selection {
    background-image: linear-gradient(to bottom, var(--color-primary), var(--color-primary));
}

.slider .tooltip-inner {
    background-color: var(--color-primary) !important;
}

.slider .arrow::before {
    border-top-color: var(--color-primary) !important;
}


/* --------------------------------------------------- */

/* ------------------- dashboard --------------------- */

/* --------------------------------------------------- */

#dashboard #dashboard-area h3 {
    float: left;
}

#dashboard .filter-col {
    padding-left: 10px;
    padding-right: 10px;
}

/* --------------------------------------------------- */

/* ------------------- filter ------------------------ */

/* --------------------------------------------------- */

#filter-area .container-filter {
    float: left;
    width: 100%;
    margin: 15px 0 15px 5px;
}

#filter-button {
    float: right;
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
}


/* --------------------------------------------------- */

/* -------------- ball loader ------------------------ */

/* --------------------------------------------------- */

.ball-container {
    position: relative;
    display: contents;
    width: 50px;
    height: 70px;
    max-height: 440px;
    float: right;
}

.ball {
    width: 10px;
    height: 10px;
    margin: auto 5px;
    border-radius: 50px;
}

.ball:nth-child(1) {
    background: var(--color-primary);
    -webkit-animation: top 1s infinite ease-in-out;
    -moz-animation: top 1s infinite ease-in-out;
    animation: top 1s infinite ease-in-out;
}

.ball:nth-child(2) {
    background: var(--color-secondary);
    -webkit-animation: down 1.1s infinite ease-in-out;
    -moz-animation: down 1.1s infinite ease-in-out;
    animation: down 1.1s infinite ease-in-out;
}

.ball:nth-child(3) {
    background: var(--color-primary);
    -webkit-animation: top 1.05s infinite ease-in-out;
    -moz-animation: top 1.05s infinite ease-in-out;
    animation: top 1.05s infinite ease-in-out;
}

.ball:nth-child(4) {
    background: var(--color-secondary);
    -webkit-animation: down 1.15s infinite ease-in-out;
    -moz-animation: down 1.15s infinite ease-in-out;
    animation: down 1.15s infinite ease-in-out;
}

.ball:nth-child(5) {
    background: var(--color-primary);;
    -webkit-animation: top 1.1s infinite ease-in-out;
    -moz-animation: top 1.1s infinite ease-in-out;
    animation: top 1.1s infinite ease-in-out;
}

.ball:nth-child(6) {
    background: var(--color-secondary);
    -webkit-animation: down 1.05s infinite ease-in-out;
    -moz-animation: down 1.05s infinite ease-in-out;
    animation: down 1.05s infinite ease-in-out;
}

.ball:nth-child(7) {
    background: var(--color-primary);;
    -webkit-animation: top 1s infinite ease-in-out;
    -moz-animation: top 1s infinite ease-in-out;
    animation: top 1s infinite ease-in-out;
}

@-webkit-keyframes top {
    0% {
        -webkit-transform: translateY(-10px);
    }
    50% {
        -webkit-transform: translateY(10px);
    }
    100% {
        -webkit-transform: translateY(-10px);
    }
}

@-webkit-keyframes down {
    0% {
        -webkit-transform: translateY(10px);
    }
    50% {
        -webkit-transform: translateY(-10px);
    }
    100% {
        -webkit-transform: translateY(10px);
    }
}

@-moz-keyframes top {
    0% {
        -moz-transform: translateY(-10px);
    }
    50% {
        -moz-transform: translateY(10px);
    }
    100% {
        -moz-transform: translateY(-10px);
    }
}

@-moz-keyframes down {
    0% {
        -moz-transform: translateY(10px);
    }
    50% {
        -moz-transform: translateY(-10px);
    }
    100% {
        -moz-transform: translateY(10px);
    }
}

@keyframes top {
    0% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(-10px);
    }
}

@keyframes down {
    0% {
        transform: translateY(10px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(10px);
    }
}


/* --------------------------------------------------- */

/* ------------------- loader ------------------------ */

/* --------------------------------------------------- */


.loader {
    position: absolute;
    top: calc(50% - 32px);
    left: calc(50% - 32px);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    perspective: 800px;
}

.loader .inner {
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.loader .inner.one {
    left: 0%;
    top: 0%;
    animation: rotate-one 1s linear infinite;
    border-bottom: 3px solid var(--color-primary);
}

.loader .inner.two {
    right: 0%;
    top: 0%;
    animation: rotate-two 1s linear infinite;
    border-right: 3px solid var(--color-primary);
}

.loader .inner.three {
    right: 0%;
    bottom: 0%;
    animation: rotate-three 1s linear infinite;
    border-top: 3px solid var(--color-primary);
}

.loader .loader-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader .loader-inner img {
    position: relative;
    opacity: .8;
    top: 16px;
    width: 40px;
    height: auto;
}

@keyframes rotate-one {
    0% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@keyframes rotate-two {
    0% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@keyframes rotate-three {
    0% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}


/* --------------------------------------------------- */

/* ---------------------- MODAL EDIT KPI ------------- */

/* --------------------------------------------------- */

.fraction, .top, .bottom {
    padding: 0 5px;
}

.fraction {
    display: inline-block;
    text-align: center;
}

.bottom {
    border-top: 1px solid #000;
    display: block;
}

/* --------------------------------------------------- */

/* ---------------------- FORMULA BUILDER ------------ */

/* --------------------------------------------------- */


#modal_edit_kpi .formula-designer {
    background: #f6f6f6;
    border: 1px solid #000;
    min-height: 8em;
    padding: 2px;
}

#modal_edit_kpi .formula-toolbox {
    border: 1px solid #000;
    min-height: 2.1em;
    padding: 2px;
}

#modal_edit_kpi .toolbox-item, #modal_edit_kpi .ui-state-highlight {
    padding: 5px;
    margin: 2px;
    cursor: pointer;
    min-width: 30px;
    min-height: 30px;
    font-size: 1.5em;
}

#modal_edit_kpi .formula-designer .toolbox-item {
    border: none;
}

#modal_edit_kpi span {
    display: inline-block;
}

#modal_edit_kpi .ui-state-highlight {
    background-color: var(--color-primary) !important;
    opacity: 0.8;
    min-height: 30px;
    display: inline-block;
    vertical-align: bottom;
}

/* ---------------------- MODAL OPERATORS ----------- */
#modal_edit_kpi .modal-operators span,
#modal_edit_kpi .modal-compare-operators span,
#modal_edit_kpi .modal-aggregators span,
#modal_edit_kpi .modal-available-fields span,
#modal_edit_kpi .modal-formatting span {
    border-radius: 15px;
    transition: 0.1s;
    cursor: pointer;
    padding: 4px 0 0 0;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    font-weight: bolder;
}

#modal_edit_kpi .modal-operators span {
    background-color: #333842;
    border-bottom: 3px solid #1F2228;
}

#modal_edit_kpi .modal-compare-operators span {
    background-color: #95a5a6;
    border-bottom: 3px solid #636c6d;
    padding-left: 7px;
    padding-right: 7px;
}

#modal_edit_kpi .modal-aggregators span {
    background-color: #2c3e50;
    border-bottom: 3px solid #131921;
    padding-left: 7px;
    padding-right: 7px;
}

#modal_edit_kpi .modal-formatting span {
    background-color: #7f8c8d;
    border-bottom: 3px solid #4c5354;
    padding-left: 7px;
    padding-right: 7px;
}

#modal_edit_kpi .modal-available-fields span {
    padding-left: 7px;
    padding-right: 7px;
    background-color: #7f8c8d;
    border-bottom: 3px solid #434a4a;
}

#modal_edit_kpi .modal-available-fields span.float_type {
    background-color: #2980b9;
    border-bottom: 3px solid #215072;
}

#modal_edit_kpi .modal-available-fields span.integer_type {
    background-color: #16a085;
    border-bottom: 3px solid #0f6957;
}

#modal_edit_kpi .modal-available-fields span.boolean_type {
    background-color: #e67e22;
    border-bottom: 3px solid #a55b18;
}

#modal_edit_kpi .modal-available-fields span.different_type {
    background-color: #7f8c8d;
    border-bottom: 3px solid #434a4a;
}


/* --------------------------------------------------- */

/* ---------------------- SETTINGS ------------------- */

/* --------------------------------------------------- */
a.user-avatar {
    display: block;
    width: 120px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
}

a.user-avatar img, a.nav-user img {
    display: inline;
    margin: 0 auto;
    height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: cover;
}

a.user-avatar:hover,
a.user-avatar:focus {
    border-color: #9e9e9e;
}

a.user-avatar:hover span,
a.user-avatar:focus span {
    opacity: 1;
}

.user-avatar span {
    position: absolute;
    left: 0;
    bottom: 0;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    color: #fff;
    background: rgba(24, 24, 24, 0.75);
    padding: 5px 0;
    opacity: 0;
    transition: all .1s ease-in-out;
}

.dropzone i {
    display: block;
    font-size: 48px;
    margin-bottom: 10px;
    color: #575757;
    transition: all .1s ease-in-out;
}

.dropzone span {
    font-size: 14px;
    color: #575757;
}

.dropzone {
    border: 2px dashed #575757;
    border-radius: 10px;
}

.dropzone a {
    display: block;
    width: 250px;
    margin: 10px auto 0 auto;
}

.dz-success-mark,
.dz-error-mark,
.dz-remove {
    display: none;
}

#upload-preview-avatar {
    border: none;
    text-align: center;
}

.dz-message {
    text-align: center;
    padding: 20px;
}

.dropzone span.uk-icon {
    display: block;
    margin: 0 auto 15px auto;
    transition: all .1s ease-in-out;
}

.dropzone span.uk-icon svg {
    width: 40px;
    color: #575757;
}

.dz-drag-hover {
    border: 2px dashed #3997D3 !important;
    opacity: 1 !important;
}

.dz-drag-hover .dz-message {
    opacity: 1 !important;
}

.dz-drag-hover span.uk-icon {
    color: #3997D3;
    transform: scale(1.1);
}

.dz-drag-hover span.uk-icon svg {
    color: #3997D3;
}

.dropzone.dz-clickable:hover .dz-message span.uk-icon {
    color: #3997D3;
    transform: scale(1.1);
}

.dropzone.dz-clickable:hover .dz-message span.uk-icon svg {
    color: #3997D3;
}

.dropzone.dz-clickable:hover {
    border-color: #3997D3;
}

a.nav-avatar {
    display: inline-block;
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-left: 10px;
    border-radius: 50%;
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.nav-avatar .icon {
    margin-top: 14px;
    margin-left: 15px;
    color: #575757;
}

#upload-preview-avatar img {
    max-width: 150px;
    margin-top: 20px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* accordions in settings */
.settings .card-header {
    background: var(--color-secondary);
}

.settings .card-header button {
    color: #FFFFFF;
}

/* end accordions in settings */

p.small {
    margin-top: -15px !important;
    color: #9e9e9e;
}

.dz-remove span.uk-icon {
    display: inline-block;
}

.dz-remove span.uk-icon svg {
    width: 20px;
    margin-right: 5px;
    color: #eb4d4b;
}

a.dz-remove {
    color: #eb4d4b;
}

.msg-success {
    display: block;
    pointer-events: none;
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    text-align: center;
    color: #fff;
    background: #32d296;
    font-weight: 600;
    padding: 7px 0;
    font-size: 12px;
}

.dz-remove span.uk-icon {
    display: inline-block;
}

.dropzone .dz-preview.dz-complete .dz-progress {
    opacity: 0 !important;
}

.dropzone .dz-preview .dz-progress .dz-upload {
    background: #007aff !important;
}

.accordion {
    list-style: none;
    padding: 0;
}

.accordion .inner {
    padding-left: 0;
    height: fit-content;
    overflow: hidden;
    display: none;
}

.accordion .inner.show {
    padding-left: 0;
    padding-right: 0;
    margin-top: 5px;
}

.accordion li {
    margin: 0.5em 0;
    list-style-type: none;
}

.accordion li a.toggle {
    width: 100%;
    display: block;
    background: var(--color-secondary);
    color: #fefefe;
    padding: 0.75em;
    border-radius: 0.15em;
    transition: background 0.3s ease;
}

.accordion li a.toggle:hover {
    background: var(--color-secondary);
    opacity: .9;
}