﻿/* =====================================================
   1. TOKENS (DESIGN SYSTEM)
===================================================== */

:root {
    --nr1-green-dark: #3f6656;
    --nr1-green-soft: #6fae9d;
    --nr1-bg-light: #f4efe9;
    --nr1-text-dark: #2c3e37;
    --nr1-text-light: #ffffff;
    --nr1-radius: 16px;
    --nr1-radius-sm: 10px;
    --nr1-shadow: 0 10px 25px rgba(0,0,0,0.05);
    --nr1-shadow-hover: 0 15px 35px rgba(0,0,0,0.08);
    --nr1-transition: 0.25s ease;
}

/* =====================================================
   2. BASE
===================================================== */

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--nr1-bg-light);
    color: var(--nr1-text-dark);
}

h1, h2, h3 {
    font-family: 'Federo', sans-serif;
}

.hidden {
    display: none !important;
}

/* =====================================================
   3. COMPONENTES
===================================================== */

/* BOTÕES */
.btn-nr1-primary {
    background: var(--nr1-green-dark);
    color: white;
    border-radius: 12px;
    padding: 10px 20px;
    border: none;
    transition: var(--nr1-transition);
}

    .btn-nr1-primary:hover {
        background: #355447;
        transform: scale(0.98);
    }

.btn-nr1-primary-md {
    background: var(--nr1-green-dark);
    color: white;
    border-radius: 8px;
    padding: 8px 14px;
    border: none;
    font-size: 13px;
    transition: var(--nr1-transition);
}

    .btn-nr1-primary-md:hover {
        background: #355447;
        transform: scale(0.98);
    }

.nr1-btn-light {
    background: #f1f5f9;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .nr1-btn-light:hover {
        background: #e2e8f0;
    }

.nr1-input:hover {
    border-color: #bbb;
}

.btn-nr1-soft {
    background: var(--nr1-green-soft);
    color: white;
    border-radius: 12px;
    padding: 10px 20px;
    border: none;
    font-size: 13px;
}

/* botão secundário (menos destaque) */
.btn-nr1-soft-cancel {
    background: transparent;
    color: var(--nr1-green-soft);
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 500;
    transition: 0.2s;
}

    .btn-nr1-soft-cancel:hover {
        background: rgba(0,0,0,0.05);
    }

/* 🔴 botão de deleção (NR1 padrão) */
.btn-nr1-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

    /* hover mais forte */
    .btn-nr1-danger:hover {
        background: #fecaca;
        color: #7f1d1d;
    }

/* versão sólida (opcional para ações críticas) */
.btn-nr1-danger-solid {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s;
    font-size: 13px;
}

    .btn-nr1-danger-solid:hover {
        background: #b91c1c;
    }

/* botão principal dominante */
.btn-nr1-primary {
    min-width: 160px;
    font-size: 13px;
}

/* BOTÃO SECUNDÁRIO */
.nr1-btn-secondary {
    background: #f1f1f1;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
}

/* INPUTS */
.form-control,
.input-nr1 {
    border-radius: var(--nr1-radius-sm);
    padding: 12px;
    border: 1px solid #ddd;
}

    .form-control:focus,
    .input-nr1:focus {
        border-color: var(--nr1-green-dark);
        box-shadow: 0 0 0 2px rgba(63,102,86,0.1);
    }

/* CARDS */
.card-nr1 {
    background: white;
    border-radius: var(--nr1-radius);
    padding: 20px;
    box-shadow: var(--nr1-shadow);
    transition: var(--nr1-transition);
}

    .card-nr1:hover {
        transform: translateY(-4px);
        box-shadow: var(--nr1-shadow-hover);
    }

.card-nr1-dark {
    background: var(--nr1-green-dark);
    color: white;
}

.card-highlight {
    background: linear-gradient(135deg, #6fae9d, #5c9b8c);
    color: white;
}

    .card-highlight .label {
        color: rgba(255,255,255,0.7);
    }

    .card-highlight h2 {
        color: #fff;
    }

/* TEXTOS AUXILIARES */
.label {
    font-size: 13px;
    color: #888;
}

.subtitle {
    font-size: 14px;
    color: #777;
}

/* =====================================================
   4. LAYOUT (APP)
===================================================== */

.nr1-layout {
    display: flex;
    min-height: 100vh;
}

.nr1-sidebar {
    width: 240px;
    background: var(--nr1-green-dark);
    color: white;
    padding: 30px 16px;
    transition: var(--nr1-transition);
}

    .nr1-sidebar .logo {
        font-family: 'Federo';
        font-size: 22px;
        margin-bottom: 30px;
        letter-spacing: 0.5px;
    }

    .nr1-sidebar nav a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 10px;
        color: white;
        text-decoration: none; /* remove underline */
        margin-bottom: 6px;
        opacity: 0.8;
        transition: 0.2s;
    }

        .nr1-sidebar nav a.active {
            background: rgba(255,255,255,0.12);
            opacity: 1;
            font-weight: 500;
        }

        .nr1-sidebar nav a:hover {
            background: rgba(255,255,255,0.08);
            opacity: 1;
            cursor: pointer;
        }

        .nr1-sidebar nav a.active {
            position: relative;
        }

            .nr1-sidebar nav a.active::before {
                content: "";
                position: absolute;
                left: -16px;
                top: 50%;
                transform: translateY(-50%);
                width: 4px;
                height: 60%;
                background: #ffffff;
                border-radius: 4px;
            }

    .nr1-sidebar nav a {
        transition: all 0.2s ease;
    }

.nr1-main {
    flex: 1;
    padding: 30px;
}

.nr1-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

#chartRespostas {
    width: 100% !important;
}

.nr1-chart-wrapper {
    position: relative;
    height: 180px; /* 🔥 controla aqui */
    width: 100%;
}

/*.nr1-chart-wrapper {
    position: relative;
    min-height: 260px;
}
*/
.nr1-empty-chart {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
}

    .nr1-empty-chart.hidden {
        display: none;
    }

/* =====================================================
   DOCS
===================================================== */

.docs-container {
    max-width: 1100px;
    margin: 0 auto;
}

.docs-section {
    margin-bottom: 50px;
}

.color-box {
    width: 140px;
    height: 90px;
    border-radius: 12px;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 10px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

/* =====================================================
   5. ANIMAÇÕES
===================================================== */

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* delays */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

#nr1-content {
    transition: opacity 0.2s ease;
}

/* =====================================================
   6. SIDEBAR MOBILE (CORRIGIDO)
===================================================== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: var(--nr1-transition);
    z-index: 998;
}

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* =====================================================
   7. AUTH (LOGIN)
===================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--nr1-green-dark), var(--nr1-green-soft));
    position: relative;
    overflow: hidden;
}

    .auth-page::before {
        content: "";
        position: absolute;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
        background-size: 40px 40px;
        animation: moveBg 20s linear infinite;
    }

@keyframes moveBg {
    from {
        transform: translate(0,0);
    }

    to {
        transform: translate(-40px, -40px);
    }
}

.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: fadeUp 0.8s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

    .login-header h1 {
        font-size: 28px;
        color: var(--nr1-green-dark);
    }

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* =====================================================
   8. RESPONSIVIDADE (SEM CONFLITO)
===================================================== */

@media (max-width: 992px) {
    .nr1-sidebar {
        width: 200px;
    }
}

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nr1-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100%;
        z-index: 1000;
    }

        .nr1-sidebar.open {
            left: 0;
        }

    .nr1-main {
        padding: 20px;
    }

    .login-card {
        padding: 30px 20px;
    }
}

@media (max-width: 400px) {

    .login-card {
        padding: 25px 15px;
    }

    .form-control {
        padding: 10px;
    }
}



