﻿/* Variables for stuff */

:root {
    

    --linkColor : rgb(61, 116, 219);
    --defaultRedBorder : 1px solid rgb(253, 145, 143);
    --defaultLightRed : rgba(252, 198, 200, 0.3);
    --defaultBlue : rgb(110, 158, 247);
    --defaulLightBlue : rgba(210, 223, 247, 0.3);
    --defaultYellow: rgb(255, 194, 39);
    --defaultLightYellow: rgba(253, 232, 180, 0.3);
    --defaultRed : rgb(245, 84, 89);
    --strongRed : rgb(191, 42, 29);
    --secondStrongRed : rgb(125, 28, 19);
    --defaultBoxShadow: rgb(37 11 54 / 4%) 0px 2px 0px;
    --lightBoxShadow: rgb(43 34 51 / 4%) 0px 1px 4px;
    --popupShadow: rgb(58 17 95 / 18%) 0px 0px 0px 1px, rgb(43 34 51 / 12%) 0px 4px 24px;
    --normalBlack : rgb(43, 29, 56);;
    --primaryColor: rgb(108, 95, 199);
    --normalGray : rgb(198, 190, 207);
    --secondNormalGray : rgb(231, 225, 236);
    --thirdNormalGray : rgb(219, 214, 225);
    --strongGray : rgb(147, 134, 160);
    --secondStrongGray : rgb(119, 101, 137);
    --secondLightGray : rgb(250, 249, 251);
    --lightGray : #faf9fb;
    --normalWhite : rgb(255, 255, 255);
    --font-family: Rubik,Avenir Next,Helvetica Neue,sans-serif;
    --fontSizeSmall: 0.9rem;
    --fontSizeNormal: 1rem;
    --fontSizeDescriptionPopup: 1.1rem;
    --fontSizeFieldLabel: 1.15rem;
    --fontSizeSelectOptions: 1.5rem;
    --fontSizeHeader: 1.6rem;

    
}

/* Clean html and body */
html{
    font-size: 14px;
    font-family: var(--font-family);
    line-height: normal;
}

body{
    padding: 0; 
    margin: 0;
    height: 100%;
    position: relative;
}

*, :after, :before {
    box-sizing: border-box;
}

/* App and wrapper */
.app{
    display: flex;
    min-height: 100vh;
    max-height: 100vh;
    height: 100%;
}

/* App wrapper */
.app .appWrapper{
    display: flex;
    position: relative;
    width: 100%;
}

/* Left side */
.app .leftSide{
    display:flex;
    flex-direction: column;
    padding: 30px 16px 30px 30px;

    flex-shrink: 0;
    width: 190px;
    background: var(--normalWhite);
    border-right: 1px solid var(--normalGray);
}


.app .lsTitle{
    color: var(--secondStrongGray);
    font-size: var(--fontSizeSmall);
    font-weight: 600;
    text-transform: uppercase;
    margin:0;
    margin-bottom: 20px;
}

.app .lsSection{
    margin-bottom: 20px;
}
.app .lsRadio{
    display: none;
}

.app .lsSubtitle{
    margin:0;
    display: block;
    color: var(--strongGray);
    line-height: 30px;
    position: relative;
    cursor: pointer;
}

.app .lsRadio:checked + .lsSubtitle,
.app .lsSubtitle:hover,
.app .lsSubtitle:focus{
    /* color: var(--normalBlack); */
    color: var(--primaryColor);
}

.app .lsRadio:checked + .lsSubtitle::before{
    background: var(--primaryColor);
    position: absolute;
    content: "";
    display: block;
    top: 4px;
    left: -30px;
    height: 20px;
    width: 7px;
    /* width: 4px; */
    border-radius: 0px 2px 2px 0px;
}

/* Right side */
.app .rightSide{
    flex: 1 1 0%;
    min-width: 0px;
    background-color: var(--lightGray);
    padding: 30px;
    padding-top: 0;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    scroll-behavior: smooth;
}

