:root {
    --bg: #f2f1ee;
    --bg-alt: #ffffff;
    --card: rgba(255, 255, 255, 0.94);
    --card-strong: #f7f6f3;
    --accent: #111111;
    --accent-2: #000000;
    --text: #121212;
    --muted: #767676;
    --danger: #c62828;
    --success: #2e7d32;
    --info: #1565c0;
    --shadow: 0 24px 54px rgba(17, 17, 17, 0.08);
    --shadow-soft: 0 14px 34px rgba(17, 17, 17, 0.05);
    --radius: 16px;
    --radius-sm: 10px;
    --border: rgba(17, 17, 17, 0.08);
    --border-strong: rgba(17, 17, 17, 0.16);
    --input-bg: #f8f7f5;
    --input-border: rgba(17, 17, 17, 0.08);
    --sidebar-bg: #ffffff;
    --sidebar-text: #1a1a1a;
    --sidebar-muted: #6f6f6f;
    --sidebar-border: rgba(17, 17, 17, 0.08);
    --font-sans: 'Roboto', 'Segoe UI', sans-serif;
    --font-display: 'Roboto', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text);
    background: #f8f8f8;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.82) 0, rgba(255, 255, 255, 0) 28%);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-2);
}

h1,
h2,
h3,
h4 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.98;
}