/* =====================================================
   AUTH (LOGIN - ISOLADO)
===================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--nr1-green-dark), var(--nr1-green-soft));
    position: relative;
    overflow: hidden;
}

    .auth-page::before {
        content: "";
        position: absolute;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
        background-size: 40px 40px;
        animation: moveBg 20s linear infinite;
    }

@keyframes moveBg {
    from {
        transform: translate(0,0);
    }

    to {
        transform: translate(-40px, -40px);
    }
}

.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: fadeUp 0.8s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

    .login-header h1 {
        font-family: 'Federo';
        color: var(--nr1-green-dark);
        font-size: 28px;
    }

    .login-header span {
        font-size: 13px;
        color: #777;
    }

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
}

.btn-login {
    width: 100%;
    border-radius: 12px;
    padding: 12px;
    background: var(--nr1-green-dark);
    color: white;
    border: none;
    transition: 0.3s;
}

    .btn-login:hover {
        background: #355447;
        transform: translateY(-1px);
    }

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #777;
}


/* =====================================================
   AUTH (LOGIN - ISOLADO)
===================================================== */
.user-dropdown {
    position: relative;
}

.user-trigger {
    cursor: pointer;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 10px;
    transition: 0.2s;
}

    .user-trigger:hover {
        background: rgba(0,0,0,0.05);
    }

/* MENU */
.user-menu {
    position: absolute;
    right: 0;
    top: 110%;
    min-width: 180px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 8px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 999;
}

    .user-menu a {
        display: block;
        padding: 10px;
        border-radius: 8px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        transition: 0.2s;
    }

        .user-menu a:hover {
            background: #f4efe9;
        }

    .user-menu hr {
        margin: 8px 0;
        border: none;
        height: 1px;
        background: rgba(0, 0, 0, 0.40);
    }

    /* ABERTO */
    .user-menu.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }



/* =====================================================
   OVERLAY
===================================================== */


.nr1-alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: 0.2s ease;
}

    .nr1-alert-overlay.show {
        opacity: 1;
    }

.nr1-alert-box {
    background: white;
    border-radius: 16px;
    padding: 24px;
    min-width: 320px;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: 0.2s ease;
    text-align: center;
}

.nr1-alert-overlay.show .nr1-alert-box {
    transform: translateY(0);
}

.nr1-alert-title {
    font-family: 'Federo';
    font-size: 20px;
    margin-bottom: 10px;
}

.nr1-alert-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.nr1-alert-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.nr1-btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 13px !important;
    min-width: 160px !important;
}

.nr1-btn-primary {
    background: #3f6656;
    color: white;
}

.nr1-btn-secondary {
    background: #eee;
}

.nr1-btn-danger {
    background: #b02a2a;
    color: white;
}

.nr1-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top: 4px solid var(--nr1-green-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#nr1-toast-root {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nr1-toast {
    background: white;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 220px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

    .nr1-toast.show {
        transform: translateX(0);
        opacity: 1;
    }

    .nr1-toast.success {
        border-left: 4px solid #3f6656;
    }

    .nr1-toast.error {
        border-left: 4px solid #b02a2a;
    }

    .nr1-toast.info {
        border-left: 4px solid #6fae9d;
    }


/* =====================================================
   TABLE E GERAL
===================================================== */

.nr1-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-top: 10px;
}

.nr1-card-header {
    padding: 10px 0px;
    border-bottom: 1px solid #eee;
}

.nr1-card-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.nr1-table {
    width: 100%;
    border-collapse: collapse;
}

    .nr1-table th {
        text-align: left;
        padding: 14px;
        font-size: 13px;
        color: #666;
    }

    .nr1-table td {
        padding: 16px 14px;
        font-size: 14px;
    }

.hover-row {
    transition: all 0.2s ease;
}

    .hover-row:hover {
        background: #f9fafb;
        transform: scale(1.005);
    }

.badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

    .badge.active {
        background: #e6f7ee;
        color: #1a7f4b;
    }

    .badge.inactive {
        background: #fdecea;
        color: #d93025;
    }

    .badge.trial {
        background: #f7f2e6;
        color: #7f571a;
    }

.nr1-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s;
}

    .nr1-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

.nr1-input-search {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}



.page-btn {
    border: none;
    background: #f1f1f1;
    padding: 6px 10px;
    border-radius: 8px;
}

    .page-btn.active {
        background: #3b82f6;
        color: #fff;
    }

.nr1-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .nr1-action-btn:hover {
        background: rgba(0,0,0,0.05);
        color: var(--nr1-green-dark);
    }

/* =====================================================
   PAGINAÇÃO NR1 (PADRÃO CRISS)
===================================================== */

.nr1-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

/* grupo central */
.nr1-page-numbers {
    display: flex;
    gap: 6px;
}

/* botão base */
.nr1-page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.25s ease;
}

    /* hover leve */
    .nr1-page-btn:hover {
        background: rgba(0,0,0,0.04);
        transform: translateY(-1px);
    }

    /* ativo */
    .nr1-page-btn.active {
        background: #0E0E0E;
        color: #fff;
        border-color: #0E0E0E;
    }

    /* desabilitado */
    .nr1-page-btn.disabled {
        opacity: 0.4;
        pointer-events: none;
    }

/* =====================================================
   SUB MENU
===================================================== */
.nr1-menu-group {
    display: flex;
    flex-direction: column;
}

nr1-menu-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
}

/* 👇 estrutura igual aos outros */
.nr1-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* seta isolada (não empurra texto) */
.arrow {
    font-size: 12px;
    margin-left: auto;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.nr1-menu-group.open .arrow {
    transform: rotate(180deg);
}

.nr1-submenu {
    display: none;
    flex-direction: column;
    margin-left: 15px;
    margin-top: 5px;
}

    .nr1-submenu a {
        font-size: 13px;
        opacity: 0.85;
        padding: 8px 10px;
        border-radius: 8px;
    }

        .nr1-submenu a:hover {
            background: rgba(255,255,255,0.08);
        }

.nr1-menu-group.open .nr1-submenu {
    display: flex;
}

.arrow {
    font-size: 12px;
    transition: 0.2s;
}

.nr1-menu-group.open .arrow {
    transform: rotate(180deg);
}

/* =====================================================
   CANVAS
===================================================== */

/*#nr1-canvas {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 480px;
	max-width: 100%;
	background: var(--nr1-bg-light);
	box-shadow: -20px 0 60px rgba(0,0,0,0.15);
	transform: translateX(120%) scale(0.96);
	opacity: 0;
	transition: transform 0.6s cubic-bezier(.16,1,.3,1), opacity 0.4s ease;
	z-index: 999;
}*/

#nr1-canvas {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh; /* 🔥 obrigatório */
    width: 480px;
    max-width: 100%;
    background: var(--nr1-bg-light);
    box-shadow: -20px 0 60px rgba(0,0,0,0.15);
    display: flex; /* 🔥 ESSENCIAL */
    flex-direction: column; /* 🔥 ESSENCIAL */

    transform: translateX(120%) scale(0.96);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(.16,1,.3,1), opacity 0.4s ease;
    z-index: 999;
}

.nr1-canvas-body {
    flex: 1; /* 🔥 ocupa espaço restante */
    overflow-y: auto;
    padding: 20px;
    min-height: 0; /* 🔥 MUITO IMPORTANTE (bug clássico de flex) */

    scroll-behavior: smooth;
}

    .nr1-canvas-body::-webkit-scrollbar {
        width: 8px;
    }

    .nr1-canvas-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .nr1-canvas-body::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.15);
        border-radius: 10px;
    }

        .nr1-canvas-body::-webkit-scrollbar-thumb:hover {
            background: rgba(0,0,0,0.3);
        }

#nr1-canvas.open {
    transform: translateX(0) scale(1);
    opacity: 1;
}


