:root {
    --darkColor: #474747;
    --lightColor: #E5E5E5;
    --darkTextColor60-light: #99474747;
    --darkTextColor60-dark: #99e5e5e5;
    --primaryColor: #FF2F59C7;
    --redColor: #D54C4C;
    --greenColor: #8FBE6C;
    --mud-palette-lines-inputs: rgba(0,0,0,0.1) !important;
    --mud-pallete-action-default-hover: #474747 !important;

    --calendar-cell: var(--cell-small);
    --cell-small: 50px;
    --cell-medium: 64px;
    --cell-big: 64px;
}

html, body {
    font-family: "Oswald", sans-serif;
    line-height: 1.5;
}

body, 
.mud-main-content {
    min-height: 100vh;
    min-height: 100dvh;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--darkColor);
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.button .mud-fab-label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-check:focus + .button, .button:focus {
    box-shadow: none !important;
}

.button {
    height: fit-content !important;
    font-weight: 600;
    font-family: inherit;
    border-radius: 12px !important;
    letter-spacing: 0.02em !important;
    text-transform: none;
}

.btn-small {
    font-size: 14px;
    padding: 8px 20px;
}

.btn-medium {
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px !important;
}

.btn-disabled {
    opacity: 0.8;
    background-color: transparent;
    cursor: none;
}

.btn-red {
    background-color: var(--redColor);
    color: #fff;
}

.btn-green {
    background-color: var(--greenColor);
}

.btn-text {
    font-size: 16px;
    font-weight: 700;
    background-color: transparent;
}

.btn-text-label {
    font-weight: normal;
    padding: 0;
    background-color: transparent;
    border: 0;
    border-radius: 0 !important;
}

.btn-text-label .mud-button-label {
    min-height: 28px;
}

.custom-mud-button {
    padding: 0;
    border: 0;
    background-color: var(--mud-palette-background-gray);
}

.link-green {
    color: var(--greenColor);
}

.button:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn-red:focus, .btn-red:active:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #474747;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

h1, p {
    margin-bottom: 0;
    font-family: inherit !important;
    color: var(--mud-palette-text-primary);
}

.tag {
    display: inline-block;
    color: white;
    font-weight: bold;
    font-size: 12px;
    border-radius: 5px;
    padding: 5px 10px;
    width: max-content;
    text-transform: uppercase;
}

.label {
    border-radius: 16px;
    padding: 5px 10px;
    width: 100%;
}

.label-rotated {
    transform: rotate(45deg);
    position: absolute;
    padding: 8px 32px;
    right: -34px;
    top: 10px;
    text-transform: uppercase;
}

.tag-green {
    background-color: var(--greenColor);
}

.tag-red {
    background-color: var(--redColor);
}

.kb-text-wrap {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.text-dark, .text-dark > *,
.text-light,
.text-darkLight  {
    font-family: "Oswald", sans-serif !important;
    text-transform: none;
}

.text-dark, .text-dark > * {
    color: var(--mud-palette-text-primary) !important;
}

.text-darkLight {
    color: var(--mud-palette-text-secondary) !important;
}

.text-light {
    color: var(--lightColor) !important;
}

.text-green {
    color: var(--greenColor) !important;
}

.text-red {
    color: var(--redColor) !important;
}

.text-xxl {
    font-size: 28px;
}

.text-xl {
    font-size: 22px;
}

.text-lg {
    font-size: clamp(1rem, 0.9199rem + 0.4274vw, 1.125rem);
    font-weight: 500;
}

.text-md {
    font-size: 15px;
}

.text-sm {
    font-size: 12px;
}

.light-bg {
    background-color: var(--mud-palette-background-gray);
}

.dark-bg {
    background-color: var(--mud-palette-dark-lighten);
}

.br-8 {
    border-radius: 0.5rem;
}

.br-16 {
    border-radius: 1rem;
}

.border-red {
    box-shadow: 0 0 0 1px var(--redColor);;
}

.bg-center {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    height: 250px;
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
}

.pre-oswald {
    font-family: "Oswald", sans-serif;
    margin-bottom: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: auto;
    color: var(--mud-palette-text-primary);
}

.text-overflow-clamp {
    width: 100%;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
}

.mud-dialog-title h6 {
    font-family: "Oswald", sans-serif;    
    font-size: 24px;
    font-weight: 500;
}

.mx-0 .mud-input-control {
    margin: 0;
}

textarea {
    min-height: 22px;
}

.mud-input {
    border-radius: 1rem;
}

.mud-input.mud-input-outlined .mud-input-outlined-border {
    border-color: transparent;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, 0.05);
}


