@font-face {
    font-family: "RedHatDisplay";
    src: url("../fonts/RedHatDisplay-VariableFont_wght.ttf");
}

:root {
    --background-color: #ffffff;
    --background-color-alt: #F9F9F9;
    --text-color: #444444;
    --button-background-color: #074889;
    --button-text-color: #ffffff;
    --heading-text-color: #074889;
    --header-background-color: transparent;
    --header-text-color: #ffffff;
    --header-alt-background-color: rgba(255, 255, 255, 0.8);
    --header-alt-text-color: #444444;
    --footer-background-color: #074889;
    --footer-text-color: #ffffff;
    --a-text-color: #074889;
    --a-hover-text-color: #2196f3;
    --body-max-width: 1440px;
    --form-max-width: 1000px;
    --section-even-background-color: #f9f9f9;
    --section-odd-background-color: #ffffff;
    --sub-text-color: #888888;
    --disabled-button-background: #E0E0E0;
    --header-button-background: #074889;
    --toast-background-color: rgba(7, 72, 137, 0.8);
    --process-header: rgba(245, 245, 245, 0.8);
}

/*@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #000000;
        --background-color-alt: #313131;
        --text-color: #fafafa;
        --button-background-color: #074889;
        --button-text-color: #ffffff;
        --heading-text-color: #1e88e5;
        --header-background-color: transparent;
        --header-text-color: #ffffff;
        --header-alt-background-color: rgba(0, 0, 0, 0.8);
        --header-alt-text-color: #fafafa;
        --footer-background-color: #074889;
        --footer-text-color: #ffffff;
        --a-text-color: #1e88e5;
        --a-hover-text-color: #42a5f5;
        --body-max-width: 1440px;
        --form-max-width: 1000px;
        --section-even-background-color: #000000;
        --section-odd-background-color: #212121;
        --sub-text-color: #bdbdbd;
        --disabled-button-background: #616161;
        --header-button-background: #1e88e5;
        --toast-background-color: rgba(7, 72, 137, 0.8);
        --process-header: rgba(33, 33, 33, 0.8);
    }
}*/

* {
    box-sizing: border-box;
    font-family: "RedHatDisplay";
}

body {
    margin: 0px;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: var(--text-color);
    background-color: var(--background-color);
}

nav a,
section a {
    transition: color 0.2s ease-in-out;
    color: var(--a-text-color);
    cursor: pointer;
}

i {
    padding-right: 0.5em;
}

button i {
    padding-right: 0.5em;
}

button.delete {
    background-color: #F44336 !important;
    color: var(--button-text-color) !important;
}

button.delete:not(:disabled):hover {
    background-color: #EF5350 !important;
}

button.delete:not(:disabled):active {
    background-color: #E53935 !important;
}

button.no-spacing i {
    padding: 0px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

nav {
    position: fixed;
    width: 100%;
    display: block;
    background-color: var(--header-background-color);
    color: var(--header-text-color);
    z-index: 999;
    transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
}

nav>div {
    padding: 24px 84px;
}

nav.backoffice>div {
    padding: 24px 1em;
}

nav #new_messages {
    margin-left: 0.5em;
    color: #F44336;
    font-weight: bold;
}

nav img {
    height: 54px;
    filter: brightness(0) invert(1);
    transition: filter 0.25s ease-in-out;
    /*-webkit-filter: drop-shadow(0px 0px 1px #fafafa);
    filter: drop-shadow(0px 0px 1px #fafafa);*/
}

nav .links>a {
    color: var(--header-text-color);
    padding: 6px 0px;
    margin: 0px 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
}

nav .links>button,
nav .links>.button {
    margin-left: 12px;
    color: var(--button-text-color) !important;
    background-color: var(--header-button-background) !important;
    padding: 0px 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
}

nav .links>a:not(:disabled, .button):hover {
    color: var(--a-hover-text-color) !important;
}

nav.alt {
    background-color: var(--header-alt-background-color);
    color: var(--header-alt-text-color);
    box-shadow: 0px -5px 10px 1px #000;
    backdrop-filter: saturate(100%) blur(20px);
    -webkit-backdrop-filter: saturate(100%) blur(20px);
}

nav.alt img {
    filter: unset;
}

nav.alt .btn-line {
    background: var(--text-color);
}

nav.alt button {
    background-color: var(--button-background-color);
    color: var(--button-text-color) !important;
    transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
}

nav.alt .links>a:not(.button) {
    color: var(--header-alt-text-color);
}

nav.alt.open .links>a {
    color: var(--header-alt-text-color);
}

a:not(:disabled):hover {
    color: var(--a-hover-text-color) !important;
}

.sub-nav {
    padding-top: 8em;
}

.sub-nav a:not(:first-child) {
    padding: 0em 0.5em;
}

.sub-nav a {
    padding-right: 0.5em;
}

section {
    padding: 108px 84px;
    max-width: var(--body-max-width);
    margin: auto;
}

.anchor {
    scroll-margin-top: 100px;
}

.tc {
    padding-top: 108px;
}

.tc p {
    text-indent: 1.5em;
}

.tc li {
    margin-left: 1.5em;
}

.form,
.login-form {
    padding-top: 7em;
}

section:nth-child(even) {
    background-color: var(--section-even-background-color);
}

section:nth-child(odd) {
    background-color: var(--section-odd-background-color);
}

