:root {
    --structureColor7: hsl(240deg 3% 93%); /* Vaalea harmaa - taustaväri esim. projekteille. */
    --structureColor1: hsl(0deg 0% 100%); /* Valkoinen - taustaväri esim. projekteille. */
}

@font-face {
    font-family: 'AxiformaBold';
    src: url("../fonts/axiforma_bold-webfont.woff2") format('woff2'), url("../fonts/axiforma_bold-webfont.woff") format('woff');
    font-weight: normal;
    font-style: normal;
}

/*@font-face {
    font-family: AxiformaRegular;
    src: url("../fonts/AxiformaRegular.otf") format("opentype");
}*/

@font-face {
    font-family: 'AxiformaRegular';
    src: url("../fonts/axiforma_regular-webfont.woff2") format('woff2'), url("../fonts/axiforma_regular-webfont.woff") format('woff');
    font-weight: normal;
    font-style: normal;
}


.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
    padding-left: 0 !important;
}

.breadcrumbs {
    display: flex;
    padding: 0.5rem;
    justify-content: space-between;
    flex-direction: row;
}

    .breadcrumbs a {
        display: flex;
        flex-direction: row;
        color: var(--structureColor3);
        font-size: 0.875rem;
    }

.headerContainer {
    display: flex;
    max-width: 1398px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--structureColor4);
    border-radius: 8px;
    overflow: hidden;
    margin: 1.52rem auto;
}

.tags-page-container{
    display:flex;
    flex-direction:row;
    justify-content: center;
}

.tags-page-card {
    width:45vw;
    padding:10px;
}

.tags-page-card-header {
    font-weight:bold;
    color: var(--structureColor2);
    margin: 5px;
}

.tags-page-card-header p{
    font-size : 0.8rem;
    color:var(--structureColor3);
}



.projectHeaderImg img {
    object-fit: cover;
    height: 100%;
    width: 150px;
}

@media screen and (max-width: 600px) {
    .headerContainer {
        flex-direction: column;
    }

    .projectHeaderImg img {
        width: 100%;
        height: 33vh;
    }
}

@media screen and (max-width: 1425px) {
    .headerContainer {
        margin: 1.52rem .5rem;
    }
}

.project-header {
    width: 100%;
    display: flex;
    padding-top: 0;
}

    .project-header .card-body.project-image {
        background: var(--structureColor1) !important;
        width: 100%;
        display: flex;
        flex-direction: row;
        height: auto;
        margin: 0 auto;
        border-radius: 0;
        animation: fadeInFromNone 0.75s ease-out;
        padding: 1rem;
        margin-bottom: 0;
        border: 0;
        background: var(--structureColor1);
        /* box-shadow: 1px 2px 2px rgb(0 0 0 / 1%), 1px 2px 5px rgb(0 0 0 / 4%); */
    }

.opened-project {
    background-color: var(--structureColor7);
}

.sidebar .navbar-brand img {
    position: absolute;
    top: -0.8125rem;
    left: 0;
    width: auto;
    max-width: 100%;
    padding: 0.25rem 1rem;
    background: var(--sagaLogoBgColor);
    /* box-shadow: 0px 4.88056px 9.76111px rgb(0 0 0 / 10%); */
    height: 60px;
}



.project-page {
    display: flex;
    flex-direction: column;
    background-color: var(--structureColor1);
    position: relative;
    border: 1px solid var(--structureColor4);
    border-radius: 8px;
    transition: all .3s;
    margin: 0;
    padding: 0.5rem 0.5rem 2rem;
    text-align: center;
}

.project-header .level0-footer {
    margin: 0 1rem;
    padding: 1rem 0;
    border-top: none;
    align-items: flex-start;
    opacity: 1;
}



.menu h2 {
    font-weight: var(--defaultBoldFontWeight);
    font-size: 18px;
    line-height: 22px;
    padding: 1rem 0 1.75rem;
    line-height: 1.5rem;
    padding: 1rem 0;
    margin-right: 0.5rem;
}

/* project and phase navivgation */
.project-feed-header-tabs button.active::after {
    content: none;
}

