﻿:root {
    --r2-app-default-color-lighten: #8ac0e4;
    --r2-app-default-color: #2e8acb;
    --r2-app-default-color-darken: #1e5d89;
    --mud-palette-tertiary-inverted: var(--mud-palette-tertiary-dark);
}

body.mud-theme-dark {
    --mud-palette-tertiary-inverted: var(--mud-palette-tertiary-light);
}

@media screen {
   .print-component {
        display: none;
    }

    .screen-component {}

    .r2-main-content-height {
        height: 90vh !important;
    }
 }

@media print {
    .print-component {}

    .screen-component {
        display: none !important;
    }

    .r2-main-content-height {}
}

.r2-white-space-pre-wrap {
    white-space: pre-wrap !important; /* Display all white spaces */
}

.r2-flex-wrap {
    flex-wrap: wrap;
}

.r2-color-white {
    color: var(--mud-palette-white) !important;
}

.r2-default-text-color {
    color: var(--mud-palette-background) !important;
}

.r2-default-bg-color {
    background-color: var(--mud-palette-background) !important;
}

.r2-blue-background-page {
    background-color: var(--r2-app-default-color-darken) !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 64px;
}

.how-to-scrollable {
    max-height: calc(100vh - 4.5em);
    overflow-y: auto; 
    overflow-x: hidden;
}

.r2-selected-color {
    background-color: var(--mud-palette-tertiary) !important;
    color: var(--mud-palette-background) !important;
}

html, body, .MudLayout, .MudGrid {
    height: 100%;
    overflow: hidden;
}

.r2-max-height{
    max-height: calc(100vh-64px);
}

.r2-icon-table-min-height {
    min-height: 85vh !important;
}

.r2-md-content-height {
    height: calc(100vh - 96px) !important;
}

.r2-expansion-panel .mud-expand-panel-header {
    padding: 0em 1em 0em 1em;
    background: var(--r2-app-default-color-darken);
    min-height: 2em;
}

.r2-expansion-panel-text .mud-expand-panel-header .mud-expand-panel-text {
    color: var(--mud-palette-white);
}

.r2-expansion-panel-icon-color .mud-expand-panel-header .mud-expand-panel-icon {
    color: var(--mud-palette-white);
}

.r2-expansion-panel-border .mud-expand-panel.mud-expand-panel-border {
    border-bottom: 0.5em solid var(--mud-palette-background);
}

.r2-default-banner-color-light {
    color: var(--r2-app-default-color-lighten) !important;
}
.r2-default-banner-color-medium {
    color: var(--r2-app-default-color) !important;
}
.r2-default-banner-color-dark {
    color: var(--r2-app-default-color-darken) !important;
}

.r2-default-banner-background {
    background-color: var(--mud-palette-primary) !important;
}

.r2-default-banner-bg-color-light {
    background-color: var(--r2-app-default-color-lighten) !important;
}
.r2-default-banner-bg-color-medium {
    background-color: var(--r2-app-default-color) !important;
}
.r2-default-banner-bg-color-dark {
    background-color: var(--r2-app-default-color-darken) !important;
}

.r2-divider-color {
    color: var(--mud-palette-primary-darken);
}

.r2-maintenance-item {
    height: 85vh;
    min-height: 200px;
}

.r2-maintenance-page-content {
    flex: 1;
    display: flex;
    overflow: auto;
}

.r2-wizard-title-content .mud-dialog-title {
    padding-bottom: 0 !important;
}

.r2-wizard-timeline-height .mud-timeline-item-divider {
    min-height: 38px !important;
}

.r2-wizard-dialog-height-xs {
    height: 24em !important;
    max-height: 24em !important;
}

.r2-wizard-dialog-height-sm {
    height: 35em !important;
    max-height: 35em !important;
}

.r2-wizard-dialog-height-md {
    height: 40em !important;
    max-height: 40em !important;
}

.r2-wizard-dialog-height-lg {
    height: 45em !important;
    max-height: 45em !important; 
}

.r2-wizard-summary-height-xs {
    height: 13em;
}

.r2-wizard-summary-height-sm {
    height: 16em;
}

.r2-wizard-summary-height-md {
    height: 19em;
}

.r2-wizard-summary-height-lg {
    height: 26em;
}

.r2-wizard-content-height-xs {
    height: 17em;
}

.r2-wizard-content-height-sm {
    height: 20em;
}

.r2-wizard-content-height-md {
    height: 23em;
}

.r2-wizard-content-height-lg {
    height: 30em;
}

.link-icon {
    margin-right: 0.5rem;
}

.r2-no-click-icon .mud-input-adornment .mud-icon-button {
    pointer-events: none;
    cursor: default;
}

.r2-custom-mud-switch {
    width: 100%;
}

.r2-custom-mud-switch .mud-input-control-input-container label {
    justify-content: space-between !important;
    padding: 0px 0px 0px 8px !important;
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
}

.r2-background-color-input .mud-input-label {
    background-color: var(--mud-palette-background);
}

.r2-typography-color {
    color: var(--mud-palette-text-primary);
}

.r2-inverted-colors {
    color: var(--mud-palette-primary) !important;
    background-color: var(--mud-palette-background) !important;
}

.r2-dropdown-stack-sm {
    overflow-y: auto;
    flex-grow: 1;
    max-height: 220px;
}

.r2-dropdown-stack-lg {
    overflow-y: auto;
    flex-grow: 1;
    max-height: 300px;
}

.r2-dropdown-paper {
    width: 220px;
    padding: 8px;
}

.r2-hover-box:hover {
    background-color: rgba(0, 0, 0, 0.04);
    border-radius: 4px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.r2-circle-button {
    min-width: 30px;
    height: 30px;
    border-radius: 50% !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*****************************************************************
    The styles below are applied cascading style depending on
    the media size. The initial style is applied to all screen
    sizes. Then, it is adjusted depending on the max screen size.

    The media width values were determined by looking at the
    bootstrap CSS in the wwwroot folder.
******************************************************************/
.r2-scrollable {
    overflow-y: auto;
    height: calc(100vh - 64px) !important;
}

.r2-about-page-inner {
    background-color: var(--mud-palette-background) !important;
    max-width: 60em;
    padding: 2rem 6rem;
    margin-top: auto;
    margin-bottom: auto;
}

.r2-welcome-page-inner {
    background-color: var(--mud-palette-background) !important;
    width: 90vw;
    max-width: 60em;
    padding: 2rem 6rem;
    margin-top: auto;
    margin-bottom: auto;
}

.r2-wizard-width {
    width: 50em;
}


/* xl or smaller */
@media(max-width: 2560px) {
}

/* lg or smaller */
@media(max-width: 1920px) {
}

/* md or smaller */
@media(max-width: 1280px) {
}

/* sm or smaller */
@media(max-width: 960px) {
    .r2-wizard-width {
        width: 35em;
    }
}

/* xs or smaller */
@media(max-width: 600px)
{
    .r2-scrollable {
        overflow-y: auto;
        height: calc(100vh - 56px) !important;
    }

    .r2-about-page-inner, .r2-welcome-page-inner {
        padding: 1.5rem 2rem;
    }
    .r2-wizard-width {
        width: 25em;
    }
}
