
/* =========================================================
   BASE
========================================================= */

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

h1:focus {
    outline: none;
}

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

code {
    color: #c02d76;
}

.content {
    padding-top: 1.1rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot-green {
    background-color: var(--color-status-success);
}

.status-dot-orange {
    background-color: var(--color-status-warning);
}

.status-dot-blue {
    background-color: var(--color-status-info);
}

/* =========================================================
   BOTÕES / BOOTSTRAP OVERRIDES
========================================================= */

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

.button-transparent {
    border: none !important;
    background-color: transparent !important;
    color: var(--gp-background-light) !important;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.button-transparent-with-border {
    border: 1px solid var(--gp-background-light) !important;
    background-color: transparent !important;
    color: var(--gp-background-light) !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;

}

.link-ul-transparent {
    border: none !important;
    background-color: transparent !important;
    color: var(--gp-background-light) !important;
    padding: 0;
    gap: 1rem;
    display: flex;
    align-items: end;
}
/*
.pagination-page-selected {
    font-weight: 700 !important;
    color: var(--gp-background-light) !important;
    background-color: transparent !important;
    box-shadow: inset 0 -2px 0 var(--gp-background-light) !important;
    padding: 2px 6px !important;
}*/

.pagination-page-selected {
    font-weight: 700 !important;
    color: var(--gp-background-light) !important;
    background-color: rgba(255, 255, 255, 0.18) !important;
/*    border: 1px solid var(--gp-background-light) !important;*/
/*    border-radius: 6px !important;*/
/*    padding: 2px 6px !important;*/
}

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


/* =========================================================
   VALIDAÇÃO
========================================================= */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}


/* =========================================================
   BLAZOR ERROR UI
========================================================= */

#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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODk5My44MDcyTDIzNi4zMzggOTMuMDE2MiAyMzYuODU4IDkyLjEzMTQgMjU5LjQ3MyA1My42Mjk0IDI1OS45NjEgNTIuNzk4NSAyNjAuNDA3IDUyLjI2NThDMjYxLjIgNTEuNDgzNyAyNjIuMjk2IDUxIDI2My41MDYgNTFaTTI2My41ODYgNjYuMDE4M0MyNjAuNzM3IDY2LjAxODMgMjU5LjMxMyA2Ny4xMjQ1IDI1OS4zMTMgNjkuMzM3IDI1OS4zMTMgNjkuNjEwMiAyNTkuMzMyIDY5Ljg2MDggMjU5LjM3MSA3MC4wODg3TDI2MS43OTUgODQuMDE2MSAyNjUuMzggODQuMDE2MSAyNjcuODIxIDY5Ljc0NzVDMjY3Ljg2IDY5LjczMDkgMjY3Ljg3OSA2OS41ODc3IDI2Ny44NzkgNjkuMzE3OSAyNjcuODc5IDY3LjExODIgMjY2LjQ0OCA2Ni4wMTgzIDI2My41ODYgNjYuMDE4M1pNMjYzLjU3NiA4Ni4wNTQ3QzI2MS4wNDkgODYuMDU0NyAyNTkuNzg2IDg3LjMwMDUgMjU5Ljc4NiA4OS43OTIxIDI1OS43ODYgOTIuMjgzNyAyNjEuMDQ5IDkzLjUyOTUgMjYzLjU3NiA5My41Mjk1IDI2Ni4xMTYgOTMuNTI5NSAyNjcuMzg3IDkyLjI4MzcgMjY3LjM4NyA4OS43OTIxIDI2Ny4zODcgODcuMzAwNSAyNjYuMTE2IDg2LjA1NDcgMjYzLjU3NiA4Ni4wNTQ3WiIgZmlsbD0iI0ZGRDUwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9nPjwvc3ZnPg==) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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


/* =========================================================
   LOADING BLAZOR
========================================================= */

.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");
    }


/* =========================================================
   INITIAL LOADING SCREEN
========================================================= */

.initial-loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-height: 100vh;
    width: 100%;
    background: radial-gradient(ellipse at 85% 55%, rgba(0, 220, 220, 0.18) 0%, transparent 60%), linear-gradient(-45deg, var(--cor-primaria-clara) 0%, var(--cor-primaria-escura) 60%);
    font-family: 'DM Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #ffffff;
    font-size: 0.9rem;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    position: relative;
}

.initial-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(1, 191, 223, 0.22);
    border-top-color: var(--cor-azul-neon);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.initial-loading-message {
    min-height: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
    transition: opacity 0.25s ease;
}

