﻿/* =========================================================
   INTRANET GA+ — DARK PREMIUM UI
   ========================================================= */

:root {
  --bg: #08090b;
  --bg-2: #0d0f12;
  --panel: #111419;
  --panel-2: #15181d;
  --panel-3: #1a1e24;

  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.13);

  --text: #f4f5f7;
  --text-2: #b7bcc5;
  --text-3: #747b86;

  --white: #ffffff;
  --black: #000000;

  --accent: #ffffff;
  --accent-soft: rgba(255,255,255,.08);

  --success: #66d19e;
  --danger: #ff6b6b;
  --warning: #bfc3ca;

  --radius: 16px;
  --radius-sm: 10px;

  --shadow: 0 20px 60px rgba(0,0,0,.38);
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  background:
    radial-gradient(
      circle at 80% -10%,
      rgba(255,255,255,.055),
      transparent 32%
    ),
    radial-gradient(
      circle at 10% 20%,
      rgba(255,255,255,.025),
      transparent 30%
    ),
    var(--bg);

  color: var(--text);
  overflow-x: hidden;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

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

::-webkit-scrollbar-track {
  background: #08090b;
}

::-webkit-scrollbar-thumb {
  background: #292d34;
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3b4048;
}

/* =========================================================
   GENERAL
   ========================================================= */

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* =========================================================
   LOGIN
   ========================================================= */

.login-wrap {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255,255,255,.08),
      transparent 35%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(255,255,255,.035),
      transparent 30%
    ),
    #070809;
}

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

  padding: 42px;

  border: 1px solid var(--border-strong);
  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.015)
    ),
    #101216;

  box-shadow:
    0 35px 100px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.04);

  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;

  font-size: 32px;
  font-weight: 900;
  letter-spacing: -2px;

  color: #fff;
}

.brand span {
  color: #9ca3ad;
  margin-left: 2px;
}

.login-card h1 {
  margin-top: 18px;

  font-size: 30px;
  letter-spacing: -1px;
}

.login-card p {
  margin-top: 8px;

  color: var(--text-3);
  font-size: 14px;
}

.login-card form {
  margin-top: 28px;

  display: grid;
  gap: 12px;
}

.login-card input {
  width: 100%;

  height: 52px;

  padding: 0 16px;

  color: #fff;

  background: #090b0e;

  border: 1px solid var(--border);
  border-radius: 12px;

  outline: none;

  transition: .2s;
}

.login-card input:focus {
  border-color: rgba(255,255,255,.3);

  box-shadow:
    0 0 0 3px rgba(255,255,255,.04);
}

.login-card button {
  height: 52px;

  border: 0;
  border-radius: 12px;

  background: #fff;
  color: #08090b;

  font-weight: 800;

  transition: .2s;
}

.login-card button:hover {
  transform: translateY(-1px);

  background: #e8e9eb;
}

.error {
  margin-top: 15px;

  color: var(--danger);

  font-size: 13px;
}

/* =========================================================
   APP
   ========================================================= */

#appView {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 85% 0%,
      rgba(255,255,255,.035),
      transparent 28%
    ),
    #08090b;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
  position: fixed;

  left: 0;
  top: 0;
  bottom: 0;

  width: 250px;

  padding: 28px 18px;

  background:
    linear-gradient(
      180deg,
      #0c0e11 0%,
      #090a0c 100%
    );

  border-right: 1px solid var(--border);

  z-index: 50;

  display: flex;
  flex-direction: column;
}

.sidebar .brand {
  padding: 5px 14px 30px;

  font-size: 30px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;

  gap: 6px;
}

.nav {
  width: 100%;

  min-height: 48px;

  padding: 0 15px;

  display: flex;
  align-items: center;

  border: 1px solid transparent;
  border-radius: 12px;

  background: transparent;

  color: #888f99;

  text-align: left;

  font-size: 14px;
  font-weight: 600;

  transition: .2s;
}

.nav:hover {
  color: #fff;

  background: rgba(255,255,255,.045);
}

.nav.active {
  color: #fff;

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.09),
      rgba(255,255,255,.025)
    );

  border-color: rgba(255,255,255,.08);

  box-shadow:
    inset 3px 0 0 #fff;
}

.logout {
  margin-top: auto;

  width: 100%;
  height: 46px;

  border: 1px solid var(--border);
  border-radius: 11px;

  background: #101216;

  color: #969da7;

  font-weight: 700;

  transition: .2s;
}

.logout:hover {
  color: #fff;

  background: #171a1f;

  border-color: var(--border-strong);
}

/* =========================================================
   MAIN
   ========================================================= */

.main {
  margin-left: 250px;

  min-height: 100vh;

  padding: 0 36px 50px;
}

/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
  height: 92px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--border);
}

.topbar small {
  color: #666d77;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 2px;
}

.topbar h2 {
  margin-top: 5px;

  color: #fff;

  font-size: 22px;
  letter-spacing: -.5px;
}

.user-info {
  color: #9da3ad;

  font-size: 13px;
}

/* =========================================================
   PAGE
   ========================================================= */

.page {
  padding-top: 30px;

  animation: pageIn .3s ease;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  overflow: hidden;

  min-height: 235px;

  padding: 40px;

  display: flex;
  align-items: center;

  border: 1px solid var(--border);

  border-radius: 20px;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(255,255,255,.07),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #15181d,
      #0d0f12
    );

  box-shadow: var(--shadow);
}

.hero::before {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  right: -100px;
  top: -130px;

  border-radius: 50%;

  border: 1px solid rgba(255,255,255,.07);

  box-shadow:
    0 0 0 40px rgba(255,255,255,.015),
    0 0 0 80px rgba(255,255,255,.01);
}

.hero small {
  color: #777e88;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 2px;
}

.hero h1 {
  margin-top: 12px;

  font-size: clamp(30px, 4vw, 48px);

  line-height: 1.05;

  letter-spacing: -2px;

  color: #fff;
}

.hero p {
  max-width: 680px;

  margin-top: 15px;

  color: #9299a3;

  font-size: 15px;

  line-height: 1.7;
}

/* =========================================================
   METRICS
   ========================================================= */

.cards {
  margin-top: 20px;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;
}

.metric {
  position: relative;

  padding: 24px;

  min-height: 125px;

  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.012)
    ),
    #111318;

  box-shadow:
    0 12px 35px rgba(0,0,0,.22);

  transition: .2s;
}

.metric:hover {
  transform: translateY(-2px);

  border-color: rgba(255,255,255,.14);
}

.metric::after {
  content: "";

  position: absolute;

  right: -30px;
  bottom: -60px;

  width: 150px;
  height: 150px;

  border-radius: 50%;

  background: rgba(255,255,255,.025);
}

.metric span {
  color: #7e858f;

  font-size: 12px;
  font-weight: 600;
}

.metric strong {
  display: block;

  margin-top: 12px;

  color: #fff;

  font-size: 32px;
  letter-spacing: -1px;
}

/* =========================================================
   GRID
   ========================================================= */

.grid {
  margin-top: 20px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(0, 1fr);

  gap: 20px;
}

/* =========================================================
   PANEL
   ========================================================= */

.panel {
  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.035),
      rgba(255,255,255,.01)
    ),
    #101216;

  box-shadow:
    0 15px 45px rgba(0,0,0,.25);
}

.panel-head {
  min-height: 66px;

  padding: 0 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--border);
}

.panel-head h3 {
  color: #f4f5f6;

  font-size: 15px;
}

.panel > #announcements,
.panel > #myRequests {
  padding: 20px;
}

/* =========================================================
   FORMS
   ========================================================= */

.form-grid {
  padding: 24px;

  display: grid;

  gap: 14px;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.fx-finance-filters input,
.fx-finance-filters select {
  width: 100%;

  color: #f2f3f5;

  background: #090b0e;

  border: 1px solid var(--border);

  border-radius: 11px;

  outline: none;
}

.form-grid input,
.form-grid select {
  height: 48px;

  padding: 0 14px;
}

.form-grid textarea {
  min-height: 130px;

  padding: 14px;

  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.fx-finance-filters input:focus,
.fx-finance-filters select:focus {
  border-color: rgba(255,255,255,.25);

  box-shadow:
    0 0 0 3px rgba(255,255,255,.035);
}

.form-grid button {
  height: 48px;

  border: 0;

  border-radius: 11px;

  background: #fff;

  color: #08090b;

  font-weight: 800;
}

.success {
  padding: 0 24px 20px;

  color: var(--success);

  font-size: 13px;
}

/* =========================================================
   ADMIN CARDS
   ========================================================= */

.admin-actions {
  padding: 22px;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 14px;
}

.admin-card {
  padding: 22px;

  border: 1px solid var(--border);

  border-radius: 14px;

  background: #0c0f12;

  transition: .2s;
}

.admin-card:hover {
  transform: translateY(-2px);

  background: #111419;

  border-color: rgba(255,255,255,.14);
}

.admin-card h3 {
  color: #fff;

  font-size: 15px;
}

.admin-card p {
  min-height: 65px;

  margin-top: 10px;

  color: #777f89;

  font-size: 12px;

  line-height: 1.6;
}

.admin-card button {
  width: 100%;

  height: 42px;

  border: 1px solid var(--border);

  border-radius: 9px;

  background: #15181d;

  color: #d9dce0;

  font-weight: 700;

  transition: .2s;
}

.admin-card button:hover {
  background: #fff;

  color: #08090b;
}

/* =========================================================
   FINANCEIRO — BASE
   ========================================================= */

.fx-finance {
  padding-bottom: 40px;
}

.fx-finance-hero {
  position: relative;

  min-height: 310px;

  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 20px;

  background:
    radial-gradient(
      circle at 80% 45%,
      rgba(255,255,255,.07),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #15181d,
      #090b0e
    );

  box-shadow: var(--shadow);
}

.fx-finance-grid {
  position: absolute;

  inset: 0;

  opacity: .16;

  background-image:
    linear-gradient(
      rgba(255,255,255,.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.06) 1px,
      transparent 1px
    );

  background-size: 40px 40px;

  mask-image:
    linear-gradient(
      to right,
      transparent,
      black,
      transparent
    );
}

.fx-finance-hero-content {
  position: relative;

  z-index: 2;

  max-width: 650px;

  padding: 48px;
}

.fx-finance-eyebrow {
  color: #808791;

  font-size: 10px;

  letter-spacing: 2px;

  font-weight: 800;
}

.fx-finance-pulse {
  display: inline-block;

  width: 7px;
  height: 7px;

  margin-right: 7px;

  border-radius: 50%;

  background: #fff;

  box-shadow:
    0 0 12px rgba(255,255,255,.6);
}

.fx-finance-hero h1 {
  margin-top: 18px;

  color: #fff;

  font-size: clamp(38px, 5vw, 60px);

  line-height: .98;

  letter-spacing: -3px;
}

.fx-finance-hero h1 strong {
  color: #9ca3ad;
}

.fx-finance-hero p {
  max-width: 600px;

  margin-top: 18px;

  color: #858c96;

  line-height: 1.7;

  font-size: 14px;
}

.fx-finance-status {
  margin-top: 25px;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 9px 13px;

  border: 1px solid var(--border);

  border-radius: 30px;

  background: rgba(0,0,0,.25);

  color: #a7adb5;

  font-size: 9px;

  letter-spacing: 1px;

  font-weight: 800;
}

.fx-finance-status > span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--success);
}

.fx-finance-status small {
  color: #fff;
}

/* =========================================================
   FINANCE ORBIT
   ========================================================= */

.fx-finance-orbit {
  position: absolute;

  right: 90px;
  top: 50%;

  width: 230px;
  height: 230px;

  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;
}

.fx-fin-orbit-ring {
  position: absolute;

  border: 1px solid rgba(255,255,255,.08);

  border-radius: 50%;
}

.ring-1 {
  width: 210px;
  height: 210px;
}

.ring-2 {
  width: 165px;
  height: 165px;
}

.ring-3 {
  width: 120px;
  height: 120px;
}

.fx-finance-core {
  width: 92px;
  height: 92px;

  border-radius: 50%;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle,
      #22262c,
      #0b0d10
    );

  border: 1px solid rgba(255,255,255,.13);

  box-shadow:
    0 0 45px rgba(255,255,255,.07);
}

.fx-finance-core span {
  font-size: 9px;

  color: #777f89;
}

.fx-finance-core strong {
  font-size: 23px;

  line-height: 1;

  color: #fff;
}

.fx-finance-core small {
  margin-top: 4px;

  font-size: 6px;

  letter-spacing: 1px;

  color: #777f89;
}

