@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600&display=swap');

:root {
    --sja-light-green: rgb(0, 159, 77);
    --sja-dark-green: rgb(0, 122, 83);
    --sja-yellow: rgb(225, 224, 0);
    --sja-gray: rgb(151, 153, 155);
}

html {
    font-family: 'Montserrat';
    overflow-x: hidden;
}

.html-desktop {
        overflow-y: hidden;
}

textarea {
    font-family: 'Montserrat';
    max-width: 50%;
    resize: vertical;
}

input[type="submit"], button {
    background-color: #E0DF49 !important;
    border: 1px #E0DF49 solid;
    color: black !important; 
    font-weight: bold !important;
    text-align: center;
    border-radius: 20px;
    padding: 5px;
    transition: .5s ease;
}

input[type="submit"]:hover, button:hover {
    background-color: white !important;
    color: black !important;
    font-weight: bold !important;
    text-align: center;
    border: 1px #E0DF49 solid;
    border-radius: 20px;
    padding: 5px;
}

.disabledButton {
    background-color: #9a9d9f !important;
    border: 1px #9a9d9f solid !important;
    color: black !important;
    font-weight: bold !important;
    text-align: center;
    border-radius: 20px;
    padding: 5px;
    transition: .5s ease;
}

.disabledButton:hover {
    background-color: white !important;
    border: 1px #9a9d9f solid !important;
    color: black !important;
    font-weight: bold !important;
    text-align: center;
    border-radius: 20px;
    padding: 5px;
    transition: .5s ease;
}

.buttonaltstyle {
    background-color: #347856 !important;
    color: white !important; 
    border: 1px #347856 solid !important;
}

.buttonaltstyle:hover {
    background-color: white !important;
    color: #347856 !important; 
    border: 1px #347856 solid;
}

.sjastyle {
    background-color: black;
    color: #E0DF49;
    padding: 2px;
    width: fit-content;
}

body {
    margin: 0px;
    overflow: auto;
}

#maincontainer {
    height: 100vh;
    width: 100vw;
}


#headerbar {
    height: 5vh;
    width: calc(100% - 20px);
    border-bottom: 1px black lightgray;
    box-shadow: 0px 2px 8px #398157;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 10px;
    position: relative;
    z-index: 2;
    overscroll-behavior: none;
}

#mobile-menu {
    z-index: 1;
    display: block;
    position: absolute;
    width: 100vw;
    left: 0px;
    height: 100%;
    background: white;
    top: calc(5vh + 20px);
}

#headerbar-mobile {
    height: 5vh;
    width: calc(100% - 20px);
    border-bottom: 1px black lightgray;
    box-shadow: 0px 2px 8px #398157;
    background-color: white;
    padding: 10px;
    position: relative;
    overscroll-behavior: none;
    z-index: 2;
}

#headerbar-inner {
    display: flex;
    align-items: center;
    height: 5vh;
    overscroll-behavior: none;
}
    
#mobile-menu {
    display: none;
}

#headerbartext {
    color: #398157;
    font-size: 22px;
    font-weight: bold;
    padding-left: 20px;
    transition: .5s ease;
}

#headerbartext:hover {
    visibility: visible;
}

#SJAGLogo {
    height: 100%;
    width: auto;
}

#sidebar {
    position: absolute;
    left: 0;
    width: 25%;
    height: 95vh;
    border-right: 1px lightgray solid;
    margin-right: 0;
}
#sidebar-mobile {
    display: none;
}

#sidebar-mobile {
    position: absolute;
    z-index: 1;
    left: 0;
    width: 25%;
    height: 95vh;
    border-right: 1px lightgray solid;
    margin-right: 0;
}

#contents {
    width: 75%;
    height: 95vh;
    position: absolute;
    right: 0;
    overflow-y: auto;
    animation: fadeInAnimation ease .5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

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

#contents-mobile {
    width: 100%;
    height: 95vh;
    position: absolute;
    right: 0;
    overflow-y: auto;
    animation: fadeInAnimation ease .5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.sidebarbuttontext {
    text-decoration: none;
    color: black;
    text-align: center;
    height: 100%;
    width: 100%;
}

.sidebarbutton {
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: white;
}
.sidebarbutton:hover {
    background-color: #9a9d9f;
    transition: 0.5s;
}

.sidebarbutton:hover h3 {
    color: #398157;
    transition: 0.5s;
}

.sidebarbottombutton {
    bottom: 0;
    font-size: x-small;
    text-align: center;
    width: 100%;
}

.sidebarbottombutton:hover {
    background-color: white;
}

.picture-heading {
    position: relative;
    margin: 15px 15px 15px 15px;
}

.picture-heading img {
    width: 100%;
    max-height: 100%;
    border-radius: 45px;
    opacity: 0.6;
}

.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
}