.app .rightSideInner{
    max-width: 1150px;
}

.app .rsTitleWrapper{
    display: flex;
    align-items: baseline;
    
    background-color: var(--lightGray);
    position: sticky;
    padding: 0;
    padding-top: 30px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    top: 0;
    z-index: 1;
}

.app .rsDescription{
    font-size: var(--fontSizeFieldLabel);
    margin-bottom: 20px;
    line-height: 1.5;
    display: none;
}

.app .rsDescription[data-show-description]{
    display: block;
}

.app .rsTitle{
    flex: 1 1 0%;
    font-size: var(--fontSizeHeader);
    line-height: 22px;
    font-weight: normal;
    color: var(--normalBlack);
    margin: 0;
}

/* Right side boxes */
.app .rsBox{
    background: var(--normalWhite);
    border-radius: 4px;
    border: 1px solid var(--normalGray);
    box-shadow: var(--defaultBoxShadow);
    margin-bottom: 20px;
    position: relative;
}

.app .rsBoxTitle{
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    justify-content: space-between;
    color: var(--secondStrongGray);
    font-size: var(--fontSizeSmall);
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid var(--normalGray);
    border-radius: 4px 4px 0px 0px;
    background: var(--secondLightGray);
    line-height: 1;
    position: relative;
    padding: 16px;
}


.app .rsBoxContent{

}

/* Box row cell */
.app .rsBoxRow{
    padding: 16px 0px 16px 16px;
    -webkit-box-align: center;
    align-items: center;
    display: flex;
    transition: background 0.15s ease 0s;
    border-bottom: 1px solid var(--secondNormalGray); 
}

.app .rsBoxLabel{
    flex: 1;
}

.app .rsBoxInput{
    display: flex;
    flex: 1;
    margin-right: 35px;
}

.app .rsBoxLabel_title{
    color: var(--normalBlack);
    display: flex;
    gap: 4px;
    line-height: 16px;
    font-size: var(--fontSizeFieldLabel);
    margin-right: 40px;
}

.app .required{
    display: inline-block;
    background: var(--defaultRed);
    opacity: 0.6;
    width: 5px;
    height: 5px;
    border-radius: 5px;
    text-indent: -9999em;
    vertical-align: super;
    margin-left: 4px;
}
.app .rsBoxLabel_subtitle{
    color: var(--strongGray);
    margin-top: 8px;
    line-height: 1.4;
    margin-right: 40px; 
}

.app .textInput{
    font-size: var(--fontSizeNormal);
    font-family: var(--font-family);

    color: var(--normalBlack);
    display: block;
    width: 100%;
    background: var(--normalWhite);
    border: 1px solid var(--normalGray);
    border-radius: 4px;
    box-shadow: var(--defaultBoxShadow) inset;
    padding: 10px;
    transition: border 0.1s linear 0s;
    resize: vertical;
    height: 40px;
}

.app .textInput[data-highlight-error]{
    border-color:red;
}

.app .textInput[type="date"]{
    resize: none;
}

.app .textInput:focus{
    border: 2px solid var(--primaryColor);
    box-shadow: var(--defaultBoxShadow);
    outline: 0;
}

.app .textInput::placeholder,
.app .customTextarea::placeholder {
    color: var(--normalGray);
}

.app .inputCheckbox{
    display: none;   
}

.app .switch{
    display: inline-block;
    background: none;
    padding: 0px;
    border: 1px solid var(--normalGray);
    position: relative;
    box-shadow: rgb(0 0 0 / 4%) 0px 1px 1px inset;
    transition: border 0.15s ease 0s;
    cursor: pointer;
    height: 24px;
    width: 48px;
    border-radius: 24px;   
}

.app .switch:focus{
    border: 1px solid var(--primaryColor);
    box-shadow: var(--defaultBoxShadow);
    outline: 0;
}

.app .customInputColor:focus{
    border: 1px solid var(--primaryColor);
    box-shadow: var(--defaultBoxShadow);
    outline: 0;
}

