/* Above */
.Above {
    display: block;
    top: 0px;
    left: 0px;
}

#chart-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart {
    display: flex;
    flex-direction: column;
    background-color: rgba(var(--card-dim), 1);
    border: 1px solid rgba(var(--card-20), 1);
    border-radius: 5px;
    padding: 10px;
    gap: 10px;
}

.chart-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.chart-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(var(--body), 1);
    border: 1px solid rgba(var(--border), 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

    .chart-icon > img {
        height: 16px;
        width: 16px;
    }


canvas {
    display: block;
    min-width: 400px;
    height: 100px;
}

@-webkit-keyframes autofill {
    to {
        background: rgba(var(--card-dim), 1);
        color: rgba(var(--blue), 1);
    }
}

input:-webkit-autofill {
    background-color: rgba(var(--card-dim), 1) !important;
    border: 1px solid rgba(var(--card-20), 1) !important;
    color: rgba(var(--blue), 1) !important;
    -webkit-animation-name: autofill;
    -webkit-animation-fill-mode: both;
}


.search {
    width: 250px !important;
    color: rgba(var(--text), 1) !important;
    font-size: 14px !important;
    border: 1px solid rgba(var(--card-20), 1) !important;
    background-color: rgba(var(--card-dim), 1) !important;
}

input.search:focus {
    border: 1px solid rgba(var(--blue), 1) !important;
}

.search::placeholder {
    color: rgba(var(--blue), 1) !important;
}

.search:focus::placeholder {
    color: rgba(var(--white), 0) !important;
}

.pivot-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    gap: 1rem;
}

.pivot-bar {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    font-size: 14px;
    height: 32px;
    border-radius: 5px;
    padding: 2px;
    box-sizing: border-box;
    background-color: rgba(var(--body), 1);
    border: 1px solid rgba(var(--border), 1);
}

.sortbar-container {
    display: block;
    width: 100%;
    height: 100%;
}

.sortbar {
    display: flex;
    width: 50%;
    height: 100%;
    min-width: 450px;
    background: rgba(var(--body), 1);
    border-radius: 5px;
    margin: 0 auto;
    position: relative;
}

.sortbar-pill {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 3px 0;
    border-radius: 5px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    font-size: 14px;
    color: rgba(var(--text-sortbar), 1) !important;
    transition: color 0.3s ease;
}

    .sortbar-pill.active {
        color: rgba(var(--text-sortbar-active), 1) !important;
    }

.sortbar-pill-follower {
    background-color: rgba(var(--blue), 1);
    position: absolute;
    border-radius: 2.5px;
    left: 0;
    top: 0;
    height: 100%;
    padding: 0;
    z-index: 1;
    transition: left 0.3s ease, width 0.3s ease;
}

input[type=file] {
    display: block;
    position: relative;
    float: left;
    padding: 4px 6px;
    border: 1px solid rgba(var(--card-20), 1);
    background-color: rgba(var(--card-20), 1);
    color: rgba(var(--text), 1);
    border-radius: 5px;
}

input[type=password] {
    width: 100%;
background-color: rgba(var(--card-dim), 1);
    border: 1px solid rgba(var(--card-20), 1);
    border-radius: 5px;
    color: rgba(var(--text), 1);
    padding: 5px;

}

/** =Buttons (default gray) **/
/*button, input[type=submit] */
button, input[type=submit], input[type=button], .dropbtn{
    display: block;
    position: relative;
    height: 32px;
    padding: 0 8.5px;
    border: 1px solid rgba(var(--border), 1);
    background-color: rgba(var(--card-dim), 1);
    color: rgba(var(--text), 1);
    border-radius: 5px;
    font-size: 14px;
    font-family: bahnschrift;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
}

.button-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 6px;
    align-items: center;
}

    .button-row > button:hover {
        background-color: rgba(var(--blue-dim), 1);
        border: 1px solid rgba(var(--blue), 1);
    }

    .button-row > img {
        height: 16px;
        width: auto;
    }

    button:hover, input[type=submit]:hover, input[type=button]:hover, .dropbtn:hover {
        background-color: rgba(var(--blue-dim), 1);
        border: 1px solid rgba(var(--blue), 1);
    }

button:active, input[type=submit]:active, input[type=button]:active, .dropbtn:active {
    background-color: rgba(var(--card-dim), 1);
    border: 1px solid rgba(var(--border), 1);
}

    .button-red {
        border: 1px solid rgba(var(--lightRed), .15);
        background-color: rgba(var(--lightRed), .15);
        color: rgba(var(--lightRed), 1);
    }

.circle-img-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-img-button > img{
    height: 16px;
    width: 16px;
}