.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol,
.mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined,
.mud-input:focus-within ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined {
    background-color: var(--mud-palette-background);
}

.input-border-dark > * .mud-input.mud-input-outlined .mud-input-outlined-border,
.input-border-dark > * input:autofill,
.input-border-dark > * input:-webkit-autofill {
    border-color: var(--mud-palette-text-primary);
    background: none !important;
}

input {
    filter: none;
}

.input-bg > * .mud-input.mud-input-outlined .mud-input-outlined-border {
    border-color: var(--mud-palette-text-primary);
    background: transparent;
}

.mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol {
    color: var(--mud-palette-text-primary);;
}

.mud-input.mud-input-filled.mud-input-underline::before {
    border-bottom: none;
}

.mud-input.mud-input-outlined:focus-within .mud-input-outlined-border {
    border-color: var(--greenColor);
}

.mud-input > textarea.mud-input-root,
.mud-input > input.mud-input-root,
.mud-input > input.mud-input-root, div.mud-input-slot.mud-input-root,
.mud-typography-body1 {
    font-family: "Oswald", sans-serif !important;
    font-size: 1rem;
    color: var(--mud-palette-text-primary);
}

.mud-select .mud-select-input .mud-input-slot {
    height: auto;
}

.mud-file-upload, .mud-file-upload > * {
    max-width: fit-content;
}

.events-img, .events-img-small {
    height: 150px;
}

@media (min-width: 992px) {
    .events-img {
        height: 326px;
    }

    .events-img-small {
        height: 220px;
    }
}

@media (min-width: 1428px) {
    .events-img {
        max-height: 280px;
    }
}

.mud-dialog {
    margin: 0;
    padding: 1.5rem 0.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--mud-palette-text-primary);
}

.mud-dialog-alert .mud-dialog-title {
    text-align: center;
    font-size: 1.25rem;
}

.mud-dialog-full-screen {
    border-radius: 0;
    border: none;
}

.mud-dialog .mud-dialog-content {
    padding: 8px 24px;
    margin: 0;
}

.mud-dialog.mud-dialog-full-screen  .mud-dialog-title {
    display: flex;
    justify-content: space-between;
}

.mud-dialog-alert .mud-dialog-title,
.mud-dialog-custom .mud-dialog-title,
.mud-dialog-custom .mud-dialog-actions {
    padding: 0 24px;
}

.mud-dialog-custom .mud-dialog-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mud-dialog-picker,
.mud-dialog-picker .mud-dialog-content {
    padding: 0;
}

.mud-dialog-sticky .mud-dialog-content {
    padding-bottom: 0;
}

.mud-dialog .mud-dialog-title .mud-button-close {
    position: relative;
    right: -0.5rem;
    top: -0.5rem;
}

.mud-dialog-small {
    padding: 0;
    width: min-content;
}

.mud-dialog-small .mud-dialog-content {
    padding: 16px 8px;
}

.mud-main-content,
.bg-custom {
    background-color: var(--mud-palette-background);
}

.bg-custom-light {
    background-color: var(--mud-palette-surface);
}

.custom-icon.mud-icon-button {
    color: var(--mud-palette-text-primary);
}

@media (hover: hover) {
    a:hover {
        color: inherit;
        opacity: 0.8;
    }

    .btn-green:hover,
    .btn-red:hover {
        box-shadow: 0 2px 4px -1px rgba(0, 0, 0, .2), 0 4px 5px 0 rgba(0, 0, 0, .14), 0 1px 10px 0 rgba(0, 0, 0, .12);
    }

    .btn-red:hover {
        background-color: var(--redColor);
    }

    .btn-green:hover {
        background-color: var(--greenColor);
    }
    
    .btn-text-label:hover {
        box-shadow: none;
        background-color: transparent;
    }
    
    .btn-shadow:hover {
        box-shadow: 0 2px 24px -8px rgba(0,0,0,0.1);
    }

    .btn-disabled:hover {
        box-shadow: none;
        background-color: transparent;
        cursor: none;
    }
    
    .custom-mud-button:hover {
        box-shadow: none;
    }

    .border-red:hover {
        box-shadow: 0 0 3px 1px var(--redColor);;
    }
}

