/* Common */

/* Variables*/

:root {
    /*Brand colors*/
    --color-brand-primary: rgb(111, 183, 68);
    --color-brand-dark: #549533;
    --color-brand-light: #eaf4e3;

    /* Customizable colors */
    --color-primary: rgb(111, 183, 68);
    --color-primary-dark: #549533;
    --color-primary-light: #eaf4e3;

    /* Other colors*/
    --color-link: var(--color-primary);
    --color-error: #c4183c;
    --color-error-background: hsl(from var(--color-error) h s 90%);
    --color-error-background-light: hsl(from var(--color-error) h s 95%);
    --color-border: #e0e0e0;
    --color-border-field: #becad6;
    --color-text: #3d5170;
    --color-text-header: #666;
    --color-text-selected: white;
    --color-button-grey: #949494;
    --color-text-tab-title: #6c748f;
    --color-text-group-title: #6c748f;
    --color-text-table-title: #3d5170;
    --color-page-background: #f4f5f9;
    --color-user-background: #bdbdbd;
    --color-background-tabs: #fbfbfb;
    --color-background-hover: #eaf4e3;
    --color-background-group: #fafafc;
    --color-warning: #E5BF14;
    --color-background-warning: #f8dca2;
    --color-background-selected: #919aa7;
    --color-success: #40C949;

    --color-disabled: #a0a0c0;
    --color-background-disabled: #f0f0f0;

    --color-siteheader-background: white;
    --color-sitefooter-background: #fafafc;
    
    --color-sidebar-foreground: rgb(201, 201, 217);

    --color-sidebar-background: #42464f;
    --color-sidebar-hover: #545966;
    --color-leftmenu-background: linear-gradient(0deg, #5a6169 0%, var(--color-sidebar-background) 100%);
    --color-leftmenu-hover-background: linear-gradient(to right, #545966, #484f57);
    --color-leftmenu-selected-color: var(--color-primary);
    
    --color-logo-background: white;

    --color-field-border: #c9c9d8;

    --content-column-gap: 24px;
    --content-field-gap: 24px;
    --content-margin-top: 1rem;
    --content-margin-left: 24px;
    --content-margin-bottom: 32px;
    --content-margin-right: calc(48px + 30px);
    --content-margin-print: 16px;

    --box-content-margin: 10px;
    --box-content-inner-column-gap: 40px;

    --width-field-label: 220px;
    --width-field-label-wide: 280px;

    --size-modal-close-button: 1.5rem;

    --box-shadow-default: 0 2px 0 0 rgba(90, 97, 105, 0.11),
        0 4px 8px 0 rgba(90, 97, 105, 0.12),
        0 10px 10px 0 rgba(90, 97, 105, 0.06),
        0 7px 70px 0 rgba(90, 97, 105, 0.1);

    --font-family-default: 'Open Sans', Roboto, 'Segoe UI', 'Helvetica Neue',
        Arial, sans-serif;
    --font-awesome: "Font Awesome 7 Pro";
}

/* Reset and normalize */
* {
    box-sizing: border-box;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

select,
textarea {
    width: calc(100% - 16px);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    background-color: var(--color-background-disabled);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-primary-dark);
}

option:disabled {
    color: var(--color-disabled);
}

/* Typography */
body {
    background-color: var(--color-page-background);
    font-family: var(--font-family-default);
    font-size: 13px;
    font-weight: 400;
}

/* Containers */
html,
body {
    height: 100%;
    margin: 0;
}

body.page {
    padding: var(--content-margin-top) var(--content-margin-right) 0
        var(--content-margin-left);
    color: var(--color-text);
}

svg a {
    text-decoration: none !important;
}

.page
    a:not(
        .box__tab,
        .button,
        .pagination a,
        .case__tag_content a,
        .light_group a,
        .sortableHeading,
        .data__table,
        .clickableCell
    ) {
    color: var(--color-primary);
    text-decoration: none;
}

.page
    a:hover:not(
        .box__tab,
        .button,
        .pagination a,
        .case__tag_content a,
        .light_group a,
        .sortableHeading,
        .data__table,
        .clickableCell
    ) {
    text-decoration: underline;
}
.page
    a:visited:not(
        .box__tab,
        .button,
        .pagination a,
        .case__tag_content a,
        .light_group a,
        .sortableHeading
    ) {
    color: var(--color-primary);
    text-decoration: none;
}

/* Focus */
button:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Util */
.no_padding {
    padding: 0;
}
.align_center {
    text-align: center;
}

.main__container {
    margin-top: 1rem;
}

.-clickable {
    cursor: pointer;
}

.-nowrap {
    white-space: nowrap;
}

.-error {
    color: var(--color-error) !important;
}

.-bgerror {
    background-color: var(--color-error-background-light) !important;
}

.-warning {
    color: var(--color-warning) !important;
}


.-outline {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.-vertical-space {
    margin-bottom: 1em;
}

.-bold {
    font-weight: 650;
}

/* Typography */
h1,
.otsikko {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.167;
}
h1 i,
.otsikko i {
    font-size: 1rem;
    margin-right: 1rem;
}
h1 .linkki_sivulla {
    text-decoration: none;
    color: var(--color-text);
}
.teksti,
small {
    font-size: 13px;
}

.linkki_sivulla {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
}

.linkki_sivulla:hover {
    text-decoration: underline;
}

.-text-align-right {
    text-align: right !important; /* if other alignments need to be overridden */
}

/* Prevent Support button from going over dialog windows*/
#launcher {
    z-index: 98 !important;
}

/*Font Awesome Icons*/
/*Override and add to styles from fontawesome.css.min*/

.fa-asterisk {
    color: #c4183c;
}

.fa-trash a {
    color: var(--color-text);
}
/*Icon size */

.fa-resized-normal {
    font-size: 1rem !important;
}

/* Icons that are interactive */

.fa-interactive {
    font-size: 1rem !important;
    color: var(--color-primary) !important;
    cursor: pointer;

    text-decoration: none;

    padding: 0.25rem;
}

.fa-interactive:hover {
    text-decoration: none;
}

/* More specific for single icons */
.fa-download.fa-interactive {
    /*Used in "Add to calendar" links*/
    font-size: 1.75rem;
}

.fa-plus-circle.fa-interactive {
    font-size: 1.5rem !important;
}

.fa-plus-circle.-interactive {
    font-size: 1rem !important;
}

.fa-trash {
    font-size: 1rem !important;
    color: var(--color-text);
}

.fa-th-list {
    font-size: 0.75rem importat !important;
    color: var(--color-primary) !important;
}

.fa-plus-square {
    font-size: 1.15rem !important;
}

.-accepted::before {
    content: '\f14a';
    font-family: var(--font-awesome);
    color: var(--color-primary);
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
}

.-rejected::before {
    content: '\f111';
    font-family: var(--font-awesome);
    color: #e44d2e;
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
}

.-open-for-more-info::before {
    content: '\f05a';
    font-family: var(--font-awesome);
    color: var(--color-primary);
    font-size: 1rem;
    /*line-height: 1.5rem;*/
    text-align: center;
    cursor: pointer;
}

.-sync-error::before {
    content: '\f071';
    font-family: var(--font-awesome);
    color: var(--color-error);
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
}

.-sync-warning::before {
    content: '\f024';
    font-family: var(--font-awesome);
    color: var(--color-warning);
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
}

.-sync-ok::before {
    content: '\f00c';
    font-family: var(--font-awesome);
    color: var(--color-success);
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
}

.-sync-pending::before {
    content: '\f021';
    font-family: var(--font-awesome);
    color: #0FAAE2;
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
}

#loader:not(.loader) img,
#loading:not(.loader) img {
    margin-top: 24px;
}

/* Loader and unloader */
.loader,
#unloader_box,
.unloader_box {
    /* display: block; */
    min-width: 300px;
    padding: 5rem 2rem 2rem;

    position: fixed;
    top: 50%;
    left: 50%;
    translate: -50% -50%;

    z-index: 101;

    border: 1px solid var(--color-border);
    /* box-shadow: 8px 8px 8px 0px #c2c2c2; */
    background-color: white;
    text-align: center;
}
.loader img,
#unloader_box img,
.unloader_box img {
    position: absolute;
    top: 2rem;
    left: 50%;
    translate: -50% 0;
}
#unloader_background,
.unloader_background {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    overflow: hidden;
    opacity: 0.7;
    filter: alpha(opacity=70);
    background-color: #808080;
    z-index: 10;
}

#unloader_box,
.unloader_box {
    display: none;
    z-index: 11;
}

/* Screen reader only */
.sr-only,
.visuallyhidden,
.visually-hidden {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.add_new_case__ip_type {
    margin-bottom: 0.4rem;
    font-size: 14px;
    font-weight: 600;
}

.tag {
    border: 1px solid var(--color-primary-dark);
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    padding: 0 4px 1px 4px;
    background-color: white;
    float: left;
}

.form__download_content__link {
    float: right;
}

/* Login & logout screens */

.logout__screen {
    margin: auto;
    text-align: center;
}
/* Box */

.box__wrapper {
    margin-bottom: var(--content-column-gap);
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-background-group);
    box-shadow: var(--box-shadow-default);

    container-type: inline-size;
}

.box__inside_box {
    container-type: inline-size;
    background-color: white;
}

.-box-in-box {
    background-color: white;
    box-shadow: var(--box-shadow-default);
}

.box__content {
    container-type: inline-size;
}
.box__content.-scroll {
    max-height: 300px;
    overflow-y: auto;
}

.box__text {
    padding: 1rem 1.25rem;
}
.box__text.-clickable {
    cursor: pointer;
}
.box__text > p:first-child,
.box__warning > p:first-child {
    margin-top: 0;
}
.box__text > p:last-child,
.box__warning > p:last-child {
    margin-bottom: 0;
}

.box__empty_message {
    padding: 0.75rem 1.25rem;
    font-size: 13px;
}

/* Box item */

.box__item {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;

    padding: 0.75rem 1.25rem;
    position: relative;

    color: var(--color-text);
    font-size: 13px;
    text-decoration: none;
}
.box__item.-clickable {
    padding-right: 3rem;
    cursor: pointer;
}
.box__item.-tight {
    padding: 0.25rem 0.5rem;
}
.box__item + .box__item {
    border-top: 1px solid var(--color-border);
}
.box__item.-clickable:hover {
    background-color: var(--color-primary-light);
}
.box__item.-clickable::after {
    content: '\f061';

    color: var(--color-primary);
    font-family: var(--font-awesome);
    font-size: 0.75rem;
    line-height: 1.5rem;
    text-align: center;

    position: absolute;
    top: 50%;
    right: 1.25rem;

    transform: translateY(-50%);
}
.box__item__date {
    min-width: 70px;
}
a.box__item__subject {
    font-weight: 500;
}

.box__button_container,
.box__button_group {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}
.box__button_group {
    margin-left: auto;
}
.box__button_group.-gets-alert {
    align-items: flex-end;
}
.box__group_header .box__button_group {
    margin-block: -0.5rem;
}
.box__group_header .box__button_group .button {
    padding-block: 2px;
    translate: 0.75rem 0;
}

.box__button_container {
    padding: 0.5rem 1.25rem;
}
.box__button_container.-documents {
    margin-bottom: 1rem;
}
/* Box controls */

.box__controls__wrapper {
    padding: 0.75rem 1.25rem 1rem;
    background-color: var(--color-background-tabs);
    border-bottom: 1px solid var(--color-border);
}
.box__controls__title {
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.box__controls__container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Filters */
.box__controls__filter {
    padding: 0.6rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    background-color: white;
    user-select: none;
    cursor: pointer;
}
.box__controls__filter.-filterinclude {
    color: var(--color-text-selected);
    background-color: var(--color-background-selected);
}
.box__controls__filter i {
    margin-right: 0rem;
}
/* Box grid */

.box__grid,
.box__metagroup {
    display: flex;
    flex-direction: column;
    gap: var(--content-column-gap);
}

.box__grid.-padded {
    padding: calc(var(--content-column-gap) * 1.1);
}

.box__grid.-padded-vertically {
    padding: calc(var(--content-column-gap) * 1.1) 0;
}

.-padded {
    padding: calc(var(--content-column-gap) * 1.5);
}

.box__grid .box__wrapper {
    margin-bottom: 0;
}

@media (min-width: 1300px) {
    .box__grid {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .box__metagroup {
        width: 100%;
    }
    .box__metagroup.-even-width {
        width: calc(50% - var(--content-column-gap) / 2);
    }
    .box__metagroup.-wide-width {
        width: calc(60% - var(--content-column-gap) / 2);
    }
    .box__metagroup.-narrow-width {
        width: calc(40% - var(--content-column-gap) / 2);
    }
}

/* Multiple inner columns */
@container (min-width: 1000px) {
    .box__metagroup .box__wrapper.-inner-columns-multiple .box__content {
        column-count: 2;
        column-gap: var(--box-content-inner-column-gap);
        page-break-inside: avoid;
        break-inside: avoid-column;
    }
}
@container (min-width: 1500px) {
    .box__metagroup .box__wrapper.-inner-columns-multiple .box__content {
        column-count: 3;
    }
}
/* Box header*/

.box__header {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: space-between;

    width: 100%;
    padding: 0.8rem 1.1rem;
    border-bottom: 1px solid var(--color-border);

    color: var(--color-text);
    font-size: 1rem;
    font-weight: 500;
}
.box__header.-closeable,
.box__group_header.-closeable {
    position: relative;
    padding-right: 3rem;
}
.box__header.-closeable > i,
.box__group_header.-closeable > i {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);

    cursor: pointer;
}

/* Header button container */
.box__header__button_container {
    margin-left: auto; /* Align the buttons right */

    /* When there are multiple buttons */
    display: flex;
    gap: 1rem;
}
.box__header__button_container .button {
    padding-block: 4px;
    margin-block: -7px;
    transform: translateX(0.6rem);
}

/* Header controls */
.box__header__control_container {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}
.box__header__control_label {
    display: flex;
    align-items: center;

    font-size: 13px;
    font-weight: 500;
}
/* Box warning */

.box__warning {
    padding: 1.25rem;
    padding-left: 3.6rem;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-background-warning);
    position: relative;

    font-size: 13px;
    font-weight: 600;
}
.box__warning img {
    display: none;
}
.box__header + .box__warning {
    border-top: 0px;
}
.box__warning::before {
    content: '\f071';

    display: block;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;

    font-family: var(--font-awesome);
    font-size: 1.25rem;
    line-height: 1.5rem;
    text-align: center;

    position: absolute;
    top: 1.1rem;
    left: 1.25rem;
}
.box__warning.-notice {
    background-color: var(--color-primary-light);
}
.box__warning.-notice::before {
    content: '\f05a';
}

.box__warning.-confirmation {
    background-color: #fff;
    border: 1px solid var(--color-border);
}

.box__warning.-confirmation::before {
    content: '\f058';
}
/* Breadcrumbs */

.breadcrumbs {
    margin-top: 1rem;

    color: var(--color-text-tab-title);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.breadcrumbs + h1 {
    margin-top: 0.5rem;
}
.buttons_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;

    margin-top: 2rem;
}

.buttons_group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin-left: auto; /* Align the button right */
}

