@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
:root {
  --az-color-brand: #0B6B4E;
  --az-color-brand-strong: #08533C;
  --az-color-brand-tint: #E3F2EC;
  --az-color-ink: #12211B;
  --az-color-ink-soft: #2F4039;
  --az-color-muted: #55655E;
  --az-color-ground: #F6F8F5;
  --az-color-surface: #FFFFFF;
  --az-color-line: #DDE5E0;
  --az-color-line-soft: #EEF2EF;
  --az-color-field: #C9D5CE;
  --az-color-accent: #F4B740;
  --az-color-expense: #A63C12;
  --az-color-expense-strong: #8A3410;
  --az-color-expense-tint: #FDEBDD;
  --az-color-warning-tint: #FFF4D6;
  --az-color-warning: #6B4E00;
  --az-color-danger: #C2410C;
  --az-color-neutral: #F1F4F2;
  --az-radius-sm: 10px;
  --az-radius-md: 12px;
  --az-radius-lg: 16px;
  --az-radius-xl: 20px;
  --az-radius-2xl: 24px;
  --az-radius-pill: 999px;
  --az-shadow-card: 0 1px 0 rgba(18, 33, 27, 0.02);
  --az-shadow-raised: 0 16px 40px rgba(18, 33, 27, 0.08);
  --az-shadow-overlay: 0 16px 40px rgba(18, 33, 27, 0.25);
  --az-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --az-space-gutter: 16px;
  --az-space-page: 32px;
  --az-control-height: 52px;
  --az-control-padding-x: 16px;
}
/* Base of every app using @ejunnior/open-ui: font, ground, focus ring. Kept small on purpose:
   the components carry their own styles. */