/* =========================================================
   FINANCE KPIS
   ========================================================= */

.fx-finance-kpis {
  margin-top: 18px;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 14px;
}

.fx-fin-kpi {
  padding: 20px;

  min-height: 150px;

  border: 1px solid var(--border);

  border-radius: 15px;

  background: #101216;

  box-shadow:
    0 12px 30px rgba(0,0,0,.2);

  position: relative;

  overflow: hidden;
}

.fx-fin-kpi-head {
  display: flex;

  justify-content: space-between;

  color: #737a84;

  font-size: 9px;

  letter-spacing: 1px;

  font-weight: 800;
}

.fx-fin-kpi-head div {
  color: #aaaeb5;

  font-size: 9px;
}

.fx-fin-kpi strong {
  display: block;

  margin-top: 18px;

  color: #fff;

  font-size: 25px;

  letter-spacing: -.8px;
}

.fx-fin-kpi-title {
  display: block;

  margin-top: 6px;

  color: #a7adb5;

  font-size: 12px;

  font-weight: 700;
}

.fx-fin-kpi small {
  display: block;

  margin-top: 5px;

  color: #656c75;

  font-size: 10px;
}

.fx-fin-kpi-line {
  position: absolute;

  left: 20px;
  right: 20px;
  bottom: 14px;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.2),
      transparent
    );
}

/* =========================================================
   FINANCE COMMAND BAR
   ========================================================= */

.fx-finance-command-bar {
  margin-top: 20px;

  padding: 16px 18px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border: 1px solid var(--border);

  border-radius: 14px;

  background: #101216;
}

.fx-finance-command-bar > div:first-child span {
  display: block;

  color: #dce0e5;

  font-size: 10px;

  letter-spacing: 1.3px;

  font-weight: 800;
}

.fx-finance-command-bar > div:first-child small {
  display: block;

  margin-top: 4px;

  color: #656c75;

  font-size: 10px;
}

.fx-finance-actions {
  display: flex;

  gap: 8px;
}

.fx-fin-btn {
  height: 40px;

  padding: 0 15px;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  border-radius: 9px;

  font-size: 11px;

  font-weight: 800;

  transition: .2s;
}

.fx-fin-btn span {
  font-size: 16px;
}

.fx-fin-btn-primary {
  border: 0;

  background: #fff;

  color: #08090b;
}

.fx-fin-btn-secondary {
  border: 1px solid var(--border);

  background: #171a1f;

  color: #e1e3e6;
}

.fx-fin-btn:hover {
  transform: translateY(-1px);
}

/* =========================================================
   FINANCE MAIN GRID
   ========================================================= */

.fx-finance-main-grid {
  margin-top: 20px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(330px, 1fr);

  gap: 18px;
}

.fx-fin-panel {
  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 16px;

  background: #101216;

  box-shadow:
    0 15px 45px rgba(0,0,0,.22);
}

.fx-fin-panel-header {
  min-height: 80px;

  padding: 18px 20px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-bottom: 1px solid var(--border);
}

.fx-fin-code {
  color: #666d77;

  font-size: 8px;

  letter-spacing: 1.6px;

  font-weight: 800;
}

.fx-fin-panel-header h3 {
  margin-top: 5px;

  color: #fff;

  font-size: 15px;
}

.fx-fin-panel-header small {
  display: block;

  margin-top: 4px;

  color: #666d77;

  font-size: 10px;
}

.fx-fin-live,
.fx-fin-table-status {
  display: flex;

  align-items: center;

  gap: 7px;

  color: #727984;

  font-size: 8px;

  letter-spacing: 1px;

  font-weight: 800;
}

.fx-fin-live span,
.fx-fin-table-status span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--success);
}

/* =========================================================
   CASHFLOW
   ========================================================= */

.fx-cashflow-chart {
  display: flex;

  height: 285px;

  padding: 20px;
}

.fx-cashflow-y {
  width: 42px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  padding-bottom: 27px;

  color: #555c65;

  font-size: 9px;
}