label {
    cursor: pointer;
}

section h1 {
    color: var(--heading-text-color);
    font-weight: 700;
    font-size: 40px;
    line-height: 52.92px;
}

section h2 {
    color: var(--heading-text-color);
    font-weight: 700;
    font-size: 32px;
    line-height: 42.34px;
    margin-top: 12px;
    margin-bottom: 12px;
}

section h3 {
    color: var(--heading-text-color);
    font-weight: 700;
    font-size: 20px;
    line-height: 26.46px;
    width: 100%;
    margin-bottom: 0;
}

section .process h3 {
    width: auto;
    margin: 0;
    padding-bottom: 0.5em;
}

section h4 {
    color: var(--heading-text-color);
    font-weight: 700;
    font-size: 18px;
    width: 100%;
    margin: 0 0 0.5em 0;
}

h2 .title-info {
    font-size: 0.8em;
    color: #999999;
    font-weight: normal;
}

label .title-info {
    font-size: 16px;
    color: #999999;
    font-weight: normal;
}

section .sub {
    width: 100%;
    margin: 0;
}

.splash.main {
    background-image: url("../media/banner.png");
    background-size: cover;
    height: 665px;
    color: #ffffff;
}

.splash.post {
    background-size: cover;
    height: 665px;
    color: #ffffff;
}

.splash.post {
    text-shadow: 0px 0px 3px #212121
}

.splash.main .flex {
    justify-content: start !important;
    align-items: center;
}

.splash.main .item {
    max-width: 500px;
}

nav button,
nav .button,
section button,
section .button {
    padding: 8px 16px !important;
    border-radius: 6px;
    background-color: var(--button-text-color);
    color: var(--button-background-color);
    text-decoration: none;
    transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

nav.open a {
    padding: 0px !important;
    margin: 0px !important;
}

nav.open a:hover {
    color: var(--a-hover-text-color) !important;
}

nav.open .button:hover {
    color: var(--a-hover-text-color) !important;
}

nav.open .button {
    background-color: transparent !important;
    color: var(--text-color) !important;
    padding: 0px !important;
    margin: 0px !important;
}

nav.open .button:hover {
    background-color: transparent !important;
    color: var(--a-hover-text-color) !important;
}

textarea {
    resize: vertical;
    min-height: 6em;
}

input:disabled,
select:disabled,
textarea:disabled,
nav button:disabled,
nav .button:disabled,
section button:disabled,
section .button:disabled,
.flex.style-4 input[type="checkbox"]:disabled+label,
.flex.style-4 input[type="radio"]:disabled+label,
.flex.style-5 input[type="checkbox"]:disabled+label,
.flex.style-5 input[type="radio"]:disabled+label,
.flex.style-10 input[type="checkbox"]:disabled+label,
.flex.style-10 input[type="radio"]:disabled+label {
    background-color: var(--disabled-button-background) !important;
}

input:disabled,
input:disabled+label,
textarea:disabled,
select:disabled,
button:disabled {
    color: var(--text-color);
    cursor: not-allowed !important;
}

nav button:not(:disabled):hover,
nav .button:not(:disabled):hover,
section button:not(:disabled):hover,
section .button:not(:disabled):hover {
    background-color: var(--a-hover-text-color) !important;
    color: var(--button-text-color) !important;
}

button.red {
    background-color: #f44336 !important;
}

button.red:hover {
    background-color: #EF5350 !important;
}

button.red:active {
    background-color: #E53935 !important;
}

.form-part {
    background-color: var(--section-odd-background-color);
    padding: 32px;
    border: solid 1px transparent;
    border-radius: 6px;
    transition: box-shadow 0.25s ease-in-out, border 0.25s ease-in-out;
}

#backofficeDivs>div:not(:first-child),
#processForm>div:not(:first-child) {
    margin-top: 2em !important;
}

section#backofficeDivs {
    padding: 1em;
}

.form-part .control {
    width: 100%;
}

.pre-form {
    max-width: var(--form-max-width);
    margin: auto;
    padding-top: 2em;
}

.pre-form a {
    text-decoration: none;
}

.pre-form a img {
    padding-right: 0.5em;
    position: relative;
    top: 2px;
    z-index: 0;
}

.control-error {
    border-color: #f44336 !important;
    box-shadow: 0px 0px 10px 0px #f44336;
}

.error {
    color: #f44336;
}

#formStatus {
    color: #fafafa !important;
}

form .control input,
form .control select,
form .control textarea {
    display: block;
    width: 100%;
    border-radius: 6px;
    border: solid 1px var(--text-color);
    padding: 8px 16px 8px 16px;
    font-size: 16px;
}

.dataTables_filter input,
.dataTables_length select {
    border-radius: 6px;
    border: solid 1px var(--text-color);
    padding: 8px 16px 8px 16px;
}

form .control label {
    display: block;
    align-content: center;
    padding-bottom: 6px;
}

label .tip {
    color: var(--sub-text-color);
    display: block;
    padding-top: 0.5em;
    text-align: center;
}

.center {
    text-align: center;
}

img.center {
    display: block;
    margin: 0 auto;
}

footer {
    width: 100%;
    background-color: var(--footer-background-color);
    color: var(--footer-text-color);
    text-align: center;
}

footer a {
    color: var(--footer-text-color);
}

