@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

.nis2-compliance-wrapper {
    font-family: 'Montserrat', sans-serif;
    /*max-width: 1230px;*/
    margin: 0 auto;
    padding: 40px 20px;
    background: #f3f6fb;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(4, 84, 122, 0.08);
}

.nis2-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease-out;
}

.nis2-title {
    color: #04547a;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.nis2-intro {
    color: #5a7184;
    font-size: 16px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.nis2-progress-bar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 50px;
    padding: 0 20px;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.nis2-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.nis2-progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e7ed;
    color: #8a9ba8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 3px solid #e0e7ed;
}

.nis2-progress-step.active .nis2-progress-circle {
    background: #ffffff;
    color: #04547a;
    border-color: #04547a;
    box-shadow: 0 0 0 5px rgba(4, 84, 122, 0.15);
    transform: scale(1.1);
    font-weight: 700;
}

.nis2-progress-step.completed .nis2-progress-circle {
    background: #04547a;
    color: #ffffff;
    border-color: #04547a;
}

.nis2-progress-label {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    max-width: 110px;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    color: #8a9ba8;
    transition: color 0.3s ease;
}

.nis2-progress-step.active .nis2-progress-label {
    color: #04547a;
    font-weight: 600;
}

.nis2-progress-line {
    flex: 1;
    height: 3px;
    position: relative;
    overflow: hidden;
    background: #e0e7ed;
    /* Align line with center of circle (50px/2 - 3px/2 = 23.5px) */
    margin: 23px 10px 0;
    transition: background 0.3s ease;
}

.nis2-progress-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--nis2-line-fill, 0%);
    background: #04547a;
    border-radius: inherit;
    transition: width 0.45s cubic-bezier(.22,.61,.36,1);
}

/* Mantém retrocompat com a classe .completed (usada pelo JS antigo) */
.nis2-progress-line.completed::before {
    width: 100%;
}

/* ---------------------------------------------------------------------------
 * Compact linear progress indicator (used on mobile with many phases).
 * Rendered always, shown conditionally via media queries + variant classes.
 * ------------------------------------------------------------------------- */
