/* Componentes refinados a partir das superfícies e controles existentes do Nexo. */
.tx-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.tx-fixed-badge{
 display:inline-flex;align-items:center;gap:4px;padding:2px 8px;
 font:500 12px/1.45 Inter,Arial,sans-serif;
 color:#3671c4;background:#eef5ff;border:1px solid #e3efff;
 border-radius:var(--control-radius,17px);white-space:nowrap;
}
.tx-fixed-badge .nexo-icon{width:14px;height:14px;stroke-width:1.2}
.mobile-tx-name>b{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.mobile-tx-name .tx-fixed-badge{font-size:11px}
@media(min-width:801px){
 .transaction-table .tx-timing-note.overdraft-deadline{white-space:nowrap;display:inline-flex;align-items:center;gap:4px;max-width:none;overflow:visible}
 .transaction-table .tx-timing-note.overdraft-deadline time{white-space:nowrap}
}
@media(max-width:800px){
 .tx-sheet-actions .tx-status-button.is-pending{
  border-radius:var(--control-radius,17px)!important;
  min-height:43px;padding:8px 13px;
 }
 .tx-sheet-actions .tx-sheet-icon-action{
  width:43px!important;height:43px!important;min-width:43px!important;
  min-height:43px!important;border-radius:50%!important;
  padding:0!important;display:inline-grid;place-items:center;
  background:var(--nexo-surface,#fbfcfd);
  border:1px solid #dde4ea;color:var(--text-secondary);
 }
 .tx-sheet-actions .tx-sheet-icon-action .nexo-icon{width:18px;height:18px;stroke-width:1.2}
 .tx-sheet-actions .tx-sheet-delete{color:#b52235}
 .tx-sheet-actions .tx-sheet-icon-action:hover{background:#f2f5f8}
 .nexo-recurring-summary{margin:18px 0 16px}
 .nexo-recurring-caption{font:400 13px/1.6 Inter,Arial,sans-serif;color:var(--text-secondary);margin:0 0 14px}
 .nexo-recurring-months{
  display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;
  position:relative;isolation:isolate;
 }
 .nexo-recurring-months:before{
  content:"";position:absolute;left:7%;right:7%;top:15px;z-index:-1;
  border-top:2px dashed #d3dce6;
 }
 .nexo-recurring-month{display:grid;justify-items:center;gap:5px;min-width:0;color:var(--text-secondary);font:400 10px/1.3 Inter,Arial,sans-serif}
 .nexo-recurring-month b{font-size:11px;font-weight:500}
 .nexo-recurring-month small{font-size:10px;color:var(--text-muted)}
 .nexo-recurring-dot{
  background:#fff;width:30px;height:30px;border:2px solid #468bf4;
  border-radius:50%;display:grid;place-items:center;margin-bottom:3px;
 }
 .nexo-recurring-month.is-paid .nexo-recurring-dot{border-color:#27bc69;background:#27bc69;color:#fff}
 .nexo-recurring-month.is-skipped .nexo-recurring-dot{border-color:#bbc3cd;background:#f0f3f6}
 .nexo-recurring-dot .nexo-icon{width:18px;height:18px;stroke-width:1.7}
 .nexo-recurring-insight{
  border:1px solid #e0e7ee;border-radius:var(--control-radius,17px);
  background:var(--nexo-surface,#fbfcfd);padding:13px 15px;margin-top:21px;
 }
 .nexo-recurring-insight-title{display:flex;gap:7px;align-items:center;color:#3678c8;font-size:13px;font-weight:550}
 .nexo-recurring-insight-title .nexo-icon{width:17px;height:17px}
 .nexo-recurring-insight p{margin:7px 0 0;color:var(--text-secondary);font:400 12px/1.65 Inter,Arial,sans-serif}
}

/* Alfinete expansível, somente nas listas de Transações (desktop e celular).
   Estado inicial: somente o pictograma neutro.
   Clique/toque: superfície azul-clara, pictograma azul e rótulo "fixa". */
.tx-title .tx-fixed-toggle,
.mobile-tx-name .tx-fixed-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  align-self:center;
  flex:none;
  box-sizing:border-box;
  width:auto;
  min-width:0;
  max-width:27px;
  height:28px;
  min-height:28px;
  padding:0 3px;
  gap:0;
  border:1px solid transparent;
  border-radius:var(--control-radius,17px);
  background:transparent;
  box-shadow:none;
  color:var(--text-muted);
  overflow:hidden;
  white-space:nowrap;
  cursor:pointer;
  vertical-align:middle;
  line-height:1;
  font-family:Inter,Arial,sans-serif;
  font-size:13px;
  font-weight:500;
  transition:max-width .28s cubic-bezier(.2,.8,.22,1),
             padding .28s cubic-bezier(.2,.8,.22,1),
             gap .28s cubic-bezier(.2,.8,.22,1),
             background .25s ease,border-color .25s ease,color .25s ease;
}
.tx-fixed-toggle .nexo-icon{
  width:20px!important;
  height:21px!important;
  min-width:20px;
  flex:none;
  stroke-width:1.6;
  stroke:currentColor;
  fill:none;
  transition:fill .22s ease,stroke .22s ease;
}
.tx-fixed-toggle .tx-fixed-label{
  display:inline-block;
  overflow:hidden;
  max-width:0;
  opacity:0;
  font-size:13px;
  font-weight:500;
  line-height:1.3;
  white-space:nowrap;
  transition:max-width .26s cubic-bezier(.2,.8,.22,1),opacity .18s ease;
}
.tx-fixed-toggle:hover:not(.is-expanded){background:#f1f3f6}
.tx-fixed-toggle.is-expanded,
.tx-fixed-toggle[aria-pressed="true"]{
  max-width:106px;
  padding:0 10px;
  gap:6px;
  color:#2965ee;
  background:#eef5ff;
  border-color:#e9f1ff;
}
.tx-fixed-toggle.is-expanded .nexo-icon,
.tx-fixed-toggle[aria-pressed="true"] .nexo-icon{fill:#2965ee;stroke:#2965ee}
.tx-fixed-toggle.is-expanded .tx-fixed-label,
.tx-fixed-toggle[aria-pressed="true"] .tx-fixed-label{max-width:52px;opacity:1}
.tx-fixed-toggle:focus-visible{outline:2px solid #90b5f3;outline-offset:2px}
@media (prefers-reduced-motion:reduce) and (max-width:800px){
 .tx-fixed-toggle,.tx-fixed-toggle .nexo-icon,.tx-fixed-toggle .tx-fixed-label{transition:none}
}
@media(max-width:800px){
 /* O item inteiro continua abrindo o detalhe, exceto o botão do alfinete. */
 .mobile-tx-row > .mobile-tx-open{
   display:grid;
   grid-template-columns:42px minmax(0,1fr) auto;
   align-items:start;
   gap:11px;
   padding:13px 0;
   width:100%;
   border:0;
   background:transparent;
   color:inherit;
   text-align:left;
   cursor:pointer;
 }
 .mobile-tx-row > .mobile-tx-open:focus-visible{outline:2px solid #90b5f3;outline-offset:2px;border-radius:8px}
 .mobile-tx-name .tx-fixed-toggle{font-size:12px}
 .mobile-tx-name .tx-fixed-toggle .tx-fixed-label{font-size:12px}
}

/* Alfinete minimalista: menor e vinculado ao estado persistido fixedMonthly.
   Somente a lista de transações, desktop e celular. */
.tx-title .tx-fixed-toggle,
.mobile-tx-name .tx-fixed-toggle{
 height:24px;
 min-height:24px;
 max-width:23px;
 padding:0 3px;
 border-radius:13px;
 gap:0;
 font-size:11px;
 font-weight:550;
 color:var(--text-muted);
 background:transparent;
 border-color:transparent;
}
.tx-title .tx-fixed-toggle .nexo-icon,
.mobile-tx-name .tx-fixed-toggle .nexo-icon{
 width:16px!important;
 height:17px!important;
 min-width:16px;
 stroke-width:1.5;
}
.tx-title .tx-fixed-toggle .tx-fixed-label,
.mobile-tx-name .tx-fixed-toggle .tx-fixed-label{
 font-size:11px;
 letter-spacing:0;
}
.tx-title .tx-fixed-toggle.is-expanded,
.mobile-tx-name .tx-fixed-toggle.is-expanded,
.tx-title .tx-fixed-toggle[aria-pressed="true"],
.mobile-tx-name .tx-fixed-toggle[aria-pressed="true"]{
 max-width:72px;
 padding:0 9px;
 gap:4px;
 color:#3169e9;
 background:#eef5ff;
 border-color:#e6efff;
}
.tx-title .tx-fixed-toggle.is-expanded .nexo-icon,
.mobile-tx-name .tx-fixed-toggle.is-expanded .nexo-icon{
 fill:#3169e9;
 stroke:#3169e9;
}
.tx-fixed-toggle:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:800px){
 .mobile-tx-name .tx-fixed-toggle{
  min-height:24px;
  height:24px;
 }
}

/* Ajuste fino v13 — alfinete/etiqueta ligeiramente menores, sem mudar a ação. */
.tx-title .tx-fixed-toggle,
.mobile-tx-name .tx-fixed-toggle{
  height:22px;
  min-height:22px;
  max-width:21px;
  padding:0 3px;
  border-radius:12px;
}
.tx-title .tx-fixed-toggle .nexo-icon,
.mobile-tx-name .tx-fixed-toggle .nexo-icon{
  width:14px!important;
  height:15px!important;
  min-width:14px;
  stroke-width:1.45;
}
.tx-title .tx-fixed-toggle .tx-fixed-label,
.mobile-tx-name .tx-fixed-toggle .tx-fixed-label{
  font-size:10px;
  font-weight:500;
}
.tx-title .tx-fixed-toggle.is-expanded,
.mobile-tx-name .tx-fixed-toggle.is-expanded,
.tx-title .tx-fixed-toggle[aria-pressed="true"],
.mobile-tx-name .tx-fixed-toggle[aria-pressed="true"]{
  max-width:65px;
  padding:0 7px;
  gap:3px;
}
@media(max-width:800px){
  .mobile-tx-name .tx-fixed-toggle{
    height:22px;
    min-height:22px;
  }
  .mobile-tx-name .tx-fixed-toggle .tx-fixed-label{
    font-size:10px;
  }
}

/* Detalhe de transação no celular — linhas compactas em uma única linha,
   sem ícones decorativos e com a tipografia uniforme de Categoria. */
@media(max-width:800px){
 #mobile-tx-sheet .tx-sheet-fields>div{
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  gap:11px;
  align-items:center;
  padding:11px 0;
  min-width:0;
 }
 #mobile-tx-sheet .tx-sheet-fields dt,
 #mobile-tx-sheet .tx-sheet-fields dd,
 #mobile-tx-sheet .tx-sheet-fields dd .tx-category,
 #mobile-tx-sheet .tx-sheet-fields dd .invoice-table-button{
  font-family:Inter,system-ui,sans-serif;
  font-size:13px!important;
  line-height:1.4!important;
  font-weight:400!important;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
 }
 #mobile-tx-sheet .tx-sheet-fields dt{
  min-width:0;
  color:var(--text-secondary);
  white-space:nowrap!important;
 }
 #mobile-tx-sheet .tx-sheet-fields dd{
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  text-align:right;
  scrollbar-width:none;
  -ms-overflow-style:none;
  color:var(--text-primary);
 }
 #mobile-tx-sheet .tx-sheet-fields dd::-webkit-scrollbar{display:none}
 #mobile-tx-sheet .tx-sheet-fields dd svg,
 #mobile-tx-sheet .tx-sheet-fields dd .nexo-icon,
 #mobile-tx-sheet .tx-sheet-fields dt svg{display:none!important}
 #mobile-tx-sheet .tx-sheet-fields dd .invoice-table-button{
  display:inline-flex;
  align-items:center;
  gap:0;
  width:max-content;
  max-width:none;
  text-align:right;
  padding:0;
  margin:0;
  min-height:0;
 }
 #mobile-tx-sheet .tx-sheet-fields dd .invoice-cell-mode{
  display:none!important;
 }
 /* Ações: Pago como cápsula fina do Nexo; editar/excluir círculos perfeitos. */
 #mobile-tx-sheet .tx-sheet-actions .tx-status-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:38px!important;
  min-height:38px!important;
  border-radius:999px!important;
  border:1px solid #d9eee0!important;
  background:#eff9f3;
  color:#367b54;
  font-weight:500;
  padding:0 13px!important;
  font-size:12px!important;
  box-shadow:none!important;
 }
 #mobile-tx-sheet .tx-sheet-actions .tx-status-button.is-pending{
  border-color:#f1dcc0!important;
  background:#fff5e8;
  color:#9b5519;
 }
 #mobile-tx-sheet .tx-sheet-actions .tx-sheet-icon-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 40px!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  max-width:40px!important;
  max-height:40px!important;
  box-sizing:border-box;
  padding:0!important;
  border-radius:50%!important;
  aspect-ratio:1!important;
  border:1px solid #dfe6ed;
  background:#fcfdff;
  box-shadow:none!important;
 }
 #mobile-tx-sheet .tx-sheet-actions .tx-sheet-icon-action .nexo-icon{
  width:17px!important;
  height:17px!important;
 }
}

