/* Submenu padrão Linear/Notion: descritor + chips de conta inline */

.page-subnav {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .65rem;
  padding: .5rem .75rem;
  margin-bottom: .75rem;
  overflow-x: auto;
}

.page-subnav-title {
  flex-shrink: 0;
  padding-right: .5rem;
  line-height: 1.1;
}

.page-subnav-eyebrow {
  font-size: .55rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-mut);
  font-weight: 700;
}

.page-subnav-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  margin-top: .1rem;
}

.page-subnav-divider {
  width: 1px;
  height: 2.2rem;
  background: var(--border);
  flex-shrink: 0;
}

.page-subnav-tabs {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: thin;
}

.acct-tab {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .55rem;
  border-radius: .4rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  transition: all .12s;
}
.acct-tab:hover { background: var(--bg-2); color: var(--text) }
.acct-tab.on { background: var(--text); color: var(--surface) }

.acct-tab-icon {
  width: 1.35rem;
  height: 1.35rem;
  font-size: .55rem;
  border-radius: .3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.acct-tab-saldo {
  font-size: .62rem;
  font-weight: 600;
  opacity: .6;
  font-variant-numeric: tabular-nums;
}
.acct-tab.on .acct-tab-saldo { opacity: .85 }

.page-subnav-actions {
  flex-shrink: 0;
  display: flex;
  gap: .4rem;
  margin-left: .25rem;
  padding-left: .6rem;
  border-left: 1px solid var(--border);
}
.subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 600;
  padding: .35rem .7rem;
  border-radius: .45rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.subnav-btn:hover { background: var(--bg-2); }
.subnav-btn.primary { background: var(--text); color: var(--surface); border-color: var(--text); }
.subnav-btn.primary:hover { opacity: .9; }
.subnav-btn-badge {
  font-size: .6rem; font-weight: 700;
  background: var(--warn, #f59e0b); color: #000;
  padding: .02rem .32rem; border-radius: 9999px;
}

.page-subnav-total {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  padding-left: .25rem;
}
.page-subnav-total-label {
  font-size: .55rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-mut);
  font-weight: 700;
}
.page-subnav-total-value {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-top: .1rem;
}

.acct-tab-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: .42rem;
  height: .42rem;
  background: #f59e0b;
  border-radius: 9999px;
  box-shadow: 0 0 0 2px var(--surface);
}
.acct-tab.on .acct-tab-dot { box-shadow: 0 0 0 2px var(--text) }
