﻿:root {
  --onsist-bg: #0f1117;
  --onsist-bg-soft: #171a22;
  --onsist-surface: rgba(20, 23, 31, 0.92);
  --onsist-surface-strong: #161922;
  --onsist-surface-alt: #1d222d;
  --onsist-primary: #77f278;
  --onsist-primary-strong: #49c96a;
  --onsist-primary-soft: rgba(119, 242, 120, 0.14);
  --onsist-info: #76b7ff;
  --onsist-info-soft: rgba(118, 183, 255, 0.14);
  --onsist-text: #f3f6fb;
  --onsist-text-soft: #c7cfdb;
  --onsist-muted: #8d96a7;
  --onsist-border: rgba(255, 255, 255, 0.08);
  --onsist-danger: #ff8f73;
  --onsist-danger-soft: rgba(255, 143, 115, 0.14);
  --onsist-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  --onsist-input-bg: #11141b;
  --onsist-input-text: #f3f6fb;
  --onsist-sidebar-bg: linear-gradient(180deg, #12151d 0%, #171b25 100%);
  --onsist-sidebar-active: rgba(119, 242, 120, 0.12);
  --onsist-sidebar-text: #eef3fa;
  --onsist-topbar-bg: rgba(20, 23, 31, 0.84);
  --onsist-auth-bg: radial-gradient(circle at top left, rgba(119, 242, 120, 0.14), transparent 34%), radial-gradient(circle at bottom right, rgba(72, 113, 255, 0.14), transparent 28%), #0d1016;
}

html[data-theme="light"] {
  --onsist-bg: #f3f5f8;
  --onsist-bg-soft: #eef2f7;
  --onsist-surface: rgba(255, 255, 255, 0.92);
  --onsist-surface-strong: #ffffff;
  --onsist-surface-alt: #f7f9fc;
  --onsist-primary: #57c27a;
  --onsist-primary-strong: #31a95c;
  --onsist-primary-soft: rgba(87, 194, 122, 0.12);
  --onsist-info: #2e7cf6;
  --onsist-info-soft: rgba(46, 124, 246, 0.12);
  --onsist-text: #22314c;
  --onsist-text-soft: #41506d;
  --onsist-muted: #7e8899;
  --onsist-border: rgba(34, 49, 76, 0.08);
  --onsist-danger: #de7050;
  --onsist-danger-soft: rgba(222, 112, 80, 0.12);
  --onsist-shadow: 0 18px 40px rgba(30, 41, 59, 0.08);
  --onsist-input-bg: #ffffff;
  --onsist-input-text: #22314c;
  --onsist-sidebar-bg: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  --onsist-sidebar-active: rgba(87, 194, 122, 0.14);
  --onsist-sidebar-text: #22314c;
  --onsist-topbar-bg: rgba(255, 255, 255, 0.82);
  --onsist-auth-bg: radial-gradient(circle at top left, rgba(87, 194, 122, 0.14), transparent 34%), radial-gradient(circle at bottom right, rgba(72, 113, 255, 0.12), transparent 28%), #f4f7fb;
}

html {
  font-size: 15px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--onsist-text);
  background: linear-gradient(180deg, var(--onsist-bg-soft) 0%, var(--onsist-bg) 100%);
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.4rem;
  background: var(--onsist-sidebar-bg);
  border-right: 1px solid var(--onsist-border);
  color: var(--onsist-sidebar-text);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  backdrop-filter: blur(18px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.brand-mark {
  width: 3.15rem;
  height: 3.15rem;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 1.05rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #10141c;
  background: linear-gradient(135deg, #d6ffd5 0%, var(--onsist-primary) 100%);
  box-shadow: 0 14px 30px rgba(80, 200, 120, 0.18);
}

.brand-mark-logo {
  padding: 0.52rem;
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-title {
  margin-bottom: 0.08rem;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--onsist-muted);
  line-height: 1.15;
}

.sidebar-nav {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.sidebar-group {
  display: grid;
  gap: 0.35rem;
}

.sidebar-submenu {
  display: grid;
  gap: 0.35rem;
  padding-left: 2.75rem;
}

.sidebar-sublink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.85rem;
  color: var(--onsist-muted);
  font-size: 0.86rem;
  font-weight: 700;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.sidebar-sublink-icon {
  width: 0.95rem;
  height: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 0.95rem;
}

.sidebar-sublink-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sidebar-sublink:hover {
  color: var(--onsist-text);
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(2px);
}

.sidebar-sublink.active {
  color: var(--onsist-primary);
  background: rgba(119, 242, 120, 0.08);
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  width: 100%;
  min-height: 3.15rem;
  padding: 0.82rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  color: var(--onsist-sidebar-text);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-link:hover {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--onsist-border);
}

.sidebar-link.active {
  background: var(--onsist-sidebar-active);
  color: var(--onsist-primary);
  border-color: rgba(119, 242, 120, 0.18);
  box-shadow: inset 0 0 0 1px rgba(119, 242, 120, 0.04);
}

.sidebar-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sidebar-link-text {
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.15;
}

.sidebar-footer-card {
  margin-top: auto;
  padding: 1rem;
  border: 1px solid var(--onsist-border);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-footer-title {
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.sidebar-footer-text {
  margin-bottom: 0.85rem;
  color: var(--onsist-muted);
  font-size: 0.88rem;
}

.session-card {
  margin-top: 0;
  background: linear-gradient(180deg, rgba(119, 242, 120, 0.06), rgba(255, 255, 255, 0.02));
}

.session-remaining {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(119, 242, 120, 0.16);
  border-radius: 1rem;
  color: var(--onsist-primary);
  background: rgba(119, 242, 120, 0.08);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.session-card.is-expired .session-remaining {
  color: var(--onsist-danger);
  border-color: rgba(255, 143, 115, 0.2);
  background: rgba(255, 143, 115, 0.08);
}

.mobile-session-card {
  margin-top: 0.75rem;
}

.sidebar-logout {
  margin-top: 0.75rem;
}

.app-main {
  min-width: 0;
  padding: 1.35rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--onsist-border);
  border-radius: 1.2rem;
  background: var(--onsist-topbar-bg);
  box-shadow: var(--onsist-shadow);
  backdrop-filter: blur(16px);
}

.topbar-title {
  font-size: 1.45rem;
  font-weight: 800;
}

.topbar-subtitle {
  color: var(--onsist-muted);
  font-size: 0.9rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-user {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--onsist-text);
  background: var(--onsist-primary-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.topbar-toggle {
  display: none;
}

.mobile-sidebar {
  display: none;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--onsist-border);
  border-radius: 1rem;
  background: var(--onsist-surface);
  box-shadow: var(--onsist-shadow);
}

.mobile-sidebar .sidebar-link {
  color: var(--onsist-text);
}

.mobile-sidebar .sidebar-link.active {
  background: var(--onsist-primary-soft);
  color: var(--onsist-primary);
}

.mobile-theme-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--onsist-border);
}

.app-content {
  padding-bottom: 2rem;
}

.dashboard-hero,
.stat-card,
.panel-card,
.filter-card,
.auth-card {
  position: relative;
  border: 1px solid var(--onsist-border);
  border-radius: 1.25rem;
  background: var(--onsist-surface);
  box-shadow: var(--onsist-shadow);
  backdrop-filter: blur(16px);
}

.dashboard-hero,
.filter-card,
.panel-card {
  padding: 1.25rem;
}

.dashboard-hero {
  margin-bottom: 1.25rem;
}

.hero-overline,
.auth-overline {
  color: var(--onsist-primary);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title,
.auth-title,
.auth-visual-title {
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  font-weight: 800;
}

.hero-subtitle,
.section-subtitle,
.panel-subtitle,
.auth-subtitle,
.auth-hint,
.stat-label,
.item-meta {
  color: var(--onsist-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.flow-toggle-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-card.is-submitting {
  animation: filterPulse 0.7s ease;
}

.date-picker-host-open {
  z-index: 70;
  overflow: visible;
  isolation: isolate;
}

.filter-card-annotated {
  position: relative;
  overflow: visible;
}

.filter-card-annotated::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(119, 242, 120, 0.08) 48%, transparent 100%);
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.filter-card-annotated.is-submitting::after {
  opacity: 1;
  animation: filterSweep 0.8s ease;
}

@keyframes filterPulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.995); }
  100% { transform: scale(1); }
}

@keyframes filterSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.section-intro,
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title,
.panel-title {
  margin: 0;
  font-weight: 800;
}

.section-title {
  font-size: 1.55rem;
}

.panel-title {
  font-size: 1.02rem;
}

.stat-card {
  padding: 1.15rem;
  animation: statCardRise 0.7s ease both;
}

.stat-card:nth-child(2) {
  animation-delay: 0.08s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.16s;
}

.stat-card:nth-child(4) {
  animation-delay: 0.24s;
}

.stat-value {
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 800;
}

.stat-tag,
.soft-badge,
.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  color: var(--onsist-primary);
  background: var(--onsist-primary-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-card-danger .stat-tag,
.soft-badge-danger {
  color: var(--onsist-danger);
  background: var(--onsist-danger-soft);
}

.stat-card-info .stat-value,
.value-info {
  color: var(--onsist-info) !important;
}

.stat-card-info .stat-tag,
.soft-badge-info {
  color: var(--onsist-info);
  background: var(--onsist-info-soft);
}

.stat-legend {
  margin-top: 0.9rem;
  color: var(--onsist-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.dashboard-tabs .nav-link {
  border-radius: 999px;
  color: var(--onsist-muted);
  background: transparent;
  font-weight: 700;
}

.dashboard-tabs .nav-link.active {
  color: #09110d;
  background: linear-gradient(135deg, #9dff8d 0%, var(--onsist-primary) 100%);
}

.chart-card {
  padding: 1.25rem;
  animation: cardFloatIn 0.8s ease both;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.chart-card-label {
  color: var(--onsist-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.chart-card-value {
  margin-top: 0.15rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
}

.chart-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 220px;
}

.dashboard-chart-canvas {
  width: 100%;
  height: 220px;
  display: block;
}

.chart-month-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.chart-month-item {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--onsist-border);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  animation: cardFloatIn 0.75s ease both;
}

html[data-theme="light"] .chart-month-item {
  background: rgba(34, 49, 76, 0.03);
}

.chart-month-label {
  color: var(--onsist-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.chart-month-value {
  margin-top: 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--onsist-text);
}

@keyframes statCardRise {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardFloatIn {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.flow-panel {
  height: 100%;
}

.period-flow-section {
  padding: 1.4rem;
}

.period-flow-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.period-flow-tabbar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0.35rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--onsist-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .period-flow-tabbar {
  background: rgba(34, 49, 76, 0.03);
}

.period-flow-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  color: var(--onsist-text-soft);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.period-flow-tab:hover {
  color: var(--onsist-text);
  transform: translateY(-1px);
}

.period-flow-tab.is-active {
  color: #0d120f;
  background: linear-gradient(135deg, #a8ff95 0%, var(--onsist-primary) 100%);
  box-shadow: 0 12px 24px rgba(119, 242, 120, 0.18);
}

.period-flow-panel {
  animation: cardFloatIn 0.35s ease both;
}

.period-responsavel-panel {
  height: 100%;
  padding: 1.25rem;
}

.period-responsavel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.period-responsavel-header > :first-child {
  flex: 1 1 0;
  min-width: 0;
}

.period-responsavel-summary {
  display: grid;
  flex: 0 0 auto;
  min-width: 9rem;
  justify-items: end;
  gap: 0.55rem;
  text-align: right;
}

.period-responsavel-summary .flow-total {
  margin-top: 0;
  font-size: clamp(1.55rem, 1.8vw, 2rem);
  line-height: 1.05;
}

.period-responsavel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.period-responsavel-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--onsist-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  min-height: 7.4rem;
}

html[data-theme="light"] .period-responsavel-card {
  background: rgba(34, 49, 76, 0.03);
}

.period-responsavel-card-receita {
  box-shadow: inset 0 0 0 1px rgba(119, 242, 120, 0.04);
}

.period-responsavel-card-despesa {
  box-shadow: inset 0 0 0 1px rgba(255, 143, 115, 0.04);
}

.period-responsavel-name {
  color: var(--onsist-text);
  font-size: 0.95rem;
  font-weight: 800;
}

.period-responsavel-total {
  font-size: 1.18rem;
  font-weight: 800;
}

.period-responsavel-total-receita {
  color: var(--onsist-primary);
}

.period-responsavel-total-despesa {
  color: var(--onsist-danger);
}

.period-responsavel-meta {
  color: var(--onsist-muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
}

.report-section {
  padding: 1.55rem;
}

.report-section-header {
  margin-bottom: 1.5rem;
}

.report-story-block {
  display: grid;
  gap: 1.2rem;
}

.report-story-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--onsist-border);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}

html[data-theme="light"] .report-story-header {
  background: rgba(34, 49, 76, 0.02);
}

.report-story-header-stack {
  align-items: stretch;
}

.report-story-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--onsist-text);
}

.report-story-text {
  max-width: 52rem;
  color: var(--onsist-text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.report-filter-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.report-filter-inline-text {
  color: var(--onsist-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.report-story-divider {
  height: 1px;
  margin: 1.5rem 0;
  background: linear-gradient(90deg, transparent 0%, var(--onsist-border) 12%, var(--onsist-border) 88%, transparent 100%);
}

.report-phase-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.85rem 0 1.55rem;
}

.report-phase-line {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(119, 242, 120, 0.38) 100%);
}

.report-phase-line-accent {
  background: linear-gradient(90deg, rgba(118, 183, 255, 0.32) 0%, transparent 100%);
}

.report-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(119, 242, 120, 0.24);
  border-radius: 999px;
  color: var(--onsist-text);
  background: linear-gradient(135deg, rgba(119, 242, 120, 0.08) 0%, rgba(118, 183, 255, 0.08) 100%);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.report-phase-icon {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--onsist-primary);
  background: rgba(119, 242, 120, 0.12);
}

.report-phase-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

html[data-theme="light"] .report-phase-badge {
  border-color: rgba(46, 124, 246, 0.18);
  background: linear-gradient(135deg, rgba(87, 194, 122, 0.1) 0%, rgba(46, 124, 246, 0.08) 100%);
}

html[data-theme="light"] .report-phase-icon {
  color: #16794a;
  background: rgba(87, 194, 122, 0.14);
}

.report-card-header-soft {
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.report-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.6rem;
  min-height: 3.25rem;
  padding: 0.55rem 0.95rem;
  border-radius: 1.2rem;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.report-counter-receita {
  color: var(--onsist-primary);
  background: rgba(119, 242, 120, 0.12);
}

.report-counter-despesa {
  color: var(--onsist-danger);
  background: rgba(255, 143, 115, 0.12);
}

.report-select-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--onsist-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.report-projection-form {
  display: block;
  width: min(100%, 24rem);
  margin-left: auto;
  padding: 1rem 1rem 0.95rem;
  border: 1px solid var(--onsist-border);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}

html[data-theme="light"] .report-projection-form {
  background: rgba(34, 49, 76, 0.02);
}

.report-scope-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--onsist-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

html[data-theme="light"] .report-scope-bar {
  background: rgba(34, 49, 76, 0.02);
}

.report-projection-select {
  min-width: 13rem;
  min-height: 2.7rem;
}

#dashboard-filtros,
#dashboard-relatorios {
  scroll-margin-top: 1.25rem;
}

.report-card {
  height: 100%;
  padding: 1.3rem;
}

.report-group-list {
  display: grid;
  gap: 0.8rem;
}

.report-group-card {
  border: 1px solid var(--onsist-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

html[data-theme="light"] .report-group-card {
  background: rgba(34, 49, 76, 0.025);
}

.report-group-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.05rem;
  cursor: pointer;
}

.report-group-summary::-webkit-details-marker {
  display: none;
}

.report-group-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--onsist-text);
}

.report-group-meta,
.report-next-meta {
  margin-top: 0.18rem;
  color: var(--onsist-muted);
  font-size: 0.85rem;
}

.report-group-total,
.report-next-total {
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.report-group-total-receita {
  color: var(--onsist-primary);
}

.report-group-total-despesa {
  color: var(--onsist-danger);
}

.report-group-body {
  display: grid;
  gap: 0.7rem;
  padding: 0 1.05rem 1rem;
}

.report-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--onsist-border);
}

.report-detail-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.report-detail-side {
  min-width: 10rem;
  display: grid;
  justify-items: end;
  gap: 0.3rem;
  text-align: right;
}

.report-detail-date {
  color: var(--onsist-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.report-next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.report-next-card {
  padding: 1rem;
  border: 1px solid var(--onsist-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .report-next-card {
  background: rgba(34, 49, 76, 0.03);
}

.report-next-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--onsist-text);
}

.floating-review-filters {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(119, 242, 120, 0.2);
  border-radius: 999px;
  color: var(--onsist-text);
  background: rgba(20, 23, 31, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.floating-review-filters:hover {
  transform: translateY(-2px);
  color: var(--onsist-text);
  border-color: rgba(119, 242, 120, 0.35);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
}

.floating-review-filters-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--onsist-primary);
  background: rgba(119, 242, 120, 0.12);
}

.floating-review-filters-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

html[data-theme="light"] .floating-review-filters {
  background: rgba(255, 255, 255, 0.92);
}

.report-empty {
  padding: 1.15rem 0.2rem 0.35rem;
  color: var(--onsist-muted);
  font-weight: 600;
}

.batch-page-shell {
  padding: 1.2rem 1.25rem;
}

.batch-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.batch-story-step {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--onsist-border);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}

html[data-theme="light"] .batch-story-step {
  background: rgba(34, 49, 76, 0.02);
}

.batch-story-number {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #09110d;
  background: linear-gradient(135deg, #a8ff95 0%, var(--onsist-primary) 100%);
  font-size: 0.86rem;
  font-weight: 800;
  flex: 0 0 2rem;
}

.batch-story-title {
  margin-bottom: 0.25rem;
  color: var(--onsist-text);
  font-size: 0.98rem;
  font-weight: 800;
}

.batch-story-text {
  color: var(--onsist-text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.batch-summary-card,
.batch-groups-card {
  padding: 1.3rem;
}

.batch-summary-top,
.batch-groups-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.batch-summary-copy,
.batch-groups-copy {
  max-width: 32rem;
}

.batch-summary-pill,
.batch-groups-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  min-height: 5rem;
  padding: 0.9rem 1rem;
  border-radius: 1.35rem;
  background: var(--onsist-info-soft);
  color: var(--onsist-info);
  text-align: center;
}

.batch-groups-pill {
  background: rgba(119, 242, 120, 0.12);
  color: var(--onsist-primary);
}

.batch-summary-pill-number,
.batch-summary-pill-label {
  display: block;
  line-height: 1.1;
  font-weight: 800;
}

.batch-summary-pill-number {
  font-size: 1.35rem;
}

.batch-summary-pill-label {
  margin-top: 0.2rem;
  font-size: 0.92rem;
}

.batch-summary-header {
  margin-bottom: 1rem;
}

.batch-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.batch-summary-grid-compact {
  margin-bottom: 1.15rem;
}

.batch-summary-stat {
  padding: 0.9rem 1rem;
  border: 1px solid var(--onsist-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

html[data-theme="light"] .batch-summary-stat {
  background: rgba(34, 49, 76, 0.02);
}

.batch-summary-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--onsist-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.batch-summary-value,
.batch-summary-count {
  color: var(--onsist-text);
  font-size: 1.15rem;
  font-weight: 800;
}

.batch-summary-value-highlight {
  color: var(--onsist-primary);
}

.batch-summary-actions {
  margin-top: 1rem;
}

.batch-group-list {
  display: grid;
  gap: 1rem;
}

.batch-group-card {
  padding: 1rem;
  border: 1px solid var(--onsist-border);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}

html[data-theme="light"] .batch-group-card {
  background: rgba(34, 49, 76, 0.02);
}

.batch-group-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.batch-group-title {
  color: var(--onsist-text);
  font-size: 1rem;
  font-weight: 800;
}

.batch-group-subtitle,
.batch-check-meta,
.batch-date-hint,
.batch-item-date {
  color: var(--onsist-muted);
  font-size: 0.86rem;
}

.batch-group-total {
  color: var(--onsist-text);
  font-size: 1.1rem;
  font-weight: 800;
  white-space: nowrap;
}

.batch-date-list {
  display: grid;
  gap: 0.8rem;
}

.batch-date-card {
  border: 1px solid var(--onsist-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

html[data-theme="light"] .batch-date-card {
  background: rgba(34, 49, 76, 0.03);
}

.batch-date-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
}

.batch-date-summary::-webkit-details-marker {
  display: none;
}

.batch-check-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 0;
  cursor: pointer;
}

.batch-date-body {
  display: grid;
  gap: 0.7rem;
  padding: 0 1rem 1rem;
}

.batch-item-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--onsist-border);
  cursor: pointer;
}

.batch-item-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.batch-item-main {
  min-width: 0;
  flex: 1 1 auto;
}

.batch-item-side {
  min-width: 11rem;
  display: grid;
  justify-items: end;
  gap: 0.3rem;
  text-align: right;
}

.batch-item-value {
  color: var(--onsist-text);
  font-size: 0.98rem;
  font-weight: 800;
}

.lancamento-form-shell .card-body {
  padding: 1.35rem;
}

.lancamento-form-shell .card-footer {
  padding: 1rem 1.35rem 1.2rem;
}

.form-control-calculado {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--onsist-text-soft) !important;
}

html[data-theme="light"] .form-control-calculado {
  background: rgba(34, 49, 76, 0.04) !important;
}

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

.flow-panel-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.flow-panel-subtitle {
  margin: 0.2rem 0 0;
  color: var(--onsist-muted);
}

.flow-total {
  margin-top: 0.35rem;
  font-size: 1.65rem;
  font-weight: 800;
}

.flow-total-receita {
  color: var(--onsist-primary);
}

.flow-total-despesa {
  color: var(--onsist-danger);
}

.flow-table .table-modern thead th {
  font-size: 0.75rem;
}

.flow-table .table-modern tbody td {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.empty-flow-message {
  padding-top: 1.35rem !important;
  padding-bottom: 1.35rem !important;
  text-align: center;
  font-weight: 600;
}

.item-meta-stack {
  display: grid;
  gap: 0.18rem;
  margin-top: 0.25rem;
}

.table-modern {
  margin: 0;
  color: var(--onsist-text) !important;
}

.table-modern thead th {
  border-bottom: 0;
  color: var(--onsist-muted) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  transition: color 0.18s ease;
}

.table-sort-link:hover {
  color: var(--onsist-text);
}

.table-sort-link.is-active {
  color: var(--onsist-text);
}

.table-modern tbody td {
  vertical-align: middle;
  border-color: var(--onsist-border);
  background: transparent;
  color: var(--onsist-text) !important;
}

.table-modern td *,
.table-modern th * {
  color: inherit;
}

.table-modern tbody tr {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.table-modern tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

html[data-theme="light"] .table-modern tbody tr:hover {
  background: rgba(34, 49, 76, 0.03);
}

.table-row-alert {
  background: linear-gradient(90deg, rgba(255, 143, 115, 0.14), rgba(255, 143, 115, 0.04));
}

.table-row-success {
  background: linear-gradient(90deg, rgba(119, 242, 120, 0.14), rgba(119, 242, 120, 0.04));
}

.table-row-open {
  background: linear-gradient(90deg, rgba(255, 190, 109, 0.12), rgba(255, 190, 109, 0.04));
}

.item-title {
  font-weight: 700;
  color: var(--onsist-text) !important;
}

.value-positive {
  color: var(--onsist-primary) !important;
  font-weight: 800;
}

.value-danger {
  color: var(--onsist-danger) !important;
  font-weight: 800;
}

.actions-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.actions-inline-tight {
  gap: 0.4rem;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--onsist-border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--onsist-text-soft);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.action-chip:hover {
  transform: translateY(-1px);
  color: var(--onsist-text);
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .action-chip {
  background: rgba(34, 49, 76, 0.03);
}

.action-chip-primary {
  color: #6db0ff !important;
  border-color: rgba(71, 128, 255, 0.45);
}

.action-chip-neutral {
  color: var(--onsist-text-soft) !important;
}

.action-chip-success {
  color: var(--onsist-primary) !important;
  border-color: rgba(119, 242, 120, 0.42);
}

.action-chip-danger {
  color: var(--onsist-danger) !important;
  border-color: rgba(255, 143, 115, 0.42);
}

html[data-theme="light"] .action-chip-primary {
  color: #1967ff;
  border-color: rgba(25, 103, 255, 0.35);
}

html[data-theme="light"] .action-chip-success {
  color: #169850;
  border-color: rgba(22, 152, 80, 0.3);
}

html[data-theme="light"] .action-chip-danger {
  color: #d73b52;
  border-color: rgba(215, 59, 82, 0.3);
}

.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.list-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.filter-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.filter-feedback-text {
  color: var(--onsist-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.filter-story-card {
  display: grid;
  gap: 1.35rem;
  padding: 1.45rem;
  border: 1px solid var(--onsist-border);
  border-radius: 1.45rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    var(--onsist-panel-soft);
}

.filter-story-card-secondary {
  background:
    linear-gradient(180deg, rgba(118, 183, 255, 0.06), rgba(118, 183, 255, 0.015)),
    var(--onsist-panel-soft);
}

.filter-story-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
}

.filter-story-title {
  margin: 0 0 0.3rem;
  color: var(--onsist-text);
  font-size: 1rem;
  font-weight: 800;
}

.filter-story-text {
  max-width: 44rem;
  color: var(--onsist-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.filter-phase-divider {
  margin: 1.25rem 0;
}

.quick-status-filters-wrap {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-status-filters-label {
  color: var(--onsist-text-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-story-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
  padding-top: 0.15rem;
}

.filter-story-actions-top,
.filter-story-actions-bottom {
  display: grid;
  gap: 0.75rem;
}

.filter-story-actions-top {
  padding-top: 0.15rem;
}

.filter-story-actions-bottom {
  padding-top: 0.45rem;
}

.filter-organize-hint {
  color: var(--onsist-muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  max-width: 58rem;
}

.scope-indicator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.scope-indicator-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  border: 1px dashed rgba(119, 242, 120, 0.28);
  border-radius: 999px;
  color: var(--onsist-text-soft);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.82rem;
  font-weight: 700;
}

.scope-indicator-pill-alt {
  border-color: rgba(118, 183, 255, 0.28);
}

.quick-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.status-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--onsist-border);
  border-radius: 999px;
  color: var(--onsist-text-soft);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.status-filter:hover {
  transform: translateY(-1px);
  color: var(--onsist-text);
}

.status-filter.active {
  color: var(--onsist-text);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 22px rgba(0, 0, 0, 0.14);
  animation: statusFilterPulse 1.4s ease-in-out infinite;
}

.status-filter-all {
  color: var(--onsist-text-soft);
  border-color: rgba(216, 222, 234, 0.22);
}

.status-filter-success {
  color: var(--onsist-primary);
  border-color: rgba(119, 242, 120, 0.32);
}

.status-filter-warning {
  color: #ffbe6d;
  border-color: rgba(255, 190, 109, 0.32);
}

.status-filter-danger {
  color: var(--onsist-danger);
  border-color: rgba(255, 143, 115, 0.32);
}

.status-filter-neutral {
  color: var(--onsist-text-soft);
  border-color: rgba(216, 222, 234, 0.24);
}

.status-filter.active.status-filter-success {
  background: rgba(119, 242, 120, 0.12);
}

.status-filter.active.status-filter-warning {
  background: rgba(255, 190, 109, 0.12);
}

.status-filter.active.status-filter-danger {
  background: rgba(255, 143, 115, 0.12);
}

.status-filter.active.status-filter-neutral {
  background: rgba(216, 222, 234, 0.1);
}

.status-filter.active.status-filter-all {
  background: rgba(216, 222, 234, 0.1);
}

@keyframes statusFilterPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(119, 242, 120, 0.14), 0 10px 22px rgba(0, 0, 0, 0.12);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(119, 242, 120, 0), 0 12px 26px rgba(0, 0, 0, 0.16);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(119, 242, 120, 0), 0 10px 22px rgba(0, 0, 0, 0.12);
  }
}

.table-card {
  overflow: visible;
}

.table-card .table-responsive {
  border-radius: 1rem;
  overflow-x: auto;
  overflow-y: visible;
}

.table-modern thead th:last-child,
.table-modern tbody td:last-child {
  text-align: right;
}

.compact-counter {
  white-space: nowrap;
  justify-content: center;
}

.compact-counter:empty {
  display: none;
}

.soft-badge-empty {
  opacity: 0.72;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--onsist-border);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0.16rem rgba(255, 255, 255, 0.05);
}

.status-pill-success {
  color: #9bff9c;
  border-color: rgba(119, 242, 120, 0.28);
  background: rgba(119, 242, 120, 0.14);
}

.status-pill-warning {
  color: #ffd08a;
  border-color: rgba(255, 190, 109, 0.28);
  background: rgba(255, 190, 109, 0.14);
}

.status-pill-danger {
  color: #ffb3a1;
  border-color: rgba(255, 143, 115, 0.28);
  background: rgba(255, 143, 115, 0.14);
}

.status-pill-neutral {
  color: #d8deea;
  border-color: var(--onsist-border);
  background: rgba(255, 255, 255, 0.04);
}

.type-pill-receber {
  color: #8fe9ff;
  border-color: rgba(118, 183, 255, 0.3);
  background: rgba(118, 183, 255, 0.14);
}

.type-pill-pagar {
  color: #ffb88d;
  border-color: rgba(255, 143, 115, 0.3);
  background: rgba(255, 143, 115, 0.14);
}

.type-pill-neutral {
  color: #d8deea;
  border-color: var(--onsist-border);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .status-pill-success {
  color: #146c3b;
  background: rgba(87, 194, 122, 0.16);
}

html[data-theme="light"] .status-pill-warning {
  color: #9b5b00;
  background: rgba(255, 190, 109, 0.18);
}

html[data-theme="light"] .status-pill-danger {
  color: #b24a2d;
  background: rgba(222, 112, 80, 0.16);
}

html[data-theme="light"] .status-pill-neutral {
  color: #41506d;
  background: rgba(34, 49, 76, 0.05);
}

html[data-theme="light"] .type-pill-receber {
  color: #1557ba;
  background: rgba(46, 124, 246, 0.14);
}

html[data-theme="light"] .type-pill-pagar {
  color: #b24a2d;
  background: rgba(222, 112, 80, 0.14);
}

html[data-theme="light"] .type-pill-neutral {
  color: #41506d;
  background: rgba(34, 49, 76, 0.05);
}

.action-menu-dropdown {
  display: inline-block;
  position: relative;
}

.action-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--onsist-border);
  border-radius: 0.95rem;
  color: var(--onsist-text-soft);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.action-menu-trigger:hover,
.action-menu-trigger:focus {
  color: var(--onsist-text);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.action-menu-trigger svg {
  width: 1rem;
  height: 1rem;
}

.action-menu-list {
    min-width: 0;
    width: max-content;
    max-width: 14rem;
    max-height: none;
    overflow: hidden;
    padding: 0.45rem;
    border: 1px solid var(--onsist-border);
    border-radius: 1rem;
    background: var(--onsist-surface-strong);
    box-shadow: var(--onsist-shadow);
    position: absolute;
    z-index: 1200;
  }
  
.action-menu-dropdown.dropstart .action-menu-list[data-bs-popper] {
    margin-right: 0.55rem;
  }

.action-menu-list form {
    margin: 0;
  }

.action-menu-list .dropdown-item {
  display: block;
  width: 100%;
  white-space: nowrap;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  color: var(--onsist-text);
  font-weight: 600;
}

.action-menu-list .dropdown-item:hover,
.action-menu-list .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .action-menu-trigger {
  background: rgba(34, 49, 76, 0.03);
}

html[data-theme="light"] .action-menu-trigger:hover,
html[data-theme="light"] .action-menu-trigger:focus {
  background: rgba(34, 49, 76, 0.06);
}

html[data-theme="light"] .action-menu-list .dropdown-item:hover,
html[data-theme="light"] .action-menu-list .dropdown-item:focus {
  background: rgba(34, 49, 76, 0.05);
}

.onsist-confirm-modal .modal-dialog {
  max-width: 34rem;
}

.onsist-confirm-modal .modal-content {
  border: 1px solid var(--onsist-border);
  border-radius: 1.35rem;
  background: var(--onsist-surface-strong);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  color: var(--onsist-text);
}

.onsist-confirm-modal .modal-body {
  color: var(--onsist-text-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.onsist-confirm-modal .btn-close {
  filter: invert(1);
  opacity: 0.75;
}

html[data-theme="light"] .onsist-confirm-modal .btn-close {
  filter: none;
}

.btn {
  border-radius: 0.95rem;
  font-weight: 700;
}

.btn-primary,
.btn-hero {
  border-color: transparent;
  color: #0d120f;
  background: linear-gradient(135deg, #a8ff95 0%, var(--onsist-primary) 100%);
}

.btn-primary:hover,
.btn-hero:hover {
  color: #0d120f;
}

.btn-ghost-light {
  color: var(--onsist-text);
  border: 1px solid var(--onsist-border);
  background: transparent;
}

.btn-outline-secondary {
  color: var(--onsist-text-soft);
  border-color: var(--onsist-border);
  background: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  color: var(--onsist-text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.pagination {
  --bs-pagination-bg: transparent;
  --bs-pagination-color: var(--onsist-text-soft);
  --bs-pagination-border-color: var(--onsist-border);
  --bs-pagination-hover-color: var(--onsist-text);
  --bs-pagination-hover-bg: rgba(255, 255, 255, 0.04);
  --bs-pagination-hover-border-color: rgba(255, 255, 255, 0.16);
  --bs-pagination-focus-color: var(--onsist-text);
  --bs-pagination-focus-bg: rgba(255, 255, 255, 0.06);
  --bs-pagination-focus-box-shadow: none;
  --bs-pagination-disabled-bg: transparent;
  --bs-pagination-disabled-color: var(--onsist-muted);
  --bs-pagination-disabled-border-color: var(--onsist-border);
  --bs-pagination-active-color: #0d120f;
  --bs-pagination-active-bg: linear-gradient(135deg, #a8ff95 0%, var(--onsist-primary) 100%);
  --bs-pagination-active-border-color: transparent;
}

html[data-theme="light"] .btn-outline-secondary:hover,
html[data-theme="light"] .btn-outline-secondary:focus,
html[data-theme="light"] .btn-outline-secondary:active {
  border-color: rgba(34, 49, 76, 0.12);
  background: rgba(34, 49, 76, 0.04);
}

.form-control,
.form-select {
  min-height: 3rem;
  border-color: var(--onsist-border);
  border-radius: 0.95rem;
  color: var(--onsist-input-text);
  background: var(--onsist-input-bg);
}

.input-icon-field {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  width: 1rem;
  height: 1rem;
  color: var(--onsist-muted);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.input-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.input-icon-field .form-control,
.input-icon-field .form-select {
  padding-left: 2.8rem;
}

.input-icon-field-textarea .input-icon {
  top: 1rem;
  transform: none;
}

.input-icon-field-textarea .form-control {
  padding-top: 0.85rem;
}

input[type="date"].form-control {
  color-scheme: dark;
}

.date-picker-shell {
  position: relative;
  isolation: isolate;
}

.date-picker-shell.is-open {
  z-index: 45;
}

body.date-picker-open::before {
  content: none;
}

.date-picker-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.date-picker-display {
  padding-right: 3.5rem;
}

.date-picker-toggle {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  width: 2rem;
  height: 2rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.75rem;
  color: var(--onsist-text-soft);
  background: transparent;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.date-picker-toggle:hover,
.date-picker-shell.is-open .date-picker-toggle {
  color: var(--onsist-primary);
  background: rgba(119, 242, 120, 0.08);
}

.date-picker-toggle svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.date-picker-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 0;
  z-index: 60;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--onsist-border);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--onsist-surface-strong);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    0 12px 32px rgba(0, 0, 0, 0.24);
  transform: none;
  pointer-events: auto;
}

.date-picker-panel.is-open {
  animation: datePickerIn 0.18s ease;
}

.date-picker-header,
.date-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.date-picker-header {
  margin-bottom: 0.85rem;
}

.date-picker-title {
  color: var(--onsist-text);
  font-size: 0.98rem;
  font-weight: 800;
}

.date-picker-nav,
.date-picker-action {
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--onsist-border);
  border-radius: 0.8rem;
  color: var(--onsist-text-soft);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.date-picker-nav {
  width: 2.25rem;
  padding-inline: 0;
  justify-content: center;
}

.date-picker-nav:hover,
.date-picker-action:hover {
  transform: translateY(-1px);
  color: var(--onsist-text);
  background: rgba(255, 255, 255, 0.05);
}

.date-picker-action-primary {
  color: #0d120f;
  border-color: transparent;
  background: linear-gradient(135deg, #a8ff95 0%, var(--onsist-primary) 100%);
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.date-picker-weekdays {
  margin-bottom: 0.45rem;
}

.date-picker-weekdays span {
  padding: 0.35rem 0;
  color: var(--onsist-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.date-picker-grid {
  gap: 0.25rem;
  margin-bottom: 0.85rem;
}

.date-picker-day {
  min-height: 2.4rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  color: var(--onsist-text);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.date-picker-day:hover {
  transform: translateY(-1px);
  border-color: var(--onsist-border);
  background: rgba(255, 255, 255, 0.04);
}

.date-picker-day.is-outside {
  color: var(--onsist-muted);
  opacity: 0.48;
}

.date-picker-day.is-today {
  border-color: rgba(118, 183, 255, 0.32);
  color: var(--onsist-info);
  background: rgba(118, 183, 255, 0.08);
}

.date-picker-day.is-selected {
  color: #0d120f;
  border-color: transparent;
  background: linear-gradient(135deg, #a8ff95 0%, var(--onsist-primary) 100%);
  box-shadow: 0 10px 24px rgba(119, 242, 120, 0.18);
}

html[data-theme="light"] .date-picker-nav,
html[data-theme="light"] .date-picker-action {
  background: rgba(34, 49, 76, 0.03);
}

html[data-theme="light"] .date-picker-day:hover {
  background: rgba(34, 49, 76, 0.04);
}

html[data-theme="light"] .date-picker-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94)),
    #ffffff;
  box-shadow:
    0 28px 80px rgba(34, 49, 76, 0.16),
    0 10px 26px rgba(34, 49, 76, 0.08);
}

@keyframes datePickerIn {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

html[data-theme="light"] input[type="date"].form-control {
  color-scheme: light;
}

.form-control::placeholder {
  color: var(--onsist-muted);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(119, 242, 120, 0.55);
  background: var(--onsist-input-bg);
  color: var(--onsist-input-text);
  box-shadow: 0 0 0 0.2rem rgba(119, 242, 120, 0.15);
}

.form-check-input {
  border-color: var(--onsist-border);
  background-color: var(--onsist-input-bg);
}

.form-check-input:checked {
  background-color: var(--onsist-primary-strong);
  border-color: var(--onsist-primary-strong);
}

.form-text,
.text-muted {
  color: var(--onsist-muted) !important;
}

.alert {
  border: 0;
  border-radius: 1rem;
}

.alert-danger {
  color: #ffd7cd;
  background: rgba(130, 39, 22, 0.5);
}

html[data-theme="light"] .alert-danger {
  color: #8f2d1f;
  background: #ffe9e2;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--onsist-border);
  border-radius: 999px;
  color: var(--onsist-text);
  background: var(--onsist-surface-alt);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(119, 242, 120, 0.25);
}

.theme-toggle-wide {
  justify-content: space-between;
  width: 100%;
}

.theme-toggle-sun,
.theme-toggle-moon {
  font-size: 0.85rem;
  font-weight: 700;
}

html[data-theme="dark"] .theme-toggle-sun {
  opacity: 0.55;
}

html[data-theme="light"] .theme-toggle-moon {
  opacity: 0.55;
}

.auth-page {
  display: grid;
  place-items: center;
  background: var(--onsist-auth-bg);
}

.auth-shell {
  width: min(100%, 28rem);
  padding: 1.25rem;
}

.auth-shell-wide {
  width: min(100%, 72rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.auth-visual-panel,
.auth-card-modern {
  position: relative;
  overflow: hidden;
  min-height: 40rem;
}

.auth-visual-panel {
  padding: 2rem;
  border: 1px solid var(--onsist-border);
  border-radius: 1.6rem;
  background: linear-gradient(160deg, rgba(119, 242, 120, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: var(--onsist-shadow);
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.auth-visual-subtitle {
  max-width: 30rem;
  color: var(--onsist-text-soft);
  font-size: 1rem;
}

.auth-brand-logo,
.auth-card-logo {
  width: auto;
  display: block;
}

.auth-brand-logo {
  height: 2.45rem;
  margin-bottom: 1.5rem;
}

.auth-visual-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(119, 242, 120, 0.18);
  border-radius: 999px;
  color: var(--onsist-text-soft);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-feature-list {
  display: grid;
  gap: 1rem;
  margin-top: auto;
}

.auth-feature-item {
  display: flex;
  gap: 0.9rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--onsist-border);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.auth-feature-item p {
  margin: 0.2rem 0 0;
  color: var(--onsist-muted);
  line-height: 1.55;
}

.auth-feature-icon {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.8rem;
  color: #09110d;
  background: linear-gradient(135deg, #a8ff95 0%, var(--onsist-primary) 100%);
  box-shadow: 0 10px 24px rgba(119, 242, 120, 0.18);
  flex: 0 0 auto;
}

.auth-feature-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.auth-visual-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.85;
}

.auth-visual-orb-one {
  top: -2rem;
  right: -1rem;
  width: 12rem;
  height: 12rem;
  background: rgba(119, 242, 120, 0.18);
}

.auth-visual-orb-two {
  bottom: -3rem;
  left: -2rem;
  width: 14rem;
  height: 14rem;
  background: rgba(72, 113, 255, 0.18);
}

.auth-card {
  padding: 2rem;
}

.auth-card-modern {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.008)),
    var(--onsist-surface);
}

.auth-card-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.auth-form {
  max-width: 28rem;
}

.auth-inline-note {
  margin-top: 0.9rem;
  color: var(--onsist-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-field .form-label {
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.auth-field .form-control {
  min-height: 3.65rem;
  border-radius: 1.1rem;
}

.auth-field .input-icon-field .form-control {
  padding-left: 3rem;
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 3.2rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  transform: translateY(-50%);
  border: 0;
  color: var(--onsist-muted);
  background: transparent;
}

.table,
.card,
.dropdown-menu,
.modal-content {
  --bs-table-bg: transparent;
  --bs-card-bg: var(--onsist-surface);
  --bs-body-bg: transparent;
  --bs-body-color: var(--onsist-text);
  --bs-border-color: var(--onsist-border);
  --bs-secondary-color: var(--onsist-muted);
  --bs-tertiary-bg: var(--onsist-surface-alt);
}

.card {
  border-color: var(--onsist-border) !important;
  background: var(--onsist-surface) !important;
  box-shadow: var(--onsist-shadow);
}

.card-footer,
.card-header,
.list-group-item {
  border-color: var(--onsist-border) !important;
  background: transparent !important;
  color: var(--onsist-text);
}

.navbar-toggler {
  border-color: var(--onsist-border);
}

.navbar-toggler-icon {
  filter: invert(1);
}

html[data-theme="light"] .navbar-toggler-icon {
  filter: none;
}

@media (max-width: 991.98px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .topbar-toggle {
    display: inline-flex;
  }

  .mobile-sidebar.show {
    display: grid;
    gap: 0.5rem;
  }

  .auth-shell-wide {
    grid-template-columns: 1fr;
  }

  .auth-visual-panel {
    min-height: 18rem;
  }

  .auth-card-modern {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  html {
    font-size: 14px;
  }

  .app-main {
    padding: 1rem;
  }

  .topbar,
  .section-intro,
  .panel-header,
  .auth-card-topbar,
  .chart-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions,
  .actions-inline {
    width: 100%;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .actions-inline > * {
    flex: 1 1 calc(50% - 0.45rem);
  }

  .action-group,
  .list-toolbar,
  .list-toolbar-actions,
  .filter-actions {
    width: 100%;
  }

  .filter-story-card {
    padding: 1.2rem;
    border-radius: 1.2rem;
  }

  .filter-story-header,
  .filter-story-summary {
    align-items: stretch;
  }

  .action-group,
  .list-toolbar-actions {
    justify-content: flex-start;
  }

  .action-chip {
    flex: 1 1 calc(50% - 0.45rem);
    min-width: 0;
  }

  .table-modern {
    min-width: 720px;
  }

  .topbar-user {
    display: none;
  }

  .auth-shell {
    padding: 1rem;
  }

  .auth-shell-wide {
    width: min(100%, 30rem);
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-visual-panel {
    display: none;
  }

  .auth-card,
  .auth-card-modern,
  .auth-visual-panel {
    padding: 1.35rem;
    min-height: auto;
  }

  .auth-card-modern {
    border-radius: 1.4rem;
  }

  .auth-card-topbar {
    gap: 0.75rem;
  }

  .auth-title {
    font-size: 2.1rem;
  }

  .auth-subtitle {
    max-width: 22rem;
  }

  .auth-inline-note {
    margin-top: 0.7rem;
    font-size: 0.86rem;
  }

  .compact-counter {
    width: 100%;
    text-align: left;
  }

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

  .period-flow-tabbar {
    width: 100%;
  }

  .period-flow-tab {
    flex: 1 1 12rem;
  }

  .period-responsavel-header {
    flex-direction: column;
  }

  .period-responsavel-summary {
    width: 100%;
    justify-items: start;
  }

  .period-responsavel-grid {
    grid-template-columns: 1fr;
  }

  .report-group-summary,
  .report-detail-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-detail-side {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }

  .report-next-grid {
    grid-template-columns: 1fr;
  }

  .report-scope-bar {
    align-items: flex-start;
  }

  .report-projection-select {
    width: 100%;
  }

  .report-story-header {
    flex-direction: column;
  }

  .report-filter-inline {
    align-items: flex-start;
  }

  .report-projection-form {
    width: 100%;
    margin-left: 0;
  }

  .report-phase-divider {
    gap: 0.65rem;
  }

  .report-phase-badge {
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .date-picker-panel {
    inset: auto 1rem 1rem 1rem;
    top: auto;
    left: 1rem;
    width: auto;
    max-width: none;
    padding: 1rem;
    border-radius: 1.25rem;
    transform: none;
  }

  .date-picker-day {
    min-height: 2.9rem;
    font-size: 0.95rem;
  }

  .batch-story {
    grid-template-columns: 1fr;
  }

  .batch-summary-grid {
    grid-template-columns: 1fr;
  }

  .batch-summary-top,
  .batch-groups-top,
  .batch-group-header,
  .batch-date-summary,
  .batch-item-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .batch-summary-pill,
  .batch-groups-pill {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .batch-item-side {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }

  .floating-review-filters {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    justify-content: center;
  }
}
