:root {
  --bg: #eef5ef;
  --surface: #ffffff;
  --surface-soft: #f5faf6;
  --text: #102015;
  --muted: #5f7166;
  --border: #cfe0d2;
  --border-dark: #9fbea6;
  --primary: #217346;
  --primary-hover: #185c37;
  --primary-soft: #e7f3eb;
  --primary-line: #b7d7bf;
  --danger: #a12828;
  --income-blue: #1d4ed8;
  --warning: #8a6500;
  --success: #217346;
  --radius: 8px;
  --shadow: 0 10px 24px rgba(16, 74, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(33, 115, 70, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 115, 70, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.full { width: 100%; }

.button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 700;
  min-height: 41px;
}
.button:hover { background: var(--primary-hover); }
.button.secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--border-dark);
}
.button.secondary:hover { background: var(--primary-soft); }
.button.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}
.link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px;
  text-decoration: underline;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.brand-block {
  display: grid;
  gap: 5px;
  margin-bottom: 22px;
}
.brand-block strong { font-size: 25px; color: var(--primary); }
.brand-block span { color: var(--muted); }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.auth-tabs button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  font-weight: 700;
}
.auth-tabs button.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.form-stack {
  display: grid;
  gap: 14px;
}
.message {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--danger);
  text-align: center;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #f8fbf8;
  border-right: 1px solid var(--border);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.brand {
  display: grid;
  gap: 4px;
}
.brand strong { font-size: 21px; color: var(--primary); }
.brand span { color: var(--muted); font-size: 13px; }
.side-nav {
  display: grid;
  gap: 6px;
}
.side-nav a {
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #244331;
  font-weight: 700;
}
.side-nav a:hover { background: var(--primary-soft); }
.side-nav a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.main-area {
  min-width: 0;
  padding: 28px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}
