@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.mud-typography,
.mud-input > input,
.mud-input-slot,
.mud-button-root,
.mud-link,
.mud-chip,
.mud-list-item-text,
.mud-table,
.mud-dialog {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn: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;
}

.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+PC9kZWZzPjxnIGNsaXAtcGF0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ODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.initial-loading {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, #eef3fa 0%, #e4ecf7 100%);
}

.initial-loading-card {
    width: min(92vw, 360px);
    border-radius: 18px;
    padding: 24px 22px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(110, 135, 170, 0.2);
    box-shadow: 0 18px 40px rgba(21, 40, 66, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.initial-loading-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 8px;
}

.initial-loading-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #253654;
}

.initial-loading-subtitle {
    font-size: 0.9rem;
    color: #5d7297;
    margin-top: 3px;
    margin-bottom: 12px;
}

.loading-progress {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 4px auto 6px;
}

    .loading-progress circle {
        fill: none;
        stroke: #d7e3f4;
        stroke-width: 6px;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #2c82f6;
            stroke-linecap: round;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.08s ease-in-out;
        }

.loading-progress-text {
    text-align: center;
    font-weight: 700;
    color: #274066;
    min-height: 20px;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Carregando");
    }

.initial-loading-skeleton {
    width: 100%;
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.initial-loading-skeleton span {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e6edf9 0%, #f4f7fd 50%, #e6edf9 100%);
    background-size: 220% 100%;
    animation: initial-loading-shimmer 1.2s linear infinite;
}

.initial-loading-skeleton span:nth-child(2) {
    width: 82%;
    justify-self: center;
}

.initial-loading-skeleton span:nth-child(3) {
    width: 64%;
    justify-self: center;
}

@keyframes initial-loading-shimmer {
    from {
        background-position: 100% 0;
    }
    to {
        background-position: -100% 0;
    }
}

@media (max-width: 600px) {
    .initial-loading-card {
        padding: 20px 16px 16px;
    }
}

.navmenu-wrapper .mud-nav-link,
.navmenu-wrapper .mud-nav-link .mud-nav-link-text {
    color: #dce8fb !important;
    opacity: 1 !important;
}

.navmenu-wrapper .mud-nav-link .mud-nav-link-icon,
.navmenu-wrapper .mud-nav-link .mud-icon-root {
    color: #9bc3ff !important;
}

.navmenu-wrapper .mud-nav-link.mud-nav-link-disabled,
.navmenu-wrapper .mud-nav-link.mud-disabled,
.navmenu-wrapper .mud-nav-link[disabled],
.navmenu-wrapper .mud-nav-link[aria-disabled="true"] {
    color: #b7cde9 !important;
    opacity: 0.92 !important;
}

.navmenu-wrapper .mud-nav-link.mud-nav-link-disabled .mud-nav-link-text,
.navmenu-wrapper .mud-nav-link.mud-disabled .mud-nav-link-text,
.navmenu-wrapper .mud-nav-link[disabled] .mud-nav-link-text,
.navmenu-wrapper .mud-nav-link[aria-disabled="true"] .mud-nav-link-text {
    color: #b7cde9 !important;
}

.navmenu-wrapper .mud-nav-link.mud-nav-link-disabled .mud-nav-link-icon,
.navmenu-wrapper .mud-nav-link.mud-disabled .mud-nav-link-icon,
.navmenu-wrapper .mud-nav-link[disabled] .mud-nav-link-icon,
.navmenu-wrapper .mud-nav-link[aria-disabled="true"] .mud-nav-link-icon,
.navmenu-wrapper .mud-nav-link.mud-nav-link-disabled .mud-icon-root,
.navmenu-wrapper .mud-nav-link.mud-disabled .mud-icon-root,
.navmenu-wrapper .mud-nav-link[disabled] .mud-icon-root,
.navmenu-wrapper .mud-nav-link[aria-disabled="true"] .mud-icon-root {
    color: #8fb2de !important;
}

.mud-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(110, 135, 170, 0.22);
    background: rgba(255, 255, 255, 0.92);
}

.mud-table .mud-table-container {
    border-radius: 12px;
}

.mud-table .mud-table-root thead th {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: rgba(42, 56, 82, 0.9);
    border-bottom: 1px solid rgba(112, 136, 169, 0.28);
}

.mud-table .mud-table-root tbody td {
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(126, 149, 180, 0.18);
}

.mud-table .mud-table-root tbody tr {
    transition: background-color .2s ease;
}

.mud-table .mud-table-root tbody tr:hover {
    background-color: rgba(46, 132, 246, 0.08);
}

.mud-table .mud-table-toolbar {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(112, 136, 169, 0.22);
}

.mud-table .mud-table-pagination {
    border-top: 1px solid rgba(112, 136, 169, 0.18);
}

.mud-theme-dark .mud-table {
    border-color: rgba(122, 145, 178, 0.2);
    background: rgba(20, 28, 43, 0.88);
}

.mud-theme-dark .mud-table .mud-table-root thead th {
    color: rgba(220, 231, 247, 0.92);
    border-bottom-color: rgba(130, 154, 189, 0.24);
}

.mud-theme-dark .mud-table .mud-table-root tbody td {
    border-bottom-color: rgba(130, 154, 189, 0.16);
}

.mud-theme-dark .mud-table .mud-table-root tbody tr:hover {
    background-color: rgba(46, 132, 246, 0.14);
}

.mud-input-control {
    transition: transform .12s ease;
}

.mud-input-control:hover {
    transform: translateY(-1px);
}

.mud-input-outlined .mud-input-outlined-border {
    border-color: rgba(108, 132, 168, 0.34) !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mud-input-control:hover .mud-input-outlined-border {
    border-color: rgba(46, 132, 246, 0.62) !important;
}

.mud-input-control.mud-input-focused .mud-input-outlined-border {
    border-color: #2c82f6 !important;
    box-shadow: 0 0 0 3px rgba(44, 130, 246, 0.14);
}

.mud-input-label {
    font-weight: 600;
    letter-spacing: .1px;
}

.mud-input-adornment .mud-icon-root,
.mud-input-slot {
    color: rgba(34, 54, 86, 0.9);
}

.mud-input-helper-text {
    font-size: .74rem;
    opacity: .85;
}

.mud-select .mud-input-slot,
.mud-picker .mud-input-slot {
    font-weight: 600;
}

.mud-button-root.mud-button-filled {
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: .2px;
    text-transform: none;
    box-shadow: 0 8px 18px rgba(44, 130, 246, 0.24);
}

.mud-button-root.mud-button-filled:hover {
    transform: translateY(-1px);
}

.mud-button-root.mud-button-outlined,
.mud-button-root.mud-button-text {
    border-radius: 10px;
    font-weight: 600;
}

.mud-theme-dark .mud-input-outlined .mud-input-outlined-border {
    border-color: rgba(132, 154, 190, 0.34) !important;
}

.mud-theme-dark .mud-input-control:hover .mud-input-outlined-border {
    border-color: rgba(96, 171, 255, 0.72) !important;
}

.mud-theme-dark .mud-input-control.mud-input-focused .mud-input-outlined-border {
    border-color: #60abff !important;
    box-shadow: 0 0 0 3px rgba(96, 171, 255, 0.16);
}

.mud-theme-dark .mud-input-adornment .mud-icon-root,
.mud-theme-dark .mud-input-slot {
    color: rgba(223, 233, 247, 0.92);
}