/* =====================================================
   OVERLAY
===================================================== */

#nr1-canvas-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    /* base */
    background: rgba(0, 0, 0, 0.2);
    /* estado inicial */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(.16,1,.3,1), background 0.3s ease, backdrop-filter 0.3s ease;
}

    /* estado ativo */
    #nr1-canvas-overlay.open {
        opacity: 1;
        pointer-events: all;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(6px);
    }

.nr1-canvas-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nr1-canvas-header {
    flex-shrink: 0;
}

    .nr1-canvas-header h3 {
        margin: 0;
        font-family: 'Federo';
    }

.nr1-canvas-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* BASE LIMPA */
#nr1-canvas {
    max-width: 100%;
    transition: width 0.35s cubic-bezier(.22,1,.36,1);
}

/* DEFAULT (quando nenhum size for passado) */
.nr1-canvas-default {
    width: 480px;
}

/* PRESETS */
.nr1-canvas-sm {
    width: 400px;
}

.nr1-canvas-md {
    width: 600px;
}

.nr1-canvas-lg {
    width: 800px;
}

.nr1-canvas-xl {
    width: 1000px;
}

/* FULL */
.nr1-canvas-full {
    width: 100%;
}

/* MOBILE SEMPRE FULL */
@media (max-width: 768px) {
    #nr1-canvas {
        width: 100% !important;
    }
}




/* =====================================================
   FORMS
===================================================== */

.nr1-form-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nr1-form-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nr1-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .nr1-field label {
        font-size: 13px;
        color: #666;
    }

.nr1-input {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    transition: 0.2s;
}

    .nr1-input:focus {
        border-color: var(--nr1-green-dark);
        box-shadow: 0 0 0 2px rgba(63,102,86,0.1);
    }

/* FOOTER FIXO */
.nr1-form-footer {
    border-top: 1px solid #eee;
    padding: 0px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*position: sticky;*/
    bottom: 0;
}

    .nr1-form-footer.single-action {
        border-top: 1px solid #eee;
        padding: 16px 20px;
        display: flex;
        justify-content: flex-end; /* 👈 importante */
        align-items: center;
        /*position: sticky;*/
        bottom: 0;
    }

        /* botão com mais presença */
        .nr1-form-footer.single-action .btn-nr1-primary {
            min-width: 280px;
            padding: 12px 22px;
            font-size: 15px;
        }

/* lados */
.footer-left {
    flex: 1;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}



.nr1-close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

    .nr1-close-btn:hover {
        opacity: 1;
        transform: rotate(90deg);
    }

.nr1-editor .nr1-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

    .nr1-editor .nr1-close-btn:hover {
        background: rgba(0,0,0,0.06);
        color: #000;
        transform: scale(1.05);
        opacity: 1;
    }

.nr1-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.nr1-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nr1-form-section {
    font-size: 16px;
    font-weight: 600;
    color: var(--nr1-green-dark);
    margin-bottom: 10px;
}

.nr1-field label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    margin-top: 8px;
    display: block;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .nr1-form-grid {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
   PROTOCOLOS
===================================================== */

/* container */
.nr1-protocolos-container {
    padding: 10px 5px;
}

/* header */
.nr1-protocolos-header h2 {
    font-family: 'Federo';
    margin-bottom: 4px;
}

.nr1-protocolos-header .subtitle {
    font-size: 13px;
    color: #777;
}

/* grid */
.nr1-protocolos-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

/* card */
.nr1-protocolo-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.25s ease;
}

/* hover leve (feminino = suave) */
/*.nr1-protocolo-card:hover {
		transform: translateY(-2px);
		box-shadow: 0 12px 30px rgba(0,0,0,0.08);
	}*/

/* avatar */
.nr1-protocolo-avatar {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(63,102,86,0.1);
    color: var(--nr1-green-dark);
    font-size: 20px;
}

    /* variações */
    .nr1-protocolo-avatar.alt {
        background: rgba(111,174,157,0.15);
    }

    .nr1-protocolo-avatar.alt2 {
        background: rgba(63,102,86,0.08);
    }

/* info */
.nr1-protocolo-info {
    flex: 1;
}

.nr1-protocolo-nome {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 3px;
}

.nr1-protocolo-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    gap: 6px;
}

/* ações */
.nr1-protocolo-actions {
    font-size: 18px;
    color: #999;
    cursor: pointer;
    transition: 0.2s;
}

    .nr1-protocolo-actions:hover {
        color: #333;
    }



/* =====================================================
   LAYOUT BASE
===================================================== */

.nr1-editor {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #f4efe9;
}

/* =====================================================
   HEADER (mais leve e premium)
===================================================== */

.nr1-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    gap: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nr1-editor-input-title {
    font-family: 'Federo';
    font-size: 24px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--nr1-green-dark);
}

