/* Nexo | ajustes aprovados: visual e leitura do visitante (sem permissões novas). */
#app .recent-transactions-footer,
#app .recent-transactions-footer :is(.nexo-icon,svg){
 color:inherit!important;
}
#app .recent-transactions-footer :is(.nexo-icon,svg){
 color:var(--text-secondary)!important;
 stroke:currentColor!important;
}
/* Match the history footer to the "Ver todas" action on hover. */
@media (hover:hover) {
 #app .recent-transactions-footer:hover {
  background:transparent!important;
  box-shadow:none!important;
  color:var(--red)!important;
 }
 #app .recent-transactions-footer:hover :is(.nexo-icon,svg) {
  color:inherit!important;
 }
}
/* Status do detalhe: cantos iguais aos botões de Salvar/Cancelar do Perfil. */
html body #mobile-tx-sheet .tx-sheet-actions .tx-status-button,
html body #mobile-tx-sheet .tx-sheet-actions > button,
html body #mobile-tx-sheet .tx-sheet-actions > .secondary {
 border-radius:16px!important;
}
@media(max-width:800px){
 /* Ação de três pontos expandida: grafite, nunca vermelho. */
 html body #app .nexo-more-actions.is-open > .nexo-more-toggle,
 html body #app .nexo-more-actions > .nexo-more-toggle[aria-expanded="true"],
 html body #app .nexo-more-actions.is-open > .nexo-more-toggle :is(svg,.nexo-icon),
 html body #app .nexo-more-actions > .nexo-more-toggle[aria-expanded="true"] :is(svg,.nexo-icon) {
  color:var(--text-primary)!important;
  stroke:#344254!important;
 }
 /* Cartão Resumo do filtro em branco, como as linhas de transação. */
 html body #app .mobile-tx-results .transaction-filter-totals,
 html body #app .mobile-transactions .transaction-filter-totals{
  background:#fff!important;
  background-image:none!important;
  border-color:#e9edf2!important;
  box-shadow:0 4px 17px rgba(30,46,66,.035)!important;
 }
}
/* Rótulos com a mesma tipografia compacta dos metadados das transações. */
html body #app .transaction-filter-totals .tx-filter-metrics > div > span {
 font-family:Inter,system-ui,sans-serif!important;
 font-size:12px!important;
 font-weight:400!important;
 letter-spacing:0!important;
 line-height:1.5!important;
 color:var(--text-secondary)!important;
}
html body #app .transaction-filter-totals .tx-filter-heading > b {
 font-family:Inter,system-ui,sans-serif!important;
 font-size:13px!important;
 font-weight:500!important;
 color:var(--text-secondary)!important;
}
@media(max-width:800px){
 html body #app .transaction-filter-totals .tx-filter-metrics > div > span {
  font-size:12px!important;
  line-height:1.5!important;
 }
}
/* Não exibir controles de escrita em vistas compartilhadas.
   A autorização real continua sendo definida pelo Firebase. */
