/* ==========================================================
   VINCII PEOPLES — Design System
   Vincii Soluções
   Inspirado em editorial premium / Shopify Editions
   ========================================================== */

/* ========== BRIDGE: Aliases legacy → tokens Codex (carregado após codex.css) ========== */
:root {
    /* ---- brand ---- */
    --routes-brand:        var(--brand);
    --routes-brand-strong: var(--brand-deep);
    --routes-accent:       var(--brand-bright);
    --routes-foreground:   var(--ink);
    --routes-muted:        var(--muted);
    --routes-page-edge:    #02100d;
    --routes-danger:       var(--danger);
    --routes-info:         var(--brand-deep);
    --routes-panel:        var(--panel);
    --routes-background:   var(--bg);
    --routes-line:         var(--line);

    --tiffany:        var(--brand);
    --tiffany-bright: var(--brand-bright);
    --tiffany-soft:   rgba(0, 191, 166, 0.12);
    --tiffany-glow:   var(--brand-glow);

    --green-dark:   var(--brand-deep);
    --green-darker: #02100d;
    --green-mid:    #007f73;

    --white:     var(--panel);
    --off-white: var(--panel-2);
    --paper:     var(--bg-canvas);
    --line-soft: var(--line-faint);

    --text:       var(--ink);
    --text-muted: var(--muted);
    --text-soft:  var(--faint);
    --black:      #02100d;

    /* ---- compat ---- */
    --color-dark-green:    var(--brand-deep);
    --color-tiffany-green: var(--brand);
    --color-bg:            var(--bg-canvas);
    --color-text:          var(--ink);
    --color-text-muted:    var(--muted);
    --color-border:        var(--line);
    --glass-bg:            var(--panel);
    --glass-border:        var(--line-strong);

    /* ---- font (same names, just ensure fallback) ---- */
    --font-sans: var(--font-display);

    /* ---- radius ---- */
    --radius-sm:     var(--r-sm);
    --radius:        var(--r);
    --radius-lg:     var(--r-lg);
    --radius-xl:     22px;
    --border-radius: var(--r);

    /* ---- shadows ---- */
    --shadow-xs:        var(--shadow-sm);
    --shadow-soft:      var(--shadow);
    --shadow-md:        var(--shadow);
    --shadow-hover:     var(--shadow-lg);
    --shadow-tiffany:   var(--shadow-brand);
    --shadow-tiffany-lg: var(--shadow-brand);

    --transition: all 0.4s var(--ease);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--tiffany); color: var(--white); }

/* codex.css já define body; só garantimos overflow-x */
html { overflow-x: hidden; }
body { overflow-x: hidden; overflow-y: auto; }

/* ============================
   TIPOGRAFIA EDITORIAL
   ============================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.08;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; }

.serif { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
/* Destaque tipográfico nos títulos hero — bold confiante, não serifado */
h1.serif, h2.serif, #dashboard-greeting {
    font-weight: 800;
    letter-spacing: -0.025em;
}
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; letter-spacing: -0.02em; }

/* ============================
   ÍCONES TIFFANY (.vi) — substituem emojis, cor de destaque única
   ============================ */
.vi {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.14em;
    fill: none;
    stroke: var(--brand);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
/* Herdar a cor do contexto quando desejado (ex.: dentro de botão colorido) */
.vi.vi-cur { stroke: currentColor; }
/* Leve folga quando o ícone antecede texto num botão/link */
.btn .vi, button .vi, a .vi, label .vi, h1 .vi, h2 .vi, h3 .vi, h4 .vi { margin-right: 0.15em; }
.vi:only-child { margin-right: 0; }
/* Peso de traço um pouco menor em ícones grandes */
.vi-lg { width: 1.3em; height: 1.3em; stroke-width: 1.8; }
/* Quadradinho de status — cor semântica (não-tiffany), sem cápsula */
.stat-sq {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 3px;
    vertical-align: -0.05em;
    flex-shrink: 0;
}

p { color: var(--text); line-height: 1.55; }
a { color: var(--tiffany); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-dark); }

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.86rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================
   PAINÉIS
   ============================ */
.glass-panel {
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--t), box-shadow var(--t);
}
.glass-panel:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }

/* ============================
   BOTÕES — base
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1.2rem;
    border-radius: var(--r-sm);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background var(--t), border-color var(--t), color var(--t);
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    user-select: none;
    text-decoration: none;
}
.btn:disabled, .btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none !important;
}
.btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Primary */
.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: transparent;
}
.btn-primary:hover:not(:disabled) {
    background: var(--brand-hover);
    color: #fff;
}

/* Secondary — branco com borda */
.btn-secondary {
    background: var(--panel);
    color: var(--ink);
    border-color: var(--line);
    font-weight: 500;
}
.btn-secondary:hover:not(:disabled) {
    background: var(--panel-2);
    border-color: var(--line-strong);
    color: var(--ink);
}

/* Outline — borda visível, fundo transparente */
.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
    font-weight: 500;
}
.btn-outline:hover:not(:disabled) {
    background: var(--panel-2);
    border-color: var(--line-strong);
    color: var(--ink);
}

/* Tiffany — CTA principal (alias visual do primary) */
.btn-tiffany {
    background: var(--brand);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    letter-spacing: 0;
}
.btn-tiffany:hover:not(:disabled) {
    background: var(--brand-hover);
    color: #fff;
}

/* Ghost / Text — discreto */
.btn-ghost, .btn-text {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
    padding: 0.55rem 0.9rem;
    font-weight: 400;
}
.btn-text:hover:not(:disabled), .btn-ghost:hover:not(:disabled) {
    color: var(--ink);
    background: var(--panel-2);
    border-color: transparent;
}

/* Danger — vermelho */
.btn-danger {
    background: var(--danger);
    color: #fff;
    border: 1px solid var(--danger);
    border-radius: var(--r-sm);
    padding: 0.7rem 1.35rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.9rem;
    user-select: none;
}
.btn-danger:hover:not(:disabled) { background: color-mix(in oklab, var(--danger) 82%, black); border-color: color-mix(in oklab, var(--danger) 82%, black); }

/* Tamanhos */
.btn-lg {
    font-size: 1rem;
    padding: 0.9rem 2rem;
    font-weight: 600;
}
.btn-sm {
    font-size: 0.8rem;
    padding: 0.42rem 0.9rem;
    border-radius: var(--r-sm);
    font-weight: 500;
    gap: 0.3rem;
}
.btn-xs {
    font-size: 0.72rem;
    padding: 0.28rem 0.65rem;
    border-radius: var(--r-sm);
    gap: 0.25rem;
}

/* ============================
   FORMS
   ============================ */
.input-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.input-group label {
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-muted);
}

input, select, textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    color: var(--ink);
    font-size: 0.9rem;
    font-family: var(--font-display);
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}
input::placeholder { color: var(--faint); }
textarea::placeholder { color: var(--faint); }

/* Reset global para checkbox e radio — o regra acima não deve afetar esses tipos */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    height: auto;
    min-width: unset;
    padding: 0;
    background: revert;
    border: revert;
    border-radius: revert;
    box-shadow: none;
    transition: none;
    font-size: revert;
    cursor: pointer;
    flex-shrink: 0;
}
input[type="checkbox"]:hover,
input[type="radio"]:hover { border-color: revert; }

.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.full-width { grid-column: span 2; }
@media (max-width: 768px) {
    .grid-form { grid-template-columns: 1fr; gap: 1rem; }
    .full-width { grid-column: span 1; }
}

/* ============================
   VIEWS / SPA
   ============================ */
.view {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.5s var(--ease) forwards;
}
.view.active { display: flex; }
.hidden { display: none !important; }
.view.hidden { display: none !important; }

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

/* ==========================================================
   LOGIN — TELA CINEMÁTICA DA VINCI
   ========================================================== */
#login-view, #candidate-login-view, #employee-login-view, #employee-ponto-view {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

#login-view {
    background: var(--bg);
    overflow: hidden;
    position: relative;
}

.login-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
}

/* Formulário — lado esquerdo, limpo */
.login-side {
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2.5rem 1.5rem;
    position: relative;
}

.login-card-new {
    width: 100%;
    max-width: 360px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    text-align: center;
}
.login-logo-full {
    height: 112px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 2.4rem;
    display: block;
}

/* Painel de marca — lado direito, arte pronta com identidade Vincii */
.login-brand-panel {
    background: #145c65;
    overflow: hidden;
}
.login-brand-panel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
}

.login-card-new h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.login-card-new .subtitle {
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: 0.92rem;
    line-height: 1.5;
}
.login-card-new form { text-align: left; }
/* Botão de entrar — casa com a cor do painel de marca ao lado */
#admin-login-form button[type="submit"] {
    background: #145c65 !important;
    border-color: #145c65 !important;
}
#admin-login-form button[type="submit"]:hover {
    background: #0f4750 !important;
    border-color: #0f4750 !important;
}

.login-divider {
    margin: 1.75rem 0;
    height: 1px;
    background: var(--line);
}

.alt-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.alt-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--muted);
    font-size: 0.86rem;
    cursor: pointer;
    transition: color var(--t);
}
.alt-link:hover { color: var(--brand-strong); }
.alt-links-sep { color: var(--faint); font-size: 0.86rem; }

.login-footer-meta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--faint);
}
.login-footer-meta a { color: var(--muted); }
.login-footer-meta a:hover { color: var(--ink); }

/* Login responsivo */
@media (max-width: 960px) {
    .login-stage { grid-template-columns: 1fr; }
    .login-brand-panel { display: none; }
    .login-side { padding: 2rem 1.5rem; }
}

/* Login cards das outras telas (candidato, colaborador) */
.login-card {
    width: 100%;
    max-width: 460px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    text-align: center;
}
.logo-area { margin-bottom: 1.5rem; }
.logo-icon {
    width: 60px;
    height: 60px;
    background: var(--ink);
    color: var(--white);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}
.logo-icon.tiffany {
    background: var(--tiffany);
    color: var(--white);
    box-shadow: var(--shadow-tiffany);
}
.logo-icon.small { width: 52px; height: 52px; font-size: 1.2rem; border-radius: 12px; margin-bottom: 0; }
.sidebar-logo-img { background: transparent !important; padding: 4px; box-shadow: none !important; }
.sidebar-logo-img img { width: 100%; height: 100%; object-fit: contain; }

.subtitle { color: var(--text-muted); margin-bottom: 1.75rem; font-size: 0.95rem; }
.divider {
    margin: 1.5rem 0;
    color: var(--text-soft);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    position: relative;
}
.divider::before, .divider::after {
    content: ''; position: absolute; top: 50%;
    width: 40%; height: 1px; background: var(--line);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.alert {
    padding: 0.95rem 1.1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-align: left;
    border: 1px solid var(--tiffany-soft);
    background: var(--tiffany-soft);
    color: var(--green-dark);
}
#candidate-login-view, #employee-login-view, #employee-ponto-view {
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--paper);
}

/* ==========================================================
   DASHBOARD — Layout
   ========================================================== */
.layout-dashboard {
    display: grid !important;
    grid-template-columns: 236px 1fr;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--bg);
}

.sidebar {
    width: 260px;
    flex: 0 0 260px;
    background: var(--green-darker);
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(111, 255, 234, 0.45) transparent;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(111, 255, 234, 0.34);
    border-radius: 999px;
}

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

.layout-dashboard.sidebar-collapsed .sidebar {
    width: 0;
    flex-basis: 0;
    border-right-color: transparent;
}

.layout-dashboard.sidebar-collapsed .sidebar > * {
    opacity: 0;
    pointer-events: none;
}

.sidebar-toggle {
    position: absolute;
    top: 22px;
    left: 244px;
    width: 34px;
    height: 44px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(111, 255, 234, 0.28);
    border-radius: 0 14px 14px 0;
    background: rgba(0, 72, 63, 0.96);
    color: #ffffff !important;
    box-shadow: 8px 10px 24px rgba(2, 16, 13, 0.14);
    cursor: pointer;
    transition: var(--transition);
    z-index: 120;
}

.sidebar-toggle:hover {
    background: var(--routes-brand);
    border-color: var(--routes-brand);
    transform: translateX(2px);
}

.sidebar-toggle-icon,
.sidebar-toggle-text {
    color: #ffffff !important;
}

.sidebar-toggle-icon {
    transition: transform 0.25s var(--ease);
}

.layout-dashboard.sidebar-collapsed .sidebar-toggle-icon {
    transform: rotate(180deg);
}

.layout-dashboard.sidebar-collapsed .sidebar-toggle {
    left: 0;
    border-radius: 0 14px 14px 0;
}

.sidebar-header {
    padding: 1.75rem 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-header .logo-icon.small {
    background: var(--tiffany);
    color: var(--white);
    box-shadow: var(--shadow-tiffany);
    font-family: var(--font-display);
}
.sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.sidebar-brand strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
    letter-spacing: -0.01em;
    font-weight: 500;
}
.sidebar-brand span {
    font-family: var(--font-display);
    font-size: 0.78rem;
    color: var(--tiffany-bright);
    font-style: italic;
    letter-spacing: 0;
    text-transform: none;
}

.sidebar-section-label {
    padding: 1.4rem 1.25rem 0.35rem;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    padding: 0.15rem 0.75rem;
}
.nav-links li a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.85rem;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}
.nav-links li a:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.95);
}
.nav-links li a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.15);
    font-weight: 600;
}
.nav-links li a::before { display: none; }

.nav-icon {
    width: 22px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.15s;
}
.nav-links li a:hover .nav-icon,
.nav-links li a.active .nav-icon { opacity: 1; }

.sidebar-footer {
    margin-top: auto;
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-footer .btn-text {
    width: 100%;
    justify-content: flex-start;
    padding: 0.7rem 0.95rem;
    color: rgba(255,255,255,0.7);
    font-family: var(--font-display);
    font-size: 0.95rem;
}
.sidebar-footer .btn-text:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.main-content {
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    background: var(--bg-canvas);
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

/* codex.css define .topbar; só ajustes extras */
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Rail footer — texto do usuário legível em ambos os temas */
.rail-user { color: var(--ink); background: none; border: none; width: 100%; text-align: left; }
.rail-user strong { color: var(--ink); font-size: 0.82rem; font-weight: 600; }
.rail-user span { color: var(--muted); font-size: 0.68rem; }
[data-theme="dark"] .rail-user { color: var(--ink) !important; }
[data-theme="dark"] .rail-user strong { color: var(--ink) !important; }
[data-theme="dark"] .rail-user span { color: var(--muted) !important; }

.user-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 0.95rem 0.4rem 0.4rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--white);
    font-size: 0.92rem;
    transition: var(--transition);
}
.user-profile-button {
    appearance: none;
    cursor: pointer;
}
.user-profile:hover { border-color: var(--tiffany); background: rgba(255,255,255,0.12); }
.user-profile::before {
    content: 'A';
    width: 30px;
    height: 30px;
    background: var(--tiffany);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.user-profile.has-photo::before {
    content: '';
    background-image: var(--profile-photo);
    background-size: cover;
    background-position: center;
}

.mobile-only { display: none; background: none; border: none; color: var(--ink); font-size: 1.4rem; cursor: pointer; }

.content-wrapper {
    padding: 2.5rem 2.5rem 4rem;
    width: 100%;
    box-sizing: border-box;
}

.section-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.section-header > div { flex: 1; min-width: 280px; }
.section-header .eyebrow { margin-bottom: 0.5rem; display: block; color: var(--brand); }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 0.5rem; color: var(--ink); }
.section-header p { color: var(--muted); font-size: 1rem; max-width: 60ch; }
.main-content .text-muted { color: var(--muted); }