footer img {
    max-width: 150px;
}

footer .social-icon:not(:last-child) {
    padding-right: 16px;
}

footer .social-icon {
    text-decoration: none !important;
}

footer .social-icon img {
    height: 30px;
    display: inline-block !important;
    padding: 0px !important;
}

.form-status-div {
    display: none;
    border-radius: 6px;
    padding: 16px;
    background-color: var(--button-background-color);
    color: var(--button-text-color);
}

.form-status-div a {
    color: var(--button-text-color);
}

ul {
    margin-bottom: 0px;
}

.highlight-zone {
    border: solid 1px var(--a-hover-text-color);
    box-shadow: 0px 0px 10px 0px var(--a-hover-text-color);
}

.highlight-zone-error {
    border: solid 1px #f44336;
    box-shadow: 0px 0px 10px 0px #f44336;
}

#fileInfo2 {
    color: var(--a-text-color);
    display: none;
}

#fileInfo3 {
    display: none;
}

.phase-1,
.phase-2,
.phase-3,
.phase-4,
.phase-5 {
    display: none;
}

.splash h1 {
    color: #fafafa;
}

/* Flex */
.flex {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100%;
}

.flex .files {
    padding: 1em 0em;
    gap: 1em;
    flex-direction: row;
    flex-wrap: wrap;
}

.flex .files .item {
    padding: 0.5em;
    background: var(--background-color-alt);
    border-radius: 6px;
    flex-grow: 1;
    transition: color 0.25s ease-in-out, background-color 0.25s ease-in-out;
}

.flex .files .item:hover {
    background-color: #f44336;
    color: var(--button-text-color);
    cursor: pointer;
}

nav .flex {
    flex-flow: row nowrap;
    max-width: var(--body-max-width);
    margin: auto;
    align-items: center;
}

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

.splash .spacer {
    display: none;
}

.flex .item.full-width {
    width: 100%;
    flex-basis: 100% !important;
}

.flex .item.align-left {
    text-align: left !important;
}

.flex.style-1 {
    gap: 24px;
}

.flex.style-1 .item {
    background-color: var(--section-odd-background-color);
    padding: 20px;
    flex-grow: 1;
    border-radius: 6px;
}

.flex.style-1 .item img {
    width: 42px;
    height: 42px;
}

.flex.style-2 .item {
    text-align: center;
    padding: 20px;
    flex-grow: 1;
}

.flex.style-2 .item img {
    width: 74px;
    height: 74px;
}

.flex.style-3 {
    flex-wrap: wrap;
    gap: 16px;
    max-width: var(--form-max-width);
    margin: auto;
}

.flex.style-3 .control {
    flex-basis: calc(50% - (8px));
}

.flex.style-3 .item.submit-button {
    text-align: right;
}

form button:not(.delete, :disabled),
.form button:not(.delete,
    :disabled),
form .button:not(.delete,
    :disabled),
.form .button:not(.delete,
    :disabled) {
    background-color: var(--button-background-color) !important;
    color: var(--button-text-color) !important;
}

.flex.style-4 {
    flex-wrap: wrap;
    gap: 16px;
    max-width: var(--form-max-width);
    margin: auto;
    justify-content: start;
}

.flex.post-info-banner {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: start;
    padding: 16px;
    border-radius: 6px;
    align-items: center;
}

.flex.style-4 .control {
    flex-basis: calc(50% - (8px));
    text-align: center;
}

.flex.style-4 .item.submit-button {
    text-align: right;
}

.flex.style-4 .item {
    align-self: stretch;
}

.flex.style-4 .item.submit-button button {
    background-color: var(--button-background-color);
    color: var(--button-text-color) !important;
}

.flex.filters input[type="checkbox"],
.flex.filters input[type="radio"],
.flex.style-4 input[type="checkbox"],
.flex.style-4 input[type="radio"],
.flex.style-5 input[type="checkbox"],
.flex.style-5 input[type="radio"],
.flex.style-10 input[type="checkbox"],
.flex.style-10 input[type="radio"] {
    display: none;
}

.flex.style-4 input[type="checkbox"]+label,
.flex.style-4 input[type="radio"]+label,
.flex.style-5 input[type="checkbox"]+label,
.flex.style-5 input[type="radio"]+label,
.flex.style-10 input[type="checkbox"]+label,
.flex.style-10 input[type="radio"]+label {
    border-radius: 6px;
    border: solid 2px #e1e1e6;
    padding: 28px 16px 28px 16px;
    width: 100%;
    cursor: pointer;
    transition: border 0.25s ease-in-out, box-shadow 0.25s ease-in-out, color 0.25s ease-in-out, font-weight 0.25s ease-in-out;
}

.flex.style-4 input[type="checkbox"]:checked+label,
.flex.style-4 input[type="radio"]:checked+label,
.flex.style-5 input[type="checkbox"]:checked+label,
.flex.style-5 input[type="radio"]:checked+label,
.flex.style-10 input[type="checkbox"]:checked+label,
.flex.style-10 input[type="radio"]:checked+label {
    border: solid 2px var(--a-text-color);
    font-weight: 600;
}

.filters {
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 1em;
    justify-content: start;
}

.filters .item {
    flex-grow: 1;
    align-self: stretch;
    text-align: center;
}