table .buttons_container {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.buttons_container.-in-a-box {
    margin: 0;
    padding: 1rem 1.25rem;
}

.small_buttons_container {
    padding-block: 0.5rem;
}

.box_buttons_container {
    margin: 1rem;
}

/* Works well with buttons that are after a data__table__wrapper */
.inline_button_container {
    margin-block: 0.25rem;
    padding: 0.25rem;
}

input[type='button']:not(.box__tab),
input[type='submit'],
input[type='reset'],
.button:not(td),
.bigbtn {
    display: inline-block;

    padding: 5px 16px;
    border-width: 1px;
    border-style: solid;
    border-color: var(--color-primary);
    border-radius: 4px;

    background-color: var(--color-primary);

    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.75;
    letter-spacing: normal;
    text-decoration: none !important;
    text-transform: none;
    text-align: center;

    cursor: pointer;
}

/* Transparent button */
input[type='button']:not(.box__tab).-transparent,
input[type='submit'].-transparent,
input[type='reset'].-transparent,
.button.-transparent,
.bigbtn.-transparent {
    background-color: transparent;
    color: var(--color-primary);
}
input[type='button']:not(.box__tab).-transparent.-grey,
input[type='submit'].-transparent.-grey,
input[type='reset'].-transparent.-grey,
.button.-transparent.-grey,
.bigbtn.-transparent.-grey {
    border-color: var(--color-button-grey);
    color: var(--color-button-grey);
}

/* Delete button */
input[type='button']:not(.box__tab).deletebtn,
input[type='submit'].deletebtn,
input[type='reset'].deletebtn,
.button.deletebtn,
.bigbtn.deletebtn {
    background-color: var(--color-error);
    border-color: var(--color-error);
}

/* Disabled button */
input[type='button']:disabled,
input[type='submit']:disabled,
input[type='reset']:disabled,
.actionButton:disabled,
.button:not(td):disabled,
.bigbtn:disabled {
    color: #727272 !important;
    background-color: #d0d0d0 !important;
    border-color: #727272 !important;
    cursor: not-allowed !important;
}

/* Make "Save"-button the last button and move it to the right */
.button.-save,
input[type='submit'].-save {
    order: 99;
    margin-left: auto;
}

.button.-prev_state,
input[type='submit'].-prev_state {
    order: 50;
    margin-left: auto;
    position: relative;
    padding-left: 2.25rem;
}

.button.-prev_state::before,
input[type='submit'].-prev_state::before {
    content: '\f104';

    display: block;
    width: 1.5rem;
    height: 1.5rem;

    font-family: var(--font-awesome);
    font-size: 1.3rem;
    line-height: 2rem;
    text-align: center;

    position: absolute;
    top: calc(50% - 5px);
    left: 0.5rem;

    transform: translateY(-50%);
}

.button.-next_state,
input[type='submit'].-next_state {
    order: 150;
    margin-left: auto;
    position: relative;
    padding-right: 2.25rem;
}

.button.-next_state::after,
input[type='submit'].-next_state::after {
    content: '\f105';

    display: block;
    width: 1.5rem;
    height: 1.5rem;

    font-family: var(--font-awesome);
    font-size: 1.3rem;
    line-height: 2rem;
    text-align: center;

    position: absolute;
    top: calc(50% - 5px);
    right: 0.5rem;

    transform: translateY(-50%);
}

/* When inside a table cell */
input[type='button'].-in-table-cell,
input[type='submit'].-in-table-cell,
input[type='reset'].-in-table-cell,
.actionButton.-in-table-cell,
.button.-in-table-cell,
.bigbtn.-in-table-cell {
    margin-block: -0.4rem;
}

/* Small button */
input[type='button'].-small,
input[type='submit'].-small,
input[type='reset'].-small,
.actionButton.-small,
.button.-small,
.bigbtn.-small {
    padding: 0.2rem 0.75rem;
    font-size: 12px;
}

.button.-small:before {
    font-size: 1rem !important;
}

/* wide button */
.button.-wide {
    padding-left: 4rem;
    padding-right: 4rem;
}

/* Document button */
/* .button.-add.-document {
    position: relative;
    left: 0.5rem;
} */

/* Basic add button with plus icon*/
.button.-add {
    position: relative;
    padding-left: 2.25rem;

    background-color: var(--color-primary);
    color: white;
    border: none;
}
.button.-add::before {
    content: '\2b';

    display: block;
    width: 1.5rem;
    height: 1.5rem;
    color: white;
    font-family: var(--font-awesome);
    font-size: 1rem;
    line-height: 2rem;
    text-align: center;

    position: absolute;
    top: calc(50% - 5px);
    left: 0.5rem;

    transform: translateY(-50%);
}

/* Add new case*/
.button.-add.-case::before {
    content: '\f65e';
    font-family: var(--font-awesome);
}

/* Add new workspace */
.button.-add.-workspace::before {
    content: '\f073';
    font-family: var(--font-awesome);
}

/* Add family */
.button.-add.-family::before {
    content: '\f0e8';
    font-family: var(--font-awesome);
}

/* Add person */
.button.-add.-person::before {
    content: '\f234';
    font-family: var(--font-awesome);
}

/* Add an attachment
* Note: Style differs from other add buttons
 */
.button.-add.-attachment {
    background-color: transparent;
    color: var(--color-primary);
}
.button.-add.-attachment::before {
    content: '\f0c6';
    font-family: var(--font-awesome);
    font-size: 1rem;
    color: var(--color-text);
}

.button.-add.-attachment:disabled {
    background-color: transparent !important;
}

.button.-add.-attachment:focus {
    border: 0;
    outline: 0;
}

/* More button */
.button.-more {
    position: relative;
    padding-right: 1.8rem;
}
.button.-more::after {
    content: '\f101';

    display: block;
    width: 1rem;
    height: 1rem;

    font-family: var(--font-awesome);
    font-size: 0.75rem;
    line-height: 1rem;
    text-align: center;

    position: absolute;
    top: calc(50%);
    right: 0.5rem;

    transform: translateY(-50%);
}
.case__tag {
    display: flex;
    flex-direction: row;

    position: fixed;
    top: 0;
    left: var(--content-margin-left);

    max-width: 500px;
    padding: 1rem;

    background-color: var(--color-sidebar-background);

    box-shadow: var(--box-shadow-default);

    z-index: 9; /* Must not be higher than 9 to remain under modal backdrop */
    transition: all 0.5s;
    opacity: 0;
}

.case__tag.-hide {
    display: none;
}

.case__tag .fa {
    padding-right: 0.25rem;
}

.case__tag.-show {
    opacity: 0.8;
}

.case__tag_content {
    color: var(--color-sidebar-foreground);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case__tag_content a {
    text-decoration: none;
    color: var(--color-sidebar-foreground);
}

.company__tag_content {
    color: var(--color-sidebar-foreground);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    padding-left: 0.5rem;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}
/* case-timeline.css */

/* Set some timeline specific variables */
.timeline__container {
    --color-non-active: #ccd0d9;
    --color-past-phase: #b1e691;
}

.timeline__container {
    display: flex;
    align-items: center;
}

.timeline__items {
    display: flex;
    flex-direction: row;
    position: relative;
    height: 6.5rem;
    flex-grow: 1;
    overflow-x: auto;
}

/* previous & next phase buttons */
button.timeline__phase__button {
    margin: 0.25rem;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-color: white;
    border: 0;
    border-radius: 50%;
    box-shadow: var(--box-shadow-default);
    cursor: pointer;

    position: relative;
    top: 35%;

    font-size: 0.75rem;
    font-family: var(--font-awesome);
}

button.timeline__previous_phase::after {
    content: '\f053';
    padding-right: 5px;
}

button.timeline__next_phase::after {
    content: '\f054';
    padding-left: 5px;
}

/* milestone*/

.timeline__milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    position: relative;
}

.timeline__milestone__label {
    font-size: 13px;
    text-transform: uppercase;
}

.-incomplete.-left-future label,
.-incomplete.-right-future label {
    color: var(--color-non-active);
}

.timeline__milestone.-left-current label {
    color: var(--color-text);
    font-weight: 700;
}

.timeline__milestone__date {
    font-size: 12px;
}

/* milestones have connecting lines of different colors */
.timeline__milestone::before,
.timeline__milestone::after {
    content: none;
    position: absolute;
    top: calc(50% - 2px);
    height: 5px;
}

.timeline__milestone::before {
    left: -1px; /* removes small extra space between elements */
    right: 50%;
}

.timeline__milestone::after {
    left: 50%;
    right: -2px; /* removes small extra space between elements */
}

.timeline__milestone.-left-past::before {
    content: ' ';
    background-color: var(--color-past-phase);
}

.timeline__milestone.-left-current::before {
    content: ' ';
    background-color: var(--color-past-phase);
}

.timeline__milestone.-left-future::before {
    content: ' ';
    border-top: 4px dotted lightgrey;
}

.timeline__milestone.-right-past::after {
    content: ' ';
    background-color: var(--color-past-phase);
}

.timeline__milestone.-right-current::after {
    content: ' ';
    background-color: var(--color-past-phase);
}

.timeline__milestone.-right-future::after {
    content: ' ';
    border-top: 4px dotted lightgrey;
}

/* milestone have a circle on the timeline */
.timeline__milestone__circle::after {
    content: ' ';
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 20px;
    width: 20px;
    background-color: var(--color-non-active);
    border: 3px solid var(--color-page-background);
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--box-shadow-default);
}

.timeline__milestone.-left-current.timeline__milestone__circle::after {
    background-color: var(--color-primary);
}

/* completed milestones get a green cirle with a checkmark inside */
.timeline__milestone__circle.-completed::after {
    content: '\f00c';
    font-family: var(--font-awesome);
    color: white;
    background-color: var(--color-past-phase);
    line-height: 20px;
    text-align: center;
    font-size: 0.75rem;
}

.timeline__phase {
    position: absolute;
    bottom: 0.25em;
    left: 70%;
    width: max-content;
    overflow: visible;
    z-index: 1;
    text-align: center;
    font-size: 12px;
    padding: 2px;
}

.timeline__phase.-past,
.timeline__phase.-future {
    color: grey;
    font-style: oblique;
}

.timeline__phase.-current {
    font-weight: bold;
    z-index: 2;
}

.timeline__phase__description {
    color: var(--color-primary);
}

.timeline__deadline {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    position: relative;
    font-size: 12px;
}

.timeline__deadline::before {
    content: ' ';
    position: absolute;
    top: calc(50% - 2px);
    left: 0;
    width: 100%;
    height: 5px;
}

.timeline__deadline.-line-past::before {
    background-color: lightgrey;
}

.timeline__deadline.-line-current::before {
    background-color: var(--color-past-phase);
}

.timeline__deadline.-line-future::before {
    border-top: 4px dotted lightgrey;
}

/* deadlines have a circle on the timeline */
.timeline__deadline__circle::after {
    content: ' ';
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 10px;
    width: 10px;
    background-color: var(--color-non-active);
    border: 4px solid var(--color-page-background);
    border-radius: 4px;
    z-index: 1;
    box-shadow: var(--box-shadow-default);
}

/* completed deadlines get a light green circle  */
.timeline__deadline__circle.-completed::after {
    background-color: var(--color-past-phase);
}
.modal__content_wrapper.-change-log .listrow + .listrow td {
    border-top: 0;
}

.modal__content_wrapper.-change-log > .bordered > tr:last-child > td,
.modal__content_wrapper.-change-log > .bordered > tbody > tr:last-child > td {
    border-bottom: 0;
}
/* Chat */

.-chat-new-message-icon {
    color: var(--color-primary);
    cursor: help;
}

.chat__header .box__group_header {
    border-top: 1px solid var(--color-border);
}

.chat__participants_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;

    padding: 1.25rem;
}

@container (min-width: 800px) {
    .chat__participants_container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.chat__participant_wrapper {
    padding-left: 3.5rem;
    position: relative;
}
.chat__participant_wrapper::before {
    content: '\f007';

    display: block;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;

    background-color: #ddd;

    color: white;
    font-family: var(--font-awesome);
    font-size: 1.25rem;
    line-height: 2.25rem;
    text-align: center;

    position: absolute;
    top: 0;
    left: 0;
}

.chat__participant__name {
    margin-top: 0.1rem;
    color: var(--color-text-tab-title);
    font-size: 14px;
    font-weight: 600;
}
.chat__participant__company {
    margin-top: 0.2rem;
    color: var(--color-text-header);
}
.chat__participant__label {
    margin-top: 0.2rem;
    color: var(--color-text-header);
    font-size: 13px;
    font-weight: 600;
}

.chat__participant_container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

.chat__participant__buttons_container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    order: 2;
}