.nr1-editor-sub {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

/* =====================================================
   BODY
===================================================== */

.nr1-editor-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* =====================================================
   SIDEBAR (mais suave e feminina)
===================================================== */

.nr1-editor-sidebar {
    width: 230px;
    padding: 22px;
    background: #f7f3ee;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.nr1-editor-block-title {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

/*.nr1-editor-section {
	padding: 10px 12px;
	border-radius: 10px;
	cursor: pointer;
	margin-bottom: 6px;
	font-size: 14px;
	color: #444;
	transition: all 0.2s ease;
}

	.nr1-editor-section:hover {
		background: rgba(63,102,86,0.06);
	}

	.nr1-editor-section.active {
		background: rgba(63,102,86,0.12);
		color: var(--nr1-green-dark);
		font-weight: 500;
	}*/

/* botão nova seção */
.nr1-editor-add {
    margin-top: 12px;
    font-size: 13px;
    color: var(--nr1-green-dark);
    cursor: pointer;
}

/* =====================================================
   CONTENT (área principal)
===================================================== */

.nr1-editor-content {
    flex: 1;
    padding: 40px 50px;
    overflow-y: auto;
}



/* =====================================================
   QUESTÕES (aqui está o salto de qualidade)
===================================================== */

.nr1-question-card {
    background: #fff;
    padding: 18px 20px;
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    position: relative;
    cursor: pointer;
}

.nr1-question-card {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: flex-start;
    gap: 10px;
}

    .nr1-question-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    }

    .nr1-question-card.selected {
        border: 1px solid rgba(63,102,86,0.25);
        background: rgb(255 255 255 / 50%);
        box-shadow: 0 10px 25px rgba(0,0,0,0.05), 0 0 0 2px rgba(63,102,86,0.08);
        transform: translateY(-1px);
        animation: nr1Focus 0.25s ease;
    }

    /*.nr1-question-card {
	cursor: grab;
}
*/
    .nr1-question-card:active {
        cursor: grabbing;
    }



@keyframes nr1Focus {
    from {
        transform: scale(0.98);
        opacity: 0.7;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* leve glow interno */
.nr1-question-card.selected::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(63,102,86,0.08);
}

/* input pergunta */
.nr1-question-input {
    width: 100%;
    border: none;
    font-size: 15px;
    outline: none;
    color: #333;
    background: transparent;
    margin-bottom: 10px;
}

/* linha inferior */
.nr1-question-meta {
    display: flex;
    gap: 10px;
}

/* inputs pequenos */
.nr1-input-small {
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
    border: 1px solid #ddd;
}

/* =====================================================
   BOTÃO ADICIONAR (delicado e elegante)
===================================================== */

.nr1-add-question {
    margin-top: 12px;
    font-size: 14px;
    color: var(--nr1-green-dark);
    cursor: pointer;
    opacity: 0.8;
    transition: 0.2s;
}

    .nr1-add-question:hover {
        opacity: 1;
        transform: translateX(2px);
    }

/* =====================================================
   CONFIG (painel direito refinado)
===================================================== */

.nr1-editor-config {
    width: 340px; /* antes 280 */
    padding: 28px 26px;
    background: #f7f3ee;
    border-left: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .nr1-editor-config label {
        font-size: 12px;
        color: #777;
        /*margin-top: 12px;*/
        display: block;
    }

    .nr1-editor-config select,
    .nr1-editor-config input,
    .nr1-editor-config textarea {
        width: 100%;
        border-radius: 10px;
        padding: 10px 12px;
        border: 1px solid #ddd;
        font-size: 14px;
        background: #fff;
    }

        .nr1-editor-config select:focus,
        .nr1-editor-config input:focus,
        .nr1-editor-config textarea:focus {
            border-color: var(--nr1-green-dark);
            box-shadow: 0 0 0 2px rgba(63,102,86,0.08);
        }

.nr1-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(63,102,86,0.12);
    color: var(--nr1-green-dark);
}

    /* variação mais leve */
    .nr1-badge.soft {
        background: rgba(63,102,86,0.06);
        color: #666;
    }

.nr1-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

    .nr1-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .nr1-switch .slider {
        position: absolute;
        cursor: pointer;
        inset: 0;
        background-color: #ddd;
        border-radius: 24px;
        transition: 0.3s;
    }

        .nr1-switch .slider:before {
            content: "";
            position: absolute;
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background: white;
            border-radius: 50%;
            transition: 0.3s;
        }

    .nr1-switch input:checked + .slider {
        background-color: var(--nr1-green-dark);
    }

        .nr1-switch input:checked + .slider:before {
            transform: translateX(18px);
        }

.nr1-input-clean {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 15px;
    color: #333;
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: 0.2s;
}

    /* foco elegante */
    .nr1-input-clean:focus {
        border-bottom: 1px solid var(--nr1-green-dark);
    }

    /* hover leve */
    .nr1-input-clean:hover {
        border-bottom: 1px solid rgba(0,0,0,0.2);
    }

    .nr1-input-clean::placeholder {
        color: #aaa;
        font-style: italic;
    }



.nr1-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin-top: 6px;
}

    .nr1-checkbox input {
        width: 16px;
        height: 16px;
    }

.nr1-config-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

/* =====================================================
   RESPONSIVO
===================================================== */

@media (max-width: 1024px) {

    .nr1-editor-sidebar {
        display: none;
    }

    .nr1-editor-config {
        display: none;
    }

    .nr1-editor-content {
        padding: 20px;
    }
}

.nr1-add-wrapper {
    position: relative;
    display: inline-block;
}

.nr1-add-button {
    color: var(--nr1-green-dark);
    cursor: pointer;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: 0.2s;
}

    .nr1-add-button:hover {
        background: rgba(63,102,86,0.08);
    }


.nr1-add-button-second {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #166534; /* verde texto */
    background: #ecfdf5; /* verde bem suave */

    border: 1px solid rgba(22, 101, 52, 0.15);
    transition: all 0.2s ease;
}

    .nr1-add-button-second:hover {
        background: #d1fae5;
        color: #14532d;
        border-color: rgba(22, 101, 52, 0.25);
    }


/* =====================================================
 dropdown perguntas
===================================================== */
.nr1-add-menu {
    position: absolute;
    top: 110%;
    left: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 6px;
    display: none;
    min-width: 180px;
    z-index: 10;
}

    .nr1-add-menu div {
        padding: 8px 10px;
        font-size: 13px;
        cursor: pointer;
        border-radius: 6px;
    }

        .nr1-add-menu div:hover {
            background: rgba(0,0,0,0.05);
        }

.nr1-add-wrapper.open .nr1-add-menu {
    display: block;
}

.nr1-question-input.awaiting {
    color: #aaa;
    font-style: italic;
}

/* topo */
.nr1-question-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

    /* input ocupa espaço */
    .nr1-question-top input {
        flex: 1;
    }

/* botão remover */
.nr1-question-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #aaa;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

/* aparece no hover */
.nr1-question-card:hover .nr1-question-remove {
    opacity: 1;
}

/* hover elegante (não agressivo) */
.nr1-question-remove:hover {
    background: rgba(255, 0, 0, 0.08);
    color: #c0392b;
    transform: scale(1.05);
}

.nr1-config-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #999;
}

    .nr1-config-empty iconify-icon {
        font-size: 40px;
        margin-bottom: 10px;
        opacity: 0.5;
    }

.nr1-empty-title {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 5px;
}

.nr1-empty-sub {
    font-size: 12px;
    color: #aaa;
}

/* esconder */
.hidden {
    display: none;
}

/* item sendo arrastado */
.nr1-drag-chosen {
    background: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-radius: 14px;
}

/* fantasma */
.nr1-drag-ghost {
    opacity: 0.5;
    background: #fff;
    border: 1px dashed rgba(63,102,86,0.4);
}

/* item enquanto arrasta */
.nr1-drag-dragging {
    opacity: 1;
}



/*.nr1-question-drag {
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #bbb;
	cursor: grab;
	opacity: 0.6;
	transition: 0.2s;
}

	.nr1-question-drag:hover {
		opacity: 1;
		color: var(--nr1-green-dark);
	}

	.nr1-question-drag:active {
		cursor: grabbing;
	}
*/

.nr1-question-drag {
    /*display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 6px;
	color: #bbb;
	cursor: grab;
	opacity: 0.6;
	transition: 0.2s;*/

    display: flex;
    align-items: center; /* 🔥 centraliza vertical */
    justify-content: center;
    height: 100%; /* 🔥 ocupa altura do card */

    color: #bbb;
    cursor: grab;
    opacity: 0.6;
    transition: 0.2s;
}

.nr1-question-card:hover .nr1-question-drag {
    color: var(--nr1-green-dark);
    opacity: 1;
}

.nr1-question-drag:hover {
    opacity: 1;
    color: var(--nr1-green-dark);
}

.nr1-question-drag:active {
    cursor: grabbing;
}

.nr1-question-card {
    transition: transform 0.15s ease;
    padding-left: 5px;
}

.nr1-question-drag iconify-icon {
    font-size: 28px;
}


.nr1-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: no-repeat;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.nr1-question-card:hover {
    box-shadow: 0 0 0 2px rgba(63,102,86,0.2);
}


.nr1-question-text {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 15px;
    color: var(--nr1-text-dark);
    transition: all 0.2s ease;
}

#nr1-cursor-grab {
    position: fixed;
    width: 18px;
    height: 18px;
    background: var(--nr1-green-dark);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: none;
}

/* =====================================================
card avisos 
===================================================== */

.nr1-process-card {
    padding: 18px;
    border-radius: 10px;
    background: #f8fafc;
    border-left: 4px solid #0f172a;
}

.nr1-process-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.nr1-process-text {
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
}

.nr1-process-subtext {
    font-size: 12px;
    color: #64748b;
}

/* =====================================================
card avisos 
===================================================== */