.flex.filters button,
.flex.filters input[type="checkbox"]+label,
.flex.filters input[type="radio"]+label {
    border-radius: 6px;
    border: solid 1px #e1e1e6;
    padding: 1em;
    width: 100%;
    cursor: pointer;
    transition: border 0.25s ease-in-out, box-shadow 0.25s ease-in-out, color 0.25s ease-in-out, background 0.25s ease-in-out;
}

.flex.filters input[type="checkbox"]:checked+label,
.flex.filters input[type="radio"]:checked+label {
    box-shadow: 0px 0px 5px 0px var(--button-background-color);
    background-color: var(--button-background-color);
    color: var(--button-text-color);
}

.permissions {
    display: flex;
    gap: 0.5em;
    text-align: center;
}

.info-block .permissions:not(:last-child) {
    padding-bottom: 0.5em;
}

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

.permissions input[type="checkbox"] {
    display: none;
}

.permissions input[type="checkbox"]+label,
.permissions input[type="radio"]+label {
    border-radius: 6px;
    border: solid 1px rgb(156, 0, 6);
    padding: 0.5em;
    width: 100%;
    cursor: pointer;
    transition: border 0.25s ease-in-out, box-shadow 0.25s ease-in-out, color 0.25s ease-in-out, background 0.25s ease-in-out;
    box-shadow: 0px 0px 5px 0px rgb(156, 0, 6);
    background-color: rgb(255, 199, 206);
    color: rgb(156, 0, 6);
}

.permissions input[type="checkbox"]:checked+label,
.permissions input[type="radio"]:checked+label {
    border: solid 1px rgb(0, 97, 0);
    box-shadow: 0px 0px 5px 0px rgb(0, 97, 0);
    background-color: rgb(198, 239, 206);
    color: rgb(0, 97, 0);
}

.search {
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 1em;
    justify-content: start;
}

.search .item {
    align-self: stretch;
    text-align: center;
}

.search .item:nth-child(2) {
    flex-grow: 1;
}

.search input {
    height: 3em;
}

.search button,
.search .button {
    height: 100%;
}

.flex.style-5,
.flex.style-10 {
    flex-wrap: wrap;
    gap: 16px;
    max-width: var(--form-max-width);
    margin: auto;
    justify-content: start;
}

.flex.style-5 .control {
    flex-basis: calc(33% - (9px));
    text-align: center;
}

.flex.style-6 {
    flex-wrap: wrap;
    gap: 16px;
    max-width: var(--form-max-width);
    margin: auto;
    justify-content: start;
}

.flex.style-6 .control {
    flex-basis: calc(50% - (8px));
    text-align: center;
}

.flex.style-6 .item.submit-button {
    text-align: right;
}

.flex.style-6 .item.submit-button button {
    background-color: var(--button-background-color);
    color: var(--button-text-color) !important;
}

.flex.style-5 img,
.flex.style-10 img {
    height: 90px;
    margin: auto;
    display: block;
    padding-bottom: 1em;
}

.flex.style-6 img {
    height: 56px;
    margin: auto;
    display: block;
}

.flex.style-6 input[type="file"] {
    display: none;
}

.flex.style-7 {
    align-items: start;
    padding: 50px 0px;
    max-width: var(--body-max-width);
    margin: auto;
}

.flex.style-7 .item {
    text-align: left;
    padding: 20px;
    flex-grow: 1;
    max-width: 500px;
}

.flex.style-7 .item img {
    padding-bottom: 16px;
    display: block;
}

.flex.style-8 {
    flex-wrap: wrap;
    gap: 16px;
    max-width: var(--form-max-width);
    margin: auto;
    justify-content: start;
    display: none;
}

.flex.style-8 .control {
    width: 25em;
    text-align: left;
    display: none;
    padding: 1em;
    margin: 0.5em auto 0em auto;
    background: var(--background-color-alt);
    border-radius: 6px;
}

.flex.style-8 .control input,
.flex.style-8 .control button {
    margin: 0.5em auto 0em auto;
    text-align: center;
    display: block;
}

.flex.style-8 img,
.payment img {
    height: 90px;
    margin: auto;
    display: block;
}

.flex.style-9 {
    align-items: center;
    gap: 10em;
}

.flex.style-9 .item.left {
    flex-basis: 50%;
}

.flex.style-9 .item.right {
    flex-basis: 50%;
    text-align: right;
}

.flex.style-9 .item img {
    max-width: 500px;
    width: 100%;
}

.flex.style-10 .control {
    flex-basis: calc(25% - 12px);
    text-align: center;
}

.middle {
    align-self: center;
}

#mbway_tip {
    display: none;
}

#scopeFormOptions,
#phaseFormOptions {
    display: contents;
}

.process-click-area {
    cursor: pointer;
    padding: 1em;
    position: sticky;
    top: 6.7em;
    background-color: var(--section-odd-background-color);
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    z-index: 2;
    margin-bottom: 1em;
}

.payment-click-area {
    cursor: pointer;
    padding: 1em;
    background-color: var(--section-odd-background-color);
    border-radius: 6px;
}

.process {
    background-color: var(--section-odd-background-color);
    border-radius: 6px;
    margin-bottom: 1em;
    position: relative;
}

.payment {
    background-color: var(--section-odd-background-color);
    border-radius: 6px;
    position: relative;
    margin-bottom: 1em;
}

.new-payment {
    background-color: var(--section-odd-background-color);
}