.fx-cashflow-area {
  position: relative;

  flex: 1;

  overflow: hidden;

  border-left: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.fx-cash-grid {
  position: absolute;

  left: 0;
  right: 0;

  height: 1px;

  background: rgba(255,255,255,.045);
}

.fx-cash-grid:nth-child(1) {
  top: 10%;
}

.fx-cash-grid:nth-child(2) {
  top: 35%;
}

.fx-cash-grid:nth-child(3) {
  top: 60%;
}

.fx-cash-grid:nth-child(4) {
  top: 85%;
}

.fx-cash-svg {
  position: absolute;

  inset: 0;

  width: 100%;
  height: calc(100% - 28px);

  overflow: visible;
}

.fx-cash-line {
  fill: none;

  stroke: rgba(255,255,255,.85);

  stroke-width: 3;

  vector-effect: non-scaling-stroke;
}

.fx-cash-fill {
  fill: url(#cashIncomeGradient);

  opacity: .45;
}

.fx-cash-point {
  fill: #fff;

  filter:
    drop-shadow(0 0 7px rgba(255,255,255,.5));
}

.fx-cash-labels {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 4px;

  display: flex;

  justify-content: space-between;

  padding: 0 8px;

  color: #555c65;

  font-size: 8px;

  font-weight: 800;
}

.fx-flow-legend {
  padding: 15px 20px;

  display: flex;

  align-items: center;

  gap: 18px;

  border-top: 1px solid var(--border);

  color: #777f89;

  font-size: 10px;
}

.fx-legend-dot {
  display: inline-block;

  width: 7px;
  height: 7px;

  margin-right: 5px;

  border-radius: 50%;
}

.fx-legend-dot.income {
  background: #fff;
}

.fx-legend-dot.expense {
  background: #555b64;
}

.fx-flow-result {
  margin-left: auto;

  text-align: right;
}

.fx-flow-result small {
  display: block;

  color: #606771;

  font-size: 7px;

  letter-spacing: 1px;
}

.fx-flow-result strong {
  display: block;

  margin-top: 3px;

  color: #fff;

  font-size: 14px;
}

/* =========================================================
   CATEGORY
   ========================================================= */

.fx-category-visual {
  padding: 25px 20px;

  display: grid;

  grid-template-columns: 145px 1fr;

  align-items: center;

  gap: 20px;
}

.fx-donut {
  width: 135px;
  height: 135px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    conic-gradient(
      #fff 0 42%,
      #70757d 42% 70%,
      #42474e 70% 88%,
      #25292f 88% 100%
    );

  position: relative;
}

.fx-donut::after {
  content: "";

  position: absolute;

  inset: 13px;

  border-radius: 50%;

  background: #101216;
}

.fx-donut-inner {
  position: relative;

  z-index: 2;

  text-align: center;
}

.fx-donut-inner strong {
  display: block;

  color: #fff;

  font-size: 23px;
}

.fx-donut-inner span {
  display: block;

  margin-top: 3px;

  color: #666d77;

  font-size: 6px;

  letter-spacing: 1px;
}

.fx-category-list {
  display: flex;

  flex-direction: column;

  gap: 14px;
}

.fx-category-list > div {
  display: grid;

  grid-template-columns: 8px 1fr auto;

  align-items: center;

  gap: 9px;
}

.fx-cat-indicator {
  width: 6px;
  height: 6px;

  border-radius: 50%;
}

.cat-1 {
  background: #fff;
}

.cat-2 {
  background: #777d85;
}

.cat-3 {
  background: #4d535b;
}

.cat-4 {
  background: #292e35;
}

.fx-category-list strong {
  display: block;

  color: #d8dbe0;

  font-size: 10px;
}

.fx-category-list small {
  display: block;

  margin-top: 2px;

  color: #5f6670;

  font-size: 8px;
}

.fx-category-list b {
  color: #b7bcc3;

  font-size: 10px;
}

.fx-fin-panel-footer {
  padding: 13px 20px;

  display: flex;

  justify-content: space-between;

  border-top: 1px solid var(--border);

  color: #626973;

  font-size: 8px;

  letter-spacing: 1px;
}

.fx-fin-panel-footer strong {
  color: var(--success);
}

/* =========================================================
   MOVEMENTS
   ========================================================= */

.fx-movements-panel {
  margin-top: 18px;
}

.fx-finance-filters {
  padding: 15px 20px;

  display: grid;

  grid-template-columns: 180px 180px 1fr;

  gap: 10px;

  border-bottom: 1px solid var(--border);
}

.fx-finance-filters input,
.fx-finance-filters select {
  height: 40px;

  padding: 0 12px;

  font-size: 11px;
}

.fx-finance-table {
  min-height: 180px;

  padding: 20px;
}

.fx-fin-loading {
  min-height: 130px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 12px;

  color: #555c65;

  font-size: 10px;
}

.fx-loading-core {
  width: 24px;
  height: 24px;

  border: 2px solid #272c33;

  border-top-color: #fff;

  border-radius: 50%;

  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   CATEGORIES
   ========================================================= */

.fx-categories-panel {
  margin-top: 18px;
}

.fx-fin-badge {
  padding: 6px 10px;

  border: 1px solid var(--border);

  border-radius: 7px;

  color: #999fa8;

  font-size: 8px;

  font-weight: 800;

  letter-spacing: 1px;
}

.fx-finance-categories {
  padding: 20px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.fx-finance-footer {
  margin-top: 18px;

  padding: 18px 20px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-top: 1px solid var(--border);

  color: #555c65;

  font-size: 8px;

  letter-spacing: 1px;
}

.fx-finance-footer strong {
  display: block;

  color: #9ba1a9;

  font-size: 9px;
}

.fx-finance-footer span {
  display: block;

  margin-top: 4px;

  letter-spacing: 0;

  font-size: 9px;
}

.fx-footer-online {
  display: inline-block !important;

  width: 6px;
  height: 6px;

  margin-right: 5px !important;

  border-radius: 50%;

  background: var(--success);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1200px) {

  .sidebar {
    width: 220px;
  }

  .main {
    margin-left: 220px;

    padding-left: 25px;
    padding-right: 25px;
  }

  .fx-finance-orbit {
    right: 40px;
  }

  .admin-actions {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 950px) {

  .sidebar {
    position: relative;

    width: 100%;

    height: auto;

    padding: 15px;

    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .sidebar .brand {
    padding: 5px 8px 15px;
  }

  .sidebar nav {
    flex-direction: row;

    overflow-x: auto;
  }

  .nav {
    white-space: nowrap;
  }

  .logout {
    display: none;
  }

  .main {
    margin-left: 0;

    padding: 0 16px 30px;
  }

  .topbar {
    height: 75px;
  }

  .grid,
  .fx-finance-main-grid {
    grid-template-columns: 1fr;
  }

  .fx-finance-orbit {
    opacity: .25;

    right: -30px;
  }
}

@media (max-width: 700px) {

  .cards,
  .fx-finance-kpis {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 250px;

    padding: 28px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }

  .fx-finance-command-bar {
    flex-direction: column;

    align-items: flex-start;

    gap: 15px;
  }

  .fx-finance-actions {
    width: 100%;
  }

  .fx-fin-btn {
    flex: 1;

    justify-content: center;
  }

  .fx-finance-hero-content {
    padding: 30px;
  }

  .fx-finance-hero h1 {
    font-size: 42px;
  }

  .fx-finance-orbit {
    display: none;
  }

  .fx-finance-filters {
    grid-template-columns: 1fr;
  }

  .fx-category-visual {
    grid-template-columns: 1fr;

    justify-items: center;
  }

  .fx-category-list {
    width: 100%;
  }

  .fx-flow-legend {
    flex-wrap: wrap;
  }
}

/* =========================================================
   GA+ — MENU LATERAL / REDESIGN VISUAL FINAL
   ========================================================= */

.sidebar {
  width: 250px;
  padding: 24px 16px;
  box-sizing: border-box;
  background:
    linear-gradient(
      180deg,
      #0b0d10 0%,
      #08090b 100%
    );
}

.sidebar .brand {
  padding: 8px 14px 34px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
}

.sidebar .brand span {
  color: #ffffff;
}

.main-navigation {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.sidebar .nav {
  width: 100%;
  min-height: 52px;
  height: 52px;

  padding: 0 14px;

  display: flex;
  align-items: center;
  gap: 13px;

  box-sizing: border-box;

  border: 1px solid transparent;
  border-radius: 13px;

  background: transparent;

  color: #8d949e;

  text-align: left;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.sidebar .nav:hover {
  color: #ffffff;

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.07),
      rgba(255,255,255,.025)
    );

  border-color: rgba(255,255,255,.06);

  transform: translateX(2px);
}

.sidebar .nav.active {
  color: #ffffff;

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.12),
      rgba(255,255,255,.035)
    );

  border-color: rgba(255,255,255,.09);

  box-shadow:
    inset 3px 0 0 #ffffff,
    0 8px 24px rgba(0,0,0,.18);
}

.nav-icon {
  width: 32px;
  height: 32px;

  min-width: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background: rgba(255,255,255,.045);

  color: #9ca3ad;

  font-size: 17px;
  line-height: 1;

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.nav:hover .nav-icon {
  background: rgba(255,255,255,.08);
  color: #ffffff;
}

.nav.active .nav-icon {
  background: rgba(255,255,255,.12);
  color: #ffffff;

  transform: scale(1.04);
}

.nav-label {
  flex: 1;

  white-space: nowrap;

  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar .logout {
  margin-top: auto;

  height: 48px;

  border-radius: 12px;

  background: #101216;

  border: 1px solid rgba(255,255,255,.08);

  color: #858c96;

  font-weight: 600;

  transition: .2s ease;
}

.sidebar .logout:hover {
  background: #17191e;
  color: #ffffff;
  border-color: rgba(255,255,255,.14);
}


/* =========================================================
   ÁREA PRINCIPAL
   ========================================================= */

.main {
  margin-left: 250px;

  min-height: 100vh;

  padding:
    0 34px 40px;

  box-sizing: border-box;
}


/* =========================================================
   TOPO
   ========================================================= */

.topbar {
  min-height: 82px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid rgba(255,255,255,.07);
}

.topbar small {
  color: #727984;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 2px;
}

.topbar h2 {
  margin-top: 4px;

  color: #ffffff;

  font-size: 24px;
  font-weight: 700;

  letter-spacing: -.5px;
}


/* =========================================================
   CARDS — PADRÃO UNIFICADO
   ========================================================= */

.metric,
.admin-card,
.card,
.panel,
.table-card,
.finance-card,
.fx-finance-card {
  box-sizing: border-box;

  border-color: rgba(255,255,255,.08) !important;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.012)
    ),
    #111318 !important;

  box-shadow:
    0 12px 35px rgba(0,0,0,.22);
}


/* =========================================================
   EVITAR FUNDOS BRANCOS
   ========================================================= */

.page,
.main,
section,
article,
.card,
.panel,
.admin-card,
.metric,
.table-card {
  color: #e9edf2;
}

table {
  color: #dfe3e8;
}

input,
select,
textarea {
  color: #ffffff !important;

  background: #0d0f12 !important;

  border-color: rgba(255,255,255,.09) !important;
}

option {
  background: #111318;
  color: #ffffff;
}


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

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

th,
td {
  border-bottom: 1px solid rgba(255,255,255,.06);
}

th {
  color: #8c939d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

td {
  color: #d9dde2;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1200px) {

  .main {
    margin-left: 220px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .sidebar {
    width: 220px;
  }
}

@media (max-width: 950px) {

  .sidebar {
    position: relative;

    width: 100%;

    min-height: auto;

    padding: 16px;

    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .sidebar nav,
  .main-navigation {
    flex-direction: row;

    overflow-x: auto;
  }

  .sidebar .nav {
    min-width: 150px;
  }

  .main {
    margin-left: 0;

    padding:
      0 16px 30px;
  }

  .sidebar .logout {
    display: none;
  }
}

/* =========================================================
   CORRE??O DOS ?CONES DO MENU
   ========================================================= */
.nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.sidebar .nav {
  position: relative;
}
.sidebar .nav.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: #ffffff;
}
.sidebar .nav.active {
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.sidebar .nav.active .nav-icon {
  background: rgba(255,255,255,.12);
  color: #ffffff;
}.sidebar .nav:nth-of-type(1) .nav-icon{color:#60a5fa}.sidebar .nav:nth-of-type(2) .nav-icon{color:#a78bfa}.sidebar .nav:nth-of-type(3) .nav-icon{color:#34d399}.sidebar .nav:nth-of-type(4) .nav-icon{color:#fbbf24}.sidebar .nav:nth-of-type(5) .nav-icon{color:#f87171}.sidebar .nav .nav-icon svg{stroke:currentColor}

/* =========================================================
   GA+ — PADRÃO DOS CAMPOS
   ========================================================= */

.form-grid input,
.form-grid select,
.form-grid textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 10px;
  background: #0d0f12 !important;
  color: #f1f5f9 !important;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-grid input,
.form-grid select {
  height: 48px;
  padding: 0 14px;
}

.form-grid textarea {
  min-height: 130px;
  padding: 14px;
  resize: vertical;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #69717c;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: rgba(96,165,250,.65) !important;
  box-shadow: 0 0 0 3px rgba(96,165,250,.08);
}

.form-grid select {
  cursor: pointer;
}


/* =========================================================
   GA+ — PADRÃO DOS BOTÕES
   ========================================================= */

button {
  font-family: inherit;
}

.form-grid button,
.admin-card button,
.panel button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: linear-gradient(135deg,#ffffff,#dfe3e8);
  color: #090b0e;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.form-grid button:hover,
.admin-card button:hover,
.panel button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  filter: brightness(1.04);
}

.form-grid button:active,
.admin-card button:active,
.panel button:active {
  transform: translateY(0);
}


/* =========================================================
   GA+ — PADRÃO DOS CARDS
   ========================================================= */

.metric,
.admin-card,
.panel {
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background:
    linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.015)),
    #111318 !important;
  box-shadow: 0 14px 35px rgba(0,0,0,.22);
}

.metric {
  min-height: 125px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric span {
  color: #858d98;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
}

.metric strong {
  margin-top: 8px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.admin-card {
  padding: 24px;
}

.admin-card h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.admin-card p {
  color: #858d98;
  font-size: 13px;
  line-height: 1.6;
}

.panel {
  overflow: hidden;
}

.panel-head {
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.panel-head h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}


/* =========================================================
   GA+ — TOPO PADRONIZADO
   ========================================================= */

.topbar {
  min-height: 82px;
  padding: 0 4px;
  box-sizing: border-box;
}

.topbar h2 {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.5px;
}

.topbar small {
  color: #69717c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd1d8;
  font-size: 13px;
  font-weight: 600;
}


/* =========================================================
   GA+ — BOTÕES PADRONIZADOS
   ========================================================= */

button {
  font-family: inherit;
}

.form-grid button,
.admin-card button {
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  color: #0b0d10;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: .2s ease;
}

.form-grid button:hover,
.admin-card button:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.20);
}

.form-grid button:active,
.admin-card button:active {
  transform: translateY(0);
}


/* =========================================================
   GA+ — DASHBOARD / HERO PADRONIZADO
   ========================================================= */

.hero {
  position: relative;
  min-height: 235px;
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 85% 20%, rgba(96,165,250,.12), transparent 30%),
    radial-gradient(circle at 70% 90%, rgba(167,139,250,.08), transparent 35%),
    linear-gradient(145deg,#15181d,#0d0f12);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

.hero small {
  color: #7f8894;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero h1 {
  margin: 12px 0 0;
  color: #ffffff;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero p {
  max-width: 650px;
  margin-top: 14px;
  color: #929aa5;
  font-size: 14px;
  line-height: 1.7;
}

.cards {
  gap: 18px;
}

.grid {
  gap: 18px;
}


/* =========================================================
   GA+ — PAINÉIS PADRONIZADOS
   ========================================================= */

.panel {
  border-radius: 16px;
  overflow: hidden;
}

.panel-head {
  min-height: 64px;
  padding: 0 22px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.panel-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.panel > #announcements,
.panel > #myRequests {
  padding: 20px;
}


/* =========================================================
   GA+ — CARDS ADMINISTRATIVOS
   ========================================================= */

.admin-actions {
  gap: 18px;
}

.admin-card {
  border-radius: 15px;
  padding: 22px;
  min-height: 175px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.admin-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.admin-card p {
  margin: 10px 0 18px;
  color: #858e99;
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
}

.admin-card button {
  width: 100%;
  height: 42px;
}


/* =========================================================
   GA+ — TOPO PADRONIZADO
   ========================================================= */

.topbar {
  position: relative;
  z-index: 5;
  min-height: 82px;
  padding: 0 4px;
  box-sizing: border-box;
}

.topbar h2 {
  margin: 4px 0 0;
  line-height: 1.2;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: #dce2e8;
  font-size: 13px;
}


/* =========================================================
   GA+ — BOTÕES PADRONIZADOS
   ========================================================= */

button {
  font-family: inherit;
  cursor: pointer;
  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.form-grid button,
.admin-card button {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: #f1f3f5;
  color: #101216;
  font-size: 13px;
  font-weight: 700;
}

.form-grid button:hover,
.admin-card button:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.20);
}

.form-grid button:active,
.admin-card button:active {
  transform: translateY(0);
}


/* =========================================================
   GA+ — PAINÉIS PADRONIZADOS
   ========================================================= */

.panel {
  border-radius: 15px;
  overflow: hidden;
}

.panel-head {
  min-height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.panel-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}


/* =========================================================
   GA+ — INDICADORES PADRONIZADOS
   ========================================================= */

.metric {
  min-height: 125px;
  padding: 22px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.metric span {
  color: #8f98a3;
  font-size: 12px;
  font-weight: 600;
}

.metric strong {
  margin-top: 12px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 750;
  line-height: 1;
}


/* =========================================================
   GA+ — IDENTIDADE VISUAL FUTURISTA GLOBAL
   ========================================================= */

:root {
  --ga-bg: #07090d;
  --ga-panel: #10141b;
  --ga-panel-2: #151a23;
  --ga-border: rgba(255,255,255,.09);
  --ga-text: #f5f7fa;
  --ga-muted: #8b95a3;
  --ga-blue: #38bdf8;
  --ga-purple: #a78bfa;
  --ga-green: #34d399;
  --ga-orange: #fbbf24;
}

body {
  background:
    radial-gradient(circle at 80% 10%, rgba(56,189,248,.06), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(167,139,250,.05), transparent 30%),
    var(--ga-bg);
}

/* CARDS */

.metric,
.panel,
.admin-card,
.card,
.table-card,
.finance-card,
.fx-finance-card,
.fx-fin-kpi {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ga-border) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012)),
    var(--ga-panel) !important;
  box-shadow:
    0 15px 45px rgba(0,0,0,.28);
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.metric::before,
.panel::before,
.admin-card::before,
.card::before,
.table-card::before,
.finance-card::before,
.fx-finance-card::before,
.fx-fin-kpi::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      transparent 20%,
      rgba(56,189,248,.045),
      transparent 80%
    );
  pointer-events: none;
}

.metric:hover,
.panel:hover,
.admin-card:hover,
.card:hover,
.table-card:hover,
.finance-card:hover,
.fx-finance-card:hover,
.fx-fin-kpi:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,.25) !important;
  box-shadow:
    0 20px 55px rgba(0,0,0,.35),
    0 0 25px rgba(56,189,248,.05);
}

/* TÍTULOS */

h1,
h2,
h3 {
  letter-spacing: -.5px;
}

/* BOTÕES */

button {
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

button:hover {
  transform: translateY(-1px);
}

/* BARRA SUPERIOR */

.topbar {
  background: rgba(7,9,13,.72);
  backdrop-filter: blur(14px);
}

/* MOVIMENTO SUTIL */

@keyframes gaFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.fx-finance-core {
  animation: gaFloat 4s ease-in-out infinite;
}


/* =========================================================
   GA+ — CAMADA PREMIUM / MOTION UI
   ========================================================= */

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family:
    Inter,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

/* MOVIMENTO DOS CARDS */

.metric,
.admin-card,
.panel,
.card,
.table-card,
.finance-card,
.fx-finance-card,
.fx-fin-kpi {
  transform-style: preserve-3d;
  will-change: transform;
}

/* BRILHO DINÂMICO */

.metric::after,
.admin-card::after,
.panel::after,
.card::after,
.table-card::after,
.finance-card::after,
.fx-finance-card::after,
.fx-fin-kpi::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 45%;
  height: 300%;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.055),
      transparent
    );
  transform: rotate(20deg);
  pointer-events: none;
  animation: gaScan 7s linear infinite;
}

@keyframes gaScan {
  0% {
    left: -50%;
  }

  55% {
    left: 130%;
  }

  100% {
    left: 130%;
  }
}

/* BORDA TECNOLÓGICA */

.metric:hover,
.admin-card:hover,
.panel:hover,
.card:hover,
.table-card:hover,
.finance-card:hover,
.fx-finance-card:hover,
.fx-fin-kpi:hover {
  border-color: rgba(56,189,248,.32) !important;

  box-shadow:
    0 18px 50px rgba(0,0,0,.38),
    0 0 30px rgba(56,189,248,.07);
}

