/* Blazor framework: EditForm validation, error UI, error boundary, loading progress */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--bs-success);
}

.invalid {
    outline: 1px solid var(--bs-danger);
}

.validation-message {
    color: var(--bs-danger);
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
    color: #fff !important;
}

.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: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 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");
    }

*[disabled], *:disabled {
    cursor: not-allowed !important;
    pointer-events: all !important;
}

.invalid {
    outline: 1px solid var(--bs-danger);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    color: #fff !important;
}

*[disabled], *:disabled {
    cursor: not-allowed !important;
    pointer-events: all !important;
}

input[type="file"] {
    display: none;
}

.border-bottom-5 {
    border-bottom: 5px solid var(--bs-border-color);
}

.border-light-grey, .border-light-gray {
    border-color: #F2F2F2 !important;
}

.hover-elevation:hover {
    box-shadow: var(--bs-box-shadow);
}

.text-gray-400, .text-grey-400 {
    color: #94a3b8 !important;
}

.text-teal {
    color: #3FC6EE;
}

.half-opacity {
    opacity: 0.5;
}

.text-small, .text-small > .bi {
    font-size: 12px !important;
}

.object-contain {
    object-fit: contain !important;
}

/* Shared: section page layout (Section component, landing/marketing pages) */

section {
    padding-top: 105px;
    padding-bottom: 60px;
}

section h1, section h2, section h3, section h4, section h5, section h6 {
    font-weight: bolder;
}

section h2 {
    margin-bottom: 40px;
}

@media (max-width: 411px) {
    section {
        padding-top: 85px;
        padding-bottom: 30px;
    }
}

@media (min-width: 411px) and (max-width: 768px) {
    section {
        padding-top: 105px;
        padding-bottom: 30px;
    }
}

/* Shared: floating action buttons (ProfileHeader, DetailPageLayout) */

.btn-circle {
    border-radius: 50%;
    height: 55px;
    width: 55px;
    font-size: 22px;
}

.btn-light-grey, .bg-light-grey, .btn-light-gray, .bg-light-gray {
    background-color: #F2F2F2 !important;
}

.btn-boost, .btn-fab {
    position: relative;
    z-index: 999;
    float: right;
    margin-top: -35px;
    margin-right: 10px;
    display: inline;
}

.detail-description-layout {
    margin-bottom: 1rem;
}
.detail-block {
    border-radius: var(--bs-border-radius);
    margin-top: -15px;
    position: relative;
    padding: 40px 20px;
    background-color: #fff;
}
.detail-block h4 {
    font-style: italic;
}

.detail-with-fab {
    display: inline-block;
    margin-top: -35px !important;
    width: 100%;
}

/* Shared: h6.intertitle (ContentDetailDescription, ContentDetailLayout, ContentDetailContactInfo) */

h6.intertitle {
    font-style: normal;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin-top: 24px;
    margin-bottom: 20px;
}

/* Shared: status-message-container (StatusMessageLayout, NoResultsLayout) */

.info-card, ul.status-message-container li, div.status-message-container {
    background-color: var(--bs-tertiary-bg);
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    padding: 15px;
    margin-bottom: 15px;
}

.validation-message {
    border: none;
    background-color: var(--bs-tertiary-bg);
    border-radius: 15px;
    cursor: pointer;
    padding: 15px;
    margin-bottom: 15px;
}

.modal.show {
    display: block!important;
}

.dropdown.item, .cursor-pointer, .expand-shrink-label {
    cursor: pointer;
}

/* Shared: overlay (HorizontalCard, ThumbnailCard, SwipeLayout) */

.overlay {
    position: absolute;
    border-radius: 15px;
    top: 0;
    cursor: pointer;
    height: 134px;
    width: 100%;
}

/* Shared: horizontal-card (ContentCard, ContentPreviewCard) */

.horizontal-card {
    cursor: pointer;
}

.horizontal-card .img-left {
    object-fit: cover;
    object-position: center;
    border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
    height: 190px;
    width: 100%;
}

.horizontal-card .overlay {
    height: 100% !important;
}

.horizontal-card .rounded-pill {
    position: absolute;
    left: 10px;
    top: 94px;
    height: 30px;
    padding: 4px 12px;
    font-size: 14px;
}

.horizontal-card span.btn {
    position: absolute;
    left: 10px;
    top: 10px !important;
    height: 30px;
    padding: 4px 12px;
    font-size: 14px;
}

/* Shared: card-date (CardsDocs, ContentPageDocs) */

.card-date {
    background-color: #F8F8F8;
}

.cards-group .card.thumbnail .btn-circle, .cards-group .card.thumbnail .rounded-pill {
    position: absolute;
    left: 10px;
    top: 94px;
    height: 30px;
}

.cards-group .card.thumbnail .btn-circle {
    width: 30px;
    padding: 4px 0 0;
    font-size: 16px;
}

.cards-group .card.thumbnail .rounded-pill {
    padding: 4px 12px;
    font-size: 14px;
}

/* Shared: accent border + corner-chip icon (ThumbnailCard, CompactCard, HorizontalCard, NarrowCard, ContentCard) */

.accent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    border-radius: inherit !important;
    pointer-events: none;
}

.overlay-icon-container {
    position: absolute;
    top: -1px;
    right: -1px;
    padding: 2px 4px 4px 8px;
    border-radius: 0 5px 0 inherit;
}

.overlay-icon-container .bi {
    font-size: 16px;
    color: #fff;
}

.accent-warning {
    border: 4px solid var(--bs-warning);
}

.accent-warning .overlay-icon-container {
    background-color: var(--bs-warning);
}