.email-reference {
    background-color: var(--section-even-background-color);
}

.new-payment,
.email-reference {
    padding: 1em;
    border-radius: 6px;
    display: none;
    flex-direction: row;
    gap: 1em;
    flex-wrap: wrap;
}

.new-payment strong,
.new-payment .buttons,
.email-reference strong,
.email-reference .buttons {
    flex-basis: 100%;
    flex-grow: 1;
    flex-shrink: 0;
}

.new-payment .info-block,
.email-reference .info-block {
    flex-basis: 10em;
    flex-grow: 1;
}

.new-payment h4,
.email-reference h4 {
    margin: 0;
}

.payment-info-table tbody td:last-child {
    width: 100%;
}

.payment-info-table {
    margin-bottom: 1em;
}

.process.open .process-chevron,
.payment.open .payment-chevron {
    transform: translateY(50%) rotate(180deg);
}

.process-chevron,
.payment-chevron {
    position: absolute;
    transition: transform 0.5s ease-in-out;
    transform: translateY(50%);
    right: 0.5em;
    top: 0.5em;
    font-size: 2em;
    height: auto;
}

.process-chevron i,
.payment-chevron i {
    padding: 0;
}

.edit-lock {
    position: absolute;
    transform: translateY(50%);
    right: 1.5em;
    font-size: 2em;
}

.process-info {
    padding: 0 1em 1em 1em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1em;
}

.payment-info-wrapper,
.process-info-wrapper {
    display: none;
}

.payment-info-wrapper {
    padding: 0 1em 1em 1em;
}

.payment-info-wrapper .info-block:not(:last-child) {
    padding-bottom: 1em;
}

.payment-info-wrapper .info-block label {
    padding-bottom: 0.25em;
}

.process-info .item {
    overflow-x: auto;
    flex-basis: 30em;
    flex-grow: 1;
    padding: 1em;
    border-radius: 6px;
    background-color: var(--background-color-alt);
}

.process-info .item>.info-block:not(:last-child) {
    margin-bottom: 0.5em;
}

.process-files,
.process-history,
.permissions-wrapper,
.user-logins,
.user-history {
    flex-basis: 50em !important;
}

/*.process-payment {
    flex-basis: 30em !important;
}*/

.info-block label {
    font-weight: bold;
    display: block;
}

.info-block .selects,
.info-block .buttons {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}

.info-block .buttons button {
    flex-basis: 10em;
    flex-grow: 1;
    text-wrap: nowrap;
}

.selected {
    color: var(--a-text-color) !important;
    border-bottom: solid 2px var(--a-text-color);
}

/*.info-block.control input,
.info-block.control select,
.info-block.control textarea {
    margin-top: 0.5em;
}*/

.payment-1,
.payment-2 {
    display: none;
}

/* Toast */

#toasts {
    position: fixed;
    bottom: 1em;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    flex-direction: column;
    gap: 1em;
    z-index: 3;
}

.toast {
    min-width: 1em;
    min-height: 1em;
    padding: 1em;
    border-radius: 6px;
    background-color: var(--toast-background-color);
    backdrop-filter: saturate(100%) blur(20px);
    -webkit-backdrop-filter: saturate(100%) blur(20px);
    display: none;
    text-align: center;
    box-shadow: 0px 0px 5px #212121;
    color: var(--button-text-color);
}

.toast.error {
    background-color: #f44336;
}

/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table a {
    color: var(--text-color);
}

table.messages thead th,
table.history thead th,
table.files thead th,
table.attachments thead th,
table.doctors thead th {
    color: var(--button-text-color);
    background-color: var(--button-background-color);
    padding: 0.5em;
}

table.messages thead th:first-child,
table.history thead th:first-child,
table.files thead th:first-child,
table.attachments thead th:first-child,
table.doctors thead th:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

table.messages thead th:last-child,
table.history thead th:last-child,
table.files thead th:last-child,
table.attachments thead th:last-child,
table.doctors thead th:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

table.messages tbody td,
table.history tbody td,
table.files tbody td,
table.attachments tbody td,
table.doctors tbody td {
    padding: 0.5em;
}

table.history tbody td,
table.files tbody td,
table.attachments tbody td,
table.doctors tbody td {
    white-space: nowrap;
}

table.history tbody td:nth-child(3),
table.files tbody td:nth-child(1),
table.attachments tbody td:nth-child(2),
table.doctors tbody td:nth-child(1) {
    width: 100%;
}

table.messages thead th:nth-child(1),
table.messages thead th:last-child,
table.doctors thead th:nth-child(2),
table.messages tbody td:nth-child(1),
table.messages tbody td:last-child,
table.doctors tbody td:nth-child(2) {
    text-align: center;
}

table.messages tbody td:not(:nth-child(7)) {
    white-space: nowrap;
}

table.messages tbody td:nth-child(7) {
    width: 100%;
}

table.messages tbody tr:nth-child(even) td,
table.history tbody tr:nth-child(even) td,
table.files tbody tr:nth-child(even) td,
table.attachments tbody tr:nth-child(even) td,
table.doctors tbody tr:nth-child(even) td {
    background-color: var(--section-odd-background-color);
}

table.messages a {
    text-decoration: none;
}

.attachments-upload,
.doctors-select {
    padding-top: 1em;
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}