.initial-loading-screen.access-error-screen {
    background: radial-gradient(ellipse at 85% 55%, rgba(220, 38, 38, 0.18) 0%, transparent 60%), linear-gradient(-45deg, #7f1d1d 0%, #2b0b0b 60%) !important;
}

.access-error-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(248, 113, 113, 0.35);
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    box-shadow: 0 0 22px rgba(220, 38, 38, 0.35);
}

.initial-loading-message.access-error-message {
    color: rgba(254, 226, 226, 0.9) !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   FORM FLOATING
========================================================= */

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* =========================================================
   TELA LOGIN
========================================================= */

.login-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f9;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    text-align: center;
}

    .login-card h1 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 8px;
        color: #111827;
    }

    .login-card p {
        color: #6b7280;
        margin-bottom: 28px;
    }


/* =========================================================
   AVATAR USUÁRIO
========================================================= */

.user-avatar {
    background-color: var(--section-icon-bg, rgba(1, 191, 223, 0.063));
    color: var(--section-icon-color, #01BFDF);
}

.adm-full {
    background-color: rgba(1, 191, 223, 0.063);
}

.adm-parcial {
}

.user-simulacao {
}

/* =========================================================
   BACKGROUND DEFAULT
========================================================= */

.background-default-light {
    background-color: var(--gp-background-header-light);
}

.background-default-dark{
    background-color: var(--gp-background-dark);
}

.background-90deg {
    background-image: linear-gradient(-90deg, var(--gp-background-dark) 0%, var(--gp-background-light) 70%);
}

.background-180deg {
    background-image: linear-gradient(180deg, var(--gp-sidebar-dark) 0%, var(--gp-sidebar-light) 70%);
}

/* =========================================================
   PADRÃO PARA AÇÕES EM BOTÕES
========================================================= */

.btn-search-icon {
    border: none;
    outline: none;
    box-shadow: none;
    transition: transform 0.08s ease;
}

    .btn-search-icon:focus,
    .btn-search-icon:focus-visible,
    .btn-search-icon:focus-within {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
    }


/* =========================================================
   FORM CONTROLS
========================================================= */

.form-control:focus,
.form-control:focus-visible,
.form-select:focus,
.form-select:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--gp-tables-color) !important;
}


/* =========================================================
   INPUT COM ÍCONE
========================================================= */

.input-with-icon {
    position: relative;
    width: 100%;
}

    .input-with-icon input {
        padding-left: 2rem;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 0.75rem;
        height: 1.7rem;
        font-size: 0.85rem;
    }

    .input-with-icon:focus,
    .input-with-icon:focus-visible {
        outline: none;
        box-shadow: none;
    }

    .input-with-icon i {
        position: absolute;
        left: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
        pointer-events: none;
        font-size: 0.9rem;
    }

    .input-with-icon select {
        padding-left: 2rem;
        padding-right: 2.25rem;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 0.75rem;
        height: 1.7rem;
        min-height: 1.7rem;
        font-size: 0.85rem;
        line-height: 1;
        color: #212529;
        background-color: #fff;
        box-shadow: none;
    }

        .input-with-icon select:focus,
        .input-with-icon select:focus-visible {
            outline: none;
            box-shadow: none;
            border-color: rgba(0, 0, 0, 0.35);
        }

        .input-with-icon select:disabled {
            background-color: #e9ecef;
            opacity: 0.75;
            cursor: not-allowed;
        }


/* =========================================================
   LABELS / CAMPOS OBRIGATÓRIOS
========================================================= */

.col-form-label {
    padding-top: calc(0.4rem + 1px);
    padding-bottom: calc(0.2rem);
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #656d9a;
}

.obrigatorio:after {
    content: " *";
    color: red;
}

.col-form-label {
    font-weight: 600;
    color: black;
}


/* =========================================================
   CORES DE PERMISSÃO
========================================================= */

.color-permission-green {
    --section-icon-bg: transparent;
    --section-icon-color: rgb(12, 168, 112);
}

.color-permission-blue {
    --section-icon-bg: transparent;
    --section-icon-color: #01BFDF;
}

.color-permission-purple {
    --section-icon-bg: transparent;
    --section-icon-color: rgb(100, 53, 134);
}


/* =========================================================
   VALIDATION MESSAGE
========================================================= */

.validation-message {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8rem;
    font-weight: var(--font-weight-normal);
    color: #dc3545;
    font-style: italic;
}


/* =========================================================
   APEXCHARTS
========================================================= */