/* ============================
   KPI CARDS (Editorial)
   ============================ */
.kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1px !important;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem !important;
}
.kpi-card {
    background: var(--white);
    border: none !important;
    border-radius: 0 !important;
    padding: 1.75rem !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}
.kpi-card:hover {
    background: var(--off-white) !important;
    box-shadow: none !important;
}
.kpi-card h3 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin: 0 0 0.25rem;
}
.kpi-card p {
    font-family: var(--font-display) !important;
    font-size: 3rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: var(--ink) !important;
    letter-spacing: -0.03em !important;
    font-variation-settings: "opsz" 144 !important;
}
.kpi-card small {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted) !important;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* ============================
   PERFIL COMPORTAMENTAL (DISC) — tela inicial
   ============================ */
.dash-disc-head { margin-bottom: 1rem; }
.dash-disc-head .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}
.dash-disc-head h3 { font-size: 1.5rem; color: var(--ink); margin: 0 0 0.4rem; }
.dash-disc-sub { color: var(--muted); font-size: 0.92rem; max-width: 54ch; }
.dash-disc-sub strong { color: var(--ink); font-weight: 700; }

.dash-disc-panel {
    display: grid;
    grid-template-columns: minmax(200px, 0.85fr) minmax(280px, 1.15fr);
    gap: 2rem;
    align-items: center;
}
.dash-disc-ring-col { display: flex; justify-content: center; }
.dash-disc-ring { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1; }

.dash-disc-list-col {
    padding-left: 2rem;
    border-left: 1px solid var(--line);
}
.dash-disc-list-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin-bottom: 1.1rem;
}
.dash-disc-list { list-style: none; margin: 0; padding: 0; }
.dash-disc-loading { color: var(--muted); font-size: 0.9rem; }

.dash-disc-row {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-faint);
}
.dash-disc-row:last-child { border-bottom: 0; }
.dash-disc-dot {
    width: 10px; height: 10px;
    border-radius: 3px;
    margin-top: 0.35rem;
}
.dash-disc-row-top {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
}
.dash-disc-name { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.dash-disc-tag {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    line-height: 1;
    position: relative;
    top: -1px;
}
.dash-disc-pc {
    margin-left: auto;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.dash-disc-track {
    height: 5px;
    border-radius: 3px;
    background: var(--panel-3);
    overflow: hidden;
    margin-bottom: 0.4rem;
}
.dash-disc-track i {
    display: block;
    height: 100%;
    border-radius: 3px;
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.dash-disc-desc { font-size: 0.76rem; color: var(--muted); line-height: 1.45; }

@media (max-width: 720px) {
    .dash-disc-panel { grid-template-columns: 1fr; gap: 1.5rem; }
    .dash-disc-list-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
    .dash-disc-ring { max-width: 200px; }
}

/* ============================
   TABLE
   ============================ */
.table-responsive {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
}
.data-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.9rem;
    color: var(--ink);
}
.data-table td { color: var(--ink); }
.data-table th {
    background: var(--off-white);
    color: var(--muted);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--off-white); }

.chart-fallback {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--off-white);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* Painel gerar convite — barra horizontal */
.banco-convite-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
}
.banco-convite-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
    min-width: 220px;
}
.banco-convite-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}
.banco-convite-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 280px;
}
.banco-convite-form input {
    flex: 1;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--off-white);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s;
}
.banco-convite-form input:focus { border-color: var(--tiffany); }
.banco-convite-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    background: var(--off-white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    flex-shrink: 0;
}

/* Tabela candidatos */
.banco-table-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.banco-table-controls {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.talents-table {
    min-width: 860px;
    table-layout: auto;
}
.talents-table th,
.talents-table td {
    padding: 0.65rem 0.8rem;
    font-size: 0.83rem;
    vertical-align: middle;
    white-space: nowrap;
}
.talents-table th {
    font-size: 0.63rem;
    letter-spacing: 0.07em;
    white-space: nowrap;
}
.talents-table td:nth-child(5) {
    white-space: normal;
    min-width: 180px;
}
.talent-name-cell { font-weight: 600; }
.banco-cand-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--tiffany);
    flex-shrink: 0;
}
.banco-cand-avatar--placeholder {
    background: rgba(10,186,181,0.12);
    color: var(--tiffany);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-display);
}
.talent-medidas-cell {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.talent-code-chip {
    display: inline-flex;
    padding: 0.18rem 0.5rem;
    border-radius: 7px;
    background: rgba(0, 72, 63, 0.08);
    color: var(--routes-brand-strong);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
}

.talentos-ranking-header {
    align-items: flex-end;
}

.talentos-score-note {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(0, 191, 166, 0.24);
    border-left: 5px solid var(--routes-brand);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--routes-muted);
    line-height: 1.45;
    box-shadow: var(--shadow-xs);
}

.talentos-score-note strong {
    color: var(--routes-brand-strong);
}

.talentos-podium-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.podium-panel {
    overflow: hidden;
    position: relative;
}

.podium-panel::before { content: none; }

.podium-panel-heading,
.podium-stage {
    position: relative;
    z-index: 1;
}

.podium-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.podium-panel-heading h3 {
    margin-top: 0.25rem;
}

.podium-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--routes-brand-strong);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.main-content .podium-badge {
    color: #ffffff;
}

.podium-stage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: end;
    min-height: 355px;
}

.podium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 1rem 0.85rem;
    border: 1px solid rgba(0, 72, 63, 0.12);
    border-radius: 14px 14px 8px 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.podium-place-1 {
    min-height: 320px;
    background: linear-gradient(180deg, #fff6c7 0%, #ffffff 64%);
    border-color: rgba(206, 158, 36, 0.45);
    box-shadow: 0 18px 44px rgba(0, 72, 63, 0.12);
}

.podium-place-2 {
    min-height: 275px;
    background: linear-gradient(180deg, #edf4f2 0%, #ffffff 68%);
}

.podium-place-3 {
    min-height: 245px;
    background: linear-gradient(180deg, #ffe1c7 0%, #ffffff 68%);
}

.podium-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--routes-brand-strong);
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(0, 72, 63, 0.18);
}

.podium-place-1 .podium-medal {
    width: 54px;
    height: 54px;
    background: #c99520;
}

.podium-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--routes-brand);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
    box-shadow: var(--shadow-tiffany);
    overflow: hidden;
    flex-shrink: 0;
}

.podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.podium-person {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    width: 100%;
}

.podium-person strong {
    color: var(--routes-foreground);
    font-size: 1rem;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.podium-person small {
    color: var(--routes-muted);
    font-size: 0.76rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.podium-score {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--tiffany-soft);
    color: var(--routes-brand-strong);
    font-weight: 900;
    font-size: 0.82rem;
}

.podium-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    margin-top: auto;
}

.podium-metrics span {
    display: block;
    padding: 0.4rem 0.45rem;
    border-radius: 8px;
    background: rgba(0, 191, 166, 0.08);
    color: var(--routes-brand-strong);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.15;
}

.podium-empty {
    grid-column: 1 / -1;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 1px dashed var(--routes-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--routes-muted);
    text-align: center;
    line-height: 1.45;
}

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

/* ============================
   TESTE DISC
   ============================ */
.test-container {
    max-width: 820px;
    margin: 2rem auto;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 3rem;
    border-radius: var(--radius-lg);
}
.test-header { text-align: center; margin-bottom: 2.5rem; }
.test-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--line);
    border-radius: 999px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: var(--tiffany);
    width: 0%;
    transition: width 0.5s var(--ease);
    border-radius: 999px;
}

.question-card {
    background: var(--off-white);
    padding: 1.75rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
}
.question-card h3 {
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.3;
}
.disc-question-prompt {
    color: var(--text-muted);
    margin-top: -0.35rem;
    margin-bottom: 1rem;
}
.options-grid { display: flex; flex-direction: column; gap: 0.6rem; }
.radio-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--white);
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid var(--line);
    transition: var(--transition);
    font-size: 0.93rem;
}
.radio-label:hover {
    border-color: var(--tiffany);
    background: var(--tiffany-soft);
    transform: translateX(2px);
}
.radio-label input:checked + span { color: var(--green-dark); font-weight: 600; }
.radio-label input:checked { accent-color: var(--tiffany); }

/* ============================
   NOVO TESTE DISC PROFISSIONAL
   ============================ */
.disc-pro-test { max-width: 900px; padding: 2.5rem; }

.disc-step-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--tiffany-soft);
    color: var(--tiffany);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.disc-progress-bar {
    display: flex;
    gap: 8px;
    margin: 1.5rem 0 2rem;
}
.disc-progress-bar span {
    flex: 1;
    height: 5px;
    border-radius: 999px;
    background: var(--line);
    transition: background .4s;
}
.disc-progress-bar span.active { background: var(--tiffany); }
.disc-progress-bar span.done { background: var(--tiffany); opacity: .45; }

.disc-words-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.5rem 0 1rem;
}

.disc-word-chip {
    padding: 0.52rem 1.1rem;
    border-radius: 999px;
    border: 2px solid var(--line);
    background: var(--routes-panel);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .16s, background .16s, color .16s, transform .1s;
    user-select: none;
    line-height: 1;
}
.disc-word-chip:hover {
    border-color: var(--tiffany);
    color: var(--tiffany);
    transform: translateY(-1px);
}
.disc-word-chip.selected {
    background: var(--tiffany);
    border-color: var(--tiffany);
    color: #fff;
    transform: translateY(-1px);
}

.disc-selection-info {
    text-align: center;
    padding: 0.75rem 1rem;
    background: var(--tiffany-soft);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--green-mid);
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: background .2s;
}
.disc-selection-info.ready { background: #d1fae5; color: #065f46; }

.disc-intro-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}
.disc-intro-step-card {
    background: var(--off-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.disc-intro-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tiffany);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================
   VINCII ACADEMY — CURSOS
   ========================================================== */
.cursos-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.curso-stat-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--disc-badge-color, var(--tiffany));
}
.curso-stat-num { font-size: 2rem; font-weight: 800; font-family: var(--font-display); color: var(--ink); line-height: 1; }
.curso-stat-label { font-size: 0.82rem; color: var(--color-text-muted); }

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.cursos-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 4rem 1rem;
    color: var(--color-text-muted);
}
.curso-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
    padding: 0 !important;
    overflow: hidden;
}
.curso-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.curso-card-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.curso-card-thumb--empty {
    width: 100%;
    height: 150px;
    background: var(--panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}
.curso-card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.curso-categoria-chip {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    background: var(--tiffany-soft);
    color: var(--tiffany);
    font-size: 0.78rem;
    font-weight: 600;
    width: fit-content;
}
.curso-card-titulo { font-size: 1rem; font-weight: 700; margin: 0; color: var(--ink); line-height: 1.3; }
.curso-card-desc { font-size: 0.82rem; color: var(--color-text-muted); margin: 0; line-height: 1.4; flex: 1; }
.curso-card-meta { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--color-text-muted); }
.curso-card-progress-row { display: flex; gap: 1rem; font-size: 0.78rem; }
.curso-card-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }

/* Meus cursos (visão colaborador) */
.meu-curso-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.meu-curso-row:last-child { border-bottom: none; }
.meu-curso-info { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; min-width: 180px; }
.meu-curso-progress { display: flex; align-items: center; gap: 0.6rem; min-width: 180px; flex: 1; }
.meu-curso-bar {
    flex: 1;
    height: 10px;
    background: var(--off-white);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.meu-curso-bar div { height: 100%; border-radius: 5px; transition: width 0.4s; }

@media (max-width: 900px) { .cursos-stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cursos-stats-row { grid-template-columns: 1fr 1fr; } .cursos-grid { grid-template-columns: 1fr; } }

/* ---- Step Selfie / Dados candidato ---- */
.disc-selfie-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.disc-camera-box {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--off-white);
    border: 3px solid var(--tiffany);
    box-shadow: 0 0 0 8px rgba(10,186,181,0.12);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.disc-camera-box video,
.disc-camera-box img#disc-selfie-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.disc-camera-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.disc-camera-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}
.disc-selfie-ok {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-tiffany-green);
    font-weight: 700;
    font-size: 0.9rem;
}
.disc-dados-fisicos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
}

@media (max-width: 600px) {
    .disc-pro-test { padding: 1.25rem; }
    .disc-intro-steps { grid-template-columns: 1fr; }
    .disc-word-chip { font-size: 0.8rem; padding: 0.45rem 0.85rem; }
    .disc-camera-box { width: 170px; height: 170px; }
    .disc-dados-fisicos { grid-template-columns: 1fr; }
}

.disc-rank {
    display: inline-flex;
    align-items: center;
    margin: 0.12rem 0.25rem 0.12rem 0;
    padding: 0.18rem 0.38rem;
    border-radius: 999px;
    background: var(--tiffany-soft);
    border: 1px solid var(--line);
    color: var(--routes-brand-strong);
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.disc-rank-D { background: rgba(201, 71, 54, 0.10); color: #9f3024; border-color: rgba(201, 71, 54, 0.20); }
.disc-rank-I { background: rgba(245, 158, 11, 0.12); color: #8a5600; border-color: rgba(245, 158, 11, 0.22); }
.disc-rank-S { background: rgba(0, 191, 166, 0.13); color: var(--routes-brand-strong); border-color: rgba(0, 191, 166, 0.24); }
.disc-rank-C { background: rgba(8, 123, 114, 0.12); color: var(--routes-info); border-color: rgba(8, 123, 114, 0.24); }

.test-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

/* ============================
   TOASTS
   ============================ */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}
.toast {
    background: var(--ink);
    color: var(--white);
    padding: 1rem 1.4rem;
    border-radius: 12px;
    border-left: 3px solid var(--tiffany);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    font-size: 0.9rem;
    animation: slideInRight 0.4s var(--ease) forwards, fadeOut 0.4s 3s forwards;
    max-width: 380px;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut { to { opacity: 0; visibility: hidden; transform: translateX(20px); } }

/* ============================
   SLIDERS DE CALIBRAÇÃO
   ============================ */
.adjective-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line-soft);
}
.adjective-row:last-child { border-bottom: none; }
.adj-label {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    font-family: var(--font-sans);
    opacity: 1;
}
.adj-label.left { text-align: right; }
.adj-label.right { text-align: left; }

.slider-container { flex: 2; display: flex; align-items: center; padding: 0 1rem; }
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--line);
    border-radius: 999px;
    outline: none;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--white);
    transition: var(--transition);
}
.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--tiffany);
}

@media (max-width: 768px) {
    .adjective-row { flex-direction: column; gap: 0.5rem; padding: 1.25rem 0; }
    .adj-label { text-align: center !important; }
    .slider-container { width: 100%; }
}

/* ============================
   AVATARS
   ============================ */