.chat__participant__text_container {
    order: 1;
}

.chat__participant__button_wrapper {
    margin-top: 0.15rem;
}

.chat__comments_container {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.chat_comment {
    padding: 2rem 1.25rem 2rem 4rem;
    position: relative;
}

.chat_comment::before {
    content: '\f007';

    display: block;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;

    background-color: #ddd;

    color: white;
    font-family: var(--font-awesome);
    font-size: 1rem;
    line-height: 1.9rem;
    text-align: center;

    position: absolute;
    top: 1.6rem;
    left: 1.25rem;
}

.chat_comment[data-owner='self'] {
    /* background-color: var(--color-primary-light); */
}

.chat_comment.-log {
    background-color: var(--color-primary-light);
}
.chat_comment.-log::before {
    background-color: #ccc;
}

.chat_comment + .chat_comment {
    border-top: 1px solid var(--color-border);
}

.chat_comment.-confidential,
.workspace__discussion__comment_wrapper.-confidential {
    position: relative;
    outline: 2px dashed var(--color-primary);
    outline-offset: -2px;
}

.chat_comment.-confidential::after,
.workspace__discussion__comment_wrapper.-confidential::after {
    content: attr(data-labelconfidential);
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;

    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);

    color: white;
    font-size: 14px;
    font-weight: 600;
    background-color: var(--color-primary);
}

.chat_comment p {
    color: var(--color-text-header);
    font-size: 14px;
}

.chat_comment_header {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.chat_comment p:last-child {
    margin-bottom: 0;
}

.chat__subject_field_container input[type='text'] {
    width: 100%;
}

/* Unread message indicator */

.chat_first_unread {
    height: 2px;
    margin-bottom: 30px;
    position: relative;
    background-color: var(--color-error);
}

.chat_first_unread:before {
    content: attr(data-labelbefore);
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;

    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);

    color: white;
    font-size: 14px;
    font-weight: 600;
    background-color: var(--color-error);
}

/* Documents */

.chat_existing_documents_header,
.chat_existing_documents_search_field {
    margin-top: 1rem;
}

.chat_existing_documents_radio_group {
    display: flex;
    gap: 1rem;

    margin-top: 0.25rem;
}
/* Documents */

.documents__document_row {
    padding-block: 0.25rem;
}
.documents__document_row > td:last-child {
    padding-left: 1rem;
    text-align: right;
}

.documents__document_link {
    font-size: 14px;
}

.documents__document_link:before {
    content: '\f0c6';
    font-family: var(--font-awesome);
}

.import__container {
    background-color: #fff;
    border: 1px solid var(--color-border);
    padding: 1rem;
    margin-block: 1rem;
    max-width: 350px;
}
/*group_members has lots of data displayed in table form so lets reset some styles to minimize whitespace */
#group_members .Field {
    padding: inherit;
}
#group_members table {
    width: 100%;
}

#group_members .table_container {
    padding: 0;
    padding-bottom: 1rem;
}

/* Long list of classes requires y-scrolling */

#row_c_klasser2 {
    max-height: 300px;
    overflow-y: auto;
}

/* Portfolio - Portfolio Content - Families*/
#header_row_c_family_comment {
    min-width: 250px;
}

/* Info icons*/
.-icon-position-correction {
    top: -0.5rem !important;
}

.-results-per-row-icon {
    left: 0rem !important;
    top: -0.5rem !important;
}

.-icon-default-settings {
    top: -0.5rem !important;
}
.family__attachment_modal_content {
    padding-bottom: 1rem;
}

.family__attachment_choices {
    display: grid;
    padding: 1rem 1.25rem;
}
.faq_wrapper {
    margin-top: 3.5rem;
    border-top: 0 !important;
}

.faq__header_tab {
    font-size: 1rem;
    font-weight: normal;
    text-transform: uppercase;

    clear: both;
    position: relative;
    width: 100%;
    bottom: 0px;
    left: 0px;
    overflow: auto;
}

.faq__header_tab a {
    text-decoration: none;
}

.faq__header_tab a:hover {
    text-decoration: underline;
}

.faq_container {
    width: 350px;
    width: 100%;
    height: 550px !important;
    overflow-y: scroll;

    padding: 1rem;
}
/* Fields */

/* Legacy */
td.light,
td.light + td {
    padding: 0.3rem 0.5rem;
    border-bottom-color: var(--color-border) !important;
    font-size: 13px;
}
td.light {
    white-space: nowrap; /* For modals, e.g. inventor edit modal */
}

td.-input-width {
    min-width: 180px; /* For rows that have search input field */
}

td.light > div {
    max-width: 100%;
    padding-right: 24px;
    white-space: normal;
    position: relative;
}
td.light > div > .help_icon {
    float: none !important;
    position: absolute;
    right: 0 !important;
}

/* Read only field */
.read_only_field__wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;

    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}
.read_only_field__label {
    width: 40%;
    max-width: 18rem;
    padding-right: 2rem;
    position: relative;

    font-size: 13px;
}

.read_only_field__value {
    font-size: 13px;
}

/* Text input */
input[type='text'],
input[type='password'],
select,
textarea {
    border: 1px solid var(--color-border-field);
    padding: 0.25rem 0.25rem;
    border-radius: 0.5rem;

    color: var(--color-text);
    font-size: 14px;
}
input[type='text']:focus,
input[type='password']:focus,
select:focus,
textarea:focus {
    outline: 1px solid var(--color-primary);
    outline-offset: -1px;
}

input[type='text']::placeholder {
    font-size: 12px;
}


/* text input in nested tables are a bit smaller */
.bordered_no_width input[type='text'],
.bordered_no_width input[type='password'],
.bordered_no_width select,
.bordered_no_width textarea {
    font-size: 12px;
}

textarea {
    width: 100%;
    resize: vertical;
}

/* Fields */

.Field input[type='text'] + img {
    margin-left: 0.5rem;
}

div.Field {
    display: flex;
    flex-direction: row;
    gap: var(--content-field-gap);
    padding: 0.3rem 1.25rem;
}
div.-additional-field {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem;
}

div.FieldName {
    flex-shrink: 0;
    width: var(--width-field-label);
}

div.FieldName.-wide-field {
    width: var(--width-field-label-wide);
}

div.FieldName > div:first-child {
    width: auto !important;
}

div.FieldLabel {
    color: var(--color-text-header);
    font-size: 14px;
    font-weight: 600;

    padding-right: 1rem;
}

div.FieldValue {
    width: calc(100% - var(--width-field-label) - var(--content-field-gap));
    color: var(--color-text-header);
    font-size: 14px;
}
div.FieldValue select,
div.FieldValue input[type='text'] {
    max-width: 100%;
}
.field_value__container {
    width: 100%;
    overflow: auto;
    padding: 1px; /* So data__table borders have room*/
}
.field_value__container p:first-child {
    margin-top: 0;
}
.field_value__container p:last-child {
    margin-bottom: 0;
}

.CaseListValue {
    font-size: 12px;
}

.-field-in-field {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: space-between;

    padding: 0.25rem 0 0.25rem 0;
    white-space: nowrap;
}

/* Hide field label */

div.Field:is(#row_c_uppf, #row_c_comment, #row_c_family_comment, #row_c_bild, #row_c_family_picture, #row_c_timeline)
    .FieldName {
    display: none;
}

div.Field:is(#row_c_uppf, #row_c_comment, #row_c_family_comment, #row_c_bild, #row_c_family_picture, #row_c_timeline)
    .FieldValue {
    width: 100%;
}

/* Uniform padding for fields */

div.Field:is(#row_c_uppf, #row_c_comment, #row_c_family_comment, #row_c_bild, #row_c_family_picture) {
    padding: 1.25rem;
}

/* Full width field value */

div.Field:is(
        #row_c_fakturor,
        #row_c_cost_estimates,
        #row_c_budjet,
        #row_c_incomes,
        #row_c_annuity_operator,
        #row_c_group_chart,
        #row_c_group_chart_income
    ) {
    flex-direction: column;
}
div.Field:is(
        #row_c_fakturor,
        #row_c_cost_estimates,
        #row_c_budjet,
        #row_c_incomes,
        #row_c_annuity_operator,
        #row_c_group_chart,
        #row_c_group_chart_income
    )
    div.FieldValue {
    width: auto;
}

/* Alternating rows on fields inside boxes */

.-alternating-fields,
.box__wrapper:is(
        .-basic-info,
        #group_own_grp1,
        #group_own_grp2,
        #group_arende_grp,
        #group_biblio_grp,
        #group_grundarende_grp,
        #group_tid_grp,
        #group_sokande_grp,
        #group_berggren_grp,
        #group_database_grp,
        #group_upc_grp,
        #grp0
    )
    .box__content {
    padding: var(--box-content-margin);
}

.-alternating-fields div.Field,
.box__wrapper:is(
        .-basic-info,
        #group_own_grp1,
        #group_own_grp2,
        #group_arende_grp,
        #group_biblio_grp,
        #group_grundarende_grp,
        #group_tid_grp,
        #group_sokande_grp,
        #group_berggren_grp,
        #group_database_grp,
        #group_upc_grp,
        #grp0
    )
    div.Field {
    border-top: 1px solid var(--color-border);
    padding-inline: 0.75rem;
}
.-alternating-fields div.Field:nth-child(odd),
.box__wrapper:is(
        .-basic-info,
        #group_own_grp1,
        #group_own_grp2,
        #group_arende_grp,
        #group_biblio_grp,
        #group_grundarende_grp,
        #group_tid_grp,
        #group_sokande_grp,
        #group_berggren_grp,
        #group_database_grp,
        #group_upc_grp,
        #grp0
    )
    div.Field:nth-child(odd) {
    background-color: var(--color-background-group);
}

/* Single checkbox with label on right */

.FieldCheckbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;

    padding: 0.2rem 0.25rem;
}
/* Footer */

body {
    display: flex;
    flex-direction: column;
}

.site_footer__wrapper {
    width: calc(
        100% + var(--content-margin-left) + var(--content-margin-right)
    );
    margin-left: calc(-1 * var(--content-margin-left));
    margin-top: auto;
    padding-top: var(--content-margin-bottom);
}

.site_footer__container {
    padding: 13px 24px;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-sitefooter-background);
}
/* Front page */

/* Favourites and Tasks */
.box__item.-clickable.-favourite,
.box__item.-clickable.-task {
    gap: 1rem;
}
.box__item.-clickable.-favourite i,
.box__item.-clickable.-task i {
    position: relative;
    top: -0.1rem;
    font-size: 1.2rem;
}

/* Favourites */

