@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-ly02xunxv7],
.components-reconnect-repeated-attempt-visible[b-ly02xunxv7],
.components-reconnect-failed-visible[b-ly02xunxv7],
.components-pause-visible[b-ly02xunxv7],
.components-resume-failed-visible[b-ly02xunxv7],
.components-rejoining-animation[b-ly02xunxv7] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-ly02xunxv7],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-ly02xunxv7],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-ly02xunxv7],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-ly02xunxv7],
#components-reconnect-modal.components-reconnect-retrying[b-ly02xunxv7],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-ly02xunxv7],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-ly02xunxv7],
#components-reconnect-modal.components-reconnect-failed[b-ly02xunxv7],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-ly02xunxv7] {
    display: block;
}


#components-reconnect-modal[b-ly02xunxv7] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-ly02xunxv7 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-ly02xunxv7 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-ly02xunxv7 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-ly02xunxv7]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-ly02xunxv7 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-ly02xunxv7 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-ly02xunxv7 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-ly02xunxv7 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-ly02xunxv7] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-ly02xunxv7] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-ly02xunxv7] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-ly02xunxv7] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-ly02xunxv7] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-ly02xunxv7] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-ly02xunxv7] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-ly02xunxv7 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-ly02xunxv7] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-ly02xunxv7 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Tenant/Components/BadgePrintView.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════
   BadgePrintView — Portrait Layout (53.98mm × 85.6mm)
   Frente: header colorido + foto + dados + grid de ícones
   Verso: dados do aluno (cima) + validade treinamentos (baixo)
   ═══════════════════════════════════════════════════════════ */

/* ── Variável de cor primária (injetada via style inline) ── */
:root[b-v5sfsi9k5b] {
    --badge-primary: #e84118;
}

/* ══════════════════════════════════════════ */
/* ── FRENTE DO CRACHÁ ───────────────────── */
/* ══════════════════════════════════════════ */