.text-overlay h2 {
    font-size: x-large;
    color: #fff;
    text-shadow: 1px 1px 0 #9a9d9f, -1px -1px 0 #9a9d9f, 1px -1px 0 #9a9d9f, -1px 1px 0 #9a9d9f;
    text-align: left;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mainscreenbox, .mainscreenbox {
    position: relative;
    max-width: 100%;
    /*border: 1px lightgray solid;*/
    margin: 10px;
    padding: 5px;
    border-radius: 20px;
}

#mainscreenbox:hover, .mainscreenbox {
    box-shadow: 0px 2px 8px #398157;
}

#notification {
    display: inline-block;
    color: red;
    width: 100%;
    text-align: center;
}

.sjagCol {
    background-color: #a3c1e2;
}

.easCol {
    background-color: #cbdfb8;
}

.sjageasCol {
    background-color: #dfbab1;
}

#notificationSymbol {
    filter: invert(42%) sepia(25%) saturate(735%) hue-rotate(92deg) brightness(99%) contrast(98%);
}

#notificationSymbol:hover {
    transition: 0.5s;
    filter: brightness(0) saturate(100%) invert(100%) sepia(80%) saturate(1466%) hue-rotate(357deg) brightness(89%) contrast(98%) !important;
}

.unreadNotifications {
    filter: invert(17%) sepia(66%) saturate(7206%) hue-rotate(358deg) brightness(100%) contrast(122%) !important;
}

#menuicon {
    filter: invert(42%) sepia(25%) saturate(735%) hue-rotate(92deg) brightness(99%) contrast(98%) !important;
    /*margin-left: 20px;*/
}

/*#menuicon:hover {
    filter: brightness(0) saturate(100%) invert(100%) sepia(80%) saturate(1466%) hue-rotate(357deg) brightness(89%) contrast(98%) !important;
}*/

#ServiceSplashBar {
    background-color: forestgreen;
    position: absolute;
    width: 100%;
    margin-bottom: 10px;
    z-index: 2;
    display: flex;
}

#ServiceSplashBar > p {
    margin-left: 15px;
    color: white;
}

#dismiss-ServiceSplashBar {
    margin-left: auto !important;
    margin-right: 20px !important;
}

.tablewrapper {
    overflow-x: auto;
    width: 100%;
}

#NotificationConsentPopup {
    z-index: 4;
    position: absolute;
    background-color: white;
    height: calc(50% - 50px);
    width: calc(50% - 50px);
    left: 25%;
    top: 25%;
    padding: 25px;
    border: 1px solid #347856;
    border-radius: 50px;
}

#actionWaitPopup {
    z-index: 4;
    width: 30vw;
    position: absolute;
    left: calc(50% - 12.5vw);
    background-color: whitesmoke;
    top: calc(40% - calc(17.77% / 2) );
    padding-top: 17.77%;
    border: 1px solid grey;
}

#aWP-text {
    position: absolute;
    height: 90%;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
}

#aWP-text > p {
    width: 100%;
    margin: 0;
    text-align: center;
}

#aWP-chev {
    position: absolute;
    height: 10%;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: url("/static/assets/chev.svg");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
}

.YA-header-button {
    width: 100%;
    height: auto;
}

.listcontainer-common {
    max-width: 100%;
    margin: 15px;
}

.menutable-common th,
.menutable-common td,
.menutable-common  {
    border: 0px;
}

.dropdown-button-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
.dropdown-button-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-button-content a:hover {background-color: #F6F5D9;}

.dropdown-button:hover .dropdown-button-content {display: block;}

#flashPopup {
    z-index: 4;
    position: absolute;
    background-color: whitesmoke;
    width: 40%;
    left: 30%;
    aspect-ratio: 1 /0.5;
    top: 30%;
    border: 1px solid grey;
}

#flashP-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    background-color: #347856;
    height: 5px;
}

#flashP-header {
    height: 20%;
    top: 5%;
    position: absolute;
    left: 0;
    right: 0;
}

#flashP-header > p {
    margin: 5px 0 0 5px;
    font-weight: bold;
    display: inline-block;
}

#flashP-close {
    margin: 5px 5px 0 0 !important;
    right: 0;
    position: absolute;
    transition: ease-in-out 0.3s;
}

#flashP-close:hover {
    color: red;
}

#flashP-text {
    position: absolute;
    height: 70%;
    top: 25%;
    left: 0;
    right: 0;
    bottom: 5%;
}

#flashP-text > p {
    margin: 5px;
    top: 0%;
    bottom: 0%;
    right: 0%;
    left: 0%;
    position: absolute;
    text-align: center;
}

#flashP-chev {
    position: absolute;
    bottom: 0;
    height: 5%;
    left: 0;
    right: 0;
    background-image: url(/static/assets/chev.svg);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
}

.beta-tag {
    color: white;
    background-color: orange;
    padding: 2px 5px 2px 5px;
    border-radius: 20px;
}

.caution-button {
    background-color: firebrick !important;
    border: 1px firebrick solid;
    color: white !important; 
}

.caution-button:hover {
    background-color: white !important;
    color: black !important;
    border: 1px firebrick solid;
}