/* NÚMEROS DOS INDICADORES */

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  background:
    linear-gradient(
      90deg,
      #ffffff,
      #b9dfff
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* CABEÇALHOS DOS PAINÉIS */

.panel-head {
  position: relative;
}

.panel-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45px;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      var(--ga-blue),
      transparent
    );
}

/* INPUTS PREMIUM */

input,
select,
textarea {
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    transform .2s ease !important;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(255,255,255,.18) !important;
}

input:focus,
select:focus,
textarea:focus {
  transform: translateY(-1px);
  border-color: rgba(56,189,248,.55) !important;
  box-shadow:
    0 0 0 3px rgba(56,189,248,.07),
    0 8px 25px rgba(0,0,0,.18);
}

/* ÍCONES DO MENU MAIS NÍTIDOS */

.nav-icon svg {
  width: 19px;
  height: 19px;
  display: block;
  stroke-width: 1.8;
  shape-rendering: geometricPrecision;
}

/* INDICADOR DE MENU ATIVO */

.sidebar .nav.active {
  box-shadow:
    inset 3px 0 0 #ffffff,
    0 8px 25px rgba(0,0,0,.25);
}

/* RESPEITAR QUEM DESATIVA ANIMAÇÕES */

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

/* =========================================================
   GA+ — FUTURISTIC MOTION SYSTEM
   ========================================================= */

:root {
  --ga-cyan: #22d3ee;
  --ga-blue: #3b82f6;
  --ga-purple: #8b5cf6;
  --ga-pink: #ec4899;
  --ga-green: #10b981;
  --ga-yellow: #f59e0b;
}

/* FUNDO VIVO */

body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(34,211,238,.08),
      transparent 22%
    ),
    radial-gradient(
      circle at 80% 25%,
      rgba(139,92,246,.08),
      transparent 22%
    ),
    radial-gradient(
      circle at 60% 85%,
      rgba(236,72,153,.06),
      transparent 25%
    );

  animation: gaBackground 18s ease-in-out infinite alternate;
}

@keyframes gaBackground {
  0% {
    transform: translate(-2%, -2%) scale(1);
  }

  50% {
    transform: translate(3%, -1%) scale(1.05);
  }

  100% {
    transform: translate(-1%, 3%) scale(1.08);
  }
}

/* GRID TECNOLÓGICO */

.main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(255,255,255,.018) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.018) 1px,
      transparent 1px
    );

  background-size: 45px 45px;

  mask-image:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.8),
      transparent
    );
}

/* CARDS — EFEITO DE PROFUNDIDADE */

.metric,
.admin-card,
.panel,
.card,
.table-card,
.finance-card,
.fx-finance-card,
.fx-fin-kpi {
  isolation: isolate;
  transform: translateZ(0);
}

/* BORDA COLORIDA */

.metric::before,
.admin-card::before,
.panel::before,
.card::before,
.table-card::before,
.finance-card::before,
.fx-finance-card::before,
.fx-fin-kpi::before {
  z-index: -1;
}

/* AURA DOS CARDS */

.metric:hover {
  box-shadow:
    0 20px 55px rgba(0,0,0,.4),
    0 0 35px rgba(34,211,238,.10);
}

.admin-card:hover {
  box-shadow:
    0 20px 55px rgba(0,0,0,.4),
    0 0 35px rgba(139,92,246,.10);
}

.panel:hover {
  box-shadow:
    0 20px 55px rgba(0,0,0,.4),
    0 0 35px rgba(59,130,246,.08);
}

/* LINHA DE LUZ */

.metric,
.admin-card,
.panel,
.card,
.table-card,
.finance-card,
.fx-finance-card,
.fx-fin-kpi {
  --ga-glow: rgba(34,211,238,.5);
}

.metric:hover,
.admin-card:hover,
.panel:hover,
.card:hover,
.table-card:hover,
.finance-card:hover,
.fx-finance-card:hover,
.fx-fin-kpi:hover {
  border-color: var(--ga-glow) !important;
}

/* MÉTRICAS COM CORES */

.cards .metric:nth-child(1) {
  --ga-glow: rgba(34,211,238,.55);
}

.cards .metric:nth-child(2) {
  --ga-glow: rgba(139,92,246,.55);
}

.cards .metric:nth-child(3) {
  --ga-glow: rgba(16,185,129,.55);
}

/* PEQUENO PULSO */

.cards .metric strong {
  animation: gaNumberPulse 4s ease-in-out infinite;
}

.cards .metric:nth-child(2) strong {
  animation-delay: .8s;
}

.cards .metric:nth-child(3) strong {
  animation-delay: 1.6s;
}

@keyframes gaNumberPulse {
  0%, 100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.3);
  }
}

/* HERO MAIS VIVO */

.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;

  width: 260px;
  height: 260px;

  right: -80px;
  top: -100px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(34,211,238,.14),
      transparent 68%
    );

  animation: gaHeroOrb 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gaHeroOrb {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }

  50% {
    transform: translate(-35px,25px) scale(1.15);
  }
}

/* BOTÕES COLORIDOS */

.form-grid button,
.admin-card button {
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(56,189,248,.25);

  background:
    linear-gradient(
      135deg,
      rgba(59,130,246,.22),
      rgba(139,92,246,.18)
    );

  box-shadow:
    0 8px 25px rgba(0,0,0,.2);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.form-grid button:hover,
.admin-card button:hover {
  transform: translateY(-2px);

  border-color: rgba(34,211,238,.55);

  box-shadow:
    0 12px 30px rgba(0,0,0,.3),
    0 0 20px rgba(34,211,238,.10);
}

/* REFLEXO DOS BOTÕES */

.form-grid button::after,
.admin-card button::after {
  content: "";

  position: absolute;
  top: -100%;
  left: -30%;

  width: 25%;
  height: 300%;

  background: rgba(255,255,255,.12);

  transform: rotate(25deg);

  animation: gaButtonScan 5s linear infinite;
}

@keyframes gaButtonScan {
  0% {
    left: -40%;
  }

  45%, 100% {
    left: 140%;
  }
}


/* =========================================================
   GA+ — REFINAMENTO PREMIUM
   ========================================================= */

/* REDUZIR O BRILHO EXAGERADO */

.metric:hover,
.admin-card:hover,
.panel:hover,
.card:hover,
.table-card:hover,
.finance-card:hover,
.fx-finance-card:hover,
.fx-fin-kpi:hover {
  box-shadow:
    0 16px 40px rgba(0,0,0,.32),
    0 0 18px rgba(56,189,248,.045);
}

/* FUNDO COM MOVIMENTO SUTIL */

body::after {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  left: 45%;
  top: 35%;
  z-index: -1;
  pointer-events: none;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(59,130,246,.045) 0%,
      rgba(139,92,246,.025) 35%,
      transparent 70%
    );

  filter: blur(8px);

  animation: gaAmbientMove 14s ease-in-out infinite alternate;
}

@keyframes gaAmbientMove {
  0% {
    transform: translate(-120px,-60px) scale(.9);
  }

  50% {
    transform: translate(100px,80px) scale(1.1);
  }

  100% {
    transform: translate(-40px,120px) scale(.95);
  }
}

/* LOGO COM MOVIMENTO SUTIL */

.sidebar .brand {
  position: relative;
  animation: gaLogoFloat 5s ease-in-out infinite;
}

@keyframes gaLogoFloat {
  0%,100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

.sidebar .brand span {
  display: inline-block;
  animation: gaPlusPulse 3s ease-in-out infinite;
}

@keyframes gaPlusPulse {
  0%,100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .65;
    transform: scale(1.08);
  }
}

/* TÍTULOS COM ENTRADA SUAVE */

.topbar h2,
.hero h1 {
  animation: gaTitleIn .6s ease-out both;
}

@keyframes gaTitleIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   ADMINISTRAÇÃO — GRID ORGANIZADO
   ========================================================= */

#adminPage {
  width: 100%;
}

#adminContent {
  width: 100%;
}

#adminPage .admin-actions {
  display: grid !important;

  grid-template-columns:
    repeat(3, minmax(0, 1fr)) !important;

  gap: 18px !important;

  align-items: stretch !important;
}

#adminPage .admin-card {
  width: auto !important;
  min-width: 0 !important;

  min-height: 190px;

  display: flex !important;
  flex-direction: column !important;

  justify-content: space-between !important;

  padding: 22px !important;

  box-sizing: border-box;
}

#adminPage .admin-card h3 {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

#adminPage .admin-card p {
  flex: 1;

  margin-bottom: 18px !important;

  line-height: 1.55;
}

#adminPage .admin-card button {
  width: 100% !important;
  min-height: 42px;
  margin-top: auto !important;
}

/* =========================================================
   COMISSIONAMENTO — GRID ORGANIZADO
   ========================================================= */

#commissionPage .admin-actions {
  display: grid !important;

  grid-template-columns:
    repeat(3, minmax(0, 1fr)) !important;

  gap: 18px !important;

  align-items: stretch !important;
}

#commissionPage .admin-card {
  min-height: 190px;

  display: flex !important;
  flex-direction: column !important;

  justify-content: space-between !important;

  padding: 22px !important;

  box-sizing: border-box;
}

#commissionPage .admin-card h3 {
  margin-top: 0 !important;
}

#commissionPage .admin-card p {
  flex: 1;

  line-height: 1.55;

  margin-bottom: 18px !important;
}

#commissionPage .admin-card button {
  width: 100% !important;
  min-height: 42px;
  margin-top: auto !important;
}

/* RESPONSIVO */

@media (max-width: 1100px) {

  #adminPage .admin-actions,
  #commissionPage .admin-actions {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {

  #adminPage .admin-actions,
  #commissionPage .admin-actions {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   GA+ — ADMINISTRAÇÃO / VISUAL LIMPO
   ========================================================= */

/* MENOS BRILHO NOS CARDS */

.metric:hover,
.admin-card:hover,
.panel:hover,
.card:hover,
.table-card:hover,
.finance-card:hover,
.fx-finance-card:hover,
.fx-fin-kpi:hover {
  box-shadow:
    0 12px 30px rgba(0,0,0,.28) !important;

  border-color: rgba(255,255,255,.10) !important;
}

/* REMOVER O ASPECTO AZUL DOS BOTÕES */

.admin-card button,
.form-grid button {
  background: #171a20 !important;

  border: 1px solid rgba(255,255,255,.10) !important;

  box-shadow: none !important;

  color: #e8edf3 !important;
}

.admin-card button:hover,
.form-grid button:hover {
  background: #1d2128 !important;

  border-color: rgba(255,255,255,.18) !important;

  box-shadow:
    0 6px 18px rgba(0,0,0,.25) !important;

  transform: translateY(-1px);
}

/* DESLIGAR O REFLEXO AZUL DOS BOTÕES */

.admin-card button::after,
.form-grid button::after {
  display: none !important;
}

/* =========================================================
   ADMINISTRAÇÃO — SELEÇÃO MAIS CLARA
   ========================================================= */

#adminPage select,
#adminPage input,
#adminPage textarea {
  background: #101318 !important;

  border: 1px solid rgba(255,255,255,.10) !important;

  color: #edf1f5 !important;

  border-radius: 10px !important;

  box-shadow: none !important;
}

#adminPage select {
  height: 46px !important;

  padding: 0 14px !important;

  cursor: pointer;
}

#adminPage select:focus,
#adminPage input:focus,
#adminPage textarea:focus {
  border-color: rgba(255,255,255,.22) !important;

  box-shadow:
    0 0 0 2px rgba(255,255,255,.035) !important;
}

/* OPÇÕES DO SELECT */

#adminPage option {
  background: #111419 !important;

  color: #f1f5f9 !important;
}

/* LABELS */

#adminPage label {
  color: #aeb6c2 !important;

  font-size: 12px !important;

  font-weight: 600 !important;

  letter-spacing: .2px;
}

/* =========================================================
   ÁREA DE SELEÇÃO / AUTORIZAÇÃO
   ========================================================= */

#adminPage .admin-card {
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.035),
      rgba(255,255,255,.012)
    ),
    #111318 !important;

  border: 1px solid rgba(255,255,255,.075) !important;

  box-shadow:
    0 10px 28px rgba(0,0,0,.20) !important;
}

#adminPage .admin-card:hover {
  transform: translateY(-2px);

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.015)
    ),
    #12151a !important;
}

/* CABEÇALHOS DA ADMINISTRAÇÃO */