.badge-front[b-v5sfsi9k5b] {
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

/* Cabeçalho colorido com logo */
.badge-front-header[b-v5sfsi9k5b] {
    background: var(--badge-primary);
    /* Hack infalível para forçar impressão de cor de fundo no Chrome */
    box-shadow: inset 0 0 0 1000px var(--badge-primary) !important;
    height: 14mm;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2mm 3mm;
}

.badge-front-logo[b-v5sfsi9k5b] {
    height: 7mm;
    max-width: 90%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* Foto centralizada */
.badge-front-photo-area[b-v5sfsi9k5b] {
    display: flex;
    justify-content: center;
    padding: 2mm 0 1.5mm;
    flex-shrink: 0;
}

.badge-front-photo[b-v5sfsi9k5b] {
    width: 18mm;
    height: 22mm;
    border-radius: 1.5mm;
    overflow: hidden;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
}

.badge-front-photo img[b-v5sfsi9k5b] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Dados do aluno (nome, matrícula, CPF) */
.badge-front-info[b-v5sfsi9k5b] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5mm;
    padding: 0 2mm 1.5mm;
    flex-shrink: 0;
}

.badge-front-name[b-v5sfsi9k5b] {
    font-size: 7.5pt;
    font-weight: 900;
    color: #111827;
    text-align: center;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-front-detail[b-v5sfsi9k5b] {
    font-size: 5pt;
    font-weight: 600;
    color: #4b5563;
    text-align: center;
}

/* Grid de ícones de treinamentos (2 colunas × 3 linhas = 6 quadrados) */
.badge-front-icons[b-v5sfsi9k5b] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5mm;
    padding: 0 2mm;
    flex: 1;
    align-content: center;
}

.badge-icon-square[b-v5sfsi9k5b] {
    aspect-ratio: 1;
    border: 1px solid #d1d5db;
    border-radius: 1mm;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    color: #374151;
    padding: 1mm;
    overflow: hidden;
}

.badge-icon-square svg[b-v5sfsi9k5b] {
    width: 100%;
    height: 100%;
    max-width: 5.5mm;
    max-height: 5.5mm;
}

.badge-icon-square--empty[b-v5sfsi9k5b] {
    border-style: dashed;
    border-color: #e5e7eb;
    background: transparent;
}

/* Rodapé com localidade */
.badge-front-footer[b-v5sfsi9k5b] {
    background: var(--badge-primary);
    box-shadow: inset 0 0 0 1000px var(--badge-primary) !important;
    height: 6.5mm;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 5.5pt;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 2mm;
}

/* ══════════════════════════════════════════ */
/* ── VERSO DO CRACHÁ ────────────────────── */
/* ══════════════════════════════════════════ */

.badge-back[b-v5sfsi9k5b] {
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

/* Cabeçalho do verso */
.badge-back-header[b-v5sfsi9k5b] {
    background: var(--badge-primary);
    box-shadow: inset 0 0 0 1000px var(--badge-primary) !important;
    height: 8mm;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1mm 3mm;
}

.badge-back-header-title[b-v5sfsi9k5b] {
    font-size: 5pt;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Seção do aluno (cima do verso) */
.badge-back-student[b-v5sfsi9k5b] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2mm;
    padding: 2mm 2.5mm;
    flex-shrink: 0;
}

.badge-back-photo[b-v5sfsi9k5b] {
    width: 14mm;
    height: 17mm;
    border-radius: 1mm;
    overflow: hidden;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    flex-shrink: 0;
}

.badge-back-photo img[b-v5sfsi9k5b] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.badge-back-student-info[b-v5sfsi9k5b] {
    display: flex;
    flex-direction: column;
    gap: 0.5mm;
    min-width: 0;
    flex: 1;
}

.badge-back-name[b-v5sfsi9k5b] {
    font-size: 7pt;
    font-weight: 900;
    color: #111827;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-back-detail[b-v5sfsi9k5b] {
    font-size: 4.5pt;
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Divisor horizontal */
.badge-back-divider[b-v5sfsi9k5b] {
    height: 0.5px;
    background: #e5e7eb;
    margin: 0 2.5mm;
    flex-shrink: 0;
}

/* Seção de validade dos treinamentos (baixo do verso) */
.badge-back-trainings[b-v5sfsi9k5b] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1mm;
    padding: 1.5mm 2.5mm;
    overflow: hidden;
}

.badge-training-row[b-v5sfsi9k5b] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5mm;
    border-radius: 1mm;
    padding: 1mm 1.5mm;
    flex-shrink: 0;
}

.badge-training-valid[b-v5sfsi9k5b] {
    background: #eff6ff;
    border-left: 1.5px solid #1b4fd8;
}

.badge-training-expired[b-v5sfsi9k5b] {
    background: #f9fafb;
    border-left: 1.5px solid #9ca3af;
    opacity: 0.75;
}

.badge-training-icon[b-v5sfsi9k5b] {
    width: 5mm;
    height: 5mm;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
}

.badge-training-icon svg[b-v5sfsi9k5b] {
    width: 100%;
    height: 100%;
}

.badge-training-name[b-v5sfsi9k5b] {
    flex: 1;
    font-size: 4.5pt;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.badge-training-date[b-v5sfsi9k5b] {
    font-size: 4pt;
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Rodapé do verso com logo */
.badge-back-footer[b-v5sfsi9k5b] {
    background: var(--badge-primary);
    height: 6.5mm;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2mm;
}
/* /Components/Pages/Tenant/Components/CertificatePrintView.razor.rz.scp.css */
.certificate-print-wrapper[b-nbh7uaitrz] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f3f4f6;
    padding: 2rem 0;
    color: #111827;
    --cert-primary: #ff4b2b;
    --cert-secondary: #1a1a2e;
}

.cert-page[b-nbh7uaitrz] {
    width: 297mm;
    min-height: 210mm;
    position: relative;
    overflow: hidden;
    background: #fff;
    margin-bottom: 2rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Template 1: Premium Geometric */
.cert-tpl-1[b-nbh7uaitrz] {
    display: flex;
    position: relative;
    background: linear-gradient(160deg, #fffcfa, #fff7f3 40%, #fff);
}

.cert-tpl-1 .cert-geo-top[b-nbh7uaitrz] {
    position: absolute;
    top: 0; left: 0; width: 180px; height: 100%;
    background: linear-gradient(160deg, var(--cert-primary) 0%, var(--cert-primary) 100%);
    opacity: 0.95;
    clip-path: polygon(0 0, 100% 0, 45% 100%, 0 100%);
    z-index: 1;
}

.cert-tpl-1 .cert-geo-bottom[b-nbh7uaitrz] {
    position: absolute;
    bottom: 0; right: 0; width: 160px; height: 100%;
    background: linear-gradient(160deg, var(--cert-secondary) 0%, var(--cert-secondary) 100%);
    clip-path: polygon(55% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

.cert-tpl-1 .cert-watermark[b-nbh7uaitrz] {
    position: absolute;
    top: 50%; left: 55%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 120px;
    font-weight: 900;
    letter-spacing: 20px;
    color: var(--cert-primary);
    opacity: 0.03;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

/* Template 2: Minimalist */
.cert-tpl-2[b-nbh7uaitrz] {
    display: flex;
    flex-direction: column;
    padding: 60px;
    background: #fff;
    align-items: center;
    justify-content: center;
}

.cert-tpl-2 .cert-frame[b-nbh7uaitrz] {
    position: absolute;
    inset: 40px;
    border: 1px solid #eee;
    z-index: 1;
}

.cert-tpl-2 .cert-strip-top[b-nbh7uaitrz] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 8px;
    background: var(--cert-primary);
}

/* Common Styles */
.cert-logo[b-nbh7uaitrz] { height: 48px; margin-bottom: 2rem; z-index: 10; }
.cert-title-v2[b-nbh7uaitrz] { font-size: 48px; font-weight: 900; letter-spacing: 16px; color: #1a1a1a; margin-bottom: 0.5rem; }
.cert-subtitle-v2[b-nbh7uaitrz] { font-size: 13px; font-weight: 700; letter-spacing: 5px; color: var(--cert-primary); text-transform: uppercase; margin-bottom: 2rem; }

.cert-body-v2[b-nbh7uaitrz] {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    color: #444;
    max-width: 850px;
    margin: 0 auto;
    z-index: 10;
}

.cert-highlight[b-nbh7uaitrz] {
    color: #1a1a1a;
    font-weight: 700;
    border-bottom: 1.5px solid var(--cert-primary);
}

.cert-signatures-v2[b-nbh7uaitrz] {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    width: 100%;
}

.cert-sig-block-v2[b-nbh7uaitrz] {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 250px;
}

.cert-sig-line-v2[b-nbh7uaitrz] {
    width: 100%;
    border-bottom: 1px solid #ccc;
    margin-bottom: 0.5rem;
}

/* Template 3: Classic Design */
.cert-tpl-3[b-nbh7uaitrz] {
    padding: 60px;
    background: #fff;
    font-family: 'Inter', sans-serif;
}

.cert-tpl-3 .cert-frame[b-nbh7uaitrz] {
    position: absolute;
    inset: 25px;
    border: 3px solid var(--cert-secondary);
    z-index: 1;
}

.cert-tpl-3 .cert-inner-frame[b-nbh7uaitrz] {
    position: absolute;
    inset: 35px;
    border: 1px solid var(--cert-secondary);
    z-index: 1;
}

.cert-tpl-3 .cert-corner[b-nbh7uaitrz] {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 3px solid var(--cert-secondary);
    transform: rotate(45deg);
    z-index: 5;
}

.cert-tpl-3 .cert-corner[b-nbh7uaitrz]::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--cert-secondary);
}

.cert-tpl-3 .cert-corner-tl[b-nbh7uaitrz] { top: 13px; left: 13px; }
.cert-tpl-3 .cert-corner-tr[b-nbh7uaitrz] { top: 13px; right: 13px; }
.cert-tpl-3 .cert-corner-bl[b-nbh7uaitrz] { bottom: 13px; left: 13px; }
.cert-tpl-3 .cert-corner-br[b-nbh7uaitrz] { bottom: 13px; right: 13px; }

.cert-tpl-3 .cert-ornament-top[b-nbh7uaitrz] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--cert-secondary);
}

.cert-tpl-3 .cert-ornament-line[b-nbh7uaitrz] {
    height: 1px;
    width: 150px;
    background: var(--cert-secondary);
}

.cert-tpl-3 .cert-ornament-center[b-nbh7uaitrz] {
    width: 14px;
    height: 14px;
    border: 1px solid var(--cert-secondary);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-tpl-3 .cert-ornament-center[b-nbh7uaitrz]::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--cert-secondary);
}

.cert-tpl-3 .cert-title-v2[b-nbh7uaitrz] {
    font-family: 'Manufacturing Consent', cursive;
    font-size: 80px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: -10px;
    text-transform: capitalize;
    color: #111;
}

.cert-tpl-3 .cert-subtitle-v2[b-nbh7uaitrz] {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 6px;
    margin-top: 0;
    margin-bottom: 2.5rem;
    color: #111;
}

.cert-tpl-3 .cert-present-to[b-nbh7uaitrz] {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.cert-tpl-3 .cert-present-to[b-nbh7uaitrz]::before,
.cert-tpl-3 .cert-present-to[b-nbh7uaitrz]::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #333;
    transform: rotate(45deg);
}

.cert-tpl-3 .cert-highlight[b-nbh7uaitrz] {
    font-family: 'MonteCarlo', cursive;
    font-style: normal;
    font-size: 64px;
    border-bottom: 2px solid var(--cert-secondary);
    display: inline-block;
    min-width: 600px;
    padding-bottom: 5px;
    margin: 1rem auto 2.5rem auto;
    color: #111;
}

.cert-tpl-3 .cert-body-v2[b-nbh7uaitrz] {
    font-size: 16px;
    max-width: 800px;
}

.cert-tpl-3 .cert-footer-v2[b-nbh7uaitrz] {
    margin-top: 3rem;
}

.cert-tpl-3 .cert-seal[b-nbh7uaitrz] {
    width: 60px;
    height: 60px;
    border: 1.5px solid var(--cert-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cert-primary);
    font-size: 32px;
    margin: 0 auto;
}

/* Media Print fixes */
@media print {
    @page {
        size: A4 landscape;
        margin: 0;
    }

    .certificate-print-wrapper[b-nbh7uaitrz] {
        background: #fff !important;
        padding: 0 !important;
        min-height: auto !important;
    }
    
    .cert-page[b-nbh7uaitrz] {
        margin: 0 !important;
        box-shadow: none !important;
        width: 297mm;
        height: 210mm;
        page-break-after: always;
        break-after: page;
    }

    .no-print[b-nbh7uaitrz] {
        display: none !important;
    }
}
/* /Components/Pages/Tenant/Components/DocumentEditorBase.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════
   DocumentEditorBase — Side-by-Side Layout (40% / 60%)
   Controls on left, Live Preview on right (sticky)
   ═══════════════════════════════════════════════════════════ */

/* ── Outer grid container ── */
.doc-editor-layout[b-nt3i2h96s8] {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 2rem;
    align-items: start;
    height: calc(100vh - 10rem); /* Altura fixa para permitir scroll interno */
    min-height: 600px;
    width: 100%;
    overflow: hidden;
}

/* ── Controls panel (left, 40%) ── */
.doc-editor-controls[b-nt3i2h96s8] {
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    padding-right: 0.5rem; /* Espaço para a scrollbar não sobrepor o conteúdo */
}

.doc-editor-controls-inner[b-nt3i2h96s8] {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
}

/* ── Controls header ── */
.doc-editor-controls-header[b-nt3i2h96s8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.doc-editor-section-title[b-nt3i2h96s8] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.625rem;
    font-weight: 900;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0;
}

.doc-editor-icon-wrap[b-nt3i2h96s8] {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(255, 75, 43, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF4B2B;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── Inheritance badges ── */
.doc-editor-badge[b-nt3i2h96s8] {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.doc-editor-badge--inherited[b-nt3i2h96s8] {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.doc-editor-badge--custom[b-nt3i2h96s8] {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

/* ── Fields area ── */
.doc-editor-fields[b-nt3i2h96s8] {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ── Action buttons area ── */
.doc-editor-actions[b-nt3i2h96s8] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.doc-editor-btn-save[b-nt3i2h96s8] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: #FF4B2B;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 900;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(255, 75, 43, 0.3);
    transition: background 0.2s, transform 0.1s, opacity 0.2s;
}

.doc-editor-btn-save:hover:not(:disabled)[b-nt3i2h96s8] {
    background: #E5432A;
}

.doc-editor-btn-save:active:not(:disabled)[b-nt3i2h96s8] {
    transform: scale(0.98);
}

.doc-editor-btn-save:disabled[b-nt3i2h96s8] {
    opacity: 0.5;
    cursor: not-allowed;
}

.doc-editor-btn-reset[b-nt3i2h96s8] {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #f8fafc;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.doc-editor-btn-reset:hover:not(:disabled)[b-nt3i2h96s8] {
    background: #f1f5f9;
}

/* ── Spinner ── */
.doc-editor-spinner[b-nt3i2h96s8] {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: doc-editor-spin-b-nt3i2h96s8 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes doc-editor-spin-b-nt3i2h96s8 {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   Preview panel (right, 60%) — STICKY
   ═══════════════════════════════════════════════════════════ */

.doc-editor-preview[b-nt3i2h96s8] {
    min-width: 0;
    height: 100%;
}

.doc-editor-preview-card[b-nt3i2h96s8] {
    background: #f8fafc;
    border-radius: 2.5rem;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 600px;
}

/* ── Preview toolbar ── */
.doc-editor-preview-toolbar[b-nt3i2h96s8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid #f1f5f9;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.doc-editor-preview-label[b-nt3i2h96s8] {
    font-size: 0.625rem;
    font-weight: 900;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.doc-editor-zoom-controls[b-nt3i2h96s8] {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-right: 0.25rem;
}

.doc-editor-zoom-group[b-nt3i2h96s8] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-editor-zoom-btn[b-nt3i2h96s8] {
    padding: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 1.125rem;
    line-height: 1;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-editor-zoom-btn:hover[b-nt3i2h96s8] {
    color: #FF4B2B;
}

.doc-editor-zoom-value[b-nt3i2h96s8] {
    font-size: 0.625rem;
    font-family: monospace;
    color: #9ca3af;
    width: 2rem;
    text-align: center;
}

.doc-editor-zoom-reset[b-nt3i2h96s8] {
    font-size: 0.625rem;
    font-weight: 700;
    color: #FF4B2B;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.doc-editor-zoom-reset:hover[b-nt3i2h96s8] {
    background: rgba(255, 75, 43, 0.1);
}

.doc-editor-zoom-slider[b-nt3i2h96s8] {
    -webkit-appearance: none;
    width: 120px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.doc-editor-zoom-slider[b-nt3i2h96s8]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #FF4B2B;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 75, 43, 0.4);
    transition: transform 0.1s;
}

.doc-editor-zoom-slider[b-nt3i2h96s8]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ── Preview canvas ── */
.doc-editor-preview-canvas[b-nt3i2h96s8] {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1.5rem;
    background-image: radial-gradient(circle, #e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}

.doc-editor-preview-scaler[b-nt3i2h96s8] {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top center;
    flex-shrink: 0;
}

/* ── Preview footer ── */
.doc-editor-preview-footer[b-nt3i2h96s8] {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.4);
    text-align: center;
    font-size: 0.625rem;
    color: #9ca3af;
    font-style: italic;
    flex-shrink: 0;
}

.doc-editor-preview-footer i[b-nt3i2h96s8] {
    margin-right: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════
   Responsive — stack vertically on small screens
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .doc-editor-layout[b-nt3i2h96s8] {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .doc-editor-controls[b-nt3i2h96s8] {
        height: auto;
        overflow-y: visible;
    }

    .doc-editor-preview[b-nt3i2h96s8] {
        position: static;
        height: auto;
    }

    .doc-editor-preview-card[b-nt3i2h96s8] {
        max-height: none;
        min-height: 400px;
        height: auto;
    }
}
/* /Components/Pages/Tenant/CourseDetail.razor.rz.scp.css */
.cert-editor-container[b-awrzixegok] {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cert-preview-scale[b-awrzixegok] {
    transform-origin: top center;
    transform: scale(0.55);
    width: 297mm;
    margin-bottom: -35%;
}

@media (min-width: 1024px) {
    .cert-editor-container[b-awrzixegok] {
        flex-direction: row;
    }
    .cert-sidebar[b-awrzixegok] {
        width: 320px;
        flex-shrink: 0;
    }
}

@media print {
    .cert-preview-scale[b-awrzixegok] {
        display: none !important;
    }
}