.app .ball{
    display: block;
    position: absolute;
    border-radius: 50%;
    transition: all 0.25s ease 0s;
    top: 4px;
    transform: translateX(4px);
    width: 14px;
    height: 14px;
    background: var(--normalGray);
}

.app .inputCheckbox:checked + .switch .ball{
    transform: translateX(28px);
    background: var(--primaryColor); 
}

.app .customTextarea{
    font-size: var(--fontSizeNormal);
    font-family: var(--font-family);

    color: var(--normalBlack);
    display: block;
    width: 100%;
    background: var(--normalWhite);
    border: 1px solid var(--normalGray);
    border-radius: 4px;
    box-shadow: var(--defaultBoxShadow) inset;
    padding: 10px;
    transition: border 0.1s linear 0s;
    resize: vertical;
    height: 130px;
}

.app .customTextarea[data-highlight-error]{
    border-color:red;
}

.app .customTextarea:focus{
    border: 2px solid var(--primaryColor);
    box-shadow: var(--defaultBoxShadow);
    outline: 0;
}

.app .customSelect{
    color: var(--normalBlack);
    width: 100%;
    background: var(--normalWhite);
    border: 1px solid var(--normalGray);
    border-radius: 4px;
    box-shadow: var(--defaultBoxShadow) inset;
    transition: border 0.1s linear 0s;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 10px;
}

.app .customSelect:focus{
    border: 2px solid var(--primaryColor);
    box-shadow: var(--defaultBoxShadow);
    outline: 0;
}

.app .customSelect option{
    font-size: var(--fontSizeSelectOptions);
}

.app .customSelect .nice-select-dropdown{
    width: 100%;
}