.apexcharts-bar-area {
    stroke: var(--bs-body-bg);
    stroke-width: 2px;
}

.apexcharts-title-text {
    fill: var(--gp-primary);
}

/* =========================================================
   CARD, TITLE AND SUBTITLE
========================================================= */

.card {
    border: 3px solid rgba(0, 0, 0, 0.07);
    border-radius: 1.2rem;
}

.title-text {
    color: var(--gp-primary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.4rem;
}

.subtitle-text {
    opacity: 1;
    font-size: var(--font-size-subtitle-cards);
    font-weight: var(--font-weight-normal);
    color: var(--color-subtitles);
}


/* =========================================================
   TABLES
========================================================= */
.ValueColumnList {
    padding: .2rem;
    font-size: var(--font-size-description-cards);
    display: flex;
    align-items: center;
}

.item-table {
    border: 1px solid;
    border-color: var(--gp-tables-color);
}

    .item-table a {
        border-bottom-width: unset;
    }

.table-font-default th,
.table-font-default td {
    font-size: var(--font-size-subtitle-cards);
    line-height: 1.4;
}

.table-font-default th {
    font-weight: var(--font-weight-bold);
}

.table-font-default td {
    font-weight: var(--font-weight-normal);
}
.hypera-table > thead > tr > th {
    --bs-table-bg: var(--gp-background-header-light);
    --bs-table-accent-bg: transparent;
    background-color: var(--gp-background-header-light) !important;
    background-clip: padding-box;
    box-shadow: none !important;
}
.hypera-table > thead > tr > th {
    background-color: var(--gp-background-header-light);
}

/* =========================================================
   CARDS
========================================================= */

.card-gp {
    position: relative;
    margin-top: 1.5rem;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0, 32, 96, 0.08);
}

.card-gp-title {
    font-weight: var(--font-weight-bold);
    color: var(--gp-primary);
}

/* =========================================================
   DEFAULT COLORS STATUS
========================================================= */

.import-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 135px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* PENDING */
.status-pending {
    background-color: rgba(108, 117, 125, 0.12);
    color: #344767;
}

/* PROCESSING */
.status-processing {
    background-color: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

/* COMPLETED */
.status-completed {
    background-color: rgba(40, 199, 111, 0.16);
    color: #00a650;
}

/* COMPLETED_WITH_ERRORS */
.status-completed-errors {
    background-color: rgba(255, 128, 66, 0.14);
    color: #ff6b1a;
}

/* FAILED */
.status-failed {
    background-color: rgba(234, 84, 85, 0.14);
    color: #ea5455;
}

/* Status não mapeado */
.status-unknown {
    background-color: rgba(108, 117, 125, 0.12);
    color: #344767;
}

/* =========================================================
   TOASTS
========================================================= */

.blazored-toast.hypera-toast {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 1rem 1.15rem !important;
    min-width: 340px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

    .blazored-toast.hypera-toast::before {
        display: none !important;
    }

    .blazored-toast.hypera-toast .blazored-toast-heading {
        color: #111827 !important;
        font-size: 0.925rem !important;
        font-weight: 700 !important;
/*        margin-bottom: 0.2rem !important;*/
    }

    .blazored-toast.hypera-toast .blazored-toast-message {
        display: flex;
        color: #6b7280 !important;
        font-size: 0.825rem !important;
        align-items: center !important;
        justify-content: start !important;
        /*        line-height: 1.4 !important;*/
    }

    .blazored-toast.hypera-toast .blazored-toast-icon {
        width: 2.25rem !important;
        height: 2.25rem !important;
        min-width: 2.25rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 999px !important;
        font-size: 1.25rem !important;
        margin-right: 0.15rem !important;
    }

.blazored-toast.hypera-toast-success .blazored-toast-icon {
    color: #16a34a !important;
}

.blazored-toast.hypera-toast-error .blazored-toast-icon {
    color: #dc2626 !important;
}

.blazored-toast.hypera-toast-info .blazored-toast-icon {
    color: #2563eb !important;
}

.blazored-toast.hypera-toast-warning .blazored-toast-icon {
    color: #d97706 !important;
}

.blazored-toast.hypera-toast .blazored-toast-close {
    color: #9ca3af !important;
    opacity: 1 !important;
}

    .blazored-toast.hypera-toast .blazored-toast-close:hover {
        color: #374151 !important;
    }

.blazored-toast-container {
    z-index: 99999 !important;
}

.blazored-toast {
    margin-bottom: 0.75rem !important;
}