﻿:root {
    --hover-darkblue: rgb(91, 149, 193);
    --darkblue: rgb(0,98,173);
    --hover-lightblue: rgb(213, 232, 246);
    --lightblue: rgb(152, 197, 232);
    --mediumblue: rgb(0, 121, 214);
    --darkgrey: rgb(133, 133, 133);
    --lightgrey: rgb(204, 204, 204);
    --error-red: rgb(181, 21, 43);
    --color-text: #333333;
    --content-back: white;
    --content-col: #444;
    --content-col-hover: #666;
}

body {
    font-family: roboto;
    padding-bottom: 50px;
    user-select: none;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input, select, textarea {
    max-width: 280px;
}

.hide {
    display: none;
}

.weka-col {
    color: rgb(0, 98, 173);
}

.weka-back {
    background: rgb(0, 98, 173);
}

/* HEADER */

#header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    padding: 10px 10px;
    box-shadow: 0 10px 10px -10px gray;
}

    #header .left {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    #header .middle {
        text-align: center;
    }

    #header .right {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: space-between;
    }

/* LAYOUT */

#username-display {
    margin-top: 5px;
}

.layout-button-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .layout-button-container .weka-icon-button {
        margin-left: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        height: 40px;
        width: 40px;
        color: white;
        background: var(--darkblue);
        cursor: pointer;
        box-shadow: 0 1px 5px rgba(0,0,0,0.5);
    }

        .layout-button-container .weka-icon-button i {
            font-size: 24px;
            line-height: 24px;
        }

        .layout-button-container .weka-icon-button span {
            font-size: 10px;
            line-height: 10px;
        }

        .layout-button-container .weka-icon-button:hover {
            background: var(--hover-darkblue);
        }

        .layout-button-container .weka-icon-button.disabled,
        .button.disabled, .button:disabled {
            color: var(--lightgrey);
            background: var(--darkgrey);
            cursor: default;
            pointer-events: none;
        }

            .layout-button-container .weka-icon-button:hover.disabled,
            .button.disabled:hover, .button:disabled:hover {
                color: var(--lightgrey);
                background: var(--darkgrey);
                cursor: default;
            }

/* FOOTER */

#footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
}

    #footer > hr {
        margin: 0 0 10px 0;
    }

footer > div {
    margin-bottom: 10px;
}

footer .left {
    float: left;
    padding-left: 20px;
}

    footer .left a {
        padding-right: 10px;
    }

footer .right {
    text-align: right;
    float: right;
    padding-right: 20px;
}

/* BODY */

#render-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px 10px;
    overflow: hidden;
}

/* HOME */

.loading-view {
    padding-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* AUTHORIZATION */

#registerform label {
    font-weight: normal;
    vertical-align: middle;
}

#registerform .td-first {
    width: 160px;
    text-align: right;
}

#registerform .input-search {
    width: 350px;
    height: 30px;
    line-height: 25px;
    vertical-align: middle;
}

/* WEKA_BUTTON */
.button {
    display: inline-block;
    position: relative;
    height: 40px;
    line-height: 40px;
    background: rgb(0, 98, 173);
    color: white !important;
    text-decoration: none !important;
    text-align: center;
    cursor: pointer;
    padding: 0 20px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 16px;
    margin: 0 5px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    border: none;
}

    .button.small {
        height: 24px;
        width: 24px;
        padding: 0;
        line-height: initial;
    }

        .button.small i {
            position: relative;
            top: 3px;
            font-size: 16px;
        }

    .button.red {
        background-color: darkred;
    }

        .button.red.disabled, .button.red.disabled:hover {
            color: var(--lightgrey);
            background: var(--darkgrey);
        }

        .button.red:hover {
            background-color: red;
        }

    .button.blue {
        background-color: var(--darkblue);
    }

        .button.blue:disabled {
            color: var(--lightgrey);
            background: var(--darkgrey);
        }

        .button.blue:hover {
            background-color: var(--mediumblue);
        }

    .button.refresh {
        background: rgb(189, 82, 82);
    }

    .button.selected {
        background: rgb(71, 150, 210);
        box-shadow: inset 0px 0px 10px 0px #00386C, inset 0 5px 20px #00498C;
    }

    .button:hover, selection-box select:hover {
        background: rgb(60, 129, 181);
    }

    .button.refresh:hover, selection-box select:hover {
        background: rgb(212, 113, 113);
    }

    .button[disabled="disabled"] {
        color: #ddd;
        background: #999;
    }