.favourite__wrapper {
    display: grid;
    padding-block: 1rem;
}
@container (min-width: 600px) {
    .favourite__wrapper {
        grid-template-columns: 1fr 1fr;
    }
}
@container (min-width: 900px) {
    .favourite__wrapper {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@container (min-width: 1200px) {
    .favourite__wrapper {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

/* Personal favourites */
.box__item.-favourite.-personal {
    position: relative;
}
.box__item.-favourite.-personal::before {
    content: '';

    display: block;
    width: 0.7rem;
    height: 0.7rem;

    position: absolute;
    top: 0.7rem;
    left: 0.9rem;

    transform: translateY(-50%);
    z-index: 10;

    background-image: url('../../img/mygreip_green.png');
    background-repeat: no-repeat;
    background-size: contain;
}

.box__item.-clickable.-favourite::after {
    top: 1.55rem;
    color: var(--color-text);
    font-size: 0.9rem;
}

.box__item.-clickable.-favourite + .box__item.-clickable.-favourite {
    border-top-width: 0;
}

/* Tasks */
.open_tasks__task {
    position: relative;
    border-top: 1px solid var(--color-border);
}

.open_tasks__task__linked_items {
    position: relative;
    padding-left: 2em;
    opacity: 0.8;
}

.open_tasks__task__linked_items .reference_item__link {
    font-size: 12px;
}

.open_tasks__task .reference_item__link {
    padding: 0.25rem 0.5rem;
    display: inline-flex;
    width: calc(100% - 30px);
}
/* .open_tasks__task a.reference_item__link:hover {
    background-color: var(--color-primary-light);
} */

.open_tasks__task a.reference_item__link::after {
    /* content: '\f061'; */

    color: var(--color-primary);
    font-family: var(--font-awesome);
    font-size: 0.75rem;
    line-height: 1.5rem;
    text-align: center;

    position: absolute;
    top: 50%;
    right: 1.25rem;

    transform: translateY(-50%);
}
.open_tasks__task__linked_items .reference_item__link {
    padding-left: 2.25rem;
    padding-top: 0;
    padding-bottom: 0;
}

.open_tasks__task_deadline {
    padding-left: 0.5rem;
    color: var(--color-primary);
}

.open_tasks__notification {
    float: left;
    width: 24px;
    text-align: center;
    line-height: 1.5rem;
    padding-top: 4px;
}

.open_tasks__note {
    padding-left: 2rem;
}

.frontpage__messages__row td {
    border-top: 1px solid var(--color-border);
}

.frontpage__chat__row td {
    padding: 0.75rem 1.25rem;
}

/* Chats */
.box__content.-scroll.-chats {
    max-height: 330px;
}

.-open-tasks-notification {
    color: var(--color-primary);
    cursor: help;
}
/* Workspaces */
.box__content.-scroll.-workspaces {
    max-height: 260px;
}
/* Groups */

/* Box group */
.box__group_header,
.dark_group,
.light_group {
    padding: 0.75rem 1.25rem;
    background-color: var(--color-background-group);
    border-bottom: 1px solid var(--color-border);
}

.box__group_header {
    display: flex;
}

.box__group_header.-with-top-border {
    border-top: 1px solid var(--color-border);
}

.box__group_header.-no-bottom-border {
    border-bottom: 0;
}

tr.Field + tr > .box__group_header,
tr.Field + tr > .dark_group,
tr.Field + tr > .light_group {
    border-top: 1px solid var(--color-border);
}

.box__group_header,
.box__group_header a,
.dark_group,
.dark_group a,
.light_group,
.light_group a {
    color: var(--color-text-group-title);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none !important;
}

/* Inner group */
.light_group_gray {
    padding: 0.75rem 0;

    color: var(--color-text-group-title);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.65px;
    text-transform: uppercase;
}
/* Login */

.login_form__wrapper {
    --login-form-width: 300px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.login_form__container {
    width: 300px;
    padding-block: 6rem;
}

.login_form__logo {
    height: 100px;
    padding-bottom: 2rem;
}

.login_form__logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.login_table {
    border-top: 2px solid #68c52f;
    border-left: 2px solid #68c52f;
    border-right: 3px solid #60bf26;
    border-bottom: 3px solid #60bf26;
    -moz-border-radius: 16px;
    -webkit-border-radius: 16px;
    border-radius: 16px;
}

.login__website_cta {
    padding-block: 2rem;
    text-align: center;
}
/* Map */

table.-map {
    box-shadow: var(--box-shadow-default);
}
/* Modal */

.modal,
.PopupDialog {
    display: none;
    min-width: min(75vw, 960px) !important;
    max-height: 90vh !important;

    margin-left: 0px !important;
    margin-top: 0px !important;
    padding: 1em;

    position: fixed;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    background: white;
    z-index: 11;
    box-shadow: var(--box-shadow-default);
}

#document_dialog {
    min-width: min(85vw, 960px) !important;
}
/* Could not find where to edit this but is inside document modal*/
#doc_description,
#doc_name {
    width: 80%;
}

/* Scroll bar between modal header and button container */
.PopupDialog:is(#inventor_dialog, #popup_dialog, #user_contacts_editor_dialog) {
    /*height: 100vh; Sometimes JavaScript doesn't give an explicit height, circumvent like this*/
}

.PopupDialog:is(
        #inventor_dialog,
        #popup_dialog,
        #print_dialog,
        #user_contacts_editor_dialog,
        #user_groups_editor_dialog
    )
    > form {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.PopupDialog:is(#inventor_dialog, #print_dialog)
    > form
    > .modal__content_wrapper
    > table {
    margin-block: 0.5rem;
}

.modal__close_button {
    display: block !important;
    width: var(--size-modal-close-button) !important;
    height: var(--size-modal-close-button) !important;
    padding: 0 !important;
    border-width: 0 !important;
    border-radius: 50% !important;

    background-color: var(--color-text) !important;
    background-image: url('../../img/cross-white.svg');
    background-repeat: no-repeat;
    background-size: calc(0.6 * var(--size-modal-close-button))
        calc(0.6 * var(--size-modal-close-button));
    background-position: 50% 50%;

    cursor: pointer;
}

.modal input[type='text'],
.modal input[type='password'],
.modal select,
.modal textarea {
    width: 100%;
}

.modal__container {
    display: grid;
    height: 100%;
}

.modal__header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;

    width: 100%;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);

    color: var(--color-text);
    font-size: 1rem;
    font-weight: 500;
}

.modal__content {
    padding: 1rem 1.25rem;
}

.-center-modal-content {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.modal__content_wrapper {
    container-type: inline-size;
    overflow-y: auto;
}

.modal__button_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;

    margin-top: auto; /* Always at the end of the modal */
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-border);
}

.modal__button_container .button {
    min-width: 100px;
}

.modal__button_group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin-left: auto; /* Align the button right */
}
/* Small unclosable modal where user can browse recent news*/

.news__recent_news {
    width: 300px;
    padding: 0.75rem;
    position: fixed;
    right: 1rem;
    top: 6.5rem;

    background-color: white;
    overflow-x: hidden;
    text-overflow: ellipsis;
}

.news__recent_news a {
    color: var(--color-text);
    font-size: 0.75rem;
    padding: 0.2rem;
    overflow-x: hidden;
    text-overflow: ellipsis;
}

.news__recent_news a:hover {
    font-size: 0.75rem;
}

/*News box*/

.news_content img {
    display: block;
    margin: auto;
    padding: 0.5rem;

    max-width: 80%;
}
/* Pagination */

.pagination {
    display: flex;
    flex-direction: row;

    position: fixed;
    top: 0;
    right: var(--content-margin-right);

    background-color: var(--color-sidebar-background);

    box-shadow: var(--box-shadow-default);

    z-index: 99999;
}

.documents__search__container {
    position: relative;
}

.pagination.-document-pagination {
    position: static;
    float: right;

    min-width: 200px;
    max-width: 350px;
}
.pagination a {
    display: block;
    padding: 1rem;
    color: var(--color-sidebar-foreground);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    transition: all 0.3s ease;
}
.pagination a:hover {
    background-color: var(--color-sidebar-hover);
}
.pagination a span {
    font-weight: 600 !important;
}

/* Table pagination */
.table_pagination__wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    margin-block: 1rem;

    font-size: 13px;
}
.box__warning.-security-code {
    margin-bottom: 2rem;
}

.box__warning.-personal-email-info,
.box__warning.-personal-notifications {
    border-top: 0;
}
.box__warning.-personal-notifications {
    max-width: 1100px;
    border: 1px solid var(--color-border);
}

.personal_settings__input_content {
    display: grid;
    grid-template-columns: 140px auto;
    /* display: flex;
    flex-direction: row; */
    gap: 1.75rem;

    font-size: 14px;
    color: var(--color-text);

    padding: 1rem;
}

.personal_settings__input_content label {
    padding-top: 0.3rem;
}

.personal_settings__company,
.personal_settings__confirmed_address {
    display: inline-block;

    font-size: 14px;
    color: var(--color-text-tab-title);

    padding-block: 0.3rem;
    max-width: 500px;
}

.personal_settings__email_fields {
    display: grid;
    gap: 1.5rem;
}

.personal_settings__email__correspondence {
    margin-left: 0.5rem;
}

.personal_settings__confirmed_address,
.personal_settings__pending_address {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 4rem;
}

.personal_settings__confirmed_address__address,
.personal_settings__pending_address__address {
    min-width: 200px;
}

.personal_settings___new_email_address {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.personal_settings___new_email_address input[type='text'] {
    max-width: 247px;
}

.personal_settings__confirmed_address label,
.personal_settings__pending_address__confirmation {
    translate: 0 -0.1rem;
}

.personal_settings__pending_address__confirmation,
.personal_settings__pending_address__confirmation label {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.personal_settings__pending_address__confirmation_input {
    width: 7rem;
}

.-setting_location label {
    padding-right: 1rem;
}

.-password_changed_date {
    margin-top: 0.3rem;
}

.-new_password label {
    padding-right: 1.5rem;
}
.-old_password label {
    padding-right: 1.9rem;
}

.-rsa_key_instructions {
    max-width: 1100px;
}

.-create_new_rsa_key label {
    padding-right: 1.5rem;
}

/* Hidden preferences*/

.personal_settings__language_preference {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;

    padding: 1rem;
}

.language_preference {
    margin-left: -0.5rem;
}
/* For Contact Person and Contact Group Search */

.contacts_header {
    background-color: var(--color-background-tabs);
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--color-border);

    color: var(--color-text-table-title);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.65px;
    text-transform: uppercase;
    text-align: center;
}

.contacts_search__inputs {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;

    padding: 1rem 1.25rem;
}

input[type='text'].personal_settings__address_book__search_field {
    width: 100%;
    padding: 0.5rem 0.8rem;
}

/* Add New Contact Person */
.contacts__add_new_person {
    background-color: #fff;
    width: 100%;
}

.contacts__add_new__inputs {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;

    max-width: 500px;

    padding: 1rem;
}

.-add_to_group {
    display: flex;
    flex-direction: column;
}

.-create_new_group {
    display: flex;
    flex-direction: column;
    padding: 0.2rem;
    gap: 0.2rem;
}

.-existing_contacts,
.-contacts_visibility {
    justify-content: flex-start;
}

.-contacts__clear_fields {
    max-width: 1000px;
    justify-content: end;
}

.-contacts__clear_fields button {
    white-space: nowrap;
}

/* Add New Contact Group */
.contacts__add_new_group {
    background-color: #fff;
    width: 100%;
}

.contacts__add_new_group__fields {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding: 1rem;
}

.-group_name label {
    padding-top: 0.3rem;
}

.-group_description {
    display: flex;
    flex-direction: column;
}

.-group_add_search {
    padding: 0;
}

.-new_group_buttons {
    justify-content: end;
}

.user_group__added_members {
    padding-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.user_group__added_members {
    width: 100%;
    border: 1rem solid transparent;
}
.personal_settings__notifications {
    background-color: #fff;
    margin-top: 1.75rem;
    max-width: 1100px;
}

.personal_settings_notifications__content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1.75rem;

    padding: 1rem;
}

td > .personal_settings_notifications__content:not(:first-child) {
    border-top: 1px solid var(--color-border);
}

.-notify_last_reminder a {
    font-weight: bold;
    text-decoration: none;
}

.-notify_last_reminder a:hover {
    text-decoration: underline;
}

.-notify_reminder_period label {
    padding-top: 0.4rem;
}

.-notify_reminder {
    border-top: 0;
}

.-submit_changes {
    justify-content: end;
}
/* Print view */

body.-print-view {
    margin: var(--content-margin-print);
}

body.-print-view .site_footer__wrapper {
    width: calc(
        100% + var(--content-margin-print) + var(--content-margin-print)
    );
    margin-left: calc(-1 * var(--content-margin-print));
}

body.-print-view .table_scroll_container {
        overflow: visible;
        max-height: none;
}
/* Popup help */

.popupHelp {
    width: 300px;
    padding: 1rem;
    border: 2px solid var(--color-primary);
    box-shadow: var(--box-shadow-default);

    position: absolute;
    z-index: 10;
    white-space: normal;

    background-color: white;
    color: black;
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: normal;
}

.popupHelp b {
    font-weight: 600;
}

.hasPopupHelp,
.hasPopupNoHelp,
.hasPopupNote {
    position: relative;
    padding-right: 1.25rem;
}

.hasPopupHelp::after {
    content: '\f05a';
    cursor: help;

    display: block;
    width: 1rem;
    height: 1rem;

    font-family: var(--font-awesome);
    font-size: 1.1rem;
    text-align: center;
    font-weight: normal;
    color: var(--color-text);

    position: absolute;
    top: calc(50% + 1px);
    right: 0;
}

/* Popup has only title*/

.hasPopupNoHelp::after {
    color: rgba(61, 81, 112, 0.3) !important;

    content: '\f05a';
    cursor: help;

    display: block;
    width: 1rem;
    padding-left: 1.5rem;

    font-family: var(--font-awesome);
    font-size: 1.1rem;
    text-align: center;

    position: absolute;
    top: calc(50% + 1px);
    right: 0;
}

div.hasPopupHelp::after,
div.hasNoPopupHelp::after {
    top: 0;
}

.hasPopupNote::after {
    color: var(--color-primary);
    content: '\f15c';

    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;

    font-family: var(--font-awesome);
    font-size: 1.1rem;
    text-align: center;

    position: absolute;
    top: 1px;
}

/* Edit help*/
.case__edit__popuphelp {
    width: 100%;

    background-color: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--box-shadow-default);

    width: 500px;
    padding: 1rem;
    z-index: 99;

    position: absolute;
}

/* Exceptions */

.listrow .hasPopupHelp:after {
    position: relative;
}
/* Portfolio Add Memebers Search */
.portfolio__add_members__search {
    padding: 1rem;
}

.portfolio__add_members__search h3 {
    color: var(--color-text);
}

/* Cost Follow-up */

.portfolio__new_memeber_search {
    padding-inline: 1.25rem;
    padding-bottom: 1.25rem;
}

/* Documents tab */

.document_search__search_field {
    margin: 1rem;
}
/* Reference item */

.reference_item__link {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;

    position: relative;

    font-size: 14px;
    line-height: 1.6;
}

.reference_item__link:not(.-passive) {
    cursor: pointer;
}

.reference_item__link .reference_item__text {
    color: var(--color-link);
    text-decoration: none;
}

/* Fine tune icon position */
.reference_item__link i {
    margin-top: 5px;
}

.reference_item__edit_linktype {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;

    position: relative;

    font-size: 12px;
    line-height: 2;
}

.reference_item__edit_linktype select {
    font-size: 12px;
    padding: 2px;
}

.reference_item__container {
    flex: auto;
    max-width: 500px;
}

/* Hover effect */
.reference_item__link:hover:not(.-passive) .reference_item__text:hover {
    text-decoration: underline;
}

.reference_item__footnote {
    margin-top: 0.25rem;
    padding: 0;

    color: var(--color-text-header);
    font-size: 12px;
    line-height: 1.52;
}
.reference_item__footnote:empty {
    display: none;
}

.reference_item__tag {
    color: var(--color-primary-dark);
    font-weight: 600;
}

h1 .reference_item__link {
    font-size: inherit;
}

h1 .reference_item__link i {
    margin-top: 11px;
}
/* Report */

.report__header,
.report__breadcrumbs {
    padding-left: 1.25rem;
}

.report__reference_item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    margin-inline: 1.25rem;
    padding: 0.5rem;

    background-color: var(--color-background-group);
}

.report__fields {
    margin-block: 1rem;
}

.report__new_value select,
.report__new_value textarea {
    width: calc(100% - 32px);
}

.box__wrapper.-agent-table tr + tr > td {
    border-top: 1px solid var(--color-border);
}
.box__wrapper.-agent-table td.light {
    font-weight: bold;
}