.avatar-upload-area {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px dashed var(--tiffany);
    background: var(--tiffany-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    color: var(--tiffany);
    position: relative;
}
.avatar-upload-area:hover {
    background: rgba(10, 186, 181, 0.15);
    border-color: var(--green-dark);
    color: var(--green-dark);
}
#avatar-placeholder, #edit-avatar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    font-family: var(--font-mono);
}

.colab-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--tiffany);
}
.colab-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tiffany-soft);
    border: 2px solid var(--tiffany);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--tiffany);
    flex-shrink: 0;
}

/* ============================
   ACTION BUTTONS
   ============================ */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}
.btn-icon--edit { color: var(--tiffany); }
.btn-icon--edit:hover {
    background: var(--tiffany);
    color: #fff;
    border-color: var(--tiffany);
}
.btn-icon--delete { color: #C73838; }
.btn-icon--delete:hover {
    background: #C73838;
    color: #fff;
    border-color: #C73838;
}

/* ============================
   MODAIS
   ============================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(3, 12, 10, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
    animation: fadeIn 0.25s var(--ease);
}
.modal-overlay.hidden { display: none !important; }

.modal-overlay.modal-fullscreen {
    padding: 0;
}
.modal-overlay.modal-fullscreen .modal-box {
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
}

.modal-box {
    background: var(--bg-canvas);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 660px;
    margin: auto;
    animation: fadeIn 0.3s var(--ease);
}
.modal-box--sm { max-width: 440px; }
.modal-box-wide {
    max-width: min(1120px, calc(100vw - 2rem));
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid var(--line-soft);
}
.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-family: var(--font-display);
}
.modal-body { padding: 1.5rem 1.75rem 1.75rem; }

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
    padding: 1.25rem 1.75rem 1.5rem;
    border-top: 1px solid var(--line-soft);
    flex-wrap: wrap;
}

.document-viewer-frame-wrap {
    width: 100%;
    height: min(72vh, 760px);
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f6f7f7;
    overflow: auto;
}

.document-viewer-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.document-pdf-pages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-height: 100%;
    padding: 1rem;
}

.document-pdf-pages:empty {
    display: none;
}

.document-pdf-page {
    width: min(100%, 900px);
    height: auto;
    background: #fff;
    border: 1px solid var(--line-soft);
    box-shadow: 0 12px 30px rgba(6, 26, 25, 0.12);
}

.document-viewer-loading {
    margin: auto;
    padding: 2rem;
    color: var(--text-muted);
}

.document-viewer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.document-action-hint {
    display: block;
    max-width: 260px;
    margin: 0.45rem 0 0 auto;
    color: var(--text-muted);
    line-height: 1.35;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
}

.signature-pad-wrap {
    width: 100%;
    height: 180px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(to bottom, transparent calc(100% - 42px), rgba(6, 26, 25, 0.16) calc(100% - 41px), transparent calc(100% - 40px)),
        #fff;
    overflow: hidden;
}

.signature-pad-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
}

/* Rubrica — pad menor */
.signature-pad-wrap--sm {
    height: 100px;
}

.document-sign-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    margin-top: 0.75rem;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.check-row input {
    margin-top: 0.2rem;
}

.remember-login {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.2rem 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.remember-login input {
    width: 16px;
    height: 16px;
    accent-color: var(--tiffany);
}

.meta-progress {
    width: 150px;
    max-width: 100%;
    height: 8px;
    background: var(--line-soft);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.meta-progress span {
    display: block;
    height: 100%;
    background: var(--tiffany);
    border-radius: inherit;
}

.meta-status-success {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.12);
}

.meta-status-danger {
    color: #c62828;
    background: rgba(198, 40, 40, 0.12);
}

.meta-status-primary {
    color: var(--green-dark);
    background: rgba(10, 186, 181, 0.14);
}

/* ==========================================================
   JORNADA DO COLABORADOR
   ========================================================== */
.jornada-hero {
    position: relative;
    overflow: hidden;
    padding: 2rem !important;
    margin-bottom: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
}
.jornada-hero-bg { display: none; }
.jornada-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.jornada-avatar-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--panel-2);
    border: 1px solid var(--line-strong);
    overflow: hidden;
    position: relative;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink: 0;
}
.jornada-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.jornada-avatar-fallback {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--brand-strong);
    background: var(--brand-soft);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jornada-hero-info { flex: 1; min-width: 200px; }
.jornada-hero-info h2 {
    color: var(--ink);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-display);
}
.jornada-hero-cargo {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}
.jornada-perfil-badge-area span {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--ink);
    margin-right: 6px;
}
.jornada-status-pill {
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--brand);
    color: #fff;
}
.jornada-status-pill.desligado { background: var(--faint); }

.jornada-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}
.jornada-stat-card {
    background: var(--panel);
    border: none !important;
    border-radius: 0 !important;
    padding: 1.4rem !important;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: none !important;
}
.jornada-stat-card:hover { background: var(--panel-2); }
.jornada-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--r);
    background: var(--brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.jornada-stat-body { display: flex; flex-direction: column; }
.jornada-stat-label {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 500;
}
.jornada-stat-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 4px;
    letter-spacing: -0.02em;
}
@media (max-width: 900px) { .jornada-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .jornada-stats { grid-template-columns: 1fr; } }

.jornada-progress-track {
    height: 6px;
    background: var(--panel-3);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.jornada-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--brand);
    border-radius: 999px;
    transition: width 0.5s var(--ease);
}

.jornada-timeline {
    position: relative;
}
.jornada-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
}
.jornada-event {
    position: relative;
    padding-left: 56px;
    margin-bottom: 1.5rem;
}
.jornada-event:last-child { margin-bottom: 0; }
.jornada-event-dot {
    position: absolute;
    left: 4px; top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 2;
}
.jornada-event-dot.future { border-color: var(--line); background: var(--panel-2); opacity: 0.6; }
.jornada-event-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 2px solid var(--brand);
    padding: 1rem 1.2rem;
    border-radius: var(--r);
    transition: border-color var(--t);
}
.jornada-event-card:hover { border-color: var(--line-strong); }
.jornada-event-card.future {
    background: var(--panel-2);
    border-left-color: var(--line);
    opacity: 0.7;
}
.jornada-event-card.success { border-left-color: var(--ok); }
.jornada-event-card.warning { border-left-color: var(--warning); }
.jornada-event-card.danger { border-left-color: var(--danger); }
.jornada-event-card.primary { border-left-color: var(--brand); }
.jornada-event-card.dark { border-left-color: var(--ink); }

.jornada-event-date {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 4px;
}
.jornada-event-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.jornada-event-desc {
    font-size: 0.9rem;
    color: var(--ink-2);
    line-height: 1.55;
}
.jornada-event-tag {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 600;
    background: var(--brand-soft);
    color: var(--brand-strong);
}

/* ==========================================================
   PONTO ELETRÔNICO — clock display
   ========================================================== */
#clock-display {
    font-family: var(--font-display);
    font-size: 4rem !important;
    font-weight: 400 !important;
    color: var(--ink) !important;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem !important;
    font-variant-numeric: tabular-nums;
}
#date-display {
    font-family: var(--font-sans) !important;
    font-size: 0.88rem !important;
    color: var(--text-muted) !important;
}

/* ==========================================================
   RESPONSIVO
   ========================================================== */
/* ==========================================================
   Cards no fundo escuro — refinamentos
   ========================================================== */
.main-content .glass-panel {
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}
.main-content .kpi-card {
    background: var(--panel);
    border-color: var(--line);
}
.main-content .kpi-card:hover {
    background: var(--panel-2) !important;
    border-color: var(--line-strong) !important;
}
.main-content .table-responsive {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow-x: auto;
    overflow-y: hidden;
}
.main-content .jornada-stat-card {
    background: var(--panel);
    border-color: var(--line);
}
.main-content .jornada-stat-card:hover { background: var(--panel-2); }
.main-content .jornada-event-card {
    background: var(--panel);
    border-color: var(--line);
}
.main-content table tbody tr { background: transparent; }
.main-content table tbody tr:hover { background: var(--panel-2); }
.main-content input,
.main-content select,
.main-content textarea {
    background: var(--panel);
    border-color: var(--line-strong);
}
.main-content input:focus,
.main-content select:focus,
.main-content textarea:focus {
    background: var(--panel-2);
    border-color: var(--brand);
}

/* ==========================================================
   RESPONSIVO — refinamentos finais
   ========================================================== */
@media (max-width: 768px) {
    .banco-convite-bar { flex-direction: column; align-items: stretch; }
    .banco-convite-left { min-width: 0; }
    .banco-convite-form { flex-direction: column; align-items: stretch; }
}

@media (max-width: 1100px) {
    .talentos-podium-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .login-side { padding: 2.5rem 1.5rem; }
    .login-card-new h1 { font-size: 1.9rem; }

    .topbar { padding: 0 1rem; gap: 0.75rem; height: 64px; }
    .topbar h2 { font-size: 1rem; }
    .user-profile { font-size: 0.78rem; padding: 0.3rem 0.75rem 0.3rem 0.3rem; }
    .user-profile::before { width: 26px; height: 26px; font-size: 0.75rem; }
    .content-wrapper { padding: 1.5rem 1rem 3rem; }
    .section-header { margin-bottom: 1.5rem; padding-bottom: 1rem; }
    .section-header h2 { font-size: 1.7rem; }
    .glass-panel { padding: 1.25rem; }
    .talentos-ranking-header {
        align-items: flex-start;
    }
    .talentos-podium-grid {
        gap: 1rem;
    }
    .podium-panel-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    .podium-badge {
        white-space: normal;
    }
    .podium-stage {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .podium-card,
    .podium-place-1,
    .podium-place-2,
    .podium-place-3 {
        min-height: 0;
        align-items: flex-start;
        text-align: left;
        border-radius: 12px;
    }
    .podium-card {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 0.65rem 0.8rem;
    }
    .podium-avatar {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        grid-row: span 2;
    }
    .podium-medal {
        width: 38px;
        height: 38px;
        grid-column: 3;
        grid-row: 1;
    }
    .podium-person {
        grid-column: 2;
        grid-row: 1;
    }
    .podium-score {
        grid-column: 2 / 4;
        grid-row: 2;
        justify-self: start;
    }
    .podium-metrics {
        grid-column: 1 / 4;
        grid-row: 3;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .podium-metrics span {
        flex: 1 1 130px;
    }
    .test-container { margin: 1rem auto; padding: 1.5rem; }
    .btn { width: 100%; min-height: 44px; }
    .data-table th, .data-table td { padding: 0.85rem 1rem; white-space: nowrap; }
    .table-responsive::after {
        content: '← Arraste para ver mais →';
        display: block;
        padding: 0.5rem 0.75rem;
        color: var(--text-muted);
        font-family: var(--font-mono);
        font-size: 0.7rem;
        background: var(--off-white);
        border-top: 1px solid var(--line);
        text-align: center;
    }
    #toast-container { left: 12px; right: 12px; bottom: 12px; }
    .toast { width: 100%; max-width: 100%; }
    .kpi-card p { font-size: 2.2rem !important; }
    .kpi-card { padding: 1.25rem !important; }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 280px;
        max-width: 88vw;
        overflow-y: auto;
        box-shadow: 10px 0 40px rgba(0,0,0,0.5);
    }
    .layout-dashboard.sidebar-collapsed .sidebar {
        width: 280px;
        max-width: 88vw;
        flex-basis: auto;
    }
    .layout-dashboard.sidebar-collapsed .sidebar > * {
        opacity: 1;
        pointer-events: auto;
    }
    .sidebar-toggle {
        display: none !important;
    }
    .sidebar.open { left: 0; }
    .mobile-only { display: inline-flex; align-items: center; justify-content: center; }
    .main-content { width: 100%; height: 100vh; overflow-y: auto; }

    .alt-action { padding: 0.85rem 1rem; }
    .alt-action-title { font-size: 0.9rem; }
    .alt-action-desc { font-size: 0.72rem; }

    .login-card { padding: 1.75rem 1.25rem; }
    .login-footer-meta { font-size: 0.6rem; flex-wrap: wrap; gap: 0.5rem; }
}

@media (max-width: 600px) {
    .jornada-hero-inner { padding: 1.5rem 1.25rem; gap: 1rem; }
    .jornada-avatar-wrap { width: 90px; height: 90px; }
    .jornada-hero-info h2 { font-size: 1.5rem; }
    .jornada-status-pill { width: 100%; text-align: center; }
    .jornada-timeline::before { left: 18px; }
    .jornada-event { padding-left: 56px; margin-bottom: 1.5rem; }
    .jornada-event-dot { left: 0; }
    .jornada-event-card:hover { transform: none; }
    .test-footer { flex-wrap: wrap; gap: 0.75rem; }
    #question-counter { order: -1; width: 100%; text-align: center; }
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }
    #clock-display { font-size: 3rem !important; }
    .test-container { padding: 1.25rem; border-radius: 14px; }
    .question-card { padding: 1.25rem; }
    .grid-form { gap: 0.85rem; }
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal-box { max-height: 92vh; border-radius: 20px 20px 0 0; }
    .modal-header, .modal-body, .modal-footer { padding-left: 1rem; padding-right: 1rem; }
    .modal-footer { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
}

@media (max-width: 480px) {
    body { background-attachment: scroll; }
    .login-card-new h1 { font-size: 1.7rem; }
    .login-card-new .subtitle { font-size: 0.88rem; margin-bottom: 1.75rem; }
    .login-side { padding: 2rem 1.25rem; }
    .kpi-grid { grid-template-columns: 1fr 1fr !important; }
    .kpi-card p { font-size: 1.8rem !important; }
    .sidebar { width: 86vw; }
}

/* legacy min — original block kept disabled by being unreachable */
@media (max-width: 1px) {
    .sidebar {
        position: fixed;
        left: -100%;
        width: 280px;
        max-width: 88vw;
        overflow-y: auto;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }
    .sidebar.open { left: 0; }
    .main-content { width: 100%; }
    .topbar { padding: 0 1rem; gap: 0.75rem; }
    .topbar h2 { font-size: 1rem; }
    .mobile-only { display: inline-flex; }
    .content-wrapper { padding: 1.5rem 1rem 3rem; }
    .section-header { margin-bottom: 1.5rem; padding-bottom: 1rem; }
    .glass-panel { padding: 1.25rem; }
    .test-container { margin: 1rem auto; padding: 1.5rem; }
    .btn { width: 100%; min-height: 44px; }
    .data-table th, .data-table td { padding: 0.85rem 1rem; white-space: nowrap; }
    .table-responsive::after {
        content: 'Arraste para ver mais';
        display: block;
        padding: 0.5rem 0.75rem;
        color: var(--text-muted);
        font-family: var(--font-mono);
        font-size: 0.7rem;
        background: var(--off-white);
        border-top: 1px solid var(--line);
    }
    #toast-container { left: 12px; right: 12px; bottom: 12px; }
    .toast { width: 100%; }
    .kpi-card p { font-size: 2.2rem !important; }
}

@media (max-width: 600px) {
    .jornada-hero-inner { padding: 1.75rem 1.25rem; gap: 1rem; }
    .jornada-avatar-wrap { width: 90px; height: 90px; }
    .jornada-hero-info h2 { font-size: 1.5rem; }
    .jornada-status-pill { width: 100%; text-align: center; }
    .jornada-timeline::before { left: 18px; }
    .jornada-event { padding-left: 56px; margin-bottom: 1.5rem; }
    .jornada-event-dot { left: 0; }
    .jornada-event-card:hover { transform: none; }
    .test-footer { flex-wrap: wrap; gap: 0.75rem; }
    #question-counter { order: -1; width: 100%; text-align: center; }
}

@media (max-width: 480px) {
    body { background-attachment: scroll; }
    .login-card { padding: 1.5rem; }
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal-box { max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .modal-header, .modal-body, .modal-footer { padding-left: 1rem; padding-right: 1rem; }
    .modal-footer { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
    .test-container { padding: 1.25rem; }
    h1 { font-size: 2rem; }
}

/* ==========================================================
   PAINEIS ADMIN EM VIDRO
   Mantem as telas de login intactas e aplica o efeito apenas
   dentro do sistema autenticado.
   ========================================================== */
#admin-view {
    background: var(--bg);
}

/* ==========================================================
   TESTE DISC NO CELULAR
   Compacta a jornada do candidato para reduzir rolagem.
   ========================================================== */
@media (max-width: 640px) {
    #candidate-test-view {
        align-items: stretch;
        min-height: 100dvh;
        padding: 0;
    }

    #candidate-test-view .test-container {
        min-height: 100dvh;
        width: 100%;
        margin: 0;
        padding: 0.75rem;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    #candidate-test-view .test-header {
        margin-bottom: 0.6rem;
    }

    #candidate-test-view .test-header .eyebrow {
        margin-bottom: 0.25rem !important;
        font-size: 0.62rem;
    }

    #candidate-test-view .test-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.2rem;
        line-height: 1.1;
    }

    #candidate-test-view .test-header p {
        margin-top: 0.25rem !important;
        font-size: 0.78rem;
        line-height: 1.25;
    }

    #candidate-test-view .progress-bar-container {
        height: 4px;
        margin-bottom: 0.65rem;
        flex: 0 0 auto;
    }

    #candidate-test-view #disc-form {
        display: flex;
        flex: 1;
        min-height: 0;
        flex-direction: column;
    }

    #candidate-test-view #questions-container {
        flex: 1;
        min-height: 0;
    }

    #candidate-test-view .question-card {
        margin-bottom: 0.65rem;
        padding: 0.75rem;
        border-radius: 10px;
    }

    #candidate-test-view .question-card h3 {
        margin-bottom: 0.35rem;
        font-size: 0.98rem;
        line-height: 1.15;
    }

    #candidate-test-view .disc-question-prompt {
        margin: 0 0 0.55rem;
        font-size: 0.86rem;
        line-height: 1.28;
    }

    #candidate-test-view .options-grid {
        gap: 0.4rem;
    }

    #candidate-test-view .radio-label {
        min-height: 44px;
        gap: 0.55rem;
        padding: 0.55rem 0.65rem;
        border-radius: 8px;
        font-size: 0.8rem;
        line-height: 1.2;
    }

    #candidate-test-view .radio-label input {
        flex: 0 0 auto;
        width: 16px;
        height: 16px;
    }

    #candidate-test-view .test-footer {
        position: sticky;
        bottom: 0;
        margin: auto -0.75rem -0.75rem;
        padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--line);
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 0.45rem;
        z-index: 5;
    }

    #candidate-test-view #question-counter {
        order: 0;
        width: auto;
        white-space: nowrap;
        font-size: 0.72rem !important;
        text-align: center;
    }

    #candidate-test-view .test-footer .btn {
        min-height: 38px;
        padding: 0.55rem 0.65rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }
}