#adminPage h1,
#adminPage h2,
#adminPage h3 {
  color: #f4f6f8 !important;
}

#adminPage p {
  color: #8f98a4 !important;
}

/* =========================================================
   SELEÇÃO DE ITENS — VISUAL DE LISTA
   ========================================================= */

#adminPage input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;

  accent-color: #9ca3af;

  cursor: pointer;
}

/* ÁREAS DE LISTAGEM */

#adminPage .admin-list,
#adminPage .permissions,
#adminPage .access-list,
#adminPage .permission-list {
  background: #0d1014 !important;

  border: 1px solid rgba(255,255,255,.07) !important;

  border-radius: 12px;

  padding: 8px;
}

/* CADA ITEM */

#adminPage .admin-list > *,
#adminPage .permissions > *,
#adminPage .access-list > *,
#adminPage .permission-list > * {
  border-radius: 8px;

  transition:
    background .15s ease,
    transform .15s ease;
}

#adminPage .admin-list > *:hover,
#adminPage .permissions > *:hover,
#adminPage .access-list > *:hover,
#adminPage .permission-list > *:hover {
  background: rgba(255,255,255,.035);

  transform: translateX(2px);
}

/* =========================================================
   IDENTIDADE NEUTRA
   ========================================================= */

#adminPage .admin-card:nth-child(1),
#adminPage .admin-card:nth-child(2),
#adminPage .admin-card:nth-child(3),
#adminPage .admin-card:nth-child(4),
#adminPage .admin-card:nth-child(5),
#adminPage .admin-card:nth-child(6) {
  --ga-glow: transparent !important;
}



/* =========================================================
   GA+ — CENTRAL DE CONTROLE DE ACESSOS
   VISUAL EXECUTIVO
   ========================================================= */

#permissionContent {
  margin-top: 22px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.permission-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.012)
    ),
    #111318;
  box-shadow: 0 12px 35px rgba(0,0,0,.20);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.permission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.55),
    rgba(255,255,255,0)
  );
  opacity: .65;
}

.permission-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.permission-card-header {
  min-height: 72px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.permission-card-header small {
  display: block;
  margin-bottom: 5px;
  color: #707985;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.permission-card-header h3 {
  margin: 0;
  color: #f5f6f7;
  font-size: 15px;
  font-weight: 700;
}

.permission-count {
  min-width: 42px;
  height: 28px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: #cbd0d6;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.permission-list {
  padding: 7px 10px 10px;
}

.permission-item {
  position: relative;
  min-height: 58px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-sizing: border-box;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background .15s ease,
    transform .15s ease;
}

.permission-item:hover {
  background: rgba(255,255,255,.035);
  transform: translateX(2px);
}

.permission-check {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: block;
}

.permission-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.custom-check {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background: #0b0e12;
  transition:
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

.permission-check input:checked + .custom-check {
  border-color: rgba(255,255,255,.70);
  background: #f1f3f5;
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}

.permission-check input:checked + .custom-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #0b0d10;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.permission-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.permission-text strong {
  color: #e8ebee;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.permission-text small {
  color: #646c76;
  font-size: 10px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.permission-item:has(input:checked) .permission-text strong {
  color: #ffffff;
}

.permission-savebar {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  margin-top: 20px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      rgba(25,28,34,.96),
      rgba(13,15,19,.96)
    );
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
  backdrop-filter: blur(14px);
}

.permission-savebar > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.permission-savebar strong {
  color: #f1f3f5;
  font-size: 13px;
}

.permission-savebar small {
  color: #707985;
  font-size: 11px;
}

.permission-savebar > div:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

#permissionMsg {
  min-width: 10px;
  color: #aeb5bd;
  font-size: 11px;
  font-weight: 600;
}

#saveProfilePermissions {
  min-width: 175px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 10px;
  background: #f1f3f5 !important;
  color: #0b0d10 !important;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform .15s ease,
    background .15s ease,
    box-shadow .15s ease;
}

#saveProfilePermissions:hover {
  background: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,.30);
}

#saveProfilePermissions:active {
  transform: translateY(0);
}

.permission-loading {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: #101216;
  color: #777f89;
  font-size: 13px;
}

.empty-permissions {
  padding: 35px;
  text-align: center;
  border: 1px dashed rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.015);
}

.empty-permissions strong {
  color: #e7e9ec;
  font-size: 14px;
}

.empty-permissions p {
  margin-top: 8px;
  color: #707985;
  font-size: 12px;
}

#adminPage #permissionProfile {
  min-width: 260px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: #0e1115;
  color: #e8ebee;
  outline: none;
}

#adminPage #permissionProfile:focus {
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 0 0 3px rgba(255,255,255,.035);
}

#backPermissionCenter {
  min-width: 90px;
}

@media (max-width: 1000px) {

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

}

@media (max-width: 700px) {

  .permission-savebar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .permission-savebar > div:last-child {
    flex-direction: column;
    align-items: stretch;
  }

  #saveProfilePermissions {
    width: 100%;
  }

  #adminPage #permissionProfile {
    width: 100%;
    min-width: 0;
  }

}

/* =========================================================
   MODAL FINANCEIRO
========================================================= */

.finance-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.finance-modal.hidden {
  display: none !important;
}

.finance-modal-box {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #111318;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  padding: 28px;
  color: #fff;
}

.finance-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.finance-modal-code {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #aaa;
  margin-bottom: 8px;
}

.finance-modal-header h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.finance-modal-header small {
  color: #999;
}

.finance-modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}

.finance-modal-close:hover {
  background: rgba(255,255,255,.15);
}

.finance-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.finance-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.finance-form-field label {
  font-size: 13px;
  font-weight: 600;
  color: #ddd;
}

.finance-form-field input,
.finance-form-field select,
.finance-form-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: #191c22;
  color: #fff;
  padding: 12px 13px;
  font-size: 14px;
  outline: none;
}

.finance-form-field input:focus,
.finance-form-field select:focus,
.finance-form-field textarea:focus {
  border-color: rgba(255,255,255,.35);
}

.finance-form-field textarea {
  resize: vertical;
}

.finance-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 700px) {

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

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

  .finance-modal {
    padding: 12px;
  }

  .finance-modal-box {
    padding: 20px;
  }

}

/* =========================================================
   FINANCEIRO - TABELA DE MOVIMENTAÇÕES
========================================================= */

.fx-finance-table {
  padding: 0 !important;
  width: 100%;
  overflow-x: auto;
}

.fx-finance-table .table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.fx-finance-table table {
  width: 100%;
  min-width: 850px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.fx-finance-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9ca3af;
  background: rgba(255,255,255,.035);
  border-bottom: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}

.fx-finance-table tbody td {
  padding: 15px 16px;
  font-size: 13px;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(255,255,255,.055);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-finance-table tbody tr:hover {
  background: rgba(255,255,255,.025);
}

/* Largura das colunas */

.fx-finance-table th:nth-child(1),
.fx-finance-table td:nth-child(1) {
  width: 115px;
}

.fx-finance-table th:nth-child(2),
.fx-finance-table td:nth-child(2) {
  width: 240px;
}

.fx-finance-table th:nth-child(3),
.fx-finance-table td:nth-child(3) {
  width: 170px;
}

.fx-finance-table th:nth-child(4),
.fx-finance-table td:nth-child(4) {
  width: 170px;
}

.fx-finance-table th:nth-child(5),
.fx-finance-table td:nth-child(5) {
  width: 125px;
  text-align: center;
}

.fx-finance-table th:nth-child(6),
.fx-finance-table td:nth-child(6) {
  width: 140px;
  text-align: right;
}

.fx-finance-table th:nth-child(7),
.fx-finance-table td:nth-child(7) {
  width: 130px;
  text-align: center;
}

/* =========================================================
   FINANCEIRO - FORMULÁRIO
========================================================= */

.finance-form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #d1d5db;
}

.finance-form-field input,
.finance-form-field select,
.finance-form-field textarea {
  width: 100%;
  box-sizing: border-box;
}

#financePaymentDetailsField small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.4;
  color: #8f98a3;
}

#financePaymentDetails {
  min-height: 80px;
  resize: vertical;
}


/* =========================================================
   FINANCEIRO - AÇÕES DA TABELA
========================================================= */

.finance-row-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.finance-action-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  color: #e5e7eb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: .2s ease;
}

.finance-action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.09);
}

.finance-action-pay {
  color: #86efac;
  border-color: rgba(34,197,94,.20);
}

.finance-action-pay:hover {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.40);
}

.finance-action-cancel {
  color: #fca5a5;
  border-color: rgba(239,68,68,.20);
}

.finance-action-cancel:hover {
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.40);
}


/* ============================================================
   INTRANET GA - FINANCEIRO V3
   ============================================================ */

.ga-finance-overlay,
.ga-finance-form-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(0,0,0,.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ga-finance-window {
    width: min(1400px, 96vw);
    height: min(900px, 94vh);
    background: #f5f6f8;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0,0,0,.45);
    display: flex;
    flex-direction: column;
}

.ga-finance-header {
    background: #111;
    color: white;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ga-finance-title {
    font-size: 24px;
    font-weight: 800;
}

.ga-finance-subtitle {
    margin-top: 4px;
    opacity: .7;
    font-size: 13px;
}

.ga-finance-close,
.ga-finance-form-header button {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 30px;
    cursor: pointer;
}

.ga-finance-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 20px;
    background: #fff;
}

.ga-finance-card,
.ga-finance-big-card {
    background: #f7f7f7;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 18px;
}

.ga-finance-card span,
.ga-finance-big-card small {
    display: block;
    color: #777;
    font-size: 12px;
    font-weight: 600;
}

.ga-finance-card strong {
    display: block;
    font-size: 23px;
    margin-top: 8px;
}

.ga-finance-menu {
    display: flex;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.ga-finance-menu-item {
    border: 0;
    background: transparent;
    padding: 12px 16px;
    border-radius: 9px;
    cursor: pointer;
    color: #555;
    font-weight: 700;
    white-space: nowrap;
}

.ga-finance-menu-item:hover {
    background: #f1f1f1;
}

.ga-finance-menu-item.active {
    background: #111;
    color: #fff;
}

.ga-finance-content {
    flex: 1;
    overflow: auto;
}

.ga-finance-section {
    padding: 24px;
}

.ga-finance-section-title {
    font-size: 21px;
    font-weight: 800;
    color: #111;
}

.ga-finance-muted {
    color: #777;
    font-size: 13px;
    margin-top: 4px;
}

.ga-finance-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.ga-finance-primary {
    border: 0;
    background: #111;
    color: #fff;
    padding: 11px 16px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
}

.ga-finance-primary:hover {
    background: #2b2b2b;
}

.ga-finance-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
}

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

.ga-finance-table th {
    text-align: left;
    padding: 14px;
    font-size: 12px;
    color: #777;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.ga-finance-table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.ga-finance-table td strong {
    display: block;
}

.ga-finance-table td small {
    display: block;
    color: #888;
    margin-top: 3px;
}

.ga-table-button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 7px 9px;
    border-radius: 7px;
    cursor: pointer;
    margin: 2px;
}

.ga-table-button:hover {
    background: #f1f1f1;
}

.ga-status-ok {
    display: inline-block;
    background: #e7f7ed;
    color: #17753d;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}

.ga-status-off {
    display: inline-block;
    background: #eee;
    color: #777;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}

.ga-status-pendente {
    color: #9a6800;
    font-weight: 800;
}

.ga-status-vencido {
    color: #b42318;
    font-weight: 800;
}

.ga-status-pago {
    color: #17753d;
    font-weight: 800;
}

.ga-empty {
    text-align: center;
    color: #888;
    padding: 40px !important;
}

.ga-finance-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.ga-finance-big-card strong {
    display: block;
    font-size: 27px;
    margin: 10px 0;
}

.ga-finance-big-card span {
    color: #777;
    font-size: 12px;
}

.ga-finance-quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.ga-finance-quick-actions button {
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px 16px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
}

.ga-finance-form {
    width: min(900px, 95vw);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,.4);
}

.ga-finance-form-header {
    background: #111;
    color: #fff;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ga-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 22px;
}

.ga-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #555;
    font-size: 12px;
    font-weight: 700;
}

.ga-form-grid input,
.ga-form-grid select,
.ga-form-grid textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 11px;
    background: #fff;
    font-size: 13px;
}

.ga-form-grid textarea {
    min-height: 90px;
    resize: vertical;
}

.ga-form-wide {
    grid-column: 1 / -1;
}

.ga-form-actions {
    padding: 16px 22px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #eee;
}