.nr1-select-native {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
    background-color: #fff;
    color: #1e293b;
    font-size: 14px;
    outline: none;
    /* remove estilo nativo */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* seta custom */
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2364748b' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}


/* =====================================================
popover ações
===================================================== */


.nr1-add-wrapper {
    position: relative;
}

.nr1-section-popover {
    position: absolute;
    top: 0;
    left: 110%;
    width: 260px;
    background: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    display: none;
    z-index: 20;
}

.nr1-popover-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.nr1-popover-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

    .nr1-popover-list label {
        display: flex;
        gap: 6px;
        cursor: pointer;
    }

.nr1-popover-footer {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

    .nr1-popover-footer span {
        color: #0f172a;
        font-weight: 500;
        cursor: pointer;
    }

.nr1-popover-actions button {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: none;
    background: #0f172a;
    color: white;
    cursor: pointer;
}

/* =====================================================
Contrato
===================================================== */

.nr1-editor-contract {
    min-height: 200px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    outline: none;
    font-size: 14px;
    line-height: 1.6;
}

.nr1-editor-contract-toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

    .nr1-editor-contract-toolbar button {
        border: none;
        background: #f1f5f9;
        padding: 6px 10px;
        border-radius: 6px;
        cursor: pointer;
    }

.nr1-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

    .nr1-empty-state iconify-icon {
        font-size: 42px;
        color: #cbd5e1;
        margin-bottom: 12px;
    }

.nr1-empty-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
}

.nr1-empty-text {
    font-size: 13px;
    color: #64748b;
}

/* =====================================================
Escalas
===================================================== */

.nr1-preview-box {
    padding: 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.05);
}

.nr1-scale-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nr1-scale-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    background: #f8f9fa;
}

.drag-handle {
    cursor: grab;
    color: #94a3b8;
}

.nr1-scale-item .nome {
    flex: 1;
}

.nr1-scale-item .peso {
    width: 80px;
}

.btn-remove {
    border: none;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
}



/* =====================================================
Banco de Perguntas
===================================================== */


.nr1-banco-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
}

.nr1-banco-sidebar {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
}

.nr1-banco-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.nr1-banco-area {
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 6px;
}

    .nr1-banco-area:hover {
        background: #e2e8f0;
    }

    .nr1-banco-area.active {
        background: #0f172a;
        color: white;
        opacity: 0.7;
    }


.nr1-banco-area {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 6px;
    position: relative;
}

    /* linha lateral colorida */
    .nr1-banco-area::before {
        content: "";
        position: absolute;
        left: 0;
        top: 6px;
        bottom: 6px;
        width: 3px;
        border-radius: 2px;
        background: var(--cor-area);
        opacity: 0.6;
    }

    /* hover */
    .nr1-banco-area:hover {
        background: rgba(0,0,0,0.04);
    }

    /* ativo */
    .nr1-banco-area.active {
        background: var(--cor-area);
        color: white;
    }

        /* remove a barrinha quando ativo */
        .nr1-banco-area.active::before {
            display: none;
        }

.nr1-preview-box {
    padding: 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.05);
    margin-top: 8px;
}






/* =====================================================
Diagnósticos
===================================================== */



.nr1-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.nr1-tab {
    padding: 8px 14px;
    border-radius: 12px;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 13px;
}

    .nr1-tab.active {
        background: #3f6656;
        color: white;
    }

.badge.warning {
    background: #f59e0b;
    color: white;
}

.badge.success {
    background: #10b981;
    color: white;
}

.badge.draft {
    background: #f4efe9;
    color: #6c757d;
}

.nr1-d-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}



/* CONTAINER PRINCIPAL DO CANVAS */
.nr1-diagnostico-pro {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* HEADER FIXO */
.nr1-editor-header {
    flex-shrink: 0;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
}

/* CONTEÚDO SCROLLÁVEL */
.nr1-diagnostico-pro > .p-3 {
    overflow-y: auto;
    padding: 20px;
    height: 100%;
}

    /* SCROLL PREMIUM */
    .nr1-diagnostico-pro > .p-3::-webkit-scrollbar {
        width: 8px;
    }

    .nr1-diagnostico-pro > .p-3::-webkit-scrollbar-track {
        background: transparent;
    }

    .nr1-diagnostico-pro > .p-3::-webkit-scrollbar-thumb {
        background: rgba(15,23,42,0.2);
        border-radius: 10px;
    }

        .nr1-diagnostico-pro > .p-3::-webkit-scrollbar-thumb:hover {
            background: rgba(15,23,42,0.35);
        }

.nr1-d-grid-pro {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 24px;
}

.nr1-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

    .nr1-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(0,0,0,0.06);
    }

.nr1-card-header {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.nr1-editor-title input {
    font-size: 20px;
    font-weight: 600;
    border: none;
    outline: none;
    flex: 1; /* 🔥 ocupa espaço disponível */
    min-width: 0; /* 🔥 resolve corte em flex */
}

.nr1-editor-input-title {
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    border: none;
    outline: none;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 🔥 evita quebra feia */
}

.nr1-d-meta {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}



/* =====================================================
   PIPELINE CLEAN (SEM SETA)
===================================================== */

.nr1-pipeline {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

    /* STEP BASE */
    .nr1-pipeline .step {
        padding: 8px 16px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 500;
        background: #f1f5f9;
        color: #64748b;
        border: 1px solid transparent;
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
    }

        /* HOVER */
        .nr1-pipeline .step:hover {
            background: #e2e8f0;
        }

        /* DONE */
        .nr1-pipeline .step.done {
            background: #e7f5ef;
            color: #3f6656;
            border-color: #c7e3d7;
        }

        /* ACTIVE */
        .nr1-pipeline .step.active {
            background: #3f6656;
            color: #ffffff;
            border-color: transparent;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
        }

        /* LOCKED */
        .nr1-pipeline .step.locked {
            opacity: 0.4;
            pointer-events: none;
        }

        /* opcional: leve elevação */
        .nr1-pipeline .step:active {
            transform: scale(0.98);
        }


/* CONTAINER */
.nr1-pipeline-wrapper {
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    display: inline-flex;
}

.nr1-pipeline-wrapper {
    position: relative;
}

    .nr1-pipeline-wrapper::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 12px;
        right: 12px;
        height: 2px;
        background: #e2e8f0;
        transform: translateY(-50%);
        z-index: 0;
    }

.nr1-pipeline {
    position: relative;
    z-index: 1;
}



.nr1-d-kpis {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.nr1-kpi {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid #f1f5f9;
}

    .nr1-kpi div {
        font-size: 12px;
        color: #64748b;
    }

    .nr1-kpi strong {
        font-size: 26px;
        margin: 6px 0;
        display: block;
    }

    .nr1-kpi span {
        font-size: 12px;
        color: #94a3b8;
    }

.nr1-chart-placeholder {
    height: 160px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
}

.nr1-ai-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px;
    border-left: 4px solid #3f6656;
}

    .nr1-ai-box p {
        font-size: 13px;
        color: #334155;
        line-height: 1.5;
    }

.nr1-config-list div {
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.nr1-btn-light {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    transition: all 0.2s ease;
}

    .nr1-btn-light:hover {
        background: #e2e8f0;
    }

.nr1-btn-full {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

    .nr1-btn-full:hover {
        background: #e2e8f0;
    }

/* 🔥 destaque no último botão */
.nr1-card .nr1-btn-full:last-child {
    background: var(--nr1-green-dark);
    color: white;
    border: none;
    font-weight: 600;
}

    .nr1-card .nr1-btn-full:last-child:hover {
        background: #2f5144; /* ajuste fino do hover */
    }


/* header com ação */
.nr1-card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* botão ícone */
.nr1-icon-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .nr1-icon-btn iconify-icon {
        font-size: 16px;
        color: #64748b;
    }

    .nr1-icon-btn:hover {
        background: #e2e8f0;
    }

        .nr1-icon-btn:hover iconify-icon {
            color: #0f172a;
        }


.nr1-permissoes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 14px;
}



/* ESCONDE CHECKBOX NATIVO */
.nr1-da-termos-box input {
    display: none;
}

/* AREA CLICÁVEL */
.nr1-da-termos-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.06);
    transition: 0.2s;
}

    /* HOVER */
    .nr1-da-termos-content:hover {
        background: rgba(63,102,86,0.05);
    }