.accent-primary {
    border: 4px solid var(--bs-primary);
}

.accent-primary .overlay-icon-container {
    background-color: var(--bs-primary);
}

.accent-purple {
    border: 4px solid var(--bs-purple);
}

.accent-purple .overlay-icon-container {
    background-color: var(--bs-purple);
}

.accent-danger {
    border: 4px solid var(--bs-danger);
}

.accent-danger .overlay-icon-container {
    background-color: var(--bs-danger);
}

.accent-secondary {
    border: 4px solid var(--bs-secondary);
}

.accent-secondary .overlay-icon-container {
    background-color: var(--bs-secondary);
}


.thumbnail-card .overlay, .thumbnail-card .accent-overlay {
    height: 134px !important;
}

/* ThumbnailCard image (put an <img class="card-thumbnail-img"> in the <Image> fragment) */

.card-thumbnail-img {
    width: 100%;
    height: 134px;
    object-fit: cover;
    border-radius: var(--bs-border-radius);
}

/* CompactCard avatar (put an <img class="compact-image rounded-circle"> in the <Image> fragment) */

.compact-image {
    height: 50px;
    width: 50px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Dimmed card (CompactCard / HorizontalCard IsDimmed) */

.faded {
    opacity: 0.4;
}

/* Placeholder overlay (Add tile pattern: put this markup in a ThumbnailCard <Overlay>) */

.card .placeholder-overlay {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.65);
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    border-radius: var(--bs-border-radius);
    padding-top: 50px;
}

.card .placeholder-overlay h6 {
    font-size: 16px;
    color: #fff;
    font-weight: normal;
    width: 100%;
}

.card .placeholder-overlay .bi {
    color: #fff;
    width: 100%;
}

/* Upload component */

.custom-file-upload {
    border: 2px dashed var(--bs-border-color);
    display: block;
    padding-top: 40px;
    height: 160px;
    cursor: pointer;
    border-radius: var(--bs-border-radius);
    text-align: center;
}

.custom-file-upload h6 {
    font-size: 16px;
    color: var(--bs-secondary-color);
    font-weight: normal;
}

.custom-file-upload .bi {
    color: var(--bs-body-color);
}

/* Shared: swipe deck (SwipeLayout, SwipeButtonsLayout) */

.swipe-layout {
    position: relative;
    margin: auto 15px;
}

.swipe-layout .card {
    display: none;
    transform-origin: 50% 100%;
    transition: visibility .3s linear, opacity .3s linear;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 15px;
}

.swipe-layout .card:first-child {
    display: flex;
    opacity: 1;
    z-index: 3;
    top: 28px;
}

.swipe-layout .card:nth-child(2), .swipe-layout .card:nth-child(3), .swipe-layout .card:nth-child(2) img, .swipe-layout .card:nth-child(3) img {
    display: flex;
    max-height: 150px !important;
    box-shadow: none !important;
}

.swipe-layout .card:nth-child(2) {
    opacity: 0.8;
    z-index: 2;
    top: 14px;
    left: 22px;
    right: 22px;
}

.swipe-layout .card:nth-child(3) {
    opacity: 0.6;
    z-index: 1;
    left: 29px;
    right: 29px;
}

.swipe-layout h5.card-title {
    font-size: 18px;
    font-weight: 600;
}

.swipe-layout .card:nth-child(3) .card-footer {
    display: none;
}

.swipe-layout .card-img-top {
    width: auto;
    object-fit: cover;
    object-position: top;
    border-radius: 15px;
    box-shadow: 0.875rem 0.875rem 0.875rem 0 rgb(41 48 66 / 10%);
}

.swipe-layout .card-img-overlay.status {
    width: 100%;
    height: 100%;
    text-align: center;
    border-radius: 15px;
}

.swipe-layout .card-img-overlay.status.bg-danger {
    background: rgba(237, 105, 74, 0.7) !important;
}

.swipe-layout .card-img-overlay.status.bg-success {
    background: rgba(76, 217, 100, 0.7) !important;
}

.swipe-layout .card-img-overlay.status > button {
    margin-top: 50%;
    background-color: #fff;
}

/* Source: https://codepen.io/suez/pen/MaeVBy */

.swipe-layout > .card.to-left {
    transform: translateX(-30rem) rotate(-30deg) !important;
}

.swipe-layout > .card.to-right {
    transform: translate(30rem) rotate(30deg) !important;
}

.swipe-layout > .card.reset {
    transition: transform 0.3s;
    transform: translateX(0) !important;
}

.swipe-layout > .card.inactive {
    transition: transform 0.3s;
}

.swipe-layout .overlay {
    border: none !important;
    right: 4px !important;
    top: 4px !important;
}

.boost-border {
    border: 4px solid var(--bs-purple);
}

/* SWIPE BUTTONS */

#swipe-buttons.row.fixed-bottom {
    padding-bottom: 39px;
}

#swipe-buttons {
    padding-top: 11px;
    background-color: var(--bs-body-bg);
}

.swipe-buttons-container {
    width: auto;
    margin: 0 auto;
}

.btn-swipe {
    margin-right: 28px;
    font-size: 18px !important;
}

.btn-swipe:last-child {
    margin-right: 0px;
}

@media (min-width: 768px) {
    .swipe-layout .card, .swipe-layout .card img {
        max-height: 700px;
    }

    .swipe-layout .overlay .overlay-icon-container {
        padding: 4px 6px 6px 10px !important;
    }

    .swipe-layout .overlay .bi {
        font-size: 18px !important;
    }

    .swipe-layout .boost-border {
        border: 6px solid var(--bs-purple);
    }
}
