
:root {
    --primary-color: #40b659;
    --primary-color-lighter: #c7edcf;
    --primary-color-darker: #2b6e3f;
    --secondary-color: #3b8dcc;
    --secondary-color-lighter: #84c1f0;
    --light-color: white;
    --dark-color: #242424;
    --error-color: #c77552;
    --flavor-color-purple: #a57dba;
    --flavor-color-pink: #db93c9;
    --primary-font: 'Figtree', sans-serif;
    --primary-grad: linear-gradient(160deg, #40b659, #237d45);
    --primary-grad-2: linear-gradient(320deg, #40b659, #237d45);
    --primary-grad-3: linear-gradient(190deg, #40b659, #237d45);
}


body {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    font-weight: var(--font-weight);
    color: var(--neutral-foreground-rest);
    background: var(--neutral-fill-layer-rest);
}
/*#region Region Syntax*/
/*#endregion Region Syntax*/
/*#region Loading/Error*/


.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.validation-message {
    color: red;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #2b6e3f;
    stroke-width: 1rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #40b659;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-family: 'Figtree', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #2b6e3f;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}
/*#endregion Loading/Error*/

/*#region Flex*/
.flex-column{
    display: flex;
    flex-direction: column;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

/*#endregion Flex*/

/*#region Colors*/
.color-primary {
    color: var(--primary-color);
}

.color-secondary{
    color: var(--secondary-color);
}

.bg-color-primary {
    background-color: var(--primary-color);
}

.bg-color-primary-grad{
    background-color: var(--primary-grad);
}

.bg-black-transparent{
    background-color: rgba(0,0,0,0.4);
}

.color-light{
    color: var(--light-color);
}

.color-error{
    color: var(--error-color);
}

.border-error{
    border: 3px groove var(--error-color);
}

.border-bottom-primary{
    border-bottom: 2px solid var(--primary-color);
}
.border-bottom-dark {
    border-bottom: 2px solid var(--dark-color);
}
.bg-color-secondary{
    background-color: var(--secondary-color);
}

.bg-color-error{
    background-color: var(--error-color);
}

.bg-light {
    background-color: var(--light-color);
}

.color-dark {
    color: var(--dark-color);
}

.bg-dark {
    background-color: var(--dark-color);
}

.bg-none{
    background: none;
}
/*#endregion Colors*/

/*#region Font*/

.p-title {
    font-family: var(--primary-font);
    font-size: 1.8rem;
}

.h1 {
    font-family: var(--primary-font);
    font-size: 1.7rem;
}

.h2 {
    font-family: var(--primary-font);
    font-size: 1.6rem;
}

.h3 {
    font-family: var(--primary-font);
    font-size: 1.5rem;
}

.h4 {
    font-family: var(--primary-font);
    font-size: 1.3rem;
}

.h5 {
    font-family: var(--primary-font);
    font-size: 1.1rem;
}

.paragraph {
    font-family: var(--primary-font);
    font-size: 1rem;
}

.sm-paragraph {
    font-family: var(--primary-font);
    font-size: .85rem;
}

.tiny-text {
    font-family: var(--primary-font);
    font-size: .7rem;
}


.font-200{
    font-weight: 200;
}
.font-300 {
    font-weight: 300;
}
.font-400 {
    font-weight: 400;
}
.font-500 {
    font-weight: 500;
}
.font-600 {
    font-weight: 600;
}
.font-700 {
    font-weight: 700;
}
.font-800 {
    font-weight: 800;
}

.text-center{
    text-align:center;
    text-justify:auto;
}

.text-left{
    text-align: left;
}

.text-end{
    text-align: end;
}

.underline{
    text-decoration: underline;
}
/*#endregion Font*/

/*#region Flexbox Classes*/

.col {
    display: flex;
    flex-direction: column;
}
.col-grow {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
    .col-1{
    display: flex;
    flex-direction: column;
    width: 8.33333%;
}

.col-2 {
    display: flex;
    flex-direction: column;
    width: 16.65%;
}
.col-3 {
    display: flex;
    flex-direction: column;
    width: 25%;
}
.col-4 {
    display: flex;
    flex-direction: column;
    width: 33.3333%;
}

.col-5 {
    display: flex;
    flex-direction: column;
    width: 41.665%;
}

.col-6 {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.row-6-l {
    display: flex;
    flex-direction: row;
    width: 50%;
}

.col-7 {
    display: flex;
    flex-direction: column;
    width: 58.333%;
}

.col-8 {
    display: flex;
    flex-direction: column;
    width: 66.5%;
}
.col-9 {
    display: flex;
    flex-direction: column;
    width: 75%;
}
.col-10 {
    display: flex;
    flex-direction: column;
    width: 83.3333%;
}
.col-11 {
    display: flex;
    flex-direction: column;
    width: 91.65%;
}
.col-12 {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.row{
    display:flex;
    flex-grow: 1;
    flex-direction:row;
}

.row-600-col {
    display: flex;
    flex-direction: row;
}

.flex-wrap{
    flex-wrap:wrap;
}

.justify-left {
    justify-content: left;
}
.justify-right {
    justify-content: right;
}

.justify-center{
    justify-content: center;
}

.justify-space-between {
    justify-content: space-between;
    align-items: space-between;
}
.justify-space-evenly {
    justify-content: space-evenly;
    align-items: space-evenly;
}

.align-center{
    align-items: center;
}

.flex-centered{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.flex-spacer{
    display: flex;
    flex-grow: 1;
    flex-shrink: 1;
}

.flex-grow-1{
    flex-grow: 1;
}
.flex-1{
    flex: 1;
}

.flex-grow-2{
    flex-grow: 2;
}

.flex-2{
    flex: 2;
}

.flex-grow-3{
    flex-grow: 3;
}

.flex-3{
    flex:3;
}
/*#endregion Flexbox Classes*/

/*#region margin and padding*/

.p-0{
    padding: 0px;
}

.p-1{
    padding: 4px;
}
.pl-1 {
    padding-left: 4px;
}
.pr-1 {
    padding-right: 4px;
}
.px-1 {
    padding-left: 4px;
    padding-right: 4px;
}
.p-2 {
    padding: 8px;
}
.p-3 {
    padding: 12px;
}
.p-4 {
    padding: 16px;
}
.p-5 {
    padding: 20px;
}

.m-1{
    margin: 2px;
}

.m-2{
    margin: 4px;
}

.m-3{
    margin: 7px;
}

.m-4{
    margin:11px;
}

.m-5{
    margin: 15px;
}

.m-6{
    margin:20px;
}

.m-7{
    margin: 25px;
}

.m-8{
    margin: 30px;
}

.width-100{
    width:100%;
}

.width-90 {
    width: 90%;
}

.width-80 {
    width: 80%;
}

.max-width-400p{
    max-width: 400px;
}

.max-width-550p{
    max-width: 550px;
}


.small-shadow{
    box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
}

.medium-shadow {
    box-shadow: 2px 2px 7px rgba(0,0,0,0.3);
}
.small-shadow-light {
    box-shadow: 2px 2px 3px rgba(0,0,0,0.13);
}

.round-corners{
    border-radius: 5px;
}

.round-corners-med {
    border-radius: 10px;
}

.round-corners-lg {
    border-radius: 20px;
}
/*#endregion margin and padding*/

/*#region Buttons*/
.border-none{
    border: none;
}

.text-button{
    border: none;
    background-color: rgba(0,0,0,0);
}

.text-button:hover{
    cursor: pointer;
}

.hover-pointer{
    cursor: default;
}

.hover-pointer:hover{
    cursor: pointer;
}

.open-dialog-button{
    border: none;
    background-color: rgba(0,0,0,0);
    text-decoration: underline;
}

.text-btn-primary {
    border: none;
    background-color: rgba(0,0,0,0);
    color: var(--dark-color);
}

    .text-btn-primary:hover {
        color: var(--primary-color);
        cursor: pointer;
    }
    .text-btn-primary:active {
        color: var(--primary-color);
    }

.open-dialog-button:hover{
    cursor: pointer;
}

.btn{
    background-color: var(--primary-color);
    border: none;
    color: white;
    border-radius: 4px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn-grey {
    background-color: white;
    border: none;
    color: grey;
    border-radius: 4px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn-grey:hover{
    background-color: rgb(220,220,220);
    cursor: pointer;
}

.btn:hover{
    background-color: var(--secondary-color);
    cursor: pointer;
}


.btn-sm {
    border-radius: 4px;
    font-family: var(--primary-font);
    font-size: 1em;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    transition: transform .05s ease;
}


.btn-sm:hover {
    transform: scale(1.1, 1.1);
    transition: transform .05s ease;
}
.btn-md {
    border-radius: 7px;
    font-family: var(--primary-font);
    font-size: 1.3em;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.4);
    transition: transform .07s ease;
}
.btn-md:hover {
    box-shadow: 3px 3px 7px rgba(0,0,0,0.4);
    transform: scale(1.07, 1.07);
    transition: transform .07s ease;
}

.close-button-sm{
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px;
    background-color: rgba(0,0,0,0);
    border:none;
    font-size: 1.7rem;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.close-button-lg {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px;
    background-color: rgba(0,0,0,0);
    border: none;
    font-size: 2.2rem;
}

.close-button-sm:hover {
    cursor: pointer;
}

.close-button-sm:active {
    transform: scale(.9,.9);
}


/*#endregion Buttons*/

/*#region Grid*/
.grid-item {
    font-family: var(--primary-font);
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: 500;
    background-color: white;
    padding: 10px;
}

.activity-link::before {
    content: <Blazicon Svg="MdiIcon.BriefcaseAccount"/>;
    padding-right: 5px;
}

.activity-link {
    font-family: var(--primary-font);
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
}
.activity-link:hover {
    text-decoration: underline;
    color: var(--primary-color-lighter);
}
.activity-link:active{
    text-decoration: underline;
}

.view-table{
    width:100%;
    box-shadow: 1px 2px 7px rgba(0,0,0,0.3);
    background-color: rgba(200,200,200, 0.5);
    border-radius: 15px;
    overflow:hidden;
}

.table-head{
    background-color: var(--primary-color);
}
.table-row{
    padding: 5px;
    
    align-content:center;
}

.table-data {
    background-color: white;
    padding: 5px;
    padding-top: 10px;
    padding-bottom: 9px;
    text-align: center;
}

.table-pager{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content: center;
}

/*#endregion Grid*/

/*#region Dialogs*/

.dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
}

.dialog-window {
    position: relative;
    display:flex;
    flex-direction: column;
    flex-grow:1;
    max-width: 800px;
}

.search-window {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: 800px;
    background-color: white;
    border-radius: 15px;
}

.tab-content {
    display: flex;
    flex-direction:column;
    flex-grow: 1;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    background-color: white;
    overflow: hidden;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.4);
}
.tab-header {
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 15px;
    font-family: var(--primary-font);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.4);
}

.tab-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: auto;
    max-height: 60vh;
    margin-left: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.tab-footer {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    align-items: center;
    padding: 10px;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.4);
}

.dialog-shadow {
    box-shadow: 2px 5px 15px rgba(0,0,0,0.33);
}

.sub-overlay-container {
    max-height: 65vh;
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    overflow: clip;
}
.overlay-backdrop {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 1000;
}

.overlay-container {
    border-radius: 15px;
    overflow: clip;
    background-color: white;
    border-top: 17px solid var(--primary-color);
}

.overlay-container-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.side-card {
    border-radius: 15px;
    border-top: 2px solid var(--primary-color);
    border-left: 10px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background-color: var(--light-color);
}

.z-100{
    z-index: 100;
}

.z-500{
    z-index: 500;
}

.z-1000{
    z-index: 1000;
}

.z-1500{
    z-index: 1500;
}

.z-2000 {
    z-index: 2000;
}

.z-5000{
    z-index: 5000;
}

/*#endregion Dialogs*/

/*#region Input*/
.input-container {
    position: relative;
    display: flex;
    flex-grow: 1;
    flex-shrink: 1;
    flex-direction: column;
    text-align: left;
}

.input-field {
    display:flex;
    flex-direction: row;
    padding: 5px;
    border-radius: 7px;
    border: 1px solid rgba(150,200,150,.7);
    font-family: var(--primary-font);
    font-size: 1.1rem;
    color: var(--dark-color);
}

.value-field {
    padding: 5px;
    border-bottom: 1px solid rgba(150,200,150,.7);
    font-family: var(--primary-font);
    font-size: 1.1rem;
    color: var(--dark-color);
}

.input-field::focus-visible {
    outline-color: var(--primary-color);
}

.drowdown-list{
    position: absolute;
    top: 35px;
    padding: 10px;
    gap: 8px;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.4);
    background-color: white;
    left: 0;
    display: flex; 
    flex-direction: column;
    justify-content: center;

}

.picker-container{
    background-color: var(--light-color);
}
/*#endregion Input*/
/*#region Show/Hide*/
.show-600 {
    display: none;
}

/*#endregion Show/Hide*/

/*#region Media Queries*/

@media (max-width: 1400px){
    .hide-1400{
        display: none;
    }
}

@media (max-width: 800px){
    .hide-800 {
        display: none;
    }
}

@media (max-height: 800px){
    .tab-body {
        max-height: 40vh;
    }
}

@media (max-width: 600px) {
    .tab-header {
        justify-content: center;
        align-items: center;
        font-size: 1.3rem;
    }

    .hide-600{
        display: none;
    }

    .row-600-col {
        flex-direction: column;
    }

    .row-6-l {
        width: 100%;
    }

    .hide-600 {
        display: none;
    }
    .show-600 {
        display:flex;
    }
}

@media(max-width: 500px){
    .hide-500 {
        display: none;
    }

    .picker-container {
        position: fixed;
        width: 100%;
        max-width: 100%;
        top: 30%;
        left: 0;
    }
}

@media(max-width: 400px){
    .hide-400 {
        display: none;
    }
}

/*#endregion Media Queries*/