.az-app,
.az-root {
  font-family: var(--az-font-family);
  color: var(--az-color-ink);
  background: var(--az-color-ground);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.az-root :focus-visible {
  outline: 3px solid var(--az-color-accent);
  outline-offset: 2px;
}

.az-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* DataTable with `cards`: the table on a large screen, the list of cards on a phone. Only one of them is displayed,
   so the other is out of the accessibility tree as well. */
.az-table-cards {
  display: none;
}

@media (max-width: 720px) {
  .az-table-with-cards > .az-table-scroll {
    display: none;
  }

  .az-table-with-cards > .az-table-cards {
    display: block;
  }
}

/* Form fields (IN-47): Input, Select, Textarea and the date / number / search inputs share one box, so a form or a
   filter row lines up: same height (--az-control-height, ≥ 44 px touch target), same padding on both sides, same
   border, radius, font and focus ring. Plain CSS (not utilities) because it needs ::placeholder, :has() and the
   WebKit date parts. */
.az-field {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: var(--az-control-height);
  margin: 0;
  padding: 0 var(--az-control-padding-x);
  border: 1.5px solid var(--az-color-field);
  border-radius: var(--az-radius-md);
  background-color: var(--az-color-surface);
  color: var(--az-color-ink);
  font-family: var(--az-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.az-field[aria-invalid='true'] {
  border-color: var(--az-color-expense);
}

/* The same ring whether the field was reached by keyboard or by a click (a select only matches :focus-visible from
   the keyboard, an input always). */
.az-field:focus {
  outline: 3px solid var(--az-color-accent);
  outline-offset: 2px;
}

.az-field:disabled {
  background-color: var(--az-color-neutral);
  color: var(--az-color-muted);
  cursor: not-allowed;
  opacity: 1;
}

.az-field::-moz-placeholder {
  color: var(--az-color-muted);
  opacity: 1;
}

.az-field::placeholder {
  color: var(--az-color-muted);
  opacity: 1;
}

textarea.az-field {
  height: auto;
  min-height: var(--az-control-height);
  padding-top: 12.5px;
  padding-bottom: 12.5px;
  resize: vertical;
}

/* Safari only honours the padding of a search field without its native look; Chrome keeps the clear button. */
input.az-field[type='search'] {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}

/* Date and time: WebKit pads its inner editor (a date field came out 2 px taller than a text one) and iOS centres the
   value. */
.az-field::-webkit-datetime-edit {
  padding: 0;
}

.az-field::-webkit-date-and-time-value {
  min-height: 24px;
  text-align: left;
}

/* Select: our own chevron with room on the right, instead of the native arrow against the border. */
select.az-field {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  padding-right: calc(var(--az-control-padding-x) + 28px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355655E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

select.az-field::-ms-expand {
  display: none;
}

/* Placeholder state: while the placeholder option (Select `placeholder`, or an option marked data-az-placeholder)
   is the chosen one, the select reads like an empty input. An option with an empty value that is a real choice
   ("Todas as situações") is not marked, so it stays in the normal colour. The class is the fallback for browsers
   without :has(). The options in the list keep the normal colour. */
select.az-field:has(> option[data-az-placeholder]:checked),
select.az-field.az-field-placeholder {
  color: var(--az-color-muted);
}

select.az-field option {
  color: var(--az-color-ink);
}

select.az-field option[data-az-placeholder] {
  color: var(--az-color-muted);
}

/* Checkbox: a 44 px row (10 px above and below one 24 px line). The box sits in a box of one line's height, so it is
   centred on a one-line label and stays on the first line of a label that wraps. */
.az-checkbox {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--az-color-ink-soft);
  font-size: 15px;
  line-height: 24px;
  cursor: pointer;
}

.az-checkbox-box {
  display: flex;
  flex: none;
  align-items: center;
  height: 24px;
}

.az-checkbox-box > input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--az-color-brand);
  cursor: pointer;
}

.az-checkbox:has(> .az-checkbox-box > input:disabled) {
  cursor: not-allowed;
  opacity: 0.6;
}

.visible {
  visibility: visible;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  inset: 0px;
}

.bottom-0 {
  bottom: 0px;
}

.bottom-6 {
  bottom: 1.5rem;
}

.left-0 {
  left: 0px;
}

.right-0 {
  right: 0px;
}

.right-2\.5 {
  right: 0.625rem;
}

.right-6 {
  right: 1.5rem;
}

.top-0 {
  top: 0px;
}

.top-2 {
  top: 0.5rem;
}

.top-\[52px\] {
  top: 52px;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.z-\[60\] {
  z-index: 60;
}

.m-0 {
  margin: 0px;
}

.ml-1 {
  margin-left: 0.25rem;
}

.mt-auto {
  margin-top: auto;
}

.box-border {
  box-sizing: border-box;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.h-11 {
  height: 2.75rem;
}

.h-14 {
  height: 3.5rem;
}

.h-2 {
  height: 0.5rem;
}

.h-2\.5 {
  height: 0.625rem;
}

.h-\[52px\] {
  height: 52px;
}

.h-\[var\(--az-control-height\)\] {
  height: var(--az-control-height);
}

.min-h-\[22px\] {
  min-height: 22px;
}

.min-h-\[40px\] {
  min-height: 40px;
}

.min-h-\[44px\] {
  min-height: 44px;
}

.min-h-screen {
  min-height: 100vh;
}

.w-11 {
  width: 2.75rem;
}

.w-14 {
  width: 3.5rem;
}

.w-2 {
  width: 0.5rem;
}

.w-\[248px\] {
  width: 248px;
}

.w-\[52px\] {
  width: 52px;
}

.w-full {
  width: 100%;
}

.min-w-0 {
  min-width: 0px;
}

.min-w-\[220px\] {
  min-width: 220px;
}

.max-w-\[420px\] {
  max-width: 420px;
}

.max-w-\[480px\] {
  max-width: 480px;
}

.max-w-\[60\%\] {
  max-width: 60%;
}

.max-w-\[calc\(100\%-48px\)\] {
  max-width: calc(100% - 48px);
}

.flex-1 {
  flex: 1 1 0%;
}

.shrink-0 {
  flex-shrink: 0;
}

.border-collapse {
  border-collapse: collapse;
}

.cursor-pointer {
  cursor: pointer;
}

.list-none {
  list-style-type: none;
}

.grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.items-center {
  align-items: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-0\.5 {
  gap: 0.125rem;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-1\.5 {
  gap: 0.375rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-2\.5 {
  gap: 0.625rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-3\.5 {
  gap: 0.875rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-\[18px\] {
  gap: 18px;
}

.gap-x-1\.5 {
  -moz-column-gap: 0.375rem;
       column-gap: 0.375rem;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: var(--az-radius-lg);
}

.rounded-md {
  border-radius: var(--az-radius-md);
}

.rounded-pill {
  border-radius: var(--az-radius-pill);
}

.rounded-sm {
  border-radius: var(--az-radius-sm);
}

.rounded-xl {
  border-radius: var(--az-radius-xl);
}

.border {
  border-width: 1px;
}

.border-0 {
  border-width: 0px;
}

.border-\[1\.5px\] {
  border-width: 1.5px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-r {
  border-right-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-solid {
  border-style: solid;
}

.border-field {
  border-color: var(--az-color-field);
}

.border-ink {
  border-color: var(--az-color-ink);
}

.border-line {
  border-color: var(--az-color-line);
}

.border-line-soft {
  border-color: var(--az-color-line-soft);
}

.bg-\[\#E7ECE9\] {
  --tw-bg-opacity: 1;
  background-color: rgb(231 236 233 / var(--tw-bg-opacity, 1));
}

.bg-\[rgba\(18\2c 33\2c 27\2c 0\.38\)\] {
  background-color: rgba(18,33,27,0.38);
}

.bg-brand {
  background-color: var(--az-color-brand);
}

.bg-brand-tint {
  background-color: var(--az-color-brand-tint);
}

.bg-danger {
  background-color: var(--az-color-danger);
}

.bg-expense {
  background-color: var(--az-color-expense);
}

.bg-expense-tint {
  background-color: var(--az-color-expense-tint);
}

.bg-ink {
  background-color: var(--az-color-ink);
}

.bg-neutral {
  background-color: var(--az-color-neutral);
}

.bg-surface {
  background-color: var(--az-color-surface);
}

.bg-transparent {
  background-color: transparent;
}

.bg-warning-tint {
  background-color: var(--az-color-warning-tint);
}

.p-0 {
  padding: 0px;
}

.p-2 {
  padding: 0.5rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-7 {
  padding: 1.75rem;
}

.p-\[22px\] {
  padding: 22px;
}

.p-\[5px\] {
  padding: 5px;
}

.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-3\.5 {
  padding-left: 0.875rem;
  padding-right: 0.875rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-\[18px\] {
  padding-left: 18px;
  padding-right: 18px;
}

.py-0 {
  padding-top: 0px;
  padding-bottom: 0px;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-\[11px\] {
  padding-top: 11px;
  padding-bottom: 11px;
}

.pb-28 {
  padding-bottom: 7rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.font-sans {
  font-family: var(--az-font-family);
}

.text-\[11px\] {
  font-size: 11px;
}

.text-\[14px\] {
  font-size: 14px;
}

.text-\[15px\] {
  font-size: 15px;
}

.text-\[17px\] {
  font-size: 17px;
}

.text-\[22px\] {
  font-size: 22px;
}

.text-\[28px\] {
  font-size: 28px;
}

.text-caption {
  font-size: 13px;
  line-height: 1.4;
}

.text-card {
  font-size: 18px;
  line-height: 1.35;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.font-medium {
  font-weight: 500;
}

.font-normal {
  font-weight: 400;
}

.font-semibold {
  font-weight: 600;
}

.tabular-nums {
  --tw-numeric-spacing: tabular-nums;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.text-\[\#7BD3A8\] {
  --tw-text-opacity: 1;
  color: rgb(123 211 168 / var(--tw-text-opacity, 1));
}

.text-\[\#DCE6E1\] {
  --tw-text-opacity: 1;
  color: rgb(220 230 225 / var(--tw-text-opacity, 1));
}

.text-\[\#F7B49A\] {
  --tw-text-opacity: 1;
  color: rgb(247 180 154 / var(--tw-text-opacity, 1));
}

.text-brand {
  color: var(--az-color-brand);
}

.text-brand-strong {
  color: var(--az-color-brand-strong);
}

.text-expense {
  color: var(--az-color-expense);
}

.text-expense-strong {
  color: var(--az-color-expense-strong);
}

.text-ink {
  color: var(--az-color-ink);
}

.text-ink-soft {
  color: var(--az-color-ink-soft);
}

.text-muted {
  color: var(--az-color-muted);
}

.text-warning {
  color: var(--az-color-warning);
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.no-underline {
  text-decoration-line: none;
}

.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-\[0_2px_6px_rgba\(18\2c 33\2c 27\2c 0\.12\)\] {
  --tw-shadow: 0 2px 6px rgba(18,33,27,0.12);
  --tw-shadow-colored: 0 2px 6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-\[0_8px_20px_rgba\(11\2c 107\2c 78\2c 0\.35\)\] {
  --tw-shadow: 0 8px 20px rgba(11,107,78,0.35);
  --tw-shadow-colored: 0 8px 20px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-overlay {
  --tw-shadow: var(--az-shadow-overlay);
  --tw-shadow-colored: var(--az-shadow-overlay);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-raised {
  --tw-shadow: var(--az-shadow-raised);
  --tw-shadow-colored: var(--az-shadow-raised);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.ring {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.first\:border-t-0:first-child {
  border-top-width: 0px;
}

.hover\:border-field:hover {
  border-color: var(--az-color-field);
}

.hover\:border-ink-soft:hover {
  border-color: var(--az-color-ink-soft);
}

.hover\:bg-brand-strong:hover {
  background-color: var(--az-color-brand-strong);
}

.hover\:bg-brand-tint:hover {
  background-color: var(--az-color-brand-tint);
}

.hover\:bg-expense-strong:hover {
  background-color: var(--az-color-expense-strong);
}

.hover\:bg-ground:hover {
  background-color: var(--az-color-ground);
}

.hover\:bg-ink-soft:hover {
  background-color: var(--az-color-ink-soft);
}

.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

.disabled\:opacity-60:disabled {
  opacity: 0.6;
}

@media (min-width: 640px) {
  .sm\:flex {
    display: flex;
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  .md\:inline-flex {
    display: inline-flex;
  }
  .md\:hidden {
    display: none;
  }
  .md\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .md\:py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
  .md\:pb-12 {
    padding-bottom: 3rem;
  }
  .md\:pt-7 {
    padding-top: 1.75rem;
  }
}
/* "Primeiros passos" (ONB-29): the guided setup page, the dashboard's checklist card and the link back above the
   treasury page. Only design tokens (--az-*); 360 px wide phones without horizontal scroll. */

.shell-guided {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
}

.shell-guided-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shell-guided-header h1:focus {
  outline: none;
}

.shell-guided-eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--az-color-brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shell-guided-subtitle,
.shell-guided-hint,
.shell-guided-description {
  margin: 0;
  color: var(--az-color-muted);
  line-height: 1.5;
}

.shell-guided-hint {
  font-size: 14px;
}

.shell-guided-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 16px;
  border-radius: var(--az-radius-md);
  background: var(--az-color-surface);
  border: 1px solid var(--az-color-line);
}

.shell-guided-note p {
  margin: 0;
  flex: 1 1 240px;
  line-height: 1.5;
}

/* The steps */
.shell-guided-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shell-guided-step {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--az-color-line);
  border-radius: var(--az-radius-xl);
  background: var(--az-color-surface);
}

.shell-guided-steps-compact {
  gap: 0;
}

.shell-guided-steps-compact .shell-guided-step {
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--az-color-line);
  border-radius: 0;
  background: transparent;
}

.shell-guided-steps-compact .shell-guided-step:first-child {
  border-top: 0;
}

.shell-guided-marker {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--az-color-field);
  color: var(--az-color-ink-soft);
  font-weight: 800;
  font-size: 15px;
}

.shell-guided-step-done .shell-guided-marker {
  border-color: var(--az-color-brand);
  background: var(--az-color-brand);
  color: var(--az-color-surface);
}

.shell-guided-step-skipped .shell-guided-marker {
  border-style: dashed;
}

.shell-guided-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shell-guided-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-height: 32px;
}

.shell-guided-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.shell-guided-steps-compact .shell-guided-title {
  font-size: 15px;
}

.shell-guided-step-done .shell-guided-title {
  color: var(--az-color-muted);
}

.shell-guided-state {
  font-size: 13px;
  font-weight: 700;
  color: var(--az-color-muted);
}

.shell-guided-state-done {
  color: var(--az-color-brand-strong);
}

.shell-guided-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

/* A link that looks like the design system's button (primary, or secondary). */
.shell-guided-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--az-radius-md);
  background: var(--az-color-brand);
  color: var(--az-color-surface);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.shell-guided-action:hover {
  background: var(--az-color-brand-strong);
}

.shell-guided-action-secondary {
  background: var(--az-color-surface);
  color: var(--az-color-ink);
  border: 1.5px solid var(--az-color-field);
}

.shell-guided-action-secondary:hover {
  background: var(--az-color-surface);
  border-color: var(--az-color-ink-soft);
}

.shell-guided-skip {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--az-color-brand);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.shell-guided-skip:hover {
  text-decoration: underline;
}

.shell-guided-action:focus-visible,
.shell-guided-skip:focus-visible {
  outline: 3px solid var(--az-color-accent);
  outline-offset: 2px;
}

.shell-guided-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Above the treasury page while a step is open. */
.shell-guided-return {
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .shell-guided {
    gap: 18px;
  }

  .shell-guided-step {
    padding: 14px;
    gap: 12px;
  }

  .shell-guided-steps:not(.shell-guided-steps-compact) .shell-guided-actions > .shell-guided-action {
    flex: 1 1 100%;
  }

  .shell-guided-footer > .shell-guided-action {
    align-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shell-guided-action,
  .shell-guided-skip {
    transition: none;
  }
}
/* Home dashboard (FINTR-80) with Treasury's data: loading, error and empty states, and the bits of the real cards.
   Only design tokens (--az-*), as the rest of the dashboard's styles in src/index.css. */

/* Skeleton while a card loads (cold start on nonprod: up to ~30 s). */
.shell-dash-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shell-dash-skeleton-line {
  display: block;
  height: 16px;
  border-radius: var(--az-radius-sm);
  background: var(--az-color-line);
  animation: shell-dash-pulse 1.4s ease-in-out infinite;
}

.shell-dash-skeleton-line:nth-child(odd) {
  width: 80%;
}

.shell-dash-skeleton-inverted .shell-dash-skeleton-line {
  height: 24px;
  background: var(--az-color-ink-soft);
}

.shell-dash .shell-dash-skeleton-slow {
  font-size: 13px;
  color: var(--az-color-muted);
}

.shell-dash .shell-dash-skeleton-inverted .shell-dash-skeleton-slow {
  color: var(--az-color-field);
}

@keyframes shell-dash-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .shell-dash-skeleton-line {
    animation: none;
  }
}

/* One card could not load: message, reference and "Tentar novamente". */
.shell-dash-error {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.shell-dash .shell-dash-error-ref {
  font-size: 12px;
  color: var(--az-color-muted);
  overflow-wrap: anywhere;
}

.shell-dash-error-inverted,
.shell-dash .shell-dash-error-inverted .shell-dash-error-ref {
  color: var(--az-color-field);
}

/* A new tenant: "Cadastre sua primeira conta", a link that looks like the design system's primary button. */
.shell-dash-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--az-radius-md);
  background: var(--az-color-brand);
  color: var(--az-color-surface);
  font-weight: 700;
  text-decoration: none;
}

.shell-dash-cta:hover,
.shell-dash-cta:focus-visible {
  background: var(--az-color-brand-strong);
}

/* "Voltar para o mês atual" next to the month switcher. */
.shell-dash-today {
  border: 0;
  background: transparent;
  padding: 0 4px;
  font: inherit;
  cursor: pointer;
}

/* The KPI cards while the month loads, and its error in their place. */
.shell-dash-kpi-loading,
.shell-dash-kpi-error {
  padding: 20px;
}

/* Despesas por categoria: the category's colour next to its bar. */
.shell-dash-categories li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.shell-dash-swatch {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--az-color-line);
}

.shell-dash-category-bar {
  flex: 1 1 auto;
  min-width: 0;
}

/* A receipt's amount (with "+", not only the colour). */
.shell-dash-positive {
  color: var(--az-color-brand-strong);
}

/* "+ 3 mais em Lançamentos" under a list. */
.shell-dash .shell-dash-more {
  margin-top: 4px;
  font-size: 13px;
}

/* FINTR-136: the month's result in "Orçamento do mês" (sign shown with "+"/"−", not only the colour). */
.shell-dash-budget-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  margin-bottom: 12px;
}

.shell-dash-budget-result > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.shell-dash-budget-result strong {
  font-size: 18px;
}

.shell-dash-budget-result > p {
  grid-column: 1 / -1;
  margin: 0;
}

.shell-dash-negative {
  color: var(--az-color-expense-strong);
}

/* "Orçamento do mês" without a budget: the sentence and "Criar orçamento" (FINTR-107). */
.shell-dash-budget-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
/* Shell-specific styles only. The look (tokens, components, AppShell) comes from
   @ejunnior/open-ui/styles.css, imported in main.jsx. Values use the design tokens (--az-*). */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--az-color-ground);
  font-family: var(--az-font-family);
  color: var(--az-color-ink);
}

.shell-loading {
  padding: 32px;
  color: var(--az-color-muted);
  font-family: var(--az-font-family);
}

.shell-page-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Public page: the door to sign-in */
.shell-public {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell-public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.shell-public-logo {
  text-decoration: none;
}

.shell-language select {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  min-height: 44px;
  border: 1.5px solid var(--az-color-field);
  border-radius: var(--az-radius-md);
  background: var(--az-color-surface);
  color: var(--az-color-ink);
}

.shell-public-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.shell-signin-card {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  background: var(--az-color-surface);
  border: 1px solid var(--az-color-line);
  border-radius: var(--az-radius-2xl);
  box-shadow: var(--az-shadow-raised);
  padding: 40px 32px;
}

.shell-signin-card h1 {
  margin: 8px 0 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.shell-signin-card p {
  margin: 0;
  color: var(--az-color-ink-soft);
  line-height: 1.55;
}

.shell-signin-button {
  width: 100%;
  margin-top: 12px;
}

.shell-public-footer {
  text-align: center;
  color: var(--az-color-muted);
  font-size: 14px;
  padding: 24px;
}

/* Onboarding (first sign-in): dark panel with the steps + the card, from the approved design.
   Stacks on the phone. */
.shell-onboarding {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  background: var(--az-color-ground);
}

.shell-onboarding-aside {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px;
  background: var(--az-color-ink);
  color: var(--az-color-surface);
}

.shell-onboarding-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}

.shell-onboarding-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shell-onboarding-intro h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.shell-onboarding-intro p {
  margin: 0;
  color: var(--az-color-field);
  font-size: 17px;
  line-height: 1.55;
}

.shell-onboarding-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shell-onboarding-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #9FB3AA; /* steps still ahead: design value, 7:1 on ink */
}

.shell-onboarding-steps li[aria-current='step'] {
  color: var(--az-color-surface);
  font-weight: 700;
}

.shell-onboarding-step-number {
  width: 32px;
  height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--az-radius-pill);
  border: 2px solid #3C5048;
  font-weight: 800;
}

.shell-onboarding-steps li[aria-current='step'] .shell-onboarding-step-number {
  border-color: var(--az-color-accent);
  background: var(--az-color-accent);
  color: var(--az-color-ink);
}

.shell-onboarding-main {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 56px 16px;
}

.shell-onboarding-card {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px;
  background: var(--az-color-surface);
  border: 1px solid var(--az-color-line);
  border-radius: var(--az-radius-2xl);
  box-shadow: var(--az-shadow-raised);
}

.shell-onboarding-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shell-onboarding-card h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.shell-onboarding-card h2:focus {
  outline: none;
}

.shell-onboarding-heading p,
.shell-onboarding-state p {
  margin: 0;
  color: var(--az-color-muted);
  line-height: 1.55;
}

.shell-onboarding-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shell-onboarding-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shell-onboarding-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shell-onboarding-label {
  font-size: 14px;
  font-weight: 700;
}

.shell-onboarding-field-error,
.shell-onboarding-form-error {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--az-color-expense);
}

.shell-onboarding-form a {
  color: var(--az-color-brand);
  font-weight: 600;
}

.shell-onboarding-form a:hover {
  color: var(--az-color-brand-strong);
}

.shell-onboarding-card :is(input, select, button, a):focus-visible {
  outline: 3px solid var(--az-color-accent);
  outline-offset: 2px;
}

.shell-onboarding-submit {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}

.shell-onboarding-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 0;
  text-align: center;
}

.shell-onboarding-state h2 {
  font-size: 22px;
}

.shell-onboarding-state-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--az-radius-pill);
  background: var(--az-color-brand-tint);
  color: var(--az-color-brand);
}

.shell-onboarding-state-icon-alert {
  background: var(--az-color-warning-tint);
  color: var(--az-color-warning);
}

.shell-onboarding-state .shell-onboarding-reference {
  font-size: 14px;
  color: var(--az-color-ink-soft);
  overflow-wrap: anywhere;
}

.shell-onboarding-spinner {
  width: 56px;
  height: 56px;
  box-sizing: border-box;
  border-radius: var(--az-radius-pill);
  border: 5px solid var(--az-color-brand-tint);
  border-top-color: var(--az-color-brand);
  animation: shell-spin 0.9s linear infinite;
}

@keyframes shell-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shell-onboarding-spinner {
    animation-duration: 3s;
  }
}

@media (max-width: 640px) {
  .shell-onboarding-aside {
    padding: 24px 16px;
    gap: 24px;
  }

  .shell-onboarding-intro h1 {
    font-size: 26px;
  }

  .shell-onboarding-main {
    padding: 24px 16px;
  }

  .shell-onboarding-card {
    padding: 24px 20px;
  }

  .shell-onboarding-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* GET /tenants/me failed: a centred card instead of the application */
.shell-tenant-unavailable {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.shell-tenant-unavailable > * {
  width: 100%;
  max-width: 520px;
}

/* Settings (ONB-28): the account's name and language. */
.shell-settings-card {
  max-width: 640px;
  margin-top: 20px;
}

.shell-settings-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shell-settings-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.shell-settings-heading p {
  margin: 6px 0 0;
  color: var(--az-color-ink-soft);
  line-height: 1.5;
}

.shell-settings-fieldset {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.shell-settings-fieldset:disabled {
  opacity: 0.7;
}

.shell-settings-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shell-settings-label {
  font-size: 14px;
  font-weight: 700;
}

.shell-settings-field-error {
  font-size: 14px;
  font-weight: 600;
  color: var(--az-color-expense);
}

.shell-settings-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--az-radius-md);
  background: var(--az-color-warning-tint);
  color: var(--az-color-ink);
}

.shell-settings-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--az-radius-md);
  background: var(--az-color-warning-tint);
  color: var(--az-color-ink);
}

.shell-settings-message-success {
  background: var(--az-color-brand-tint);
  color: var(--az-color-brand-strong);
}

.shell-settings-message p {
  margin: 0;
  font-weight: 600;
}

.shell-settings-message .shell-settings-reference {
  font-size: 14px;
  font-weight: 400;
  color: var(--az-color-ink-soft);
  overflow-wrap: anywhere;
}

.shell-settings-message:focus {
  outline: none;
}

.shell-settings-form :is(input, button):focus-visible {
  outline: 3px solid var(--az-color-accent);
  outline-offset: 2px;
}

.shell-settings-submit {
  align-self: flex-start;
  min-width: 160px;
}

@media (max-width: 640px) {
  .shell-settings-submit {
    align-self: stretch;
  }
}

/* Settings, danger zone (ONB-28): deleting the account. */
.shell-danger-card {
  border-color: var(--az-color-expense);
}

.shell-danger-card .shell-settings-heading h2 {
  color: var(--az-color-expense-strong);
}

.shell-danger-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--az-color-ink-soft);
  line-height: 1.5;
}

/* Home dashboard (FINTR-80): Treasury's data (states in src/pages/authenticated/dashboard/dashboard.css). Only design tokens (--az-*); the cards, KPI cards,
   progress bars and buttons are the design system's. Two columns that stack on the phone. */
.shell-dash {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shell-dash p {
  margin: 0;
}

.shell-dash-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.shell-dash .shell-dash-date {
  margin-bottom: 4px;
  color: var(--az-color-muted);
  font-weight: 600;
}

.shell-dash-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.shell-dash-month {
  display: flex;
  align-items: center;
  background: var(--az-color-surface);
  border: 1.5px solid var(--az-color-line);
  border-radius: var(--az-radius-md);
}

.shell-dash-month-step {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--az-color-ink);
  font: inherit;
  font-size: 20px;
  border-radius: var(--az-radius-md);
}

.shell-dash-month-label {
  padding: 0 6px;
  font-weight: 700;
}

.shell-dash-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.shell-dash-balance {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: var(--az-radius-xl);
  background: var(--az-color-ink);
  color: var(--az-color-surface);
}

.shell-dash-balance-label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--az-color-field);
}

.shell-dash-balance-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.shell-dash-balance-hint {
  font-size: 13px;
  color: var(--az-color-field);
}

.shell-dash-up {
  color: var(--az-color-brand-strong);
  font-weight: 700;
}

.shell-dash-down {
  color: var(--az-color-expense-strong);
  font-weight: 700;
}

.shell-dash-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

.shell-dash-main,
.shell-dash-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shell-dash-main {
  flex: 999 1 560px;
}

.shell-dash-side {
  flex: 1 1 340px;
}

.shell-dash-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--az-color-brand);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.shell-dash-link:hover {
  color: var(--az-color-brand-strong);
  text-decoration: underline;
}

.shell-dash-muted {
  color: var(--az-color-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Cash-flow chart (inline SVG) */
.shell-dash-chart {
  display: block;
  width: 100%;
  height: auto;
}

.shell-dash-chart text {
  font-family: var(--az-font-family);
  font-size: 12px;
}

.shell-dash-chart-grid {
  stroke: var(--az-color-line-soft);
}

.shell-dash-chart-axis {
  fill: var(--az-color-muted);
}

.shell-dash-chart-line {
  fill: none;
  stroke: var(--az-color-brand);
  stroke-width: 3;
  stroke-linejoin: round;
}

.shell-dash-chart-projected {
  stroke-dasharray: 6 6;
}

.shell-dash-chart-today {
  stroke: var(--az-color-ink);
  stroke-dasharray: 2 3;
}

.shell-dash .shell-dash-chart-today-label {
  fill: var(--az-color-ink);
  font-weight: 700;
}

.shell-dash .shell-dash-chart-event text {
  font-weight: 700;
}

.shell-dash-chart-expense {
  fill: var(--az-color-expense);
}

.shell-dash-chart-income {
  fill: var(--az-color-brand-strong);
}

/* On the phone the chart keeps a readable size and scrolls inside its card (never the page). */
.shell-dash-chart-scroll {
  overflow-x: auto;
}

@media (max-width: 640px) {
  .shell-dash-chart {
    min-width: 560px;
  }
}

.shell-dash-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--az-color-muted);
}

.shell-dash-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Lists inside the cards */
.shell-dash-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shell-dash-categories {
  gap: 14px;
}

/* The ProgressBar's label / value line: wrap instead of colliding on a narrow card. */
.shell-dash-categories li > div > div:first-child {
  flex-wrap: wrap;
  gap: 2px 12px;
}

.shell-dash-group {
  margin: 4px 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--az-color-muted);
}