.ga-form-actions button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.ga-payment-list {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ga-payment-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 13px;
    padding: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ga-payment-card > div:first-child strong,
.ga-payment-card > div:first-child span,
.ga-payment-card > div:first-child small {
    display: block;
}

.ga-payment-card span {
    margin-top: 4px;
    color: #555;
}

.ga-payment-card small {
    margin-top: 5px;
    color: #777;
}

.ga-payment-value {
    text-align: right;
}

.ga-payment-value strong {
    display: block;
    font-size: 19px;
    margin-bottom: 8px;
}

.ga-warning {
    color: #b42318 !important;
    font-weight: 700;
}

@media (max-width: 900px) {

    .ga-finance-summary,
    .ga-finance-dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .ga-form-wide {
        grid-column: auto;
    }
}

@media (max-width: 600px) {

    .ga-finance-summary,
    .ga-finance-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .ga-finance-toolbar,
    .ga-payment-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .ga-payment-value {
        text-align: left;
    }
}

/* =========================================================
   GA+ FINANCEIRO — NOVO LAYOUT
========================================================= */

.ga-finance-new {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px;
  box-sizing: border-box;
}

.ga-finance-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.06), transparent 30%),
    linear-gradient(135deg, #15181d, #0d0f12);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.ga-finance-user {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ga-finance-avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg,#2a2e35,#111317);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  box-shadow: inset 0 0 20px rgba(255,255,255,.04);
}

.ga-finance-overline,
.ga-finance-section-head > div > span {
  display: block;
  color: #858b95;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.ga-finance-welcome h1 {
  margin: 5px 0 4px;
  color: #fff;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.5px;
}

.ga-finance-welcome p {
  margin: 0;
  color: #858b95;
  font-size: 13px;
}

.ga-finance-date {
  min-width: 150px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}

.ga-finance-date span {
  display: block;
  margin-bottom: 6px;
  color: #707680;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.ga-finance-date strong {
  color: #d8dde4;
  font-size: 11px;
}

.ga-finance-date i,
.ga-finance-footer i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #7ed957;
  box-shadow: 0 0 10px rgba(126,217,87,.7);
}


/* RESUMO */

.ga-finance-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.ga-finance-summary-card {
  min-height: 118px;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
  background: #111419;
}

.ga-finance-summary-card span {
  display: block;
  color: #777e89;
  font-size: 11px;
  margin-bottom: 13px;
}

.ga-finance-summary-card strong {
  display: block;
  color: #fff;
  font-size: 23px;
  letter-spacing: -.4px;
}

.ga-finance-summary-card small {
  display: block;
  margin-top: 7px;
  color: #646b75;
  font-size: 10px;
}

.ga-finance-summary-card.income strong {
  color: #a9e58b;
}

.ga-finance-summary-card.expense strong {
  color: #e9a0a0;
}

.ga-finance-summary-card.pending strong {
  color: #e4c982;
}


/* AÇÕES */

.ga-finance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 34px;
}

.ga-finance-action {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.08);
  background: #111419;
  color: #fff;
  transition: .2s ease;
}

.ga-finance-action:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background: #161a20;
}

.ga-finance-action > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 500;
  background: rgba(255,255,255,.06);
}

.ga-finance-action strong {
  display: block;
  font-size: 13px;
}

.ga-finance-action small {
  display: block;
  margin-top: 4px;
  color: #737a84;
  font-size: 10px;
}

.ga-finance-action.income > span {
  color: #a9e58b;
}

.ga-finance-action.expense > span {
  color: #e9a0a0;
}

.ga-finance-action.neutral > span {
  color: #c7ccd4;
}


/* CABEÇALHO DAS SEÇÕES */

.ga-finance-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.ga-finance-section-head h2 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 19px;
}

.ga-finance-period {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #111419;
  border: 1px solid rgba(255,255,255,.06);
}

.ga-finance-period button {
  padding: 7px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #707680;
  font-size: 10px;
  cursor: pointer;
}

.ga-finance-period button.active,
.ga-finance-period button:hover {
  color: #fff;
  background: #20242b;
}


/* DUAS COLUNAS */

.ga-finance-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

.ga-finance-column {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.07);
  background: #101318;
}

.ga-finance-column-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ga-finance-column-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  font-size: 19px;
}

.ga-finance-column.receiving .ga-finance-column-icon {
  color: #9fe27f;
}

.ga-finance-column.payments .ga-finance-column-icon {
  color: #e5a0a0;
}

.ga-finance-column-header span {
  display: block;
  color: #666d77;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.ga-finance-column-header h3 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 15px;
}

.ga-finance-column-header > strong {
  margin-left: auto;
  color: #dce1e7;
  font-size: 14px;
}

.ga-finance-column-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.ga-finance-category-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  box-sizing: border-box;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: #fff;
  cursor: pointer;
  transition: .18s ease;
}

.ga-finance-category-card:hover {
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
}

.ga-finance-category-card .category-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 9px;
  background: rgba(255,255,255,.055);
  color: #cdd2d9;
  font-size: 13px;
}

.ga-finance-category-card strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
}

.ga-finance-category-card small {
  display: block;
  margin-top: 3px;
  color: #686f79;
  font-size: 10px;
}

.ga-finance-category-card > span {
  margin-left: auto;
  color: #626973;
  font-size: 15px;
}


/* HISTÓRICO */

.ga-finance-recent {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.07);
  background: #101318;
}

.ga-finance-section-head.compact {
  margin-bottom: 16px;
}

.ga-finance-filters {
  display: grid;
  grid-template-columns: 180px 180px 1fr;
  gap: 8px;
  margin-bottom: 15px;
}

.ga-finance-filters input,
.ga-finance-filters select {
  height: 40px;
  box-sizing: border-box;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.07);
  background: #0c0f13;
  color: #cbd0d7;
  outline: none;
  font-size: 11px;
}

.ga-finance-filters input::placeholder {
  color: #555c65;
}

.ga-finance-filters input:focus,
.ga-finance-filters select:focus {
  border-color: rgba(255,255,255,.18);
}

.ga-finance-table {
  min-height: 80px;
  overflow-x: auto;
}


/* RODAPÉ */

.ga-finance-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding: 15px 3px 5px;
  color: #555c65;
  font-size: 10px;
}

.ga-finance-footer span {
  font-weight: 800;
  letter-spacing: 1px;
}

.ga-finance-footer small {
  color: #4d535c;
}

.ga-finance-footer strong {
  color: #656c75;
  font-size: 9px;
}


/* RESPONSIVO */

@media (max-width: 1000px) {

  .ga-finance-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .ga-finance-columns {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 700px) {

  .ga-finance-new {
    padding: 15px;
  }

  .ga-finance-welcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .ga-finance-date {
    width: 100%;
    box-sizing: border-box;
  }

  .ga-finance-summary,
  .ga-finance-actions {
    grid-template-columns: 1fr;
  }

  .ga-finance-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ga-finance-period {
    width: 100%;
  }

  .ga-finance-period button {
    flex: 1;
  }

  .ga-finance-filters {
    grid-template-columns: 1fr;
  }

  .ga-finance-footer {
    align-items: flex-start;
    flex-direction: column;
  }

}

/* =========================================================
   COLABORADORES — FINANCEIRO GA+
========================================================= */

.ga-employees-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}

.ga-employees-overlay.active {
  display: flex;
}

.ga-employees-window {
  width: min(1050px, 100%);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: #101318;
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
}

.ga-employees-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 25px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.ga-employees-header span {
  display: block;
  color: #666d77;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.ga-employees-header h2 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 21px;
}

.ga-employees-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  color: #aaa;
  font-size: 20px;
  cursor: pointer;
}

.ga-employees-body {
  padding: 25px;
}

.ga-employees-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ga-employees-search {
  flex: 1;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  outline: none;
  background: #0b0e12;
  color: #fff;
}

.ga-employees-new {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: #e8ebef;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.ga-employees-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.ga-employee-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.ga-employee-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1d2229;
  color: #d9dde3;
  font-weight: 800;
}

.ga-employee-card strong {
  display: block;
  color: #eee;
  font-size: 12px;
}

.ga-employee-card small {
  display: block;
  margin-top: 4px;
  color: #686f79;
  font-size: 10px;
}

.ga-employee-pix {
  margin-left: auto;
  text-align: right;
}

.ga-employee-pix span {
  display: block;
  color: #666d77;
  font-size: 8px;
  letter-spacing: 1px;
}

.ga-employee-pix strong {
  margin-top: 4px;
  color: #9fe27f;
  font-size: 10px;
}

.ga-employee-form {
  display: none;
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: #0b0e12;
}

.ga-employee-form.active {
  display: block;
}

.ga-employee-form h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 15px;
}

.ga-employee-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ga-employee-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ga-employee-field.full {
  grid-column: 1 / -1;
}

.ga-employee-field label {
  color: #737a84;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.ga-employee-field input,
.ga-employee-field select {
  height: 40px;
  box-sizing: border-box;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  outline: none;
  background: #14181d;
  color: #ddd;
}

.ga-employee-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.ga-employee-form-actions button {
  height: 40px;
  padding: 0 17px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.ga-employee-cancel {
  background: #1b1f25;
  color: #aaa;
}

.ga-employee-save {
  background: #e8ebef;
  color: #111;
}

@media (max-width: 700px) {
  .ga-employees-overlay {
    padding: 10px;
  }

  .ga-employees-list,
  .ga-employee-fields {
    grid-template-columns: 1fr;
  }

  .ga-employee-field.full {
    grid-column: auto;
  }

  .ga-employees-toolbar {
    flex-direction: column;
  }
}


/* =========================================================
   GA+ FINANCEIRO — NOVA INTERFACE
   ========================================================= */

.ga-finance-new {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px;
  color: #f5f7fa;
}


/* =========================
   HEADER
   ========================= */

.ga-fin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.ga-fin-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ga-fin-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d222a, #0d1014);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .08em;
}

.ga-fin-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #858d99;
  margin-bottom: 5px;
}

.ga-fin-welcome h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.ga-fin-welcome h1 strong {
  font-weight: 750;
}

.ga-fin-welcome p {
  margin: 5px 0 0;
  color: #858d99;
  font-size: 13px;
}

.ga-fin-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ga-fin-date,
.ga-fin-status {
  height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ga-fin-date span {
  font-size: 9px;
  letter-spacing: .14em;
  color: #737b87;
}

.ga-fin-date strong {
  font-size: 13px;
  margin-top: 4px;
}

.ga-fin-status {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.ga-fin-status i,
.ga-fin-footer i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52d273;
  box-shadow: 0 0 12px rgba(82,210,115,.65);
}


/* =========================
   RESUMO
   ========================= */

.ga-fin-summary {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.ga-fin-summary-card {
  position: relative;
  min-height: 125px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
  overflow: hidden;
}

.ga-fin-summary-card::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -35px;
  bottom: -45px;
  border-radius: 50%;
  background: rgba(255,255,255,.035);
}

.ga-fin-summary-card span {
  display: block;
  font-size: 11px;
  color: #858d99;
}

.ga-fin-summary-card strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 24px;
  letter-spacing: -.04em;
}

.ga-fin-summary-card small {
  color: #666e79;
  font-size: 10px;
}

.ga-fin-summary-card.balance {
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.018));
}

.ga-fin-summary-card.income strong {
  color: #67d98b;
}

.ga-fin-summary-card.expense strong {
  color: #f17d7d;
}

.ga-fin-summary-card.pending strong {
  color: #e7c56a;
}


/* =========================
   AÇÕES
   ========================= */

.ga-fin-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.ga-fin-action {
  min-height: 76px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  text-align: left;
  transition: .2s ease;
}

.ga-fin-action:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.15);
}

.ga-fin-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 600;
  background: rgba(255,255,255,.06);
}

.ga-fin-action.receive .ga-fin-action-icon {
  color: #69d88c;
}

.ga-fin-action.payment .ga-fin-action-icon {
  color: #f17d7d;
}

.ga-fin-action.people .ga-fin-action-icon {
  color: #aab6ff;
}

.ga-fin-action strong {
  display: block;
  font-size: 13px;
}

.ga-fin-action small {
  display: block;
  margin-top: 4px;
  color: #737b87;
  font-size: 10px;
}


/* =========================
   SEÇÕES
   ========================= */

.ga-fin-operation,
.ga-fin-recent {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.018);
  overflow: hidden;
  margin-bottom: 18px;
}