.tab-button {
    background-color: rgba(var(--card-dim), 1);
    border: 1px solid rgba(var(--border), 1);
}
.tab-menu {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0 0 1rem 1rem;
    box-sizing: border-box;
    gap: 10px;
    border-bottom: 1px solid rgba(var(--border), 1);
    overflow-y: auto;
}

.phy-tab-menu {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0 0 1rem 1rem;
    box-sizing: border-box;
    gap: 10px;
    border-bottom: 1px solid rgba(var(--border), 1);
    overflow-y: auto;
    margin-top: 15px;
}

.phy-manage-page {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.phy-pannel {
    padding: 15px;
    background: rgba(var(--card), 1);
    border-left: 1px solid rgba(var(--border), 1);
    height: 100%;
}

.sub-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1rem 1rem;
    box-sizing: border-box;
    gap: 1rem;
}

.error-banner {
    display: block;
    width: 100%;
    background-color: rgba(var(--red-dim), 1);
    color: rgba(var(--lightRed), 1);
    padding: 10px;
    /*border-bottom: 1px solid rgba(var(--lightRed), 1);*/
}

.success-banner {
    display: block;
    width: 100%;
    background-color: rgba(var(--lightGreen), .15);
    color: rgba(var(--lightGreen), 1);
    padding: 10px;
}

body .Green:disabled {
    background: #FFFF00;
    color: Black;
}

.red-text {
    color: rgba(var(--color-danger), 1);
}



/** =MultiSelect Buttons **/
.MsControl {
    float: left;
    padding: 5px;
}

.MsButtonRight, .MsButtonRight:link, .MsButtonRight:visited {
    width: 17px;
    height: 18px;
    margin-bottom: 5px;
    border-bottom: none;
    background: url(img/MsSprite.gif) no-repeat left bottom;
}

    .MsButtonRight:hover, .MsButtonRight:active {
        background-position: right bottom;
    }

.MsButtonLeft, .MsButtonLeft:link, .MsButtonLeft:visited {
    width: 17px;
    height: 18px;
    border-bottom: none;
    background: url(img/MsSprite.gif) no-repeat left top;
}

    .MsButtonLeft:hover, .MsButtonLeft:active {
        background-position: right top;
    }

/** =Scroll Buttons **/
.ScrollUp, .ScrollUp:link, .ScrollUp:visited {
    width: 17px;
    height: 18px;
    float: left;
    margin-right: 5px;
    border-bottom: none;
    margin-bottom: 5px;
    background: url(img/ScrollSprite.gif) no-repeat left top;
}

    .ScrollUp:hover, .ScrollUp:active {
        background-position: left bottom;
    }

.ScrollDown, .ScrollDown:link, .ScrollDown:visited {
    width: 17px;
    height: 18px;
    float: left;
    border-bottom: none;
    background: url(img/ScrollSprite.gif) no-repeat right top;
}

    .ScrollDown:hover, .ScrollDown:active {
        background-position: right bottom;
    }

/** =Textarea **/
.TextArea {
    position: relative;
}
textarea > .NotificationPanel {
    background-color: transparent;

}
textarea:focus > .NotificationPanel {
    background-color: transparent;
}
textarea:hover > .NotificationPanel {
    background-color: transparent;
}

textarea {
    resize: none;
    border: 1px solid rgba(var(--card-20), 1);
    background-color: rgba(var(--card-dim), 1);
    border-radius: 5px;
}

    textarea:focus {
        border-radius: 5px;
        border: 1px solid rgba(var(--blue), 1);
    }

.HelpDeskMessage {
    resize: none !important;
    border: 1px solid rgba(var(--card-20), 1);
    background-color: rgba(var(--card-dim), 1);
    border-radius: 5px;
    padding: 5px;
    height: 300px;
    overflow-y: scroll;
    width: auto;
}

    .HelpDeskMessage img {
        width: 90%; 
        height: 90%; 
        display: flex;
    }

/* =Expand Collapse */
.Expand, .Expand:link, .Expand:visited, .Collapse, .Collapse:link, .Collapse:visited {
    position: absolute;
    z-index: 1;
    right: -4px;
    bottom: 6px;
    width: 16px;
    height: 16px;
    border-bottom: none;
    background: #fff url(img/ExpandCollapseSprite.png) no-repeat center center;
}
/* Target all Firefox */ @-moz-document url-prefix() {
    .Expand, .Expand:link, .Expand:visited, .Collapse, .Collapse:link, .Collapse:visited {
        right: 2px;
        bottom: 2px;
    }
}

.Expand, .Expand:link, .Expand:visited {
    background-position: left top;
}

    .Expand:hover, .Expand:active {
        background-position: left bottom;
    }

