:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  --background: #f2f5f3;
  --surface: #ffffff;
  --text: #171a1c;
  --muted: #66706b;
  --border: #d8dfdb;
  --accent: #147d68;
  --accent-hover: #0f6857;
  --danger: #b42318;
  --dark: #171a1c;
  --focus: #e3a72f;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--background); color: var(--text); }
button, input { font: inherit; }
a { color: inherit; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-shell { width: min(100%, 400px); }
.login-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 18px 48px rgba(23, 26, 28, .08);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 7px; background: var(--dark); color: #fff;
  font-size: 21px; font-weight: 800;
}
.brand-name { font-size: 18px; font-weight: 750; letter-spacing: 0; }
.login-heading { margin: 36px 0 24px; }
.login-heading h1, .page-content h1 {
  margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: 0;
}
.login-heading p, .page-description { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }

.login-form, .account-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 650; }
.field input, .field select {
  width: 100%; height: 46px; border: 1px solid var(--border);
  border-radius: 6px; background: #fff; color: var(--text);
  padding: 0 13px; outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 125, 104, .14); }

.primary-button, .secondary-button, .logout-button, .text-button {
  border: 0; border-radius: 6px; cursor: pointer; font-weight: 700;
}
.primary-button, .secondary-button { min-height: 46px; padding: 0 18px; }
.primary-button { background: var(--accent); color: #fff; }
.primary-button:hover { background: var(--accent-hover); }
.secondary-button { border: 1px solid var(--border); background: #fff; color: var(--text); }
.primary-button:focus-visible, .secondary-button:focus-visible,
.logout-button:focus-visible, .text-button:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.primary-button:disabled { cursor: wait; opacity: .65; }
.form-message { min-height: 20px; margin: -4px 0; color: var(--danger); font-size: 14px; line-height: 1.4; }

.topbar {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px clamp(20px, 5vw, 64px);
  background: var(--dark); color: #fff;
}
.brand-light .brand-mark { background: var(--accent); }
.account-actions { display: flex; align-items: center; gap: 14px; }
.username { color: #dce3df; font-size: 14px; }
.logout-button { height: 38px; padding: 0 16px; background: #fff; color: var(--dark); }
.logout-button:hover { background: #e7ece9; }

.app-shell { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { padding: 30px 20px; background: #fff; border-right: 1px solid var(--border); }
.menu-title {
  margin: 0 10px 8px; color: var(--muted); font-size: 12px;
  font-weight: 800; text-transform: uppercase;
}
.menu-link {
  display: block; padding: 10px; border-radius: 6px; color: var(--text);
  font-size: 14px; font-weight: 650; text-decoration: none;
}
.menu-link:hover, .menu-link.active { background: #e6f1ee; color: #0c5d4e; }

.page-content { width: min(100%, 1180px); padding: 42px clamp(24px, 4vw, 56px); }
.eyebrow {
  margin: 0 0 10px; color: var(--accent); font-size: 13px;
  font-weight: 800; text-transform: uppercase;
}
.page-heading {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border);
}
.total-balance { display: grid; gap: 4px; text-align: right; white-space: nowrap; }
.total-balance span { color: var(--muted); font-size: 13px; }
.total-balance strong { font-size: 24px; }

.accounts-layout {
  display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 36px; padding-top: 32px;
}
.account-form-section { padding-right: 36px; border-right: 1px solid var(--border); }
.account-form-section h2, .account-list-section h2 { margin: 0; font-size: 18px; letter-spacing: 0; }
.account-form { margin-top: 22px; }
.form-actions { display: flex; gap: 10px; }
.form-actions .primary-button { flex: 1; }

.section-heading {
  min-height: 34px; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 20px;
}
.item-count { color: var(--muted); font-size: 13px; }
.empty-state {
  margin: 28px 0 0; padding: 24px 0;
  border-top: 1px solid var(--border); color: var(--muted);
}
.accounts-table { margin-top: 18px; border-top: 1px solid var(--border); }
.account-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(130px, 1.2fr) minmax(120px, .8fr) 205px;
  gap: 12px; align-items: center; min-height: 58px;
  padding: 10px 4px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.account-row-header {
  min-height: 42px; color: var(--muted); font-size: 12px;
  font-weight: 750; text-transform: uppercase;
}
.row-actions { display: flex; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.text-button { min-height: 34px; padding: 0 9px; background: transparent; color: var(--accent); }
.text-button:hover { background: #e6f1ee; }
.danger-button { color: var(--danger); }
.danger-button:hover { background: #fbe9e7; }
.hidden { display: none !important; }

@media (max-width: 1250px) {
  .accounts-layout { grid-template-columns: 1fr; }
  .account-form-section { padding: 0 0 30px; border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 760px) {
  .login-page { align-items: start; padding: 16px; }
  .login-panel { margin-top: 8vh; padding: 24px; }
  .login-heading h1, .page-content h1 { font-size: 24px; }
  .topbar { align-items: flex-start; padding: 12px 16px; }
  .account-actions { align-items: flex-end; flex-direction: column; gap: 8px; }
  .username { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-shell { display: block; }
  .sidebar { padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .menu-title { margin-left: 8px; }
  .menu-link { display: inline-block; }
  .page-content { padding: 28px 18px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .total-balance { text-align: left; }
  .account-row-header { display: none; }
  .account-row { grid-template-columns: 1fr 1fr; gap: 12px 18px; padding: 16px 0; }
  .account-row > *::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase;
  }
  .row-actions { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .account-row { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Valores adicionais das contas */
.account-group { border-bottom: 1px solid var(--border); }
.account-group .account-row { border-bottom: 0; }
.account-total { display: grid; gap: 3px; }
.account-total small { color: var(--muted); font-size: 11px; font-weight: 500; }
.account-details {
  margin: 0 0 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}
.details-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.details-heading h3 { margin: 0; font-size: 15px; }
.details-heading > strong { color: var(--accent); font-size: 14px; }
.value-line, .value-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 150px;
  gap: 16px;
  align-items: center;
  min-height: 44px;
}
.available-balance { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.available-balance strong { grid-column: 2; }
.value-item { border-bottom: 1px solid var(--border); font-size: 14px; }
.value-item > div:first-child { display: grid; gap: 2px; }
.value-item > div:first-child span { color: var(--muted); font-size: 11px; }
.value-actions { display: flex; justify-content: flex-end; gap: 4px; }
.value-empty { margin: 14px 0; color: var(--muted); font-size: 14px; }
.value-form {
  display: grid;
  grid-template-columns: minmax(130px, 1.4fr) minmax(120px, .8fr) minmax(110px, .7fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}
.compact-field { display: grid; gap: 6px; }
.compact-field span { font-size: 12px; font-weight: 650; }
.compact-field input, .compact-field select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 0 10px;
  font: inherit;
}
.compact-field input:focus, .compact-field select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(20, 125, 104, .14);
}
.value-form-actions { display: flex; gap: 8px; }
.small-button { min-height: 40px; white-space: nowrap; }
.value-form-message { grid-column: 1 / -1; margin: 0; }

@media (max-width: 1050px) {
  .value-form { grid-template-columns: 1fr 1fr; }
  .value-form-actions { align-self: end; }
}
@media (max-width: 760px) {
  .account-details { padding: 16px; }
  .value-line, .value-item { grid-template-columns: 1fr auto; }
  .available-balance strong { grid-column: 2; }
  .value-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .value-form { grid-template-columns: 1fr; }
  .value-form-message { grid-column: 1; }
  .details-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
}
/* Colunas de caixinhas e criptomoedas */
.value-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 14px;
}
.value-column {
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.value-column-wide { grid-column: 1 / -1; }
.value-column-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid var(--border);
}
.value-column-heading h4 { margin: 0; font-size: 14px; }
.value-column-heading strong { color: var(--accent); font-size: 13px; white-space: nowrap; }
.value-column .value-item {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  min-height: 0;
  padding: 11px 0;
}
.value-column .value-item > strong:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.value-column .value-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}
.value-column .value-empty { min-height: 42px; margin: 12px 0; }

@media (max-width: 760px) {
  .value-columns { grid-template-columns: 1fr; }
  .value-column-wide { grid-column: 1; }
}
/* Separação entre bancos e plataformas */
.account-category + .account-category { margin-top: 34px; }
.account-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
}
.account-category-heading h3 { margin: 0; font-size: 16px; }
.account-category-heading span { color: var(--muted); font-size: 12px; }
.category-empty {
  margin: 0;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.accounts-table { border-top: 0; }
/* Bancos e plataformas lado a lado */
#accounts-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.account-category + .account-category { margin-top: 0; }
.account-category { min-width: 0; }
.account-category .account-row-header { display: none; }
.account-category .account-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 16px;
  padding: 16px 4px;
}
.account-category .account-row > *::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}
.account-category .row-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}
.account-category .account-details { padding: 16px; }
.account-category .value-columns { grid-template-columns: 1fr; }
.account-category .value-column-wide { grid-column: 1; }
.account-category .value-form { grid-template-columns: 1fr; }
.account-category .value-form-message { grid-column: 1; }

@media (max-width: 760px) {
  #accounts-list { grid-template-columns: 1fr; }
}
/* Cartões compactos para cada instituição */
#accounts-list { gap: 32px; }
.account-category-heading { margin-bottom: 12px; }
.account-category .account-group {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}
.account-category .account-group + .account-group { margin-top: 12px; }
.account-category .account-row {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "institution total"
    "account account"
    "actions actions";
  gap: 8px 16px;
  min-height: 0;
  padding: 16px;
}
.account-category .account-row > *::before { display: none; }
.account-category .account-row > span:first-child {
  grid-area: institution;
  min-width: 0;
  font-weight: 750;
}
.account-category .account-row > span:nth-child(2) {
  grid-area: account;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.account-category .account-total {
  grid-area: total;
  align-self: start;
  text-align: right;
  white-space: nowrap;
}
.account-category .row-actions {
  grid-area: actions;
  grid-column: auto;
  justify-content: flex-start;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.account-category .account-details {
  margin: 0;
  padding: 16px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
}
.account-category .text-button { min-height: 36px; }

@media (max-width: 420px) {
  .account-category .account-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "institution"
      "account"
      "total"
      "actions";
  }
  .account-category .account-total {
    margin-top: 4px;
    text-align: left;
  }
}
/* Correção de sobreposição nos detalhes */
.account-category .details-heading {
  flex-wrap: wrap;
  align-items: flex-start;
}
.account-category .details-heading h3 {
  min-width: 0;
  line-height: 1.3;
}
.account-category .details-heading > strong {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}
.account-category .value-line {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 46px;
  align-items: center;
}
.account-category .available-balance > span {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.account-category .available-balance > strong {
  grid-column: 2;
  text-align: right;
  white-space: nowrap;
}
/* Terceira coluna para casas de apostas */
.accounts-page {
  width: 100%;
  max-width: none;
}
#accounts-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1550px) {
  .accounts-layout { grid-template-columns: 1fr; }
  .account-form-section {
    padding: 0 0 30px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 1150px) {
  #accounts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-category:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  #accounts-list { grid-template-columns: 1fr; }
  .account-category:last-child { grid-column: auto; }
}
/* Módulo de mensalidades */
.monthly-page {
  width: 100%;
  max-width: none;
}
.monthly-summary {
  display: flex;
  gap: 28px;
  text-align: right;
}
.monthly-summary > div { display: grid; gap: 4px; }
.monthly-summary span { color: var(--muted); font-size: 12px; }
.monthly-summary strong { font-size: 20px; white-space: nowrap; }
.monthly-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 36px;
  padding-top: 32px;
}
.monthly-form-section {
  padding-right: 36px;
  border-right: 1px solid var(--border);
}
.monthly-form-section h2, .monthly-list-section h2 { margin: 0; font-size: 18px; }
.monthly-form { display: grid; gap: 18px; margin-top: 22px; }
.monthly-group { margin-top: 20px; }
.monthly-group + .monthly-group { margin-top: 30px; }
.monthly-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  border-bottom: 1px solid var(--border);
}
.monthly-group-heading h3 {
  margin: 0;
  font-size: 15px;
  text-transform: capitalize;
}
.monthly-group-heading strong { color: var(--accent); font-size: 14px; }
.monthly-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px 140px 140px;
  gap: 14px;
  align-items: center;
  min-height: 66px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}
.monthly-info { display: grid; gap: 4px; min-width: 0; }
.monthly-info strong { overflow-wrap: anywhere; }
.monthly-date { color: var(--muted); font-size: 12px; }
.monthly-amount { text-align: right; white-space: nowrap; }
.status-button {
  min-height: 36px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}
.status-paid {
  border-color: #b8c3bd;
  background: #e7ece9;
  color: #46514b;
}
.monthly-row-paid .monthly-info > strong,
.monthly-row-paid .monthly-amount {
  color: var(--muted);
  text-decoration: line-through;
}
.monthly-actions { display: flex; justify-content: flex-end; gap: 4px; }

@media (max-width: 1250px) {
  .monthly-layout { grid-template-columns: 1fr; }
  .monthly-form-section {
    padding: 0 0 30px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 820px) {
  .monthly-row {
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    padding: 16px 4px;
  }
  .monthly-amount { grid-column: 2; grid-row: 1; }
  .status-button { justify-self: start; padding: 0 12px; }
  .monthly-actions { justify-content: flex-end; }
}
@media (max-width: 520px) {
  .monthly-summary { width: 100%; justify-content: space-between; text-align: left; }
  .monthly-row { grid-template-columns: 1fr; }
  .monthly-amount { grid-column: 1; grid-row: auto; text-align: left; }
  .monthly-actions { justify-content: flex-start; }
}
/* Responsável pela mensalidade */
.monthly-owner {
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}
.monthly-owner-unset { color: var(--danger); }
/* Abas e grade de cards dos fundos */
.fund-tabs {
  display: flex;
  gap: 4px;
  margin-top: 18px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.fund-tab {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}
.fund-tab:hover { color: var(--text); }
.fund-tab.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.fund-tab-count {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #e7ece9;
  color: var(--text);
  font-size: 11px;
  text-align: center;
}
#accounts-list { display: block; }
.account-category + .account-category { margin-top: 0; }
.account-category-heading { margin: 22px 0 12px; }
.account-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  align-items: start;
}
.account-category .account-group {
  margin: 0;
  border-color: #cdd6d1;
  box-shadow: 0 4px 12px rgba(23, 26, 28, .04);
}
.account-category .account-group + .account-group { margin-top: 0; }
.account-category .account-group:hover { border-color: #aebbb4; }
.account-category .account-group-expanded { grid-column: 1 / -1; }
.account-category .account-group-expanded .value-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.account-category .account-row > span:first-child { font-size: 15px; }
.account-category .account-total > strong { color: var(--accent); }
.account-category .row-actions { gap: 8px; }

@media (max-width: 760px) {
  .fund-tabs { margin-left: -4px; margin-right: -4px; }
  .fund-tab { padding: 0 10px; }
  .account-category-grid { grid-template-columns: 1fr; }
  .account-category .account-group-expanded .value-columns { grid-template-columns: 1fr; }
}
/* Menu financeiro recolhível */
.menu-section-toggle {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}
.menu-section-toggle:hover { background: #f0f4f2; }
.menu-section-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.menu-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}
.menu-section-toggle[aria-expanded="true"] .menu-chevron {
  transform: rotate(225deg);
}
.menu-submenu {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  padding-left: 8px;
}
.menu-submenu[hidden] { display: none; }
/* Menu lateral controlado pela marca */
.sidebar-toggle {
  padding: 0;
  border: 0;
  cursor: pointer;
  flex: 0 0 42px;
}
.sidebar-toggle:hover { background: var(--accent-hover); }
.sidebar-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.brand-name {
  color: inherit;
  text-decoration: none;
}
.brand-name:hover { text-decoration: underline; }
.app-shell.sidebar-collapsed { grid-template-columns: minmax(0, 1fr); }
.sidebar[hidden] { display: none; }
.app-shell.sidebar-collapsed .page-content { width: min(100%, 1440px); }

@media (max-width: 760px) {
  .app-shell.sidebar-collapsed { display: block; }
}
/* Botao de confirmacao de pagamento */
@media (min-width: 821px) {
  .monthly-row {
    grid-template-columns: minmax(160px, 1fr) 120px 160px 140px;
  }
}
.status-button {
  min-width: 156px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(20, 125, 104, .18);
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.status-button::before {
  content: "\2713";
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
}
.status-button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  box-shadow: 0 4px 9px rgba(20, 125, 104, .24);
}
.status-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(20, 125, 104, .18);
}
.status-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.status-button.status-paid {
  border-color: #b8c3bd;
  background: #e7ece9;
  color: #46514b;
  box-shadow: none;
}
.status-button.status-paid::before {
  border-color: #78837d;
}
.status-button.status-paid:hover {
  border-color: #a7b2ac;
  background: #dce4e0;
}

@media (max-width: 820px) {
  .status-button {
    min-width: 156px;
    padding: 0 14px;
  }
}
/* Modulo de agenda */
.menu-section-toggle + .menu-submenu + .menu-section-toggle { margin-top: 16px; }
.agenda-page { width: 100%; max-width: 1440px; }
.agenda-new-button { min-width: 174px; }
.agenda-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 320px;
  gap: 32px;
  padding-top: 32px;
}
.agenda-calendar-section { min-width: 0; }
.calendar-toolbar {
  min-height: 46px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; margin-bottom: 14px;
}
.calendar-toolbar h2 { margin: 0; font-size: 20px; text-transform: capitalize; }
.calendar-navigation { display: flex; align-items: center; gap: 8px; }
.calendar-icon-button {
  width: 40px; height: 40px; display: grid; place-items: center;
  padding: 0 0 3px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--text); cursor: pointer; font-size: 28px; line-height: 1;
}
.calendar-icon-button:hover { border-color: #aeb9b3; background: #f7f9f8; }
.calendar-icon-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.calendar-today-button { min-height: 40px; padding: 0 15px; }
.calendar-weekdays {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--border); border-bottom: 0; background: #f7f9f8;
}
.calendar-weekdays span {
  padding: 9px 6px; color: var(--muted); font-size: 11px;
  font-weight: 750; text-align: center; text-transform: uppercase;
}
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--border); border-left: 1px solid var(--border); background: #fff;
}
.calendar-day {
  min-width: 0; min-height: 112px; padding: 7px;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: #fff; cursor: pointer;
}
.calendar-day:hover { background: #f8faf9; }
.calendar-day-outside { background: #f5f7f6; }
.calendar-day-outside .calendar-day-number { color: #9aa39e; }
.calendar-day-selected { box-shadow: inset 0 0 0 2px var(--accent); }
.calendar-day-number {
  width: 28px; height: 28px; display: grid; place-items: center;
  margin: 0 0 5px auto; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 700;
}
.calendar-day-today .calendar-day-number { background: var(--accent); color: #fff; }
.calendar-day-events { display: grid; gap: 3px; min-width: 0; }
.calendar-event {
  width: 100%; min-width: 0; padding: 4px 6px; overflow: hidden;
  border: 0; border-left: 3px solid var(--accent); border-radius: 3px;
  background: #e6f1ee; color: #0c5d4e; cursor: pointer;
  font-size: 11px; font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap;
}
.calendar-event:hover { background: #d5e9e4; }
.calendar-event-completed { border-left-color: #9ba59f; background: #edf0ee; color: #69736e; text-decoration: line-through; }
.calendar-more { padding-left: 6px; color: var(--muted); font-size: 10px; }
.selected-day-section { margin-top: 30px; }
.selected-day-section .section-heading { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.selected-day-section h2 { margin: 0; font-size: 18px; text-transform: capitalize; }
.selected-day-section .empty-state { margin-top: 0; border-top: 0; }
.agenda-day-list { display: grid; }
.agenda-item {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--border);
}
.agenda-status-button {
  min-height: 36px; padding: 0 12px; border: 1px solid var(--accent);
  border-radius: 6px; background: #fff; color: var(--accent); cursor: pointer; font-weight: 700;
}
.agenda-status-button:hover { background: #e6f1ee; }
.agenda-status-completed { border-color: #b8c3bd; background: #e7ece9; color: #46514b; }
.agenda-item-info { display: grid; gap: 4px; min-width: 0; }
.agenda-item-info strong { overflow-wrap: anywhere; }
.agenda-item-info span { color: var(--muted); font-size: 12px; }
.agenda-item-info p {
  margin: 3px 0 0; color: var(--muted); font-size: 13px;
  line-height: 1.45; white-space: pre-wrap;
}
.agenda-item-completed .agenda-item-info strong { color: var(--muted); text-decoration: line-through; }
.agenda-item-actions { display: flex; gap: 4px; }
.agenda-form-section {
  align-self: start; padding: 22px; border: 1px solid var(--border);
  border-radius: 8px; background: #fff;
}
.agenda-form-section h2 { margin: 0; font-size: 18px; }
.agenda-form { display: grid; gap: 18px; margin-top: 22px; }
.agenda-form textarea {
  width: 100%; min-height: 112px; resize: vertical; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--text); font: inherit; outline: none;
}
.agenda-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 125, 104, .14); }
.optional-label { color: var(--muted); font-size: 12px; font-weight: 500; }

@media (max-width: 1180px) {
  .agenda-layout { grid-template-columns: 1fr; }
  .agenda-form-section { width: min(100%, 560px); }
}
@media (max-width: 760px) {
  .agenda-new-button { width: 100%; }
  .calendar-toolbar { align-items: flex-start; flex-direction: column-reverse; }
  .calendar-day { min-height: 78px; padding: 4px; }
  .calendar-day-number { width: 25px; height: 25px; margin-bottom: 2px; }
  .calendar-event { padding: 3px; font-size: 9px; }
  .calendar-more { display: none; }
  .agenda-item { grid-template-columns: 1fr; gap: 8px; }
  .agenda-status-button { justify-self: start; }
  .agenda-item-actions { justify-content: flex-start; }
  .agenda-form-section { width: 100%; padding: 18px; }
}
@media (max-width: 420px) {
  .calendar-weekdays span { padding: 7px 2px; font-size: 9px; }
  .calendar-day { min-height: 65px; }
  .calendar-event { border-left-width: 2px; }
}
/* Recorrencia semanal da agenda */
.agenda-repeat-option {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f7f9f8;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}
.agenda-repeat-option:hover { border-color: #aeb9b3; background: #f0f4f2; }
.agenda-repeat-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}
.agenda-repeat-option:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.calendar-event-recurring { border-left-style: double; border-left-width: 5px; }
.agenda-item-actions {
  max-width: 310px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.agenda-recurrence-button {
  border: 1px solid var(--border);
  background: #f7f9f8;
  color: #46514b;
}
.agenda-recurrence-button:hover { background: #e7ece9; }

@media (max-width: 760px) {
  .agenda-item-actions { max-width: none; justify-content: flex-start; }
}
/* Horarios inicial e final da agenda */
.agenda-time-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 420px) {
  .agenda-time-fields { grid-template-columns: 1fr; }
}
/* Agenda com formulario fechado */
.agenda-layout:has(.agenda-form-section.hidden) {
  grid-template-columns: minmax(0, 1fr);
}
/* Mensalidades com formulario fechado */
.monthly-heading-actions {
  display: flex;
  align-items: flex-end;
  gap: 22px;
}
.monthly-new-button { min-width: 168px; }
.monthly-layout:has(.monthly-form-section.hidden) {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 760px) {
  .monthly-heading-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
  .monthly-new-button { width: 100%; }
}
/* Fechar formulario de mensalidade */
.monthly-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.form-close-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  padding: 0 0 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.form-close-button:hover {
  border-color: #aeb9b3;
  background: #f0f4f2;
  color: var(--text);
}
.form-close-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
/* Modal global de confirmacao */
.confirmation-dialog {
  width: min(calc(100% - 32px), 440px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(23, 26, 28, .24);
}
.confirmation-dialog::backdrop { background: rgba(23, 26, 28, .52); }
.confirmation-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 20px 20px 14px;
}
.confirmation-header h2 { margin: 0; font-size: 19px; }
.confirmation-close {
  width: 34px; height: 34px; display: grid; place-items: center;
  flex: 0 0 34px; padding: 0 0 2px; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); cursor: pointer;
  font-size: 24px; line-height: 1;
}
.confirmation-close:hover { background: #f0f4f2; color: var(--text); }
.confirmation-message {
  margin: 0; padding: 0 20px 22px; color: var(--muted);
  line-height: 1.55; overflow-wrap: anywhere;
}
.confirmation-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 20px; border-top: 1px solid var(--border); background: #f7f9f8;
}
.confirmation-actions .secondary-button,
.confirmation-submit { min-height: 42px; padding: 0 18px; }
.confirmation-submit {
  border: 0; border-radius: 6px; background: var(--danger);
  color: #fff; cursor: pointer; font-weight: 700;
}
.confirmation-submit:hover { background: #931c13; }
.confirmation-close:focus-visible,
.confirmation-submit:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 420px) {
  .confirmation-actions { align-items: stretch; flex-direction: column-reverse; }
  .confirmation-actions button { width: 100%; }
}
/* Modulo de anotacoes */
.notes-page { width: 100%; max-width: 1320px; }
.notes-new-button { min-width: 168px; }
.notes-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 36px;
  padding-top: 32px;
}
.notes-layout:has(.note-editor.hidden) { grid-template-columns: minmax(0, 1fr); }
.note-editor {
  align-self: start;
  padding-right: 36px;
  border-right: 1px solid var(--border);
}
.note-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.note-editor h2,
.notes-list-section h2 { margin: 0; font-size: 18px; }
.note-form { display: grid; gap: 18px; margin-top: 22px; }
.note-form textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  outline: none;
}
.note-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 125, 104, .14);
}
.notes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-top: 18px;
}
.note-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.note-card-heading { display: grid; gap: 5px; }
.note-card-heading h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.note-card-heading time { color: var(--muted); font-size: 11px; }
.note-card-content {
  max-height: 240px;
  margin: 16px 0;
  overflow: auto;
  color: #46514b;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.note-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}
@media (max-width: 980px) {
  .notes-layout { grid-template-columns: 1fr; }
  .note-editor {
    width: min(100%, 620px);
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 760px) {
  .notes-new-button { width: 100%; }
  .notes-list { grid-template-columns: 1fr; }
  .note-editor { width: 100%; }
}
/* Visualizacao completa da anotacao */
.note-card {
  height: 190px;
  cursor: default;
}
.note-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.note-card-heading h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.note-card-content {
  display: -webkit-box;
  max-height: none;
  margin: 12px 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.note-view-dialog {
  width: min(calc(100% - 32px), 720px);
  max-height: min(84vh, 760px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 26px 80px rgba(23, 26, 28, .25);
}
.note-view-dialog::backdrop { background: rgba(23, 26, 28, .56); }
.note-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 24px 8px;
}
.note-view-header .eyebrow { margin-bottom: 6px; }
.note-view-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
#note-view-date {
  display: block;
  padding: 0 24px 18px;
  color: var(--muted);
  font-size: 12px;
}
.note-view-content {
  max-height: min(52vh, 460px);
  padding: 22px 24px;
  overflow: auto;
  border-top: 1px solid var(--border);
  color: #303733;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.note-view-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: #f7f9f8;
}
.note-view-actions button { min-height: 42px; padding: 0 18px; }
@media (max-width: 520px) {
  .note-card { height: 176px; }
  .note-view-header { padding: 20px 18px 8px; }
  .note-view-header h2 { font-size: 20px; }
  #note-view-date { padding: 0 18px 16px; }
  .note-view-content { padding: 18px; }
  .note-view-actions { padding: 14px 18px; }
}
/* Ajuste final dos cards de anotacao */
.note-card {
  height: 200px;
  cursor: zoom-in;
}
.note-card:hover {
  border-color: #aeb9b3;
  box-shadow: 0 5px 14px rgba(23, 26, 28, .07);
}
.note-card-content { -webkit-line-clamp: 2; }
@media (max-width: 520px) {
  .note-card { height: 190px; }
}
/* Editor simples de anotacoes */
.notes-layout {
  display: block;
  padding-top: 32px;
}
.note-editor {
  width: min(100%, 780px);
  margin: 0 auto 34px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.note-editor-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.note-form { margin-top: 20px; }
.note-form textarea {
  min-height: 320px;
  max-height: 58vh;
}
.note-form .form-actions {
  justify-content: flex-end;
}
.note-form .form-actions .primary-button {
  flex: 0 0 auto;
  min-width: 130px;
}
.notes-list-section { min-width: 0; }
@media (max-width: 760px) {
  .note-editor {
    width: 100%;
    margin-bottom: 28px;
    padding: 18px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .note-form textarea { min-height: 240px; }
}
/* Oculta lista durante edicao da anotacao */
.notes-layout:has(.note-editor:not(.hidden)) .notes-list-section {
  display: none;
}
/* Editor formatado de anotacoes */
.note-editor-box {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}
.note-editor-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 125, 104, .14);
}
.note-format-toolbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  background: #f7f9f8;
}
.note-format-toolbar button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
}
.note-format-toolbar button:hover {
  border-color: var(--border);
  background: #fff;
}
.note-format-toolbar button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
.note-highlight-tool {
  text-decoration: underline;
  text-decoration-color: #e2bd22;
  text-decoration-thickness: 5px;
  text-underline-offset: 1px;
}
.note-toolbar-separator {
  width: 1px;
  height: 24px;
  margin: 0 4px;
  background: var(--border);
}
.rich-note-editor {
  min-height: 320px;
  max-height: 58vh;
  padding: 16px;
  overflow: auto;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  outline: none;
}
.rich-note-editor:empty::before {
  content: attr(data-placeholder);
  color: #929b96;
  pointer-events: none;
}
.rich-note-editor p,
.note-view-content p { margin: 0 0 14px; }
.rich-note-editor p:last-child,
.note-view-content p:last-child { margin-bottom: 0; }
.rich-note-editor ul,
.rich-note-editor ol,
.note-view-content ul,
.note-view-content ol {
  margin: 8px 0 16px;
  padding-left: 26px;
}
.rich-note-editor li,
.note-view-content li { margin: 5px 0; }
.rich-note-editor mark,
.note-view-content mark {
  padding: 1px 2px;
  border-radius: 2px;
  background: #fff1a8;
  color: inherit;
}
.note-view-content { white-space: normal; }
@media (max-width: 520px) {
  .note-format-toolbar { flex-wrap: wrap; }
  .rich-note-editor { min-height: 250px; padding: 14px; }
}
/* Card de anotacao sem efeito de mouse */
.note-card,
.note-card:hover {
  border-color: var(--border);
  box-shadow: none;
  cursor: default;
}
/* Busca e pastas das anotacoes */
.notes-page .note-editor {
  width: min(100%, 780px);
  margin-top: 32px;
  padding: 0;
  border: 0;
}
.notes-search {
  position: relative;
  width: min(100%, 620px);
  margin-top: 28px;
}
.notes-search input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}
.notes-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 125, 104, .14);
}
.notes-search-icon {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 14px;
  height: 14px;
  border: 2px solid #65716b;
  border-radius: 50%;
  pointer-events: none;
}
.notes-search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  background: #65716b;
  transform: rotate(45deg);
  transform-origin: left center;
}
.notes-workspace {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
  margin-top: 26px;
}
.note-folders {
  align-self: start;
  min-width: 0;
  padding-right: 24px;
  border-right: 1px solid var(--border);
}
.note-folders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.note-folders-header h2 {
  margin: 0;
  font-size: 17px;
}
.folder-add-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.folder-add-button:hover { background: #edf7f4; }
.folder-add-button:focus-visible,
.folder-filter:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.folder-form {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f7f9f8;
}
.folder-form label { font-size: 13px; font-weight: 700; }
.folder-form input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  font: inherit;
  outline: none;
}
.folder-form input:focus { border-color: var(--accent); }
.folder-form-actions { display: flex; gap: 8px; }
.folder-form-actions button { min-height: 36px; padding: 0 12px; }
.folder-list { display: grid; gap: 4px; }
.folder-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.folder-filter span { overflow-wrap: anywhere; }
.folder-filter strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.folder-filter:hover { background: #f0f4f2; }
.folder-filter.active {
  background: #e2f0ec;
  color: #086d59;
  font-weight: 700;
}
.notes-groups { display: grid; gap: 34px; margin-top: 18px; }
.notes-folder-group { min-width: 0; }
.notes-folder-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.notes-folder-group-heading h3 { margin: 0; font-size: 16px; }
.notes-folder-group-heading span { color: var(--muted); font-size: 12px; }
.notes-folder-group .notes-list { margin-top: 14px; }
.note-view-header .eyebrow { overflow-wrap: anywhere; }
.notes-page.is-editing .notes-new-button { visibility: hidden; }
@media (max-width: 820px) {
  .notes-workspace { grid-template-columns: 1fr; gap: 24px; }
  .note-folders {
    padding: 0 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .folder-list { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (max-width: 520px) {
  .notes-search { width: 100%; }
  .folder-list { grid-template-columns: 1fr; }
  .folder-form-actions { flex-direction: column; }
  .folder-form-actions button { width: 100%; }
}
/* Refinamento visual do formulario de anotacao */
.notes-page .note-editor {
  width: min(100%, 920px);
  margin: 34px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.notes-page .note-editor-header {
  min-height: 48px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border);
}
.notes-page .note-editor-header h2 {
  font-size: 20px;
  line-height: 1.3;
}
.notes-page .note-form {
  gap: 20px;
  margin-top: 22px;
}
.note-meta-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 16px;
}
.note-meta-fields .field { min-width: 0; }
.note-meta-fields .field label,
.note-form #note-content-label {
  color: #36423c;
  font-size: 13px;
  font-weight: 700;
}
.note-meta-fields input,
.note-meta-fields select {
  height: 44px;
  border-radius: 5px;
  background-color: #fff;
}
.note-title-field input {
  font-size: 16px;
  font-weight: 600;
}
.notes-page .note-editor-box {
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(23, 26, 28, .04);
}
.notes-page .note-format-toolbar {
  min-height: 44px;
  padding: 5px 7px;
  background: #f5f7f6;
}
.notes-page .note-format-toolbar button {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}
.notes-page .rich-note-editor {
  min-height: 360px;
  padding: 20px;
  background: #fff;
  font-size: 15px;
  line-height: 1.7;
}
.notes-page .note-form .form-actions {
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.notes-page .note-form .form-actions button {
  min-height: 42px;
  padding: 0 20px;
}
.notes-page .note-form .form-actions .primary-button {
  min-width: 150px;
}
@media (max-width: 700px) {
  .notes-page .note-editor { margin-top: 26px; }
  .note-meta-fields { grid-template-columns: 1fr; }
  .note-title-field { order: 1; }
  .note-folder-field { order: 2; }
  .notes-page .rich-note-editor {
    min-height: 280px;
    padding: 16px;
  }
}
@media (max-width: 520px) {
  .notes-page .note-form .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .notes-page .note-form .form-actions button { width: 100%; }
}
/* Evita selecionar texto ao abrir um card com duplo clique */
.note-card {
  -webkit-user-select: none;
  user-select: none;
}
.note-card button {
  -webkit-user-select: none;
  user-select: none;
}
/* Kanban */
.kanban-page { width: 100%; max-width: 1440px; }
.kanban-page > .form-message { margin: 18px 0 0; }
.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 30px;
  align-items: start;
}
.kanban-column {
  min-width: 0;
  padding: 0 14px 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #f5f7f6;
}
.kanban-column-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border-bottom: 1px solid var(--border);
}
.kanban-column-heading h2 { margin: 0; font-size: 16px; }
.kanban-column-heading span {
  min-width: 27px;
  padding: 3px 8px;
  border-radius: 12px;
  background: #e1e7e4;
  color: #4c5852;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.kanban-list { display: grid; gap: 10px; padding-top: 12px; }
.kanban-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d4dbd7;
  border-radius: 6px;
  background: #fff;
}
.kanban-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.kanban-card > p {
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.kanban-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #edf0ee;
}
.kanban-movement,
.kanban-commands { display: flex; align-items: center; gap: 3px; }
.kanban-icon-button {
  width: 32px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 17px;
}
.kanban-icon-button:hover { border-color: var(--accent); color: var(--accent); }
.kanban-icon-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.kanban-commands .text-button { min-height: 30px; padding: 3px 6px; font-size: 12px; }
.kanban-empty {
  margin: 12px 0 0;
  padding: 16px 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.kanban-dialog {
  width: min(calc(100% - 32px), 560px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(23, 26, 28, .24);
}
.kanban-dialog::backdrop { background: rgba(23, 26, 28, .52); }
.kanban-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.kanban-dialog-header h2 { margin: 0; font-size: 19px; }
.kanban-form { display: grid; gap: 17px; padding: 20px 22px 22px; }
.kanban-form textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  outline: none;
}
.kanban-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 125, 104, .14);
}
.kanban-form .form-actions { justify-content: flex-end; }
.kanban-form .form-actions .primary-button { flex: 0 0 auto; min-width: 120px; }
@media (max-width: 980px) {
  .kanban-board { grid-template-columns: 1fr; }
  .kanban-column { padding: 0 16px 16px; }
}
@media (max-width: 520px) {
  .kanban-card-actions { align-items: flex-start; flex-direction: column; }
  .kanban-card-actions,
  .kanban-movement,
  .kanban-commands { width: 100%; }
  .kanban-commands { justify-content: flex-end; }
  .kanban-form { padding: 18px; }
}
/* Arrastar cards entre as colunas do Kanban */
.kanban-card {
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.kanban-card:active { cursor: grabbing; }
.kanban-card.dragging {
  opacity: .42;
  border-style: dashed;
}
.kanban-column.drag-over {
  border-color: var(--accent);
  background: #edf6f3;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.kanban-card-actions { justify-content: flex-end; }
.kanban-commands { margin-left: auto; }
.kanban-card button { cursor: pointer; }
/* Colunas livres do Kanban */
.kanban-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kanban-heading-actions button { min-width: 136px; }
.kanban-board {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 1fr);
  align-items: start;
  padding-bottom: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.kanban-column-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.kanban-column-title h2 { overflow-wrap: anywhere; }
.kanban-column-remove {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #7a8580;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}
.kanban-column-remove:hover {
  background: #fbeceb;
  color: var(--danger);
}
.kanban-column-remove:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
.kanban-no-columns {
  margin: 30px 0 0;
  padding: 34px 20px;
  border: 1px dashed var(--border);
  border-radius: 7px;
  color: var(--muted);
  text-align: center;
}
.kanban-column-dialog { width: min(calc(100% - 32px), 460px); }
@media (max-width: 620px) {
  .kanban-heading-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
  .kanban-heading-actions button { width: 100%; }
  .kanban-board { grid-auto-columns: minmax(270px, 86vw); }
}
/* Detalhes do card Kanban */
.kanban-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.kanban-card-checklist {
  margin-top: 10px;
  color: #53615a;
  font-size: 12px;
  font-weight: 650;
}
.kanban-detail-dialog {
  width: min(calc(100% - 32px), 940px);
  max-height: min(90vh, 820px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 28px 90px rgba(23, 26, 28, .28);
}
.kanban-detail-dialog::backdrop { background: rgba(23, 26, 28, .56); }
.kanban-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
}
.kanban-detail-heading { min-width: 0; }
.kanban-detail-heading > span {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}
.kanban-detail-heading h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.kanban-detail-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kanban-detail-header-actions .secondary-button {
  min-height: 38px;
  padding: 0 16px;
}
.kanban-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  max-height: calc(min(90vh, 820px) - 95px);
  overflow: auto;
}
.kanban-detail-main {
  min-width: 0;
  padding: 24px;
}
.kanban-detail-section + .kanban-detail-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.kanban-detail-section h3,
.kanban-detail-notes h3 {
  margin: 0;
  font-size: 16px;
}
#kanban-detail-description {
  margin: 12px 0 0;
  color: #3f4b45;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.kanban-checklist-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.kanban-checklist-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.kanban-progress {
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 3px;
  background: #e4e9e6;
}
.kanban-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .18s ease;
}
.kanban-checklist { display: grid; gap: 4px; margin-top: 14px; }
.kanban-checklist-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 7px 6px;
  border-bottom: 1px solid #edf0ee;
}
.kanban-checklist-item label {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.kanban-checklist-item input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.kanban-checklist-item span {
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.kanban-checklist-item.completed span {
  color: var(--muted);
  text-decoration: line-through;
}
.kanban-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
}
.kanban-inline-form input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  font: inherit;
  outline: none;
}
.kanban-inline-form input:focus,
.kanban-note-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 125, 104, .14);
}
.kanban-inline-form button { min-height: 40px; padding: 0 14px; }
.kanban-detail-notes {
  min-width: 0;
  padding: 24px 20px;
  border-left: 1px solid var(--border);
  background: #f7f9f8;
}
.kanban-note-form { display: grid; gap: 8px; margin-top: 14px; }
.kanban-note-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  outline: none;
}
.kanban-note-form button { min-height: 40px; }
.kanban-notes-list { display: grid; gap: 10px; margin-top: 18px; }
.kanban-note {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}
.kanban-note > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.kanban-note time { color: var(--muted); font-size: 11px; }
.kanban-note p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.kanban-detail-remove {
  flex: 0 0 auto;
  width: 28px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #7a8580;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.kanban-detail-remove:hover { background: #fbeceb; color: var(--danger); }
.kanban-detail-remove:focus-visible { outline: 3px solid var(--focus); }
.kanban-detail-empty {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.kanban-detail-message {
  margin: 0;
  padding: 0 24px 18px;
}
@media (max-width: 760px) {
  .kanban-detail-body { grid-template-columns: 1fr; }
  .kanban-detail-notes {
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}
@media (max-width: 520px) {
  .kanban-detail-header { padding: 18px; }
  .kanban-detail-header-actions .secondary-button { padding: 0 12px; }
  .kanban-detail-heading h2 { font-size: 20px; }
  .kanban-detail-main,
  .kanban-detail-notes { padding: 18px; }
  .kanban-inline-form { grid-template-columns: 1fr; }
  .kanban-inline-form button { width: 100%; }
}
/* Alca separada para arrastar o card */
.kanban-card,
.kanban-card:active { cursor: default; }
.kanban-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.kanban-card-heading h3 { min-width: 0; }
.kanban-drag-handle {
  flex: 0 0 auto;
  width: 30px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #7a8580;
  cursor: grab !important;
  font-size: 20px;
  line-height: 1;
}
.kanban-drag-handle:hover {
  background: #edf1ef;
  color: var(--text);
}
.kanban-drag-handle:active { cursor: grabbing !important; }
.kanban-drag-handle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
/* Conclusao independente do card Kanban */
.kanban-complete-button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.kanban-complete-button:hover { background: #edf7f4; }
.kanban-complete-button.completed {
  border-color: #66736c;
  color: #4d5953;
}
.kanban-complete-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.kanban-card.completed {
  border-color: #9fc6b9;
  background: #fbfdfc;
}
.kanban-card.completed .kanban-card-heading h3 {
  color: #65716b;
  text-decoration: line-through;
}
.kanban-card-completed {
  width: fit-content;
  margin-top: 10px;
  padding: 3px 7px;
  border: 1px solid #add0c4;
  border-radius: 4px;
  background: #edf7f4;
  color: #0b715d;
  font-size: 11px;
  font-weight: 750;
}
@media (max-width: 620px) {
  .kanban-detail-header { flex-direction: column; }
  .kanban-detail-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .kanban-detail-header-actions .form-close-button { margin-left: auto; }
}
/* Area separada de tarefas concluidas */
.kanban-card-complete-action { color: var(--accent); }
.kanban-completed-section {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.kanban-completed-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kanban-completed-heading h2 {
  margin: 0;
  font-size: 18px;
}
.kanban-completed-heading span {
  min-width: 27px;
  padding: 3px 8px;
  border-radius: 12px;
  background: #e1e7e4;
  color: #4c5852;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.kanban-completed-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 12px;
  margin-top: 16px;
}
.kanban-completed-empty {
  margin: 14px 0 0;
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}
.kanban-completed-list .kanban-card-actions { margin-top: 12px; }
.kanban-commands { flex-wrap: wrap; justify-content: flex-end; }
/* Concluidos organizados dentro de cada coluna */
.kanban-column-completed {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.kanban-column-completed-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 7px 4px;
  border: 0;
  background: transparent;
  color: #4f5c56;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.kanban-column-completed-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  margin: 0 10px 0 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s ease;
}
.kanban-column-completed-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg);
}
.kanban-column-completed-toggle:hover { color: var(--accent); }
.kanban-column-completed-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
.kanban-column-completed-toggle strong {
  min-width: 25px;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 11px;
  background: #e1e7e4;
  color: #53605a;
  font-size: 11px;
  text-align: center;
}
.kanban-column-completed-list {
  display: grid;
  gap: 9px;
  padding-top: 8px;
}
.kanban-column-completed-list .kanban-card {
  background: #fbfdfc;
}
/* Visualizacao simples do compromisso */
.agenda-view-dialog {
  width: min(calc(100% - 32px), 620px);
  max-height: min(86vh, 720px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 26px 80px rgba(23, 26, 28, .25);
}
.agenda-view-dialog::backdrop { background: rgba(23, 26, 28, .56); }
.agenda-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
}
.agenda-view-header .eyebrow { margin-bottom: 6px; }
.agenda-view-header h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.agenda-view-body {
  max-height: min(58vh, 470px);
  padding: 22px 24px;
  overflow: auto;
}
.agenda-view-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}
.agenda-view-details div { min-width: 0; }
.agenda-view-details dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.agenda-view-details dd {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.agenda-view-notes {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.agenda-view-notes h3 { margin: 0; font-size: 15px; }
.agenda-view-notes p {
  margin: 10px 0 0;
  color: #3f4b45;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.agenda-view-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: #f7f9f8;
}
.agenda-view-actions button { min-height: 40px; padding: 0 18px; }
.agenda-view-actions .primary-button { min-width: 100px; }
@media (max-width: 560px) {
  .agenda-view-header { padding: 18px; }
  .agenda-view-header h2 { font-size: 20px; }
  .agenda-view-body { padding: 18px; }
  .agenda-view-details { grid-template-columns: 1fr; gap: 14px; }
  .agenda-view-actions { padding: 14px 18px; }
}
/* Lixeira das anotacoes */
.notes-trash-warning {
  margin: 18px 0 4px;
  padding: 14px 16px;
  border-left: 3px solid var(--danger);
  background: #fff6f5;
  color: #4b3937;
}
.notes-trash-warning strong {
  display: block;
  margin-bottom: 4px;
  color: #9d241b;
  font-size: 14px;
}
.notes-trash-warning p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.folder-filter-trash { margin-top: 8px; border-top: 1px solid var(--border); }
.folder-filter-trash:not(.active) { color: #9d241b; }
.folder-filter-trash.active {
  background: #f8e7e5;
  color: #8e2018;
}
/* Atalhos de sistemas em Desenvolvimento */
.development-page { width: 100%; max-width: 1180px; }
.development-systems { margin-top: 30px; }
.development-systems .section-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.development-systems .section-heading h2 { margin: 0; font-size: 18px; }
.development-system-list { margin-top: 14px; }
.development-system-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}
.development-system-info { min-width: 0; }
.development-system-info > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}
.development-system-info h3 {
  margin: 5px 0 0;
  font-size: 18px;
  line-height: 1.35;
}
.development-system-info p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.development-open-button {
  flex: 0 0 auto;
  min-width: 146px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
@media (max-width: 620px) {
  .development-system-card {
    align-items: stretch;
    flex-direction: column;
  }
  .development-open-button { width: 100%; }
}
/* Apresentacao da tela principal */
.home-description {
  max-width: 720px;
  margin-top: 14px;
  color: #4b5751;
  font-size: 16px;
  line-height: 1.75;
}
/* Identidade e descricao dos sistemas */
.development-system-card { justify-content: flex-start; }
.development-system-logo {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.development-system-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.development-system-info { flex: 1 1 auto; }
.development-system-info .development-system-description {
  max-width: 680px;
  margin-top: 8px;
  color: #46524c;
  font-size: 13px;
  line-height: 1.55;
}
.development-system-info .development-system-address {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}
.development-system-card .development-open-button { margin-left: auto; }
@media (max-width: 620px) {
  .development-system-logo {
    width: 64px;
    height: 64px;
  }
  .development-system-card .development-open-button { margin-left: 0; }
}
/* Lista vertical de sistemas */
.development-system-list {
  display: grid;
  gap: 12px;
}
/* Marca tipografica do DRSO HUB */
.development-system-logo-hub {
  display: grid;
  place-content: center;
  gap: 1px;
  border-color: #252c29;
  background: #171c1a;
  color: #fff;
  text-align: center;
}
.development-system-logo-hub strong {
  color: #46c6a4;
  font-size: 24px;
  line-height: 1;
}
.development-system-logo-hub span {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
}
/* Integração bancária em modo somente leitura */
.bank-integration { margin: 0 0 32px; padding: 24px 0; border-top: 1px solid #d4dcda; border-bottom: 1px solid #d4dcda; }
.bank-integration-heading, .bank-integration-summary, .connected-institution-heading, .connected-account-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bank-integration-heading h2 { margin: 2px 0 4px; }
.bank-integration-heading p:last-child, .integration-message { margin: 0; color: #61706d; }
.integration-status { flex: 0 0 auto; padding: 6px 10px; border: 1px solid #bfc9c6; border-radius: 999px; color: #52605d; font-size: 13px; font-weight: 700; }
.integration-status[data-state="active"] { border-color: #178772; color: #08715f; background: #edf8f5; }
.integration-status[data-state="warning"] { border-color: #b27711; color: #8a5a08; background: #fff8e8; }
.bank-integration-summary { margin-top: 22px; }
.bank-integration-summary > div:first-child { display: grid; gap: 3px; }
.bank-integration-summary span { color: #61706d; font-size: 13px; }
.bank-integration-summary strong { font-size: 22px; }
.bank-integration-actions { display: flex; gap: 10px; }
.integration-message { min-height: 21px; margin-top: 12px; }
.connected-accounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.connected-institution { min-width: 0; padding: 16px; border: 1px solid #d4dcda; border-radius: 6px; background: #fff; }
.connected-institution-heading { align-items: flex-start; padding-bottom: 12px; }
.connected-institution-heading h3 { margin: 0; font-size: 16px; }
.connected-institution-heading span { color: #6b7775; font-size: 12px; text-align: right; }
.connected-account-row { padding: 12px 0; border-top: 1px solid #e3e8e7; }
.connected-account-row > div { display: grid; min-width: 0; gap: 3px; }
.connected-account-row span { overflow-wrap: anywhere; color: #66726f; font-size: 12px; }
.connected-account-empty { margin: 0; padding-top: 12px; border-top: 1px solid #e3e8e7; color: #66726f; }
@media (max-width: 700px) {
  .bank-integration-heading, .bank-integration-summary { align-items: stretch; flex-direction: column; }
  .bank-integration-actions { width: 100%; }
  .bank-integration-actions button { flex: 1; }
  .connected-accounts { grid-template-columns: 1fr; }
}