.app .customSelect .current{
    display: inline-block;
    width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* File upload */
.app .inputUpload{
    align-items: center;

}

.app .fileUploadInfo{
    margin-left: 10px;
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Custom radio */

.app .customRadio{
    display: flex;
    width: 1.6em;
    height: 1.6em;
    position: relative;
    border-radius: 50%;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    border: 1px solid var(--normalGray);
    box-shadow: rgb(0 0 0 / 4%) 0px 1px 1px inset;
    background: none;
    appearance: none;
    margin: 0px;
    box-sizing: border-box;
    padding: 0;
}

.app .customRadio:checked::after {
    content: "";
    display: block;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background-color: var(--primaryColor);
    animation: 0.2s ease 0s 1 normal none running animation-1fn2keq;
}

.app .radioText{
    margin-left: 10px;
    font-size: var(--fontSizeFieldLabel);
}

.app .radioGroup{
    display: flex;
    flex-direction: column;
}

.app .radioItem{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 15px;
    align-items: end;
}

.app .radioItem:hover,
.app .radioItem *:hover{
    cursor: pointer;
    filter: brightness(0.8);
}

/* Buttons */
.app .button{
    display: inline-block;
    line-height: 1;
    border-radius: 3px;
    padding: 0px;
    text-transform: none;
    font-weight: 600;
    font-size: var(--fontSizeNormal);
    box-shadow: rgb(0 0 0 / 5%) 0px 2px;
    cursor: pointer;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    padding: 9px 12px;
}

.app .button.primary{
    color: var(--normalWhite);
    background-color: var(--primaryColor);
    border: 1px solid rgb(61, 50, 142);
}

.app .button.primary:hover{
    color: var(--normalWhite);
    background: rgb(78, 63, 180);
    border-color: rgb(53, 43, 123);
}

.app .button.default{
    color: var(--normalBlack);
    background-color: var(--normalWhite);
    border: 1px solid var(--normalGray);
}

.app .button.default:hover{
    color: var(--normalBlack);
    background-color: rgb(241 241 241);
    border: 1px solid var(--normalGray);
}

.app .button.danger{
    color: var(--normalWhite);
    background-color: var(--defaultRed);
    border: 1px solid var(--strongRed);
}

.app .button.danger:hover{
    color: var(--normalWhite);
    background: var(--strongRed);
    border-color: var(--secondStrongRed);
}

.app .button.success{
    color: var(--normalWhite);
    background-color: rgba(0, 128, 0, 0.808);
    border: 1px solid green
}

.app .button.success:hover{
    color: var(--normalWhite);
    background: green;
    border-color: green;
}


/* Common Notifications */
.app .rsNotification{
    font-size: var(--fontSizeFieldLabel);
    padding: 16px;
    margin-bottom: 20px;
    margin-top: 20px;
    border-radius: 0.25em;
    transition: border-color 0.2s ease 0s;
    display: none;
}

.app .rsNotification{
    margin-top: 20px;
}

.app .rsNotification[data-show-notifications]{
    display: block;
}

.app .rsNotificationLine{
    margin-bottom : 20px;
}

.app .rsNotificationLine:last-child{
    margin-bottom : 0;
}

.app .rsNotification[data-warning]{
    background-color: var(--defaultLightYellow);
    color: var(--normalBlack);
    border: 1px dashed var(--defaultYellow);
}

.app .rsNotification[data-info]{
    background-color: var(--defaulLightBlue);
    color: var(--normalBlack);
    border: 1px dashed var(--defaultBlue);
}

.app .rsNotification[data-error]{
    background-color: var(--defaultLightRed);
    color: var(--normalBlack);
    border: 1px dashed var(--defaultRed);
}

/* Link */
.app .link{
    text-decoration: none;
    color: var(--linkColor);
    cursor: pointer;
    transition: color .2s linear;
}

.app .link:hover,
.app .link:focus{
    filter: brightness(0.8);
}

/* Common loading */
.app .loader{
    display: block;
    border: 16px solid var(--lightGray); /* Light grey */
    border-top: 16px solid  var(--primaryColor); /* Blue */
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: spin 1.2s linear infinite;
}

.app .loaderWrapper{
    display: none;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    padding: 20px 60px;
    background-color: var(--normalWhite);
    border-radius: 5px;
    filter: drop-shadow(1px 2px 3px gray);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  
/* App loading */
.app[data-app-loading] .appLoaderWrapper{
    display: block;
}

.app[data-app-loading] .navIFrame,
.app[data-app-loading] .leftSide,
.app[data-app-loading] .rightSide{
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
    filter: blur(4px);
}

/* Section loading */
.app .rightSide[data-section-loading] .loadingSectionWrapper{
    display: block;
    
}

.app .rightSide[data-section-loading] .rightSideInner{
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
    filter: blur(4px);
}

.app .rightSide[data-section-loading]{
    overflow: hidden;
}

/* Simple box */
.app .showAdvanced{
    text-align: center;
    -webkit-box-align: center;
    color:var(--normalBlack);

    font-size: var(--fontSizeFieldLabel);
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 0.25em;
    transition: border-color 0.2s ease 0s;

    border: 1px dashed var(--normalBlack);
    cursor: pointer;
}

/* Show global popup*/
.app .popupsHolder{
    display: none;
}

.app .hiddenBackground{
    visibility: hidden;
    transition: opacity 250ms ease 0s;
    opacity: 0;
}

.app[data-show-popup] .hiddenBackground{
    visibility: visible;
    display: block;
    background: var(--normalBlack);
    opacity: 0.5;
    z-index: 2;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
}

.app[data-show-popup] .appWrapper{
    pointer-events: none;
}

.app[data-show-popup] .popupsHolder{
    display: block;
    position: absolute;
    z-index: 3;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: auto;
    padding: 16px;
}

/* Popup */
.app_popup {
    /* Size */
    height: 100%;
    width: 100%;
    max-height: 500px;
    max-width: 800px;

    /* Position */
    transform: translate(-50%, -50%);
    top: 40%;
    left: 50%;

    /* Others */
    position: absolute;
    background-color: var(--normalWhite);

    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--popupShadow);
    position: relative;
    display: flex;
    flex-direction: column;
    font-size: var(--fontSizeFieldLabel);
}

.app_popup .title{
    font-size: var(--fontSizeHeader);
    font-weight: normal;
    margin: 0;
}

.app_popup .separator{
    border-bottom: 1px solid rgb(219, 214, 225);
    display: flex;
    -webkit-box-pack: end;
    justify-content: flex-end;
    padding: 10px 0;
    margin: 0 -30px;
    flex: 0;
    margin-bottom: 20px;
}

.app_popup .description{
    margin-top: 6px;
    color: var(--secondStrongGray);
    margin: 0;
}

.app_popup .bodyAndFooterWrapper{
    display: flex;
    flex-direction: column;
    flex: 1;
}

.app_popup .body{
    flex: 1;
    color: var(--normalBlack);
}

.app_popup .footer{
    border-top: 1px solid rgb(219, 214, 225);
    display: flex;
    -webkit-box-pack: end;
    justify-content: flex-end;
    padding: 20px 30px;
    margin: 20px -30px -30px;
    flex: 0;
}

.app_popup .button{
    margin-left: 10px;
}

/* Billing section */
.app .footerInfo{
    display: flex;
    flex: 1;
}

.app .footerInfo{
    display: flex;
    flex: 1;
    align-items: flex-end;
}

/* Common stuff for headers and */
.app .customH2{
    flex: 1 1 0%;
    font-size: var(--fontSizeHeader);
    line-height: 22px;
    font-weight: normal;
    color: var(--normalBlack);
    margin-top: 30;
    margin-bottom: 20;
}

.app .customP{
    font-size: var(--fontSizeFieldLabel);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Error stuff */
.app .errorIcon{
    height: 80px;
    fill: var(--defaultRed);
}

.app .errorMessage{
    font-size: 1.15em;
}

.app .errorWrapper{
    display: none;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    padding: 20px 60px;
    background-color: var(--normalWhite);
    border-radius: 5px;
    filter: drop-shadow(1px 2px 3px gray);

    text-align: center;
    max-height: 400px;
    max-width: 500px;
}

.app[data-app-error] .errorWrapper{
    display: block;
}

.app[data-app-error] .leftSide,
.app[data-app-error] .rightSide{
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
    filter: blur(4px);
}

/* Box info notification */
.app .boxNotification{
    font-size: var(--fontSizeFieldLabel);
    border-style: solid;
    border-width: 0px 0px 1px;
    padding: 12px 16px;
    margin: 0px 0px 1px;
    border-radius: 0px;
    box-shadow: none;

    background-color: var(--defaulLightBlue);
    color: var(--normalBlack);
    border-color: var(--defaultBlue);
}

.app .boxNotification svg{
    margin-right: 10px;
}

.app .boxNotification[data-warning]{
    background-color: var(--defaultLightYellow);
    color: var(--normalBlack);
    border-color: var(--defaultYellow);
}

.app .boxNotification[data-warning] svg{
    color: var(--defaultYellow);
}

.app .boxNotification[data-info]{
    background-color: var(--defaulLightBlue);
    color: var(--normalBlack);
    border-color: var(--defaultBlue);
}
.app .boxNotification[data-info] svg{
    color: var(--defaultBlue);
}

.app .boxNotification[data-error]{
    background-color: var(--defaultLightRed);
    color: var(--normalBlack);
    border-color: var(--defaultRed);
}
.app .boxNotification[data-error] svg{
    color: var(--defaultRed);
}

/* Popup library */
.swal2-container .swal2-confirm{
    color: var(--normalWhite);
    background-color: var(--primaryColor);
    border: 1px solid rgb(61, 50, 142);
}

.swal2-container a{
    text-decoration: none;
    color: var(--linkColor);
    cursor: pointer;
    transition: color .2s linear;
}

/* Login */
.app .logoImage{
    border-radius: 5px;
    height: 55px;
    width: auto;
    margin-left: 30px;
}