h2 {
    font-size: clamp(1.6rem, 2vw, 2.3rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 10px;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.muted {
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.28em;
    color: var(--muted);
    margin-bottom: 8px;
}

.auth {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px 16px;
    background: #ffffff;
}

.auth::before,
.auth::after {
    display: none;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: min(430px, 92vw);
    padding: 24px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.05);
    backdrop-filter: none;
    animation: rise-in 0.55s ease both;
}

.auth-card-wide {
    width: min(860px, 96vw);
}

.auth-card.has-hero {
    padding: 0;
    overflow: hidden;
}

.auth-card-top {
    position: relative;
    padding: 18px 18px 4px;
    text-align: center;
    color: var(--text);
    background: transparent;
}

.auth-card-top::before,
.auth-card-top::after {
    display: none;
}

.auth-brand-mark {
    position: relative;
    z-index: 1;
    width: min(150px, 40vw);
    height: auto;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.auth-brand-mark::after {
    display: none;
}

.auth-brand-logo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.auth-brand-glyph {
    display: none;
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.brand.is-centered {
    position: relative;
    z-index: 1;
    justify-content: center;
    margin-bottom: 0;
}

.brand-dot {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 7px;
    background: #111111;
    box-shadow: 0 6px 14px rgba(17, 17, 17, 0.12);
    flex-shrink: 0;
}

.brand-dot::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
}

.brand.is-centered .brand-dot {
    background: #111111;
    box-shadow: 0 6px 14px rgba(17, 17, 17, 0.14);
}

.brand-label {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-sub {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand.is-centered .brand-label,
.brand.is-centered .brand-sub {
    color: var(--text);
}

.brand.is-centered .brand-sub {
    opacity: 1;
}

.auth-card-body {
    position: relative;
    margin-top: 0;
    padding: 2px 18px 0;
    border-radius: 0;
    background: transparent;
    border-top: 0;
}

.auth-title-wrap {
    text-align: center;
    margin-bottom: 8px;
}

.auth-title-wrap h1 {
    margin-bottom: 6px;
    font-family: var(--font-sans);
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.auth-title-wrap .muted {
    max-width: none;
    margin: 0;
}

.form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
    margin-bottom: 5px;
}

.field input,
.field select,
.field textarea,
.grid-form textarea,
.grid-form select,
.modal-form textarea,
.modal-form select,
.form-inline input,
.empresa-select select,
.filter select {
    width: 100%;
    padding: 11px 13px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background: #fafafa;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder,
.form-inline input::placeholder {
    color: #9b9b9b;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.grid-form textarea:focus,
.grid-form select:focus,
.modal-form textarea:focus,
.modal-form select:focus,
.form-inline input:focus,
.empresa-select select:focus,
.filter select:focus {
    border-color: rgba(17, 17, 17, 0.16);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.04);
    background: #ffffff;
}

.field input[type="file"] {
    padding: 10px 12px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 60px;
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 38px;
    padding: 0 10px;
    background: #ffffff;
    color: var(--muted);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.toggle-password:hover,
.toggle-password.is-active {
    color: var(--accent);
    border-color: rgba(17, 17, 17, 0.2);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.toggle-password .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.toggle-password .icon-hide {
    display: none;
}

.toggle-password.is-active .icon-show {
    display: none;
}

.toggle-password.is-active .icon-hide {
    display: block;
}

.btn {
    border: 1px solid transparent;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn.is-loading {
    pointer-events: none;
    cursor: wait;
    opacity: 0.88;
}

.btn.is-loading::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: button-spin 0.7s linear infinite;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger-outline {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-danger {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.btn-danger-outline:hover,
.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.btn-danger-outline:hover {
    background: #ffffff;
    border-color: rgba(17, 17, 17, 0.38);
}

.btn-danger:hover {
    background: #000000;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

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

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border-strong);
    box-shadow: var(--shadow-soft);
}

.alert-success {
    background: rgba(46, 125, 50, 0.1);
    border-color: rgba(46, 125, 50, 0.2);
    border-left-color: var(--success);
    color: #1f5f25;
}

.alert-error {
    background: rgba(198, 40, 40, 0.1);
    border-color: rgba(198, 40, 40, 0.2);
    border-left-color: var(--danger);
    color: #8e1f1f;
}

.alert-info {
    background: rgba(21, 101, 192, 0.1);
    border-color: rgba(21, 101, 192, 0.2);
    border-left-color: var(--info);
    color: #124f94;
}

.auth-links {
    margin-top: 4px;
    font-size: 13px;
    text-align: left;
}

.auth-links a {
    position: relative;
    display: inline-block;
}

.auth-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
}

.auth-footer {
    margin-top: 10px;
    padding: 0 18px 18px;
    font-size: 12px;
    color: var(--muted);
    text-align: left;
}

.dashboard {
    padding: 28px 0 52px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.stats-grid,
.grid-two,
.panel-grid,
.modelos-stack {
    display: grid;
    gap: 10px;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 12px;
}

.panel-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.modelos-stack {
    grid-template-columns: 1fr;
}

.card,
.panel,
.modal,
.table-wrapper {
    background: var(--card);
    border: 1px solid rgba(17, 17, 17, 0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.card {
    padding: 14px;
    animation: fade-in 0.45s ease both;
}

.card-tall {
    min-height: 220px;
}

.card-highlight {
    border-color: rgba(17, 17, 17, 0.18);
    box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08), var(--shadow-soft);
}

.metric {
    font-size: 32px;
    font-weight: 700;
    margin: 6px 0 8px;
    color: var(--accent);
}

.panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0 12px;
    padding: 14px;
}

.panel-list-header {
    margin: 8px 0 4px;
    padding: 12px 14px;
}

.panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.panel-actions .btn:not(.btn-icon):not(.btn-action-icon),
.topbar-actions .btn:not(.btn-icon):not(.btn-action-icon),
.modal-actions .btn:not(.btn-icon):not(.btn-action-icon),
.avaliacao-step-actions .btn {
    min-width: 180px;
    justify-content: center;
}

.dashboard-overview-panel {
    align-items: flex-start;
    padding: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 28%, rgba(247, 246, 243, 0.92) 100%);
}

.dashboard-overview-copy {
    display: grid;
    gap: 10px;
    max-width: 760px;
}

.dashboard-overview-eyebrow {
    margin-bottom: 0;
}

.dashboard-overview-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-overview-panel .panel-actions .btn {
    min-width: 0;
    padding: 10px 14px;
    font-size: 14px;
    flex: 0 0 auto;
}

.dashboard-kpi-grid,
.dashboard-column-stack,
.dashboard-context-grid,
.dashboard-focus-list,
.dashboard-strength-grid {
    display: grid;
    gap: 12px;
}

.dashboard-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    grid-auto-rows: 1fr;
    margin: 14px 0 18px;
    align-items: stretch;
}

.dashboard-kpi-card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 4px;
    align-content: start;
    height: 100%;
    min-height: 104px;
    padding: 12px 13px;
}

.dashboard-card {
    display: grid;
    align-content: start;
    gap: 14px;
    height: 100%;
    padding: 18px;
    border-color: rgba(17, 17, 17, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 246, 243, 0.96) 100%);
    box-shadow: 0 22px 38px rgba(17, 17, 17, 0.05);
}

.dashboard-card.card-tall {
    min-height: 0;
}

.dashboard-card-head {
    align-items: flex-start;
    margin-bottom: 0;
}

.dashboard-card-copy {
    display: grid;
    gap: 6px;
}

.dashboard-card-copy h3,
.dashboard-card-copy p {
    margin: 0;
}

.dashboard-card-copy .muted {
    max-width: 56ch;
}

.dashboard-card-head .badge {
    align-self: flex-start;
}

.dashboard-card-body {
    display: grid;
    gap: 14px;
    min-height: 0;
}

.dashboard-context-summary {
    padding: 12px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.96) 0%, rgba(252, 250, 244, 0.94) 42%, rgba(246, 244, 239, 0.96) 100%);
    border: 1px solid rgba(17, 17, 17, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.dashboard-kpi-card-strong {
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.97) 0%, rgba(35, 35, 35, 0.96) 100%);
    border-color: rgba(17, 17, 17, 0.96);
    color: #ffffff;
    box-shadow: 0 20px 36px rgba(17, 17, 17, 0.14);
}

.dashboard-kpi-card-band-baixo {
    background: linear-gradient(180deg, #2f7d57 0%, #245f42 100%);
    border-color: #245f42;
    box-shadow: 0 20px 36px rgba(47, 125, 87, 0.22);
}

.dashboard-kpi-card-band-moderado {
    background: linear-gradient(180deg, #d8b63d 0%, #b68f17 100%);
    border-color: #b68f17;
    box-shadow: 0 20px 36px rgba(216, 182, 61, 0.24);
    color: #2f2400;
}

.dashboard-kpi-card-band-alto {
    background: linear-gradient(180deg, #d9534f 0%, #b93c38 100%);
    border-color: #b93c38;
    box-shadow: 0 20px 36px rgba(217, 83, 79, 0.24);
}

.dashboard-kpi-card-strong .dashboard-kpi-label,
.dashboard-kpi-card-strong .dashboard-kpi-meta,
.dashboard-kpi-card-strong .dashboard-kpi-value {
    color: inherit;
}

.dashboard-kpi-label {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-kpi-value {
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.02;
    color: var(--accent);
}

.dashboard-kpi-value-sm {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.15;
}

.dashboard-kpi-meta {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.dashboard-domain-row {
    align-content: start;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(248, 247, 244, 0.94);
    border: 1px solid rgba(17, 17, 17, 0.06);
}

.dashboard-domain-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-risk-layout {
    margin-bottom: 0;
}

.dashboard-legend-stack {
    align-content: start;
}

.dashboard-context-grid,
.dashboard-strength-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.dashboard-context-grid {
    gap: 8px;
}

.dashboard-context-item,
.dashboard-strength-item,
.dashboard-focus-item {
    height: 100%;
    padding: 14px 15px;
    border-radius: 16px;
    background: rgba(248, 247, 244, 0.98);
    border: 1px solid rgba(17, 17, 17, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dashboard-focus-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    min-height: 108px;
    position: relative;
    overflow: hidden;
}

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

.dashboard-focus-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--focus-accent, #d9534f);
}

.dashboard-focus-item-baixo {
    --focus-accent: #2f7d57;
}

.dashboard-focus-item-moderado {
    --focus-accent: #d8b63d;
}

.dashboard-focus-item-alto {
    --focus-accent: #d9534f;
}

.dashboard-focus-copy {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.dashboard-focus-rank {
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(17, 17, 17, 0.06);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.dashboard-focus-item-baixo .dashboard-focus-rank {
    background: rgba(47, 125, 87, 0.12);
    color: #245f42;
}

.dashboard-focus-item-moderado .dashboard-focus-rank {
    background: rgba(216, 182, 61, 0.18);
    color: #8f7314;
}

.dashboard-focus-item-alto .dashboard-focus-rank {
    background: rgba(217, 83, 79, 0.14);
    color: #a12626;
}

.dashboard-focus-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.dashboard-focus-head {
    align-items: flex-start;
}

.dashboard-focus-head strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.dashboard-grid-main,
.dashboard-grid-secondary {
    margin-top: 12px;
    align-items: stretch;
}

.dashboard-grid-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

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

.dashboard-column-stack {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 14px;
}

.dashboard-column-stack > .dashboard-card {
    height: auto;
}

.dashboard-card-map .chart-bars {
    gap: 12px;
}

.dashboard-card-body-context {
    grid-template-rows: auto auto;
    align-content: start;
    gap: 10px;
}

.dashboard-card-context .chart-pie-layout {
    align-items: start;
    grid-template-columns: minmax(136px, 156px) minmax(0, 1fr);
    gap: 10px;
}

.dashboard-card-context .chart-donut-large {
    --donut-size: 148px;
}

.dashboard-card-context .chart-legend {
    gap: 6px;
}

.dashboard-card-context .chart-legend-item {
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.76);
}

.dashboard-card-context .chart-legend-item strong {
    font-size: 12px;
}

.dashboard-card-context .chart-legend-item p {
    font-size: 11px;
}

.dashboard-card-body-priority,
.dashboard-card-body-strength,
.dashboard-card-body-map {
    height: 100%;
}

.dashboard-card-body-priority {
    align-content: start;
}

.dashboard-card-priority {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 247, 243, 0.96) 100%);
}

.dashboard-card-priority .dashboard-card-head {
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.dashboard-card-priority .dashboard-focus-list {
    gap: 10px;
}

.dashboard-card-strength .dashboard-strength-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-strength-item,
.dashboard-context-item {
    min-height: 84px;
    display: grid;
    gap: 6px;
    align-content: start;
}

.dashboard-context-item .indicator-value,
.dashboard-strength-item .indicator-value {
    font-size: 1rem;
    line-height: 1.3;
    white-space: normal;
}

.dashboard-context-item {
    padding-top: 16px;
}

.dashboard-context-item .indicator-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
}

.dashboard-card-context .indicator-value {
    font-size: 0.94rem;
    line-height: 1.2;
}

.dashboard-card-context .dashboard-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-card-context .dashboard-context-item {
    min-height: 72px;
    padding: 10px 12px;
    gap: 6px;
    border-radius: 14px;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 245, 240, 0.96) 100%);
    position: relative;
    overflow: hidden;
}

.dashboard-card-context .dashboard-context-item::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.1) 0%, rgba(17, 17, 17, 0.22) 100%);
}

.dashboard-card-context .dashboard-context-item .indicator-label {
    font-size: 10px;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.dashboard-card-context .dashboard-context-item .indicator-value {
    display: block;
    margin-top: auto;
    word-break: break-word;
}

.avaliacao-step-actions {
    justify-content: flex-end;
}

.avaliacao-step-actions .btn {
    min-width: 180px;
    justify-content: center;
}

@media (max-width: 1180px) {
    .dashboard-grid-main,
    .dashboard-context-grid,
    .dashboard-card-strength .dashboard-strength-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-column-stack {
        grid-template-columns: 1fr;
    }

    .dashboard-card-context .chart-pie-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-focus-item {
        min-height: 0;
    }
}

@media (max-width: 920px) {
    .dashboard-context-grid,
    .dashboard-card-strength .dashboard-strength-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-card {
        padding: 16px;
    }
}

.relatorios-actions .btn,
.relatorios-actions a.btn {
    min-height: 42px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.topbar-cycle-select {
    min-width: min(320px, 32vw);
}

.response-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.empresa-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1400px) {
    .empresa-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .empresa-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar-cycle-select,
    .topbar-cycle-select select {
        width: 100%;
    }
}

.empresa-card,
.empresa-empty-state {
    display: grid;
    gap: 12px;
}

.empresa-card {
    align-content: start;
    min-height: 100%;
    padding: 16px;
    border-color: rgba(17, 17, 17, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.empresa-card:hover {
    transform: translateY(-2px);
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: 0 16px 32px rgba(17, 17, 17, 0.08);
}

.empresa-card-top,
.empresa-card-badges,
.empresa-card-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.empresa-card-top {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.empresa-card-title {
    min-width: 0;
}

.empresa-card-open-link {
    display: inline;
    color: inherit;
    text-decoration: none;
}

.empresa-card-open-link:hover .empresa-card-open-text,
.empresa-card-open-link:focus-visible .empresa-card-open-text {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.empresa-card-open-link:focus-visible {
    outline: 2px solid rgba(17, 17, 17, 0.2);
    outline-offset: 3px;
    border-radius: 8px;
}

.empresa-card-top h3 {
    margin-bottom: 2px;
    line-height: 1.2;
}

.empresa-card-title .muted {
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.empresa-card-badges {
    justify-content: flex-end;
}

.empresa-badge-risco {
    background: rgba(17, 17, 17, 0.92);
    color: #ffffff;
    border-color: rgba(17, 17, 17, 0.92);
}

.empresa-badge-tipo {
    background: rgba(17, 17, 17, 0.04);
}

.empresa-card-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.empresa-card-field {
    padding: 10px;
    border-radius: 10px;
    background: var(--card-strong);
    border: 1px solid rgba(17, 17, 17, 0.05);
}

.empresa-card-field-wide {
    grid-column: 1 / -1;
}

.empresa-card-field strong {
    display: block;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.empresa-card-field-address {
    padding: 0;
    background: transparent;
    border-color: transparent;
}

.setor-card-field-description {
    padding: 0;
    background: transparent;
    border-color: transparent;
}

.cargo-card-field-clean {
    padding: 0;
    background: transparent;
    border-color: transparent;
}

.cargo-card .empresa-card-top {
    border-bottom: 0;
    padding-bottom: 0;
}

.setor-card .empresa-card-top {
    border-bottom: 0;
    padding-bottom: 0;
}

.empresa-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(17, 17, 17, 0.06);
    align-items: center;
}

.empresa-card-footer-copy {
    display: grid;
    gap: 2px;
}

.empresa-card-footer-copy strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.empresa-card-actions {
    justify-content: flex-end;
}

.empresa-view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.response-card {
    width: 100%;
    padding: 12px;
    display: grid;
    gap: 8px;
    text-align: left;
    font: inherit;
    color: inherit;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.response-card-compact {
    gap: 10px;
}

.response-card:hover {
    transform: translateY(-2px);
    border-color: rgba(17, 17, 17, 0.16);
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08);
}

.response-card-top,
.response-group-header,
.response-answer-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.response-card-top h3,
.response-group h4,
.response-comment h4 {
    margin-bottom: 4px;
}

.response-card-meta,
.response-card-stats,
.response-card-fields,
.response-groups,
.response-answer-list {
    display: grid;
    gap: 8px;
}

.response-card-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.response-card-field {
    padding: 8px 9px;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid rgba(17, 17, 17, 0.05);
}

.response-card-field strong {
    display: block;
    line-height: 1.35;
}

.response-card-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.response-card-meta span,
.response-card-footer span {
    padding: 7px 9px;
    border-radius: 8px;
    background: #f7f7f7;
    border: 1px solid rgba(17, 17, 17, 0.05);
    font-size: 12px;
    color: var(--muted);
}

.response-card-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.response-stat {
    padding: 9px 10px;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid rgba(17, 17, 17, 0.05);
}

.response-stat-label,
.response-summary-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.response-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.response-card-footer-compact {
    align-items: center;
}

.btn-response-open {
    min-width: 132px;
}

.response-empty {
    min-height: 160px;
    display: grid;
    align-content: center;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.site-footer {
    padding: 28px 16px 40px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#code {
    letter-spacing: 0.3em;
    text-align: center;
    font-weight: 600;
}

.panel-shell {
    min-height: 100vh;
    display: grid;
    --sidebar-width: 270px;
    grid-template-columns: var(--sidebar-width) 1fr;
    transition: grid-template-columns 0.25s ease;
}

.sidebar-collapsed .panel-shell {
    --sidebar-width: 76px;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    color: var(--sidebar-text);
    background: #ffffff;
    border-right: 1px solid var(--sidebar-border);
    transition: width 0.25s ease, padding 0.25s ease, opacity 0.25s ease;
    z-index: 1200;
    overflow: hidden;
}

.sidebar::before {
    display: none;
}

.sidebar > * {
    position: relative;
    z-index: 1;
}

.sidebar-collapsed .sidebar {
    padding: 20px 10px;
}

.sidebar-backdrop,
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1100;
}

.sidebar-open .sidebar-backdrop,
.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.download-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 10, 10, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    z-index: 1250;
}

.download-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.download-overlay-card {
    width: min(460px, calc(100vw - 32px));
    padding: 28px 28px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.46);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.16);
    color: var(--text);
    animation: rise-in 0.3s ease both;
}

.download-overlay-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.download-overlay-kicker::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #1a1a1a 0%, #050505 100%);
    box-shadow: 0 0 0 6px rgba(17, 17, 17, 0.08);
}

.download-overlay-title {
    display: block;
    margin: 0 0 8px;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.15;
}

.download-overlay-copy {
    margin: 0 0 18px;
    color: var(--muted);
}

.download-overlay-progress {
    position: relative;
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.08);
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.download-overlay-progress-bar {
    position: relative;
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #111111 0%, #2e2e2e 45%, #111111 100%);
    box-shadow: 0 10px 22px rgba(17, 17, 17, 0.18);
    transition: width 0.26s ease;
}

.download-overlay-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
    animation: download-progress-shimmer 1.6s linear infinite;
}

.download-overlay-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}

.download-overlay-value {
    font-weight: 700;
    color: var(--text);
}

.modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
}

.modal-overlay.is-open {
    visibility: visible;
}

.sidebar-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.sidebar-brand-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.sidebar-brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.sidebar-user {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid rgba(17, 17, 17, 0.08);
    margin-bottom: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.sidebar-user-name {
    font-weight: 600;
    color: var(--sidebar-text);
}

.sidebar-user-role {
    font-size: 11px;
    color: var(--sidebar-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.sidebar .brand-label {
    color: var(--sidebar-text);
}

.sidebar .brand-sub {
    color: var(--sidebar-muted);
}

.sidebar-collapsed .sidebar-brand {
    justify-content: center;
}

.sidebar-collapsed .sidebar-brand div,
.sidebar-collapsed .sidebar-user,
.sidebar-collapsed .nav-title,
.sidebar-collapsed .nav-label {
    display: none;
}

.sidebar-nav {
    display: grid;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 4px;
    margin-bottom: 12px;
}

.nav-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--sidebar-muted);
    margin: 0 0 1px;
    padding: 0 10px;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    color: var(--sidebar-muted);
    min-height: 40px;
    padding: 10px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-label {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--sidebar-text);
    border-color: rgba(17, 17, 17, 0.08);
    background: #f7f7f7;
}

.nav-item.active {
    color: var(--sidebar-text);
    background: #ffffff;
    border-color: rgba(17, 17, 17, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 11px;
}

.sidebar-content {
    display: grid;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 8px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(17, 17, 17, 0.16);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 12px;
}

.sidebar-divider {
    height: 1px;
    background: rgba(17, 17, 17, 0.08);
    margin: 12px 0 4px;
}

.nav-item-logout {
    width: 100%;
    justify-content: flex-start;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(17, 17, 17, 0.08);
}

.mobile-only {
    display: none;
}

.panel-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: transparent;
}

.panel-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px 6px;
    margin: 14px 14px 0;
    border: 1px solid rgba(17, 17, 17, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.topbar-left,
.topbar-actions,
.table-actions,
.filter,
.form-inline,
.avaliacao-meta,
.modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
}

.btn-action-icon svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-action-edit {
    color: #4c6fa8;
    background: #e7f0ff;
    border-color: #cfe0fb;
}

.btn-action-edit:hover {
    background: #dce9ff;
    border-color: #bdd4fb;
    color: #3f6299;
}

.btn-action-delete {
    color: #b14a4a;
    background: #f8dede;
    border-color: #f1c3c3;
}

.btn-action-delete:hover {
    background: #f3cfcf;
    border-color: #e7b1b1;
    color: #9f3f3f;
}

.topbar-actions {
    justify-content: flex-end;
}

.topbar-notifications {
    position: relative;
}

.topbar-notifications[open] {
    z-index: 950;
}

.topbar-notifications summary {
    list-style: none;
}

.topbar-notifications summary::-webkit-details-marker {
    display: none;
}

.topbar-notifications-trigger {
    position: relative;
}

.topbar-notifications-count {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #d9534f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(217, 83, 79, 0.28);
}

.topbar-notifications-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, 88vw);
    padding: 14px;
    display: grid;
    gap: 12px;
    border-radius: 16px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 44px rgba(17, 17, 17, 0.12);
    backdrop-filter: blur(16px);
}