.weka-button {
    display: inline-block;
    position: relative;
    height: 40px;
    line-height: 40px;
    width: 170px;
    background: var(--darkblue);
    color: white;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    padding: 0 20px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 16px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.5);
    border: none;
}

    .weka-button:hover {
        background: rgb(91, 149, 193);
        text-decoration: none;
        color: #fff;
    }

    .weka-button[disabled="disabled"] {
        color: #ddd;
        background: #999;
    }

    .weka-button#resetPwd {
        height: 30px;
        line-height: 30px;
        width: 140px;
        padding: 0 10px;
    }

/* FILTER */

.filter-container {
    width: 100%;
    margin-top: 10px;
    padding: 10px 10px;
    position: relative;
    background: rgba(0, 98, 173, .1);
}

    .filter-container .header {
        padding-left: 5px;
        width: 100%;
        /*display: flex;*/
        /*align-items: center;*/
        /*justify-content: space-between;*/
    }

        .filter-container .header .info-container {
            width: 100%;
            display: flex;
            justify-content: space-between;
            /*margin-bottom: 5px;*/
        }

            .filter-container .header .info-container .title {
                font-size: 25px;
                color: var(--darkblue);
                display: inline-block;
            }

        .filter-container .header .description {
            /*font-style: italic;*/
            /*width: 100%;*/
            margin-bottom: 10px;
        }

.filter-content {
    width: 100%;
    box-sizing: border-box;
}

.filter-item {
    width: 14.0%;
    padding-left: 5px;
    display: inline-block;
    box-sizing: border-box;
    margin-bottom: 5px;
    min-width: 150px;
}

.filter-label {
    display: block;
    /*width: 30%;*/
    margin: 0;
}

.filter-selection {
    display: block;
    width: 100%;
    max-width: 300px;
    max-width: unset;
}

#FilterZeitraum {
    /*margin: 0px 5px;*/
}

    #FilterZeitraum .group {
        display: inline-block;
        margin-right: 5px;
    }

        #FilterZeitraum .group label {
            margin-right: 5px;
        }


/* FILTER BUTTONS */

#filter-buttons {
    padding: 5px 5px 5px 5px;
    /*width: 100%;*/
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.filter-button {
    padding-left: 15px;
    display: flex;
    align-items: center;
    color: var(--hover-darkblue);
}

    .filter-button:hover {
        color: var(--darkblue);
        cursor: pointer;
    }

    .filter-button i {
        padding-right: 5px;
    }


/* FLEX YOUR MUSCLES */

.do-flex {
    display: flex;
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

/* FILTER MODAL */

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .modal-header .modal-title {
        font-size: 25px;
        color: var(--darkblue);
        width: 100%;
    }

.modal-input {
    margin-right: 25px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    width: 100%;
}

    .modal-input .title {
        margin-right: 5px;
    }

.modal-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

    .modal-list-item .title {
        color: var(--darkblue);
        font-size: 110%;
        font-weight: 500;
        margin-bottom: 2px;
    }

    .modal-list-item .author {
        color: var(--darkgrey);
        font-size: 90%;
        font-weight: normal;
        margin-bottom: 5px;
    }

.save-alias-table {
    width: 100%;
    margin-top: 10px;
}

    .save-alias-table td,
    .save-alias-table th {
        padding: 5px 10px;
        vertical-align: top;
    }

        .save-alias-table td:first-of-type {
            max-width: 55px;
        }

        .save-alias-table td:nth-of-type(2) {
            min-width: 100px;
        }

#AssignFilterModal .save-alias-table tbody tr:nth-of-type(2n) {
    background-color: rgba(0, 98, 173, .07);
}

#AssignFilterModal .save-alias-table thead tr {
    background-color: rgba(0, 98, 173, .1);
}

.save-alias-table #AssignFilterModal-filter td:first-of-type {
    max-width: unset;
}

.save-alias-table td:last-of-type {
    /*padding-left: 10px;*/
}

.save-alias-table th:last-of-type {
    /*padding-left: 10px;*/
}

.save-alias-table input[type="text"] {
    max-width: unset;
}

.button-container {
    display: flex;
    /*align-items: center;*/
    justify-content: flex-end;
}

.info-container {
    margin-right: 15px;
    /*display: flex;*/
    /*flex-direction: column;*/
    /*justify-content: flex-end;*/
}

/* ANZEIGE */
.information-container {
    width: 100%;
    margin-top: 20px;
}

.view-control {
    border-bottom: 1px solid #abc;
}

    .view-control label {
        display: inline-block;
        margin: 0 0 -1px;
        padding: 10px 20px;
        font-weight: 600;
        text-align: center;
        color: #808080;
        /*color: #333;*/
        border: 1px solid #abc;
    }

        .view-control label:hover {
            color: #333;
            border-top: 2px solid #abc;
            cursor: pointer;
            font-weight: 600;
        }

