* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #0f766e;
    --primary-dark: #0b5d57;
    --primary-light: #ccfbf1;
    --background: #f5f7fb;
    --surface: #ffffff;
    --text: #14213d;
    --muted: #667085;
    --border: #e2e8f0;
    --danger: #b42318;
    --success: #067647;
    --warning: #b54708;
    --info: #2563eb;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, .05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .055);
    --shadow-lg: 0 14px 34px rgba(15, 23, 42, .09);
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #eef3fb, #dfe9f8);
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 20px 50px rgba(20, 35, 70, 0.12);
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.login-brand h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.login-brand p {
    color: var(--muted);
    line-height: 1.5;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 16px;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
}

.btn-primary {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.alert-error {
    background: #fee4e2;
    color: var(--danger);
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.app-page {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    background: linear-gradient(180deg, #111c2f 0%, #0b1423 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 28px 20px;
}

.sidebar-brand {
    margin-bottom: 38px;
}

.sidebar-brand strong {
    display: block;
    font-size: 22px;
}

.sidebar-brand span {
    color: #98a2b3;
    font-size: 14px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a,
.logout-link {
    padding: 12px 14px;
    border-radius: 9px;
    color: #d0d5dd;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.logout-link:hover {
    background: #1d2939;
    color: #ffffff;
}

.logout-link {
    margin-top: auto;
}

.main-content {
    margin-left: 250px;
    padding: 34px;
}

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

.topbar h1 {
    font-size: 30px;
    margin-bottom: 5px;
}

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

.user-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 15px;
    font-weight: 700;
}

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

.metric-card,
.welcome-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 24px;
}

.metric-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 14px;
}

.metric-card strong {
    font-size: 27px;
}

.welcome-panel {
    margin-top: 24px;
}

.welcome-panel h2 {
    margin-bottom: 10px;
}

.welcome-panel p {
    color: var(--muted);
    line-height: 1.6;
}

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

@media (max-width: 760px) {
    .sidebar {
        position: static;
        width: 100%;
    }

    .main-content {
        margin-left: 0;
        padding: 22px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.page-header h1 {
    font-size: 30px;
    margin-bottom: 6px;
}

.page-header p {
    color: var(--muted);
}

.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 24px;
}

.btn-action,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    border-radius: 9px;
    padding: 0 17px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

.btn-action {
    background: var(--primary);
    color: #ffffff;
}

.btn-action:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #101828;
    color: #ffffff;
}

.btn-light {
    background: #ffffff;
    border-color: var(--border);
    color: var(--text);
}

.alert-success {
    background: #dcfae6;
    color: #067647;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.search-form input {
    flex: 1;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 0 14px;
    font-size: 15px;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px 13px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

.data-table td strong {
    display: block;
    margin-bottom: 4px;
}

.data-table td small {
    display: block;
    color: var(--muted);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.action-danger {
    color: var(--danger);
}

.empty-state {
    padding: 55px 20px;
    text-align: center;
}

.empty-state h2 {
    margin-bottom: 9px;
}

.empty-state p {
    color: var(--muted);
    margin-bottom: 22px;
}

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

.form-group-full {
    grid-column: 1 / -1;
}

.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 14px;
    font-family: inherit;
    font-size: 15px;
    background: #ffffff;
    outline: none;
}

.form-group select {
    height: 48px;
}

.form-group textarea {
    resize: vertical;
}

.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
    .page-header,
    .search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: auto;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 220px auto auto;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-form input,
.filter-form select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 0 14px;
    background: #ffffff;
    color: var(--text);
    font-size: 14px;
    outline: none;
}

.filter-form input:focus,
.filter-form select:focus {
    border-color: var(--primary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-gray {
    background: #f2f4f7;
    color: #475467;
}

.status-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-yellow {
    background: #fef3c7;
    color: #92400e;
}

.status-purple {
    background: #f3e8ff;
    color: #7e22ce;
}

.status-orange {
    background: #ffead5;
    color: #b54708;
}

.status-indigo {
    background: #e0e7ff;
    color: #4338ca;
}

.status-green {
    background: #dcfae6;
    color: #067647;
}

.status-dark-green {
    background: #d1fadf;
    color: #05603a;
}

.status-red {
    background: #fee4e2;
    color: #b42318;
}

.inline-form {
    display: inline;
    margin: 0;
}

.action-button {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
}

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

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

.pipeline-page {
    overflow: hidden;
}

.kanban-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.kanban-column {
    flex: 0 0 310px;
    min-width: 310px;
    background: #eef2f7;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 14px;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 4px 3px;
}

.kanban-column-header h2 {
    font-size: 16px;
    margin-bottom: 4px;
}

.kanban-column-header span {
    color: var(--muted);
    font-size: 12px;
}

.kanban-column-header > strong {
    font-size: 12px;
    text-align: right;
    color: var(--text);
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanban-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 15px;
    box-shadow: 0 5px 12px rgba(16, 24, 40, 0.05);
}

.kanban-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.kanban-product {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.kanban-probability {
    background: #f2f4f7;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
}

.kanban-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.kanban-company {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.kanban-value {
    display: block;
    font-size: 18px;
    margin-bottom: 14px;
}

.kanban-next-action {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.kanban-next-action span,
.kanban-next-action small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.kanban-next-action strong {
    display: block;
    font-size: 13px;
    margin: 5px 0;
}

.kanban-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 13px;
}

.kanban-btn {
    width: 36px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
}

.kanban-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.kanban-btn-next {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.kanban-btn-next:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

.kanban-edit {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.kanban-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 11px;
    padding: 28px 12px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
/* ==========================================================
   Camada "Premium" — antes vivia em enterprise-premium-v4.css
   como remendo com !important sobre um base diferente (azul).
   Agora faz parte da base: cai naturalmente por cascata, sem
   precisar forçar especificidade.
   ========================================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    letter-spacing: -.018em;
}

.card, .panel, .box, .widget, .dashboard-card, .stat-card,
.kpi-card, .metric-card, .table-card, .form-card, .section-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.card:hover, .dashboard-card:hover, .stat-card:hover,
.kpi-card:hover, .metric-card:hover {
    box-shadow: var(--shadow-lg);
}

.page-header, .content-header, .dashboard-header, .module-header, .section-header {
    border-bottom: 1px solid var(--border);
}

.page-header h1, .content-header h1, .dashboard-header h1, .module-header h1 {
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 750;
}

button, .btn, .button, a.btn, input[type=submit], input[type=button] {
    min-height: 40px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    box-shadow: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

button:hover, .btn:hover, .button:hover, a.btn:hover,
input[type=submit]:hover, input[type=button]:hover {
    transform: translateY(-1px);
}

.btn-primary, .button-primary, .primary-action {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover, .button-primary:hover, .primary-action:hover {
    background: var(--primary-dark);
}

input:not([type=checkbox]):not([type=radio]), select, textarea {
    border: 1px solid #d7dee8;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
    transition: border-color .15s ease, box-shadow .15s ease;
}

input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
    outline: none;
    border-color: #5bb8ae;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .11);
}

label {
    color: #344054;
    font-weight: 650;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

thead th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: #475467;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf1f5;
    color: #344054;
}

tbody tr {
    transition: background .14s ease;
}

tbody tr:hover {
    background: #f8fbfc;
}

.badge, .status, .chip, .tag {
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.modal-content, .dialog, .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.alert, .notice, .message {
    border-radius: 11px;
    border-width: 1px;
    box-shadow: none;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
}

.pagination .active, .pagination a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(20, 184, 166, .18), rgba(255, 255, 255, .055));
    box-shadow: inset 0 0 0 1px rgba(94, 234, 212, .08);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

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



/* ═══════════════════════════════════════════════════════════════════
   A PARTIR DAQUI: DESIGN SYSTEM J2A
   Tudo acima é o arquivo original, intacto.
   Para desfazer, apague deste comentário até o fim do arquivo.
   ═══════════════════════════════════════════════════════════════════ */

/* ===================================================================
   J2A BANKER CRM — Design System
   Etapa 1: tokens, menu lateral, cabeçalho, cartões, botões, tabelas.

   COMO ESTE ARQUIVO FUNCIONA
   Ele é carregado por ÚLTIMO, depois de todos os outros CSS, e
   sobrescreve pelos seletores que já existem. Nenhum arquivo antigo
   foi editado.

   POR QUE NÃO BASTOU TROCAR AS VARIÁVEIS
   O sistema tem 106 usos do verde #0f766e escritos à mão, fora de
   qualquer variável — além de 112 de um cinza e 69 de um azul. Por
   isso aqui os tokens são redefinidos E as cores cruas são
   neutralizadas nos seletores onde aparecem.

   PARA DESFAZER TUDO
   Apague este arquivo. Nada mais foi alterado.
   =================================================================== */

:root{
  /* Identidade — mesma paleta do site j2asolucoesempresariais.com.br */
  --j2a-navy:        #12385f;
  --j2a-navy-fundo:  #0e2c4b;
  --j2a-navy-claro:  #1f5a91;
  --j2a-ouro:        #f2a900;
  --j2a-ouro-escuro: #b58600;
  --j2a-teal:        #0f766e;

  /* Superfícies */
  --j2a-bg:      #f4f7fb;
  --j2a-surface: #ffffff;
  --j2a-border:  #e4ebf3;
  --j2a-border-forte: #cfdcea;

  /* Texto */
  --j2a-text:   #16283d;
  --j2a-text-2: #45566c;
  --j2a-muted:  #7c8da0;

  /* Estados */
  --j2a-success: #14794f;
  --j2a-warning: #a86a00;
  --j2a-danger:  #b4302a;
  --j2a-info:    #1f5a91;

  /* Forma e movimento */
  --j2a-radius:    14px;
  --j2a-radius-sm: 10px;
  --j2a-radius-lg: 20px;
  --j2a-sombra:    0 1px 2px rgba(16, 40, 61, .04), 0 4px 14px rgba(16, 40, 61, .05);
  --j2a-sombra-md: 0 6px 22px rgba(16, 40, 61, .09);
  --j2a-t: 180ms cubic-bezier(.4, 0, .2, 1);

  /* Sobrescreve os tokens antigos do style.css.
     O verde deixa de ser a cor institucional e passa a ser
     usado só em ação positiva. */
  --primary:       #12385f;
  --primary-dark:  #0e2c4b;
  --primary-light: #e8f0f8;
  --background:    #f4f7fb;
  --surface:       #ffffff;
  --text:          #16283d;
  --muted:         #7c8da0;
  --border:        #e4ebf3;
  --danger:        #b4302a;
  --success:       #14794f;
  --warning:       #a86a00;
  --info:          #1f5a91;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16,40,61,.04), 0 4px 14px rgba(16,40,61,.05);
  --shadow-md: 0 6px 22px rgba(16,40,61,.09);
  --shadow-lg: 0 16px 40px rgba(16,40,61,.12);

  /* usados pelo component-library */
  --gray-50:  #f7f9fc;
  --gray-100: #eef3f8;
  --gray-200: #e4ebf3;
  --gray-300: #cfdcea;
  --gray-400: #a7b8ca;
  --gray-500: #7c8da0;
  --gray-600: #5d6f85;
  --gray-700: #45566c;
  --gray-900: #16283d;
}

body{
  background: var(--j2a-bg);
  color: var(--j2a-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===================================================================
   MENU LATERAL
   O marinho vira o do site. O indicador ativo deixa de ser um bloco
   e passa a ser uma barra dourada, que é o gesto de marca do site.
   =================================================================== */

.sidebar{
  padding: 22px 14px 18px !important;
  background: linear-gradient(180deg, #12385f 0%, #0e2c4b 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, .07);
}

.sidebar-brand strong{
  font-size: 19px;
  letter-spacing: -.02em;
}

.sidebar-brand span{
  color: rgba(255, 255, 255, .55) !important;
  font-size: 10px;
  letter-spacing: .12em;
}

.sidebar-toggle{
  border-color: rgba(255, 255, 255, .16) !important;
  background: rgba(255, 255, 255, .08) !important;
  transition: background var(--j2a-t), border-color var(--j2a-t);
}
.sidebar-toggle:hover{
  background: rgba(255, 255, 255, .16) !important;
  border-color: rgba(255, 255, 255, .28) !important;
}

.sidebar-section-title{
  color: rgba(255, 255, 255, .38) !important;
  font-size: 9.5px;
  letter-spacing: .14em;
  margin: 18px 0 6px !important;
}

.sidebar-nav{ gap: 3px !important; }

.sidebar-nav a{
  min-height: 42px !important;
  color: rgba(255, 255, 255, .74) !important;
  border-radius: var(--j2a-radius-sm) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  transition: color var(--j2a-t), background var(--j2a-t);
}

.sidebar-nav a:hover{
  color: #fff !important;
  background: rgba(255, 255, 255, .09) !important;
}

/* Ativo: fundo discreto + barra dourada, em vez do bloco sólido */
.sidebar-nav a.active{
  color: #fff !important;
  background: rgba(242, 169, 0, .13) !important;
  font-weight: 650 !important;
}

.sidebar-nav a:before{
  width: 3px !important;
  height: 18px !important;
  transition: background var(--j2a-t);
}

.sidebar-nav a.active:before{
  background: var(--j2a-ouro) !important;
}

.sidebar-user-card{
  padding: 13px !important;
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--j2a-radius-sm) !important;
}
.sidebar-user-card span{ color: rgba(255, 255, 255, .5) !important; }

.logout-link{
  color: rgba(255, 255, 255, .6) !important;
  transition: color var(--j2a-t);
}
.logout-link:hover{ color: #fff !important; }

/* ===================================================================
   CARTÕES
   =================================================================== */

.card,
.j2a-list-card,
.j2a-empty-state,
.j2a-kpi-card,
.j2a-table-wrapper,
.j2a-filters{
  border: 1px solid var(--j2a-border) !important;
  border-radius: var(--j2a-radius) !important;
  background: var(--j2a-surface) !important;
  box-shadow: var(--j2a-sombra) !important;
}

.j2a-kpi-card{
  transition: box-shadow var(--j2a-t), border-color var(--j2a-t), transform var(--j2a-t);
}
.j2a-kpi-card:hover{
  border-color: var(--j2a-border-forte) !important;
  box-shadow: var(--j2a-sombra-md) !important;
  transform: translateY(-1px);
}

.j2a-kpi-card__icon{ border-radius: 12px !important; }

.j2a-kpi-card--primary .j2a-kpi-card__icon{
  color: var(--j2a-navy) !important;
  background: #e8f0f8 !important;
}
.j2a-kpi-card--warning .j2a-kpi-card__icon{
  color: var(--j2a-ouro-escuro) !important;
  background: #fdf4e0 !important;
}

.j2a-kpi-card__content span{
  color: var(--j2a-muted) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .07em;
}
.j2a-kpi-card__content strong{
  color: var(--j2a-navy) !important;
  font-size: 23px !important;
  font-weight: 800 !important;
  letter-spacing: -.02em;
}

/* ===================================================================
   BOTÕES
   Primário marinho. Verde só para confirmação. Dourado para destaque.
   =================================================================== */

/* Só cor, peso e transição. Largura, altura e display continuam
   como estavam: o .btn-primary do style.css tem width:100% porque
   serve ao formulário de login, e mexer nisso quebraria o layout. */
.btn,
button.btn,
a.btn{
  border-radius: 10px !important;
  font-weight: 650 !important;
  letter-spacing: -.005em;
  transition: background var(--j2a-t), border-color var(--j2a-t),
              color var(--j2a-t), box-shadow var(--j2a-t);
}

.btn-primary,
.btn.btn-primary{
  color: #fff !important;
  background: var(--j2a-navy) !important;
  border-color: var(--j2a-navy) !important;
}
.btn-primary:hover{
  background: var(--j2a-navy-fundo) !important;
  border-color: var(--j2a-navy-fundo) !important;
  box-shadow: 0 4px 14px rgba(18, 56, 95, .26) !important;
}

.btn-success,
.btn.btn-success{
  color: #fff !important;
  background: var(--j2a-teal) !important;
  border-color: var(--j2a-teal) !important;
}
.btn-success:hover{ background: #0b5d57 !important; border-color: #0b5d57 !important; }

.btn-secondary,
.btn-outline,
.btn.btn-secondary{
  color: var(--j2a-navy) !important;
  background: #fff !important;
  border: 1px solid var(--j2a-border-forte) !important;
}
.btn-secondary:hover,
.btn-outline:hover{
  background: #f7f9fc !important;
  border-color: var(--j2a-navy-claro) !important;
}

.btn-danger{
  color: #fff !important;
  background: var(--j2a-danger) !important;
  border-color: var(--j2a-danger) !important;
}

/* ===================================================================
   TABELAS
   =================================================================== */

.j2a-table th,
table th{
  color: var(--j2a-muted) !important;
  background: #f7f9fc !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .07em;
  border-bottom: 1px solid var(--j2a-border) !important;
}

.j2a-table td,
table td{
  padding: 14px 15px !important;
  border-bottom: 1px solid #eef3f8 !important;
  font-size: 13.5px;
}

.j2a-table tbody tr,
table tbody tr{ transition: background var(--j2a-t); }
.j2a-table tbody tr:hover,
table tbody tr:hover{ background: #f7f9fc !important; }

/* ===================================================================
   FORMULÁRIOS
   =================================================================== */

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="tel"],
input[type="search"], select, textarea,
.j2a-field input, .j2a-field select{
  border: 1px solid var(--j2a-border-forte) !important;
  border-radius: var(--j2a-radius-sm) !important;
  background: #fff !important;
  color: var(--j2a-text) !important;
  font-family: inherit;
  transition: border-color var(--j2a-t), box-shadow var(--j2a-t);
}

input:focus, select:focus, textarea:focus{
  outline: none !important;
  border-color: var(--j2a-navy-claro) !important;
  box-shadow: 0 0 0 3px rgba(31, 90, 145, .13) !important;
}

label{ color: var(--j2a-navy) !important; }

/* ===================================================================
   BADGES
   Fundo claro com texto forte, como o prompt pediu.
   =================================================================== */

.j2a-badge{
  min-height: 26px !important;
  padding: 4px 11px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
}

.j2a-badge--primary{ color: var(--j2a-navy) !important;   background: #e8f0f8 !important; }
.j2a-badge--success{ color: var(--j2a-success) !important; background: #e3f4ec !important; }
.j2a-badge--warning{ color: var(--j2a-ouro-escuro) !important; background: #fdf4e0 !important; }
.j2a-badge--danger { color: var(--j2a-danger) !important;  background: #fbeae9 !important; }
.j2a-badge--info   { color: var(--j2a-info) !important;    background: #e8f0f8 !important; }
.j2a-badge--neutral{ color: var(--j2a-text-2) !important;  background: #eef3f8 !important; }

/* ===================================================================
   TIPOGRAFIA
   =================================================================== */

h1{ font-size: clamp(22px, 2.2vw, 28px) !important; font-weight: 800 !important;
    letter-spacing: -.025em; color: var(--j2a-navy) !important; }
h2{ font-size: clamp(18px, 1.7vw, 22px) !important; font-weight: 750 !important;
    letter-spacing: -.02em; color: var(--j2a-navy) !important; }
h3{ font-size: 16px !important; font-weight: 700 !important; letter-spacing: -.015em; }

.j2a-section-header__icon,
.j2a-list-card__icon{
  color: var(--j2a-navy) !important;
  background: #e8f0f8 !important;
  border-radius: 12px !important;
}

/* ===================================================================
   NEUTRALIZAÇÃO DAS CORES ESCRITAS À MÃO
   O verde #0f766e aparece 106 vezes fora de variável. Aqui ele deixa
   de ser a cor institucional nos pontos onde isso mais aparece.
   =================================================================== */

.j2a-progress__fill--primary{ background: var(--j2a-navy) !important; }
.j2a-pagination a:hover,
.j2a-pagination a.is-active{
  background: var(--j2a-navy) !important;
  border-color: var(--j2a-navy) !important;
}
.j2a-timeline-item--primary .j2a-timeline-item__marker{
  color: var(--j2a-navy) !important;
  background: #e8f0f8 !important;
}

/* ===================================================================
   RESPEITO A QUEM DESLIGOU ANIMAÇÕES
   =================================================================== */

@media (prefers-reduced-motion: reduce){
  .sidebar, .sidebar-nav a, .j2a-kpi-card, .btn,
  input, select, textarea, table tbody tr{
    transition: none !important;
  }
  .j2a-kpi-card:hover{ transform: none !important; }
}