@media (max-width: 380px), (max-height: 680px) {
    #candidate-test-view .test-container {
        padding: 0.55rem;
    }

    #candidate-test-view .test-header h2 {
        font-size: 1.1rem;
    }

    #candidate-test-view .test-header p {
        font-size: 0.72rem;
    }

    #candidate-test-view .question-card {
        padding: 0.6rem;
    }

    #candidate-test-view .disc-question-prompt {
        font-size: 0.8rem;
        margin-bottom: 0.45rem;
    }

    #candidate-test-view .radio-label {
        min-height: 39px;
        padding: 0.45rem 0.55rem;
        font-size: 0.74rem;
    }

    #candidate-test-view .test-footer {
        margin-left: -0.55rem;
        margin-right: -0.55rem;
        margin-bottom: -0.55rem;
    }
}

.role-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(10, 186, 181, 0.14);
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

select[multiple] {
    min-height: 8rem;
}

/* Jornada: cards separados na parte inferior */
#admin-view .jornada-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    padding: 0;
}

#admin-view .jornada-timeline::before {
    display: none;
}

#admin-view .jornada-event {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

#admin-view .jornada-event-dot {
    left: 1rem;
    top: 1rem;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(10, 186, 181, 0.32);
    box-shadow: 0 10px 24px rgba(10, 186, 181, 0.18);
}

#admin-view .jornada-event-card {
    height: 100%;
    min-height: 172px;
    padding: 1.1rem 1.1rem 1.1rem 4.55rem;
    border-left-width: 0;
    border-radius: var(--radius);
}

#admin-view .jornada-event-card.success { box-shadow: inset 0 0 0 1px rgba(46, 125, 50, 0.14), 0 16px 42px rgba(6, 26, 25, 0.12); }
#admin-view .jornada-event-card.warning { box-shadow: inset 0 0 0 1px rgba(200, 136, 31, 0.18), 0 16px 42px rgba(6, 26, 25, 0.12); }
#admin-view .jornada-event-card.danger { box-shadow: inset 0 0 0 1px rgba(199, 56, 56, 0.16), 0 16px 42px rgba(6, 26, 25, 0.12); }
#admin-view .jornada-event-card.primary { box-shadow: inset 0 0 0 1px rgba(10, 186, 181, 0.18), 0 16px 42px rgba(6, 26, 25, 0.12); }
#admin-view .jornada-event-card.dark { box-shadow: inset 0 0 0 1px rgba(6, 26, 25, 0.18), 0 16px 42px rgba(6, 26, 25, 0.12); }

#admin-view .jornada-event-card:hover {
    transform: translateY(-3px);
}

@media (max-width: 600px) {
    #admin-view .jornada-timeline {
        grid-template-columns: 1fr;
    }

    #admin-view .jornada-event-dot {
        left: 0.9rem;
        top: 0.9rem;
        width: 38px;
        height: 38px;
    }

    #admin-view .jornada-event-card {
        min-height: 0;
        padding: 0.95rem 0.95rem 0.95rem 4rem;
    }
}

/* Correção final: cada marco da Jornada vira um card legível */
#admin-view #jornada-timeline.jornada-timeline {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 0 !important;
}

#admin-view #jornada-timeline.jornada-timeline::before {
    content: none !important;
    display: none !important;
}

#admin-view #jornada-timeline .jornada-event {
    position: relative !important;
    display: flex !important;
    min-height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#admin-view #jornada-timeline .jornada-event-dot {
    position: absolute !important;
    z-index: 2 !important;
    left: 1rem !important;
    top: 1rem !important;
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: var(--panel-2) !important;
    border: 1px solid rgba(10, 186, 181, 0.4) !important;
    box-shadow: 0 10px 24px rgba(6, 26, 25, 0.25) !important;
}

#admin-view #jornada-timeline .jornada-event-dot::before {
    display: none !important;
}

#admin-view #jornada-timeline .jornada-event-card {
    width: 100% !important;
    padding: 1.1rem 1.1rem 1.1rem 4.5rem !important;
    border-radius: var(--radius) !important;
    background: var(--panel) !important;
    backdrop-filter: blur(18px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
    border: 1px solid var(--line-strong) !important;
    box-shadow: 0 16px 42px rgba(6, 26, 25, 0.2) !important;
}

#admin-view #jornada-timeline .jornada-event-title {
    font-size: 1rem !important;
    line-height: 1.25 !important;
}

#admin-view #jornada-timeline .jornada-event-desc {
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
}

@media (max-width: 680px) {
    #admin-view #jornada-timeline.jornada-timeline {
        grid-template-columns: 1fr !important;
    }
}

/* ============================
   BATER PONTO — topbar pill
   ============================ */
.btn-topbar-ponto {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 1.05rem;
    background: rgba(10, 186, 181, 0.13);
    border: 1px solid rgba(10, 186, 181, 0.30);
    border-radius: 999px;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1;
}
.btn-topbar-ponto:hover {
    background: rgba(10, 186, 181, 0.26);
    border-color: rgba(10, 186, 181, 0.52);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(10, 186, 181, 0.18);
}

.birthday-alert-panel {
    margin-bottom: 1.5rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(10, 186, 181, 0.28);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(235, 251, 249, 0.96));
    box-shadow: var(--shadow-sm);
}
.birthday-alert-panel h3 {
    margin: 0.25rem 0 0.85rem;
    font-size: 1.35rem;
}
.birthday-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem;
}
.birthday-card {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.8rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: var(--white);
}
.birthday-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--tiffany);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
}
.birthday-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.birthday-card strong,
.birthday-card span,
.birthday-card small {
    display: block;
}
.birthday-card span,
.birthday-card small {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.4;
}
.birthday-card a {
    display: inline-block;
    margin-top: 0.35rem;
    color: var(--tiffany);
    font-weight: 700;
    font-size: 0.82rem;
}

.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    color: var(--text-muted);
    font-size: 0.84rem;
}
.pagination-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.pagination-actions .btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================
   FILE UPLOAD customizado
   ============================ */
.file-upload-wrap { position: relative; width: 100%; }
.file-upload-wrap input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}
.file-upload-face {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.78rem 1.1rem;
    background: var(--white);
    border: 1.5px dashed var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-family: var(--font-sans);
    transition: var(--transition);
    pointer-events: none;
    cursor: pointer;
}
.file-upload-wrap:hover .file-upload-face,
.file-upload-wrap:focus-within .file-upload-face {
    border-color: var(--tiffany);
    color: var(--tiffany);
    background: var(--tiffany-soft);
}
.file-upload-face.has-file {
    border-style: solid;
    border-color: var(--tiffany);
    color: var(--ink);
    background: var(--tiffany-soft);
}
.file-upload-face .file-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--tiffany-glow);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* ============================
   FOTO PONTO — lightbox
   ============================ */
.ponto-foto-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 1.5px solid var(--line);
    transition: var(--transition);
    display: block;
}
.ponto-foto-thumb:hover {
    border-color: var(--tiffany);
    transform: scale(1.08);
}
#lightbox-foto-ponto {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.82);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
#lightbox-foto-ponto img {
    max-width: min(480px, 90vw);
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    cursor: default;
}

/* ==========================================================
   DISC PROFILE BADGE
   ========================================================== */
.disc-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    border-radius: 50%;
    background: var(--disc-badge-color, #94a3b8);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    z-index: 3;
    letter-spacing: -0.5px;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* Avatar wrapper in equipe list */
.colab-avatar-wrap-outer {
    position: relative;
    display: inline-block;
}

/* Avatar wrapper in jornada hero */
.jornada-avatar-outer {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}
.jornada-avatar-outer .disc-badge {
    bottom: 0px;
    right: 0px;
    border-width: 3px;
}

/* DISC badge inside topbar user label */
.user-profile-button {
    position: relative;
}
.user-profile-button .disc-badge {
    bottom: 0px;
    left: calc(0.4rem + 20px);
    right: auto;
    width: 14px !important;
    height: 14px !important;
    font-size: 6px !important;
    border-width: 1.5px;
}


/* ==========================================================
   DOCUMENTOS v2 — Signatários, Campos PDF, Certidão
   ========================================================== */

.alert-info {
    background: #e8f4fd;
    border-color: #9ac8f0;
    color: #1a558f;
}

/* Signatários selector */
.signatarios-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
}
.signatarios-search-row {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg);
}
.signatarios-search-row input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    outline: none;
    color: var(--text);
}
.signatarios-lista {
    max-height: 180px;
    overflow-y: auto;
}
.signatarios-lista-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.84rem;
    cursor: pointer;
    transition: background 0.1s;
}
.signatarios-lista-item:hover { background: var(--tiffany-glow); }
.signatarios-lista-item .sig-nome { flex: 1; }
.signatarios-lista-item .sig-cpf { font-size: 0.75rem; color: var(--text-muted); font-family: monospace; }
.signatarios-selecionados {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line-soft);
}
.sig-sel-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.83rem;
    border-bottom: 1px solid var(--line-soft);
}
.sig-sel-item:last-child { border-bottom: none; }
.sig-sel-nome { flex: 1; font-weight: 500; }
.sig-sel-tipo { font-size: 0.75rem; }
.sig-sel-tipo select {
    font-size: 0.78rem;
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
}
.sig-sel-remove {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    transition: background 0.15s;
}
.sig-sel-remove:hover { background: #fee; color: #c33; }

/* Tabs Colaborador / Externo */
.sig-type-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--line);
    padding-bottom: 0;
}
.sig-type-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: color 0.15s, border-color 0.15s;
}
.sig-type-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(10,191,140,0.06);
}
.sig-type-tab:hover:not(.active) { color: var(--text); }

/* Seletor de signatário na toolbar de campos PDF */
.campo-sig-selector {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(10,191,140,0.06);
    cursor: pointer;
    max-width: 160px;
}

/* Formulário signatário externo */
.sig-externo-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.6rem 0.5rem;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.sig-externo-form input {
    width: 100%;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--bg);
    color: var(--text);
}

/* Badge externo */
.badge-externo {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    margin-right: 0.2rem;
    vertical-align: middle;
}

