﻿.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    width: 100%;
    padding-right: var(--tblr-gutter-x,1.5rem);
    padding-left: var(--tblr-gutter-x,1.5rem);
    margin-right: auto;
    margin-left: auto;
}

.btn-floating {
    position: fixed;
    z-index: 1030;
    bottom: 1rem;
    right: 1rem;
    left: auto !important;
    box-shadow: var(--tblr-shadow-dropdown);
}

.pin-keyboard {
    max-width: 350px;
    margin: 0 auto;
}

.pin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

    .pin-grid .btn {
        aspect-ratio: 1;
        font-size: 1.5rem;
        font-weight: 600;
    }

.page-pretitle, .dropdown-header, .hr-text, .subheader, .table thead th {
    font-size: .60rem !important;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: .5rem;
    font-size: .875rem;
    font-weight: 500;
}

.hover-underline {
    text-decoration: none !important;
}

    .hover-underline:hover {
        text-decoration: underline !important;
    }

a {
    text-decoration: none !important;
}

    a:hover {
        text-decoration: none !important;
    }

    a:active {
        text-decoration: none !important;
    }

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHZpZXdCb3g9IjAgMCA1NiA0OSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjUgNi41VjIxLjVIMTguNVYxMi41SDM5LjVWMjEuNUg0NC41VjYuNUgxMy41WiIgZmlsbD0iIzEwNTI5QiIvPgo8cGF0aCBkPSJNMy44IDE0LjlWMzcuNEg0OC4yVjE0LjlIMy44WiIgZmlsbD0iIzFFN0ZCOCIvPgo8cGF0aCBkPSJNMTMuNSAzMS41VjM3LjVIMTguNVYzMS41SDEzLjVaIiBmaWxsPSIjMTA1MjlCIi8+CjxwYXRoIGQ9Ik0zOS41IDMxLjVWMzcuNUg0NC41VjMxLjVIMzkuNVoiIGZpbGw9IiMxMDUyOUIiLz4KPC9zdmc+) 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: #262626;
            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, "Carregando");
    }

[data-bs-theme="dark"] .loading-progress {
    stroke: #ffffff;
}

[data-bs-theme="light"] .loading-progress {
    stroke: #0d6efd;
}

.camera-container video {
    max-height: 400px;
    object-fit: cover;
    background-color: #000;
}

.container-tight {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .camera-container video {
        max-height: 300px;
    }
}