@media (hover: hover) and (pointer: fine) {
    .custom-icon.mud-icon-button:hover {
        background-color: var(--mud-palette-background);
    }
}

.youtube-iframe {
    height: 615px!important;
    width: 100%;
}

.chat-input .mud-input.mud-input-underline::before,
.chat-input .mud-input.mud-input-underline::after,
.chat-input .mud-input.mud-input-underline:hover {
    border-bottom: none !important;
}

.scroll-hidden {
    -ms-overflow-style: none;
    overflow: scroll;
    scrollbar-width: none;
}

.scroll-hidden::-webkit-scrollbar {
    display: none; 
}

.chat-message-file {
    width: fit-content;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: normal !important;
}

.chat-message {
    max-width: 90%;
}

@media (min-width: 992px) {
    .chat-message {
        max-width: 60%;
    }
}

.mud-chart-legend {
    display: grid;
    gap: 8px;
}

.mud-chart-legend-item {
    display: flex !important;
    gap: 8px;
    align-items: center;
}

.mud-chart-legend-item > span {
    font-size: 15px;
    font-family: "Oswald", sans-serif;
    font-weight: 600;
}

.radio-column .mud-radio-group {
    display: flex;
    flex-direction: column;
}

.cursor-pointer {
    cursor: pointer;
}

.border-more-info {
    border-radius: 0 0 1rem 1rem;
    border: 1px solid var(--mud-palette-background-gray);
    margin-inline: 1rem;
}

.calendar-header {
    height: var(--calendar-cell);
    padding-left: 68px;
}

.calendar-header__day {
    padding: 0.1875em 1rem;
}

.calendar-header__day,
.calendar-day {
    width: 2.5em;
    flex: 1 0 auto;
    border-left: 1px solid var(--mud-palette-divider);
}

.calendar-hour .calendar-item {
    width: 100%;
    border: none;
    
    border-top: 1px solid var(--mud-palette-divider);
    height: var(--calendar-cell);
}

.calendar-time-container {
    width: 4.25rem;
}

.calendar-day:last-of-type,
.calendar-header__day:last-of-type {
    border-right: 1px solid var(--mud-palette-divider);
}

.calendar-item {
    border-top: 1px solid var(--mud-palette-divider);
    position: relative;
    height: var(--calendar-cell);
    flex: 1 0 auto;
    cursor: pointer;
}

.reservation-box {
    position: absolute;
    display: grid;
    place-content: center;
    border-radius: 16px;
    min-height: 24px;
    padding: 4px 8px;
    text-align: center;
    cursor: pointer;
    z-index: 99;
    width: 100%;
}

.reservation-box div {
    overflow-wrap: anywhere;
}

.reservation-item {
    padding: 2px 4px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 4px;
}

.reservation-item-selected {
    padding: 2px 4px;
    border: 2px solid var(--mud-palette-text-primary);
    border-radius: 4px;
}

.reservation-item-disabled {
    padding: 2px 4px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 4px;
    opacity: 0.5;
}

@media only screen and (max-width: 767px) {
    .calendar-header {
        padding-left: 3rem;
        height: 72px;
    }

    .calendar-header__day {
        padding: 0 0.25rem;
    }

    .calendar-header__day span,
    .calendar-item, .reservation-box-box div  {
        font-size: 11px;
    }

    .calendar-time-container {
        width: 3rem;
    }

    .reservation-box {
        border-radius: 6px;
        padding: 2px 4px;
    }

    :root {
        --calendar-cell: var(--cell-big);
    }
}

@media only screen and (max-width: 991px) {
    :root {
        --permission-cell: 80px;
    }
}

.mud-picker-container {
    border-radius: 8px !important;
    border: 1px solid var(--mud-palette-divider);
}

@keyframes pulse-border {
    0% {
        border-color: transparent;
        border-width: 5px;
    }
    50% {
        border-color: #a62308;
        border-width: 5px;
    }
    100% {
        border-color: transparent;
        border-width: 5px;
    }
}

.reservation-item-unpaid {
    border: 5px solid transparent; /* Set initial border color to transparent */
    border-radius: 16px;
    animation: pulse-border 1.5s infinite; /* Apply the pulse-border animation */
}

.reservation-item-unpaid-cash {
    border: 5px solid #a62308;
    border-radius: 16px;
}