@media (min-width:801px) {
 #app .transaction-table .tx-status-button {
  background:#eff9f3;
  border-color:#d9eee0;
  color:#249477;
  border-radius:var(--tx-meta-chip-radius,9px)!important;
  font-weight:500;
 }
 #app .transaction-table .tx-status-button.is-pending {
  background:#fff5e8;
  border-color:#f1dcc0;
  color:#a3660e;
 }
 #app .transaction-table .tx-status-button.is-paid .nexo-icon {color:#367b54;}
 #app .transaction-table .tx-status-button.is-pending .nexo-icon {color:#9b5519;}
}

.tx-status-button .tx-status-incoming {transform:rotate(90deg);}
/* The check path spans 14 units; the transfer arrow spans 18. */
.tx-status-button .tx-status-check {transform:scale(1.2857);}
html body :is(#app .transaction-table,#mobile-tx-sheet .tx-sheet-actions) .tx-status-button.is-transferred {
 background:#fff0f0;
 border-color:#f2cccc!important;
 color:var(--red,#ec0000);
}
.mobile-tx-status.is-transferred {color:var(--red,#ec0000);}
html body :is(#app .transaction-table,#mobile-tx-sheet .tx-sheet-actions) .tx-status-button.is-received {
 background:#eff5ff;
 border-color:#d0dff5!important;
}
html body :is(#app .transaction-table,#mobile-tx-sheet .tx-sheet-actions) .tx-status-button.is-received,
.mobile-tx-status.is-received,
#app .transaction-table .tx-amount.value-received,
#app .mobile-tx-value .value-received,
#mobile-tx-sheet .tx-sheet-header .value-received {color:#245b9e;}

@media (min-width:801px) {
 #app .transaction-filter-totals .tx-filter-metrics strong {
  font-size:clamp(24px,2.4vw,30px);
 }
}

@media (max-width:800px) {
 #app .mobile-transactions .transaction-filter-totals .tx-filter-heading {
  display:none;
 }
 #app .mobile-transactions .transaction-filter-totals .tx-filter-metrics > div > strong {
  font-size:clamp(18px,5.6vw,24px);
  white-space:normal;
  overflow-wrap:anywhere;
 }
}