.ga-fin-section-head {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ga-fin-section-head.compact {
  padding: 18px 22px;
}

.ga-fin-section-head > div:first-child > span {
  color: #737b87;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.ga-fin-section-head h2 {
  margin: 5px 0 0;
  font-size: 18px;
  letter-spacing: -.025em;
}

.ga-fin-section-head p {
  margin: 4px 0 0;
  color: #737b87;
  font-size: 11px;
}

.ga-fin-filter {
  display: flex;
  gap: 8px;
}

.ga-fin-filter select,
.ga-fin-filter input,
.ga-fin-section-head > select {
  height: 38px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: #11151a;
  color: #dce0e5;
  padding: 0 12px;
  outline: none;
  font-size: 11px;
}


/* =========================
   COLUNAS
   ========================= */

.ga-fin-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.07);
}

.ga-fin-column {
  background: #0d1014;
  min-height: 390px;
}

.ga-fin-column-head {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ga-fin-column-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ga-fin-column-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
}

.ga-fin-receipts .ga-fin-column-icon {
  color: #65d88a;
  background: rgba(101,216,138,.09);
}

.ga-fin-payments .ga-fin-column-icon {
  color: #f27c7c;
  background: rgba(242,124,124,.09);
}

.ga-fin-column-title span {
  display: block;
  color: #6f7782;
  font-size: 9px;
  letter-spacing: .14em;
}

.ga-fin-column-title h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.ga-fin-column-head > strong {
  font-size: 14px;
}

.ga-fin-receipts .ga-fin-column-head > strong {
  color: #65d88a;
}

.ga-fin-payments .ga-fin-column-head > strong {
  color: #f27c7c;
}

.ga-fin-category-list {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.ga-fin-category {
  width: 100%;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.018);
  color: #fff;
  border-radius: 13px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: .2s ease;
}

.ga-fin-category:hover {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.12);
}

.ga-fin-category > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ga-fin-category > div > div {
  display: flex;
  flex-direction: column;
}

.ga-fin-category strong {
  font-size: 12px;
}

.ga-fin-category small {
  margin-top: 3px;
  color: #6e7680;
  font-size: 9px;
}

.ga-fin-category b {
  color: #606873;
  font-size: 16px;
}

.category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65d88a;
  box-shadow: 0 0 10px rgba(101,216,138,.5);
}

.category-dot.fixed {
  background: #e58b8b;
  box-shadow: 0 0 10px rgba(229,139,139,.45);
}

.category-dot.monthly {
  background: #d9bd67;
  box-shadow: 0 0 10px rgba(217,189,103,.45);
}

.category-dot.other {
  background: #9da8ff;
  box-shadow: 0 0 10px rgba(157,168,255,.45);
}


/* =========================
   LISTAS
   ========================= */

.ga-fin-list {
  padding: 0 14px 14px;
}

.ga-fin-empty {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6772;
  font-size: 11px;
  border: 1px dashed rgba(255,255,255,.07);
  border-radius: 12px;
  text-align: center;
}


/* =========================
   TRANSAÇÕES
   ========================= */

.ga-fin-transactions {
  padding: 0 22px 22px;
  overflow-x: auto;
}


/* =========================
   FOOTER
   ========================= */

.ga-fin-footer {
  min-height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5f6772;
  font-size: 9px;
  letter-spacing: .08em;
}

.ga-fin-footer > span {
  color: #8c949f;
  font-weight: 700;
}

.ga-fin-footer small {
  flex: 1;
  font-size: 9px;
  letter-spacing: 0;
}

.ga-fin-footer > div {
  display: flex;
  align-items: center;
  gap: 7px;
}


/* =========================
   RESPONSIVO
   ========================= */

@media (max-width: 1050px) {

  .ga-fin-summary {
    grid-template-columns: 1fr 1fr;
  }

  .ga-fin-columns {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 750px) {

  .ga-finance-new {
    padding: 16px;
  }

  .ga-fin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ga-fin-header-info {
    width: 100%;
  }

  .ga-fin-date,
  .ga-fin-status {
    flex: 1;
  }

  .ga-fin-actions {
    grid-template-columns: 1fr;
  }

  .ga-fin-summary {
    grid-template-columns: 1fr;
  }

  .ga-fin-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ga-fin-filter {
    width: 100%;
  }

  .ga-fin-filter input,
  .ga-fin-filter select {
    flex: 1;
    min-width: 0;
  }

  .ga-fin-footer {
    flex-wrap: wrap;
    padding: 15px;
  }

}

/* =========================================================
   GA+ FINANCEIRO V3 — MODO PÁGINA
   Remove comportamento de janela fixa do Financeiro.
========================================================= */

.ga-finance-page {
    width: 100%;
    min-height: calc(100vh - 110px);
    box-sizing: border-box;
}

.ga-finance-page .ga-finance-window {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: calc(100vh - 110px);
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.ga-finance-page .ga-finance-header {
    border-radius: 18px;
    margin-bottom: 18px;
}

.ga-finance-page .ga-finance-content {
    flex: 1;
    overflow: visible;
}

.ga-finance-window {
    background: #0f1115 !important;
}

.ga-finance-summary {
    background: transparent !important;
}

.ga-finance-card,
.ga-finance-big-card {
    background: #111419 !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    color: #fff !important;
}

.ga-finance-card span,
.ga-finance-big-card small,
.ga-finance-big-card span {
    color: #858b95 !important;
}

.ga-finance-menu {
    background: #0f1115 !important;
    border-top: 1px solid rgba(255,255,255,.06) !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
}

.ga-finance-menu-item {
    color: #8d949f !important;
}

.ga-finance-menu-item:hover {
    background: #161a20 !important;
    color: #fff !important;
}

.ga-finance-menu-item.active {
    background: #20242b !important;
    color: #fff !important;
}

/* ============================================================
   FINANCEIRO GA — VISUAL PREMIUM DARK
   ============================================================ */

#financePage {
    color: #e9edf2 !important;
}

.ga-finance-page {
    background: transparent !important;
    color: #e9edf2 !important;
}

.ga-finance-page .ga-finance-window {
    background: #0c0f13 !important;
    border: 1px solid rgba(255,255,255,.04) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* CABEÇALHO */

.ga-finance-header {
    padding: 24px 28px !important;
    background:
        radial-gradient(circle at 90% 10%, rgba(255,255,255,.035), transparent 28%),
        linear-gradient(135deg,#12161b,#0d1014) !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 16px !important;
    color: #fff !important;
}

.ga-finance-title {
    color: #fff !important;
    font-size: 23px !important;
    font-weight: 800 !important;
}

.ga-finance-subtitle {
    color: #8b929c !important;
    opacity: 1 !important;
}

/* RESUMO SUPERIOR */

.ga-finance-summary {
    background: transparent !important;
    padding: 20px 4px !important;
    gap: 14px !important;
}

.ga-finance-card,
.ga-finance-big-card {
    background:
        linear-gradient(145deg,#12161b,#101318) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 15px !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.015) !important;
}

.ga-finance-card {
    min-height: 92px !important;
    padding: 18px !important;
}

.ga-finance-card span,
.ga-finance-big-card small,
.ga-finance-big-card span {
    color: #89919c !important;
}

.ga-finance-card strong,
.ga-finance-big-card strong {
    color: #ffffff !important;
}

/* MENU INTERNO */

.ga-finance-menu {
    margin-top: 4px !important;
    padding: 9px 12px !important;
    gap: 4px !important;
    background: #101318 !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 14px !important;
}

.ga-finance-menu-item {
    position: relative !important;
    background: transparent !important;
    color: #929aa5 !important;
    padding: 12px 15px !important;
    border-radius: 9px !important;
    transition: .18s ease !important;
}

.ga-finance-menu-item:hover {
    background: rgba(255,255,255,.045) !important;
    color: #fff !important;
}

.ga-finance-menu-item.active {
    background: #1a2027 !important;
    color: #ffffff !important;
}

.ga-finance-menu-item.active::after {
    content: "" !important;
    position: absolute !important;
    left: 14px !important;
    right: 14px !important;
    bottom: -10px !important;
    height: 2px !important;
    border-radius: 4px !important;
    background: #2bd792 !important;
}

/* CONTEÚDO */

.ga-finance-content {
    background: transparent !important;
    color: #e8edf2 !important;
}

.ga-finance-section {
    padding: 28px 4px !important;
}

.ga-finance-section-title {
    color: #ffffff !important;
    font-size: 20px !important;
}

.ga-finance-muted {
    color: #7d8590 !important;
}

/* TABELAS */

.ga-finance-table-wrap {
    overflow: hidden !important;
    background: #101318 !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 15px !important;
}

.ga-finance-table {
    width: 100% !important;
    background: transparent !important;
    color: #e8edf2 !important;
}

.ga-finance-table th {
    padding: 15px !important;
    background: #151a20 !important;
    color: #a8b0bb !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .25px !important;
}

.ga-finance-table td {
    padding: 16px 15px !important;
    background: #101318 !important;
    color: #dce2e8 !important;
    border-bottom: 1px solid rgba(255,255,255,.065) !important;
}

.ga-finance-table tr:last-child td {
    border-bottom: 0 !important;
}

.ga-finance-table tbody tr {
    transition: .15s ease !important;
}

.ga-finance-table tbody tr:hover td {
    background: #141920 !important;
}

.ga-finance-table td strong {
    color: #ffffff !important;
}

.ga-finance-table td small {
    color: #78818c !important;
}

/* BOTÕES */

.ga-finance-primary {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(43,215,146,.55) !important;
    border-radius: 10px !important;
    padding: 11px 16px !important;
    transition: .18s ease !important;
}

.ga-finance-primary:hover {
    background: rgba(43,215,146,.10) !important;
    border-color: #2bd792 !important;
}

.ga-table-button {
    background: #151a20 !important;
    color: #f5f7f9 !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 8px !important;
    padding: 7px 11px !important;
}

.ga-table-button:hover {
    background: #20262e !important;
    border-color: rgba(255,255,255,.22) !important;
}

/* AÇÕES RÁPIDAS */

.ga-finance-quick-actions {
    gap: 10px !important;
}

.ga-finance-quick-actions button {
    background: #12171d !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    transition: .18s ease !important;
}

.ga-finance-quick-actions button:hover {
    background: #192029 !important;
    border-color: rgba(43,215,146,.40) !important;
    transform: translateY(-1px) !important;
}

/* STATUS */

.ga-status-ok,
.ga-status-pago {
    color: #58dc94 !important;
    font-weight: 800 !important;
}

.ga-status-ok {
    background: rgba(43,215,146,.12) !important;
}

.ga-status-pendente {
    display: inline-block !important;
    color: #f0b44e !important;
    background: rgba(240,180,78,.10) !important;
    padding: 5px 9px !important;
    border-radius: 7px !important;
    font-weight: 800 !important;
}

.ga-status-vencido {
    display: inline-block !important;
    color: #ef7373 !important;
    background: rgba(239,115,115,.10) !important;
    padding: 5px 9px !important;
    border-radius: 7px !important;
    font-weight: 800 !important;
}

.ga-status-off {
    background: rgba(255,255,255,.07) !important;
    color: #929aa5 !important;
}

/* FORMULÁRIOS */

.ga-finance-form {
    background: #101318 !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.09) !important;
}

.ga-finance-form-header {
    background: #15191f !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
}

.ga-form-grid label {
    color: #a8b0ba !important;
}

.ga-form-grid input,
.ga-form-grid select,
.ga-form-grid textarea {
    background: #0c1014 !important;
    color: #e9edf2 !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    outline: none !important;
}

.ga-form-grid input:focus,
.ga-form-grid select:focus,
.ga-form-grid textarea:focus {
    border-color: rgba(43,215,146,.60) !important;
    box-shadow: 0 0 0 3px rgba(43,215,146,.07) !important;
}

.ga-form-grid input::placeholder,
.ga-form-grid textarea::placeholder {
    color: #59616c !important;
}

.ga-form-actions {
    border-top: 1px solid rgba(255,255,255,.07) !important;
}

.ga-form-actions button {
    background: #171c22 !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.10) !important;
}

.ga-form-actions button:hover {
    background: #20262e !important;
}

/* PAGAMENTOS */

.ga-payment-card {
    background: #101318 !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    color: #e8edf2 !important;
}

.ga-payment-card span,
.ga-payment-card small {
    color: #808994 !important;
}

.ga-payment-value strong {
    color: #ffffff !important;
}

/* EMPTY STATE */

.ga-empty {
    color: #747d88 !important;
}

/* SCROLLBAR */

.ga-finance-content::-webkit-scrollbar,
.ga-finance-table-wrap::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

.ga-finance-content::-webkit-scrollbar-thumb,
.ga-finance-table-wrap::-webkit-scrollbar-thumb {
    background: #2a3038 !important;
    border-radius: 20px !important;
}

/* RESPONSIVO */

@media (max-width: 900px) {
    .ga-finance-menu {
        border-radius: 12px !important;
    }

    .ga-finance-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}


/* ============================================================
   FINANCEIRO GA — DASHBOARD 2.0
   ============================================================ */

.ga-dashboard-v2 {
    padding-top: 26px !important;
}

.ga-dash-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
}

.ga-dash-overline {
    display: block;
    margin-bottom: 6px;
    color: #69727e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.7px;
}

.ga-dash-filters {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ga-dash-filters select,
.ga-dash-filters button {
    height: 39px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 9px;
    background: #11161c;
    color: #cbd1d8;
    font-size: 11px;
    outline: none;
}

.ga-dash-filters button {
    cursor: pointer;
}

.ga-dash-filters button:hover,
.ga-dash-filters select:focus {
    border-color: rgba(43,215,146,.45);
}

.ga-dash-kpis {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.ga-dash-kpi {
    min-height: 125px;
    padding: 18px;
    text-align: left;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 15px;
    background:
        linear-gradient(145deg,#12171d,#0f1318);
    color: #fff;
}

button.ga-dash-kpi {
    cursor: pointer;
}

button.ga-dash-kpi:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.16);
}

.ga-dash-kpi > span {
    display: block;
    color: #78818d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.ga-dash-kpi > strong {
    display: block;
    margin: 14px 0 8px;
    color: #fff;
    font-size: 24px;
    letter-spacing: -.5px;
}

.ga-dash-kpi.income > strong {
    color: #73dfa7;
}

.ga-dash-kpi.expense > strong {
    color: #ef9292;
}

.ga-dash-kpi.pending > strong {
    color: #e7be68;
}

.ga-dash-kpi small {
    color: #626c77;
    font-size: 10px;
}

.ga-dash-kpi strong.negative,
.ga-dash-month-grid strong.negative {
    color: #ef9292 !important;
}

.ga-dash-secondary {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.ga-dash-secondary > button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    text-align: left;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 13px;
    background: #101419;
    color: #fff;
}

.ga-dash-secondary > button:hover {
    background: #141a20;
    border-color: rgba(255,255,255,.13);
}

.ga-dash-secondary-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255,255,255,.045);
    font-weight: 900;
}

.ga-dash-secondary-icon.paid {
    color: #65d99b;
}

.ga-dash-secondary-icon.overdue {
    color: #ef8585;
}

.ga-dash-secondary-icon.neutral {
    color: #aeb6c0;
}

.ga-dash-secondary span,
.ga-dash-performance span {
    display: block;
    color: #6e7782;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .8px;
}

.ga-dash-secondary strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
}

.ga-dash-secondary small {
    display: block;
    margin-top: 3px;
    color: #59626d;
    font-size: 9px;
}

.ga-dash-main-grid {
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(270px,.8fr);
    gap: 14px;
    margin-bottom: 14px;
}

.ga-dash-panel {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 15px;
    background: #101419;
}

.ga-dash-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.ga-dash-panel-head span {
    color: #68717c;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.ga-dash-panel-head h3 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 15px;
}

.ga-dash-panel-head > small {
    color: #626b76;
    font-size: 9px;
}

.ga-dash-legend {
    display: flex;
    gap: 12px;
}

.ga-dash-legend .income {
    color: #6edda4;
}

.ga-dash-legend .expense {
    color: #eb8989;
}

.ga-dash-chart {
    height: 235px;
    display: grid;
    grid-template-columns: repeat(12,1fr);
    gap: 5px;
    align-items: stretch;
    padding-top: 8px;
}

.ga-dash-chart-month {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 3px 5px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #707985;
    cursor: pointer;
}

.ga-dash-chart-month:hover,
.ga-dash-chart-month.active {
    background: rgba(255,255,255,.035);
    color: #fff;
}

.ga-dash-bars {
    height: 190px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 3px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.ga-dash-bar {
    width: min(12px,40%);
    min-height: 0;
    border-radius: 4px 4px 1px 1px;
    transition: height .25s ease;
}

.ga-dash-bar.income {
    background: #3ccf8e;
}

.ga-dash-bar.expense {
    background: #dc7272;
}

.ga-dash-chart-month small {
    font-size: 8px;
}

.ga-dash-performance {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ga-dash-performance > div {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 11px;
    background: rgba(255,255,255,.018);
}

.ga-dash-performance strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 17px;
}

.ga-dash-performance small {
    display: block;
    margin-top: 4px;
    color: #65d99b;
}

.ga-dash-month-table {
    margin-bottom: 14px;
}

.ga-dash-month-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 7px;
}

.ga-dash-month-grid button {
    padding: 12px;
    text-align: left;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
    color: #fff;
}

.ga-dash-month-grid button:hover,
.ga-dash-month-grid button.active {
    border-color: rgba(43,215,146,.38);
    background: rgba(43,215,146,.045);
}

.ga-dash-month-grid span {
    display: block;
    color: #737d88;
    font-size: 9px;
    font-weight: 800;
}

.ga-dash-month-grid strong {
    display: block;
    margin: 7px 0 5px;
    font-size: 13px;
}

.ga-dash-month-grid small {
    color: #5f6873;
    font-size: 8px;
}

.ga-dash-commission-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid rgba(43,215,146,.15);
    border-radius: 15px;
    background:
        linear-gradient(
            135deg,
            rgba(43,215,146,.045),
            rgba(255,255,255,.015)
        );
}