.box__content.-report {
    padding: 1.5rem;
}

.box__content.-report.-comments {
    padding-block: 1rem 0.5rem;
}

#popup_dialog .box__wrapper.-report {
    margin-bottom: 0;
}

.-agent-report-claims {
    width: 100%;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    background-color: var(--color-background-group);
    border: 1px solid var(--color-border);
}

.-agent-report-claims select {
    width: fit-content;
}

.-agent-report-claims .tox-tinymce {
    margin-top: 0;
    margin-bottom: 0;
}
/* Search */

.search_results__amount {
    margin-bottom: 2rem;
}

.search__footer {
    justify-content: flex-end;
    align-items: center;
}

#searchtable {
    width: 100%;
}

#searchtable td.light_group {
    position: relative;
    cursor: pointer;
}
#searchtable td.light_group span:first-child {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
}

#searchtable input[type='text'],
#searchtable input[type='text'] + img {
    margin-right: 0.5rem;
}

/* Search field */

.search_field_container {
    display: flex;
    flex-direction: row;

    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
}

.search_field_container .search_text {
    width: 100%;
    padding: 0.5rem 0.8rem !important;
    border: 0;
}
.search_field_container .search_text:focus {
    outline: 2px solid var(--color-primary);
}

.search_field_container .search_button {
    display: block;
    width: 4rem;
    height: 32px;
    border: 0;
    border-radius: 0.25rem;
    margin: 2px;

    background-color: var(--color-primary);

    position: relative;
    cursor: pointer;
}

.search_field_container .search_button::before {
    content: '\f002';
    display: block;

    color: #fff;
    font-family: var(--font-awesome);
    font-size: 1rem;
    line-height: 1.7rem;
    text-align: center;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*Search Criteria*/

.search__criteria_input__row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.search__criteria_input__row input[type='text'] {
    position: relative;
}

.search__text_container input[type='text'] {
    width: 250px;
}

.search__criteria_input__row input[type='checkbox'] {
    position: relative;
    margin-bottom: 10px;
    margin-left: 10px;
}

.search__text_hint {
    position: absolute;
    right: 0px;
    bottom: 2px;
    visibility: hidden;
    transition-property: visibility;
    transition-delay: 2s;
    -moz-transition-property: visibility;
    -moz-transition-delay: 2s;
    -webkit-transition-property: visibility;
    -webkit-transition-delay: 2s;
}

.search__criteria__show_all {
    cursor: pointer;
}
.-basic-suggestions ul.suggestions {
    margin-top: 0.5rem !important;
    position: relative !important;
}

.search__text_container__input {
    width: 100%;
    margin: auto;
    transition-property: width;
    transition-duration: 1s;
    transition-delay: 1s;
    -moz-transition-property: width;
    -moz-transition-duration: 1s;
    -moz-transition-delay: 1s;
    -webkit-transition-property: width;
    -webkit-transition-duration: 1s;
    -webkit-transition-delay: 1s;
}
.search__criteria__tag__container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: relative;
    left: 1px;
    max-width: 250px;
    margin-top: 2px;
    clear: both;
}

.search__criteria__tag {
    border: 1px solid var(--color-primary-dark);
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    padding: 4px;
    background-color: var(--color-primary);
    color: #fff;

    white-space: nowrap;

    margin-bottom: 2px;
    margin-right: 4px;
    margin-top: 2px;
}

.search__criteria__tag span {
    cursor: pointer;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    position: relative;
    display: inline-block;
}

/* Date Related*/

.search__calendar__icon {
    font-size: 1.2rem !important;
    margin-right: 0.2rem;
    margin-left: -0.2rem;
    cursor: pointer;
}

.search__dates_fields [type='checkbox'] {
    margin-left: 0.5rem;
}

.search__dates__fields__separator {
    margin: 0 0.7rem 0 0.5rem;
}

/* Search Results */

.search__results__container {
    box-sizing: content-box;
    border-collapse: collapse;
    border-left: 1px solid #ddd;
}

.search__results__content {
    box-sizing: content-box;
}

.search__results__content__row td {
    border-bottom: 1px solid var(--color-border);
}

.renewals__search__button_footer {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 1.75rem;
    padding: 1rem;
}

.search__filters__select {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 1rem;
}

/*Import & Export*/

.search__import_export__container {
    display: flex;
    padding: 1rem;

    width: 100%;
}

.search__import_export__container label {
    margin-top: 0.3rem;
    padding-right: 1.75rem;
    width: 250px;
}

.-renewal-date i {
    padding-left: 0.5rem;
}

.-export {
    white-space: nowrap;
}

.-required {
    font-size: 1.3rem !important;
    color: red;
    padding-left: 0.2rem;
}

.-import-browse-file {
    font-size: 0.8rem !important;
    height: 22px !important;
}

.-import {
    margin-left: 1rem !important;
}

/*Suggestions */

ul.suggestions {
    max-height: 300px;
}

.suggestions {
    background-color: var(--color-background-group) !important;
    padding: 0.5rem !important;
}

.suggestionClass {
    background-color: #fff !important;
    border: 1px solid var(--color-primary) !important;
    padding: 0.5rem !important;
}

.suggestionClass:hover,
.suggestionHover {
    background-color: var(--color-primary-light) !important;
}
/* Search results */

.search_results__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.search_results__actions.-top {
    margin-bottom: 1.5rem;
}
.search_results__actions.-bottom {
    margin-top: 1.5rem;
}

/* Pagination and row count */
.search__results__rowcount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-block: 1rem;
}
.search__results__rowcount span {
    display: flex;
    align-items: center;
}
.search__results__rowcount a.sortableHeading {
    display: block;
}
.search__results__rowcount .sortableHeading::after {
    content: none;
}

/* Results table */
.resultlist_pagination {
    padding: 2px;
    padding-left: 10px;
    padding-right: 10px;
}

/* Ajax search */

.ajax_search_results__container {
    width: 100%;
    overflow-y: auto;
}
.ajax_search_results__container .linkki_sivulla {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Free search results */

.search_results__wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.search_result__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;

    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
}

.search_result__row[onClick]:hover {
    cursor: pointer;
    background-color: var(--color-background-tabs);
}

.search_result__row .linkki_sivulla {
    text-decoration: none !important;
}

.search_result__row .button.-add {
    order: 99;
    margin-left: auto;
}

.search_result__row i.fa {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 2rem;
    height: 2rem;

    font-size: 1.3rem;
    position: relative;
}

.footnote {
    padding-left: 1.8rem;
}

/* New ip (very similar to free search results) */

.new_ip__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;

    width: 100%;
    padding: 1rem 1.25rem;
}
.new_ip__row + .new_ip__row {
    border-top: 1px solid var(--color-border);
}

.new_ip__button_group {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.new_ip__button_group .button {
    white-space: nowrap;
}
/* Sidebar - Secondary (on the right side of the screen) */

#triagl {
    display: none !important;
}

#side_menu {
    top: 1.9rem !important;
    box-shadow: var(--box-shadow-default);
}

#side_menu a {
    display: block;

    width: 50px;
    height: 50px;
    padding: 0 !important;
    border: 0;
    position: relative;

    color: white;
    text-align: center;
    cursor: pointer;

    vertical-align: middle;

    background-color: var(--color-sidebar-background);
}

#side_menu a:hover {
    background-color: var(--color-sidebar-hover);
}

#side_menu a i {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    color: var(--color-sidebar-foreground);
    font-size: 1rem !important;
}

#side_menu a img {
    width: 15px !important;
    height: auto !important;

    translate: 0 17px;

    opacity: 0.75;
}
#side_menu a:hover img {
    translate: 0 5px;
}

#side_menu sup {
    position: absolute;
}
.sidebar_popup__wrapper {
    position: fixed;
    right: 76px;
    top: 80px;

    border: 1px solid var(--color-border);
    background-color: #fff;
    box-shadow: var(--box-shadow-default);

    overflow: hidden;
    z-index: 11;
}

/* My Greip - Add To Book Marks */
.my_greip__add_bookmarks__wrapper {
    width: 400px;
    height: 400px;
}

.my_greip__add_bookmarks__container {
    border: 0;
}

.my_greip__add_bookmarks__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.my_greip__add_bookmarks__header a {
    text-decoration: none;
}

.my_greip__add_bookmarks {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;

    gap: 1.75rem;
    padding: 1rem 1.25rem;
}

.my_greip__add_bookmarks label {
    display: flex;
    align-items: center;
}

.my_greip__add_bookmarks label:first-child {
    min-width: 7em;
    color: var(--color-text-header);
    font-size: 14px;
    font-weight: 600;
}

.-sharelink-instruction {
    padding-left: 0.5rem;
}

.box__button_container.-my-greip {
    padding-bottom: 1rem;
}

.box__group_header.-my-greip-admin-user-section {
    border-top: 1px solid var(--color-border);
}

/* Add to portfolio */

.add_to_portfolio__wrapper {
    max-width: 500px;
}

.-cases-to-be-added {
    background-color: #fff;
    padding: 0.5rem;

    margin: 0.2rem;
    max-height: 300px;
    max-width: 470px;
    overflow: auto;
}
/* Signatures */

.signature__field_wrapper {
    display: flex;
    gap: 1rem;
}

.signature__field_wrapper + .signature__field_wrapper {
    padding-top: 1rem;
}

.signature__container {
    padding: 1rem;
    border: 1px solid var(--color-border);
}

.signature__container input[type='text'] {
    color: var(--color-text);
}

.signature__grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 0.25rem 2rem;
}

.signature__line {
    border-bottom: 1px solid var(--color-text);
}

.signature__value {
    display: flex;
    align-items: end;
    gap: 0.5rem;

    min-height: 4rem;
}
/* subheadings */

.subheading {
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    width: fit-content;
}

.subheading .subheading_field {
    display: inline-block;
    margin-right: 2rem;
}

.subheading .subheading_description {
    position: relative;
    height: 1.5em;
}

.subheading .subheading_description_truncated {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-height: 1.2em;
    width: fit-content;
    max-width: 750px;
    cursor: pointer;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
}

.subheading .subheading_description_full {
    visibility: hidden;
    opacity: 0;
    white-space: normal;
    cursor: default;
    position: absolute;
    max-height: 400px;
    overflow: auto;
    top: 0;
    left: 0;
    z-index: 5;
    background-color: #fff;
    border: 1px solid var(--color-primary);
    text-transform: none;
    padding: 0.5em;
    width: 750px;
    transition: visibility 0s, opacity 0.5s ease;

    box-shadow: var(--box-shadow-default);
}

.subheading
    .subheading_description:hover
    .subheading_description_full {
    visibility: visible;
    opacity: 1;
}

.subheading
    .subheading_description:hover
    .subheading_description_truncated {
    //display: none;
}
/* Summary */

.summary-wide {
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr);
}

.summary-narrow {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.summary__item {
    padding: 0.5rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    box-sizing: border-box;
    cursor: pointer;
}

.summary__item.-first-column + .summary__item {
    background-color: var(--color-primary-light);
}

.summary__content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;

    min-height: 22px;
    max-width: 300px;
}

.summary__item-name {
    font-size: 13px;
}

.summary__item-value {
    padding-right: 1.5rem !important;
    text-align: right;
    font-size: 16px !important;
}

.summary__item.-first-column .summary__item-value {
    padding-right: 4rem;
    font-size: 16px;
}

.summary__button {
    display: inline-block;
    position: relative;

    margin-top: 0.1rem;
    padding-right: 1.25rem;

    color: var(--color-text-tab-title);
    font-size: 11px;
    text-transform: uppercase;
}

.summary__button::after {
    content: '\f061';

    color: var(--color-primary);
    font-family: var(--font-awesome);
    font-size: 0.7rem;
    line-height: 1;
    text-align: center;

    position: absolute;
    top: 50%;
    right: 0;

    transition: 200ms ease-in-out transform;

    transform: translateY(calc(-50% - 1px));
}

.summary__item:hover .summary__button {
    text-decoration: underline;
}
.summary__item:hover .summary__button::after {
    transform: translateY(calc(-50% - 1px)) translateX(0.2rem);
}
/* Tables */
.table_scroll_container {
    overflow: auto;
    max-height: calc( 100vh - 200px );
}

.bordered {
    width: 100%;
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-collapse: separate;
}

.-outer-borders {
    border: 1px solid var(--color-border);
    border-collapse: collapse;
}

.-outer-borders td,
th {
    border: none;
}

.-no-borders > tr > th,
.-no-borders > tbody > tr > th,
.-no-borders > tr > td,
.-no-borders > tbody > tr > td {
    border: none;
    padding: 2px;
}

.bordered > tr > td,
.bordered > tbody > tr > td,
.bordered_no_width > tr > td,
.bordered_no_width > tbody > tr > td {
    border-bottom: 1px solid var(--color-border);
}

.bordered_no_width {
    border: 1px solid var(--color-border);
    overflow: hidden;
    border-collapse: collapse;
}

table.-background-white {
    background-color: white;
}

table.-alternating-rows {
    border: 1px solid var(--color-border);
    border-collapse: collapse;
}
table.-alternating-rows td {
    border: 1px solid var(--color-border);
}
table.-alternating-rows tr:not(.dark, .light, .resultlist_header) td {
    padding: 0.4rem 0.3rem;
    font-size: 12px;
}
table.-alternating-rows tr:nth-child(odd) {
    background-color: var(--color-background-group);
}
table.-alternating-rows tr:nth-child(even) {
    background-color: white;
}

table.-document-search-results {
    border: 1px solid var(--color-border);
}

table.-document-search-results tr.listrow td {
    background-color: white;
}

table.-document-search-results tr.listrow:hover td {
    background-color: var(--color-primary-light);
}

table.highlight tr.listrow:hover.not(-errorrow) td {
    background-color: var(--color-primary-light);
}

table.highlight tr.-errorrow td {
    color: var(--color-error);
}