.attachments-upload strong,
.doctors-select strong {
    display: block;
    width: 100%;
}

.doctors-select select {
    flex-basis: 10em;
    flex-grow: 1;
    text-wrap: nowrap;
    align-content: center;
}

.attachments-upload .control {
    text-wrap: nowrap;
    align-content: center;
}

.attachments-upload .control.grow {
    flex-basis: 20em;
    flex-grow: 1;
}

.attachments-upload button,
.doctors-select button {
    text-wrap: nowrap;
}

.attachments-upload input[type="checkbox"] {
    flex-basis: 0;
    flex-grow: 0;
    width: auto;
}

.attachments-upload .control input {
    display: inline;
}

.attachments-upload .control label {
    font-weight: normal;
    display: inline;
}

/* States */

.color-block {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0.25em;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    z-index: 103;
}

.user-state-0 {
    color: #F44336;
    ;
}

.user-state-0-block {
    background-color: #F44336;
    ;
}

.user-state-0:before {
    padding-right: 0.5em;
    content: "\f4fc";
    font-family: "Font Awesome 6 Free";
}

.user-state-1 {
    color: #4CAF50;
    ;
}

.user-state-1-block {
    background-color: #4CAF50;
    ;
}

.user-state-1:before {
    padding-right: 0.5em;
    content: "\f235";
    font-family: "Font Awesome 6 Free";
}

.process-state-1 {
    color: var(--text-color);
}

.process-state-1-block {
    background-color: var(--text-color);
}

.process-state-1:before {
    padding-right: 0.5em;
    content: "\f017";
    font-family: "Font Awesome 6 Free";
}

.process-state-2 {
    color: var(--heading-text-color);
}

.process-state-2-block {
    background-color: var(--heading-text-color);
}

.process-state-2:before {
    padding-right: 0.5em;
    content: "\f0ae";
    font-family: "Font Awesome 6 Free";
}

.process-state-3 {
    color: #00BCD4;
}

.process-state-3-block {
    background-color: #00BCD4;
}

.process-state-3:before {
    padding-right: 0.5em;
    content: "\f46c";
    font-family: "Font Awesome 6 Free";
}

.process-state-4 {
    color: #4CAF50;
}

.process-state-4-block {
    background-color: #4CAF50;
}

.process-state-4:before {
    padding-right: 0.5em;
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
}

.payment-state-1 {
    color: #F57F17;
}

.payment-state-1:before {
    padding-right: 0.25em;
    content: "\f252";
    font-family: "Font Awesome 6 Free";
}

.payment-state-2 {
    color: #4CAF50;
}

.payment-state-2:before {
    padding-right: 0.25em;
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
}

.payment-state-3 {
    color: #F44336;
}

.payment-state-3:before {
    padding-right: 0.25em;
    content: "\f05e";
    font-family: "Font Awesome 6 Free";
}

.payment-state-4 {
    color: #F44336;
}

.payment-state-4:before {
    padding-right: 0.25em;
    content: "\f253";
    font-family: "Font Awesome 6 Free";
}

/*table.messages thead th:nth-child(7),
table.messages body td:nth-child(7){
    width: 100%;
}*/

.after-logo {
    display: inline-block;
    top: 50%;
    position: absolute;
    transform: translateY(-50%);
    padding-left: 0.5em;
}

/* Menu Icon */
.menu-btn {
    display: none;
    position: absolute;
    cursor: pointer;
    width: 30px;
    height: 30px;
    top: 24px;
    right: 24px;
    margin-top: 12px;
}

.menu-btn:hover .btn-line {
    background-color: var(--a-hover-text-color) !important;
}

.btn-line {
    width: 100%;
    height: 2px;
    background: #fafafa;
    margin: 6px auto;
    transition: all 0.3s ease-in-out;
}

.alt .btn-line {
    background: var(--text-color);
}

.menu-btn.open .btn-line:nth-child(2) {
    opacity: 0;
}

.menu-btn.open .btn-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-btn.open .btn-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.top-spacer {
    padding: 50px;
}

.blog-posts {
    display: flex;
    gap: 20px;
    flex-direction: column;
    padding: 32px 84px;
}

.splash.blog {
    padding: 114px 84px;
}

.splash.blog .flex {
    flex-direction: column;
    gap: 24px;
}

.splash.post .flex {
    justify-content: left;
    align-items: center;
}

.splash.blog .flex .item {
    text-align: center;
}

.splash-blog-tip,
.post-category {
    border-radius: 50px;
    padding: 8px 16px;
    background-color: #E2F6FF;
    color: var(--a-text-color);
}

.blog-title {
    font-weight: 600;
    font-size: 48px;
    line-height: 60px;
    color: var(--a-text-color);
}

.categories,
.pages {
    display: flex;
    gap: 8px;
    margin: 0px;
    padding: 0px;
    justify-content: center;
}

.categories li {
    border-radius: 50px;
    padding: 8px 16px;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    list-style: none;
}

.categories li:hover {
    background-color: var(--a-hover-text-color);
    color: #FFFFFF;
}

.pages li {
    border-radius: 6px;
    padding: 8px 16px;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    list-style: none;
}

.pages li:hover {
    background-color: var(--a-hover-text-color);
    color: #FFFFFF;
}

.blog-selected {
    background-color: #074889 !important;
    color: #FFFFFF;
}