.shell-dash-group-alert,
.shell-dash-alert-text,
.shell-dash-negative {
  color: var(--az-color-expense-strong);
}

.shell-dash-row,
.shell-dash-overdue {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.shell-dash-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--az-color-line-soft);
}

.shell-dash-row:last-child {
  border-bottom: 0;
}

.shell-dash-overdue {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: var(--az-radius-md);
  background: var(--az-color-expense-tint);
}

.shell-dash-overdue-icon {
  flex: none;
  color: var(--az-color-expense-strong);
}

.shell-dash-row-text {
  flex: 1 1 auto;
  min-width: 0;
}

.shell-dash-row-title {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.shell-dash .shell-dash-row-detail {
  margin-top: 2px;
  font-size: 13px;
  color: var(--az-color-muted);
}

.shell-dash-overdue .shell-dash-row-detail {
  color: var(--az-color-expense-strong);
}

.shell-dash-amount {
  flex: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.shell-dash-day {
  flex: none;
  width: 44px;
  text-align: center;
}

.shell-dash-day-number {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.shell-dash-day-month {
  display: block;
  font-size: 12px;
  color: var(--az-color-muted);
}

.shell-dash-full {
  width: 100%;
}

.shell-dash-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--az-radius-sm);
  background: var(--az-color-brand-tint);
  color: var(--az-color-brand-strong);
  font-weight: 800;
}

.shell-dash-avatar-card {
  background: var(--az-color-expense-tint);
  color: var(--az-color-expense-strong);
}


/* Navigation, option B "sections + tabs" (FINTR-98): the section's name above its pages as tabs (the breadcrumb).
   Shell classes only, so the order in which the design system's stylesheet loads does not matter. */
.shell-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.shell-section-name {
  margin: 0;
  color: var(--az-color-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shell-tabs {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--az-color-line);
}

.shell-tabs::-webkit-scrollbar {
  display: none;
}

.shell-tabs-list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shell-tab {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  color: var(--az-color-muted);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.shell-tab:hover {
  color: var(--az-color-ink);
}

.shell-tab:focus-visible,
.shell-menu-button:focus-visible,
.shell-drawer-link:focus-visible {
  outline: 3px solid var(--az-color-accent);
  outline-offset: -3px;
  border-radius: var(--az-radius-md);
}

/* Not colour alone: the current tab is also underlined and marked aria-current. */
.shell-tab-current {
  border-bottom-color: var(--az-color-brand);
  color: var(--az-color-ink);
}

/* The sidebar (AppShell's first nav) stays in view while the page scrolls, so Configurações, pinned at its bottom,
   is always reachable. Only position and height: the look stays the design system's. */
.az-app > nav:first-of-type {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  align-self: flex-start;
}

/* The brand with the phone's ☰ in front of it. */
.shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.shell-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--az-color-ink);
  cursor: pointer;
}

.shell-menu-button:hover {
  background: var(--az-color-ground);
}

/* From 768 px the sidebar shows the sections (AppShell's md breakpoint): no ☰. */
@media (min-width: 768px) {
  .shell-menu-button {
    display: none;
  }
}

.shell-drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shell-drawer-menu-bottom {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--az-color-line);
}

.shell-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--az-radius-md);
  color: var(--az-color-ink-soft);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.shell-drawer-link:hover {
  background: var(--az-color-ground);
}

.shell-drawer-link-current {
  background: var(--az-color-brand-tint);
  color: var(--az-color-brand-strong);
}