table.highlight tr.-errorrow:hover td {
    background-color: var(--color-error-background-light);
}

table.-full-width {
    width: 100%;
}

.cell.-currency {
    min-width: 80px;
}
.dark,
.light {
    background-color: var(--color-background-tabs);
}

.dark tr,
.light tr {
    white-space: nowrap;
}

.dark td,
.dark th,
.light td,
.light th {
    padding: 0.4rem 0.6rem;
}

.dark td,
.dark th,
.light td,
.light th {
    border-bottom: 1px solid var(--color-border);

    color: var(--color-text-table-title);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    text-align: left;
}
.dark td + td,
.dark th + th,
.light td + td,
.light th + th {
    border-left: 1px solid var(--color-border);
}

td.center,
th.center {
    text-align: center;
}

.-less-padding td {
    padding: 0.4rem 0.6rem !important;
}

/* Sortable column headings */

a.sortableHeading {
    cursor: pointer;
    color: var(--color-text-table-title);
    text-decoration: none;
    position: relative;
}
b + .sortableHeading {
    display: none;
}
.sortableHeading::after {
    content: '\f0dd';

    color: var(--color-button-grey);
    font-family: var(--font-awesome);
    font-size: 0.75rem;
    text-align: center;
    float: right;
}
.sortedHeading {
    color: var(--color-text-table-title);
    text-decoration: none;
    cursor: pointer;
}
i.sortedHeading {
    padding-left: 8px;
    color: var(--color-text);
    font-size: 14px;
}
i.sortedHeading.fa-sort-asc {
    translate: 0 4px;
}
i.sortedHeading.fa-sort-desc {
    translate: 0 -4px;
}

/* Table rows */

tr.-total {
    font-weight: 600;
}
tr.-grand-total {
    font-weight: 700;
}

/* Table search */
.table_search__wrapper {
    display: flex;
    justify-content: center;

    margin-block: 1rem;
}

/* Fields */
tr.Field + tr.Field > td {
    border-top: 1px solid var(--color-border);
}

/* Data Tables
* Tables that containt excel-type data.
* For example: search results or Portfolio Content tables.
* These tables will be given functionalities, such as drop column or resize column.
*/
.data_table__wrapper,
.table_container {
    /* Check if this can be replaced with data_table__wrapper */
    margin: inherit;
    padding: 0.25rem;
}
table.data__table {
    width: 100%;
    border-collapse: collapse;
}

table.data__table th,
table.data__table td {
    border: 1px solid var(--color-border);
    padding: 0.4rem 0.4rem;
}

table.data__table td img {
    max-width: 100%;
    height: auto;
}

table.data__table td:has(img) {
    overflow: hidden;
}

/* This header is general */
.data__table th {
    background-color: var(--color-background-tabs);
    color: var(--color-text-table-title);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    text-align: left;
    overflow: hidden; /* Prevent text from overflowing the sticky element*/
    text-overflow: clip;
}

.data__table tr:not(.dark, .light, .drop_column__row) {
    background-color: #ffffff;
}

/*Sticky header for long search results */
.data__table .-table-sticky-header th {
    outline: 1px solid var(--color-border); /*Outline works here better than border*/
    position: sticky;
    top: 0px;
    z-index: 1; /* to ensure transparent rows go under the sticky header */
}

.data__table td,
.data__table td input,
.data__table td select {
    font-size: 13px;
}

/* data tables inside case fields must use smaller fonts */
.FieldValue .data__table td,
.FieldValue .data__table td input,
.FieldValue .data__table td select {
    font-size: 12px;
}

.FieldValue .data__table td input::placeholder {
    font-size: 10.5px;
}

/* Data table functionalities*/
.-table-columns-resizable {
    /* table-layout: fixed; /* Column resizer sets this after initialization */
}

.drop_column__row td {
    border: 0 !important;
}

.data_table__drop__column {
    background-color: transparent !important;
    color: black;
    font-weight: 400;
    font-size: 12px;
    text-decoration: none;
    text-transform: lowercase;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
}

.hidden {
    display: none;
}

.column__resize {
    position: relative;
    border-right: 2px solid var(--color-border);
}
.resizer {
    cursor: ew-resize;
    position: absolute;
    top: 0;
    right: -2px;
    bottom: 0;
    width: 5px;
    background-color: transparent;
    z-index: 999;
}
table.data__table td,
table.data__table td > div {
    max-width: 100%;
    /* Why this? Breaks stuff in random places..
    max-height: 500px;
    overflow: hidden;
    text-overflow: clip;
    */
}

/* Checking if listrow-styles are needed anymore
* Will leave here in case of finding something requiring them
.listrow {
    background-color: white;
}
.listrow + .listrow > td {
    border-top: 1px solid var(--color-border);
}
.listrow > td {
    padding: 0.5rem 0.5rem;
    vertical-align: top;

    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
}
.listrow > td + td {
    border-left: 1px solid var(--color-border);
}
*/
/* Tabs */

.box__tabs_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-background-tabs);
}

.box__tab {
    /* Sometimes buttons are used as tabs, so do a button reset */
    border: 0;
    background-color: transparent;

    padding: 0.75rem 2.5rem;

    color: var(--color-text-tab-title);
    font-size: 11px;
    letter-spacing: 1.25px;
    text-transform: uppercase;
    text-decoration: none !important; /* Sometimes links are used as tabs, so remove underline */

    cursor: pointer;
}

.box__tab[aria-current='true'],
.box__tab.selected_searchbtn,
.box__tab.tabvisited {
    border-bottom: 3px solid var(--color-primary);
    font-weight: 700;
}

.box__tab_button_container {
    margin-left: auto; /* Align the buttons right */
}

.box__tab_button {
    padding-block: 2px !important;
    margin: 0.4rem 0.7rem;
    margin-left: auto; /* Align the button right */
}
/* Workspace */

.workspace__container .box__warning {
    margin-bottom: 2rem;
}

.workspace__primary_link {
}

.workspace_heading {
    margin-bottom: 0.5rem;
}

/* Discussion */

.workspace__discussion_container .box__warning {
    margin-bottom: 0.5rem;
}
.workspace__discussion__comment_wrapper {
    padding: 1rem 1.25rem 0.7rem 3rem;
    position: relative;
}

.workspace__discussion__comment_wrapper
    + .workspace__discussion__comment_wrapper {
    border-top: 1px solid var(--color-border);
}

.workspace__discussion__comment_container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.workspace__discussion__comment_container > * {
    order: 2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.workspace__discussion__comment__commenter_wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.workspace__discussion__message__toggle_container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.workspace__discussion__message__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1.5rem;
}

.workspace__discussion__message__toggle_container i {
    font-size: 13px !important;

}

.workspace__discussion__message__body {
    font-size: 15px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow-x: auto;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    max-width: 90%;
    min-width: 70%;
}

.workspace__discussion__message__body img {
    max-width: 100%;
    height: auto;
}

/* commentlog_0 which is new comment editor area*/
.workspace__discussion__comment_wrapper#discurow_new_commentlog_0 {
    padding-left: 1.25rem;
}
.workspace__discussion__comment_wrapper#discurow_new_commentlog_0::before {
    content: none;
}

#discucom_new_commentlog_0.workspace__discussion__comment_container {
    align-items: stretch;
}

#discucom_new_commentlog_0 .workspace__discussion__message__header {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

#discucom_new_commentlog_0 .workspace__discussion__message__body {
    order: 1;
    background-color: transparent;
    max-width: 100%;
    min-width: 100%;
}

table.documents__table {
    min-width: 70%;
}

table.documents__table tr {
    background-color: var(--color-background-group);*/
}

table.documents__table tr:hover td {
    background-color: var(--color-primary-light);
}



.workspace__discussion__message__body .tox-tinymce {
    margin-top: 0;
}

.workspace__warnings_container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1.25rem;
}

/* Basic Info */

div.Field.-basic-info {
    gap: 12px;
}

div.FieldName.-basic-info {
    flex-shrink: 0;
    width: calc(var(--width-field-label) - 2rem);
    position: relative;
    //white-space: nowrap;
}

div.FieldValue.-basic-info {
    width: calc(
        100% - var(--width-field-label) - var(--content-field-gap) + 5rem
    );
    color: var(--color-text-header);
    font-size: 14px;
}

/* Related items */

.workspace__related_items_container {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding: 1.25rem;
}

.workspace__related_item__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.workspace__related_item__link .reference_item__link {
    padding-inline: 0;
}

.workspace__related_items__search_form_wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.box__group_header.-workspace.-add-related-items {
    border-top: 1px solid var(--color-border);
}

.workspace__related_items__search_form_wrapper {
    padding: 1rem 1.25rem;
}

.workspace__related_items__search_form {
    display: flex;
    flex-direction: row;
}

.recipients__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem 2.5rem;
    padding: 1.25rem;
}

.recipient__container {
    padding: 0.5rem 1rem;
}

.recipients__addition_recipients_container {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding: 1rem;
}

.workspace__recipient__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

.RecipientField {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.25rem;
    min-width: 120px;
}

.RecipientLabel {
    font-weight: 600;
}

.workspace__recipient_row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Override a problematic inline style, which I can't find (and remove) */
.recipients__addition_recipients_container > div {
    height: auto !important;
}

.recipients__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 1.25rem;
}

