/* --- DESIGN TOKENS & VARIABLES --- */
:root {
    /* Identidade Boreal Aero */
    --primary: #003B73;
    /* Azul Boreal Profundo */
    --primary-dark: #002a52;
    --primary-light: #e6f0fa;

    --secondary: #00A8E8;
    /* Azul Céu / Destaque */
    --accent: #FFC107;
    /* Alertas */

    /* Status */
    --success: #2E7D32;
    /* Promoção/Meta */
    --warning: #ED6C02;
    /* Pendência */
    --danger: #D32F2F;
    /* Risco/Queda */
    --info: #0288D1;
    /* Informativo */
    --purple: #7B1FA2;
    /* Ação de RH (Pares) */
    --teal: #00897B;
    /* Experiência 90d */
    --dark: #1e293b;
    /* Super Admin Theme */

    /* Neutros */
    --bg-body: #F4F7FA;
    /* Cinza azulado bem claro */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    /* UI Elements */
    --sidebar-width: 220px;
    --sidebar-width-collapsed: 60px;
    --header-height: 70px;
    --card-radius: 12px;
    --transition: all 0.3s ease;
}

/* Quando body tem .sidebar-collapsed, o --sidebar-width vira o estreito.
   Como `.main-content { margin-left: var(--sidebar-width) }`, ele acompanha automaticamente. */
body.sidebar-collapsed {
    --sidebar-width: var(--sidebar-width-collapsed);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- LOGIN SCREEN --- */
#login-view {
    height: 100vh;
    display: flex;
    width: 100%;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #001f3f 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
}

/* LOGO CUSTOMIZATION */
.login-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    /* Sombra para destacar no fundo escuro */
}

/* Efeito abstrato de turbina/aero */
.login-left::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 60%);
    top: -50%;
    left: -50%;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.login-right {
    flex: 1;
    max-width: 600px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

/* --- APP LAYOUT (SIDEBAR & MAIN) --- */
/* Note: #app-view style removed as it handled visibility in the prototype. In Blazor we control rendering. */

.sidebar {
    width: var(--sidebar-width);
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    /* Alterado para flex */
    flex-direction: column;
    /* Coluna para empurrar footer */
    padding-top: 1.5rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

.sidebar-brand {
    padding: 0 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    /* Impede encolhimento */
}

/* Tema Escuro para Sidebar do Super Admin */
.sidebar.super-admin-theme {
    background-color: #0f172a;
    border-right: 1px solid #1e293b;
}

.sidebar.super-admin-theme .sidebar-brand {
    color: #ffffff;
}

.sidebar.super-admin-theme .nav-link {
    color: #94a3b8;
}

.sidebar.super-admin-theme .nav-link:hover,
.sidebar.super-admin-theme .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-left-color: var(--accent);
}

.sidebar.super-admin-theme .sidebar-footer {
    background-color: #0f172a;
    border-top: 1px solid #1e293b;
    color: white;
}

.sidebar.super-admin-theme #user-name {
    color: white;
}

/* Section labels (PRINCIPAL, GESTAO SAAS) and footer role text need
   higher contrast on the dark theme. Bootstrap text-muted (~#6c757d) is
   nearly invisible on #0f172a. Override to a slate-300 tone. */
.sidebar.super-admin-theme .text-muted {
    color: #94a3b8 !important;
}

.sidebar.super-admin-theme .sidebar-footer .text-danger {
    color: #f87171 !important;  /* lighter red for visibility */
}

/* Container dos links para ocupar espaço flexível */
.sidebar-menu-container {
    flex-grow: 1;
    overflow-y: auto;
    /* Scroll apenas nos links se necessário */
    margin-bottom: 1rem;
}

/* Custom Scrollbar para Sidebar */
.sidebar-menu-container::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu-container::-webkit-scrollbar-thumb {
    background-color: #e2e8f0;
    border-radius: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    /* Add text-decoration none for anchor tags */
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
    border-left-color: var(--primary);
}

.nav-link i {
    width: 24px;
    margin-right: 10px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: white;
    /* Garante fundo sólido */
    flex-shrink: 0;
    /* Impede encolhimento */
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
}