/* CHECK VISUAL GRANDE */
.nr1-da-check-visual {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #ccc;
    transition: 0.2s;
}

    /* CHECK ATIVO */
    .nr1-da-check-visual.ativo {
        background: var(--nr1-green-dark);
        border-color: var(--nr1-green-dark);
    }

        .nr1-da-check-visual.ativo::after {
            content: "✔";
            color: #fff;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
        }

#listaSecoes label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CHECK ATIVO */
.nr1-da-termos-box input:checked + .nr1-da-termos-content .nr1-da-check-visual {
    background: var(--nr1-green-dark);
    border-color: var(--nr1-green-dark);
}

/* TEXTO */
.nr1-da-termos-content {
    font-size: 14px;
    color: #444;
}

/* LINK */
.nr1-da-link {
    color: var(--nr1-green-dark);
    text-decoration: underline;
    cursor: pointer;
}

.nr1-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

.nr1-card-body {
    padding: 16px;
}

.nr1-info-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

    .nr1-info-line span {
        color: #666;
    }

.nr1-toggle-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.nr1-link-text {
    display: inline-block;
    border-bottom: 1px dashed rgba(0,0,0,0.25);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.nr1-link-line:hover .nr1-link-text {
    border-bottom: 1px dashed rgba(0,0,0,0.25);
    color: var(--nr1-green-dark) !important;
    cursor: pointer;
}





/* Editor */


.nr1E-editor-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    height: 100%;
}

.nr1E-editor-menu {
    background: #f8fafc;
    padding: 16px;
    border-right: 1px solid #e2e8f0;
}

.nr1E-menu-item {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 6px;
}

    .nr1E-menu-item.active {
        background: var(--nr1-green-dark);
        color: white;
    }

.nr1E-editor-content {
    padding: 20px;
    overflow-y: auto;
}

.nr1E-editor-section {
    display: none;
}

    .nr1E-editor-section.active {
        display: block;
        margin-bottom: 100px;
    }

.nr1E-editor-preview {
    background: #f1f5f9;
    padding: 20px;
    border-left: 1px solid #e2e8f0;
}

.nr1E-preview-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    height: 100%;
}

.nr1E-textarea {
    width: 100%;
    min-height: 150px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 10px;
}

.nr1E-editor-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    height: 100vh; /* 🔥 garante altura total */
}

/* MENU lateral ocupando tudo */
.nr1E-editor-menu {
    background: #f8fafc;
    padding: 16px;
    border-right: 1px solid #e2e8f0;
    height: 100%; /* 🔥 ocupa toda altura do layout */
    min-height: 100vh; /* 🔥 garante até o final da tela */
}

/* tabela mais limpa */
.nr1E-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

    /* linhas como "cards" */
    .nr1E-table tbody tr {
        background: #ffffff;
        border-radius: 10px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    }

    /* células */
    .nr1E-table td {
        padding: 10px;
    }

    /* input mais elegante */
    .nr1E-table input {
        width: 100%;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        padding: 6px 8px;
    }

    /* select mais clean */
    .nr1E-table select {
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        padding: 4px 6px;
    }

    /* resultado como badge */
    .nr1E-table .resultado {
        font-size: 13px;
        font-weight: 600;
        padding: 6px 10px;
        border-radius: 8px;
        text-align: center;
        display: inline-block;
    }

.nr1-input-group {
    display: flex;
    gap: 8px;
}

.nr1-btn-copy {
    background: #3f6656;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.nr1-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* BLOCO DE EXIBIÇÃO */
.nr1-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f8f6;
    border: 1px solid #e5e3df;
    padding: 10px 12px;
    border-radius: 10px;
    font-family: 'Montserrat';
    font-size: 14px;
}

    /* TEXTO */
    .nr1-display span {
        color: #3f3f3f;
        word-break: break-all;
    }

/* BOTÃO COPY */
.nr1-copy-min {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e3df;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

    .nr1-copy-min:hover {
        background: #3f6656;
        color: white;
        border-color: #3f6656;
    }


/* HEADER AUX */
.nr1-muted {
    font-size: 12px;
    color: #9aa19a;
}

/* TIMELINE */
.nr1-timeline {
    margin-top: 10px;
    position: relative;
    padding-left: 20px;
}

    /* linha vertical */
    .nr1-timeline::before {
        content: '';
        position: absolute;
        left: 8px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #e5e3df;
    }

/* ITEM */
.nr1-timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    position: relative;
}

/* DOT */
.nr1-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    margin-top: 5px;
    flex-shrink: 0;
}

    /* CORES */
    .nr1-dot.success {
        background: #3f6656;
    }

    .nr1-dot.info {
        background: #6fae9d;
    }

    .nr1-dot.warning {
        background: #eab308;
    }

/* CONTEÚDO */
.nr1-timeline-content {
    display: flex;
    flex-direction: column;
}

/* TÍTULO */
.nr1-timeline-title {
    font-size: 14px;
    color: #2f3e37;
}

/* SUB */
.nr1-timeline-sub {
    font-size: 12px;
    color: #9aa19a;
}

/* LINK HEADER DISCRETO E PREMIUM */
.nr1-link-muted {
    font-size: 13px;
    color: #9aa19a;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

    /* underline suave */
    .nr1-link-muted::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0%;
        height: 1px;
        background: #3f6656;
        transition: 0.25s;
    }

    /* hover elegante */
    .nr1-link-muted:hover {
        color: #3f6656;
    }

        .nr1-link-muted:hover::after {
            width: 100%;
        }


/* WRAPPER */
.nr1-kpi-wrapper {
    position: relative;
    display: inline-block;
}

/* POPOVER */
.nr1-kpi-popover {
    position: absolute;
    top: 110%;
    left: 0;
    width: 260px;
    background: white;
    border: 1px solid #e5e3df;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: 0.25s;
    z-index: 10;
}

/* ATIVO */
.nr1-kpi-wrapper.active .nr1-kpi-popover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* TITLE */
.nr1-popover-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

/* TEXTO */
.nr1-popover-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* ESCALA */
.nr1-popover-scale div {
    font-size: 12px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

/* DOTS */
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

    .dot.critico {
        background: #ef4444;
    }

    .dot.alerta {
        background: #eab308;
    }

    .dot.saudavel {
        background: #3f6656;
    }

    .dot.excelente {
        background: #6fae9d;
    }

/* KPI INTERATIVO */
.nr1-kpi {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
}

    /* HOVER SUAVE */
    .nr1-kpi:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    }

    /* FEEDBACK AO CLICAR */
    .nr1-kpi:active {
        transform: scale(0.97);
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

/* TOPO COM INFO */
.nr1-kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ÍCONE */
.nr1-kpi-info {
    font-size: 16px;
    color: #9aa19a;
    transition: 0.2s;
}

/* HOVER */
.nr1-kpi:hover .nr1-kpi-info {
    color: #3f6656;
}

.nr1-search-wrapper {
    position: relative;
}

.nr1-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    color: #999;
    display: none;
}

    .nr1-clear-btn:hover {
        color: #333;
    }

/* grid */
.nr1-icon-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 220px;
}

/* remove estilo padrão do label */
.nr1-icon-option {
    cursor: pointer;
}

    .nr1-icon-option input {
        display: none;
    }



    /* 🔥 ativo */
    .nr1-icon-option.active .nr1-protocolo-avatar {
        background: #3f6656;
    }

    .nr1-icon-option.active iconify-icon {
        color: #fff;
    }

    /* hover leve */
    .nr1-icon-option:hover .nr1-protocolo-avatar {
        background: #e9e2da;
    }

/*.nr1-icon-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 220px;
}

.nr1-icon-option {
    height: 56px;
    border-radius: 14px;
    background: #f4efe9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
}

.nr1-icon-option iconify-icon {
    font-size: 22px;
    color: #3f6656;
}

.nr1-icon-option input {
    display: none;
}*/

/* hover */
/*.nr1-icon-option:hover {
    background: #e9e2da;
}*/