.topbar-notifications-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.topbar-notifications-list {
    display: grid;
    gap: 8px;
}

.topbar-notification-item {
    display: grid;
    gap: 4px;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid rgba(17, 17, 17, 0.06);
    background: rgba(248, 247, 244, 0.98);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar-notification-item:hover {
    transform: translateY(-1px);
    border-color: rgba(17, 17, 17, 0.16);
    box-shadow: 0 12px 22px rgba(17, 17, 17, 0.08);
}

.topbar-notification-item strong {
    font-size: 13px;
    line-height: 1.35;
}

.topbar-notification-item span,
.topbar-notifications-empty {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.topbar-notifications-empty {
    margin: 0;
    padding: 8px 2px 2px;
}

.topbar-notification-item-warning {
    box-shadow: inset 3px 0 0 #d8b63d;
}

.topbar-notification-item-danger {
    box-shadow: inset 3px 0 0 #d9534f;
}

.topbar-notification-item-info {
    box-shadow: inset 3px 0 0 #4c6fa8;
}

.topbar-logout-btn {
    min-width: 0 !important;
    padding: 9px 12px;
    font-size: 13px;
}

.user-chip,
.badge,
.avaliacao-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    font-size: 12px;
}

.user-chip {
    display: grid;
    gap: 2px;
    text-align: right;
}

.user-chip span {
    font-weight: 600;
    font-size: 13px;
}

.panel-content {
    padding: 18px 24px 40px;
    display: grid;
    gap: 12px;
}

.placeholder-chart {
    height: 200px;
    border-radius: 10px;
    border: 1px dashed rgba(17, 17, 17, 0.18);
    display: grid;
    place-items: center;
    color: var(--muted);
    margin-top: 12px;
    background: rgba(247, 247, 245, 0.72);
}

.chart-bars,
.indicator-grid,
.avaliacao-stepper,
.avaliacao-step,
.chart-row {
    display: grid;
    gap: 10px;
}

.chart-pie-layout,
.chart-domain-grid,
.chart-domain-card,
.chart-legend,
.chart-legend-item,
.chart-domain-copy {
    display: grid;
    gap: 10px;
}

.chart-row-head,
.avaliacao-stepper-single-top,
.avaliacao-step-actions,
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.chart-label {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
}

.chart-label-question {
    font-weight: 500;
}

.chart-value,
.avaliacao-stepper-single-label,
.indicator-value {
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

.chart-track,
.avaliacao-stepper-single-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e5e5e3;
    overflow: hidden;
}

.chart-fill,
.avaliacao-stepper-single-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1a1a1a 0%, #6f6f6f 100%);
}