.ga-dash-commission-preview h3 {
    margin: 4px 0 6px;
    color: #fff;
    font-size: 16px;
}

.ga-dash-commission-preview p {
    margin: 0;
    color: #69737e;
    font-size: 10px;
}

.ga-dash-commission-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.ga-dash-commission-tags span {
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 20px;
    background: rgba(255,255,255,.025);
    color: #7c8691;
    font-size: 8px;
}

@media (max-width: 1100px) {

    .ga-dash-kpis,
    .ga-dash-secondary {
        grid-template-columns: repeat(2,1fr);
    }

    .ga-dash-main-grid {
        grid-template-columns: 1fr;
    }

    .ga-dash-month-grid {
        grid-template-columns: repeat(4,1fr);
    }
}

@media (max-width: 700px) {

    .ga-dash-top,
    .ga-dash-commission-preview {
        align-items: flex-start;
        flex-direction: column;
    }

    .ga-dash-filters {
        width: 100%;
        flex-wrap: wrap;
    }

    .ga-dash-kpis,
    .ga-dash-secondary {
        grid-template-columns: 1fr;
    }

    .ga-dash-chart {
        overflow-x: auto;
        grid-template-columns: repeat(12,55px);
    }

    .ga-dash-month-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .ga-dash-commission-tags {
        justify-content: flex-start;
    }
}


/* ============================================================
   GA FINANCE - MODAL DE PAGAMENTO PREMIUM
   ============================================================ */

#gaFinancePaymentForm {
    padding: 24px 26px 26px;
}

#gaFinancePaymentForm .ga-finance-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    align-items: start;
}

#gaFinancePaymentForm .ga-finance-form-grid > label {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;

    min-width: 0;
    margin: 0 !important;

    font-size: 13px;
    color: #d7dbe0;
}

#gaFinancePaymentForm .ga-finance-form-grid > label > span {
    display: block;

    margin: 0;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;

    color: #aeb4bc;
}

#gaFinancePaymentForm input,
#gaFinancePaymentForm select {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px;

    box-sizing: border-box;

    padding: 0 13px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 11px;

    outline: none;

    background: rgba(255,255,255,.045);
    color: #f4f5f6;

    font-size: 14px;

    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

#gaFinancePaymentForm input:focus,
#gaFinancePaymentForm select:focus {
    border-color: rgba(70, 210, 155, .65);

    background: rgba(255,255,255,.065);

    box-shadow:
        0 0 0 3px rgba(70, 210, 155, .08);
}

#gaFinancePaymentForm input:disabled {
    opacity: 1;

    background: rgba(255,255,255,.025);

    color: #f2f4f5;

    font-weight: 700;
}

#gaFinancePaymentForm select option {
    background: #17191c;
    color: #f5f5f5;
}

#gaFinancePaymentForm input[type="file"] {
    min-height: 46px;

    padding: 7px 8px;

    cursor: pointer;
}

#gaFinancePaymentForm input[type="file"]::file-selector-button {
    min-height: 30px;

    margin-right: 10px;
    padding: 0 12px;

    border: 0;
    border-radius: 8px;

    background: rgba(255,255,255,.10);
    color: #f3f4f5;

    font-weight: 600;

    cursor: pointer;
}

#gaFinancePaymentForm label small {
    display: block;

    margin-top: 1px;

    font-size: 11px;
    line-height: 1.4;

    color: #818891;
}

#gaFinancePaymentForm .ga-finance-form-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end !important;

    gap: 10px !important;

    margin-top: 26px;
    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,.075);
}

#gaFinancePaymentForm .ga-finance-form-actions button {
    min-height: 43px;

    padding: 0 18px;

    border-radius: 11px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

#gaFinancePaymentForm .ga-finance-form-actions button:not(.ga-finance-primary) {
    border: 1px solid rgba(255,255,255,.10);

    background: rgba(255,255,255,.04);
    color: #c5c9ce;
}

#gaFinancePaymentForm .ga-finance-form-actions .ga-finance-primary {
    min-width: 180px;
}


/* Cabeçalho específico do modal de pagamento */

.ga-finance-form:has(#gaFinancePaymentForm)
.ga-finance-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 26px;

    border-bottom: 1px solid rgba(255,255,255,.075);
}

.ga-finance-form:has(#gaFinancePaymentForm)
.ga-finance-form-header > div {
    display: flex;
    flex-direction: column;

    gap: 4px;

    min-width: 0;
}

.ga-finance-form:has(#gaFinancePaymentForm)
.ga-finance-form-header strong {
    font-size: 18px;
    line-height: 1.2;

    color: #f4f5f6;
}

.ga-finance-form:has(#gaFinancePaymentForm)
.ga-finance-form-header small {
    color: #888f98;

    font-size: 12px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ga-finance-form:has(#gaFinancePaymentForm)
.ga-finance-form-header > button {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 11px;

    background: rgba(255,255,255,.04);
    color: #f5f5f5;

    font-size: 23px;

    cursor: pointer;
}


/* Tamanho e acabamento do modal */

.ga-finance-form-overlay
.ga-finance-form:has(#gaFinancePaymentForm) {
    width: min(720px, calc(100vw - 32px)) !important;

    max-height: 90vh;

    overflow-y: auto;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;

    background: #15181c;

    box-shadow:
        0 28px 80px rgba(0,0,0,.55);
}


/* Mobile */

@media (max-width: 680px) {

    #gaFinancePaymentForm {
        padding: 20px 18px;
    }

    #gaFinancePaymentForm .ga-finance-form-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    #gaFinancePaymentForm .ga-finance-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    #gaFinancePaymentForm .ga-finance-form-actions button {
        width: 100%;
    }

    .ga-finance-form:has(#gaFinancePaymentForm)
    .ga-finance-form-header {
        padding: 18px;
    }
}


/* ============================================================
   GA FINANCE - FILTRO CENTRAL DE PAGAMENTOS
   ============================================================ */

.ga-payments-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.ga-payments-period {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.ga-payments-period select,
.ga-payments-period button {
    min-height: 40px;
    padding: 0 13px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;

    background: rgba(255,255,255,.035);
    color: inherit;

    font-size: 13px;
}

.ga-payments-period select {
    min-width: 135px;
}

.ga-payments-period option {
    background: #17191c;
    color: #f5f5f5;
}

.ga-payments-period button {
    cursor: pointer;
    font-weight: 600;
}

.ga-payments-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    margin-top: 22px;
}

.ga-payments-summary > div {
    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 16px 18px;

    border: 1px solid rgba(255,255,255,.075);
    border-radius: 14px;

    background: rgba(255,255,255,.025);
}

.ga-payments-summary span,
.ga-payments-summary small {
    color: #8e959d;
}

.ga-payments-summary span {
    font-size: 12px;
}

.ga-payments-summary strong {
    font-size: 20px;
}

.ga-payments-summary small {
    font-size: 11px;
}

@media (max-width: 680px) {

    .ga-payments-top {
        align-items: stretch;
    }

    .ga-payments-period {
        width: 100%;
    }

    .ga-payments-period select {
        flex: 1;
        min-width: 0;
    }

    .ga-payments-period button {
        width: 100%;
    }

    .ga-payments-summary {
        grid-template-columns: 1fr;
    }
}