.recent-posts {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1439px;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.recent-posts .post-preview {
    max-width: 410.33px;
    height: 443.15px;
    border-radius: 6px;
    background-color: #FFFFFF;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
}

.post-preview:hover {
    cursor: pointer;
    box-shadow: 0px 2px 10px -5px #000;
}

.recent-posts .post-preview img {
    width: 100%;
    display: block;
    height: 231.15px;
    object-fit: cover;
}

.recent-posts .post-preview .content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px 24px;
    text-align: justify;
}

.recent-posts .post-preview .blog-title {
    color: var(--header-alt-text-color);
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    margin: 0px;
    text-decoration: none;
    position: relative;
    display: block;
    padding-right: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: auto;
}

.post-preview .blog-title::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: url("/assets/media/link.svg") no-repeat center center;
    background-size: contain;
}

.category {
    color: var(--a-text-color);
}

.category:hover {
    color: var(--a-hover-text-color);
}

.blog-post {
    padding: 84px;
}

.post-sidebar {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    max-width: 410.33px;
    gap: 32px;
}

.blog-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 24px;
    background-color: #FFFFFF;
    border-radius: 6px;
    max-width: 840.67px;
    text-align: justify;
}

.blog-content h1 {
    margin-top: 0px
}

.blog-content img {
    width: 100%;
}

.blog-subtitle,
.blog-subscribe-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 32px;
    padding-top: 8px;
}

.subscribe-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #FFFFFF;
    border-radius: 6px;
    padding: 32px 24px;
}

.checkbox-label {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-post-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    text-align: left;
}

.popular-posts .post-preview {
    max-width: 410.33px;
    height: 160px;
    border-radius: 6px;
    background-color: #FFFFFF;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: row;
}

.popular-posts .post-preview img {
    width: 128px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.popular-posts .post-preview .content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px;
    text-align: justify;
}

.popular-posts .post-preview .blog-title {
    color: var(--header-alt-text-color);
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    margin: 0px;
    text-decoration: none;
    position: relative;
    display: block;
    padding-right: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: auto;
}

.popular-posts .post-preview-text {
    height: 48px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}

/* Screen Size */

@media screen and (max-width: 600px) {
    .flex.style-7 {
        align-items: center;
        flex-direction: column;
    }

    .permissions {
        align-items: center;
        flex-direction: column;
    }

    .permissions .control {
        width: 100%;
    }

    .flex.style-7 .item {
        width: 100%;
    }
}