.chart-fill-soft {
    background: linear-gradient(90deg, var(--chart-fill-color, #2f7d57) 0%, color-mix(in srgb, var(--chart-fill-color, #2f7d57) 62%, #ffffff 38%) 100%);
}

.chart-meta,
.indicator-label {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.chart-pie-layout {
    align-items: center;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
}

.chart-donut {
    --donut-size: 112px;
    width: var(--donut-size);
    height: var(--donut-size);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto;
    box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.06);
}

.chart-donut-large {
    --donut-size: 188px;
}

.chart-donut-hole {
    width: calc(var(--donut-size) * 0.62);
    height: calc(var(--donut-size) * 0.62);
    border-radius: 50%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 17, 17, 0.06);
    text-align: center;
}

.chart-donut-hole strong {
    font-size: 1rem;
    line-height: 1.1;
}

.chart-donut-hole span {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.chart-legend-item {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(250, 250, 248, 0.92);
}

.chart-legend-item strong {
    display: block;
    margin-bottom: 2px;
}

.chart-legend-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.chart-legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--legend-color, #2f7d57);
}

.chart-domain-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.chart-domain-card {
    align-items: center;
    justify-items: center;
    text-align: center;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(250, 250, 248, 0.92);
}

.chart-domain-copy strong {
    display: block;
}

.indicator-item,
.avaliacao-question,
.avaliacao-stepper-item,
.avaliacao-stepper-single,
.avaliacao-option {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.86);
}