.nis2-progress-compact {
    display: none;
    margin-bottom: 40px;
    padding: 0 4px;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.nis2-progress-compact-text {
    color: #04547a;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: baseline;
}

.nis2-progress-compact-step {
    color: #04547a;
    font-weight: 700;
    font-size: 16px;
}

.nis2-progress-compact-total {
    color: #5a7184;
    font-weight: 600;
}

.nis2-progress-compact-sep {
    color: #8a9ba8;
    margin: 0 2px;
}

.nis2-progress-compact-label {
    color: #2c3e50;
    font-weight: 500;
    flex: 1 1 100%;
}

.nis2-progress-compact-track {
    width: 100%;
    height: 6px;
    background: #e0e7ed;
    border-radius: 3px;
    overflow: hidden;
}

.nis2-progress-compact-fill {
    height: 100%;
    background: linear-gradient(90deg, #04547a 0%, #10b981 100%);
    border-radius: 3px;
    transition: width 0.4s ease;
    min-width: 6px;
}

.nis2-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(4, 84, 122, 0.06);
    position: relative;
}

@media (max-width: 768px) {
    .nis2-form {
        padding-inline: 20px;
    }
}

.nis2-phase {
    animation: fadeInUp 0.4s ease-out;
}

.nis2-phase-title {
    color: #04547a;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #eef4f9;
}

.nis2-phase-description {
    color: #5a7184;
    font-size: 14px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #f7fbff;
    border-left: 3px solid #04547a;
    border-radius: 4px;
}

.nis2-question-card {
    background: #ffffff;
    border: 1px solid #e0e7ed;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    animation: slideInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.nis2-question-card:nth-child(1) { animation-delay: 0.05s; }
.nis2-question-card:nth-child(2) { animation-delay: 0.1s; }
.nis2-question-card:nth-child(3) { animation-delay: 0.15s; }
.nis2-question-card:nth-child(4) { animation-delay: 0.2s; }
.nis2-question-card:nth-child(5) { animation-delay: 0.25s; }
.nis2-question-card:nth-child(6) { animation-delay: 0.3s; }
.nis2-question-card:nth-child(7) { animation-delay: 0.35s; }
.nis2-question-card:nth-child(8) { animation-delay: 0.4s; }
.nis2-question-card:nth-child(9) { animation-delay: 0.45s; }

.nis2-question-card:hover {
    border-color: #04547a;
    box-shadow: 0 4px 16px rgba(4, 84, 122, 0.08);
    transform: translateY(-2px);
}

.nis2-question-label {
    display: block;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .nis2-question-label {
        font-size: 13px;
    }
}

.nis2-required {
    color: #ef4444;
    margin-left: 4px;
}

.nis2-input-text {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #d1dce5;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
}

.nis2-input-text:focus {
    outline: none;
    border-color: #04547a;
    box-shadow: 0 0 0 3px rgba(4, 84, 122, 0.1);
}

.nis2-input-text::placeholder {
    color: #8a9ba8;
}

.nis2-phase-description {
    color: #5a7184;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
}

.nis2-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nis2-radio-group-inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}

.nis2-radio-option {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

@media (max-width: 768px) {
    .nis2-radio-option {
        padding: 7px;
    }
}

.nis2-radio-option:hover {
    background: #f7fbff;
}

.nis2-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.nis2-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.nis2-radio-option input[type="radio"]:checked ~ .nis2-radio-custom {
    border-color: #04547a;
    background: #04547a;
    box-shadow: 0 0 0 3px rgba(4, 84, 122, 0.1);
}

.nis2-radio-option input[type="radio"]:checked ~ .nis2-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.nis2-radio-text {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.5;
    flex: 1;
}

@media (max-width: 768px) {
    .nis2-radio-text {
        font-size: 12px;
    }
}

.nis2-radio-option input[type="radio"]:checked ~ .nis2-radio-text {
    color: #2c3e50;
    font-weight: 500;
}

.nis2-button-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e7ed;
}

.nis2-button {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.nis2-button-primary {
    background: #04547a;
    color: white;
    box-shadow: 0 4px 12px rgba(4, 84, 122, 0.2);
}

.nis2-button-primary:hover {
    background: #033d5a;
    box-shadow: 0 6px 16px rgba(4, 84, 122, 0.3);
    transform: translateY(-2px);
}

.nis2-button-primary:active {
    transform: translateY(0);
}

.nis2-button-secondary {
    background: #e0e7ed;
    color: #04547a;
}

.nis2-button-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

.nis2-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.nis2-result-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
    border: 2px solid #e0e7ed;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    text-align: center;
    animation: scaleIn 0.5s ease-out;
}

@media (max-width: 768px) {
    .nis2-result-card {
        padding: 10px;
    }
}

.nis2-result-card.result-green {
    border-color: #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.nis2-result-card.result-yellow {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.nis2-result-card.result-red {
    border-color: #ef4444;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.nis2-score-display {
    margin-bottom: 20px;
}

.nis2-score-number {
    font-size: 48px;
    font-weight: 700;
    color: #04547a;
    line-height: 1;
    margin-bottom: 8px;
}

.nis2-score-value {
    display: inline-block;
    animation: countUp 1s ease-out;
}

.nis2-score-max {
    font-size: 24px;
    color: #8a9ba8;
    font-weight: 500;
}

.nis2-score-label {
    font-size: 14px;
    color: #5a7184;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nis2-result-message {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 20px;
}

.nis2-result-message h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.nis2-result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.nis2-result-summary .nis2-result-card {
    margin-bottom: 0;
}

.nis2-result-summary h4 {
    color: #04547a;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Final result message — styled to match the email "Recomendação Final" block
   (neutral blue, regardless of classification). */
.nis2-final-result-message {
    background: #f0f9ff;
    border: 0;
    border-left: 4px solid #04547a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    animation: fadeIn 0.6s ease-out 0.3s both;
}

/* Keep result-color modifiers neutral to mirror the email layout. */
.nis2-final-result-message.result-green,
.nis2-final-result-message.result-yellow,
.nis2-final-result-message.result-red {
    background: #f0f9ff;
    border-left-color: #04547a;
}

.nis2-final-result-message .nis2-final-recommendation-heading {
    margin: 0 0 12px 0;
    color: #04547a;
    font-size: 16px;
    font-weight: 600;
}

/* Combination blocks stacked inside the final result message — one per phase
   that has `enable_combinations` active with a matching configured message.
   Separator style mirrors the email (thin top border between phases). */
.nis2-final-result-message .nis2-combination-block {
    padding: 12px 0 0 0;
    margin-top: 12px;
    border-top: 1px solid #d8e3ec;
    background: transparent;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

.nis2-final-result-message .nis2-combination-block:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
}

.nis2-final-result-message .nis2-combination-heading {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #04547a;
}

.nis2-final-result-message .nis2-combination-body {
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.6;
}

.nis2-phase-classification {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    margin-top: 12px;
}

.nis2-phase-classification.badge-green { background-color: #10b981; }
.nis2-phase-classification.badge-yellow { background-color: #f59e0b; }
.nis2-phase-classification.badge-red { background-color: #ef4444; }

.nis2-phase-result-message {
    margin-top: 16px;
    padding: 16px;
    background: rgba(247, 251, 255, 0.8);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #2c3e50;
    text-align: left;
}

.nis2-phase-result-message:empty {
    display: none;
}

.nis2-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 84, 122, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.nis2-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.nis2-loading p {
    margin-top: 20px;
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nis2-privacy {
    text-align: center;
    margin-top: 32px;
    color: #8a9ba8;
    font-size: 13px;
    line-height: 1.6;
}

/* Validação de campos */
.nis2-field-error {
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    margin: 12px 0;
    padding: 10px 14px;
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    border-radius: 4px;
    animation: slideDown 0.3s ease;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nis2-question.has-error {
    padding: 16px;
    background: #fef2f2;
    border: 2px solid #dc2626;
    border-radius: 8px;
    margin-bottom: 20px;
}

.nis2-input-text.has-error {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.nis2-input-text.has-error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nis2-compliance-wrapper {
        padding: 24px 16px;
    }
    
    .nis2-title {
        font-size: 24px;
    }
    
    .nis2-form {
        padding: 24px 20px;
    }
    
    .nis2-progress-bar {
        padding: 0 8px;
        margin-bottom: 36px;
    }
    
    .nis2-progress-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-width: 2px;
    }
    
    .nis2-progress-label {
        font-size: 10px;
        margin-top: 8px;
        max-width: 72px;
        line-height: 1.25;
    }
    
    .nis2-progress-line {
        /* 36px/2 - 3px/2 = 16.5px */
        margin: 16px 4px 0;
        min-width: 12px;
    }
    
    /* --- Hybrid variants on mobile ---------------------------------------
     * - .nis2-progress--full   (≤4 steps): keep labels + circles.
     * - .nis2-progress--dots   (5 steps):  hide labels, tighter gaps.
     * - .nis2-progress--linear (6+ steps): hide bar entirely and show the
     *                                       compact linear indicator.
     * ------------------------------------------------------------------- */
    .nis2-progress-bar.nis2-progress--dots .nis2-progress-label {
        display: none;
    }
    .nis2-progress-bar.nis2-progress--dots .nis2-progress-line {
        margin: 16px 2px 0;
    }
    .nis2-progress-bar.nis2-progress--dots {
        margin-bottom: 28px;
    }
    
    .nis2-progress-bar.nis2-progress--linear {
        display: none;
    }
    .nis2-progress-compact.nis2-progress--linear {
        display: block;
    }
    
    .nis2-question-card {
        padding: 20px;
    }
    
    .nis2-button-group {
        flex-direction: column;
    }
    
    .nis2-button {
        width: 100%;
    }
    
    .nis2-result-summary {
        grid-template-columns: 1fr;
    }
    
    .nis2-score-number {
        font-size: 36px;
    }
    
    .nis2-radio-group-inline {
        flex-direction: column;
    }
}

/* Category grouping (v2.1.0) */
.nis2-category-heading {
    margin: 28px 0 12px 0;
    padding: 14px 18px;
    background: linear-gradient(135deg, #eaf3fa 0%, #d9eaf5 100%);
    border-left: 4px solid #04547a;
    border-radius: 8px;
}

.nis2-category-heading:first-child {
    margin-top: 12px;
}

.nis2-category-title {
    margin: 0;
    color: #04547a;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.nis2-category-description {
    margin: 6px 0 0 0;
    color: #5a7184;
    font-size: 14px;
    line-height: 1.5;
}

/* Category sidebar + two-column phase layout (v2.2.0) */
.nis2-phase-layout {
    display: block;
}

.nis2-phase-layout.has-sidebar {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.nis2-phase-sidebar {
    position: sticky;
    top: 118px;
    background: #ffffff;
    border: 1px solid #e0e7ed;
    border-radius: 12px;
    padding: 18px 14px;
    box-shadow: 0 2px 10px rgba(4, 84, 122, 0.05);
}

.nis2-phase-sidebar-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #8a9ba8;
    padding: 0 8px 10px 8px;
    border-bottom: 1px solid #eef4f9;
    margin-bottom: 8px;
}

.nis2-category-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nis2-cat-item {
    position: relative;
}

.nis2-cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #5a7184;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.3;
}

.nis2-cat-link:hover,
.nis2-cat-link:focus {
    background: #f7fbff;
    color: #04547a;
    text-decoration: none;
}

.nis2-cat-check {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    background: #e0e7ed;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.nis2-cat-check svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.25s ease;
}

.nis2-cat-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nis2-cat-counter {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: #8a9ba8;
    background: #eef4f9;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.nis2-cat-item.is-active .nis2-cat-link {
    background: linear-gradient(135deg, #eaf3fa 0%, #d9eaf5 100%);
    color: #04547a;
    border-left-color: #04547a;
    font-weight: 600;
}

.nis2-cat-item.is-active .nis2-cat-counter {
    background: #04547a;
    color: #ffffff;
}

.nis2-cat-item.is-complete .nis2-cat-link {
    color: #047857;
    background: #ecfdf5;
    border-left-color: #10b981;
}

.nis2-cat-item.is-complete .nis2-cat-check {
    background: #10b981;
}

.nis2-cat-item.is-complete .nis2-cat-check svg {
    opacity: 1;
    transform: scale(1);
}

.nis2-cat-item.is-complete .nis2-cat-counter {
    background: #10b981;
    color: #ffffff;
}

/* When both active and complete, keep the "complete" green look */
.nis2-cat-item.is-active.is-complete .nis2-cat-link {
    background: #ecfdf5;
    border-left-color: #10b981;
    color: #047857;
}

.nis2-phase-content {
    min-width: 0;
}

/* Responsive: sidebar becomes a horizontal chip list on smaller screens */
@media (max-width: 900px) {
    .nis2-phase-layout.has-sidebar {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .nis2-phase-sidebar {
        position: static;
        padding: 14px;
    }
    
    .nis2-phase-sidebar-title {
        padding-bottom: 8px;
    }
    
    .nis2-category-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    
    .nis2-cat-item {
        flex: 0 0 auto;
    }
    
    .nis2-cat-link {
        border-left: none;
        border: 1px solid #e0e7ed;
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    .nis2-cat-item.is-active .nis2-cat-link,
    .nis2-cat-item.is-complete .nis2-cat-link {
        border-left: 1px solid transparent;
    }
    
    .nis2-cat-item.is-active .nis2-cat-link {
        border-color: #04547a;
    }
    
    .nis2-cat-item.is-complete .nis2-cat-link {
        border-color: #10b981;
    }
}

/* =====================================================================
 * Shortcode [nis2_dashboard] — Multi-questionário frontend
 * ===================================================================== */

.nis2-dashboard {
    --nis2-dash-bg: #ffffff;
    --nis2-dash-border: #e5e7eb;
    --nis2-dash-muted: #6b7280;
    --nis2-dash-text: #111827;
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 20px;
    color: var(--nis2-dash-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    box-sizing: border-box;
}

.nis2-dashboard *,
.nis2-dashboard *::before,
.nis2-dashboard *::after { box-sizing: border-box; }

.nis2-dashboard-header {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    z-index: auto;
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
    background: transparent;
    box-shadow: none;
}

.nis2-dashboard-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #04547a;
    line-height: 1.2;
}

.nis2-dashboard-intro {
    color: var(--nis2-dash-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

.nis2-dashboard-intro p { margin: 0 0 8px; }

/* Layout wrapper */
/*.nis2-dashboard-body {
    display: grid;
    gap: 28px;
    align-items: start;
}*/

/* Ambos os layouts empilham verticalmente (lista em cima, painel em baixo) */
.nis2-dashboard--sidebar .nis2-dashboard-body,
.nis2-dashboard--grid .nis2-dashboard-body {
    grid-template-columns: 1fr;
}

.nis2-dashboard-sidebar-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--nis2-dash-muted);
    margin: 0 0 10px;
}

/* --- Tabs layout (antigo "sidebar"): chips horizontais no topo --- */
.nis2-dashboard--sidebar .nis2-dashboard-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nis2-dashboard--sidebar .nis2-dash-item {
    margin: 0;
    flex: 0 1 auto;
}

/* Chip/tab: versão compacta do botão — título + ícone, sem descrição */
.nis2-dashboard--sidebar .nis2-dash-item-btn {
    width: auto;
    padding: 9px 14px 9px 10px;
    gap: 10px;
    border-radius: 999px;
    border-width: 1.5px;
    min-height: 44px;
    align-items: center;
}

.nis2-dashboard--sidebar .nis2-dash-item-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    box-shadow: none;
}

.nis2-dashboard--sidebar .nis2-dash-item-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.nis2-dashboard--sidebar .nis2-dash-item-title {
    font-size: 14px;
    white-space: nowrap;
}

.nis2-dashboard--sidebar .nis2-dash-item-desc,
.nis2-dashboard--sidebar .nis2-dash-item-arrow {
    display: none;
}

.nis2-dashboard--sidebar .nis2-dash-item-meta {
    font-size: 11px;
    margin: 0 0 0 4px;
    padding: 2px 8px;
    background: color-mix(in srgb, var(--nis2-dash-color) 10%, #fff);
    border-radius: 999px;
    align-self: center;
}

@supports not (background: color-mix(in srgb, red 50%, white)) {
    .nis2-dashboard--sidebar .nis2-dash-item-meta { background: #f0f9ff; }
}

.nis2-dashboard--sidebar .nis2-dash-item-body {
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

/* --- Grid layout --- */
.nis2-dashboard--grid .nis2-dashboard-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

/* --- Item base (usado por ambos os layouts) --- */
.nis2-dashboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nis2-dash-item {
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.nis2-dashboard--grid .nis2-dash-item { margin: 0; }

.nis2-dash-item-btn {
    --nis2-dash-color: #2271b1;
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: stretch;
    text-align: left;
    padding: 14px 14px;
    background: var(--nis2-dash-bg);
    border: 1.5px solid var(--nis2-dash-border);
    border-radius: 12px;
    color: var(--nis2-dash-text);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font: inherit;
}

.nis2-dash-item-btn:hover,
.nis2-dash-item-btn:focus-visible {
    border-color: var(--nis2-dash-color);
    box-shadow: 0 4px 14px -4px rgba(0,0,0,0.15);
    outline: none;
    transform: translateY(-1px);
}

.nis2-dash-item.is-active .nis2-dash-item-btn {
    background: color-mix(in srgb, var(--nis2-dash-color) 8%, #fff);
    border-color: var(--nis2-dash-color);
    box-shadow: 0 6px 18px -8px var(--nis2-dash-color);
}

/* Fallback para browsers sem color-mix() */
@supports not (background: color-mix(in srgb, red 50%, white)) {
    .nis2-dash-item.is-active .nis2-dash-item-btn {
        background: #f0f9ff;
    }
}

.nis2-dash-item-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--nis2-dash-color);
    color: #fff;
    box-shadow: 0 2px 6px -2px var(--nis2-dash-color);
}

.nis2-dash-item-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    line-height: 1;
}

.nis2-dash-item-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nis2-dash-item-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--nis2-dash-text);
    line-height: 1.3;
}

.nis2-dash-item-desc {
    font-size: 13px;
    color: var(--nis2-dash-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nis2-dash-item-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--nis2-dash-muted);
}

.nis2-dash-item-meta strong {
    color: var(--nis2-dash-color);
    font-weight: 700;
}

.nis2-dash-item-arrow {
    flex: 0 0 auto;
    align-self: center;
    color: var(--nis2-dash-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.nis2-dash-item-btn:hover .nis2-dash-item-arrow,
.nis2-dash-item.is-active .nis2-dash-item-arrow {
    color: var(--nis2-dash-color);
    transform: translateX(3px);
}

/* No layout grid os cards ficam mais "cheios" */
.nis2-dashboard--grid .nis2-dash-item-btn {
    flex-direction: column;
    padding: 20px;
    min-height: 170px;
    gap: 14px;
}

.nis2-dashboard--grid .nis2-dash-item-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 12px;
}

.nis2-dashboard--grid .nis2-dash-item-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.nis2-dashboard--grid .nis2-dash-item-title {
    font-size: 17px;
}

.nis2-dashboard--grid .nis2-dash-item-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
}

.nis2-dashboard--grid .nis2-dash-item-btn {
    position: relative;
}

/* --- Main panel --- */
.nis2-dashboard-main {
    position: relative;
    min-height: 400px;
}

.nis2-dashboard-panel {
    background: var(--nis2-dash-bg);
    border: 1px solid var(--nis2-dash-border);
    border-radius: 14px;
    /*padding: 8px 20px;*/
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: opacity 0.2s ease;
}

.nis2-dashboard-panel.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Recentra o wrapper interno do questionário (que tem o seu próprio max-width) */
.nis2-dashboard-panel .nis2-compliance-wrapper {
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .nis2-dashboard-panel .nis2-compliance-wrapper {
        padding: 0px;
    }
}

.nis2-dashboard-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.95);
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.2);
    z-index: 10;
    color: var(--nis2-dash-muted);
    font-size: 14px;
}

.nis2-dashboard-loading.is-visible { display: flex; }

.nis2-dashboard-error {
    padding: 40px 20px;
    text-align: center;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
}

.nis2-dashboard-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--nis2-dash-muted);
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    max-width: 640px;
    margin: 40px auto;
}

/* --- Responsive --- */
@media (max-width: 860px) {
    .nis2-dashboard { padding: 0 14px; margin: 24px auto; }

    .nis2-dashboard-title { font-size: 24px; }
    .nis2-dashboard-intro { font-size: 15px; }

    /* Em ecrãs estreitos, as chips passam a rolar horizontalmente com scroll-snap
       em vez de envolver — mantém a altura controlada e evita várias linhas. */
    .nis2-dashboard--sidebar .nis2-dashboard-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        padding-bottom: 6px;
        margin: 0 -14px 4px;
        padding-left: 14px;
        padding-right: 14px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .nis2-dashboard--sidebar .nis2-dash-item {
        scroll-snap-align: start;
        flex: 0 0 auto;
    }

    .nis2-dashboard--sidebar .nis2-dash-item-title {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nis2-dashboard-panel {
        padding: 4px 12px;
        border-radius: 10px;
    }

    .nis2-dashboard--grid .nis2-dashboard-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nis2-dashboard-title { font-size: 20px; }
    .nis2-dash-item-desc { -webkit-line-clamp: 1; line-clamp: 1; }

    /* Em telemóveis muito pequenos esconder a label acima para poupar espaço */
    .nis2-dashboard--sidebar .nis2-dashboard-sidebar-title { display: none; }

    /* Em ecrãs muito estreitos mesmo a variante "dots" (5 passos com bolinhas)
       fica apertada — colapsa para o indicador linear compacto, igual a --linear.
       Assim evita-se que 5 círculos em linha partam o layout. */
    .nis2-progress-bar.nis2-progress--dots { display: none; }
    .nis2-progress-compact.nis2-progress--dots { display: block; }

    /* Na variante --full com 4 passos, em ecrãs ≤ 360px as labels ainda podem
       sobrepor-se. Reduzimos ligeiramente círculos e labels. */
    .nis2-progress-bar.nis2-progress--full .nis2-progress-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .nis2-progress-bar.nis2-progress--full .nis2-progress-label {
        font-size: 9px;
        max-width: 64px;
    }
    .nis2-progress-bar.nis2-progress--full .nis2-progress-line {
        margin: 14px 2px 0;
    }
}

/* Em ecrãs muito estreitos mesmo a variante --full pode ser demais (labels
   longas tipo "Avaliação de segurança"). Usamos 360px como breakpoint
   adicional para colapsar tudo para linear. */
@media (max-width: 360px) {
    .nis2-progress-bar.nis2-progress--full { display: none; }
    .nis2-progress-compact.nis2-progress--full { display: block; }
}

/* =====================================================================
 * Dashboard layout "dropdown" — título+intro à esquerda, seletor compacto à direita.
 * ===================================================================== */
.nis2-dashboard--dropdown .nis2-dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #f3f6fb;
    border: 1px solid #d7e2ef;
    border-radius: 14px;
    padding: 22px 28px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.nis2-dashboard--dropdown .nis2-dashboard-topbar-text {
    /*flex: 1 1 420px;*/
    min-width: 280px;
    text-align: left;
}

@media (max-width: 768px) {
    .nis2-dashboard--dropdown .nis2-dashboard-topbar-text {
        min-width: auto;
    }
}

.nis2-dashboard--dropdown .nis2-dashboard-topbar-text .nis2-dashboard-title {
    font-size: 24px;
    margin: 0 0 6px;
    color: #0f2a44;
}

.nis2-dashboard--dropdown .nis2-dashboard-topbar-text .nis2-dashboard-intro {
    color: #5a7184;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    max-width: none;
    text-align: left;
}

/* Dropdown selector (direita) */
.nis2-dashboard-dropdown {
    --nis2-dash-color: #04547a;
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 280px;
    max-width: 360px;
}

.nis2-dashboard-dropdown-label {
    font-size: 10px;
    letter-spacing: 1.2px;
    color: #8193a7;
    font-weight: 700;
    text-transform: uppercase;
    padding-left: 4px;
}

.nis2-dashboard-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #c7d3e3;
    border-radius: 10px;
    padding: 12px 14px;
    color: #0f2a44;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    text-align: left;
}

.nis2-dashboard-dropdown-btn:hover,
.nis2-dashboard-dropdown-btn:focus-visible,
.nis2-dashboard-dropdown[data-open="true"] .nis2-dashboard-dropdown-btn {
    border-color: var(--nis2-dash-color);
    box-shadow: 0 4px 14px -8px rgba(15, 42, 68, 0.35);
    outline: none;
}

.nis2-dashboard-dropdown-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--nis2-dash-color) 12%, #fff);
    color: var(--nis2-dash-color);
}

.nis2-dashboard-dropdown-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.nis2-dashboard-dropdown-current {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nis2-dashboard-dropdown-chevron {
    flex: 0 0 auto;
    color: #5a7184;
    transition: transform 0.22s ease;
}

.nis2-dashboard-dropdown[data-open="true"] .nis2-dashboard-dropdown-chevron {
    transform: rotate(180deg);
}

.nis2-dashboard-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 40;
    background: #ffffff;
    border: 1px solid #d7e2ef;
    border-radius: 12px;
    box-shadow: 0 18px 40px -12px rgba(15, 42, 68, 0.22);
    padding: 6px;
    max-height: 420px;
    overflow-y: auto;
    animation: nis2DashFade 0.18s ease-out;
}

@keyframes nis2DashFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nis2-dashboard-dropdown-menu .nis2-dash-item {
    margin: 0;
    list-style: none;
}

.nis2-dashboard-dropdown-menu .nis2-dash-item-btn {
    --nis2-dash-color: #2271b1;
    width: 100%;
    border: 1.5px solid transparent;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: none;
    background: transparent;
}

.nis2-dashboard-dropdown-menu .nis2-dash-item-btn:hover,
.nis2-dashboard-dropdown-menu .nis2-dash-item-btn:focus-visible {
    background: color-mix(in srgb, var(--nis2-dash-color) 7%, #fff);
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.nis2-dashboard-dropdown-menu .nis2-dash-item.is-active .nis2-dash-item-btn {
    background: color-mix(in srgb, var(--nis2-dash-color) 10%, #fff);
    border-color: var(--nis2-dash-color);
    box-shadow: none;
}

.nis2-dashboard-dropdown-menu .nis2-dash-item-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nis2-dashboard-dropdown-menu .nis2-dash-item-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.nis2-dashboard-dropdown-menu .nis2-dash-item-title {
    font-size: 14px;
}

.nis2-dashboard-dropdown-menu .nis2-dash-item-desc {
    font-size: 12px;
    color: #6b7280;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.nis2-dashboard-dropdown-menu .nis2-dash-item-check {
    color: var(--nis2-dash-color);
    flex: 0 0 auto;
    align-self: center;
}

@media (max-width: 860px) {
    .nis2-dashboard--dropdown .nis2-dashboard-topbar {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 18px;
    }
    .nis2-dashboard-dropdown {
        max-width: none;
        min-width: 0;
        width: 100%;
    }
}

/* =====================================================================
 * Category topbar — dropdown "Selecionar categoria" no topo de cada fase.
 * ===================================================================== */
.nis2-category-topbar {
    position: sticky;
    top: 118px;
    z-index: 2;
    background: #f6f9fd;
    border: 1px solid #dbe5f1;
    border-radius: 12px;
    padding: 14px 18px 16px;
    margin: 0 0 22px;
}

@media (max-width: 768px) {
    .nis2-category-topbar {
        position: relative;
        top: 0;
    }
}

.nis2-cat-topbar-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #7b8ca3;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.nis2-cat-topbar-current {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1.5px solid #d0dbe9;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

@media (max-width: 768px) {
    .nis2-cat-topbar-current {
        flex-direction: column;
        text-align: center;
    }
}

.nis2-cat-topbar-current:hover,
.nis2-cat-topbar-current:focus-visible,
.nis2-category-topbar[data-open="true"] .nis2-cat-topbar-current {
    border-color: #04547a;
    box-shadow: 0 4px 14px -10px rgba(4, 84, 122, 0.45);
    outline: none;
}

.nis2-cat-topbar-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eaf3fa;
    color: #04547a;
}

.nis2-cat-topbar-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nis2-cat-topbar-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f2a44;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nis2-cat-topbar-progress {
    font-size: 12px;
    color: #5a7184;
}

.nis2-cat-topbar-progress .nis2-cat-topbar-done,
.nis2-cat-topbar-progress .nis2-cat-topbar-total {
    font-weight: 700;
    color: #04547a;
}

.nis2-cat-topbar-count {
    flex: 0 0 auto;
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #6b7280;
    padding: 6px 12px;
    background: #f3f6fb;
    border-radius: 999px;
}

.nis2-cat-topbar-count strong {
    color: #04547a;
    margin-right: 2px;
}

.nis2-cat-topbar-chevron {
    flex: 0 0 auto;
    color: #5a7184;
    transition: transform 0.22s ease;
}

.nis2-category-topbar[data-open="true"] .nis2-cat-topbar-chevron {
    transform: rotate(180deg);
}

.nis2-cat-topbar-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    list-style: none;
    margin: 0;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #dbe5f1;
    border-radius: 12px;
    box-shadow: 0 18px 40px -14px rgba(15, 42, 68, 0.22);
    max-height: 360px;
    overflow-y: auto;
    animation: nis2DashFade 0.18s ease-out;
}

.nis2-cat-topbar-menu .nis2-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #1f2937;
    font-size: 14px;
    transition: background 0.18s ease;
    position: static;
    border: none;
    border-left: 0;
    background: transparent;
}

.nis2-cat-topbar-menu .nis2-cat-item:hover {
    background: #f3f6fb;
}

.nis2-cat-topbar-menu .nis2-cat-item.is-active {
    background: #eaf3fa;
    color: #04547a;
    font-weight: 600;
}

.nis2-cat-topbar-menu .nis2-cat-item .nis2-cat-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nis2-cat-topbar-menu .nis2-cat-item .nis2-cat-counter {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: #5a7184;
    background: #eef3f9;
    padding: 2px 10px;
    border-radius: 999px;
}

.nis2-cat-topbar-menu .nis2-cat-item.is-active .nis2-cat-counter {
    background: #04547a;
    color: #ffffff;
}

.nis2-cat-topbar-menu .nis2-cat-item.is-complete .nis2-cat-counter {
    background: #10b981;
    color: #ffffff;
}

.nis2-cat-topbar-menu .nis2-cat-item .nis2-cat-check {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e0e7ed;
    color: #fff;
    transition: background 0.2s ease;
}

.nis2-cat-topbar-menu .nis2-cat-item .nis2-cat-check svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nis2-cat-topbar-menu .nis2-cat-item.is-complete .nis2-cat-check {
    background: #10b981;
}

.nis2-cat-topbar-menu .nis2-cat-item.is-complete .nis2-cat-check svg {
    opacity: 1;
}

@media (max-width: 640px) {
    .nis2-cat-topbar-current {
        flex-wrap: wrap;
        gap: 10px;
    }
    .nis2-cat-topbar-count {
        order: 3;
        width: 100%;
        text-align: center;
    }
}

/* Fallback para browsers sem color-mix() */
@supports not (background: color-mix(in srgb, red 50%, white)) {
    .nis2-dashboard-dropdown-icon { background: #eaf3fa; }
    .nis2-dashboard-dropdown-menu .nis2-dash-item-btn:hover,
    .nis2-dashboard-dropdown-menu .nis2-dash-item.is-active .nis2-dash-item-btn { background: #f0f9ff; }
}