/* 🔥 active */
/*.nr1-icon-option.active {
    background: #3f6656;
    border-color: #3f6656;
}

.nr1-icon-option.active iconify-icon {
    color: #fff;
}*/

.nr1-protocolo-actions {
    position: relative;
    cursor: pointer;
}

.nr1-dropdown-menu {
    position: absolute;
    right: 0;
    top: 28px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 6px 0;
    min-width: 180px;
    display: none;
    z-index: 999;
}

    .nr1-dropdown-menu div {
        padding: 10px 14px;
        font-size: 13px;
        cursor: pointer;
        transition: 0.2s;
    }

        .nr1-dropdown-menu div:hover {
            background: #f5f5f5;
        }

    .nr1-dropdown-menu .danger {
        color: #b91c1c;
    }

        .nr1-dropdown-menu .danger:hover {
            background: #fee2e2;
        }

.nr1-dropdown-divider {
    border: none;
    height: 1px;
    background: #eee;
    margin: 6px 0;
}

.nr1-color-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nr1-color-picker {
    width: 50px;
    height: 40px;
    border: none;
    padding: 0;
    cursor: pointer;
}

.nr1-color-text {
    width: 120px;
    text-transform: uppercase;
}





.nr1-perguntas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.nr1-pergunta-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    transition: 0.2s;
    border: 1px solid #eee;
}

    .nr1-pergunta-card:hover {
        border-color: #d1d5db;
    }

.nr1-pergunta-text {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.4;
}

.nr1-pergunta-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

/*.nr1-badge {
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 8px;
	background: #f3f4f6;
}

	.nr1-badge.tipo {
		background: #e0f2fe;
		color: #0369a1;
	}

	.nr1-badge.area {
		background: #ecfdf5;
		color: #047857;
	}*/

.nr1-pergunta-actions {
    display: flex;
    justify-content: flex-end;
}


.nr1-perguntas-grid {
    display: flex;
    flex-direction: column;
}

/* CARD */
.nr1-pergunta-card {
    border-bottom: 1px solid #e5e7eb;
}

/* HEADER */
.nr1-pergunta-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

/* TEXTO */
.nr1-pergunta-text {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    flex: 1;
}

/* BOTÃO EDITAR */
.btn-edit {
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

    .btn-edit:hover {
        opacity: 1;
        transform: scale(1.1);
    }

/* META */
.nr1-pergunta-meta {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* BADGES */
.nr1-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
}

    .nr1-badge.tipo {
        background: #e0f2fe;
        color: #0369a1;
    }

    .nr1-badge.area {
        background: #ecfdf5;
        color: #047857;
    }


.nr1-banco-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nr1-area-count {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.05);
    color: #374151;
}

.nr1-area-count {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--cor-area);
    color: white;
    opacity: 0.85;
}

.nr1-area-count {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--cor-area);
    color: white;
    opacity: 0.85;
}