.indicator-item,
.avaliacao-question {
    padding: 10px;
}

.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.table th,
.table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
}

.table-group-row td {
    background: #f3f3f1;
    color: var(--accent);
    font-weight: 700;
}

.filter label {
    font-size: 13px;
    color: var(--muted);
}

.grid-form {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: end;
}

.grid-form button {
    grid-column: 1 / -1;
    justify-self: start;
}

.badge {
    font-weight: 500;
}

.badge-status.badge-success {
    color: #1f7a33;
    background: rgba(46, 125, 50, 0.12);
    border-color: rgba(46, 125, 50, 0.22);
}

.badge-status.badge-warning {
    color: #8f7314;
    background: rgba(216, 182, 61, 0.16);
    border-color: rgba(216, 182, 61, 0.3);
}

.badge-status.badge-danger {
    color: #a12626;
    background: rgba(198, 40, 40, 0.12);
    border-color: rgba(198, 40, 40, 0.22);
}

.modal {
    width: min(860px, 94vw);
    padding: 14px;
    max-height: 90vh;
    overflow: auto;
    animation: rise-in 0.4s ease both;
}

.modal-title {
    margin: 0;
}

.modal-close {
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--muted);
    border-radius: 8px;
    padding: 11px 16px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.modal-form {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-form .field,
.modal-form .span-2,
.modal-form .empresa-step,
.modal-form .empresa-step .modal-section,
.modal-form .empresa-step .modal-actions,
.modal-form .empresa-step .span-2,
.modal-actions,
.modal-section {
    grid-column: 1 / -1;
}

.modal-form .empresa-step {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-form .empresa-step[hidden],
.avaliacao-step[hidden] {
    display: none !important;
}

.modal-section {
    padding-top: 4px;
    border-top: 1px dashed rgba(17, 17, 17, 0.12);
}

.modal-section.setor-modal-section {
    padding-top: 0;
    border-top: 0;
}

.avaliacao-opcoes-fixas {
    display: grid;
    gap: 8px;
}

.avaliacao-opcao-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: #fafafa;
}

.avaliacao-opcao-item strong {
    min-width: 38px;
    text-align: right;
}

.pergunta-filter-card,
.pergunta-empty-state {
    display: grid;
    gap: 12px;
}

.pergunta-card-top,
.pergunta-card-actions,
.pergunta-card-badges {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.pergunta-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(180px, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

.pergunta-filter-actions {
    align-self: end;
}

.pergunta-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.pergunta-card {
    display: grid;
    gap: 10px;
    align-content: start;
}

.pergunta-card-title {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

.pergunta-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pergunta-option-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border-radius: 999px;
    background: #f7f7f7;
    border: 1px solid rgba(17, 17, 17, 0.06);
    font-size: 12px;
}

.pergunta-option-chip strong {
    font-size: 12px;
}

.btn-action-toggle {
    color: #1f1f1f;
    border-color: rgba(17, 17, 17, 0.1);
}

.btn-action-toggle:hover {
    background: #ffffff;
    border-color: rgba(17, 17, 17, 0.16);
}

@media (max-width: 860px) {
    .pergunta-filter-grid {
        grid-template-columns: 1fr;
    }
}

.modal-response {
    width: min(980px, 96vw);
}

.response-modal-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.response-summary-item,
.response-group,
.response-comment {
    padding: 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.response-group,
.response-comment {
    box-shadow: 0 10px 20px rgba(17, 17, 17, 0.04);
}

.response-answer-item {
    padding-top: 8px;
    border-top: 1px dashed rgba(17, 17, 17, 0.08);
}

.response-answer-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.response-answer-question {
    margin-bottom: 6px;
    font-weight: 500;
}

.response-answer-value {
    font-weight: 600;
}

.response-answer-score {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f2f2f2;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.frprt-narrative-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.frprt-narrative-card {
    display: grid;
    gap: 10px;
    align-content: start;
}

.frprt-narrative-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.frprt-toolbar {
    margin-bottom: 16px;
}

.frprt-report {
    display: grid;
    gap: 18px;
    position: relative;
}

.frprt-print-header,
.frprt-print-footer {
    display: none;
}

.frprt-cover,
.frprt-section,
.frprt-summary-card {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: var(--shadow-soft);
}

.frprt-cover {
    padding: 36px;
    background:
        radial-gradient(circle at top right, rgba(29, 78, 216, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(15, 118, 110, 0.05), rgba(255, 255, 255, 0)),
        rgba(255, 255, 255, 0.98);
    display: grid;
    align-items: center;
}

.frprt-watermark {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.055;
}

.frprt-watermark img {
    width: min(52vw, 420px);
    height: auto;
    object-fit: contain;
    filter: grayscale(1);
}

.frprt-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}

.frprt-subtitle {
    max-width: 760px;
}

.frprt-cover-grid,
.frprt-meta-grid,
.frprt-section-grid {
    display: grid;
    gap: 12px;
}

.frprt-cover-seal {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(17, 17, 17, 0.04);
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.frprt-cover-seal img {
    width: 72px;
    height: auto;
    object-fit: contain;
}

.frprt-cover-grid,
.frprt-meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 18px;
}

.frprt-cover-header {
    display: grid;
    gap: 26px;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    text-align: center;
    width: 100%;
    max-width: 780px;
    margin-inline: auto;
}

.frprt-cover-title-block {
    display: grid;
    gap: 14px;
    align-content: start;
    justify-items: center;
    width: 100%;
}

.frprt-cover-overline {
    margin: 0;
    color: #0f766e;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.frprt-cover-title-block h1 {
    margin: 0;
    max-width: none;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: #0f172a;
}

.frprt-cover-code {
    margin: 0;
    color: #1d4ed8;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.frprt-cover-aside {
    display: grid;
    gap: 16px;
    width: min(100%, 720px);
    justify-items: center;
    justify-self: center;
    margin-inline: auto;
}

.frprt-cover-logo-card,
.frprt-cover-client-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.frprt-cover-logo-card {
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
    width: min(100%, 420px);
}

.frprt-cover-logo-card img {
    max-width: 220px;
    max-height: 78px;
    object-fit: contain;
}

.frprt-cover-client-card h2 {
    margin: 0 0 14px;
    font-size: 18px;
    color: #0f172a;
    text-align: center;
}

.frprt-cover-client-grid {
    display: grid;
    gap: 12px;
}

.frprt-cover-client-card {
    width: min(100%, 560px);
    margin-inline: auto;
}

.frprt-section-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.frprt-print-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.frprt-print-brand p,
.frprt-print-meta {
    margin: 0;
    color: var(--muted);
}

.frprt-print-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.frprt-signature-card {
    max-width: 420px;
    margin-left: auto;
    display: grid;
    gap: 8px;
    text-align: center;
}

.frprt-signature-card p {
    margin: 0;
}

.frprt-signature-line {
    height: 1px;
    margin: 22px 0 0;
    background: rgba(17, 17, 17, 0.28);
}

.frprt-cover-header,
.frprt-section-heading,
.frprt-chart-header,
.frprt-bar-head,
.frprt-bar-foot,
.frprt-data-row,
.frprt-question-item-head,
.frprt-action-meta,
.frprt-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.frprt-cover-chip,
.frprt-band-pill,
.frprt-item-tag,
.frprt-priority,
.frprt-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.frprt-cover-chip {
    padding: 10px 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #1d4ed8);
    box-shadow: 0 14px 32px rgba(15, 118, 110, 0.18);
}

.frprt-cover-highlight {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    padding: 20px;
    border-radius: 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #0f172a, #0f766e 55%, #1d4ed8);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(0, 1fr));
}

.frprt-cover-highlight-main,
.frprt-cover-highlight-card,
.frprt-highlight-card,
.frprt-info-card,
.frprt-chart-card,
.frprt-list-card,
.frprt-process-step,
.frprt-action-card,
.frprt-narrative-callout,
.frprt-callout {
    border-radius: 18px;
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.frprt-cover-highlight-main {
    display: grid;
    gap: 10px;
    align-content: start;
}

.frprt-cover-highlight-card {
    display: grid;
    gap: 6px;
    align-content: start;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}

.frprt-cover-highlight-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.72;
}

.frprt-cover-highlight-value,
.frprt-highlight-value {
    display: block;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.frprt-band-pill,
.frprt-item-tag,
.frprt-priority,
.frprt-section-number {
    padding: 6px 12px;
}

.frprt-band-pill.is-baixo,
.frprt-bar-fill.is-baixo,
.frprt-legend-swatch.is-baixo,
.frprt-question-item.is-baixo {
    --frprt-accent: #15803d;
}

.frprt-band-pill.is-moderado,
.frprt-bar-fill.is-moderado,
.frprt-legend-swatch.is-moderado,
.frprt-question-item.is-moderado {
    --frprt-accent: #eab308;
}

.frprt-band-pill.is-alto,
.frprt-bar-fill.is-alto,
.frprt-legend-swatch.is-alto,
.frprt-question-item.is-alto {
    --frprt-accent: #b91c1c;
}

.frprt-band-pill {
    color: var(--frprt-accent);
    background: color-mix(in srgb, var(--frprt-accent) 12%, white);
}

.frprt-section-number {
    color: #0f766e;
    background: rgba(15, 118, 110, 0.12);
}

.frprt-section-heading {
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.frprt-section-heading h2,
.frprt-chart-header h3,
.frprt-info-card h3,
.frprt-list-card h3,
.frprt-process-step h3,
.frprt-action-card h3 {
    margin: 0;
}

.frprt-section-heading p,
.frprt-chart-header p,
.frprt-cover-highlight-main p,
.frprt-cover-highlight-card p,
.frprt-highlight-card p,
.frprt-info-card p,
.frprt-process-step p,
.frprt-action-card p,
.frprt-callout p,
.frprt-narrative-callout p,
.frprt-question-item p {
    margin: 0;
}

.frprt-section-lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
}

.frprt-profile-grid,
.frprt-highlight-grid,
.frprt-dual-grid,
.frprt-process-grid,
.frprt-action-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.frprt-highlight-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}

.frprt-info-card,
.frprt-chart-card,
.frprt-list-card,
.frprt-process-step,
.frprt-action-card,
.frprt-callout {
    padding: 18px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.frprt-highlight-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #0f766e);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.frprt-highlight-card.is-good {
    background: linear-gradient(135deg, #166534, #22c55e);
    box-shadow: 0 18px 40px rgba(22, 101, 52, 0.18);
}

.frprt-highlight-card.is-warning {
    color: #111827;
    background: linear-gradient(135deg, #facc15, #fef08a);
    box-shadow: 0 18px 40px rgba(234, 179, 8, 0.2);
}

.frprt-highlight-card.is-bad {
    background: linear-gradient(135deg, #991b1b, #ef4444);
    box-shadow: 0 18px 40px rgba(153, 27, 27, 0.18);
}

.frprt-highlight-card.is-secondary {
    color: #111827;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
    box-shadow: none;
}

.frprt-data-list,
.frprt-question-list,
.frprt-plain-list,
.frprt-bar-chart {
    display: grid;
    gap: 12px;
}

.frprt-data-list,
.frprt-question-list,
.frprt-plain-list {
    margin: 0;
    padding: 0;
}

.frprt-question-list,
.frprt-plain-list {
    list-style: none;
}

.frprt-number-list {
    margin: 0;
    padding-left: 22px;
    display: grid;
    gap: 10px;
}

.frprt-data-row {
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.frprt-data-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.frprt-data-row strong {
    max-width: 60%;
    text-align: right;
}

.frprt-process-step {
    display: grid;
    gap: 10px;
    position: relative;
}

.frprt-process-step span {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    color: #0f766e;
    background: rgba(15, 118, 110, 0.12);
    font-size: 12px;
    font-weight: 700;
}

.frprt-chart-card {
    margin-top: 16px;
}

.frprt-spaced-table {
    margin-top: 22px;
}

.frprt-legend {
    gap: 14px;
    font-size: 12px;
    color: var(--muted);
}

.frprt-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.frprt-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--frprt-accent);
}

.frprt-bar-row {
    display: grid;
    gap: 8px;
}

.frprt-bar-head {
    font-size: 14px;
}

.frprt-bar-foot {
    font-size: 12px;
    color: var(--muted);
}

.frprt-bar-track {
    position: relative;
    overflow: hidden;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.9), rgba(203, 213, 225, 0.85));
}

.frprt-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--frprt-accent) 82%, white), var(--frprt-accent));
}

.frprt-question-item {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    border-left: 5px solid var(--frprt-accent);
}

.frprt-plain-list li {
    position: relative;
    padding-left: 18px;
    line-height: 1.6;
}

.frprt-plain-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #0f766e;
}