.topbar h1 {
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.topbar p {
  margin: 0;
  color: var(--muted);
}
.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.screen { display: grid; gap: 18px; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.metric-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}
.metric-card strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary-line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.panel-header {
  margin-bottom: 16px;
}
.panel-header.split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.panel-header h2 {
  margin: 0 0 5px;
  font-size: 20px;
}
.panel-header p {
  margin: 0;
  color: var(--muted);
}
.narrow-panel { max-width: 760px; }
.two-column-grid {
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.toolbar {
  margin: 0 0 14px;
}

input, select {
  width: 100%;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  background: #fff;
  min-height: 42px;
  padding: 10px 11px;
  color: var(--text);
}
input:focus, select:focus {
  outline: 2px solid rgba(33, 115, 70, 0.18);
  border-color: var(--primary);
}
input[readonly] { background: var(--surface-soft); color: var(--muted); }
label {
  display: grid;
  gap: 7px;
  color: #303030;
  font-weight: 700;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid .wide-field,
.form-grid .button {
  grid-column: 1 / -1;
}
.form-hint {
  color: var(--muted);
  margin-top: -8px;
}

.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #fff;
}
th, td {
  border: 1px solid var(--border);
  padding: 10px 10px;
  text-align: left;
  vertical-align: middle;
}
th {
  color: #174d31;
  background: #e7f3eb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
td { color: #1b2a20; }
tbody tr:nth-child(even) { background: #fbfdfb; }
tbody tr:hover { background: #f0f8f2; }
.empty-state {
  border: 1px dashed var(--border-dark);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 18px;
  color: var(--muted);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.status-pill.ok { color: var(--success); background: #eef8f1; border-color: #c2dfca; }
.status-pill.low { color: var(--warning); background: #fff9e8; border-color: #ead79a; }
.status-pill.empty { color: var(--danger); background: #fff1f1; border-color: #e8b8b8; }
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.separated-actions {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(14, 58, 33, 0.34);
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal-panel {
  width: min(680px, 100%);
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.modal-header h2 { margin: 0; }
.toast {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 30;
  margin: 0;
  max-width: min(420px, calc(100vw - 36px));
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 13px 15px;
  box-shadow: var(--shadow);
}

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .side-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .side-nav a { white-space: nowrap; }
  .sidebar-footer { display: none; }
  .main-area { padding: 18px; }
  .topbar { flex-direction: column; }
  .top-actions { justify-content: flex-start; }
  .metrics-grid, .two-column-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  .main-area { padding: 14px; }
  .topbar h1 { font-size: 25px; }
  .panel, .metric-card { padding: 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .panel-header.split { flex-direction: column; }
  .button { width: 100%; }
  .row-actions .button { width: auto; }
}

/* Refinamentos da etapa visual */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.compact-list {
  display: grid;
  gap: 9px;
}
.compact-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px 12px;
}
.compact-item strong { display: block; }
.compact-item span { color: var(--muted); font-size: 13px; }
.compact-number {
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.split-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.split-toolbar input { max-width: 420px; }
.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 13px;
}
.status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}
.legend-dot.ok { background: var(--success); }
.legend-dot.low { background: #c69200; }
.legend-dot.empty { background: var(--danger); }
.calculation-preview.positive { border-left-color: var(--success); color: var(--success); background: #eef8f1; }
.calculation-preview.negative { border-left-color: var(--danger); color: var(--danger); background: #fff1f1; }
.calculation-preview.neutral { border-left-color: var(--border-dark); color: var(--muted); }
label small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.35;
}
.empty-state strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}
.type-badge {
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--border);
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
}
.type-badge.entrada { color: var(--success); background: #eef8f1; border-color: #c2dfca; }
.type-badge.saida { color: var(--danger); background: #fff1f1; border-color: #e8b8b8; }
.type-badge.ajuste { color: #174d31; background: #e7f3eb; border-color: var(--primary-line); }

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

@media (max-width: 720px) {
  .split-toolbar { align-items: stretch; flex-direction: column; }
  .split-toolbar input { max-width: none; }
  .status-legend { display: grid; gap: 8px; }
}

.button.danger {
  background: #fff;
  color: var(--danger);
  border-color: #d8aaaa;
}
.button.danger:hover { background: #fff1f1; }
.button:disabled,
button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: .62;
}
.empty-state {
  border: 1px dashed var(--border-dark);
  border-radius: 8px;
  padding: 18px;
  background: #fbfdfb;
  color: var(--muted);
  line-height: 1.45;
}
.empty-state span { display: block; }
.empty-action { margin-top: 12px; }
.toast {
  position: fixed;
  left: 22px;
  bottom: 22px;
  max-width: 360px;
  border: 1px solid var(--border-dark);
  border-left: 5px solid var(--primary);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 13px 15px;
  margin: 0;
  z-index: 30;
  font-weight: 700;
}
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.success { border-left-color: var(--primary); }


/* Acabamento visual e responsividade - V6 */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.button,
.auth-tabs button,
.side-nav a {
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible,
.side-nav a:focus-visible,
.auth-tabs button:focus-visible,
.link-button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(33, 115, 70, .22);
  outline-offset: 2px;
}

.main-area {
  max-width: 1480px;
  width: 100%;
}

.sidebar {
  box-shadow: 8px 0 24px rgba(16, 74, 42, .035);
}

.brand strong,
.brand-block strong {
  letter-spacing: -.02em;
}

.topbar {
  background: rgba(238, 245, 239, .78);
  border: 1px solid rgba(207, 224, 210, .72);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(8px);
}

.metric-card,
.panel {
  position: relative;
}

.metric-card::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(33, 115, 70, .12);
  background:
    linear-gradient(rgba(33, 115, 70, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 115, 70, .08) 1px, transparent 1px),
    #f8fcf9;
  background-size: 10px 10px;
}

.metric-card span,
.metric-card strong {
  position: relative;
  z-index: 1;
}

.panel-header h2 {
  letter-spacing: -.01em;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.table-wrap > table {
  min-width: 760px;
}

.table-wrap .empty-state {
  margin: 0;
  border: 0;
  border-radius: 8px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
}

td strong {
  color: #0f2f1d;
}

.compact-item {
  min-width: 0;
}

.compact-item > div:first-child {
  min-width: 0;
}

.compact-item strong,
.compact-item span {
  overflow-wrap: anywhere;
}

.calculation-preview.negative,
.status-pill.empty,
.button.danger {
  font-weight: 800;
}

.auth-card {
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 54px;
  background:
    linear-gradient(rgba(33, 115, 70, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 115, 70, .06) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.auth-card > * {
  position: relative;
}

@media (max-width: 920px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    gap: 14px;
    box-shadow: 0 8px 24px rgba(16, 74, 42, .055);
  }

  .brand {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .brand span {
    text-align: right;
  }

  .side-nav {
    margin: 0 -16px;
    padding: 0 16px 6px;
  }

  .side-nav a {
    border-color: var(--border);
    background: #fff;
  }

  .topbar {
    position: static;
    padding: 14px;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions .button {
    flex: 1 1 170px;
  }

  .compact-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

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

  .metric-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .metric-card span {
    margin-bottom: 0;
  }

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


  .table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tr {
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary-line);
    border-radius: 9px;
    background: #fff;
    margin-bottom: 12px;
    box-shadow: 0 8px 18px rgba(16, 74, 42, .055);
    overflow: hidden;
  }

  .table-wrap td {
    border: 0;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
  }

  .table-wrap td:last-child {
    border-bottom: 0;
  }

  .table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

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

  .row-actions .button {
    flex: 1 1 90px;
  }
}

@media (max-width: 620px) {
  .auth-page {
    padding: 14px;
    align-items: start;
  }

  .auth-card {
    padding: 22px 18px;
  }

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

  .brand span {
    text-align: left;
  }

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

  .top-actions .button,
  .button,
  .auth-tabs button {
    min-height: 44px;
  }

  .metric-card {
    padding: 14px;
  }

  .metric-card::after {
    display: none;
  }

  .table-wrap td {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .compact-item {
    display: grid;
  }

  .compact-number {
    justify-self: start;
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: 92vh;
    overflow: auto;
    border-radius: 14px 14px 0 0;
    padding: 18px;
  }

  .modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}


.settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-actions .button {
  width: auto;
}

@media (max-width: 620px) {
  .settings-actions {
    display: grid;
  }

  .settings-actions .button {
    width: 100%;
  }
}


/* Revisão funcional - V7 */
.settings-actions {
  align-items: center;
}

@media (min-width: 621px) {
  .settings-actions .button {
    min-width: 170px;
  }
}


/* Revisão de textos e microcopy - V8 */
.form-note {
  display: block;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

.form-note.warning {
  border: 1px solid #ead79a;
  border-left: 4px solid var(--warning);
  border-radius: 8px;
  background: #fff9e8;
  color: var(--warning);
  padding: 10px 12px;
  text-align: left;
}

.panel-note {
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 11px 12px;
  margin-bottom: 16px;
  line-height: 1.45;
}

.landing-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.landing {
  width: min(880px, 100%);
}

.landing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--primary);
  border-radius: 12px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 13px;
}

.landing-card h1 {
  max-width: 720px;
  margin: 0 0 12px;
  font-size: clamp(31px, 5vw, 52px);
  letter-spacing: -.04em;
  line-height: 1.03;
}

.lead {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 620px) {
  .landing-actions {
    display: grid;
  }
}

/* Configurações e confirmações - V21 */
.collapse-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  color: var(--text);
}

.collapse-toggle span {
  display: grid;
  gap: 4px;
}

.collapse-toggle strong {
  font-size: 20px;
}

.collapse-toggle small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.35;
}

.collapse-toggle b {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-dark);
  display: inline-grid;
  place-items: center;
  color: var(--primary);
  background: #fff;
  font-size: 20px;
}

.collapse-content {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.confirm-panel {
  width: min(460px, 100%);
}

.confirm-message {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .confirm-actions {
    display: grid;
  }
}


.load-more-row {
  display: flex;
  justify-content: center;
  padding: 12px 0 2px;
}

.load-more-info {
  color: var(--muted);
  font-size: 0.86rem;
}

.load-more-row {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Landing fluxo de caixa - V35 */
.landing-preview {
  display: grid;
  gap: 18px;
}

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

.landing-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(18px, 4vw, 30px);
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(0,0,0,.05));
}

.landing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.landing-mini-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}

.landing-mini-card h2,
.split-landing h2,
.final-cta h2 {
  margin: 0 0 8px;
}

.landing-mini-card p,
.split-landing p,
.final-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.split-landing {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}

.landing-checklist {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.final-cta {
  display: grid;
  gap: 14px;
}

.warning-text {
  color: #8a5a00;
  font-weight: 700;
}

@media (max-width: 760px) {
  .landing-grid-3,
  .split-landing {
    grid-template-columns: 1fr;
  }
}

/* Onboarding de primeiro acesso */
.onboarding-panel {
  width: min(720px, 100%);
}
.onboarding-panel .modal-header {
  margin-bottom: 18px;
}
.onboarding-panel .modal-header p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}
.onboarding-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.onboarding-choice {
  text-align: left;
  border: 1px solid var(--border-dark);
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--text);
}
.onboarding-choice:hover,
.onboarding-choice:focus-visible {
  background: var(--primary-soft);
  border-color: var(--primary);
}
.onboarding-choice strong {
  display: block;
  color: var(--primary);
  font-size: 18px;
}
.onboarding-choice span {
  color: var(--muted);
  line-height: 1.42;
}
.onboarding-note {
  margin: 16px 0 0;
  border-left: 4px solid var(--primary-line);
  background: var(--surface-soft);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 680px) {
  .onboarding-actions { grid-template-columns: 1fr; }
}

/* Demonstração segura - Configurações */
.demo-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.demo-settings-card {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 14px;
}

.demo-settings-card p,
.demo-settings-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.demo-settings-card .button {
  margin-top: 4px;
  width: 100%;
}

.demo-settings-card.danger-card {
  border-color: rgba(170, 40, 40, 0.28);
}

.account-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}

.export-action-copy {
  display: grid;
  gap: 4px;
  margin-right: auto;
}

.export-action-copy small {
  color: var(--muted);
  line-height: 1.4;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

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

  .export-action-copy {
    margin-right: 0;
  }
}

/* Aviso de demonstração ativa no dashboard */
.demo-active-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fffdf5;
  box-shadow: var(--shadow);
}

.demo-active-banner div {
  display: grid;
  gap: 4px;
}

.demo-active-banner strong {
  color: var(--text);
}

.demo-active-banner span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .demo-active-banner {
    align-items: stretch;
    flex-direction: column;
  }
}

.inline-checkbox {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.inline-checkbox input {
  width: auto;
  min-height: auto;
}

#categoryModal .modal-panel {
  width: min(620px, 100%);
}

/* Fase 5.5 - Lançamentos financeiros */
.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}

.filters-grid .wide-field {
  grid-column: span 2;
}

.amount-income {
  color: var(--success);
}

.amount-expense {
  color: var(--danger);
}

.dashboard-category-income {
  color: var(--income-blue);
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #f8fcf9;
}

.recurrence-field.hidden {
  display: none;
}

@media (max-width: 920px) {
  .filters-grid {
    grid-template-columns: 1fr;
  }

  .filters-grid .wide-field {
    grid-column: auto;
  }
}

.projection-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #e8b8b8;
  border-radius: 14px;
  background: #fff1f1;
  color: var(--danger);
  font-weight: 700;
}

.projection-timeline {
  margin-bottom: 18px;
}

.projection-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-soft);
  margin-bottom: 12px;
}

.projection-summary-line span {
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.timeline-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 5px;
}

.timeline-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-item.critical {
  border-color: #e8b8b8;
  background: #fff7f7;
}

.timeline-item.critical b {
  color: var(--danger);
}

.muted-field {
  opacity: 0.62;
}

/* Fase 6 - Visão do mês financeira */
.month-nav {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.dashboard-result-line span {
  color: var(--muted);
  font-weight: 700;
}

.dashboard-result-line strong {
  font-size: 1.35rem;
}

.dashboard-result-highlight {
  align-items: stretch;
  padding: 16px;
  border-left: 5px solid var(--border-dark);
}

.dashboard-result-highlight.positive {
  border-left-color: var(--success);
}

.dashboard-result-highlight.negative {
  border-left-color: var(--danger);
}

.dashboard-result-highlight > div {
  display: grid;
  gap: 5px;
}

.dashboard-result-highlight strong {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
}

.dashboard-result-highlight small {
  color: var(--muted);
}

.dashboard-result-highlight > b {
  align-self: center;
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  font-size: 13px;
}

.dashboard-result-highlight.positive > b {
  color: var(--success);
  border-color: var(--primary-line);
}

.dashboard-result-highlight.negative > b {
  color: var(--danger);
  border-color: rgba(161, 40, 40, .22);
}

.dashboard-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.dashboard-week-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.dashboard-week-bars {
  height: 138px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.dashboard-bar {
  width: 34px;
  min-height: 4px;
  border-radius: 8px 8px 0 0;
  display: inline-block;
}

.dashboard-bar.income {
  background: var(--income-blue);
}

.dashboard-bar.expense {
  background: var(--danger);
}

.dashboard-week-card small,
.dashboard-week-card span {
  color: var(--muted);
}

.dashboard-week-card .chart-income-label {
  color: var(--income-blue);
}

.dashboard-week-card .chart-expense-label {
  color: var(--danger);
}

.dashboard-category-row {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.dashboard-category-row + .dashboard-category-row {
  margin-top: 10px;
}

.dashboard-category-row:hover {
  background: var(--surface-soft);
}

.dashboard-category-row span {
  display: grid;
  gap: 4px;
}

.dashboard-category-row small {
  color: var(--muted);
}

@media (max-width: 760px) {
  .month-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-result-line,
  .dashboard-category-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Fase 7 - dados e conta */
.file-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  color: #b42318;
  font-size: 0.84rem;
  line-height: 1.3;
}

.input-error {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12) !important;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

/* Fase 10.6 - agendamento mais claro */
.schedule-choice,
.schedule-model-field {
  display: grid;
  gap: 8px;
}

.field-label {
  color: #303030;
  font-weight: 700;
}

.segmented-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segmented-options label {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.segmented-options input[type="radio"] {
  width: auto;
  min-height: auto;
  padding: 0;
  margin: 0;
}

.segmented-options label:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: var(--surface-soft);
}

/* Fase 10.8 - Linha do tempo útil da previsão */
.projection-alert.projection-alert-ok {
  border-color: #b8d8c6;
  background: #f1fbf5;
  color: var(--success);
}

.projection-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.projection-summary-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  display: grid;
  gap: 5px;
}

.projection-summary-card span,
.projection-summary-card small {
  color: var(--muted);
  font-size: 0.9rem;
}

.projection-summary-card strong {
  font-size: 1.1rem;
}

.projection-summary-card.critical {
  border-color: #e8b8b8;
  background: #fff7f7;
}

.projection-summary-card.critical strong {
  color: var(--danger);
}

.timeline-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.muted-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}


/* Fase 10.10 - Previsão orientada à decisão rápida */
.cash-forecast-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.cash-forecast-answer {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.cash-forecast-answer span,
.cash-forecast-answer small {
  color: var(--muted);
}

.cash-forecast-answer strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.cash-forecast-answer.positive strong {
  color: var(--income-blue);
}

.cash-forecast-answer.critical {
  border-color: #e8b8b8;
  background: #fff7f7;
}

.cash-forecast-answer.critical strong {
  color: var(--danger);
}


.cash-forecast-breakdown {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  background: #fff;
  display: grid;
  align-content: center;
  gap: 10px;
}

.cash-forecast-breakdown span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.94rem;
}

.cash-forecast-breakdown b {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 760px) {
  .cash-forecast-overview {
    grid-template-columns: 1fr;
  }
}

.projection-summary-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.projection-focus-section {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  margin-bottom: 12px;
}

.projection-section-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.projection-section-header span {
  color: var(--muted);
  font-size: 0.92rem;
}

.week-agenda-list {
  display: grid;
  gap: 8px;
}

.week-agenda-day {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.week-agenda-day:first-child {
  border-top: 0;
  padding-top: 0;
}

.week-agenda-day span {
  color: var(--muted);
  font-size: 0.94rem;
}

.projection-money-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.compact-money-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.compact-money-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.compact-money-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.compact-money-list span {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Fase 10.12 - Filtro mensal da Previsão de caixa */
.projection-month-control {
  display: grid;
  gap: 6px;
}

.projection-month-control > span {
  color: var(--muted);
  font-size: 0.9rem;
}

.projection-month-control > strong {
  text-transform: capitalize;
}

/* Fase 10.13 - Previsão: fechamento do mês e filtros mais claros */
.projection-filter-block {
  display: grid;
  gap: 14px;
  align-items: start;
}

.projection-filter-block .projection-month-control {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.projection-filter-block .month-nav {
  justify-content: flex-start;
}

.projection-filter-block .month-nav strong {
  min-width: 180px;
  text-align: center;
  text-transform: capitalize;
  font-size: 1.08rem;
}

.projection-current-month {
  justify-self: start;
}

.projection-refine-block {
  display: grid;
  gap: 8px;
}

.projection-refine-block > span {
  color: var(--muted);
  font-size: 0.9rem;
}

.projection-refine-grid {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

@media (max-width: 920px) {
  .projection-refine-grid {
    grid-template-columns: 1fr;
  }

  .projection-filter-block .month-nav strong {
    min-width: 0;
  }
}

/* Fase 10.18 - Previsão com leitura direta */
.cash-forecast-risk {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  padding: 12px 14px;
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.cash-forecast-risk.critical {
  border-color: #e8b8b8;
  background: #fff7f7;
  color: var(--danger);
  font-weight: 700;
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-left: 5px solid var(--danger);
}

.cash-forecast-risk.critical strong {
  display: block;
  font-size: 1.06rem;
}

.cash-forecast-risk.critical span,
.cash-forecast-risk.critical small {
  display: block;
}

.cash-forecast-risk.critical small {
  color: var(--muted);
  font-weight: 700;
}

.cash-forecast-risk-label {
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 0.8rem;
}

.cash-forecast-risk.positive {
  color: var(--income-blue);
}

.cash-forecast-breakdown small {
  margin-top: -8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.table-detail {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.compact-actions {
  margin-top: 8px;
}


/* Fase 10.22 - Lançamentos com filtro mensal simples */
.transaction-filter-block .projection-month-control {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.transaction-filter-block .month-nav {
  justify-content: flex-start;
}

.transaction-filter-block .month-nav strong {
  min-width: 180px;
  text-align: center;
  text-transform: capitalize;
  font-size: 1.08rem;
}

.transaction-refine-grid {
  grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr);
}

@media (max-width: 920px) {
  .transaction-refine-grid {
    grid-template-columns: 1fr;
  }

  .transaction-filter-block .month-nav strong {
    min-width: 0;
  }
}


/* Fase 10.23 - Previsão simplificada por blocos */
.simple-month-toolbar {
  margin-bottom: 14px;
}

.cash-forecast-main-block {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 18px 20px;
  margin-bottom: 12px;
  display: grid;
  gap: 8px;
}

.cash-forecast-main-block p {
  margin: 0;
  color: var(--text);
}

.cash-forecast-kicker {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.cash-forecast-explanation {
  font-weight: 700;
}

.cash-forecast-main-block .cash-forecast-final {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.cash-forecast-main-block.positive .cash-forecast-final {
  color: var(--income-blue);
}

.cash-forecast-main-block.critical .cash-forecast-final {
  color: var(--danger);
}

.cash-forecast-formula {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.94rem;
}

.projection-action-list li {
  align-items: flex-start;
}

.projection-action-list li > span {
  color: var(--text);
  line-height: 1.45;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 0;
}

.details-grid {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

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

.detail-row span {
  color: var(--muted);
}

.detail-row strong {
  text-align: right;
  font-weight: 700;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .projection-action-list li,
  .detail-row {
    grid-template-columns: 1fr;
  }

  .projection-action-list li {
    display: grid;
  }

  .inline-actions,
  .modal-actions {
    justify-content: flex-start;
  }

  .detail-row strong {
    text-align: left;
  }
}

/* Etapa 1 - acabamento de uso diário */
.month-nav {
  align-items: center;
}

.month-nav .button {
  width: auto;
  white-space: nowrap;
}

.table-actions {
  justify-content: flex-start;
  margin-top: 0;
}

@media (max-width: 620px) {
  .month-nav {
    gap: 7px;
  }

  .month-nav .button {
    flex: 1 1 auto;
  }

  .projection-filter-block .month-nav strong,
  .transaction-filter-block .month-nav strong {
    flex: 1 0 100%;
    order: -1;
    text-align: left;
  }
}

/* Etapa 2 - acabamento visual, estados e responsividade */
:root {
  --panel-soft: var(--surface-soft);
}

.screen {
  min-width: 0;
}

.panel-header.split > div,
.topbar > div,
.projection-month-control,
.transaction-refine-block {
  min-width: 0;
}

.button {
  line-height: 1.15;
  text-align: center;
}

.button.danger {
  font-weight: 800;
}

.row-actions .button,
.inline-actions .button,
.modal-actions .button {
  min-width: 86px;
}

.table-wrap {
  max-width: 100%;
}

.table-detail,
.muted-note,
.form-note,
.panel-note {
  line-height: 1.45;
}

.empty-state {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.field-error:not(.hidden) {
  color: var(--danger);
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
}

.cash-forecast-main-block,
.projection-focus-section,
.dashboard-week-card,
.dashboard-category-row {
  overflow-wrap: anywhere;
}

.projection-action-list li > span {
  min-width: 0;
}

@media (max-width: 760px) {
  .main-area {
    padding: 16px;
  }

  .topbar {
    margin-bottom: 16px;
  }

  .panel,
  .metric-card,
  .cash-forecast-main-block,
  .projection-focus-section {
    border-radius: 10px;
  }

  .panel-header.split {
    gap: 12px;
  }

  .month-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .month-nav strong {
    grid-column: 1 / -1;
    order: -1;
    text-align: left !important;
    min-width: 0 !important;
  }

  .dashboard-result-line strong {
    font-size: 1.15rem;
  }

  .dashboard-bars {
    grid-template-columns: 1fr;
  }

  .dashboard-week-card {
    grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
    align-items: center;
  }

  .dashboard-week-bars {
    grid-row: span 4;
    height: 110px;
    justify-content: flex-start;
    border-bottom: 0;
    border-right: 1px solid var(--border);
    padding-right: 12px;
  }

  .compact-money-list li,
  .projection-action-list li {
    display: grid;
    gap: 10px;
  }

  .inline-actions,
  .row-actions,
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .inline-actions .button,
  .row-actions .button,
  .modal-actions .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .main-area {
    padding: 12px;
  }

  .sidebar {
    padding: 14px 12px;
  }

  .side-nav {
    margin: 0 -12px;
    padding: 0 12px 6px;
  }

  .panel,
  .metric-card {
    padding: 14px;
  }

  .metric-card {
    display: grid;
    justify-content: stretch;
    gap: 8px;
  }

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

  .month-nav {
    grid-template-columns: 1fr;
  }

  .dashboard-week-card {
    grid-template-columns: 1fr;
  }

  .dashboard-week-bars {
    grid-row: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    justify-content: center;
    padding-right: 0;
  }

  .table-wrap td {
    padding: 11px 12px;
  }

  .table-wrap td::before {
    font-size: 11px;
  }

  .inline-actions,
  .row-actions,
  .modal-actions,
  .confirm-actions {
    grid-template-columns: 1fr;
  }

  .segmented-options {
    display: grid;
  }

  .segmented-options label {
    border-radius: 8px;
  }

  .cash-forecast-main-block .cash-forecast-final {
    font-size: 2rem;
  }
}

/* Etapa 1 - ajustes rápidos de interface */
.button.linked {
  background: #fff8e6;
  color: #8a6500;
  border-color: #e5c76f;
}
.button.linked:hover {
  background: #fff1c2;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 10px;
}
.toast-message {
  flex: 1;
  min-width: 0;
}
.toast-close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  padding: 0 3px;
  opacity: .7;
}
.toast-close:hover,
.toast-close:focus-visible {
  opacity: 1;
}

/* Etapa 2 - Fase 3: vencimentos próximos na previsão */
.week-due-section {
  border-color: rgba(245, 158, 11, 0.35);
  background: #fffbeb;
}

.week-due-section .projection-section-header strong {
  color: var(--text);
}

.week-agenda-action-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