/* --- STYLES PARA BARRA SUPERIOR (HEADER) --- */
.header-bar {
    background-color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: var(--card-radius);
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* --- COMPONENTS --- */
.card-custom {
    background: white;
    border: none;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    height: 100%;
}


.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.progress-thick {
    height: 20px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.score-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

/* Tabela Customizada */
.table-custom th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background-color: #F8FAFC;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
}

.table-custom td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table-custom tr:hover td {
    background-color: var(--primary-light);
}

/* Timeline Vertical Customizada */
.timeline-vertical {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -27px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
}

.timeline-dot.success {
    border-color: var(--success);
}

.timeline-dot.warning {
    border-color: var(--warning);
}

.timeline-dot.danger {
    border-color: var(--danger);
}

/* Badges e Status */
.badge-soft-success {
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--success);
}

.badge-soft-warning {
    background-color: rgba(237, 108, 2, 0.1);
    color: var(--warning);
}

.badge-soft-danger {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--danger);
}

.badge-soft-primary {
    background-color: rgba(0, 59, 115, 0.1);
    color: var(--primary);
}

.badge-soft-secondary {
    background-color: #eff2f5;
    color: var(--text-muted);
}

.badge-soft-purple {
    background-color: rgba(123, 31, 162, 0.1);
    color: var(--purple);
}

.badge-soft-teal {
    background-color: rgba(0, 137, 123, 0.1);
    color: var(--teal);
}

.badge-soft-dark {
    background-color: rgba(30, 41, 59, 0.1);
    color: var(--dark);
}

/* Status Dot para Avaliações */
.status-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-dot.success {
    background-color: var(--success);
}

.status-dot.warning {
    background-color: var(--warning);
}

.status-dot.danger {
    background-color: var(--danger);
}

.status-dot.neutral {
    background-color: #e0e0e0;
}

/* Forms de Visualização (Readonly) */
.form-control-plaintext-custom {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-main);
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
}

/* --- STYLES PARA O FORMULÁRIO DE AVALIAÇÃO --- */
.eval-option-input {
    display: none;
    /* Esconde o radio real */
}