html body.guest-mode #mobile-tx-sheet .tx-sheet-recurring,
html body.guest-mode #mobile-tx-sheet .tx-sheet-actions > button:not([data-open-card-statement]),
html body.guest-mode #mobile-tx-sheet .tx-sheet-actions > [data-status],
html body.guest-mode #app .row-actions button:is([data-edit],[data-delete],[data-contribute]),
html body.guest-mode #app .cards .row-actions button:is([data-edit],[data-delete],[data-contribute]),
html body.guest-mode #app .family-add,
html body.guest-mode #app .family-member-meta > span[data-email]{
 display:none!important;
}
/* Perfil do visitante: o mesmo sistema visual de painéis e linhas do titular. */
#app .nexo-visitor-profile {
 width:100%;
 max-width:800px;
 margin:0 auto;
 display:flex;
 flex-direction:column;
 gap:0;
}
#app .nexo-visitor-profile .profile-overview {
 margin-bottom:12px;
}
#app .nexo-visitor-profile .nexo-visitor-avatar-image {
 display:block;
 width:100%;height:100%;
 object-fit:cover;
 border-radius:inherit;
}
#app .nexo-visitor-profile .nexo-visitor-identity h2 {
 overflow-wrap:anywhere;
}
#app .nexo-visitor-profile .nexo-visitor-identity p {
 font-size:12px;
 color:var(--text-secondary);
}
#app .nexo-visitor-profile .nexo-visitor-tabs {
 display:grid!important;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:0;
 width:100%;
 margin-top:17px;
}
#app .nexo-visitor-profile .nexo-visitor-tabs > button {
 min-width:0;
 cursor:pointer;
}
#app .nexo-visitor-profile .nexo-visitor-tabs > button[aria-selected="true"]{
 color:var(--red,#ec0000);
}
#app .nexo-visitor-profile .nexo-visitor-tab-panel[hidden],
#app .nexo-visitor-profile .nexo-visitor-edit-name[hidden]{
 display:none!important;
}
#app .nexo-visitor-profile .nexo-visitor-tab-panel {
 min-width:0;
}
#app .nexo-visitor-profile .nexo-profile-list-group {
 margin:16px 0 25px;
}
#app .nexo-visitor-profile .nexo-profile-list {
 background:linear-gradient(145deg,#fff,#fcfdfe);
 border:1px solid #e4e9ef;
 border-radius:20px;
 box-shadow:0 4px 12px rgba(40,52,70,.025);
 padding:0 19px;
}
#app .nexo-visitor-profile .nexo-profile-row,
#app .nexo-visitor-profile .nexo-visitor-name-row,
#app .nexo-visitor-profile .visitor-email-change > summary {
 min-height:70px;
 width:100%;
 box-sizing:border-box;
 padding:12px 0;
 display:flex;
 align-items:center;
 gap:13px;
 text-align:left;
 border:0;
 border-bottom:1px solid #e9edf2;
 color:var(--text-primary);
 font-family:Inter,system-ui,sans-serif;
 font-size:13px;
}
#app .nexo-visitor-profile .nexo-profile-row:last-child,
#app .nexo-visitor-profile .visitor-email-change:last-child > summary {
 border-bottom:0;
}
#app .nexo-visitor-profile .nexo-profile-row-icon {
 flex:0 0 38px;
 width:38px;height:38px;
 display:grid;place-items:center;
 border-radius:17px;
 background:#e7eef4;border:1px solid #d0deea;
 color:var(--text-secondary);
}
#app .nexo-visitor-profile .nexo-profile-row-icon .nexo-icon {
 width:20px;height:20px;
 stroke-width:1.2;
}
#app .nexo-visitor-profile .nexo-profile-row-text {
 flex:1;
 min-width:0;
 display:flex;
 flex-direction:column;
 gap:5px;
}
#app .nexo-visitor-profile .nexo-profile-row-label {
 font-size:13px;
 font-weight:500;
}
#app .nexo-visitor-profile .nexo-profile-row-text small {
 color:var(--text-secondary);
 font-size:12px;
 font-weight:400;
 overflow-wrap:anywhere;
}
#app .nexo-visitor-profile .nexo-visitor-edit-icon {
 width:32px;height:32px;
 display:grid;place-items:center;
 flex:none;
 border:0;background:transparent;
 color:var(--text-secondary);
 cursor:pointer;
 border-radius:12px;
}
#app .nexo-visitor-profile .nexo-visitor-edit-icon .nexo-icon {width:19px;height:19px}
#app .nexo-visitor-profile .nexo-visitor-edit-name {
 padding:13px 0 19px;
 border-bottom:1px solid #e9edf2;
}
#app .nexo-visitor-profile .nexo-visitor-edit-name .profile-field {
 display:grid;
 gap:9px;
 font-size:12px;
 font-weight:400;
 color:var(--text-secondary);
}
#app .nexo-visitor-profile :is(#visitor-profile-form input,#visitor-email-form input) {
 width:100%;height:45px;
 border-radius:17px!important;
 border:1px solid #d0deea;
 background:#fff;
 padding:10px 14px;
 font-size:14px;
}
#app .nexo-visitor-profile .nexo-visitor-save-actions {
 display:flex;
 align-items:center;
 flex-wrap:wrap;
 gap:9px;
 margin-top:12px;
}
#app .nexo-visitor-profile .nexo-visitor-save-actions button,
#app .nexo-visitor-profile #visitor-email-form button {
 height:40px;
 border-radius:17px!important;
 padding:8px 17px;
 width:auto;
}
#app .nexo-visitor-profile .visitor-email-change {
 margin:0;
}
#app .nexo-visitor-profile .visitor-email-change > summary {
 list-style:none;
 cursor:pointer;
}
#app .nexo-visitor-profile .visitor-email-change > summary::-webkit-details-marker {display:none}
#app .nexo-visitor-profile .visitor-email-change > summary .nexo-profile-row-arrow {
 flex:none;
 transition:transform .2s;
}
#app .nexo-visitor-profile .visitor-email-change[open] > summary .nexo-profile-row-arrow {transform:rotate(90deg)}
#app .nexo-visitor-profile #visitor-email-form {
 padding:14px 0 19px;
 display:grid;
 gap:12px;
}
#app .nexo-visitor-profile #visitor-email-form label {font-size:12px;color:var(--text-secondary)}
#app .nexo-visitor-profile #visitor-email-form button {justify-self:start}
#app .nexo-visitor-profile .nexo-visitor-info {
 display:flex;
 align-items:flex-start;
 gap:13px;
 padding:18px 0;
}
#app .nexo-visitor-profile .nexo-visitor-info div {flex:1;min-width:0}
#app .nexo-visitor-profile .nexo-visitor-info b {font-size:13px;font-weight:500;color:var(--text-primary)}
#app .nexo-visitor-profile .nexo-visitor-info p {font-size:12px;line-height:1.6;color:var(--text-secondary);margin:6px 0 0}
@media(max-width:800px){
 #app .nexo-visitor-profile .nexo-profile-list {
  border:1px solid #e4e9ef;
  padding:0 15px;
  border-radius:17px;
 }
 #app .nexo-visitor-profile .nexo-profile-row,
 #app .nexo-visitor-profile .nexo-visitor-name-row,
 #app .nexo-visitor-profile .visitor-email-change > summary {min-height:66px}
}