.card-body.level1.active {
    background: var(--sagaColor4);
    box-shadow: none;
    border: 1px solid black;
}

.project-feed-header-tabs {
    width: 100%;
    display: flex;
    align-items: flex-start;
    border-bottom: 0;
    margin-bottom: 1.5rem;
}

    .project-feed-header-tabs button {
        color: var(--structureColor3);
        line-height: 1.5rem;
        padding: 0.5rem 1rem;
        margin-right: 0.5rem;
        /* border-radius: 0; */
        border-radius: 8px;
        border: 1px solid var(--structureColor4);
        background-color: var(--structureColor4);
    }

        .project-feed-header-tabs button span {
            display: flex;
            margin-left: 0;
            align-items: center;
            line-height: 1em;
        }

        .project-feed-header-tabs button.filters {
            padding: 0.5rem;
            margin-left: auto;
            margin-right: 0;
        }

        .project-feed-header-tabs button span svg {
            display: inline-block;
            height: 1rem;
            width: auto;
        }

.project-task-filters label.status {
    margin: 0.25rem 1.5rem 0.25rem 0;
    padding: 0rem 0rem 0rem 1.2rem;
    color: inherit;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    font-size: .9rem;
    font-weight: var(--defaultFontWeight);
    align-items: center;
    position: relative;
}

@media screen and (max-width: 768px) {
    .project-feed-header-tabs button {
    }
}

.project-task-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    margin-top: 0rem;
}

.sortbyFilters {
    display: none;
}

.project-feed-header-actions {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    padding: 1rem 0;
}

.active .project-short-description, .active .sub-project-name a {
    color: #fff;
}

.card-body.level1.active .functional-icon span svg {
    fill: #ffffff;
}

/* project cards */


.level0-footer {
    flex-direction: row;
    /* width: 100%; */
    display: flex;
    justify-content: space-between;
    margin: 0 1rem;
    padding: 1rem 0;
    border-top: 1px solid #888888;
    z-index: 3;
    /*display: none;*/
}

.card-body.level1 {
    -webkit-animation: fadeInFromNone 0.75s ease-out;
    -moz-animation: fadeInFromNone 0.75s ease-out;
    -o-animation: fadeInFromNone 0.75s ease-out;
    animation: fadeInFromNone 0.75s ease-out;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--structureColor4);
    background: var(--structureColor1);
    box-shadow: 1px 2px 2px rgb(0 0 0 / 1%), 1px 2px 5px rgb(0 0 0 / 4%);
}

.progress-bar {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    color: var(--sagaColor4);
    text-align: center;
    white-space: nowrap;
    transition: width .6s ease;
}

/*newsletter colorpicker*/
.newsletter .rz-html-editor-colorpicker .rz-colorpicker-trigger {
    color: unset;
}

.newsletter .rz-html-editor-dropdown-value {
    color: #000 !important;
}

.newsletter .rz-html-editor-dropdown-trigger {
    color: #000 !important;
}

.newsletter .rz-html-editor-color {
    color: #000;
}

/* tables */
.rz-datatable-data td, .rz-grid-table td, .rz-datatable-thead th, .rz-grid-table thead th, .rz-datatable-thead th .rz-column-title, .rz-grid-table thead th .rz-column-title {
    text-align: left;
}


/* tasks */
.form-group.sortbyFilter {
    display: none;
}


label.admin span, label.topic span {
    margin-left: .5rem;
}

@media screen and (max-width: 500px) {
    label.admin span, label.topic span {
        display: none;
        margin-left: 0;
    }
}


/* project listing */

.projectsGrid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1800px;
    margin: 0 auto;
}


/* site coloring */
.main {
    flex: 1;
    padding-top: 55px;
    min-height: 100vh;
    width: 100%;
}



/* listausnäkymät */

.projectsGrid .level0 {
    border: 1px solid var(--structureColor4);
    border-radius: 8px;
    transition: all .3s;
    margin: 0;
    /* padding: 0.5rem 0.5rem 2rem; */
    /* text-align: center; */
    background-size: cover !important;
    background-position-x: 50% !important;
    background-position-y: 50% !important;
}


