/*  ----------------------------------
    DASHBOARD CONFIGURATION
    ----------------------------------*/
/*.modal-dialog {*/
/*    transform: translateZ(10px);*/
/*    transform-style: preserve-3d;*/
/*}*/
@import url("https://use.fontawesome.com/releases/v5.15.0/css/all.css");

.dashboard-panel {
    --panel-tilt: 60deg;
    box-shadow: 0 4px 4px rgb(128, 128, 128);
    background-color: white;
    border-radius: 0.2em;
    height: 100%;
    container-type: inline-size;
    /*transform: translateZ(1px);*/
    transition: 500ms;
    /*transform-style: preserve-3d;*/

}
@media print {
    div.dashboard-panel {
        break-inside: avoid;
    }
}
.dashboard-panel.tilted {
    /*transform: rotate3d(1, 0, 0, var(--panel-tilt));*/
}

.dashboard-panel-header {
    background-color: var(--clr-site);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    /*transform-style: preserve-3d;*/
    /*transform: translateZ(5px);*/
    padding: 0.2em;
    height: 1.8em;
    box-shadow: 0 2px 2px lightgray;
}
.dashboard-panel-header.disabled {
    background-color: lightgrey;
}
.dashboard-panel-header.finalized {
    background-color: darkseagreen ;
}
.dashboard-panel-header.c-modules {
    background-color: #e6ffff ;
}
.dashboard-panel-header-title {
    font-weight: bold;
    font-size: 1.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-panel-header-menu {
    min-width: 2em;
    text-align: center;
    background-color: transparent;
}

.dashboard-panel-header-menu:hover {
    color: grey;
    cursor: pointer;
}

.dashboard-panel-body {
    position: relative;
    /*height: 100%;*/
    /*display: flex;*/
    /*width: 100%;*/
    height: calc(100% - 1.8em);
    flex-direction: row;
    flex-wrap: wrap;
    /*align-content: start;*/
    /*transform-style: preserve-3d;*/
    padding: 0.5em;
}

.dashboard-panel-body.disabled {
    pointer-events: none;
    opacity: 0.4;
}

.dashboard-panel-body.finalized {
    /*pointer-events: none;*/
    /*opacity: 0.4;*/
}
.dashboard-panel-body.finalized a.finalized {
    pointer-events: none;
    opacity: 0.4;
}
.dashboard-panel-button {
    position: absolute;
    bottom: 0px;
    margin-top: 30px;
}

.dashboard-data-panel {
    border-radius: 0.2em;
    border: none;
    box-shadow: var(--box-shadow-light);
    background-color: var(--clr-site-light);
    min-width: 5em;
    align-self:flex-start;
}

.dashboard-data-panel-header {
    border: none;

    color: black;
    font-size: 0.8rem;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 0.5em;
}
.dashboard-data-panel-value {
    display: flex;
    align-content: center;
    justify-content: center;
    font-size: 1.3rem;
    padding: 0.2em;
}
/* Dropdown Button */
.dashboard-panel-header-menu-item-btn {
    /*color: white;*/
    /*fill: white;*/
    /*padding: 16px;*/
    /*font-size: 16px;*/
    background-color: transparent;
    border: none;
    cursor: pointer;
}
/* Dropdown button on hover & focus */
.dashboard-panel-header-menu-item-btn:hover, .dashboard-panel-header-menu-item-btn:hover, .dashboard-panel-header-menu-item-btn:focus {
    color: #333333;
}

/* The container <div> - needed to position the dropdown content */
.dashboard-panel-header-menu-item {
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dashboard-panel-header-menu-item-content {
    display: none;
    position: absolute;
    right: 0;
    text-align: start;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    /*transform: translateZ(2px);*/
    z-index: 401;
}

/* Links inside the dropdown */
.dashboard-panel-header-menu-item-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dashboard-panel-header-menu-item-content a:hover {
    background-color: #ddd;
}

/* Show the dropdown menu (use JS to add this class to the .dashboard-panel-header-menu-item-content container when the user clicks on the dropdown button) */
.dashboard-panel-header-menu-item-content-show {
    display: block;
    /*transform: translateZ(2px);*/
    /*z-index: 401;*/
}
.dashboard-panel-header-menu-item-content-hide {
    display: block;
    /*transform: translateZ(2px);*/
    /*z-index: 401;*/
}

/* BELOW CONFIGURATION IS FOR THE ANIMATED COLUMN GRAPH */
.my-column {
    /*
        This value determines the height of the column.
        It is a fraction and will be multiplied with the column-max-height to determine column height
        so a value of 1 = 100%,  0.5 = 50% of max-height
        Should be set in the style attribute of the html element. */
    --column-value: 1;
    /* this is the default value. It will determine the order of the columns drawn - you need to set the value on the html tag */
    --column-number: 1;
    /* this will print the label on the right and left hand column. Default = empty */
    --column-label-text-right: '';
    --column-rotation-grow: 30deg;
    --column-rotation-hover: calc(var(--column-rotation-grow) + 360deg);
    --column-x-width: 30px;
    --column-y-width: 30px;
    --column-max-height: 200px;
    --column-gap: 20px;
    --column-grouping-left: 0vw;
    --color-top: grey;
    --color-left: lightgrey;
    --color-right: dimgrey;
    --color-front: #AAAAAA;
    --column-height: calc(var(--column-value) * var(--column-max-height));
    --column-left: calc(var(--column-grouping-left) + (var(--column-number) - 1) * var(--column-x-width) + (var(--column-number) - 1) * var(--column-gap));

    transform: translateX(var(--column-left)) ;
    transform-origin: center center;

    transition-duration: 500ms;
    width: var(--column-x-width);
    height: var(--column-y-width);
    margin:0;
    padding: 0px;
    border: none;
    position: absolute;
    /*transform-style: preserve-3d;*/
    /*top: 200px;*/
    bottom: 5px;
    right: 260px;
}
.my-column * {
    border: none;
}

.my-column.green {
    --color-top: #00b000;
    --color-left: rgb(145, 228, 134);
    --color-right: #4d9a09;
    --color-front: #63dc38;
}

.my-column.red {
    --color-top: #FF4b3f;
    --color-left: #ff9e99;
    --color-right: #cc0a00;
    --color-front: #ff584f;
}

.my-column.orange {
    --color-top: #FA9C1B;
    --color-left: #F7BE6D;
    --color-right: #F58216;
    --color-front: #FFB347;
}

.my-column-top, .my-column-front, .my-column-right, .my-column-left, .my-column-back {
    position: absolute;
    margin: 0 auto;
    padding: 4px;
    color: white;
    display: flex;
    border: 0;
    justify-content: end;
    align-items: center;
    /*transform-style: preserve-3d;*/
    transition-duration: 500ms;
    transition-delay: calc(var(--column-number) * 30ms);

}

.my-column-top {
    height: var(--column-y-width);
    width: var(--column-x-width);
    background-color: var(--color-top);
    text-align: center;
    align-content: center;
}
.tilted .my-column-top {
    transform:  translateZ(var(--column-height)) ;
}
.my-column-left {
    height: var(--column-y-width);
    width: var(--column-height);
    background-color: var(--color-left);
    transform-origin: bottom left;
    transform: rotateY(-90deg) translateX(0px) scale3d(0, 1, 1);
}
.tilted .my-column-left {
    transform: rotateY(-90deg) translateX(0px)  scale3d(1,1,1);
}
.my-column-front {
    height: var(--column-x-width);
    width: var(--column-height);
    background-color: var(--color-front);
    transform-origin: left top;
    transform: rotateZ(-90deg) translateX(calc(0px - var(--column-y-width))) rotateY(-90deg) scale3d(0, 1, 1);
}
.tilted .my-column-front {
    transform: rotateZ(-90deg) translateX(calc(0px - var(--column-y-width))) rotateY(-90deg) scale3d(1, 1, 1);
}

.my-column-right {
    height: var(--column-y-width);
    width: var(--column-height);
    background-color: var(--color-right);
    transform-origin: center left;
    transform: translateX(var(--column-x-width))  rotateX(-180deg) rotateY(90deg) scale3d(0, 1, 1);
}
.tilted .my-column-right {
    transform: translateX(var(--column-x-width))  rotateX(-180deg) rotateY(90deg) scale3d(1, 1, 1);
}

.my-column-back {
    height: var(--column-x-width);
    width: var(--column-height);
    background-color: var(--color-front);
    transform-origin: bottom left;
    transform: rotateZ(90deg) translateX(calc(0px - var(--column-x-width))) rotateY(-90deg) scale3d(0, 1, 1);
}
.tilted .my-column-back {
    transform: rotateZ(90deg) translateX(calc(0px - var(--column-x-width))) rotateY(-90deg) scale3d(1, 1, 1);
}
.tilted .my-column:hover {
    transition: transform 2000ms linear;
    transform: translateX(calc(var(--column-left) )) rotateZ(var(--column-rotation-hover)) scale3d(1, 1, 1);
}
.tilted .my-column {
    transform:  translateX(var(--column-left)) rotateZ(var(--column-rotation-grow))  ;
}

.dashboard-data-panel-header-menu{
    background: #00b000;
}

.dashboard-panel-header-button.accordion-button {
    padding: 0 !important;
    background: none;
}
.dashboard-panel-header-button.accordion-button:active {
    padding: 0 !important;
    background: none;
}

.dashboard-panel-header-button.accordion-button:focus {
    padding: 0 !important;
    background: none;
}