.-new-recipients {
    padding: 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* Owners */

.owners__container {
    padding: 1.25rem;
}

.owner__select {
    min-width: 220px;
}

.owner__status_select_container select {
    width: 180px;
    font-size: 13px;
}

.owner__info_popup {
    display: flex;
    flex-direction: row-reverse;
}

/* Participants */

.participant__row {
    display: grid;
    grid-template-columns: auto 75px;
    align-items: flex-start;
    gap: 1.25rem;

    max-width: 550px;
}

.participant__column:not(.-supplementary) {
    display: grid;
}
@container (min-width: 600px) {
    .participant__column:not(.-supplementary) {
        display: flex;
        justify-content: space-between;
        gap: 1.2rem;
    }
}
.participant__column.-supplementary {
    display: flex;
    flex-direction: row-reverse;
    gap: 1.15rem;

    position: relative;
    top: 6px;
}

.participant__notifications {
    display: flex;
    flex-direction: column;

    position: relative;
    top: 1px;
}

.participant__status_select {
    width: 145px;
    text-align: left !important;
}

.participant__additional {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.participant__icon_toggles {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.participant__search_field {
    transition-property: width;
    transition-duration: 1s;
    transition-delay: 1s;
    -moz-transition-property: width;
    -moz-transition-duration: 1s;
    -moz-transition-delay: 1s;
    -webkit-transition-property: width;
    -webkit-transition-duration: 1s;
    -webkit-transition-delay: 1s;
}

.participant__name .chat__participant__label {
    margin-top: 0.4rem;
}

.-add-new-participant {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.participants__search-summary {
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    top: 2rem;
    margin-left: 0.5rem;
}

/* Workspace Info Popups */
.workspace__ownerinfo,
.workspace__statusinfo {
    position: fixed;
    width: 600px;
    height: 200px;
    top: 50%;
    margin-inline: -5%;

    translate: 0 -50%;

    background-color: #ffffff;
    overflow: auto;
    z-index: 11;

    border: 1px solid #ddd;
    box-shadow: var(--box-shadow-default);
}

.workspace__statusinfo {
    width: 500px;
    height: auto;
    position: absolute;
    top: 55%;
    left: 35%;
}

.workspace_ownerinfo__header,
.workspace__participant_info__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-background-tabs);
    color: var(--color-text-table-title);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.65px;
    text-transform: uppercase;
    text-align: left;
}

.workspace__participant_info {
    position: fixed;
    width: 600px;
    height: 200px;
    top: 50%;
    left: 40%;
    translate: -50% -50%;

    vertical-align: middle;
    background-color: #ffffff;
    overflow: auto;
    z-index: 11;

    border: 1px solid #ddd;
    box-shadow: var(--box-shadow-default);
}

.workspace__ownerinfo strong,
.workspace__participant_info strong,
.workspace__statusinfo strong {
    cursor: pointer;
}

.workspace_ownerinfo__content,
.participant_ownerinfo__content {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;

    padding: 1rem;
}

/*Misc */

.action_at_extra {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;

    padding-left: 1.75rem;
}

.-status-change {
    display: inline-flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 0.5rem 0;

    font-weight: bold;
    color: var(--color-text-tab-title);
}

/* Add Document */

.Field.-limit-search {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    gap: 0.25rem;
    width: 100%;
}

.FieldValue.-limit-search-options {
    padding-left: 0.4rem;
    display: block;
}

.add__document__wrapper {
    border: 1px solid #ddd;
    background-color: var(--color-background-group);
    margin: 0;
    padding: 0.25rem;
}

.workspace__discussion__add_document {
    display: flex;
    justify-content: flex-end;
}

/*Override autoSuggestions.css*/
.recipients__addition_recipients_container ul.suggestions {
    margin-top: 1.5rem !important;
    position: relative !important;
}

/*Status labels*/
div.active,
div.fyi,
div.waiting,
div.hold,
div.done,
div.removed {
    display: inline-block;
    min-width: 7.4rem;
    padding: 0.25rem 0.5rem;
}

.box__button_container.-workspace {
    padding-bottom: 1rem;
}

/* Related to -section remove buttons*/
.workspace__related_item__remove_input + .fa + .fa {
    display: none;
}
.workspace__related_item__remove_input:checked + .fa {
    display: none;
}
.workspace__related_item__remove_input:checked + .fa + .fa {
    display: inline-block;
}
.workspace__related_item__container.-remove-selected .reference_item__text {
    text-decoration: line-through;
}

/* Distinguish own comments from others comments */

/*Own comments*/

.workspace__discussion__message__body.-comment-side-right {
    background-color: var(--color-primary-light);
}

.workspace__discussion__comment_container.-comment-side-right {
    justify-content: flex-end;
    align-items: flex-end;
}

.workspace__discussion__message__header.-comment-side-right {
    justify-content: flex-end;
    align-items: flex-end;
}

/*Others comments*/
.workspace__discussion__comment_wrapper.-comment-side-left::before {
    content: '\f007';

    display: block;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;

    background-color: #ddd;

    color: white;
    font-family: var(--font-awesome);
    font-size: 1rem;
    line-height: 1.9rem;
    text-align: center;

    position: absolute;
    top: 0.6rem;
    left: 0.4rem;
}

.workspace__discussion__message__body.-comment-side-left {
    background-color: #f2f2f2;
}

.workspace__discussion__comment_container.-comment-side-left {
    justify-content: flex-start;
    align-items: flex-start;
}

.workspace__discussion__message__header.-comment-side-left {
    width: 100%;
}
/* Font faces */

@font-face {
    font-family: 'Open Sans';
    src: url(../fonts/OpenSans-Light.ttf);
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url(../fonts/OpenSans-Regular.ttf);
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url(../fonts/OpenSans-Italic.ttf);
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Open Sans';
    src: url(../fonts/OpenSans-Medium.ttf);
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url(../fonts/OpenSans-SemiBold.ttf);
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url(../fonts/OpenSans-Bold.ttf);
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url(../fonts/OpenSans-BoldItalic.ttf);
    font-weight: 700;
    font-style: italic;
}

.link_smaller {
FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #4d4d4d; TEXT-DECORATION: underline;
}
.pikkulinkki {
FONT-WEIGHT: normal; FONT-SIZE: 8pt; COLOR: #4d4d4d; TEXT-DECORATION: none;
}
.pikkulinkki:hover {
FONT-WEIGHT: normal; FONT-SIZE: 8pt; COLOR: #4d4d4d; TEXT-DECORATION: underline;
}
.menu_sininen {
FONT-WEIGHT: normal; FONT-SIZE: 9pt; COLOR: #2f317e; TEXT-DECORATION: underline;
}
.menu_sininen:hover {
FONT-WEIGHT: normal; FONT-SIZE: 9pt; COLOR: #293480; TEXT-DECORATION: underline;
}
.menu_harmaa {
FONT-WEIGHT: normal; FONT-SIZE: 9pt; COLOR: #333333; TEXT-DECORATION: underline;
}
.menu_harmaa:hover {
FONT-WEIGHT: normal; FONT-SIZE: 9pt; COLOR: #333333; TEXT-DECORATION: underline;
}
.otsikko_linkki {
FONT-WEIGHT: bold; FONT-SIZE: 15pt; COLOR: #4d4d4d; TEXT-DECORATION: underline;
}
.otsikko_linkki:hover {
FONT-WEIGHT: bold; FONT-SIZE: 15pt; COLOR: #4d4d4d; TEXT-DECORATION: underline;
}
.etusivun_otsikko {
FONT-WEIGHT: bold; FONT-SIZE: 13pt; COLOR: #00846a; TEXT-DECORATION: none;
}
.etusivun_otsikko_linkki {
FONT-WEIGHT: bold; FONT-SIZE: 13pt; COLOR: #00846a; TEXT-DECORATION: none;
}
.etusivun_otsikko_linkki:hover {
FONT-WEIGHT: bold; FONT-SIZE: 13pt; COLOR: #00846a; TEXT-DECORATION: underline;
}
.alaotsikko {
FONT-WEIGHT: bold; FONT-SIZE: 13pt; COLOR: #4d4d4d; TEXT-DECORATION: none;
}
h3, .alaotsikko2 {
FONT-WEIGHT: bold; FONT-SIZE: 11pt; COLOR: #000000; TEXT-DECORATION: none;
}
.alaotsikko_thin {
FONT-WEIGHT: normal; FONT-SIZE: 9pt; COLOR: #008457; TEXT-DECORATION: none;
}
h2, .alaotsikko_news {
FONT-WEIGHT: bold; FONT-SIZE: 13pt; COLOR: var(--color-primary); TEXT-DECORATION: none;
}
.green_header {
FONT-WEIGHT: bold; FONT-SIZE: 11pt; var(--color-primary); TEXT-DECORATION: none;
}

.otsikko_small {
FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: #565758; TEXT-DECORATION: none;
}
.otsikko_medium {
FONT-WEIGHT: bold; FONT-SIZE: 13pt; COLOR: #4d4d4d; TEXT-DECORATION: none;
}

figcaption {
font-style: oblique; font-size: 9pt;
}

.cost_confirmed input[type="text"] {
color:gray
}

.cost_confirmed .cost_select_style {
color:gray
}

.noborder
{
width: 700px;
}

.dialog
{
border: 1px solid black;
background-color: white;
border-radius: 6px;
box-shadow: 8px 8px 8px 0px rgba(0,0,0,0.5);
}

.shadow
{
box-shadow: 8px 8px 8px 0px rgba(0,0,0,0.5);
}


.select_style
{
width:200px;
background: white;
width: 200px;
padding: 1px;
border: 1px solid #ccc;
height: 25px;
}


.renewal_table
{
border: 6px solid #EDEDED;
background-color: #FFFFFF;
-moz-border-radius: 16px;
-webkit-border-radius: 16px;
border-radius: 16px;


}

.textbox
{
FONT-WEIGHT: normal; FONT-SIZE: 9pt; COLOR: #000000; TEXT-DECORATION: none;
width: 700px;
border: 1px solid #565758;
background-color: #ffffff;
padding: 4px;
text-align: left;
}



.textfields
{
color:black;
font: bold 9pt Tahoma, Arial, Helvetica, sans-serif;

border: 1px solid #3d3d3d;
}


.topborder
{
border-top: 1px solid var(--color-border);
}

.err
{
font: bold 9pt Arial;
color : red;
margin-bottom: 9px;
text-align: center;
}

select:enabled:not([class])
{
cursor:pointer;
background-color: #ffffff;
}


th a:hover, td a:hover
{
text-decoration: underline;
}

.text2
{
color : #3d3d3d;
}

.end
{
border-right: 1px solid #808080;
}

.smallcaption
{
font: normal 7pt Arial;
color: #606060;
}

.user
{
font: normal 8pt Arial;
color: #606060;
}

.lang
{
font: normal 7pt Arial;
}

.expander
{
cursor: pointer;
}

.caseinfo td
{
padding-left: 2px;
padding-right: 2px;
}



.clickableCell
{
cursor: pointer;
text-decoration: none;
color: black;

}

.clickableCell:hover
{
cursor: pointer;
color: black;
}

.staticCell
{
cursor: not-allowed;
color: #404040;
}

#faqdiv
{
font: normal 9pt Arial;
position: fixed;
right: 70px;
top: 0px;
width: 400px;
height: 600px;
overflow: auto;
border: 1px solid #C2C2C2;
background-color: white;
box-shadow: 8px 8px 8px 0px rgba(0,0,0,0.5);
border-radius: 6px;

}

.faqheading
{
font: bold 10pt Arial;
color: #606060;
}

.faqtext
{
font: normal 9pt Arial;
}

.faqrating
{
font: normal 7pt Arial;
color: #606060;
}

.rating,
.rating a:hover,
.rating .current
{
background: url(/secure/app.dll/public/img/ratingstars.png) no-repeat 0 0;
}
.rating
{
position: relative;
width: 75px;
height: 15px;
overflow: hidden;
list-style: none;
list-style-image: none;
margin: 0px;
padding: 0px;
background-position: top left;
}

.rating li
{
display: inline;
padding-left: 0px;
padding-top: 0px;
padding-bottom: 0px;
}

.rating a,
.rating .current
{
position: absolute;
top: 0px;
left: 0px;
text-indent: -9000px;
height: 15px;
line-height: 15px;
outline: none;
overflow: hidden;
border: none;
font-size: 15px;
}

.rating a:hover
{
background-position: left bottom;
}
/* Set each section to the appropriate width, stacking so leftmost is topmost */
.rating a.rate1
{
width: 20%;
z-index: 6;
}
.rating a.rate2
{
width: 40%;
z-index: 5;
}
.rating a.rate3
{
width: 60%;
z-index: 4;
}
.rating a.rate4
{
width: 80%;
z-index: 3;
}
.rating a.rate5
{
width: 100%;
z-index: 2;
}
.rating .current
{
z-index: 1;
background-position: left center;
}

#favicon
{
position: fixed;
right: 25px;
top: 65px;
width: 32px;
z-index:2;
}

.favicon_unselected
{
padding: 3px;
}

#token_expiry_warning
{
display: none;
position: fixed;
border: 1px solid #a0a0a0;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
width: 300px;
padding: 10px;
text-align: center;
top: 10px;
left: 50%;
opacity: 0.8;
filter: alpha(opacity=80);
background-color: #F4F43A;
margin-left: -150px;
z-index: 15;
}

#token_expiry_error
{
display: none;
position: fixed;
border: 1px solid #a0a0a0;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
width: 300px;
padding: 20px;
text-align: center;
top: 10px;
left: 50%;
opacity: 0.9;
filter: alpha(opacity=90);
background-color: #F78680;
margin-left: -150px;
z-index: 16;
}

#upload_bar_blank {
border: solid 1px #000;
height: 20px;
width: 300px;
text-align: left;
}

#upload_bar_blank, #hidden_iframe {
display: none;
}



.select_style
{
width:180px;
background: transparent;
padding: 1px;
border: 1px solid #ccc;
height: 25px;


}

.drag_handle
{
cursor: move;
padding-left: 4px;
padding-right: 4px;
}

.searchref
{
border: 6px solid #EDEDED;;
background-color: #FFFFFF;
-moz-border-radius: 16px;
-webkit-border-radius: 16px;
border-radius: 16px;


}

input[type=file]
{
font: bold 8pt Arial;
background-color:#f7f7f7;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}



.search_form
{
border: 1px solid #8E8C8C;
border-left: 1px solid #8E8C8C;
border-bottom: 1px solid #747474;
border-right: 1px solid #747474;
-moz-border-radius: 16px;
-webkit-border-radius: 16px;
border-radius: 16px;
background-color: white;
color: black;
box-shadow: 8px 8px 8px 0px #C2C2C2;


}

.side_menu
{
border: 1px solid #DFDFDF;
background-color: white;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
z-index:0;
position: fixed;
top:0px;
right:0px;
height:400px;
width:70px;
}

table td,
.nobreak
{
page-break-inside: avoid;
vertical-align: top;
}

.nobreak *
{
page-break-before: avoid;
page-break-after: avoid;
page-break-inside: avoid;
}

.strike
{
text-decoration: line-through !important;
opacity: 0.4;
filter: alpha(opacity=40);
}

.virtual
{
opacity: 0.6;
filter: alpha(opacity=60);
}

.current
{
font-weight: 600;
background-color: #E5FBD7;
}


.note
{
background-color: #ffffa0;
font-style: oblique;
font-size: 8pt;
padding: 2px;
margin: 4px;
}

.morelinks
{
cursor: pointer;
border: 1px dotted #a0a0a0;
height: 16px;
width: 95%;
background-image: url(/secure/app.dll/public/img/arrowdown.png);
background-repeat: no-repeat;
background-position: center;
}

.morelinks:active
{
background-color: #f0f0a0;
border: 1px solid #808080;
}

.morelinks:hover
{
border: 1px solid #808080;
}

.ssolink
{
cursor: pointer;
border: 1px dotted #e0e0ff;
padding: 10px;
}

.ssolink:hover
{
border: 1px dotted #8080ff;
padding: 11px 9px 9px 11px;
}

.optiongray
{
height: 28px;
border: 1px solid #4F4F4F;
border-top: 1px solid #A8A8A8;
border-left: 1px solid #A8A8A8;
width: 100%;
}

.incsearch_table {
border-bottom-style:solid;
border-bottom-width:1px;
border-bottom-color:#c0c0c0;
border-collapse:collapse;
transition: all 0.3s ease;
cursor:pointer;
}


.incsearch_removed {
color:#808080;
background-color:#efefef;
}

.guide_opt {
color:#686868;
}

.basic_opt {
color:#000000;
}

.placeholder
{
display: inline-block;
border: 1px dotted #A0A0A0;
padding: 2px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}

@media print
{
.noprint { display: none; }
}

.wsinput
{
border: 1px solid #D4D4D4;

-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;


}


/* Style the tab */
div.tab {
overflow: hidden;


}

/* Style the buttons inside the tab */
div.tab a {
background: white;
//border-bottom : 1px solid #BAB7B7;
float: left;
cursor: pointer;
padding: 6px 11px;
transition: 0.5s;
border: 1px solid #8C8C8C;
border-bottom: 1px solid #777777;
color:#313131;
TEXT-DECORATION: none;
font: bold 9pt Arial;
border-radius: 5px 5px 0px 0px;
}

/* Change background color of buttons on hover */
.tablinks:hover {
background-color: #777777;
color: white;
}


div.tab a.tabvisited_gray {
background-color: #797979;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 6px 11px;
transition: 0.5s;
border: 1px solid #8C8C8C;
border-bottom: 1px solid #777777;
TEXT-DECORATION: none;
color:white;

border-radius: 7px 7px 0px 0px;
}

.pagination a[disabled]:hover {
cursor: not-allowed;
}

/* ------BUTTONS---------- */


input[type=button]:disabled,
input[type=submit]:disabled,
input[type=reset]:disabled
.actionButton:disabled  {
background-color: #D3D3D3;
color:#7D7D7D;
cursor: not-allowed;
}


input[type=button].small
{

display: inline-block;
padding: 4px 14px;
font-size: 11px;
cursor: pointer;
text-align: center;
text-decoration: none;
outline: none;
color:black;
background-color: #F3F1F1;
border: none;
border-radius: 7px;
box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.5);
margin-bottom:5px;
FONT-WEIGHT: bold;

}
/* ------END OF BUTTONS---------- */

