/* ============================================================
   ESCOLA OCRA BRASILIANA — Design System
   Paleta:
     Primária   #016B8A  (azul petróleo)
     Secundária #2AC6C9  (ciano vibrante)
     Destaque   #FFB700  (dourado)
     Texto      #333333
     Fundo leve #EDEDED
   Tipografia:
     Títulos  → Glacial Indifference
     Corpo    → Open Sans
   ============================================================ */

:root {
    --brand-primary:    #016B8A;
    --brand-secondary:  #2AC6C9;
    --brand-accent:     #FFB700;
    --brand-text:       #333333;
    --brand-bg:         #EDEDED;
    --brand-primary-dk: #014f68;   /* hover/dark do primário */
    --brand-primary-lt: #e0f4f8;   /* fundo suave primário   */
    --brand-secondary-lt: #e0f9f9; /* fundo suave ciano      */

    /* Dashboard tokens */
    --dashboard-border: #e2e8f0;
    --dashboard-radius-sm: 6px;
    --dashboard-radius-md: 8px;
    --dashboard-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --dashboard-surface-muted: #f8fafc;
    --dashboard-text-primary: #334155;
    --dashboard-text-secondary: #64748b;

    /* Shared dashboard visual theme */
    --dashboard-card-radius-lg: 14px;
    --dashboard-card-shadow-md: 0 8px 20px rgba(15, 23, 42, 0.05);
    --dashboard-card-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
}

/* Radzen override */
:root {
    --rz-primary:        var(--brand-primary);
    --rz-primary-dark:   var(--brand-primary-dk);
    --rz-primary-light:  var(--brand-primary-lt);
    --rz-secondary:      var(--brand-secondary);
    --rz-base-background-color: #ffffff;
}

/* Permite que o dropdown do menu apareça sobre o conteúdo.
   O .rz-body tem transform:translateZ(0) que cria stacking context e tapa o header.
   Solução: elevar z-index do header e neutralizar o transform do body. */
.rz-header {
    overflow: visible !important;
    z-index: 1001 !important;
}

.rz-body {
    transform: none !important;
}

/* Tabs — diminui fonte dos títulos */
.rz-tabview-title {
    font-size: 0.75rem !important;
}

/* ============================================================
   Dashboard shared style (Visão Geral + Psicossocial)
   ============================================================ */
.dashboard-filter-card {
    border: 1px solid #dbe4ee;
    border-radius: var(--dashboard-card-radius-lg);
    box-shadow: var(--dashboard-card-shadow-md);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.dashboard-filter-card .text-danger {
    font-size: .8rem;
    font-weight: 500;
}

.dashboard-filter-card .rz-button {
    border-radius: 10px;
}

.dashboard-empty-card {
    border: 1px solid #dbe4ee;
    border-radius: var(--dashboard-card-radius-lg);
    box-shadow: var(--dashboard-card-shadow-sm);
    background: #ffffff;
}

.dashboard-empty-alert {
    margin: 0;
}

.dashboard-empty-alert,
.dashboard-empty-alert.rz-alert,
.dashboard-empty-alert.rz-alert-info,
.dashboard-empty-alert.rz-variant-flat {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    border-radius: 10px;
    box-shadow: none;
}

.dashboard-empty-alert .rzi {
    color: #64748b !important;
}

.dashboard-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .65rem;
    margin-bottom: .95rem;
}

.dashboard-legend__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .8rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    overflow: hidden;
    min-height: 56px;
}

.dashboard-legend__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.dashboard-legend__icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-legend__icon .rzi,
.dashboard-legend__icon .notranslate {
    font-size: 18px;
}