.frprt-question-score {
    color: var(--frprt-accent);
    font-weight: 700;
}

.frprt-item-tag {
    width: fit-content;
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
}

.frprt-narrative-callout {
    display: grid;
    gap: 6px;
    padding: 14px;
    background: rgba(15, 118, 110, 0.06);
}

.frprt-action-card {
    display: grid;
    gap: 10px;
}

.frprt-priority.is-alta {
    color: #ffffff;
    background: #b91c1c;
}

.frprt-priority.is-media {
    color: #111827;
    background: #fde047;
}

.frprt-priority.is-baixa {
    color: #ffffff;
    background: #0f766e;
}

.frprt-callout {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    border-left: 5px solid #0f766e;
}

.frprt-callout.is-strong {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(29, 78, 216, 0.08));
}

.frprt-methodology-block,
.frprt-methodology-copy {
    margin-top: 18px;
}

.frprt-methodology-copy {
    display: grid;
    gap: 12px;
}

.frprt-methodology-copy p,
.frprt-methodology-block p {
    margin: 0;
    text-align: justify;
}

.frprt-methodology-note {
    padding-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.frprt-index-page {
    background:
        linear-gradient(180deg, rgba(15, 118, 110, 0.05), rgba(255, 255, 255, 0)),
        rgba(255, 255, 255, 0.98);
}

.frprt-index-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.frprt-index-list strong {
    color: #0f766e;
}

@media print {
    body {
        background: #ffffff;
    }

    body::before,
    .sidebar,
    .sidebar-backdrop,
    .panel-topbar,
    .frprt-toolbar,
    .topbar-logout {
        display: none !important;
    }

    .panel-shell {
        display: block;
    }

    .panel-main,
    .panel-content {
        display: block;
        padding: 0;
        margin: 0;
    }

    .frprt-report {
        gap: 12px;
        padding-top: 0;
        padding-bottom: 44px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .frprt-cover,
    .frprt-section,
    .frprt-summary-card,
    .table-wrapper,
    .card {
        box-shadow: none;
        border-color: rgba(0, 0, 0, 0.12);
        break-inside: avoid;
    }

    .table {
        min-width: 0;
    }

    .frprt-print-footer {
        display: flex !important;
        position: fixed;
        left: 0;
        right: 0;
        z-index: 2000;
        padding: 0 24px;
        color: #4b4b4b;
        font-size: 12px;
    }

    .frprt-print-footer {
        bottom: 0;
        min-height: 28px;
        align-items: center;
        justify-content: space-between;
        background: #ffffff;
        border-top: 1px solid rgba(0, 0, 0, 0.12);
    }

    .frprt-cover-highlight,
    .frprt-highlight-card,
    .frprt-info-card,
    .frprt-chart-card,
    .frprt-list-card,
    .frprt-process-step,
    .frprt-action-card,
    .frprt-question-item,
    .frprt-callout,
    .frprt-narrative-callout {
        break-inside: avoid;
    }

    .frprt-page-number::after {
        content: "Pagina " counter(page) " de " counter(pages);
    }
}

@media (max-width: 900px) {
    .frprt-cover-highlight,
    .frprt-highlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .frprt-cover-header,
    .frprt-cover-highlight,
    .frprt-profile-grid,
    .frprt-highlight-grid,
    .frprt-dual-grid,
    .frprt-process-grid,
    .frprt-action-grid,
    .frprt-cover-grid,
    .frprt-meta-grid,
    .frprt-section-grid {
        grid-template-columns: 1fr;
    }

    .frprt-data-row strong {
        max-width: none;
        text-align: left;
    }
}

.config-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(17, 17, 17, 0.08);
    width: fit-content;
}

.config-tab {
    padding: 10px 16px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.config-tab.is-active {
    color: var(--text);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.config-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.config-theme-card {
    display: grid;
    gap: 12px;
    align-content: start;
}

.config-card-top,
.config-consultoria-summary {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

.config-consultoria-summary {
    margin-top: 12px;
    flex-wrap: wrap;
}

.config-consultoria-brand,
.config-modal-logo {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: #fafafa;
}

.config-consultoria-brand {
    width: 180px;
    min-height: 140px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.config-consultoria-brand img,
.config-modal-logo img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.config-consultoria-brand-empty {
    font-size: 13px;
    color: var(--muted);
}

.config-modal-logo {
    display: grid;
    gap: 8px;
}

.theme-preview {
    height: 120px;
    padding: 14px;
    display: grid;
    gap: 10px;
    border-radius: 14px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
}

.theme-preview span {
    display: block;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.12);
}

.theme-preview span:first-child {
    width: 58%;
    height: 16px;
}

.theme-preview span:nth-child(2) {
    width: 100%;
    height: 32px;
}

.theme-preview span:last-child {
    width: 74%;
    height: 16px;
}

.theme-preview-dark {
    background: linear-gradient(180deg, #111111 0%, #1b1b1b 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

.theme-preview-dark span {
    background: rgba(255, 255, 255, 0.16);
}

.config-meta-list {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.config-meta-item {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: #fafafa;
}

.config-meta-item span {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--muted);
}

body.theme-dark {
    --bg: #0f0f10;
    --bg-alt: #171718;
    --card: rgba(23, 23, 24, 0.96);
    --card-strong: #1d1d1f;
    --text: #f5f5f5;
    --muted: #b6b6b8;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --input-bg: #1a1a1c;
    --input-border: rgba(255, 255, 255, 0.08);
    --sidebar-bg: #111112;
    --sidebar-text: #f3f3f4;
    --sidebar-muted: #b0b0b3;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    background: #0d0d0e;
}

body.theme-dark::before {
    opacity: 0.12;
}

body.theme-dark .sidebar,
body.theme-dark .panel-topbar,
body.theme-dark .card,
body.theme-dark .panel,
body.theme-dark .table-wrapper,
body.theme-dark .modal,
body.theme-dark .config-tabs {
    background: #151517;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

body.theme-dark .sidebar-user,
body.theme-dark .nav-item:hover,
body.theme-dark .nav-item.active,
body.theme-dark .field input,
body.theme-dark .field select,
body.theme-dark .field textarea,
body.theme-dark .grid-form textarea,
body.theme-dark .grid-form select,
body.theme-dark .modal-form textarea,
body.theme-dark .modal-form select,
body.theme-dark .empresa-select select,
body.theme-dark .filter select,
body.theme-dark .config-tab.is-active,
body.theme-dark .config-meta-item,
body.theme-dark .config-consultoria-brand,
body.theme-dark .config-modal-logo,
body.theme-dark .theme-preview,
body.theme-dark .avaliacao-opcao-item {
    background: #1c1c1f;
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

body.theme-dark .theme-preview-dark {
    background: linear-gradient(180deg, #050505 0%, #111111 100%);
}

body.theme-dark .btn-primary {
    background: #f2f2f2;
    color: #111111;
    border-color: #f2f2f2;
}

body.theme-dark .btn-primary:hover {
    background: #ffffff;
}

body.theme-dark .btn-secondary,
body.theme-dark .btn-ghost,
body.theme-dark .btn-danger-outline,
body.theme-dark .modal-close {
    background: #1b1b1d;
    color: #f4f4f4;
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .badge,
body.theme-dark .user-chip,
body.theme-dark .avaliacao-meta span,
body.theme-dark .response-card-meta span,
body.theme-dark .response-card-footer span,
body.theme-dark .response-answer-score,
body.theme-dark .chart-donut-hole,
body.theme-dark .chart-legend-item,
body.theme-dark .chart-domain-card,
body.theme-dark .topbar-notifications-menu,
body.theme-dark .topbar-notification-item {
    background: #1c1c1f;
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

body.theme-dark .topbar-notifications-count {
    color: #ffffff;
}

body.theme-dark .table th,
body.theme-dark .table td,
body.theme-dark .modal-section,
body.theme-dark .response-answer-item {
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .chart-track,
body.theme-dark .avaliacao-stepper-single-track {
    background: #262628;
}

@media (max-width: 720px) {
    .chart-pie-layout {
        grid-template-columns: 1fr;
    }

    .empresa-card-grid {
        grid-template-columns: 1fr;
    }

    .empresa-view-grid {
        grid-template-columns: 1fr;
    }

    .empresa-card-fields {
        grid-template-columns: 1fr;
    }

    .empresa-card-top,
    .empresa-card-footer {
        flex-direction: column;
    }

    .response-card-meta,
    .response-card-fields,
    .response-card-stats {
        grid-template-columns: 1fr;
    }

    .response-card-footer,
    .response-card-top,
    .response-group-header,
    .response-answer-meta {
        flex-direction: column;
    }

}

.modal-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.danger-name {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 8px;
    border: 1px solid rgba(17, 17, 17, 0.18);
    color: var(--text);
    background: rgba(255, 255, 255, 0.82);
}

.modal-soft-danger {
    background: linear-gradient(180deg, #fff7f7 0%, #fff1f1 100%);
    border-color: rgba(211, 118, 118, 0.22);
    box-shadow: 0 18px 36px rgba(196, 118, 118, 0.12);
}

.modal-soft-danger .modal-title {
    color: #9f4b4b;
}

.modal-soft-danger .modal-close {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(211, 118, 118, 0.2);
}

.modal-soft-danger .danger-name {
    border-color: rgba(211, 118, 118, 0.28);
    color: #a24f4f;
    background: rgba(255, 255, 255, 0.72);
}

.empresa-delete-summary {
    display: grid;
    gap: 8px;
    margin: 12px 0 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(211, 118, 118, 0.16);
}

.empresa-delete-summary p {
    margin: 0;
    line-height: 1.5;
}

.avaliacao-form {
    gap: 10px;
}

.avaliacao-stepper-item {
    padding: 8px 10px;
    color: var(--muted);
    text-align: left;
    cursor: pointer;
}

.avaliacao-stepper-item.is-active {
    border-color: rgba(17, 17, 17, 0.24);
    background: #111111;
    color: #ffffff;
}

.avaliacao-stepper-index {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f0ee;
    border: 1px solid rgba(17, 17, 17, 0.16);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

.avaliacao-stepper-item.is-active .avaliacao-stepper-index {
    background: #ffffff;
}

.avaliacao-stepper-label {
    font-size: 14px;
    font-weight: 600;
}

.avaliacao-step-title {
    margin: 0;
    font-size: 24px;
}

.avaliacao-question.is-invalid {
    border-color: rgba(17, 17, 17, 0.3);
    background: rgba(243, 243, 241, 0.96);
}

.avaliacao-question-title {
    margin: 0 0 8px;
    font-size: 18px;
}

.avaliacao-options {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.avaliacao-option {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    min-height: 50px;
}

.avaliacao-option:hover {
    border-color: rgba(17, 17, 17, 0.24);
    background: #ffffff;
}

.avaliacao-option input[type="radio"] {
    accent-color: #111111;
    margin-top: 2px;
}

.avaliacao-option:has(input[type="radio"]:checked) {
    border-color: rgba(17, 17, 17, 0.3);
    background: #111111;
}

.avaliacao-option input[type="radio"]:checked + .avaliacao-option-text {
    color: #ffffff;
    font-weight: 700;
}

.avaliacao-option-text {
    color: var(--text);
    line-height: 1.4;
}

body.modal-open {
    overflow: hidden;
}

body.download-open {
    overflow: hidden;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes download-progress-shimmer {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

@media (max-width: 960px) {
    .panel-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 270px;
        padding: 18px 14px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-collapsed .sidebar {
        padding: 20px 16px;
    }

    .sidebar-collapsed .nav-title,
    .sidebar-collapsed .nav-label {
        display: inline;
    }

    .panel-topbar {
        flex-direction: column;
        align-items: flex-start;
        margin: 12px 12px 0;
        padding: 10px 12px 6px;
    }

    .topbar-actions {
        width: 100%;
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
    }

    .empresa-select,
    .empresa-select select {
        width: 100%;
    }

    .user-chip {
        text-align: left;
    }

    .panel-content {
        padding: 14px 14px 32px;
    }

    .mobile-only {
        display: grid;
    }

    .topbar-logout {
        display: none;
    }

    .modal-form,
    .modal-form .empresa-step,
    .avaliacao-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .auth {
        padding: 22px 12px;
    }

    .auth-brand-mark {
        width: min(120px, 42vw);
        margin-bottom: 12px;
    }

    .auth-card-top {
        padding: 18px 18px 4px;
    }

    .auth-card-body,
    .auth-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .topbar,
    .panel,
    .avaliacao-step-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .config-card-top,
    .config-consultoria-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .avaliacao-step-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