.dataGrid {
    display: flex;
    /* grid-template-columns: 1fr 1fr; */
    position: relative;
    /* grid-auto-columns: 1fr; */
    /* overflow: hidden; */
    /* grid-gap: 3rem; */
    margin-bottom: 60px;
    max-width: 1398px;
}

.projectsGrid .full-level {
    margin: 1rem;
    min-width: 320px;
    max-width: 320px;
}


.rz-data-grid-data {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}




.rz-paginator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: transparent;
    padding: 0.625rem;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.all-projects .rz-grid-table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.dataGrid .rz-grid-table {
    overflow: auto;
    width: 100%;
    position: relative;
    border-collapse: separate;
    border-spacing: 0;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.rz-datatable-data td:not(:last-child), .rz-grid-table td:not(:last-child) {
    border-right: 0;
}

.dataGrid .rz-grid-table tr td:first-child {
    /*border-left: solid 1px var(--structureColor4);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;*/
}

.dataGrid .rz-grid-table tr td:last-child {
    /*border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;*/
}

.dataGrid .rz-grid-table > tr {
    border-radius: 8px;
}

.rz-datatable-odd > td {
    background-color: var(--structureColor6);
    background-color: #fff;
}

.rz-datatable-thead th, .rz-grid-table thead th {
    background-color: transparent;
    color: var(--structureColor2);
    word-break: break-word;
    white-space: normal;
    text-align: left;
    border: 0 !important;
}


    .rz-datatable-thead th .rz-column-title, .rz-grid-table thead th .rz-column-title {
        color: var(--structureColor2);
        text-align: left;
        padding: 0 0 0rem 0.625rem;
    }


/* newsletter stuff */
.newsletter {
    background: var(--structureColor1) !important;
    max-width: 1398px;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: 0;
    margin: 0 auto 4rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--structureColor4);
}


/* newsletter statistics */



.summaryHeader, .statisticsHeader {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

    .summaryHeader .detail {
        width: 100%;
        max-width: 185px;
        text-align: center;
        border: 0 !important;
    }

.summaryTitle {
    margin-bottom: .5rem;
    position: relative;
    float: left;
}

.Level2ResultsHeader {
    text-align: center;
    padding: 1rem;
    align-items: center;
    display: flex;
    flex-direction: column;
    /*border: 1px solid var(--structureColor4);*/
    border-radius: 8px;
    margin: 0.5rem;
    /*background-color: var(--structureColor6);*/
    width: fit-content;
    margin: 1rem auto;
}

.statisticsMainIcon svg path {
    fill: var(--sagaColor4) !important;
}

.statisticsMainIcon {
    max-width: 100px;
    display: flex;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
    transform: scale(1);
    animation: pulseAni 5s infinite;
    margin: 0 auto;
    border-radius: 100%;
}

@keyframes pulseAni {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.rz-card {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: var(--structureColor1);
}

.clickStatisticsBtn {
    display: flex;
    flex-direction: column;
}


    .clickStatisticsBtn:hover {
        cursor: pointer;
    }

.clickStatistics {
    background: var(--structureColor1) !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 0 2rem 0;
    padding: 1rem 0;
    align-items: center;
}



.clickStatisticsBtn > span {
    text-decoration: underline;
    text-underline-position: under;
    text-decoration-color: var(--sagaColor3);
}

.clickStatistics svg {
    width: 2rem;
    height: auto;
    margin-right: 1rem;
}

    .clickStatistics svg path {
        fill: var(--sagaColor4) !important;
    }

.openedClickStatistics {
    display: flex;
    /* border-bottom: 1px solid var(--structureColor4); */
    max-width: 905px;
    /* padding: 1rem; */
    align-items: center;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--structureColor4);
    border-radius: 8px;
    margin-top: 1rem;
    background-color: var(--structureColor6);
}

    .openedClickStatistics > div {
        margin-bottom: 0;
        padding: 1rem;
    }

.clickStatistics .openedClickStatistics {
    text-decoration: none;
}

.rz-datatable-even > td {
    background-color: transparent;
}

.rz-datatable-odd > td {
    background-color: var(--structureColor6);
    background-color: transparent;
}

.openedClickStatistics a {
    text-decoration: none;
}

.clickStatisticsBtn {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.slowRotate {
    animation: rotateAni infinite 60s linear;
}

.pulseObject {
    animation: pulseAni pulse 5s infinite;
}

.logline {
    font-size: x-small;
    display: flex;
    align-content: space-around;
    justify-content: flex-start;
    border-radius: 4px;
    /* background: linear-gradient(38deg, #cacaca, #f0f0f0); */
    box-shadow: 4px 4px 8px #acacac, -4px -4px 8px #ffffff;
    margin: 10px;
}

.logline-titles {
    display: flex;
    align-content: space-around;
    justify-content: flex-start;
    margin: 10px;
    width: 100%;
}

.logline-machine {
    font-weight: 500;
    flex: auto;
    padding: 5px;
}

.logline-filename {
    flex: auto;
    padding: 5px;
}

.logline-line {
    flex: auto;
    padding: 5px;
}

.logline-created {
    display: block;
    position: relative;
    top: -7px;
    /* right: -4px; */
    left: 95%;
    flex: none;
    z-index: 100;
}

.weeklyCheck {
    padding: 2rem 1rem;
}

.projectweekly-archive span {
    margin-right: 1rem;
}

projectweekly-archive span:last-of-type {
    margin-right: 0;
}

.weeklyCheckControls  {
    flex-direction: row !important;
    justify-content: start;
    padding: 0;
}

.weeklyCheckControls label:first-of-type  {
    margin-right: 0.5rem;
}

.weeklyCheckControls label:last-of-type  {
    margin-left: 0.5rem;
}

.monthresource-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    border: 1px solid var(--structureColor3);
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 5px 2rem;
    position: relative;
    background-color: var(--structureColor1);
    font-size: 12px
}

.monthresource {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--structureColor3);
    border-radius: 5px;
    padding: 0.6rem 1rem 1rem 1rem;
    margin: 1rem 5px 2rem;
    position: relative;
    background-color: var(--structureColor1);
}