.dashboard-legend__content {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.dashboard-legend__label {
    font-size: .84rem;
    font-weight: 700;
    color: #1e293b;
}

.dashboard-legend__range {
    margin-top: .1rem;
    font-size: .78rem;
    font-weight: 600;
    color: #64748b;
}

.dashboard-legend__item--neutral::before { background: #6c757d; }
.dashboard-legend__item--neutral { background: #f8fafc; }
.dashboard-legend__item--neutral .dashboard-legend__icon { background: #e2e8f0; color: #475569; }

.dashboard-legend__item--success::before { background: #157347; }
.dashboard-legend__item--success { background: #f0fdf4; border-color: #bbf7d0; }
.dashboard-legend__item--success .dashboard-legend__icon { background: #d4edda; color: #166534; }

.dashboard-legend__item--info::before { background: #c7a615; }
.dashboard-legend__item--info { background: #fffbeb; border-color: #fde68a; }
.dashboard-legend__item--info .dashboard-legend__icon { background: #fff3cd; color: #92400e; }

.dashboard-legend__item--warning::before { background: #c2410c; }
.dashboard-legend__item--warning { background: #fff7ed; border-color: #fed7aa; }
.dashboard-legend__item--warning .dashboard-legend__icon { background: #ffedd5; color: #c2410c; }

.dashboard-legend__item--danger::before { background: #dc3545; }
.dashboard-legend__item--danger { background: #fef2f2; border-color: #fecaca; }
.dashboard-legend__item--danger .dashboard-legend__icon { background: #f8d7da; color: #991b1b; }

.dashboard-legend__item--critical::before { background: #6f42c1; }
.dashboard-legend__item--critical { background: #faf5ff; border-color: #e9d5ff; }
.dashboard-legend__item--critical .dashboard-legend__icon { background: #e7e3f4; color: #4a1e7a; }

@media (max-width: 767px) {
    .dashboard-legend {
        grid-template-columns: 1fr;
        gap: .5rem;
    }

    .dashboard-legend__item {
        min-height: 52px;
    }
}

/* Rodapé */
.rz-footer {
    background-color: #016B8A !important;
    color: #ffffff !important;
    border-top: none !important;
}

.rz-footer .rz-label,
.rz-footer label,
.rz-footer span {
    color: #ffffff !important;
}

/* PanelMenu — item ativo */
.rz-navigation-item-link-active.active {
    background-color: #016B8A !important;
    border-left: 3px solid #2AC6C9 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.rz-navigation-item-link-active.active .rz-navigation-item-text,
.rz-navigation-item-link-active.active .rz-icon,
.rz-navigation-item-link-active.active i,
.rz-navigation-item-link-active.active i.material-icons,
.rz-navigation-item-link-active.active span.rz-icon {
    color: #ffffff !important;
}

html, body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--brand-text);
}

h1, h2, h3, h4, h5, h6,
.loading-title,
.navbar-brand {
    font-family: 'Glacial Indifference', 'Open Sans', sans-serif;
}

a, .btn-link {
    color: var(--brand-primary);
}

.btn-primary {
    color: #fff;
    background-color: var(--brand-primary);
    border-color: var(--brand-primary-dk);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-primary-dk);
    border-color: var(--brand-primary-dk);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--brand-secondary);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ============================================================
   Tela de carregamento
   ============================================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: radial-gradient(circle at top, var(--brand-primary-lt) 0%, #c5eaf0 35%, #ffffff 100%);
    z-index: 10000;
}

.loading-card {
    width: min(420px, 100%);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 25px 50px rgba(1, 107, 138, 0.15);
    border-radius: 24px;
    padding: 2.5rem 2rem 2.25rem;
    text-align: center;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(42, 198, 201, 0.25);
}

.logo-orbit {
    position: relative;
    margin: 0 auto 1.5rem;
    width: 120px;
    height: 120px;
}

.logo-core {
    position: absolute;
    inset: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--brand-primary);
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-primary-lt) 100%);
    border-radius: 50%;
    box-shadow: inset 0 3px 8px rgba(1, 107, 138, 0.12), 0 8px 15px rgba(1, 107, 138, 0.18);
    font-family: 'Glacial Indifference', sans-serif;
}

.orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(1, 107, 138, 0.3);
    animation: orbit-spin 4.5s infinite linear;
}

.orbit-one {
    border-top-color: rgba(42, 198, 201, 0.85);
    border-right-color: rgba(42, 198, 201, 0.55);
}

.orbit-two {
    inset: 12px;
    border-color: rgba(1, 107, 138, 0.18);
    border-bottom-color: rgba(1, 107, 138, 0.6);
    animation-duration: 6s;
    animation-direction: reverse;
}

.loading-title {
    font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    font-family: 'Glacial Indifference', sans-serif;
}

.loading-message {
    color: var(--brand-primary-dk);
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

.loading-progress-container {
    width: 100%;
    height: 0.75rem;
    background: rgba(1, 107, 138, 0.1);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.75rem;
}

.loading-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: inherit;
    transition: width 0.4s ease;
    box-shadow: 0 6px 20px rgba(42, 198, 201, 0.35);
}

.loading-progress-bar.indeterminate {
    width: 35%;
    animation: progress-indeterminate 1.2s infinite ease-in-out;
}

.loading-status {
    color: var(--brand-primary);
    font-size: 0.95rem;
    display: inline-block;
}

.loading-retry {
    margin-top: 1.5rem;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(1, 107, 138, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.loading-retry:hover,
.loading-retry:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(1, 107, 138, 0.35);
}

.loading-retry:focus {
    outline: none;
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes progress-indeterminate {
    0%   { transform: translateX(-80%); }
    50%  { transform: translateX(0%); }
    100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
    .orbit,
    .loading-progress-bar {
        animation-duration: 0.01s !important;
        animation-iteration-count: 1 !important;
        transition: none;
    }
}

/* ============================================================
   Layout principal
   ============================================================ */
.main-content {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   Workspace Sidebar Collapse
   ============================================================ */
.workspace-sidebar {
    transition: width 0.25s ease, min-width 0.25s ease;
    overflow: hidden;
}

.workspace-sidebar.collapsed {
    width: 42px !important;
    min-width: 42px !important;
}

.workspace-sidebar.collapsed .workspace-sidebar-header {
    padding: 0.75rem 0 !important;
    justify-content: center !important;
}

.sidebar-toggle-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    padding: 0.2rem;
    border-radius: 4px;
    transition: background 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

.sidebar-toggle-btn:hover {
    background: rgba(1, 107, 138, 0.12);
}

.workspace-sidebar.collapsed .sidebar-toggle-btn {
    margin-left: 0;
}

.sidebar-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-active-filters__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.dashboard-active-filters__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: var(--dashboard-radius-md);
    border: 1px solid var(--dashboard-border);
    background: var(--dashboard-surface-muted);
    color: var(--dashboard-text-primary);
    font-size: 0.78rem;
    font-weight: 500;
}

.dashboard-section-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--dashboard-text-primary);
}

.dashboard-section-card__header .rz-text-h6,
.dashboard-section-card__header .rz-text-subtitle1,
.dashboard-section-card__header .rz-text-subtitle2 {
    font-weight: 700;
}

@media (max-width: 576px) {
    .main-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================================
   Padronização global de notificações
   O sistema utiliza Blazored.Toast como canal visual único
   (estilo branco com borda vermelha para erros). Suprimimos
   visualmente o popup do Radzen NotificationService para evitar
   duplicidade de mensagens em qualquer tela do sistema.
   ============================================================ */
.rz-notification,
.rz-notifications,
.rz-notifications-wrapper,
.rz-notification-item,
.rz-notification-item-wrapper,
.rz-growl,
.rz-growl-item,
.rz-growl-item-container,
.rz-toast,
.rz-toast-message,
[class*="rz-notification"],
[class*="rz-growl"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Blazored.Toast — garantir que apareça sempre acima do header e demais
   componentes (header está em z-index 1001). */
.blazored-toast-container,
.blazored-toast-container.position-topright,
.blazored-toast-container.position-topleft,
.blazored-toast-container.position-bottomright,
.blazored-toast-container.position-bottomleft,
.blazored-toast-container.position-topcenter,
.blazored-toast-container.position-bottomcenter {
    z-index: 2147483000 !important;
    position: fixed !important;
}

.blazored-toast,
.blazored-toast-info,
.blazored-toast-success,
.blazored-toast-warning,
.blazored-toast-error {
    z-index: 2147483000 !important;
}

.blazored-toast {
    width: min(420px, calc(100vw - 2rem)) !important;
    border: 1px solid #dbe4f0 !important;
    border-left: 5px solid #0f7c80 !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16) !important;
    color: #1f2937 !important;
    overflow: hidden !important;
}

.blazored-toast-message {
    white-space: pre-line !important;
    color: #334155 !important;
    line-height: 1.45 !important;
    font-size: 0.92rem !important;
}

.blazored-toast-message:first-line {
    color: #111827 !important;
    font-weight: 700 !important;
}

.blazored-toast-success {
    border-left-color: #15803d !important;
}

.blazored-toast-error {
    border-left-color: #b42318 !important;
}

.blazored-toast-warning {
    border-left-color: #c77700 !important;
}

.blazored-toast-info {
    border-left-color: #0f7c80 !important;
}

.blazored-toast-close {
    color: #64748b !important;
    opacity: 0.9 !important;
}

.validation-message,
.rz-message,
.rz-validator {
    display: block !important;
    margin-top: 0.25rem !important;
    color: #9f1239 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.form-validation-summary {
    margin: 0 0 1rem !important;
    padding: 0.75rem 0.9rem !important;
    border: 1px solid #fecdd3 !important;
    border-left: 4px solid #be123c !important;
    border-radius: 10px !important;
    background: #fff5f7 !important;
    color: #881337 !important;
    font-size: 0.9rem !important;
}

.form-validation-summary ul {
    margin: 0 !important;
    padding-left: 1.1rem !important;
}

.form-validation-summary:empty {
    display: none !important;
}

/* Fullscreen buttons used by template rich text editors */
.rz-button.template-fullscreen-button,
button.rz-button.template-fullscreen-button {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1e3a8a !important;
    opacity: 1 !important;
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.06) !important;
    min-width: 34px;
}

.rz-button.template-fullscreen-button .rzi,
.rz-button.template-fullscreen-button .rz-button-icon,
button.rz-button.template-fullscreen-button .rzi,
button.rz-button.template-fullscreen-button .rz-button-icon {
    color: #1e3a8a !important;
}

.rz-button.template-fullscreen-button:hover,
.rz-button.template-fullscreen-button.rz-state-hover,
button.rz-button.template-fullscreen-button:hover,
button.rz-button.template-fullscreen-button.rz-state-hover {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    color: #1e40af !important;
}

.rz-button.template-fullscreen-button:hover .rzi,
.rz-button.template-fullscreen-button:hover .rz-button-icon,
.rz-button.template-fullscreen-button.rz-state-hover .rzi,
.rz-button.template-fullscreen-button.rz-state-hover .rz-button-icon,
button.rz-button.template-fullscreen-button:hover .rzi,
button.rz-button.template-fullscreen-button:hover .rz-button-icon,
button.rz-button.template-fullscreen-button.rz-state-hover .rzi,
button.rz-button.template-fullscreen-button.rz-state-hover .rz-button-icon {
    color: #1e40af !important;
}

.rz-button.template-fullscreen-button:focus-visible,
button.rz-button.template-fullscreen-button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.rz-button.template-fullscreen-button.rz-state-disabled,
button.rz-button.template-fullscreen-button.rz-state-disabled {
    opacity: 0.75 !important;
}


/* Cards de ranking dos relatorios ("Principais agrupamentos").
   Global e nao escopado de proposito: varias paginas montam o <ol> via
   RenderTreeBuilder, e elementos criados em C# nao recebem o atributo de
   escopo do CSS isolation, entao regras em *.razor.css nao casam com eles. */
.reports-ranking-card {
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    background: #fbfcfe;
}

.reports-ranking-card h3 {
    margin: 0 0 0.75rem;
    color: #172033;
    font-size: 0.95rem;
    font-weight: 800;
}

.reports-ranking-card ol,
.reports-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reports-ranking-card li,
.reports-ranking-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #e7edf4;
}

.reports-ranking-card li:last-child,
.reports-ranking-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.reports-ranking-card li span,
.reports-ranking-list li span {
    min-width: 0;
    overflow: hidden;
    color: #374151;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reports-ranking-card li strong,
.reports-ranking-list li strong {
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #e9f3f5;
    color: #20556a;
    font-size: 0.8rem;
}
