/* ═══════════════════════════════════════════════════════════════════
   DESIGN SYSTEM OFICIAL RCA SERVIÇOS
   Baseado na identidade corporativa de rcaservicos.com
   Tecnologia, Gestão e Desenvolvimento
   ═══════════════════════════════════════════════════════════════════ */

:root,
html[data-theme="gold"],
html[data-theme="apice"],
html[data-theme="rca"] {
  /* ─── Paleta Canônica RCA Serviços ─── */
  --navy-950:           #050b16; /* Deep Midnight Navy */
  --navy-900:           #07101f; /* Primary Header / Topbar / Superfície escura */
  --navy-850:           #0a1425; /* Surface Navy / Cards escuros */
  --navy-800:           #0d1a2e; /* Elevated Navy */
  --blue-600:           #1f5fc8; /* RCA Deep Blue (hover / botões ativos) */
  --blue-500:           #2c72e6; /* RCA Primary Electric Blue (Acento principal da marca) */
  --blue-400:           #4b8bf0; /* RCA Bright Accent / Highlights */
  --ink:                #0c1629; /* Tipografia principal / Texto escuro */
  --muted:              #667085; /* Texto atenuado / Slate corporativo */
  --line:               rgba(255,255,255,.10);
  --white:              #ffffff;
  --offwhite:           #f7f9fc; /* Background geral da aplicação / tabelas */
  --shadow:             0 22px 70px rgba(2, 10, 25, .18);

  /* ─── Aliases de Compatibilidade Finanças ─── */
  --pb-gold:            var(--blue-500);
  --pb-dark:            var(--navy-900);
  --pb-bg:              var(--white);
  --pb-gold-light:      rgba(44, 114, 230, 0.08);

  --apice-grafite:      var(--navy-900);
  --apice-grafite-900:  var(--navy-950);
  --apice-platina:      var(--blue-500);
  --apice-platina-claro:var(--blue-400);
  --apice-champanhe:    var(--blue-500);

  /* ─── Topbar Corporativa RCA ─── */
  --topbar-bg:          var(--navy-900);
  --topbar-text:        rgba(255,255,255,0.94);
  --topbar-muted:       rgba(255,255,255,0.60);
  --topbar-hover:       rgba(255,255,255,0.08);
  --topbar-border:      rgba(255,255,255,0.10);

  /* ─── Sidebar ─── */
  --sidebar-bg:         #f8fafc;
  --sidebar-border:     #e2e8f0;
  --sidebar-hover:      #f1f5f9;
  --sidebar-active-bg:  rgba(44, 114, 230, 0.08);
  --sidebar-active-text:var(--blue-500);
  --sidebar-active-bar: var(--blue-500);

  /* ─── Ações & Interatividade Primária ─── */
  --blue:               var(--blue-500);
  --blue-hover:         var(--blue-600);
  --blue-light:         rgba(44, 114, 230, 0.08);

  /* ─── Semânticas Financeiras de Alta Precisão ─── */
  --green:              #16a34a;
  --green-light:        #dcfce7;
  --red:                #dc2626;
  --red-light:          #fee2e2;
  --yellow:             #d97706;
  --yellow-light:       #fef3c7;

  /* ─── Status ─── */
  --status-success:     var(--green);
  --status-success-bg:  var(--green-light);
  --status-error:       var(--red);
  --status-error-bg:    var(--red-light);
  --status-warning:     var(--yellow);
  --status-warning-bg:  var(--yellow-light);
  --status-info:        var(--blue-500);
  --status-info-bg:     rgba(44, 114, 230, 0.08);

  /* ─── Tipografia ─── */
  --text-primary:       var(--ink);
  --text-secondary:     #475569;
  --text-label:         #334155;
  --text-muted:         var(--muted);

  /* ─── Superfícies ─── */
  --bg-app:             var(--offwhite);
  --bg-content:         var(--white);
  --bg-toolbar:         #f8fafc;
  --bg-grid-header:     #f1f5f9;
  --bg-grid-alt:        #fafcff;
  --bg-grid-hover:      #f1f5f9;
  --bg-grid-selected:   #eff6ff;

  /* ─── Login & Autenticação ─── */
  --bg-login:           var(--navy-900);
  --bg-login-2:         var(--navy-950);

  /* ─── Bordas ─── */
  --border:             #e2e8f0;
  --border-strong:      #cbd5e1;
  --border-focus:       var(--blue-500);

  /* ─── Inputs ─── */
  --input-bg:           var(--white);
  --input-border:       #cbd5e1;
  --input-focus-ring:   rgba(44, 114, 230, 0.18);
}

/* Tipografia Corporativa RCA */
body, button, input, select, textarea {
  font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.browse-table, .cell-money, .browse-statusbar {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
}

/* Marca RCA no Topbar */
.rca-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.rca-logo-topbar {
  height: 24px;
  width: auto;
  display: block;
}
.rca-brand-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(44, 114, 230, 0.16);
  color: #8ab2ff;
  border: 1px solid rgba(75, 139, 240, 0.28);
}