.monthresource-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.monthresource-user {
    padding: 1rem;
    margin: 0.1rem;
    background-color: var(--structureColor4);
    border-radius: 8px;
}

.monthresource-user-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0px 0px 10px 0px;
}

.monthresource-user-resources {
    margin: 0px 0px 10px 0px;
}

.monthresource-user-buttons {
    display: flex;
    flex-direction: row-reverse;
    align-content: flex-start;
}

.monthresource-resource-names {
    display: flex;
    flex-direction: row;
}

.monthresource-resource-projectname {
    font-size: 10px;
    font-weight: bold;
}

.monthresource-resource-subprojectname {
    font-size: 10px;
}

    .monthresource-resource-subprojectname svg {
        overflow: hidden;
        vertical-align: top;
        margin-left: 5px;
    }

.ProfileButtons {
    display: flex;
    flex-direction: row;
    align-content: space-between;
}


.percentbadge {
    padding: 2px;
    align-content: stretch;
    border: 1px solid var(--structureColor3);
    border-radius: 5px;
}


/*"Lighbox"*/

.saga_lightbox {
    /* Overlay entire screen */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* A bit of padding around image */
    padding: 1em;
    /* Translucent background */
    background: rgba(0, 0, 0, 0.8);
}

    /* Unhide the lightbox when it's the target */
    .saga_lightbox:target {
        display: block;
    }

    .saga_lightbox span {
        /* Full width and height */
        display: block;
        width: 100%;
        height: 100%;
        /* Size and position background image */
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
    }

.online-users-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.online-users-list-user {
}