#button-show-diagram,
#button-show-table,
#button-show-highscores-table {
    display: none;
}

    #button-show-diagram:checked + label,
    #button-show-table:checked + label,
    #button-show-highscores-table:checked + label {
        color: #0af;
        color: var(--darkblue);
        font-weight: 600;
        border: 1px solid #abc;
        border-top: 2px solid var(--darkblue);
        border-bottom: 1px solid #fff;
        /*border-bottom: 1px solid rgba(0,98,173, 0.1);*/
        /*background: rgba(0,98,173, 0.1);*/
    }


#Filtertext {
    font-weight: normal;
    color: var(--color-text);
    padding: 5px;
}

    #Filtertext > span {
        display: none;
    }

    #Filtertext span.active-filter {
        display: inline-block;
    }

.control-header {
    position: absolute;
    top: -35px;
    right: 0;
    margin: 0;
    margin-bottom: 5px;
}

    .control-header > * {
        display: inline-block;
    }

/* Diagramme */

#DiagramView {
    position: relative;
}

#select-chart-type {
    width: 100px;
}

#select-interval {
    width: 100px;
}

#interval-offset-selector {
    margin-left: 5px;
    position: relative;
    top: -2px;
}

#chosen-interval {
    min-width: 110px;
    text-align: center;
}

.chart-container {
    padding-top: 10px;
    margin-bottom: 10px;
    background: white;
    display: inline-block;
    text-align: center;
}

#chart-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

.chart-title {
    padding: 5px 10px;
    background: rgba(0, 98, 173, .1);
    color: var(--darkblue);
    font-size: 18px;
}

.charts {
    margin-bottom: 10px;
}

.chart {
    padding: 10px;
}

/* Tabelle */

#TableView,
#HighscoresView {
    position: relative;
}

.TableViewSearch {
    position: relative;
}

    .TableViewSearch i {
        position: absolute;
        top: 5px;
        right: 5px;
        font-size: 18px;
    }

/* WEKA_MODAL */

.modal {
    text-align: center;
    background-color: rgba(0, 98, 173, 0.5);
}

@media screen and (min-width: 768px) {
    .modal:before {
        display: inline-block;
        vertical-align: middle;
        content: " ";
        height: 80%;
    }
}

.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.weka-modal {
    background: white;
    padding: 10px 20px;
}

    .weka-modal .weka-button {
        margin: 10px 5px;
        width: 130px;
    }

    .weka-modal .weka-table {
        border-spacing: 20px 10px;
        border-collapse: separate;
    }

/* CONTROLS */
input[type="text"], input[type="search"], input[type="password"], select {
    padding: 3px 8px;
    /*font-family: @font_family;*/
    /*font-size: @font_size;*/
    /*font-weight: 300;*/
    /*color: @content_col;*/
    /*background-color: @content_back;*/
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #aaa;
    border-radius: 3px;
}

input[type=date] {
    position: relative;
    cursor: pointer;
    border: none;
    box-shadow: 0px 0px 0px 0.4px #333;
    padding: 2px 5px;
}

    input[type=date]::-webkit-inner-spin-button,
    input[type=date]::-webkit-outer-spin-button {
        -webkit-appearance: none;
    }

input[type="date"]:after {
    font-family: 'Font Awesome\ 5 Free';
    content: "\f073";
    font-size: 18px;
    /*background-color: rgb(0, 98, 173);*/
    color: var(--darkblue);
    padding: 0 5px;
    box-sizing: border-box;
    position: absolute;
    right: 0;
    pointer-events: none;
}

input[type="date"]:focus:after {
    /*background-color: rgb(23, 154, 254);*/
}

/* make the native arrow invisible and stretch it over the whole field so you can click anywhere in the input field to trigger the native datepicker*/
::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    right: 0;
    /*left: 0;*/
    bottom: 0;
    width: 36px;
    height: auto;
    color: transparent;
    background: transparent;
    cursor: pointer;
}

.checkbox {
    display: none;
}

.checkbox-label {
    color: #333;
    margin: 0;
}


    .checkbox-label:before {
        content: '\f00c';
        font-size: 14px;
        font-family: 'Font Awesome 5 Free';
        font-weight: 600;
        color: rgba(0, 98, 173, 0);
        background-color: white;
        box-shadow: 0 0px 0px 1px rgba(160, 160, 160, 1), inset 0px 0px 1px 0px rgba(160, 190, 190, 0.2);
        margin-right: 5px;
    }

.checkbox:checked + .checkbox-label:before,
#registerform .checkbox:checked ~ .checkbox-label:before {
    background-color: white;
    color: rgb(0, 98, 173);
    /*box-shadow: 0 0px 0px 1px rgba(0, 104, 177, 1);*/
}

.checkbox:focus {
    outline: 2px solid rgb(23, 154, 254);
    outline-offset: -1px;
}