.Collapse, .Collapse:link, .Collapse:visited {
    background-position: right top;
}

    .Collapse:hover, .Collapse:active {
        background-position: right bottom;
    }

/* If in a table */
table .TextArea textarea {
    width: 100%;
    padding: 0;
}

table .Expand, table .Expand:link, table .Expand:visited, table .Collapse, table .Collapse:link, table .Collapse:visited {
    right: 0;
}

/* =Overlay (Two are needed, one for textareas, one for general use) */
.ScreenDim {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    overflow: visible;
    width: 100%;
    height: 100%;
}

.Overlay, .TextOverlay {
    position: fixed;
    z-index: 10000;
    width: 675px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
}

    .Overlay .TextArea textarea, .TextOverlay .TextArea textarea {
        width: 100%;
        height: 100%;
    }

    .Overlay .TextArea .OverlaidTextArea, .TextOverlay .TextArea .OverlaidTextArea {
        width: 100%;
        height: 550px;
    }

    .Overlay .TextArea .Collapse, .TextOverlay .TextArea .Collapse {
        right: -2px;
        bottom: 7px;
    }
/* Target all Firefox */ @-moz-document url-prefix() {
    .Overlay .TextArea .Collapse, .TextOverlay .TextArea .Collapse {
        right: 2px;
        bottom: 4px;
    }
}

/** =Multiple **/
select[multiple=multiple] {
    width: 100%;
    border: none;
    color: rgba(var(--text), 1);
    background-color: rgba(var(--white), 0.15);
    border-radius: 5px;
    backdrop-filter: blur(18px);
    overflow: hidden;
}

    select[multiple=multiple]:focus {
        border: 1px solid #b0cfe8;
    }

/** =Fieldsets **/
/* Constrain for floating blocks */
.Constrain {
    display: block;
    position: relative;
    width: 200px;
    float: left;
    margin-right: 10px;
    margin-left: 5px;
}

    .Constrain span {
        float: left;
        margin: 2px 5px;
    }

    .Constrain.ButtonSet {
        width: auto;
    }

    .Constrain.ImageButton {
        width: auto;
        padding-top: 18px;
    }
/* Legend for containing multiple sections */

.Legend, .LegendBlock {
    margin: 0 0 30px 0;
    border-radius: 10px;
    background-color: transparent;
}

.Legend {
    clear: both;
}

legend {
    font-size: 18px;
    font-weight: bold;
    color: rgba(var(--text), 1);
}

.LegendWhiteBG {
    clear: both;
    margin-bottom: 20px;
    padding: 5px;
    border: 1px solid #d0d0d0;
    background: #fff;
}

    .LegendWhiteBG legend {
        margin-left: 25px;
        padding: 0 10px;
        color: #000;
        background: #fff;
    }

.LegendCertPeriod {
    clear: both;
    padding: 5px;
    border: 1px solid #d0d0d0;
    background: #fff;
    margin-left: 0px;
}

/* =Disabled */
.Disabled {
    background: transparent;
}

    .Disabled input, .Disabled select, .Disabled textarea {
        color: #444;
    }

    @media print {
        span {
            width: 740px;
        }
    }

@media screen and (max-width: 1300px) {
    .dropdown-container.show {
        display:block;
    }

    
    .dropdownlist {
        display: flex;
        width: fit-content;
        justify-content: flex-end;
    }

    .dropdown-container {
        display: none;
        position: absolute;
        z-index: 1000;
        background-color: rgba(var(--card-dim), 1);
        border: 1px solid rgba(var(--border), 1);
        border-radius: 5px;
        margin-top: 36px;
    }

        .dropdown-container > button, .dropdown-container > input[type=submit], .dropdown-container > input[type=button] {
            width: 100%;
            background-color: none;
            border-color: none;
            border: none;
            margin-right: 10px;
            text-align: left;
        }
            .dropdown-container > button:hover, .dropdown-container > input[type=button]:hover {
                background-color: rgba(var(--card), 1);
                border: none;
            }

}

@media screen and (min-width: 1300px) {
    .dropbtn {
        display: none; 
    }

    .dropdown-container > button:hover {
        background-color: rgba(var(--blue-dim), 1);
        border: 1px solid rgba(var(--blue), 1);
    }
}

.treatment-period-container {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: 3px solid;
    border-color: transparent rgba(4, 155, 229, 0.5) transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

    .loader::after {
        content: '';
        box-sizing: border-box;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        border: 3px solid;
        border-color: transparent #049be5 #049be5;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        animation: rotationBack 0.5s linear infinite;
        transform-origin: center center;
    }

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotationBack {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}