.nr1-toggle-segment {
    display: flex;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.nr1-segment-item {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #6b7280;
    transition: all 0.2s ease;
}

    .nr1-segment-item .sub {
        display: block;
        font-size: 11px;
        font-weight: 400;
        opacity: 0.7;
    }

    .nr1-segment-item:hover {
        background: rgba(0,0,0,0.03);
    }

    .nr1-segment-item.active {
        background: white;
        color: #065f46;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }


.nr1-config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f1f1f1;
}

.nr1-config-label {
    font-size: 14px;
    color: var(--nr1-text-dark);
}

.nr1-config-row {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
}








.nr1-config-secao {
    background: rgba(0, 128, 96, 0.05);
    border: 1px solid rgba(0, 128, 96, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
}

.nr1-config-secao-header {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--nr1-green-dark);
}

/* 🔥 VARIAÇÃO DANGER */
.nr1-config-secao-danger {
    background: rgba(198, 40, 40, 0.05);
    border: 1px solid rgba(198, 40, 40, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
}

    .nr1-config-secao-danger .nr1-config-secao-danger-header {
        font-weight: 600;
        font-size: 13px;
        margin-bottom: 10px;
        color: #c62828;
    }

/* INPUT */
.nr1-input-tags-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

/* TAGS */
.nr1-tags-container {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nr1-tag {
    background: var(--nr1-green-soft);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .nr1-tag .remove {
        cursor: pointer;
        font-weight: bold;
    }

.nr1-fade {
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
    pointer-events: none;
}

    .nr1-fade.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

.nr1-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nr1-badge-count {
    background: var(--nr1-green-soft);
    color: var(--nr1-green-dark);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    margin-left: 6px;
}

.nr1-btn-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* +++++++++++++++++++++++++++++++++++ */


/* SIDEBAR BASE */
.nr1-editor-sidebar {
    padding: 16px 14px;
}

/* TÍTULO */
.nr1-editor-block-title {
    font-size: 13px;
    font-weight: 600;
    color: #6b6b6b;
    margin-bottom: 14px;
}

/* LISTA */
#listaAreasProtocolo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ITEM */
.nr1-editor-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    /* HOVER */
    .nr1-editor-section:hover {
        background: rgba(0, 0, 0, 0.03);
    }

    /* ATIVO */
    .nr1-editor-section.active {
        background: rgba(0, 128, 96, 0.08);
        color: var(--nr1-green-dark);
    }

    /* DESABILITADO */
    .nr1-editor-section.disabled {
        opacity: 0.5;
        pointer-events: none;
    }

/* header da seção */
.nr1-editor-section-header h3 {
    font-family: 'Federo';
    margin-bottom: 4px;
}

.nr1-editor-section-header span {
    font-size: 13px;
    color: #777;
}

/* CONTEÚDO */
.nr1-section-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* NOME */
.nr1-section-nome {
    font-size: 14px;
}

/* AÇÕES */
.nr1-section-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

    /* ÍCONES */
    .nr1-section-actions iconify-icon {
        font-size: 16px;
        opacity: 0.6;
        transition: 0.2s;
    }

        /* HOVER ÍCONE */
        .nr1-section-actions iconify-icon:hover {
            opacity: 1;
            transform: scale(1.1);
        }

/* DRAG */
.drag-handle {
    cursor: grab;
}

/* DIVISOR */
.nr1-editor-sidebar hr {
    margin: 14px 0;
    border: none;
    border-top: 1px solid #e8e8e8;
}

/* BOTÃO ADD */
.nr1-add-wrapper {
    position: relative;
}

.nr1-add-button-second {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(0, 128, 96, 0.08);
    color: var(--nr1-green-dark);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .nr1-add-button-second:hover {
        background: rgba(0, 128, 96, 0.15);
    }

/* POPOVER */
.nr1-section-popover {
    position: absolute;
    top: 42px;
    left: 0;
    width: 240px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: none;
    z-index: 10;
}

    /* MOSTRAR */
    .nr1-section-popover.show {
        display: block;
    }

/* TÍTULO POPOVER */
.nr1-popover-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* LISTA */
.nr1-popover-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

/* ITEM */
.nr1-popover-item {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    /* DESABILITADO */
    .nr1-popover-item.disabled {
        opacity: 0.4;
    }

/* BOTÃO POPOVER */
.nr1-popover-actions {
    margin-top: 10px;
}

    .nr1-popover-actions button {
        width: 100%;
    }

.nr1-add-button-danger {
    background: #ffe5e5;
    color: #c62828;
    border: 1px solid #ef9a9a;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

    .nr1-add-button-danger:hover {
        background: #ffcdd2;
    }

.nr1-section-popover.danger {
    border: 1px solid #ef9a9a;
}

.nr1-danger-text {
    font-size: 13px;
    color: #c62828;
    line-height: 1.4;
}


.btn-nr1-secondary.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nr1-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
}

.btn-nr1-icon {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-nr1-icon:hover {
        background: #f4efe9;
    }


/* =====================================================
GESTÂO DIAGNOSTICOS
===================================================== */


.nr1E-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

    .nr1E-menu-item:hover {
        background: #f4f7f6;
    }

    .nr1E-menu-item.active {
        background: #e8f0ed;
        color: #3f6656;
        font-weight: 600;
    }

        .nr1E-menu-item.active iconify-icon {
            color: #3f6656;
        }

.nr1E-menu-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nr1E-menu-item.sub {
    padding-left: 28px;
    font-size: 13px;
}

.nr1E-eye {
    display: flex;
    align-items: center;
    opacity: 0.6;
    cursor: pointer;
}

    .nr1E-eye.off {
        opacity: 0.2;
    }

.nr1E-submenu {
    display: none;
}

.nr1E-menu-group.open .nr1E-submenu {
    display: block;
}

.nr1E-arrow {
    transition: 0.2s;
}

.nr1E-menu-group.open .nr1E-arrow {
    transform: rotate(180deg);
}


.nr1-status-pop {
    position: relative;
    padding: 12px 14px;
    border-radius: 20px;
}

.nr1-status-pop-close {
    position: absolute;
    top: 6px;
    right: 6px;

    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.nr1-status-pop-close:hover {
    opacity: 1;
}

.nr1-area-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 🔥 joga o botão pra direita */
}

.nr1-analise-footer {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}


.nr1-pipeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nr1-sec-dropdown {
    position: relative;
}












.nr1-area-status {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.nr1-status-item {
    position: relative;
}

.nr1-status-label {
    display: block;
    font-size: 11px;
    color: #777;
    margin-bottom: 3px;
}

.nr1-status-pop {
    display: none;
    position: absolute;
    top: 30px;
    left: 0;
    width: 220px;
    background: #f1f5f9;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 12px;
    z-index: 10;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

    .badge.success {
        background: #52c41a;
        color: #fff;
    }

    .badge.warning {
        background: #faad14;
        color: #fff;
    }

    .badge.danger {
        background: #ff4d4f;
        color: #fff;
    }

    .badge.info {
        background: #1890ff;
        color: #fff;
    }

    .badge.default {
        background: #ccc;
        color: #000;
    }


.nr1-tabs {
    display: flex;
    gap: 10px;
}

.nr1-tab {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 6px;
}

    .nr1-tab.active {
        background: #000;
        color: #fff;
    }

.nr1-area-status {
    margin: 10px 0;
    display: flex;
    gap: 10px;
}

.nr1-area-risco {
    margin: 15px 0;
}

    .nr1-area-risco label {
        font-size: 12px;
        color: #777;
    }


.nr1-area-clinico {
    display: flex;
    gap: 30px;
    margin: 10px 0;
    font-size: 13px;
}

    .nr1-area-clinico label {
        display: block;
        color: #777;
        font-size: 11px;
    }

.nr1-area-critica {
    border: 2px solid #ff4d4f;
    box-shadow: 0 0 10px rgba(255,77,79,0.2);
}

.nr1-alerta {
    background: #fff1f0;
    border: 1px solid #ffa39e;
    padding: 10px;
    margin-top: 10px;
    font-size: 13px;
}

.nr1-recomendacao {
    margin-top: 10px;
    padding: 10px;
    background: #fafafa;
    border-left: 4px solid #000;
    font-size: 13px;
}

.nr1-resumo-geral {
    border: 1px solid #e5e5e5;
    padding: 18px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
}

.nr1-resumo-header h3 {
    margin: 0 0 10px 0;
}

.nr1-resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.nr1-resumo-label {
    font-size: 13px;
    color: #666;
}

.nr1-resumo-valor strong {
    font-size: 22px;
    margin-right: 10px;
}

.nr1-resumo-valor span {
    font-size: 13px;
    color: #888;
}

.nr1-resumo-texto {
    margin-top: 10px;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
}




.nr1-analise-box {
    /*border: 1px solid #e5e5e5;*/
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
}

.nr1-analise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    padding: 8px 10px;
    font-size: 13px;
}

.nr1-analise-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: 5px;
}

.nr1-analise-text {
    width: 100%;
    min-height: 140px;
    border: none;
    padding: 10px;
    font-size: 13px;
}




.nr1-area-dashboard {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.nr1-area-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.nr1-area-charts {
    display: flex;
    gap: 20px;
}

.nr1-chart-card {
    position: relative;
    width: 300px;
    height: 300px;
}

.nr1-chart-title {
    text-align: center;
    font-size: 14px;
    margin-bottom: 10px;
}

.nr1-chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

    .nr1-chart-center span {
        display: block;
        font-size: 12px;
        color: #666;
    }

    .nr1-chart-center strong {
        font-size: 28px;
        font-weight: bold;
    }

.nr1-area-charts {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}







.nr1-chart-card canvas {
    width: 100% !important;
    height: 100% !important;
}

.nr1-area-charts {
    justify-content: center;
}

.nr1-chart-title {
    text-align: center;
    font-size: 13px;
    margin-bottom: 8px;
}

.nr1-chart-card {
    width: 300px;
    height: 300px;
}


.nr1E-secoes-topo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.nr1E-secao-item {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    color: #334155;
    transition: 0.2s;
}

.nr1E-secao-item:hover {
    background: #f1f5f9;
}

.nr1E-secao-item.active {
    background: #e2e8f0;
    font-weight: 600;
}

.nr1E-divider {
    margin: 10px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.nr1-char-count {
    font-size: 12px;
    color: #6c757d;
    margin-right: 6px;
}

.nr1-divider {
    margin: 0 6px;
    color: #ccc;
}

/* =========================
   CARD IA
========================= */

.nr1-card-ia {
    border: 1px solid #eaeaea;
}

/* =========================
   PLANO
========================= */

.nr1-badge-plan {
    font-size: 11px;
    padding: 4px 8px;
    background: #f4efe9;
    border-radius: 6px;
    color: #3f6656;
}

/* =========================
   SALDO
========================= */

.nr1-token-balance {
    color: #6fae9d;
    font-weight: 600;
}

/* =========================
   BARRA DE USO
========================= */

.nr1-token-bar {
    margin-top: 12px;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.nr1-token-fill {
    height: 100%;
    background: linear-gradient(90deg, #6fae9d, #3f6656);
    transition: width 0.4s ease;
}

/* =========================
   ALERTA
========================= */

.nr1-alert-mini {
    margin-top: 12px;
    font-size: 12px;
    color: #b54708;
    background: #fff4e5;
    padding: 8px;
    border-radius: 6px;
}

/* =========================
   AÇÕES
========================= */

.nr1-token-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    float: inline-end;
}

.nr1-token-fill.low {
    background: #faad14;
}

.nr1-token-fill.critical {
    background: #ff4d4f;
}


.nr1-engajamento-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    font-size: 13px;
}

.nr1-eng-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .nr1-eng-item .label {
        color: #64748b;
    }

    .nr1-eng-item strong {
        color: #2c3e37;
    }

    .nr1-eng-item .status {
        font-size: 12px;
        color: #6fae9d;
        font-weight: 500;
    }

.nr1-divider {
    width: 1px;
    height: 16px;
    background: #e5e7eb;
}

.nr1-container {
    margin: 0 auto;
    padding: 20px;
}

.nr1-switch-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nr1-switch-label {
    font-size: 11px;
    color: #64748b;
}

.nr1-alert-form {
    width: 420px;
    max-width: 90%;
}

.nr1-alert-content {
    margin-top: 10px;
}

    .nr1-alert-content textarea {
        width: 100%;
        height: 140px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        padding: 10px;
        font-size: 14px;
        resize: none;
        outline: none;
    }