/* Campos PDF — posicionamento */
.campos-pdf-toolbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.page-nav-arrows {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.1rem 0.4rem;
}
.page-nav-arrows .btn {
    padding: 0.15rem 0.5rem;
    min-width: 28px;
    border-radius: 999px;
    font-size: 0.85rem;
    line-height: 1.4;
}
.campos-pdf-container {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f0f0f0;
    cursor: crosshair;
}
.campos-pdf-canvas {
    display: block;
    max-width: 100%;
}
.campos-pdf-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
.campo-pdf-chip {
    position: absolute;
    pointer-events: all;
    background: rgba(0, 180, 160, 0.15);
    border: 2px solid var(--tiffany);
    border-radius: 4px;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--tiffany-dark);
    white-space: nowrap;
    overflow: hidden;
    user-select: none;
    gap: 4px;
    padding: 2px 5px;
}
.campo-pdf-chip .remove-campo {
    cursor: pointer;
    color: #c33;
    font-size: 0.8rem;
    line-height: 1;
}
.campos-pdf-lista {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Certidão */
.certidao-section {
    margin-bottom: 1.5rem;
}
.certidao-section h4 {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 0.4rem;
    margin-bottom: 0.75rem;
}
.certidao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem 1.5rem;
}
.certidao-kv { display: flex; flex-direction: column; gap: 0.1rem; }
.certidao-kv .ck-label { font-size: 0.8rem; color: var(--text-muted); }
.certidao-kv .ck-val { font-size: 0.88rem; font-weight: 500; word-break: break-all; }
.certidao-assinatura-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line-soft);
    align-items: start;
    font-size: 0.83rem;
}
.certidao-assinatura-item:last-child { border-bottom: none; }
.certidao-status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-top: 3px;
    flex-shrink: 0;
}
.certidao-assinatura-item img.certidao-img-thumb {
    max-width: 120px;
    max-height: 60px;
    border: 1px solid var(--line);
    border-radius: 4px;
    object-fit: contain;
    background: #fff;
}
.certidao-eventos {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.certidao-evento-row {
    display: grid;
    grid-template-columns: 140px auto 1fr;
    gap: 0.4rem 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.8rem;
    align-items: start;
}
.certidao-evento-row:last-child { border-bottom: none; }
.certidao-evento-row .ev-data { color: var(--text-muted); font-size: 0.72rem; font-family: monospace; }
.certidao-evento-row .ev-tipo { font-weight: 600; font-size: 0.72rem; }
.certidao-evento-row .ev-desc { color: var(--text); }
.ev-tipo-CRIACAO { color: var(--tiffany-dark); }
.ev-tipo-ASSINATURA { color: #1a8f4a; }
.ev-tipo-LEITURA { color: #2060b0; }
.ev-tipo-RECUSA { color: #c55; }
.ev-tipo-CANCELAMENTO { color: #999; }
.ev-tipo-VISUALIZACAO { color: #666; }

/* Badge de status de documento */
.badge-doc-aguardando { background: #fff3cd; color: #856404; }
.badge-doc-parcialmente_assinado { background: #d1ecf1; color: #0c5460; }
.badge-doc-concluido { background: #d4edda; color: #155724; }
.badge-doc-cancelado { background: #f8d7da; color: #721c24; }
.badge-doc-expirado { background: #e2e3e5; color: #383d41; }

/* btn-sm já definido na seção de botões acima */

/* ==========================================================
   DOCUMENTOS — Abas Enviados / Modelos
   ========================================================== */
.doc-tabs {
    display: flex;
    gap: 0;
    border-bottom: none;
    margin-bottom: 0;
}
.doc-tab {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--line);
    border-bottom: none;
    background: var(--bg);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: background 0.15s, color 0.15s;
    margin-right: 4px;
}
.doc-tab.active {
    background: var(--paper);
    color: var(--text);
    border-bottom: 1px solid var(--paper);
    margin-bottom: -1px;
    z-index: 1;
    position: relative;
}
.doc-tab:not(.active):hover { background: var(--tiffany-glow); color: var(--text); }

/* Template list */
.tmpl-campos-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
.tmpl-campo-chip {
    font-size: 0.68rem;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    background: var(--tiffany-glow);
    color: var(--tiffany-dark);
    font-weight: 600;
}

/* ==========================================================
   GERENCIAR SIGNATÁRIOS — Modal de edição de signatários
   ========================================================== */
.gerenciar-sig-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    flex-wrap: wrap;
}
.gerenciar-sig-info {
    flex: 1;
    min-width: 0;
}
.gerenciar-sig-actions {
    flex-shrink: 0;
}
.gerenciar-sig-form {
    background: var(--tiffany-glow, #f0fdf8);
    border: 1px solid var(--tiffany-border, #b2dfdb);
    border-radius: var(--radius, 8px);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}
.gerenciar-sig-form .grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.gerenciar-sig-form .input-group.full-width {
    grid-column: 1 / -1;
}
.gerenciar-sig-form .full-width {
    grid-column: 1 / -1;
}
@media (max-width: 480px) {
    .gerenciar-sig-form .grid-form {
        grid-template-columns: 1fr;
    }
}

/* ── LOADING OVERLAY GLOBAL ─────────────────────────── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loading-overlay.hidden { display: none; }

.loading-box {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    min-width: 240px;
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--color-primary, #0ea5e9);
    border-radius: 50%;
    animation: spin-loader 0.8s linear infinite;
}
@keyframes spin-loader {
    to { transform: rotate(360deg); }
}

.loading-mensagem {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text, #111);
}
.loading-submensagem {
    font-size: 0.82rem;
    color: var(--color-text-muted, #6b7280);
    min-height: 1em;
    max-width: 240px;
    line-height: 1.4;
}

/* ── FEEDBACK — barra de filtros ─────────────────────── */
.feedback-filtros-bar {
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.feedback-filtros-left { display: flex; align-items: center; gap: 0.75rem; }
.feedback-filtros-right { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.feedback-select-colab {
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--color-border, #e5e7eb);
    border-radius: 8px;
    background: var(--color-surface, #fff);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text, #111);
    cursor: pointer;
    min-width: 200px;
}
.feedback-select-colab:focus { outline: none; border-color: var(--color-primary, #0ea5e9); }

/* ── FEEDBACK — grupos por colaborador ───────────────── */
.feedback-grupo {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.feedback-grupo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: var(--panel-2);
    border-bottom: 1px solid var(--line);
    transition: background 0.15s;
}
.feedback-grupo-header:hover { background: var(--panel-3, var(--line)); }
.feedback-grupo-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.feedback-grupo-info { flex: 1; min-width: 0; }
.feedback-grupo-nome { font-weight: 700; font-size: 0.95rem; color: var(--color-text, #111); }
.feedback-grupo-stats {
    display: flex; gap: 0.75rem; flex-wrap: wrap;
    font-size: 0.78rem; color: var(--color-text-muted, #6b7280);
    margin-top: 0.2rem;
}
.stat-positivo { color: #16a34a; font-weight: 600; }
.stat-melhorar { color: #d97706; font-weight: 600; }
.feedback-grupo-ver {
    font-size: 0.78rem; color: var(--color-primary, #0ea5e9);
    font-weight: 600; white-space: nowrap; flex-shrink: 0;
}

/* ── FEEDBACK — linhas de item ───────────────────────── */
.feedback-lista-itens { padding: 0.25rem 0; }
.feedback-linha {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--line);
    transition: background 0.1s;
    flex-wrap: wrap;
}
.feedback-linha:last-child { border-bottom: none; }
.feedback-linha:hover { background: var(--panel-2); }
.feedback-linha-tipo {
    display: flex; flex-direction: column; gap: 0.35rem;
    flex-shrink: 0; min-width: 110px;
}
.feedback-linha-data { font-size: 0.75rem; color: var(--color-text-muted, #6b7280); }
.feedback-linha-meio {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 0.3rem;
}
.feedback-linha-excerpt {
    font-size: 0.875rem; color: var(--color-text-secondary, #374151);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%;
}
.feedback-linha-pills {
    display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center;
}
.feedback-icon-pill {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    font-size: 0.72rem; font-weight: 600;
    color: var(--muted);
}
.feedback-linha-acoes {
    display: flex; gap: 0.25rem; flex-shrink: 0;
}

/* ── FEEDBACK COM ÁUDIO ─────────────────────────────── */
.feedbacks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.25rem;
}

.feedback-card {
    background: var(--panel);
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: box-shadow 0.2s, transform 0.15s;
}
.feedback-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.09);
    transform: translateY(-1px);
}

.feedback-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0;
}
.badge-positivo { background: color-mix(in oklab, var(--ok) 12%, transparent); color: var(--ok); }
.badge-melhorar { background: color-mix(in oklab, var(--warning) 15%, transparent); color: var(--warning); }

.feedback-card-date {
    font-size: 0.78rem;
    color: var(--color-text-muted, #6b7280);
}

.feedback-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}
.feedback-card-colaborador {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text, #111);
}
.feedback-card-autor {
    font-size: 0.8rem;
    color: var(--color-text-muted, #6b7280);
}
.feedback-card-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-secondary, #374151);
    margin: 0.25rem 0 0;
    line-height: 1.5;
}
.feedback-card-icons {
    font-size: 0.95rem;
    display: flex;
    gap: 0.4rem;
    margin-top: 0.35rem;
}
.feedback-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
}

/* Seletor de número de pessoas */
.btn-num-pessoas {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 2px solid var(--color-border, #e5e7eb);
    background: var(--color-surface, #fff);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted, #6b7280);
    transition: all 0.15s;
}
.btn-num-pessoas:hover { border-color: var(--color-primary, #0ea5e9); color: var(--color-primary, #0ea5e9); }
.btn-num-pessoas.active {
    background: var(--color-primary, #0ea5e9);
    border-color: var(--color-primary, #0ea5e9);
    color: #fff;
}

/* Tipo selector (modal) */
.feedback-tipo-selector {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}
.feedback-tipo-btn {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 2px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    background: var(--color-surface, #fff);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.18s;
    color: var(--color-text, #111);
}
.feedback-tipo-btn:hover { border-color: var(--color-primary, #0ea5e9); }
.feedback-tipo-btn[data-tipo="POSITIVO"].active {
    background: #e8f5e9;
    border-color: #2e7d32;
    color: #2e7d32;
}
.feedback-tipo-btn[data-tipo="A_MELHORAR"].active {
    background: #fff8e1;
    border-color: #e65100;
    color: #e65100;
}

/* Gravador */
.feedback-recorder-box {
    background: #f9fafb;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 0.25rem;
}
.recorder-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.btn-gravar {
    padding: 0.6rem 1.3rem;
    border-radius: 8px;
    border: none;
    background: var(--color-primary, #0ea5e9);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.btn-gravar:hover { filter: brightness(1.1); }
.btn-gravar:active { transform: scale(0.97); }
.btn-gravar.gravando {
    background: #e53935;
    animation: pulse-record 1.4s ease-in-out infinite;
}
.recorder-timer {
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-muted, #6b7280);
}
.btn-importar-audio {
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    border: 1.5px dashed var(--color-border, #d1d5db);
    background: #fff;
    color: var(--color-text, #374151);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}
.btn-importar-audio:hover {
    border-color: var(--color-primary, #0ea5e9);
    background: #f0f9ff;
    color: var(--color-primary, #0ea5e9);
}
.feedback-upload-nome {
    font-size: 0.8rem;
    color: #059669;
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gravando-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #e53935;
    font-weight: 600;
    margin-top: 0.6rem;
}
.gravando-dot {
    width: 8px;
    height: 8px;
    background: #e53935;
    border-radius: 50%;
    animation: pulse-record 1s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse-record {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}
.transcricao-container { margin-top: 0.85rem; }
.transcricao-live {
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    min-height: 56px;
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.6;
    color: var(--color-text, #111);
}

/* Filtros de tipo */
.btn-filter-feedback {
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--color-border, #e5e7eb);
    background: transparent;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-muted, #6b7280);
    transition: all 0.15s;
}
.btn-filter-feedback:hover,
.btn-filter-feedback.active {
    background: var(--color-primary, #0ea5e9);
    border-color: var(--color-primary, #0ea5e9);
    color: #fff;
}

/* Status da transcrição AssemblyAI */
.feedback-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.4rem;
}
.feedback-status-badge.processando {
    background: color-mix(in oklab, var(--brand) 12%, transparent);
    color: var(--brand-deep);
}

/* Badge animado GERANDO TRANSCRIÇÃO */
.feedback-gerando-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.35rem 0.85rem 0.35rem 0.6rem;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}
.feedback-gerando-dots {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}
.feedback-gerando-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    animation: dot-bounce 1.2s ease-in-out infinite;
}
.feedback-gerando-dots span:nth-child(2) { animation-delay: 0.2s; }
.feedback-gerando-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-bounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}
.feedback-status-badge.concluida {
    background: color-mix(in oklab, var(--ok) 12%, transparent);
    color: var(--ok);
}
.feedback-status-badge.erro {
    background: color-mix(in oklab, var(--danger) 12%, transparent);
    color: var(--danger);
}

/* ===== JORNADA DE TRABALHO ===== */
.jornada-config-section {
    background: #f8fafc;
    border: 1.5px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-top: 0.25rem;
}
.jornada-config-header {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-text, #1e293b);
    margin-bottom: 0.85rem;
}
.jornada-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}
.jornada-preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    border: 1.5px solid var(--color-border, #e5e7eb);
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text, #374151);
    transition: all 0.15s;
    min-width: 68px;
}
.jornada-preset-btn span {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--color-text-muted, #6b7280);
    white-space: nowrap;
}
.jornada-preset-btn:hover {
    border-color: var(--color-primary, #0ea5e9);
    background: #f0f9ff;
    color: var(--color-primary, #0ea5e9);
}
.jornada-preset-btn.active {
    border-color: var(--color-primary, #0ea5e9);
    background: var(--color-primary, #0ea5e9);
    color: #fff;
}
.jornada-preset-btn.active span { color: rgba(255,255,255,0.8); }
.jornada-config-fields {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.jornada-config-fields.hidden { display: none; }
.jornada-dias-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.jornada-dia-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border, #e5e7eb);
    background: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--color-text-muted, #6b7280);
    transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.jornada-dia-btn.active {
    background: var(--color-primary, #0ea5e9);
    border-color: var(--color-primary, #0ea5e9);
    color: #fff;
}
.jornada-dia-btn.folga {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    text-decoration: line-through;
}
.jornada-horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.65rem;
}
.jornada-ciclo-row {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
}
.jornada-ciclo-row.hidden { display: none; }
.jornada-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    background: var(--panel-2);
    color: var(--muted);
    border: 1px solid var(--line);
}

/* ===== PAINEL DE DIVERGÊNCIAS ===== */
.div-kpi-card {
    background: #f8fafc;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
}
.div-kpi-icon { font-size: 1.3rem; }
.div-kpi-valor { font-size: 1.6rem; font-weight: 800; color: var(--color-text); line-height: 1; }
.div-kpi-label { font-size: 0.72rem; color: var(--color-text-muted); font-weight: 500; }

.div-row { display: flex; flex-direction: column; gap: 0.5rem; }
.div-colaborador-bloco { border: 1px solid var(--color-border,#e5e7eb); border-radius: 10px; overflow: hidden; }
.div-colaborador-header {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: #f1f5f9;
    font-weight: 700; font-size: 0.875rem; cursor: pointer;
}
.div-colaborador-header:hover { background: #e2e8f0; }
.div-itens { padding: 0.5rem; display: flex; flex-direction: column; gap: 0.35rem; }
.div-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    font-size: 0.83rem;
    background: #fff;
    border: 1px solid var(--color-border,#e5e7eb);
}
.div-item.grave  { border-left: 4px solid #ef4444; background:#fff5f5; }
.div-item.medio  { border-left: 4px solid #f59e0b; background:#fffbeb; }
.div-item.leve   { border-left: 4px solid #6366f1; background:#f5f3ff; }
.div-item.info   { border-left: 4px solid #3b82f6; background:#eff6ff; }
.div-item-data   { font-weight: 700; color: var(--color-text-muted); font-size:0.78rem; white-space:nowrap; }
.div-item-desc   { color: var(--color-text); }
.div-item-hora   { font-size: 0.75rem; color: var(--color-text-muted); white-space: nowrap; text-align:right; }
.div-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.15rem 0.55rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.div-badge.falta         { background:#fee2e2; color:#b91c1c; }
.div-badge.atraso_entrada{ background:#fef3c7; color:#92400e; }
.div-badge.saida_antecipada{ background:#ffedd5; color:#9a3412; }
.div-badge.hora_extra    { background:#dbeafe; color:#1e40af; }
.div-badge.almoco_longo  { background:#fce7f3; color:#9d174d; }

/* ===== STATUS DA EQUIPE AGORA ===== */
.status-equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

/* Card redesenhado — layout vertical */
.status-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: var(--panel);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
}
.status-card:hover { box-shadow: var(--shadow-brand); transform: translateY(-2px); border-color: var(--brand); }

/* Faixa colorida no topo */
.status-card-bar {
    height: 4px;
    width: 100%;
    flex-shrink: 0;
}
.status-card.ativo   .status-card-bar { background: #22c55e; }
.status-card.folga   .status-card-bar { background: #94a3b8; }
.status-card.aguard  .status-card-bar { background: #f59e0b; }
.status-card.encerrou .status-card-bar { background: #6366f1; }

/* Corpo do card */
.status-card-body {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem 0.75rem;
}

.status-card-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--line-strong);
}
.status-card-avatar-placeholder {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.05rem;
    flex-shrink: 0;
}
.status-card-info {
    flex: 1;
    min-width: 0;
}
.status-card-nome {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.3;
    word-break: break-word;
}
.status-card-cargo {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.15rem;
    line-height: 1.3;
}
.status-card-jornada {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--brand-strong);
    margin-top: 0.25rem;
}

/* Rodapé com status */
.status-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem 0.8rem;
    border-top: 1px solid var(--line);
}
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot.ativo   { background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; animation: pulse-green 2s infinite; }
.status-dot.folga   { background: #94a3b8; }
.status-dot.aguard  { background: #f59e0b; }
.status-dot.encerrou{ background: #6366f1; }

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 3px #dcfce7; }
    50%       { box-shadow: 0 0 0 6px #bbf7d0; }
}

.status-card-status-label {
    font-weight: 700;
    font-size: 0.82rem;
    flex: 1;
}
.status-card.ativo    .status-card-status-label { color: #22c55e; }
.status-card.folga    .status-card-status-label { color: var(--muted); }
.status-card.aguard   .status-card-status-label { color: #f59e0b; }
.status-card.encerrou .status-card-status-label { color: #818cf8; }

.status-card-horario {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    white-space: nowrap;
}
.status-resumo-bar {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.status-resumo-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
}
.status-resumo-item strong { color: var(--color-text); font-size: 1rem; }

/* ===== INDICADORES ===== */
.ind-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid var(--color-border, #e5e7eb);
    margin-bottom: 1.25rem;
}
.ind-tab {
    padding: 0.55rem 1.1rem;
    border: none;
    background: none;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 6px 6px 0 0;
    transition: all 0.15s;
}
.ind-tab:hover { color: var(--color-text); background: #f8fafc; }
.ind-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); background: #f0f9ff; }

/* Dark mode — abas */
[data-theme="dark"] .ind-tabs { border-bottom-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .ind-tab { color: #8ba89e; }
[data-theme="dark"] .ind-tab:hover { background: #152920; color: #c9e8df; }
[data-theme="dark"] .ind-tab.active { background: #1a3529; color: #00bfa6; border-bottom-color: #00bfa6; }
.ind-tab-content { }
.ind-tab-content.hidden { display: none; }

.ind-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.ind-kpi-card {
    background: #fff;
    border: 1.5px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.ind-kpi-icone { font-size: 1.5rem; }
.ind-kpi-nome { font-size: 0.84rem; font-weight: 500; color: var(--color-text-muted); }
.ind-kpi-valor { font-size: 1.6rem; font-weight: 800; color: var(--color-text); line-height: 1.1; }
.ind-kpi-unidade { font-size: 0.78rem; font-weight: 500; color: var(--color-text-muted); }
.ind-kpi-meta { font-size: 0.72rem; margin-top: 0.25rem; }
.ind-kpi-meta.ok { color: #16a34a; }
.ind-kpi-meta.nok { color: #dc2626; }

.ind-alerta-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid #f97316;
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
}
.ind-alerta-titulo { font-weight: 700; font-size: 0.875rem; color: #9a3412; margin-bottom: 0.5rem; }
.ind-alerta-itens { display: flex; flex-direction: column; gap: 0.3rem; }
.ind-alerta-item { font-size: 0.82rem; color: #7c2d12; display: flex; align-items: center; gap: 0.5rem; }

.ind-ranking-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.3rem;
    background: #f8fafc;
    border: 1px solid var(--color-border, #e5e7eb);
    color: #0f172a;
}
.ind-ranking-pos  { font-size: 1.1rem; min-width: 28px; text-align: center; color: #475569; }
.ind-ranking-nome { flex: 1; font-weight: 600; font-size: 0.83rem; color: #0f172a; }
.ind-ranking-valor { font-weight: 800; font-size: 0.95rem; color: var(--color-primary); }
.ind-ranking-bar-wrap { width: 80px; height: 6px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.ind-ranking-bar { height: 100%; border-radius: 99px; background: var(--color-primary); transition: width 0.6s; }
.ind-ranking-item:nth-child(1) { background: #fefce8; border-color: #fde047; color: #0f172a; }
.ind-ranking-item:nth-child(2) { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
.ind-ranking-item:nth-child(3) { background: #fff7ed; border-color: #fdba74; color: #0f172a; }

/* dark mode */
[data-theme="dark"] .ind-ranking-item { background: #132318; border-color: rgba(255,255,255,0.08); color: #e2e8f0; }
[data-theme="dark"] .ind-ranking-item:nth-child(1) { background: #1e2a12; border-color: rgba(250,204,21,0.35); color: #fef9c3; }
[data-theme="dark"] .ind-ranking-item:nth-child(2) { background: #132318; border-color: rgba(203,213,225,0.2); color: #e2e8f0; }
[data-theme="dark"] .ind-ranking-item:nth-child(3) { background: #1e1a0e; border-color: rgba(251,146,60,0.35); color: #fed7aa; }
[data-theme="dark"] .ind-ranking-pos  { color: #64748b; }
[data-theme="dark"] .ind-ranking-nome { color: #e2e8f0; }
[data-theme="dark"] .ind-ranking-bar-wrap { background: rgba(255,255,255,0.08); }

.ind-grid-2 { }
@media (max-width: 768px) { .ind-grid-2 { grid-template-columns: 1fr !important; } }

.ind-radio { display: flex; align-items: center; gap: 0.4rem; font-size: 0.83rem; cursor: pointer; }
.ind-conf-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--color-border, #e5e7eb);
    margin-bottom: 0.5rem;
    background: #fff;
}
.ind-conf-icone { font-size: 1.4rem; }
.ind-conf-info { flex: 1; }
.ind-conf-nome { font-weight: 700; font-size: 0.875rem; }
.ind-conf-meta { font-size: 0.75rem; color: var(--color-text-muted); }
[data-theme="dark"] .ind-conf-item { background: #132318; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .ind-conf-nome { color: #e2e8f0; }

/* ===== GRID DE LANÇAMENTO ===== */
.ind-lancar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.ind-grid-overflow {
    overflow-x: auto;
    border-radius: 10px;
    border: 1.5px solid var(--color-border, #e5e7eb);
}
.ind-lancar-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}
.ind-lancar-table thead tr {
    background: #f1f5f9;
}
[data-theme="dark"] .ind-lancar-table thead tr {
    background: #0a1a15;
}
[data-theme="dark"] .ind-lancar-table th {
    color: #7ab8a8;
    border-bottom-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .ind-grid-overflow {
    border-color: rgba(255,255,255,0.08);
}
.ind-lancar-table th {
    padding: 0.9rem 1.1rem;
    text-align: left;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
    border-bottom: 1.5px solid var(--color-border, #e5e7eb);
}
.ind-lancar-table th small {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.73rem;
    display: block;
    margin-top: 0.15rem;
    color: #94a3b8;
}
.ind-col-provedor {
    min-width: 210px;
}
/* Linhas alternadas para facilitar leitura */
.ind-lancar-table tbody tr:nth-child(even) { background: #f8fafc; }
.ind-lancar-table tbody tr {
    border-bottom: 1px solid var(--color-border, #e8eef2);
    transition: background 0.12s;
}
.ind-lancar-table tbody tr:last-child { border-bottom: none; }
.ind-lancar-table tbody tr:hover { background: #eef6ff !important; }

/* Dark mode — linhas com verde escuro alternado */
[data-theme="dark"] .ind-lancar-table tbody tr {
    background: #0e1f1a;
    border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .ind-lancar-table tbody tr:nth-child(even) {
    background: #152920;
}
[data-theme="dark"] .ind-lancar-table tbody tr:hover {
    background: #1a3529 !important;
}
[data-theme="dark"] .ind-input {
    background: #0e1f1a;
    border-color: rgba(255,255,255,0.12);
    color: #e2f5ee;
}
[data-theme="dark"] .ind-input:focus {
    border-color: #00bfa6;
    box-shadow: 0 0 0 3px rgba(0,191,166,0.15);
}
.ind-lancar-table td {
    padding: 0.85rem 1.1rem;
    vertical-align: middle;
}
.ind-td-provedor {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
/* Subtítulo (sobrenome) do atendente */
.ind-td-sobrenome {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: 0.1rem;
}
.ind-td-provedor-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-primary, #0ea5e9);
    flex-shrink: 0;
}
.ind-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    -moz-appearance: textfield;
    max-width: 130px;
    min-width: 90px;
}
.ind-input::-webkit-outer-spin-button,
.ind-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ind-input:focus {
    outline: none;
    border-color: var(--color-primary, #0ea5e9);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.ind-input::placeholder { color: #cbd5e1; font-weight: 400; }

.ind-prov-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--color-border, #e5e7eb);
    margin-bottom: 0.4rem;
    background: #fff;
}
.ind-prov-nome { flex: 1; font-weight: 600; font-size: 0.875rem; }
.ind-prov-ordem { font-size: 0.75rem; color: var(--color-text-muted); min-width: 60px; }

/* ===== PILLS DE ATENDENTE ===== */
.ind-atendente-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem 0.35rem 0.45rem;
    border-radius: 999px;
    border: 1.5px solid var(--color-border, #e5e7eb);
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.ind-atendente-pill:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: color-mix(in oklab, var(--brand) 8%, transparent);
}
.ind-atendente-pill.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

/* ===== JORNADA PERSONALIZADA POR DIA ===== */
.jornada-per-dia {
    border: 1.5px solid #bae6fd;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f9ff;
}
.jornada-per-dia.hidden { display: none; }
.jornada-per-dia-header {
    display: grid;
    grid-template-columns: 56px 90px 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: var(--panel-2);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}
.jornada-per-dia-row {
    display: grid;
    grid-template-columns: 56px 90px 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-top: 1px solid var(--line);
    transition: background 0.1s;
}
.jornada-per-dia-row:hover { background: var(--panel-2); }
.jornada-per-dia-row.folga { opacity: 0.45; }
.jornada-per-dia-nome {
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--ink);
}
.jornada-per-dia-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    cursor: pointer;
}
.jornada-per-dia-toggle input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: var(--color-primary, #0ea5e9);
    cursor: pointer;
}
.jornada-per-dia-input {
    width: 100%;
    padding: 0.3rem 0.4rem;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    font-size: 0.82rem;
    background: #fff;
    color: var(--color-text);
    transition: border-color 0.15s;
}
.jornada-per-dia-input:focus {
    outline: none;
    border-color: var(--color-primary, #0ea5e9);
}
.jornada-per-dia-input:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: transparent;
}
@media (max-width: 600px) {
    .jornada-per-dia-header { grid-template-columns: 50px 70px 1fr 1fr; }
    .jornada-per-dia-header span:nth-child(5),
    .jornada-per-dia-header span:nth-child(6) { display: none; }
    .jornada-per-dia-row { grid-template-columns: 50px 70px 1fr 1fr; }
    .jornada-per-dia-row > *:nth-child(5),
    .jornada-per-dia-row > *:nth-child(6) { display: none; }
}

/* ===== DASHBOARD PROFISSIONAIS ===== */
.dash-filtros { padding:1rem 1.25rem; margin-bottom:1rem; }
.dash-filtros-inner {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.dash-filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.dash-filtro-grupo label {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--color-text-muted);
}
.dash-filtro-grupo select,
.dash-filtro-grupo input[type="date"] {
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    border: 1.5px solid var(--color-border, #e5e7eb);
    font-size: 0.875rem;
    background: #fff;
    color: var(--color-text);
    min-width: 160px;
}

.dash-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════════
   DASH KPI CARD — v3 (Stripe / Linear style)
   ══════════════════════════════════════════ */
.dash-kpi-card--v2 {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 18px;
    padding: 1.6rem 1.7rem 1.35rem;
    min-height: 175px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
    cursor: default;
}
.dash-kpi-card--v2:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.09), 0 1px 3px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
/* Glow sutil colorido no hover */
.dash-kpi-card--v2::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: inset 0 0 0 1.5px var(--dash-cor, #6366f1);
}
.dash-kpi-card--v2:hover::after { opacity: 0.4; }

/* Faixa colorida no topo */
.dkv2-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dash-cor, #6366f1), var(--dash-cor, #6366f1)88);
    border-radius: 16px 16px 0 0;
}
.dkv2-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.dkv2-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.dkv2-icon-circle {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--dash-cor, #6366f1) 12%, transparent);
}
.dkv2-status {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.55rem;
    border-radius: 99px;
    white-space: nowrap;
    line-height: 1.5;
}
.dkv2-status.ok  { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.dkv2-status.nok { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.dkv2-status.nd  { background: #f8fafc; color: #94a3b8; border: 1px solid #e2e8f0; }

.dkv2-nome {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}
.dkv2-valor-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.dkv2-valor {
    font-size: 2.6rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    transition: color 0.2s;
}
/* Número verde quando meta atingida */
.dkv2-valor--ok  { color: #059669; }
/* Número vermelho quando meta não atingida */
.dkv2-valor--nok { color: #dc2626; }

.dkv2-unidade {
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    padding-bottom: 0.25rem;
}
.dkv2-progress-wrap { margin-top: auto; padding-top: 0.25rem; }
.dkv2-progress-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}
.dkv2-progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.7s cubic-bezier(.4,0,.2,1), background 0.3s;
    background: var(--dash-cor, #6366f1);
    opacity: 0.9;
}
.dkv2-progress-label {
    font-size: 0.69rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
}
.dkv2-progress-label.nd { font-style: italic; }

/* ── dark mode ── */
[data-theme="dark"] .dash-kpi-card--v2 {
    background: #101e18;
    border-color: rgba(255,255,255,0.07);
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
[data-theme="dark"] .dash-kpi-card--v2:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}
[data-theme="dark"] .dkv2-valor:not(.dkv2-valor--ok):not(.dkv2-valor--nok) { color: #f0fdf4; }
[data-theme="dark"] .dkv2-valor--ok  { color: #34d399; }
[data-theme="dark"] .dkv2-valor--nok { color: #f87171; }
[data-theme="dark"] .dkv2-nome  { color: #4b7a62; }
[data-theme="dark"] .dkv2-unidade { color: #6b9e82; }
[data-theme="dark"] .dkv2-progress-bar { background: rgba(255,255,255,0.07); }
[data-theme="dark"] .dkv2-status.ok  { background: rgba(5,150,105,0.18); color: #34d399; border-color: rgba(52,211,153,0.2); }
[data-theme="dark"] .dkv2-status.nok { background: rgba(220,38,38,0.18); color: #f87171; border-color: rgba(248,113,113,0.2); }
[data-theme="dark"] .dkv2-status.nd  { background: rgba(148,163,184,0.1); color: #94a3b8; border-color: rgba(148,163,184,0.15); }

/* ── Legenda de provedores nos gráficos ── */
.dash-prov-legend {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
/* Filtro de provedor por pills com logo */
.dash-filtro-grupo--prov { flex-direction: column; align-items: flex-start; gap: 0.4rem; flex-basis: 100%; }
.dash-prov-filtro-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.dash-prov-fpill {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.5rem 1rem; border-radius: 14px;
    border: 1.5px solid var(--color-border);
    background: var(--panel); color: var(--color-text);
    font-size: 0.9rem; font-weight: 600; cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.dash-prov-fpill:hover { border-color: var(--brand); }
.dash-prov-fpill.ativo {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: none;
}
.dash-prov-fpill img { height: 40px; max-width: 96px; object-fit: contain; border-radius: 4px; }
.dash-prov-fpill-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }

/* Ranking Principal (pontuação composta) */
.rp-explica {
    font-size: 0.8rem; color: var(--color-text-muted);
    background: var(--panel); border: 1px solid var(--color-border);
    border-radius: 10px; padding: 0.6rem 0.85rem; margin-bottom: 1.5rem; line-height: 1.45;
}
.rp-breakdown { display: flex; flex-wrap: wrap; gap: 0.25rem; justify-content: center; margin-top: 0.4rem; }
.dash-ranking-item .rp-breakdown { justify-content: flex-start; margin-top: 0.2rem; }
.rp-chip {
    font-size: 0.66rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 6px;
    background: var(--color-border); color: var(--color-text); white-space: nowrap;
}

/* ===== RANKING DE TALENTOS (bonificação) ===== */
.talentos-bonus-grid {
    display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0.9rem; align-items: end;
}
.talentos-bonus-field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; }
.tb-input { display: flex; align-items: center; gap: 0.35rem; border: 1.5px solid var(--color-border); border-radius: 10px; padding: 0 0.6rem; background: var(--panel); }
.tb-input i { font-style: normal; font-weight: 700; color: var(--color-text-muted); font-size: 0.82rem; }
.tb-input input { border: none; outline: none; background: transparent; color: var(--color-text); font-size: 1rem; font-weight: 700; padding: 0.55rem 0; width: 100%; }
.talentos-bonus-badge {
    margin-top: 0.4rem; font-weight: 800; font-size: 0.92rem; color: #15803d;
    background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 99px; padding: 0.15rem 0.7rem;
}
[data-theme="dark"] .talentos-bonus-badge { color: #4ade80; background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.4); }

.talentos-hist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 760px) { .talentos-hist-grid, .talentos-bonus-grid { grid-template-columns: 1fr; } }

.talentos-fama-row { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); }
.talentos-fama-row:last-child { border-bottom: none; }
.talentos-fama-pos { min-width: 28px; text-align: center; font-weight: 800; font-size: 0.95rem; }
.talentos-fama-pts { font-weight: 800; color: var(--brand); font-size: 0.9rem; }

.talentos-hist-mes { padding: 0.65rem 0; border-bottom: 1px solid var(--color-border); }
.talentos-hist-mes:last-child { border-bottom: none; }
.talentos-hist-mes-label { font-size: 0.84rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 0.35rem; }
.talentos-hist-row { font-size: 0.86rem; padding: 0.12rem 0; }

/* ===== SAÚDE MENTAL & BEM-ESTAR ===== */
.saude-kpi { background: var(--panel); border: 1px solid var(--color-border); border-radius: 14px; padding: 1rem 1.1rem; }
.saude-kpi-ic { font-size: 1.3rem; }
.saude-kpi-val { font-size: 1.5rem; font-weight: 800; margin-top: 0.2rem; color: var(--color-text); }
.saude-kpi-lbl { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 0.1rem; }
.saude-alerta-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0; border-bottom: 1px solid var(--color-border); }
.saude-alerta-row:last-child { border-bottom: none; }
.saude-badge { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 800; padding: 0.18rem 0.6rem; border-radius: 99px; background: var(--color-border); color: var(--color-text-muted); }
.saude-badge--ok { background: #16a34a22; color: #16a34a; }
.saude-acao-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); }
.saude-acao-row:last-child { border-bottom: none; }
.saude-apoio-card { border: 1px solid var(--color-border); border-radius: 12px; padding: 0.85rem 1rem; margin-bottom: 0.75rem; background: var(--panel); }
.dash-prov-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.6rem 0.28rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    white-space: nowrap;
    line-height: 1;
}
.dash-prov-pill-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dash-prov-pill img {
    height: 16px;
    max-width: 48px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}
.dash-prov-pill-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    background: transparent;
    color: var(--muted);
    border: 1px dashed var(--line-strong);
    white-space: nowrap;
}

/* legacy selectors (caso ainda usados) */
.dash-kpi-icone { font-size: 1.4rem; margin-bottom: 0.4rem; display: block; }
.dash-kpi-nome { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: 0.25rem; }
.dash-kpi-valor { font-size: 1.75rem; font-weight: 800; color: var(--color-text); line-height: 1; }
.dash-kpi-unidade { font-size: 0.8rem; font-weight: 500; color: var(--color-text-muted); margin-left: 0.2rem; }
.dash-kpi-sub { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.35rem; display: flex; align-items: center; gap: 0.3rem; }
.dash-kpi-sub.ok  { color: #16a34a; }
.dash-kpi-sub.nok { color: #dc2626; }

.dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 900px) { .dash-grid-2 { grid-template-columns: 1fr; } }

.dash-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.dash-panel-header h3 { margin: 0; font-size: 1rem; }

/* Chart eyebrow label + big title */
.dash-chart-eyebrow {
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    opacity: 0.9;
}
.dash-chart-eyebrow.eyebrow-atend { color: #3b82f6; }
.dash-chart-eyebrow.eyebrow-tma   { color: #f59e0b; }
.dash-chart-eyebrow.eyebrow-tme   { color: #8b5cf6; }
.dash-chart-eyebrow.eyebrow-nps   { color: #22c55e; }
.dash-chart-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.1rem;
    color: var(--color-text);
    line-height: 1.25;
}

.dash-ranking-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.35rem;
    background: #f8fafc;
    border: 1px solid var(--color-border, #e5e7eb);
    color: #0f172a;
}
.dash-ranking-item:nth-child(1) { background: #fefce8; border-color: #fde047; color: #0f172a; }
.dash-ranking-item:nth-child(2) { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
.dash-ranking-item:nth-child(3) { background: #fff7ed; border-color: #fdba74; color: #0f172a; }
.dash-ranking-pos { font-size: 1.1rem; min-width: 28px; text-align: center; color: #475569; }
.dash-ranking-nome { flex: 1; font-weight: 700; font-size: 0.85rem; color: #0f172a; }
.dash-ranking-bar-wrap { width: 70px; height: 5px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.dash-ranking-bar { height: 100%; border-radius: 99px; transition: width 0.6s; }
.dash-ranking-valor { font-weight: 800; font-size: 0.95rem; min-width: 55px; text-align: right; color: #0ea5e9; }

/* dark mode ranking */
[data-theme="dark"] .dash-ranking-item { background: #132318; border-color: rgba(255,255,255,0.08); color: #e2e8f0; }
[data-theme="dark"] .dash-ranking-item:nth-child(1) { background: #1e2a12; border-color: rgba(250,204,21,0.35); color: #fef9c3; }
[data-theme="dark"] .dash-ranking-item:nth-child(2) { background: #132318; border-color: rgba(203,213,225,0.2); color: #e2e8f0; }
[data-theme="dark"] .dash-ranking-item:nth-child(3) { background: #1e1a0e; border-color: rgba(251,146,60,0.35); color: #fed7aa; }
[data-theme="dark"] .dash-ranking-pos  { color: #64748b; }
[data-theme="dark"] .dash-ranking-nome { color: #e2e8f0; }
[data-theme="dark"] .dash-ranking-valor { color: #38bdf8; }
[data-theme="dark"] .dash-ranking-bar-wrap { background: rgba(255,255,255,0.08); }

/* ── Pódio ─────────────────────────────────────────────────────────────────── */
.dash-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 4rem 0;
}
.dash-podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 260px;
}
.dash-podium-avatar {
    width: 88px; height: 88px; border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e2e8f0;
    margin-bottom: 0.65rem;
    font-size: 2rem;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
}
.dash-podium-nome {
    font-weight: 700; font-size: 1.05rem;
    text-align: center; margin-bottom: 0.25rem;
    line-height: 1.2;
}
.dash-podium-valor {
    font-size: 0.88rem; color: var(--color-text-muted);
    margin-bottom: 0.7rem; text-align: center;
    font-weight: 600;
}
.dash-podium-base {
    width: 100%; border-radius: 14px 14px 0 0;
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 1rem;
    font-size: 2rem;
    transition: height 0.5s ease;
}
.dash-podium-slot:nth-child(1) .dash-podium-base { height: 130px; background: linear-gradient(180deg,#94a3b8,#64748b); } /* 2º */
.dash-podium-slot:nth-child(2) .dash-podium-base { height: 200px; background: linear-gradient(180deg,#fbbf24,#d97706); } /* 1º */
.dash-podium-slot:nth-child(3) .dash-podium-base { height: 100px; background: linear-gradient(180deg,#fb923c,#ea580c); } /* 3º */
.dash-podium-slot:nth-child(2) .dash-podium-avatar { width: 110px; height: 110px; border-color: #fbbf24; border-width: 4px; box-shadow: 0 8px 28px rgba(251,191,36,0.45); }
.dash-podium-slot:nth-child(2) .dash-podium-nome  { font-size: 1.25rem; font-weight: 800; }
.dash-podium-slot:nth-child(2) .dash-podium-valor { font-size: 1rem; }
.dash-podium-empty { text-align:center; color:var(--color-text-muted); font-size:0.85rem; padding:1rem 0; }

.dash-alerta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
}
.dash-alerta-nome { font-weight: 700; color: var(--color-text); }
.dash-alerta-detalhe { color: #dc2626; font-size: 0.78rem; margin-top: 0.1rem; }

/* ===== INDICADORES — LAYOUT COMPACTO ===== */
.ind-lancar-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.ind-lancar-prov-bloco {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}
.ind-lancar-prov-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.ind-lancar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.ind-lancar-date {
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    border: 1.5px solid var(--color-border, #e5e7eb);
    font-size: 0.85rem;
    font-weight: 600;
    background: #fff;
    color: var(--color-text);
}

/* Pills de provedor mais compactas */
.ind-atendente-pill {
    padding: 0.25rem 0.7rem 0.25rem 0.4rem;
    font-size: 0.78rem;
}

/* Tabela de lançamento mais compacta */
.ind-lancar-table th {
    padding: 0.65rem 0.85rem;
    font-size: 0.74rem;
}
.ind-lancar-table th small {
    font-size: 0.67rem;
}
.ind-lancar-table td {
    padding: 0.6rem 0.85rem;
}
.ind-input {
    padding: 0.5rem 0.5rem;
    font-size: 0.92rem;
    max-width: 110px;
    min-width: 78px;
}
.ind-td-provedor {
    font-size: 0.9rem;
    gap: 0.55rem;
}

/* Tabs mais compactas */
#section-indicadores .ind-tabs {
    margin-bottom: 0.75rem;
}
#section-indicadores .ind-tab {
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
}

/* Aviso inline */
#ind-lancar-aviso {
    margin-top: 0.4rem !important;
    margin-bottom: 0 !important;
}

/* Input com dados já salvos no banco */
.ind-input.ind-input-salvo {
    border: 2.5px solid #16a34a;
    background: #dcfce7;
    color: #14532d;
    font-weight: 900;
}
.ind-input.ind-input-salvo:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
    background: #fff;
    color: var(--color-text);
}

/* Dark mode — input salvo: verde fluorescente forte */
[data-theme="dark"] .ind-input.ind-input-salvo {
    background: #003d1a;
    border: 2.5px solid #00ff88;
    color: #00ff88;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(0,255,136,0.7);
    box-shadow: 0 0 0 3px rgba(0,255,136,0.3), inset 0 0 12px rgba(0,255,136,0.15);
}
[data-theme="dark"] .ind-input.ind-input-salvo:focus {
    background: #004d20;
    border-color: #00ff88;
    box-shadow: 0 0 0 4px rgba(0,255,136,0.4);
    color: #00ff88;
}

/* Input com valor digitado na sessão atual (ainda não salvo) */
.ind-input.ind-input-digitado {
    border: 2.5px solid #d97706;
    background: #fef3c7;
    color: #78350f;
    font-weight: 900;
    box-shadow: 0 0 0 3px rgba(217,119,6,0.2);
}
[data-theme="dark"] .ind-input.ind-input-digitado {
    background: #2d1a00;
    border: 2.5px solid #fbbf24;
    color: #fde68a;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(251,191,36,0.7);
    box-shadow: 0 0 0 3px rgba(251,191,36,0.3), inset 0 0 12px rgba(251,191,36,0.12);
}

/* Input de tempo HH:MM:SS (TMA) */
.ind-input-time {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    text-align: center;
}
.ind-input-time::placeholder {
    font-family: inherit;
    letter-spacing: 0.03em;
    color: #cbd5e1;
}

/* ===== CARDS DE METAS ===== */
.meta-card {
    background: var(--panel, #fff);
    border: 1.5px solid var(--line, #e2ebe9);
    border-radius: 14px;
    padding: 1.1rem 1.1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.meta-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    border-color: var(--brand, #00bfa6);
}
.meta-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.meta-card-icone {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}
.meta-card-nome {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink, #0c1714);
}
.meta-card-atual {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.15rem;
}
.meta-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.meta-card-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.meta-card-label {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--muted, #5f7c75);
}
.meta-card-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--line-strong, #c2d4d0);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--panel, #fff);
    color: var(--ink, #0c1714);
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.meta-card-input:focus {
    outline: none;
    border-color: var(--brand, #00bfa6);
    box-shadow: 0 0 0 3px rgba(0,191,166,0.14);
}
/* Segmented control de critério */
.meta-seg {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.meta-seg-btn {
    padding: 0.35rem 0.7rem;
    border-radius: 7px;
    border: 1.5px solid var(--line-strong, #c2d4d0);
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted, #5f7c75);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.meta-seg-btn.on {
    background: var(--brand, #00bfa6);
    border-color: var(--brand, #00bfa6);
    color: #fff;
}
.meta-seg-btn:hover:not(.on) {
    border-color: var(--brand, #00bfa6);
    color: var(--brand, #00bfa6);
}
/* Botão salvar */
.meta-card-save {
    width: 100%;
    padding: 0.55rem;
    border-radius: 9px;
    border: none;
    background: var(--brand, #00bfa6);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    margin-top: auto;
}
.meta-card-save:hover:not(:disabled) { opacity: 0.88; }
.meta-card-save:active:not(:disabled) { transform: scale(0.98); }
.meta-card-save:disabled { opacity: 0.5; cursor: not-allowed; }

/* Dark mode */
[data-theme="dark"] .meta-card { border-color: var(--line-strong); }
[data-theme="dark"] .meta-card-input { background: var(--panel-2); border-color: var(--line-strong); color: var(--ink); }
[data-theme="dark"] .meta-seg-btn { border-color: var(--line-strong); color: var(--muted); }

/* ===== BOTÃO LANÇAR DADOS ===== */
.btn-lancar-dados {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.35rem;
    border-radius: 10px;
    border: none;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    letter-spacing: -0.01em;
}
.btn-lancar-dados:hover:not(:disabled) {
    background: var(--brand-hover);
}
.btn-lancar-dados:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.btn-lancar-icon { font-size: 1rem; }
.btn-lancar-text { font-size: 0.875rem; }

/* ==========================================================
   DARK MODE — inputs, selects, textareas, options, charts
   ========================================================== */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--panel) !important;
    color: var(--ink) !important;
    border-color: var(--line-strong) !important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--muted) !important;
}
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    background: var(--panel-2) !important;
    border-color: var(--brand) !important;
}
[data-theme="dark"] option {
    background: #152823;
    color: #ecf7f3;
}
[data-theme="dark"] select option:checked {
    background: var(--brand-deep);
    color: var(--ink);
}
[data-theme="dark"] .feedback-select-colab,
[data-theme="dark"] .feedback-select-colab option {
    background: var(--panel) !important;
    color: var(--ink) !important;
    border-color: var(--line-strong) !important;
}

/* Light mode — inputs brancos legíveis */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #fff !important;
    color: #0c1714 !important;
    border-color: #c8dbd7 !important;
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: #7ab5a8 !important;
}
[data-theme="light"] option {
    background: #fff;
    color: #0c1714;
}

/* ==========================================================
   DARK MODE — Jornada de trabalho (preset buttons + section)
   ========================================================== */
[data-theme="dark"] .jornada-config-section {
    background: var(--panel) !important;
    border-color: var(--line-strong) !important;
}
[data-theme="dark"] .jornada-config-header {
    color: var(--ink) !important;
}
[data-theme="dark"] .jornada-preset-btn {
    background: var(--panel-2) !important;
    border-color: var(--line-strong) !important;
    color: var(--ink) !important;
}
[data-theme="dark"] .jornada-preset-btn span {
    color: var(--muted) !important;
}
[data-theme="dark"] .jornada-preset-btn:hover {
    background: var(--brand-deep) !important;
    border-color: var(--brand) !important;
    color: var(--ink) !important;
}
[data-theme="dark"] .jornada-preset-btn.active {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #021410 !important;
}
[data-theme="dark"] .jornada-preset-btn.active span {
    color: rgba(2,20,16,0.8) !important;
}

/* ══════════════════════════════════════════
   CREDENCIAIS — novo layout visual
   ══════════════════════════════════════════ */

/* Pills de provedor */
.cred-prov-pill {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.45rem 1rem; border-radius: 99px;
    border: 2px solid #e2e8f0; background: #f8fafc;
    font-size: 0.82rem; font-weight: 700; cursor: pointer;
    color: #475569; transition: all 0.18s;
}
.cred-prov-pill:hover { border-color: var(--cpill-cor,#6366f1); color: var(--cpill-cor,#6366f1); background: #fff; }
.cred-prov-pill.ativo {
    border-color: var(--cpill-cor,#6366f1);
    background: color-mix(in srgb, var(--cpill-cor,#6366f1) 10%, #fff);
    color: var(--cpill-cor,#6366f1);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cpill-cor,#6366f1) 20%, transparent);
}
[data-theme="dark"] .cred-prov-pill { background:#0e1f1a; border-color:rgba(255,255,255,0.1); color:#94a3b8; }
[data-theme="dark"] .cred-prov-pill:hover { border-color:var(--cpill-cor,#6366f1); color:var(--cpill-cor,#6366f1); }
[data-theme="dark"] .cred-prov-pill.ativo { background:color-mix(in srgb, var(--cpill-cor,#6366f1) 15%, #0e1f1a); }

/* Status bar */
.cred-stat {
    display: flex; flex-direction: column; align-items: center;
    padding: 0.6rem 1.25rem; border-radius: 12px; border: 1.5px solid;
    min-width: 90px;
}
.cred-stat--ok  { background:#f0fdf4; border-color:#bbf7d0; }
.cred-stat--nok { background:#fef2f2; border-color:#fecaca; }
.cred-stat--nd  { background:#f8fafc; border-color:#e2e8f0; }
.cred-stat-num  { font-size:1.6rem; font-weight:900; line-height:1; }
.cred-stat--ok  .cred-stat-num { color:#15803d; }
.cred-stat--nok .cred-stat-num { color:#dc2626; }
.cred-stat--nd  .cred-stat-num { color:#475569; }
.cred-stat-label { font-size:0.82rem; font-weight:600; margin-top:0.2rem; }
.cred-stat--ok  .cred-stat-label { color:#15803d; }
.cred-stat--nok .cred-stat-label { color:#dc2626; }
.cred-stat--nd  .cred-stat-label { color:#64748b; }

/* Blocos com / sem */
.cred-bloco-header {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 1rem; border-radius: 10px; margin-bottom: 0.75rem;
    font-size: 0.9rem; font-weight: 600;
}
.cred-bloco-header--nok { background:#fef2f2; color:#b91c1c; }
.cred-bloco-header--ok  { background:#f0fdf4; color:#15803d; }
.cred-bloco-badge { border-radius:99px; padding:0.15rem 0.65rem; font-size:0.8rem; font-weight:900; }
.cred-bloco-badge--nok { background:#dc2626; color:#fff; }
.cred-bloco-badge--ok  { background:#16a34a; color:#fff; }

/* Grid de cards */
.cred-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Card base */
.cred-card {
    border-radius: 14px; border: 2px solid; overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow 0.18s, transform 0.18s;
    background: #fff;
}
.cred-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.10); }
.cred-card--ok  { border-color: #bbf7d0; }
.cred-card--nok { border-color: #fecaca; }
[data-theme="dark"] .cred-card--ok  { background:#0b1e13; border-color:rgba(52,211,153,0.3); }
[data-theme="dark"] .cred-card--nok { background:#1e0b0b; border-color:rgba(248,113,113,0.3); }

.cred-card-top {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
}
.cred-card-avatar {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.cred-card-avatar--ini {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 900; border-radius: 50%;
}
.cred-card-info { flex: 1; min-width: 0; }
.cred-card-nome { font-weight: 800; font-size: 0.95rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cred-card-cargo { font-size: 0.75rem; color: #64748b; margin-top: 0.1rem; }
[data-theme="dark"] .cred-card-nome { color: #f0fdf4; }
[data-theme="dark"] .cred-card-cargo { color: #4b7a62; }

.cred-card-badge {
    font-size: 0.68rem; font-weight: 800; padding: 0.2rem 0.6rem;
    border-radius: 99px; white-space: nowrap; flex-shrink: 0;
}
.cred-card-badge--ok  { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.cred-card-badge--nok { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

/* Box de login (só cards verdes) */
.cred-card-login-box {
    background: #f8fafc; border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.4rem;
    flex: 1;
}
[data-theme="dark"] .cred-card-login-box { background:#0d1a12; border-color:rgba(255,255,255,0.07); }
.cred-card-login-row { display: flex; align-items: center; gap: 0.5rem; }
.cred-card-login-label {
    font-size: 0.8rem; font-weight: 500;
    color: var(--muted); width: 45px; flex-shrink: 0;
}
.cred-card-login-val {
    font-family: monospace; font-size: 0.82rem; background: #fff;
    padding: 0.15rem 0.5rem; border-radius: 5px; border: 1px solid #e2e8f0;
    color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px;
}
[data-theme="dark"] .cred-card-login-val { background:#132318; border-color:rgba(255,255,255,0.08); color:#a7f3d0; }
.cred-card-obs { font-size: 0.75rem; color: #64748b; margin-top: 0.25rem; font-style: italic; }
.cred-senha-toggle-btn { background:none; border:none; cursor:pointer; font-size:0.82rem; color:#94a3b8; padding:0; }
.cred-senha-toggle-btn:hover { color:#475569; }

/* Item de credencial (uma por sistema) dentro do card do atendente */
.cred-item { padding: 0.55rem 0; border-top: 1px dashed #e2e8f0; display: flex; flex-direction: column; gap: 0.4rem; }
.cred-item:first-child { border-top: none; padding-top: 0; }
[data-theme="dark"] .cred-item { border-color: rgba(255,255,255,0.08); }
.cred-item-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.cred-item-actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
/* Etiqueta do sistema (tipo de credencial) */
.cred-sis-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
    padding: 0.12rem 0.55rem; border-radius: 99px; white-space: nowrap;
}

/* Footer do card */
.cred-card-footer {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.6rem 1rem; border-top: 1px solid #e2e8f0; background: #fff;
}
[data-theme="dark"] .cred-card-footer { background:#0b1e13; border-color:rgba(255,255,255,0.07); }
.cred-card-btn {
    font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.75rem;
    border-radius: 7px; border: none; cursor: pointer; transition: all 0.15s;
}
.cred-card-btn--add { background:#16a34a; color:#fff; flex:1; }
.cred-card-btn--add:hover { background:#15803d; }
.cred-card-btn--edit { background:#f1f5f9; color:#475569; }
.cred-card-btn--edit:hover { background:#e2e8f0; }
.cred-card-btn--del { background:#fee2e2; color:#dc2626; font-weight:900; }
.cred-card-btn--del:hover { background:#fecaca; }
.cred-card-link {
    font-size: 0.78rem; font-weight: 700; color: #0ea5e9; text-decoration: none;
    padding: 0.3rem 0.6rem; border-radius: 7px; background: #e0f2fe; flex: 1; text-align: center;
}
.cred-card-link:hover { background: #bae6fd; }
.cred-empty-msg { padding: 1.5rem; text-align: center; color: #94a3b8; font-size: 0.9rem; font-style: italic; border: 2px dashed #e2e8f0; border-radius: 12px; }
.cred-empty-msg--ok { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; font-style: normal; font-weight: 600; }

/* ==========================================================
   LINGUAGEM DE FORMA v2 — sem cápsulas / ovais
   Badges, chips, pills e status labels usam raio de tag
   discreto (6–8px), estilo enterprise. Elementos redondos
   funcionais (barras de progresso, dots, toggles, avatares,
   scrollbars, botões-ícone circulares) NÃO entram aqui.
   Carregado por último → vence por ordem de fonte.
   ========================================================== */
:root { --r-tag: 6px; --r-pill: 8px; }

/* Tags / badges / chips / status labels — 6px */
.podium-badge,
.podium-score,
.disc-rank,
.disc-step-badge,
.disc-word-chip,
.curso-categoria-chip,
.meta-status-success,
.meta-status-danger,
.meta-status-primary,
.jornada-perfil-badge-area span,
.jornada-status-pill,
.jornada-event-tag,
.role-pill,
.badge-externo,
.campo-pdf-chip,
.tmpl-campo-chip,
.div-badge,
.status-card-status-label,
.dkv2-status,
.talentos-bonus-badge,
.saude-badge,
.cred-prov-pill,
.cred-bloco-badge,
.cred-card-badge,
.cred-sis-badge,
.nav-badge,
.chip,
.score-pill {
    border-radius: var(--r-tag);
}

/* Botões-pílula e contêineres de controle — 8px */
.user-profile,
.btn-topbar-ponto,
.btn-num-pessoas,
.btn-filter-feedback,
.page-nav-arrows,
.filter-pill,
.day-chip,
.ind-atendente-pill {
    border-radius: var(--r-pill);
}

/* ==========================================================
   TOPBAR — busca à esquerda, ações à direita (sem breadcrumb)
   ========================================================== */
.topbar .global-search-wrap { margin-left: 0; }
.topbar .topbar-actions { margin-left: auto; }
.topbar .global-search-wrap .topbar-search { width: 340px; max-width: 38vw; }

/* ==========================================================
   STATUS DA EQUIPE — lista agrupada (Em atividade / Descansando)
   ========================================================== */
.team-groups { display: flex; flex-direction: column; gap: 1.6rem; }
.team-group-head {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 0.35rem;
}
.team-group-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.team-group-dot.ativo { background: #22c55e; }
.team-group-dot.folga { background: var(--faint); }
.team-group-count { color: var(--faint); font-weight: 600; letter-spacing: 0; }

.team-list { display: flex; flex-direction: column; }
.team-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center; gap: 0.85rem;
    padding: 0.65rem 0.4rem;
    border-top: 1px solid var(--line-faint);
    transition: background 0.15s;
}
.team-list .team-row:first-child { border-top: none; }
.team-row:hover { background: var(--panel-2); }

.team-avatar, .team-avatar-ph {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
}
.team-avatar { object-fit: cover; background: var(--panel-2); }
.team-avatar-ph {
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in oklab, var(--brand) 14%, transparent);
    color: var(--brand-deep); font-weight: 700; font-size: 0.95rem;
}

.team-main { min-width: 0; }
.team-nome {
    font-weight: 600; font-size: 0.9rem; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.team-sub {
    font-size: 0.76rem; color: var(--muted); margin-top: 0.1rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.team-right { display: flex; align-items: center; gap: 1rem; }
.team-shift {
    font-size: 0.72rem; font-weight: 600; color: var(--muted);
    font-variant-numeric: tabular-nums; white-space: nowrap;
    padding: 0.15rem 0.45rem; border: 1px solid var(--line);
    border-radius: 6px; background: var(--panel-2);
}
.team-status-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; }
.team-status { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.team-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.team-status-dot.ativo { background: #22c55e; box-shadow: 0 0 0 3px color-mix(in oklab, #22c55e 22%, transparent); }
.team-status-dot.folga, .team-status-dot.aguard, .team-status-dot.encerrou { background: var(--faint); }
.team-status-label { font-size: 0.78rem; font-weight: 600; }
.team-status-label.ativo { color: #16a34a; }
.team-status-label.folga, .team-status-label.aguard, .team-status-label.encerrou { color: var(--muted); }
.team-horario { font-size: 0.72rem; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 620px) {
    .team-row { grid-template-columns: 36px minmax(0, 1fr); grid-auto-rows: auto; }
    .team-avatar, .team-avatar-ph { width: 36px; height: 36px; grid-row: span 2; }
    .team-right { grid-column: 2; justify-content: flex-start; gap: 0.7rem; margin-top: 0.2rem; }
    .team-status-wrap { align-items: flex-start; }
}

/* ==========================================================
   DASHBOARD — 4 KPIs lado a lado, compactos
   ========================================================== */
.kpi-grid.kpi-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.main-content .kpi-grid--4 .kpi-card { padding: 1.3rem 1.4rem !important; }
.main-content .kpi-grid--4 .kpi-card h3 { font-size: 0.8rem !important; margin-bottom: 0.45rem !important; }
.main-content .kpi-grid--4 .kpi-card p { font-size: 2rem !important; }
@media (max-width: 900px) {
    .kpi-grid.kpi-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 520px) {
    .kpi-grid.kpi-grid--4 { grid-template-columns: 1fr !important; }
}