.eval-option-label {
    display: block;
    padding: 1rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.eval-option-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.eval-option-text {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

/* Cores de Seleção Baseadas no Valor */
/* Péssimo (1) */
.eval-option-input[value="1"]:checked+.eval-option-label {
    background-color: #ffebee;
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: 0 0 0 1px var(--danger);
}

/* Ruim (2) */
.eval-option-input[value="2"]:checked+.eval-option-label {
    background-color: #fff3e0;
    border-color: var(--warning);
    color: var(--warning);
    box-shadow: 0 0 0 1px var(--warning);
}

/* Regular (3) */
.eval-option-input[value="3"]:checked+.eval-option-label {
    background-color: #fff8e1;
    border-color: #FFC107;
    color: #bfa004;
    /* Darker yellow */
    box-shadow: 0 0 0 1px #FFC107;
}

/* Bom (4) */
.eval-option-input[value="4"]:checked+.eval-option-label {
    background-color: #e0f2f1;
    border-color: var(--teal);
    color: var(--teal);
    box-shadow: 0 0 0 1px var(--teal);
}

/* Muito Bom (5) */
.eval-option-input[value="5"]:checked+.eval-option-label {
    background-color: #e8f5e9;
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 0 0 1px var(--success);
}

/* Flow Steps Style */
.flow-steps {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.flow-step {
    position: relative;
}

.flow-step.done {
    color: var(--success);
    font-weight: 500;
}

.flow-step.current {
    color: var(--warning);
    font-weight: 700;
    background-color: #fff3e0;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(237, 108, 2, 0.2);
}

.flow-step.future {
    opacity: 0.5;
}

.flow-arrow {
    margin: 0 6px;
    font-size: 0.65rem;
    color: #cbd5e1;
}

/* Config Cards Hover */
.hover-lift {
    transition: transform 0.2s;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* --- MASONRY LAYOUT (ALVENARIA) PARA CONFIGURAÇÕES --- */
.masonry-container {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 768px) {
    .masonry-container {
        column-count: 2;
    }
}

@media (min-width: 1200px) {
    .masonry-container {
        column-count: 3;
    }
}

.masonry-item {
    display: inline-block;
    /* Necessário para não quebrar no meio */
    width: 100%;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    /* Evita quebra de página/coluna no print */
}

/* Demo Toggle */
.demo-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--text-main);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 0.9rem;
}

/* Responsividade para Mobile (Básico) */
@media (max-width: 768px) {
    .login-left {
        display: none;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

/* Blazor Overlay (optional if needed) */
#components-reconnect-modal {
    display: none !important;
}

/* --- RIGHT SIDE DRAWER --- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    /* Higher than sidebar (1000) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.drawer-content {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2010;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.drawer-overlay.show .drawer-content {
    right: 0;
}

.drawer-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

@media (max-width: 500px) {
    .drawer-content {
        width: 100%;
        right: -100%;
    }
}

/* =====================================================================
   DENSIDADE COMPACTA — overrides para reduzir whitespace e font-sizes
   ---------------------------------------------------------------------
   A maior parte do Bootstrap usa `rem` (relativo a `html font-size`),
   então reduzir a base já reduz proporcionalmente padding/margin/font.
   Em cima disso, ajustes cirúrgicos nos offenders visíveis (tabelas,
   sidebar, headings, header-bar).
   ===================================================================== */

html {
    font-size: 14px;
    /* Bootstrap base é 16px. -12.5% global. */
}

/* Headings — mais discretos, mantendo hierarquia */
h1,
.h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

h2,
.h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

h3,
.h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

h4,
.h4 {
    font-size: 1.05rem;
    font-weight: 600;
}

h5,
.h5 {
    font-size: 0.95rem;
    font-weight: 600;
}

h6,
.h6 {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Tabelas — célula compacta (era 1rem todos os lados) */
.table-custom th {
    padding: 0.55rem 0.75rem;
    font-size: 0.72rem;
    /* Pequeno, uppercase, espaçado */
    letter-spacing: 0.04em;
}

.table-custom td {
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
}

/* Sidebar */
.sidebar-brand {
    font-size: 1rem;
    padding: 0 1.25rem 1rem;
}

.sidebar-menu-container .nav-link {
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
}

.sidebar-menu-container .nav-link i {
    width: 20px;
    margin-right: 8px;
    font-size: 0.95rem;
}

.sidebar-menu-container p.text-uppercase {
    font-size: 0.7rem !important;
    letter-spacing: 0.06em;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
}

/* Cards e header-bar */
.header-bar {
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
}

.card-custom .p-4,
.card-custom.p-4 {
    padding: 1rem !important;
}

/* Main content area */
.main-content {
    padding: 1.5rem;
}

/* Score / stat cards (números grandes nos dashboards) */
.score-display {
    font-size: 2.25rem;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

/* Forms — labels + inputs mais compactos */
.form-control,
.form-select {
    font-size: 0.875rem;
    padding: 0.4rem 0.65rem;
}

.form-control-sm,
.form-select-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.form-label {
    font-size: 0.825rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* Botões */
.btn {
    font-size: 0.875rem;
    padding: 0.4rem 0.85rem;
}

.btn-sm {
    font-size: 0.78rem;
    padding: 0.25rem 0.5rem;
}

/* Badges — mais compactos */
.badge {
    font-size: 0.72rem;
    padding: 0.32em 0.6em;
    font-weight: 500;
}

/* Avatar circles em listas (24px ao invés de 32px) */
.table-custom .rounded-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.72rem !important;
}

/* Page subtitle (data, descrição abaixo do h2) */
h2 + small,
h2 + .small,
h2 + p.text-muted {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Spacing utilities — torna mb-4 / mt-4 menos pesado em contextos densos */
.dense-section .mb-4 {
    margin-bottom: 1rem !important;
}

.dense-section .mt-4 {
    margin-top: 1rem !important;
}

/* Pagination footer da DataTable — menos espaçoso */
.pagination .page-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

/* =====================================================================
   SIDEBAR COLAPSÁVEL
   ---------------------------------------------------------------------
   Estado expandido: usa --sidebar-width (220px) + texto visível.
   Estado colapsado: largura --sidebar-width-collapsed (60px), texto oculto,
   ícones centrados. Toggle via classe `.sidebar-collapsed` no <body> (set
   pelo Sidebar.razor com JSInterop), que reescreve o --sidebar-width.
   ===================================================================== */

.sidebar {
    width: var(--sidebar-width);
    transition: width 0.25s ease;
    overflow-x: hidden;
}

.main-content {
    transition: margin-left 0.25s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.sidebar-brand .brand-text {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

/* Botão toggle */
.sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* === Estado colapsado === */

body.sidebar-collapsed .sidebar .brand-text,
body.sidebar-collapsed .sidebar .nav-text,
body.sidebar-collapsed .sidebar-menu-container > p.text-uppercase,
body.sidebar-collapsed .sidebar-footer .flex-grow-1,
body.sidebar-collapsed .sidebar-footer > div > a {
    display: none !important;
}

body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding: 0.75rem 0.25rem;
}

body.sidebar-collapsed .sidebar-toggle {
    margin-left: 0;
}

body.sidebar-collapsed .sidebar-menu-container .nav-link {
    justify-content: center;
    padding: 0.6rem 0;
    position: relative;
}

body.sidebar-collapsed .sidebar-menu-container .nav-link i {
    width: auto;
    margin-right: 0;
    font-size: 1.05rem;
}

/* Badge no estado colapsado: vira um pontinho no canto sup-direito do ícone */
body.sidebar-collapsed .sidebar-menu-container .nav-link .badge {
    position: absolute;
    top: 4px;
    right: 12px;
    font-size: 0.55rem;
    padding: 0.15em 0.35em;
}

/* Tooltip no hover (mostra label do item quando colapsado) */
body.sidebar-collapsed .sidebar-menu-container .nav-link[data-label]:hover::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.75rem;
    z-index: 1100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.sidebar-collapsed .sidebar-footer {
    padding: 0.75rem 0.25rem;
}

body.sidebar-collapsed .sidebar-footer > div {
    justify-content: center;
}

body.sidebar-collapsed .sidebar-footer > div > div:first-child {
    margin-right: 0 !important;
}

/* Avaliacoes - lista operacional */
.ava-filter-panel,
.ava-table-shell,
.ava-detail-hero,
.ava-matrix-shell,
.ava-comments {
    border-color: #e2e8f0 !important;
    border-radius: 8px;
}

.ava-table-shell {
    overflow: hidden;
}

.ava-table {
    min-width: 1180px;
}

.ava-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .9rem .75rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.ava-table tbody td {
    border-color: #eef2f7;
    padding: .9rem .75rem;
    vertical-align: middle;
}

.ava-type-pill,
.ava-status-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    min-height: 1.55rem;
    padding: .35rem .65rem;
    white-space: nowrap;
}

.ava-type-pill {
    background: #eef2f7;
    color: #475569;
}

.ava-status-success {
    background: #dcfce7;
    color: #047857;
}

.ava-status-primary {
    background: #dbeafe;
    color: #2563eb;
}

.ava-status-warning {
    background: #fef3c7;
    color: #b45309;
}

.ava-status-danger {
    background: #fee2e2;
    color: #dc2626;
}

.ava-status-muted {
    background: #f1f5f9;
    color: #64748b;
}

.ava-reviewers {
    align-items: center;
    display: inline-flex;
    gap: 0;
    min-width: 132px;
}

.ava-reviewer-chip {
    align-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 800;
    height: 1.65rem;
    justify-content: center;
    margin-left: -.28rem;
    width: 1.65rem;
}

.ava-reviewer-chip:first-child {
    margin-left: 0;
}

.ava-reviewer-success {
    background: #0f9f8f;
    color: #fff;
}

.ava-reviewer-warning {
    background: #f59e0b;
    color: #fff;
}

.ava-reviewer-danger {
    background: #ef4444;
    color: #fff;
}

.ava-reviewer-muted {
    background: #94a3b8;
    color: #fff;
}

.ava-reviewer-empty {
    background: #fff;
    border-color: #cbd5e1;
    border-style: dashed;
    color: #94a3b8;
}

.ava-reviewers-count {
    color: #64748b;
    font-size: .86rem;
    font-weight: 700;
    margin-left: .55rem;
    white-space: nowrap;
}

.ava-no-cycle {
    color: #94a3b8;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.ava-action-btn {
    align-items: center;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    margin-left: .25rem;
    padding: 0;
    width: 2.25rem;
}

.ava-action-text {
    min-width: 126px;
}

.ava-actions-cell {
    position: relative;
}

.ava-menu-trigger {
    align-items: center;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    width: 2.25rem;
}

.ava-actions-menu {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .14);
    min-width: 180px;
    padding: .35rem;
    position: absolute;
    right: .75rem;
    top: 3rem;
    z-index: 30;
}

.ava-menu-item {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #0f172a;
    display: flex;
    font-size: .88rem;
    font-weight: 700;
    gap: .6rem;
    padding: .55rem .65rem;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.ava-menu-item:hover,
.ava-menu-item:focus {
    background: #f1f5f9;
    color: #0f172a;
}

.ava-menu-item i {
    color: #2563eb;
    text-align: center;
    width: 1rem;
}

/* Avaliacoes - detalhe historico */
.ava-detail-hero {
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.ava-avatar {
    align-items: center;
    background: #2563eb;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 800;
    height: 3.2rem;
    justify-content: center;
    width: 3.2rem;
}

.ava-detail-score {
    color: #1d4ed8;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
}

.ava-evaluator-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ava-evaluator-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    border-top-width: 3px;
    padding: .9rem;
}

.ava-evaluator-blue {
    border-top-color: #2563eb;
}

.ava-evaluator-cyan {
    border-top-color: #0891b2;
}

.ava-evaluator-teal {
    border-top-color: #0f9f8f;
}

.ava-evaluator-purple {
    border-top-color: #7c3aed;
}

.ava-evaluator-role,
.ava-matrix-role {
    color: #2563eb;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ava-matrix-shell,
.ava-comments {
    overflow: hidden;
    padding: 1rem;
}

.ava-matrix-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.ava-matrix thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: .76rem;
    font-weight: 700;
    padding: .85rem;
}

.ava-matrix tbody td {
    border-color: #eef2f7;
    padding: .85rem;
}

.ava-score-chip {
    align-items: center;
    background: #dcfce7;
    border-radius: 8px;
    color: #047857;
    display: inline-flex;
    font-weight: 800;
    height: 2.35rem;
    justify-content: center;
    min-width: 3.25rem;
}

.ava-score-empty {
    color: #94a3b8;
    font-weight: 700;
}

.ava-comment-item {
    border-left: 3px solid #2563eb;
    padding: .25rem 0 .75rem .75rem;
}

.ava-comment-item + .ava-comment-item {
    margin-top: .75rem;
}

.ava-history-list {
    display: grid;
    gap: .75rem;
}

.ava-history-card {
    align-items: center;
    border-color: #e2e8f0 !important;
    border-radius: 8px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 1rem;
}

.ava-history-type {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.ava-history-score {
    text-align: right;
}

.ava-history-score span {
    color: #1d4ed8;
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.ava-history-score small {
    color: #64748b;
    font-weight: 700;
}

.ava-history-actions {
    display: flex;
    gap: .5rem;
}

.ava-history-empty {
    align-items: center;
    border-color: #e2e8f0 !important;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.ava-history-empty i {
    color: #94a3b8;
    font-size: 2rem;
}

@media (max-width: 991.98px) {
    .ava-evaluator-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ava-detail-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .ava-evaluator-grid {
        grid-template-columns: 1fr;
    }

    .ava-history-card {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .ava-history-score {
        text-align: left;
    }

    .ava-history-actions {
        flex-wrap: wrap;
    }
}