@media screen and (min-width: 501px) and (max-width: 700px) {
    .flex.style-7 {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .flex.style-7 .item {
        text-align: left;
        padding: 16px;
        flex-grow: 1;
        max-width: 500px;
        width: calc(50% - 16px);
    }
}

@media screen and (max-width: 700px) {
    nav.backoffice>div {
        padding: 1em;
    }

    .menu-btn {
        top: 1em;
        display: block;
    }

    /*.sub-nav {
        padding-top: 5em;
    }*/

    .process-click-area {
        top: 5.4em;
    }

    section {
        padding: 16px;
    }

    section h2 {
        text-align: center;
        font-size: 26px;
    }

    section h1 {
        margin: 16px 0px;
        font-size: 26px;
    }

    .splash.main {
        height: 500px;
        background-image: url("../media/banner-mobile.png");
        background-size: cover;
        text-align: left;
    }

    .splash.post {
        height: 500px;
        background-image: url("/blog/images/post_1.png");
        background-size: cover;
        text-align: left;
    }

    .blog-post {
        padding: 64px 0px;
    }

    .blog-content {
        padding: 24px 16px;
        gap: 16px;
    }

    .splash.post .flex {
        justify-content: center;
        align-items: center;
    }

    .splash.blog {
        padding: 60px 16px;
    }

    .blog-posts {
        padding: 32px 16px;
    }

    .splash .spacer {
        display: block;
    }

    .splash .item {
        max-width: unset;
        width: 100%;
    }

    .blog-title {
        font-size: 28px;
        line-height: 40px;
    }

    .splash button {
        width: 100%;
    }

    nav>div {
        padding: 0px;
    }

    nav .links>a,
    nav .links>button {
        color: var(--header-alt-text-color) !important;
    }

    nav .flex {
        flex-direction: column;
        padding: 24px;
    }

    nav .flex .item {
        flex-basis: 100%;
        width: 100%;
        display: none;
    }

    nav.open .flex .item {
        display: block;
        z-index: 100;
    }

    nav .flex .item.left a {
        display: inline-block;
    }

    nav .flex .item:first-child {
        display: block;
        align-items: center;
    }

    nav .flex .item img {
        width: auto;
        height: 50px;
    }

    nav .flex .item a {
        display: block;
    }

    nav .flex .item.right {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100vw;
        height: 100vh;
        background-color: var(--background-color);
        color: var(--text-color);
        text-align: center;
        z-index: 99;
        display: none;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        font-size: 20px;
        line-height: 26.46px;
    }

    nav .links>button {
        display: none;
        margin: 0px;
    }

    .flex {
        flex-direction: column;
    }

    .flex.filters,
    .flex.search {
        flex-direction: row;
    }

    .flex.style-3 .control,
    .flex.style-4 .control,
    .flex.style-5 .control,
    .flex-style-5 .control {
        flex-basis: 100%;
    }

    .form-part {
        padding: 16px;
        margin-bottom: 1em;
    }

    .flex.style-1 {
        gap: 16px;
    }

    .flex.style-1,
    .flex.style-2,
    .flex.style-7 {
        padding: 16px 0px;
    }

    .login-form form {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 901px) {
    .post-sidebar {
        flex-direction: column;
    }

    .sidebar {
        max-width: none;
    }

    .popular-post-title {
        text-align: center;
    }
}

@media screen and (min-width: 701px) and (max-width: 1120px) {

    nav.backoffice>div {
        padding: 1em;
    }

    .process-click-area {
        top: 5.4em;
    }

    .menu-btn {
        top: 1em;
        display: block;
    }

    .sub-nav {
        padding-top: 7em;
    }

    nav>div {
        padding: 0px;
    }

    nav .flex {
        flex-direction: column;
        padding: 24px;
    }

    nav .flex .item {
        flex-basis: 100%;
        width: 100%;
        display: none;
    }

    nav.open .flex .item {
        display: block;
        z-index: 100;
    }

    nav .links>a,
    nav .links>button {
        color: var(--header-alt-text-color) !important;
    }

    nav .flex .item.left a {
        display: inline-block;
    }

    nav .flex .item:first-child {
        display: block;
        align-items: center;
    }

    nav .flex .item img {
        width: auto;
        height: 50px;
    }

    nav .flex .item a {
        display: block;
    }

    nav .flex .item.right {
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100vw;
        height: 100vh;
        background-color: var(--background-color);
        color: var(--text-color);
        text-align: center;
        z-index: 99;
        display: none;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        font-size: 20px;
        line-height: 26.46px;
        backdrop-filter: saturate(100%) blur(20px);
        -webkit-backdrop-filter: saturate(100%) blur(20px);
    }

    nav .links>button {
        display: none;
        margin: 0px;
    }

    section {
        padding: 16px;
    }

    section h2 {
        text-align: center;
        font-size: 26px;
    }

    section h1 {
        margin: 16px 0px;
        font-size: 26px;
    }

    .splash h1 {
        color: #fafafa;
    }

    .flex.style-1,
    .flex.style-2 {
        flex-wrap: wrap;
        gap: 16px;
    }

    .flex.style-1 .item,
    .flex.style-2 .item {
        width: calc(50% - 16px);
    }
}

@media screen and (max-width: 1000px) {

    .flex.style-8,
    .flex.style-9 {
        flex-direction: column;
    }

    .flex.style-8 img,
    .flex.style-9 img {
        display: block;
        margin: auto;
    }

    .flex.style-9 {
        gap: 1em;
    }
}

@media screen and (min-width: 1442px) {
    .popular-posts .post-preview .content {
        max-width: 282px;
    }
}

@media screen and (max-width: 1441px) {

    .recent-posts>*,
    .popular-posts>* {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .popular-posts {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        max-width: 1439px;
        gap: 20px;
        padding: 0px 16px;
        justify-content: center;
        align-items: center;
    }

    .popular-posts .post-preview {
        max-width: 410.33px;
        height: 362.77px;
        border-radius: 6px;
        background-color: #FFFFFF;
        overflow: hidden;
        transition: box-shadow 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
    }

    .popular-posts .post-preview img {
        height: 184.77px;
        width: auto;
    }

    .popular-posts .post-preview .content {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 32px 24px;
        text-align: justify;
    }

    .popular-posts .post-preview .blog-title {
        color: var(--header-alt-text-color);
        font-weight: 400;
        font-size: 24px;
        line-height: 32px;
        margin: 0px;
        text-decoration: none;
        position: relative;
        display: block;
        padding-right: 24px;
    }
}

/* LOADER */

.loader {
    width: 5em;
    height: 5em;
    display: inline-block;
    position: relative;
}

.loader::after,
.loader::before {
    content: '';
    box-sizing: border-box;
    width: 5em;
    height: 5em;
    border-radius: 50%;
    border: 2px solid var(--text-color);
    position: absolute;
    left: 0;
    top: 0;
    animation: animloader 2s linear infinite;
}

.loader::after {
    animation-delay: 1s;
}

@keyframes animloader {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.loader-container {
    text-align: center;
    margin: 1em 0 0 0;
    position: relative;
    height: 5em;
}

.loader-container .text {
    position: absolute;
    transform: translateY(50%);
    padding-left: 0.5em;
    height: 50%;
    width: 10em;
    text-align: left;
}

/* Login Form  */

.login-form form {
    display: flex;
    flex-wrap: wrap;
    max-width: 60em;
    gap: 0.5em;
    margin: auto;
}

.login-form form p {
    display: block;
    width: 100%;
}

.login-form form .item {
    flex-grow: 1;
    min-width: 15em;
    align-content: end;
}

.login-form form .item:last-child {
    flex-grow: 0;
}

.login-form form button {
    width: 100%;
}

.login-form form a {
    flex-basis: 100%;
}

.login-form .message-confirm {
    width: 100%;
    display: block;
    color: #4CAF50;
}

.login-form .message-error {
    width: 100%;
    display: block;
    color: #f44336;
}

.process-message,
.user-message {
    padding-top: 1em;
    text-align: center;
}

/* DATATABLE */

.dataTables_filter input,
.dataTables_length select {
    width: auto !important;
    display: inline-block !important;
    margin-left: 0.5em;
}