.online-users-list-user-connections {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.online-users-list-user-connection {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.online-users-list-user-trails {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.online-users-list-user-trail {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.online-users-list-user-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.pingall {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 15px;
}

.overdue {
    color: firebrick;
    font-weight: bold;
}

.gauge-value {
    font-size: 1.5em;
}

.gauge-value-label {
    font-size: 0.6em;
}

.statscounters {
    padding: 10px;
    flex-wrap: wrap;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.gaugecard {
    padding: 10px;
    margin: 5px;
    display: flex;
    flex-direction: row;
    align-content: center;
    border-radius: 8px;
}

    .gaugecard .rz-legend-bottom {
        font-size: xx-small;
    }

.statscard {
    padding: 10px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    align-content: center;
    border-radius: 8px;
    justify-content: space-between;
    align-content: normal;
}

.cardtitle {
    font-weight: bold;
}

.percentChange {
    font-size: 1.5em;
    font-weight: bold;
}

.percentChange-value {
}

.stats-numeric-card {
    display: flex;
    flex-direction: column;
}

    .stats-numeric-card .value1 {
    }

    .stats-numeric-card .value2 {
        font-size: 0.8em;
    }

.percentChange .positive {
    color: darkgreen;
}

.percentChange .negative {
    color: firebrick;
}

.monthname {
    font-size : x-small;
    color: dimgray;
}

.invoicing-subheader {
    font-size: 1.5em;
    margin: 5px;
}
.invoicing-header{
    font-size:2em;
    margin:10px;
}
.invoicing-footer{
    font-size:0.8em;
}
.invoicing-content{

}

.site-name-customer {
    display: inline-block;
    color: var(--sagaColor2);
    margin: 0px 5px 0px 5px;
}

.site-name-customer::first-letter {
    text-transform: uppercase;
}

.site-name{

}

.site-name :first-letter {
    text-transform: uppercase;
}

.change-site {
     color: var(--sagaColor2);
     cursor:pointer;
     padding: 5px;
}

.newslettergroup-info {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 20px;
}

.newslettergroup-info-field { 
    padding: 5px;
}

    .newslettergroup-info-field span:first-of-type{
        font-weight:bold;
    }



    @keyframes pulseAnimation {
        0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

@-o-keyframes pulseAnimation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

@-moz-keyframes pulseAnimation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes pulseAnimation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.loadingtext {
    -webkit-animation: pulseAnimation 3s infinite;
    -moz-animation: pulseAnimation 3s infinite;
    -o-animation: pulseAnimation 3s infinite;
    animation: pulseAnimation 3s infinite;
}

.projectid-badge.span{
    font-size:larger !important; 
}

.someserviceeditor {
    background-color: var(--structureColor3);
    color: white;
  
}
.selectedservices {
    display: flex;
    flex: auto;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
}

.someservice {
    display: flex;
    background-color: var(--structureColor3);
    color: white;
    flex-direction: column;
    justify-content: space-between;
    margin: 10px 0px 10px 0px;
    padding: 12px;
    border-radius: 5px
}

    .someservice label {
        color: var(--sagaColor3);
    }

.someservice-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.header-controls{
    font-size:12px;
}

.tox .tox-tbtn svg  {
    display: block;
    fill: #222f3e;
    max-width: unset;
    max-height: unset;
}

.working-times-controls {
    margin: 1rem 0;
}

.rz-scheduler-nav-prev-next{
    display:none;
}

.workingtime-week {
    padding: 14px 10px 5px 15px;
    align-content: center;
    border: solid;
    border-color: var(--sagaColor4);
    border-radius: 5px;
    color: white;
    background-color: var(--sagaPrimaryButtonBgColor)
}

.week-header {
    font-size: 1.5rem;  
}

.workingtime {
    margin: 1px 0px;
    height: 2.5rem;
    padding: 4px 10px;
    align-content: center;
    border-radius: 5px;
}

.notworkday {
    border: solid;
    border-color: var(--sagaColor5);
}
.weeklyhours-container{
    margin-top:8px;
}

.weeklyhours{

}

.workingtime-userselect{
    margin-bottom:20px;
}

.working-time-element {
    align-items: center !important;
}

.workingtime-note {
    font-size: 10px;
    color: dimgrey;
    max-width: 250px;
    margin-left: 1rem;
}

.subheader {
    font-size: 16px;
    color: var(--sagaThemeColor1);
    font-weight: 500;
    margin-bottom: 5px;
}

.positive{
    color:darkgreen;
}

.negative{
    color:firebrick;
}