/* ------Font awesome icons---------- */


.static_icons
{
color:#6A6969;
cursor:pointer;
}
.fauser_icons
{
color:#6A6969;
cursor:pointer;
margin-right:3px;
}
.faactive
{
color:#575757;
cursor:pointer;
}

.fauser_icons:hover:not([disabled])
,.action_icons:hover:not([disabled])
,.static_icons:hover:not([disabled])
,.fattention:hover:not([disabled])
{
color:#575757;
}
.fauser_icons:active, .action_icons:active, .static_icons:active
{
transform: translateY(4px);
}

/* ------END OF Font awesome icons---------- */

.sticky_top
{
padding: 4px;
z-index: 1;
position: sticky;
top: -10px;
}

/*
* TinyMCE 5.x has rather large toolbar and no easy way to make it smaller.
* https://github.com/tinymce/tinymce/issues/4777#issuecomment-722207027
*/
.tox .tox-tbtn {
transform: scale(0.9) !important; /* you can set the scale that you want */
height: unset !important;
width: unset !important;
margin: 2px 0 3px 0 !important;
}
.tox .tox-tbtn--bespoke .tox-tbtn__select-label {
width: unset !important;
}
.tox .tox-toolbar, .tox .tox-toolbar__overflow, .tox .tox-toolbar__primary {
/* change the background y-positionning to : bottom 0*/
//background: url("data:image/svg+xml;charset=utf8,%3Csvg height='35px' viewBox='0 0 40 35px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='34px' width='100' height='1' fill='%23cccccc'/%3E%3C/svg%3E") left 0 bottom 0 #fff !important;
}

.tox .tox-tbtn,
.tox .tox-split-button {
margin: 0 !important;
}

.tox-editor-header {
padding: 0 !important;
}

.tox-toolbar__group {
height: 29px !important;
padding: 0 4px 0 4px !important;
}

/* Tox overrides */
.tox-tinymce,
.tox-toolbar__group {
border-color: var(--color-border) !important;
}
.tox-tinymce {
width: 100% !important;
min-height: 150px !important;
border-radius: 0 !important;
/*margin-top: 1rem; */
/*margin-bottom: 1rem; */
}

.light_tbl
{
background: #C1EAAA;
}

.dark_header
{
background: #64B238;
font-variant: small-caps;
color:white;
font: bold 10pt Arial;
border-bottom : 2px solid #A5A5A4;
padding: 4px;
}

.grtbl
{
border-top: 4px solid #75C043;
border-left: 1px solid #75C043;
border-bottom: 2px solid #75C043;
border-right: 2px solid #75C043;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
box-shadow: 6px 6px 6px 0px #C2C2C2;
background: white;
width: 100%;
}

.select_chartadv_style
{
width:210px;
background: transparent;
padding: 1px;
border: 1px solid #ccc;
height: 85px;
}

.hover_cell:hover, .highlight tr:hover:not(.nohighlight)
{
background-color: var(--color-primary-light);
// cursor:pointer; // why?
color:black;

}

strong
{
font-weight: bold;

}

.favicon_selected
{
border: 3px solid #75CE38;
}

#upload_bar_color {
background-color: #76CF39;
height: 20px;
width: 0px;
}

.frontpagetbl
{
border: 1px solid var(--color-primary);
background-color: white;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}


.incsearch_table_select {
border-bottom-style:solid;
border-bottom-width:1px;
border-bottom-color:#c0c0c0;
border-collapse:collapse;

background-color:#def0bc;
}

.incsearch_table:hover {
background-color: #52AD15;
}

.infotag
{
max-width: 8rem;
border: 1px solid #4A961B;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
background-color: white;
font-variant: small-caps;
font-weight: bold;
padding: 4px;
color: #4A961B;
text-align: center;
}


.icon-bar {
width: 50px;
background-color: #75C043;
cursor:pointer;
position: fixed;
right: 0px;
top: 0px;
z-index:1;
}


.icon-bar a:hover{
background-color: #419409;
font-size: 25px;
padding-top:7px;
padding-bottom:5px;
border-bottom: 1px solid #FAFAFA;
border-top: 1px solid #FAFAFA;
cursor:pointer;
}


div.tab a.tabvisited {
background-color: #64B238;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 6px 11px;
transition: 0.5s;
border: 1px solid #8C8C8C;
border-bottom: 1px solid #777777;
TEXT-DECORATION: none;
color:white;

border-radius: 7px 7px 0px 0px;
}

/* ------Font awesome icons---------- */

.action_icons
{
background: #87CE50;
color:white;
cursor:pointer;
padding:4px;
padding-left:5px;
padding-right:5px;
border-radius: 20px;
margin:3px;
box-shadow: 1px 1px 1px 1px rgba(0,0,0,0.5);
}


/* ------END OF Font awesome icons---------- */

.compfav
{
border: 6px solid #75C043;
background-color:white;
color:#555555;
}
/* #### Mobile Phones Portrait or Landscape #### */
@media all and (max-height: 350px){
.icon-bar {
width: 50px;
background-color: #75C043;
cursor:pointer;
position: absolute;
right: 0px;
top: 0px;
z-index:1;
}
}
#triaglleft, .sbackground
{
background-color: #75C043;
}
#triagl
{
border :  1px solid #6DCF38;
background-color: #75C043;
}
.sborder
{
border :  1px solid #6DCF38;
}

.btn-group input[type=button] {
background-color: white; /* Green background */
border: 1px solid #75C043; /* Green border */
border-bottom: 0px solid #75C043; /* Green border */
color: #3D3F3C;
padding: 10px 24px; /* Some padding */
cursor: pointer; /* Pointer/hand icon */
float: left; /* Float the buttons side by side */
border-radius: 0px;
font: bold 9pt Arial;
box-shadow: 0px 0px 0px 0px white;

}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
display: none;
position: fixed;
background-color: white;
width:150px;
text-align: left;
color: #3D3F3C;
border: 1px solid #75C043; /* Green border */
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;

}
.fattention
{
color:var(--color-primary);
cursor:help;
}
/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */

.pswp {
    --pswp-bg: #000;
    --pswp-placeholder-bg: #222;

    --pswp-root-z-index: 100000;

    --pswp-preloader-color: rgba(79, 79, 79, 0.4);
    --pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);

    /* defined via js:
  --pswp-transition-duration: 333ms; */

    --pswp-icon-color: #fff;
    --pswp-icon-color-secondary: #4f4f4f;
    --pswp-icon-stroke-color: #4f4f4f;
    --pswp-icon-stroke-width: 2px;

    --pswp-error-text-color: var(--pswp-icon-color);
}

/*
	Styles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions)
*/

.pswp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--pswp-root-z-index);
    display: none;
    touch-action: none;
    outline: 0;
    opacity: 0.003;
    contain: layout style size;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Prevents focus outline on the root element,
  (it may be focused initially) */
.pswp:focus {
    outline: 0;
}

.pswp * {
    box-sizing: border-box;
}

.pswp img {
    max-width: none;
}

.pswp--open {
    display: block;
}

.pswp,
.pswp__bg {
    transform: translateZ(0);
    will-change: opacity;
}

.pswp__bg {
    opacity: 0.005;
    background: var(--pswp-bg);
}

.pswp,
.pswp__scroll-wrap {
    overflow: hidden;
}

.pswp__scroll-wrap,
.pswp__bg,
.pswp__container,
.pswp__item,
.pswp__content,
.pswp__img,
.pswp__zoom-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pswp__img,
.pswp__zoom-wrap {
    width: auto;
    height: auto;
}

.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img {
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    cursor: zoom-in;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img {
    cursor: move;
    cursor: -webkit-grab;
    cursor: -moz-grab;
    cursor: grab;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {
    cursor: -webkit-grabbing;
    cursor: -moz-grabbing;
    cursor: grabbing;
}

/* :active to override grabbing cursor */
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,
.pswp__img {
    cursor: -webkit-zoom-out;
    cursor: -moz-zoom-out;
    cursor: zoom-out;
}

/* Prevent selection and tap highlights */
.pswp__container,
.pswp__img,
.pswp__button,
.pswp__counter {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.pswp__item {
    /* z-index for fade transition */
    z-index: 1;
    overflow: hidden;
}

.pswp__hidden {
    display: none !important;
}

/* Allow to click through pswp__content element, but not its children */
.pswp__content {
    pointer-events: none;
}
.pswp__content > * {
    pointer-events: auto;
}

/*

  PhotoSwipe UI

*/

/*
	Error message appears when image is not loaded
	(JS option errorMsg controls markup)
*/
.pswp__error-msg-container {
    display: grid;
}
.pswp__error-msg {
    margin: auto;
    font-size: 1em;
    line-height: 1;
    color: var(--pswp-error-text-color);
}

/*
class pswp__hide-on-close is applied to elements that
should hide (for example fade out) when PhotoSwipe is closed
and show (for example fade in) when PhotoSwipe is opened
 */
.pswp .pswp__hide-on-close {
    opacity: 0.005;
    will-change: opacity;
    transition: opacity var(--pswp-transition-duration)
        cubic-bezier(0.4, 0, 0.22, 1);
    z-index: 10; /* always overlap slide content */
    pointer-events: none; /* hidden elements should not be clickable */
}

/* class pswp--ui-visible is added when opening or closing transition starts */
.pswp--ui-visible .pswp__hide-on-close {
    opacity: 1;
    pointer-events: auto;
}

/* <button> styles, including css reset */
.pswp__button {
    position: relative;
    display: block;
    width: 50px;
    height: 60px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 0.85;
    -webkit-appearance: none;
    -webkit-touch-callout: none;
}

.pswp__button:hover,
.pswp__button:active,
.pswp__button:focus {
    transition: none;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
}

.pswp__button:disabled {
    opacity: 0.3;
    cursor: auto;
}

.pswp__icn {
    fill: var(--pswp-icon-color);
    color: var(--pswp-icon-color-secondary);
}

.pswp__icn {
    position: absolute;
    top: 14px;
    left: 9px;
    width: 32px;
    height: 32px;
    overflow: hidden;
    pointer-events: none;
}

.pswp__icn-shadow {
    stroke: var(--pswp-icon-stroke-color);
    stroke-width: var(--pswp-icon-stroke-width);
    fill: none;
}

.pswp__icn:focus {
    outline: 0;
}

/*
	div element that matches size of large image,
	large image loads on top of it,
	used when msrc is not provided
*/
div.pswp__img--placeholder,
.pswp__img--with-bg {
    background: var(--pswp-placeholder-bg);
}

.pswp__top-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 60px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    z-index: 10;

    /* allow events to pass through top bar itself */
    pointer-events: none !important;
}
.pswp__top-bar > * {
    pointer-events: auto;
    /* this makes transition significantly more smooth,
     even though inner elements are not animated */
    will-change: opacity;
}

/*

  Close button

*/
.pswp__button--close {
    margin-right: 6px;
}

/*

  Arrow buttons

*/
.pswp__button--arrow {
    position: absolute;
    top: 0;
    width: 75px;
    height: 100px;
    top: 50%;
    margin-top: -50px;
}

.pswp__button--arrow:disabled {
    display: none;
    cursor: default;
}

.pswp__button--arrow .pswp__icn {
    top: 50%;
    margin-top: -30px;
    width: 60px;
    height: 60px;
    background: none;
    border-radius: 0;
}

.pswp--one-slide .pswp__button--arrow {
    display: none;
}

/* hide arrows on touch screens */
.pswp--touch .pswp__button--arrow {
    visibility: hidden;
}

/* show arrows only after mouse was used */
.pswp--has_mouse .pswp__button--arrow {
    visibility: visible;
}

.pswp__button--arrow--prev {
    right: auto;
    left: 0px;
}

.pswp__button--arrow--next {
    right: 0px;
}
.pswp__button--arrow--next .pswp__icn {
    left: auto;
    right: 14px;
    /* flip horizontally */
    transform: scale(-1, 1);
}

/*

  Zoom button

*/
.pswp__button--zoom {
    display: none;
}

.pswp--zoom-allowed .pswp__button--zoom {
    display: block;
}

/* "+" => "-" */
.pswp--zoomed-in .pswp__zoom-icn-bar-v {
    display: none;
}

/*

  Loading indicator

*/
.pswp__preloader {
    position: relative;
    overflow: hidden;
    width: 50px;
    height: 60px;
    margin-right: auto;
}

.pswp__preloader .pswp__icn {
    opacity: 0;
    transition: opacity 0.2s linear;
    animation: pswp-clockwise 600ms linear infinite;
}

.pswp__preloader--active .pswp__icn {
    opacity: 0.85;
}

@keyframes pswp-clockwise {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/*

  "1 of 10" counter

*/
.pswp__counter {
    height: 30px;
    margin-top: 15px;
    margin-inline-start: 20px;
    font-size: 14px;
    line-height: 30px;
    color: var(--pswp-icon-color);
    text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
    opacity: 0.85;
}

.pswp--one-slide .pswp__counter {
    display: none;
}
:root {
    --color-primary: #203c34;
    --color-primary-dark: #154037;
    --color-primary-light: hsl(from var(--color-primary) h s 85%);
    --color-brand-primary: var(--color-primary);
    --color-link: hsl(var(--color-primary) h s 50%);
    --color-page-background: #eceae3;
    --color-logo-background: #dad5c3;
    --color-siteheader-background: #dad5c3;
    --color-sitefooter-background: white;
    --color-sidebar-background: #154037;
    --color-sidebar-hover: #305950;
    --color-text-selected: #3d5170;
    --color-background-selected: hsl(from var(--color-primary) h s 85%);
    --color-leftmenu-background: linear-gradient(#154037, #305950);
    --color-leftmenu-hover-background: linear-gradient(to right, #1a4d42, #2c534b);
    --color-leftmenu-selected-color: var(--color-primary-light);
}