.checkbox-label:hover {
    cursor: pointer;
    color: rgb(0, 104, 177);
}

    .checkbox-label:hover:before {
        color: rgba(0, 98, 173, 0.3);
        box-shadow: 0 0px 0px 1px rgba(0, 104, 177, 1);
    }

.checkbox-label div {
    /* display: inline-block; */
}

/* MODALS */

#AssignFilterModal .userSelection {
    display: flex;
    justify-content: center;
    align-items: center;
}

#AssignFilterModal .filterSelection {
}

#AssignFilterModal .dropdown {
    width: 400px;
}

#AssignFilterModal .button {
    width: 40px;
    padding: 0;
}

#SaveFilterModal .button-container {
    margin-top: 20px;
}

#SaveFilterModal #SaveFilterValididtyWarning {
    margin-left: 10px;
    color: red;
}

#SaveFilterModal #save-filter-description {
    max-width: none;
    width: 100%;
    height: 100px;
    resize: vertical;
}

/* 
    -------------------------------------
    SIRADOS Dashboard
    ------------------------------------- 
*/

#sirados-dashboard {
    padding: 20px;
    width: 100%;
}

#function-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.function-item {

    &.several
    {
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: end;
        flex-wrap: wrap;
    }

    h1 {
        margin-top: 0;
    }

    h3 {
        margin: 0;
    }

    .button a {
        color: white;
        text-decoration: none;
    }
    
    img {
        max-height: 80px;
        object-fit:contain;
        object-position: top;
        width: 100%;
        max-width: 400px;
    }
}

#container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(450px, 100%),1fr));
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: stretch;
    min-height: 250px;
    border-radius: 5px;
    background-color: white;
    box-shadow: 1px 1px 6px rgba(0,0,0,0.2);
    padding: 20px;
}

    .card.chart {
        min-height: 400px;
    }

.head {
    flex: 0 0;
}

.chart .head {
    display: flex;
    flex-direction: row;
    gap: 10px 20px;
    justify-content: space-between;
    align-items: start;
}

.title {
    text-align: center;
    font-size: 125%;
    font-weight: 600;
}

.title .sub {
    font-weight: 300;
    font-size: 85%;
}

.chart .title {
    text-align: left;
}

.summary {
    font-size: 250%;
    font-weight: 600;
}

    .summary.large {
        font-size: 500%;
        font-weight: 400;
    }

.card-content {
    flex: 1 1;
}

    .card-content.center {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card-content.topten {
    }


.topten li {
    background-color: #eee;
    padding: 2px 10px;
    margin: 3px 0;
}

.topten ol {
}

.card-content.kpi {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    align-content: center;
    padding: 0 30px;
}

.kpi .summary {
    text-align: right;
}

#assign-dialog {
    border: none;
    border-radius: 10px;
    box-shadow: 3px 3px 15px rgba(0,0,0,0.4);
    padding: 20px;
    & > div {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 600px;

        h1 {
            margin: 0 0 10px 0;
        }

        input, select {
            max-width: 100%;
        }
    }
}

.layout-button-container {
    justify-content: center;
}

#loading {
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.5);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.loader {
    border: 16px solid rgba(0, 0, 0, 0.2);
    border-top: 16px solid #ff9600;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

label .mini {
    font-weight: 200;
    color: #777;
    font-size: 85%;
}

@media (max-width: 1200px) {
    #sirados-dashboard {
        padding: 20px 5px;

    }

    #header #SiradosLogo {
        display: none;
    }
}

.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: help;
}

    .tooltip-container > i {
        color: rgb(0, 98, 173);
    }

    .tooltip-text {
        display: block;
        visibility: hidden;
        width: 200px;
        background-color: white;
        color: #666;
        text-align: left;
        border-radius: 6px;
        padding: 6px;
        position: absolute;
        z-index: 1;
        left: 150%;
        transition: opacity 0.3s;
        transform: translateY(-50%);
        top: 50%;
        margin-left: 15px;
        font-weight: normal;
        font-size: 85%;
        opacity: 0;
        transition: .3s opacity;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    }

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Tooltip arrow */
.tooltip-text {
    &.left {
        transform: translateY(-50%) translateX(-150%);
        
        &::after {
            content: "";
            position: absolute;
            top: 50%;
            right: 100%;
            margin-right: 0px;
            border-width: 10px;
            border-style: solid;
            opacity: 1;
            transition: .3s opacity;
            left: 100%;
            border-color: transparent transparent transparent #666;
            transform: translateY(-50%);
        }
    }
    
    &::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 100%;
        margin-right: 0px;
        border-width: 10px;
        border-style: solid;
        border-color: transparent #666 transparent transparent;
        transform: translateY(-50%);

        opacity: 1;
        transition: .3s opacity;
    }
}