/*
 * Pra Onde Foi? · Filament panel theme ("Recibo e Carimbo", see design-research.md).
 *
 * Plain CSS, no build step. PainelPanelProvider links it through PanelsRenderHook::HEAD_END,
 * after Filament's own stylesheet. Filament's styles live in cascade layers, so these unlayered
 * rules win without !important. The rules only restyle Filament's fi-* hooks and Tailwind theme
 * variables; they never change markup or layout structure.
 *
 * The tokens mirror public/css/home.css (the homepage). Fonts (Schibsted Grotesk, Martian Mono,
 * Doto) and the colour palettes (primary = magenta, etc.) are configured in the panel provider.
 */

:root {
  /* papers (grounds) */
  --papel:   #FCFDFD;
  --canario: #F8E88C;
  --rosa:    #F6C9D7;
  --ceu:     #CFE0F3;
  --menta:   #D6ECD9;
  --balcao:  #EDEFF0;
  /* inks */
  --tinta:     #121315;
  --desbotado: #50565C;
  --magenta:   #C2187A;
  --azul:      #2346B8;
  --verde:     #17734A;
  /* effects */
  --sombra:  rgba(40, 33, 20, .16);
  --carbono: rgba(18, 19, 21, .09);
  --tracejado: rgba(18, 19, 21, .26);
  --tooth: 6px;
  --zz-down: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) 100% repeat-x;
  --zz-up:   conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--tooth) * 2) 100% repeat-x;

  --f-display: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-dots: "Doto", "Martian Mono", ui-monospace, monospace;

  /* Tailwind theme variables Filament is built on: square paper corners, paper white. */
  --radius-xs: 1px;
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 3px;
  --radius-xl: 4px;
  --radius-2xl: 6px;
  --radius-3xl: 8px;
  --color-white: #FCFDFD;
}

/* ---------- ground ---------- */
html.fi, .fi-body { background-color: var(--balcao); color: var(--tinta); }

/* ---------- brand lockup (brandLogo) ---------- */
.pof-lockup { display: inline-flex; align-items: center; gap: .55rem; height: 100%; color: var(--tinta); }
.pof-lockup-mark { height: 100%; width: auto; aspect-ratio: 1; color: var(--magenta); flex: none; }
.pof-lockup-wm {
  font-family: var(--f-display); font-weight: 800; font-stretch: 75%;
  font-size: 1.05rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1;
  white-space: nowrap;
}
.pof-lockup-q { color: var(--magenta); }

/* ---------- topbar: the canary hero band, torn along the bottom ---------- */
.fi-topbar { position: relative; background-color: var(--canario); box-shadow: none; }
.fi-topbar::after {
  content: ""; position: absolute; inset-inline: 0; top: 100%; height: var(--tooth);
  background: var(--canario);
  -webkit-mask: var(--zz-down); mask: var(--zz-down);
  pointer-events: none;
}
/* The drawer (phones) opens with the same canary band, torn the same way. */
.fi-sidebar-header { position: relative; background-color: var(--canario); box-shadow: none; }
.fi-sidebar-header::after {
  content: ""; position: absolute; inset-inline: 0; top: 100%; height: var(--tooth);
  background: var(--canario);
  -webkit-mask: var(--zz-down); mask: var(--zz-down);
  pointer-events: none;
}

/* Menu items read like the homepage's nav: mono caps, inked. */
.fi-topbar-item-label,
.fi-sidebar-item-label {
  font-family: var(--f-display); font-weight: 600; font-stretch: 87.5%;
  font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta);
}

/* ---------- top navigation (desktop): the menu printed on the canary band ---------- */
/* Hover darkens the band a little; the current page is a paper slip pulled out of it,
   with its icon in magenta ink. */
.fi-topbar-nav-groups { column-gap: .25rem; }
.fi-topbar-item-btn { min-height: 2.5rem; padding-inline: .875rem; border-radius: var(--radius-sm); }
.fi-topbar-item-btn > .fi-icon { color: var(--desbotado); }
@media (hover: hover) {
  .fi-topbar-item-btn:hover { background-color: color-mix(in srgb, var(--tinta) 7%, transparent); }
}
.fi-topbar-item-btn:focus-visible {
  background-color: color-mix(in srgb, var(--tinta) 7%, transparent);
  outline: 2px solid var(--tinta); outline-offset: 2px;
}
.fi-topbar-item.fi-active .fi-topbar-item-btn {
  background-color: var(--papel);
  box-shadow: 0 0 0 1px var(--carbono), 0 6px 10px -8px var(--sombra);
}
.fi-topbar-item.fi-active .fi-topbar-item-label { font-weight: 800; }
.fi-topbar-item.fi-active .fi-topbar-item-btn > .fi-icon { color: var(--magenta); }

/* ---------- sidebar (the phone drawer): a paper slip, one ruled line per item ---------- */
/* Rows run edge to edge: the nav's side padding moves into the items, and the current
   page gets the canary band with a magenta ink stripe. */
.fi-sidebar { background-color: var(--papel); }
@media (min-width: 1024px) {
  .fi-sidebar { border-inline-end: 1.5px dashed var(--tracejado); }
}
.fi-sidebar-nav { padding-inline: 0; padding-block: 1.75rem; }
.fi-sidebar-nav-groups { margin-inline: 0; }
.fi-sidebar-group-btn { padding-inline: 1.5rem; }
.fi-sidebar-group-label {
  font-family: var(--f-display); font-weight: 700; font-stretch: 87.5%;
  font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--desbotado);
}
.fi-sidebar-group-items { row-gap: 0; border-top: 1px dashed var(--tracejado); }
.fi-sidebar-item { border-bottom: 1px dashed var(--tracejado); }
.fi-sidebar-item-btn { min-height: 3rem; padding: .625rem 1.5rem; border-radius: 0; }
.fi-sidebar-item-btn > .fi-icon { color: var(--desbotado); }
@media (hover: hover) {
  .fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover { background-color: color-mix(in srgb, var(--canario) 45%, transparent); }
}
.fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:focus-visible {
  background-color: color-mix(in srgb, var(--canario) 45%, transparent);
  outline: 2px solid var(--tinta); outline-offset: -2px;
}
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background-color: var(--canario); box-shadow: inset 4px 0 0 var(--magenta); }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label { font-weight: 800; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon { color: var(--magenta); }
/* A desktop sidebar collapsed to icons (sidebarCollapsibleOnDesktop) keeps Filament's
   centred column of icons. */
@media (min-width: 1024px) {
  .fi-body-has-sidebar-collapsible-on-desktop .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-nav-groups { margin-inline: auto; }
  .fi-body-has-sidebar-collapsible-on-desktop .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-item-btn { padding-inline: .5rem; }
}

/* ---------- headings: receipt print ---------- */
.fi-header-heading,
.fi-simple-header-heading {
  font-family: var(--f-display); font-weight: 800; font-stretch: 75%;
  letter-spacing: -.03em; line-height: 1.05; color: var(--tinta);
}
.fi-header-subheading, .fi-simple-header-subheading { color: var(--desbotado); }
.fi-section-header-heading,
.fi-ta-header-heading,
.fi-modal-heading {
  font-family: var(--f-display); font-weight: 700; font-stretch: 80%;
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta);
}
.fi-section-header-description, .fi-ta-header-description, .fi-modal-description { color: var(--desbotado); }
.fi-breadcrumbs { font-family: var(--f-display); font-stretch: 87.5%; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- cards: paper slips on the counter ---------- */
.fi-section:not(.fi-section-not-contained):not(.fi-aside),
.fi-ta-ctn {
  background-color: var(--papel);
  box-shadow: 0 0 0 1px var(--carbono), 0 14px 22px -18px var(--sombra);
}
.fi-section:not(.fi-section-not-contained) > .fi-section-content-ctn,
.fi-section:not(.fi-section-not-contained) > .fi-section-content-ctn > .fi-section-footer,
.fi-ta-ctn .fi-ta-header,
.fi-ta-ctn .fi-ta-header-toolbar,
.fi-ta-ctn .fi-pagination,
.fi-modal-footer, .fi-modal-header {
  border-style: dashed;
  border-color: var(--tracejado);
}

/* ---------- tables: statement lines ---------- */
.fi-ta-header-cell,
.fi-ta-header-cell .fi-ta-header-cell-sort-btn {
  font-family: var(--f-display); font-weight: 700; font-stretch: 80%;
  font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--desbotado);
}
.fi-ta-table > thead, .fi-ta-table > thead > tr,
.fi-ta-table > tbody, .fi-ta-row {
  border-style: dashed;
  border-color: var(--tracejado);
}
.fi-ta-summary-row, .fi-ta-summary-row-heading-cell { font-family: var(--f-display); font-stretch: 80%; text-transform: uppercase; }

/* ---------- stats: little receipts with a torn bottom and dot-matrix totals ---------- */
.fi-wi-stats-overview-stat {
  position: relative;
  background-color: var(--papel);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  box-shadow: 0 0 0 1px var(--carbono);
  margin-bottom: var(--tooth);
}
.fi-wi-stats-overview-stat::after {
  content: ""; position: absolute; inset-inline: 0; top: 100%; height: var(--tooth);
  background: var(--papel);
  -webkit-mask: var(--zz-down); mask: var(--zz-down);
  pointer-events: none;
}
.fi-wi-stats-overview-stat-label {
  font-family: var(--f-display); font-weight: 700; font-stretch: 80%;
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--desbotado);
}
.fi-wi-stats-overview-stat-value {
  font-family: var(--f-dots); font-weight: 900;
  letter-spacing: 0; line-height: 1.05; color: var(--tinta);
}
.fi-wi-stats-overview-stat-description { font-family: var(--f-display); font-stretch: 80%; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- controls ---------- */
.fi-btn {
  font-family: var(--f-display); font-weight: 700; font-stretch: 87.5%;
  font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
}
.fi-badge {
  font-family: var(--f-display); font-weight: 600; font-stretch: 87.5%;
  font-size: .68rem; letter-spacing: .04em; text-transform: uppercase;
}
.fi-tabs-item-label { font-family: var(--f-display); font-stretch: 87.5%; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.fi-fo-field-label-content, .fi-in-entry-label { font-weight: 600; }
.fi-link { color: var(--magenta); }
.fi-pagination-item-label, .fi-pagination-overview { font-variant-numeric: tabular-nums; }

/* ---------- login and other simple pages: a receipt on the canary counter ---------- */
.fi-simple-layout { background-color: var(--canario); }
.fi-simple-main {
  position: relative;
  background-color: var(--papel);
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 1px 0 var(--carbono)) drop-shadow(0 14px 18px var(--sombra));
  margin-block: calc(var(--tooth) + .5rem);
}
.fi-simple-main::before,
.fi-simple-main::after {
  content: ""; position: absolute; inset-inline: 0; height: var(--tooth);
  background: var(--papel);
  pointer-events: none;
}
.fi-simple-main::before { bottom: 100%; -webkit-mask: var(--zz-up); mask: var(--zz-up); }
.fi-simple-main::after { top: 100%; -webkit-mask: var(--zz-down); mask: var(--zz-down); }
.fi-simple-header .fi-logo { margin-bottom: .25rem; }

/* ---------- sign-in and Minha conta (our own markup: resources/views/filament/auth/) ---------- */
/* "Entrar com …": paper slips with a thin ink edge. Each provider's mark stays as its brand
   ships it, and the label keeps sentence case, as their sign-in guidelines ask (not the
   mono caps of .fi-btn). */
.pof-social { display: grid; gap: 1rem; }
.pof-social-divider {
  display: flex; align-items: center; gap: .75rem; margin: 0;
  font-family: var(--f-display); font-stretch: 87.5%; font-size: .7rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--desbotado);
}
.pof-social-divider::before,
.pof-social-divider::after { content: ""; flex: 1; border-top: 1px dashed var(--tracejado); }
.pof-social-buttons { display: grid; gap: .625rem; }
.pof-social-btn {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 2.75rem; padding: .5rem 1rem;
  background-color: var(--papel); color: var(--tinta);
  border: 1px solid var(--tracejado); border-radius: var(--radius-md);
  box-shadow: 0 1px 0 var(--carbono);
  font-size: var(--text-sm); font-weight: 600; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.pof-social-btn:hover { background-color: var(--balcao); border-color: var(--tinta); }
.pof-social-btn:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }
.pof-social-logo { width: 1.25rem; height: 1.25rem; flex: none; }
/* Why a social sign-in didn't go through: magenta ink on pink paper. */
.pof-auth-message {
  margin: 0; padding: .75rem 1rem;
  background-color: var(--rosa); color: var(--tinta);
  border-left: 4px solid var(--magenta);
  font-size: var(--text-sm); line-height: 1.45;
}
/* Under the sign-up form: the Termos de Uso and the Aviso de Privacidade. */
.pof-terms-note { margin: 0; font-size: var(--text-xs); line-height: 1.5; color: var(--desbotado); text-align: center; text-wrap: pretty; }
.pof-terms-note a { color: var(--tinta); text-decoration: underline; text-underline-offset: 2px; }
/* Minha conta's connected accounts: ruled apart with the drawer's dashed line. */
.pof-social-accounts { display: grid; margin: 0; padding: 0; list-style: none; }
.pof-social-account { display: flex; align-items: center; gap: .875rem; padding-block: .75rem; }
.pof-social-account + .pof-social-account { border-top: 1px dashed var(--tracejado); }
.pof-social-account:first-child { padding-top: 0; }
.pof-social-account:last-child { padding-bottom: 0; }
.pof-social-account-text { display: grid; gap: .125rem; flex: 1; min-width: 0; }
.pof-social-account-name { font-weight: 600; color: var(--tinta); }
.pof-social-account-status { font-size: var(--text-sm); color: var(--desbotado); overflow-wrap: anywhere; }
.pof-social-account-action { flex: none; }
.pof-social-account-note { font-size: var(--text-sm); color: var(--desbotado); }
/* The login and sign-up steps (App\Filament\Auth\Login): who is signing in, stamped on a
   counter slip with "Trocar"; the codes' buttons share the social slips; small links in
   magenta ink; the code typed in the dot-matrix mono, spaced like a receipt's total. */
.pof-auth-who {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
  padding: .625rem .875rem; background-color: var(--balcao); border: 1px dashed var(--tracejado);
  font-family: var(--f-display); font-size: var(--text-sm);
}
.pof-auth-who-value { font-weight: 600; color: var(--tinta); overflow-wrap: anywhere; }
.pof-auth-username { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.pof-auth-link {
  padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--magenta);
  text-decoration: underline; text-underline-offset: 2px;
}
.pof-auth-link:hover { color: var(--tinta); }
.pof-auth-link:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }
.pof-auth-step-text { color: var(--desbotado); text-wrap: pretty; }
.pof-auth-aside { margin: 0; font-size: var(--text-sm); color: var(--desbotado); text-align: center; }
button.pof-social-btn { width: 100%; cursor: pointer; font-family: inherit; }
button.pof-social-btn:disabled { opacity: .6; cursor: wait; }
.pof-social-btn-detail { display: block; font-size: var(--text-xs); font-weight: 400; color: var(--desbotado); }
.pof-code-input { font-family: var(--f-display); font-size: 1.375rem; letter-spacing: .4em; text-align: center; }

/* ---------- banks and cards (our own markup: resources/views/components/bank/) ---------- */
/* Bank logos sit in a small square chip, like a stamp on the slip. "Tile" logos bring their
   own filled square and fill the chip; the others sit on paper with a margin. */
.pof-bank-logo {
  display: inline-grid; place-items: center; flex: none; overflow: hidden;
  width: 2rem; height: 2rem; padding: 3px; border-radius: 6px;
  background: #fff; border: 1px solid var(--carbono);
  font-family: var(--f-display); font-weight: 700; font-stretch: 87.5%;
  font-size: .62rem; letter-spacing: .02em; line-height: 1; color: var(--desbotado);
}
.pof-bank-logo img { width: 100%; height: 100%; object-fit: contain; }
.pof-bank-logo-tile { padding: 0; border-color: transparent; }
.pof-bank-logo-sm { width: 1.5rem; height: 1.5rem; padding: 2px; border-radius: 4px; font-size: .5rem; }
.pof-bank-logo-sm.pof-bank-logo-tile { padding: 0; }
/* Card networks: the icons are little cards (780 × 500) with their own border. */
.pof-card-network { height: 1.125rem; width: auto; flex: none; }
.pof-card-network-lg { height: 1.5rem; }

/* No shrinking or ellipsis: like Filament's own cells, the column keeps its text's width
   and a narrow table scrolls sideways instead. */
.pof-account { display: flex; align-items: center; gap: .625rem; }
.pof-account-inline { display: inline-flex; gap: .5rem; }
.pof-account-lines { display: grid; gap: .2rem; }
.pof-account-text { font-size: var(--text-sm); color: var(--tinta); white-space: nowrap; }
.pof-account-sub { gap: .375rem; font-size: var(--text-sm); color: var(--desbotado); }
.pof-account-number { font-family: var(--f-display); font-stretch: 87.5%; font-size: .72rem; letter-spacing: .02em; white-space: nowrap; }
.pof-account-link:hover .pof-account-text { text-decoration: underline; text-underline-offset: 3px; }
/* Same padding as Filament's text cells, for our view columns. max-content: the table's
   auto layout undercounts the icons and would squeeze the column below its content. */
.pof-ta-cell { padding: 1rem .75rem; width: max-content; }

/* ---------- category colours (our own markup: CategoryColorPicker) ---------- */
/* Swatches are ink dots; the picked one gets a paper ring and a check mark. */
.pof-color-picker { display: grid; gap: .875rem; }
.pof-color-swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.pof-color-swatch {
  position: relative; flex: none; width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--swatch); border: 0; padding: 0; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--carbono);
  transition: transform .12s ease;
}
.pof-color-swatch:hover { transform: scale(1.08); }
.pof-color-swatch:focus-visible,
.pof-color-swatch-custom:focus-within { outline: 2px solid var(--tinta); outline-offset: 2px; }
.pof-color-swatch[aria-checked="true"],
.pof-color-swatch-custom.is-set { box-shadow: 0 0 0 2px var(--papel), 0 0 0 4px var(--swatch); }
.pof-color-swatch[aria-checked="true"]::after,
.pof-color-swatch-custom.is-set::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: .55rem; height: .9rem;
  border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.pof-color-swatch.is-light::after { border-color: var(--tinta); }
/* Read-only (the view page): only the picked colour stands out. */
.pof-color-swatch:disabled, .pof-color-swatch-custom:has(input:disabled) { cursor: default; transform: none; }
.pof-color-swatch:disabled:not([aria-checked="true"]),
.pof-color-swatch-custom:not(.is-set):has(input:disabled) { opacity: .25; }
/* "Outra cor": a rainbow until a colour of its own is picked; the native input covers it. */
.pof-color-swatch-custom {
  background: conic-gradient(from 90deg, #C8312B, #E3B505, #17734A, #138D90, #2346B8, #6B3FA0, #C2187A, #C8312B);
  overflow: hidden;
}
.pof-color-swatch-custom.is-set { background: var(--swatch); overflow: visible; }
.pof-color-swatch-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.pof-color-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.pof-color-hex { width: 8.5rem; }
.pof-color-hex .fi-input { font-family: var(--f-display); font-stretch: 87.5%; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.pof-color-reset, .pof-color-hint { font-size: var(--text-sm); }
.pof-color-reset { background: none; border: 0; padding: 0; cursor: pointer; }
.pof-color-reset:hover { text-decoration: underline; text-underline-offset: 3px; }
.pof-color-hint { color: var(--desbotado); }
/* The inline category select in a statement's transactions: an ink stripe of its colour. */
.pof-category-select .fi-input-wrp { box-shadow: inset .3rem 0 0 var(--pof-category), 0 0 0 1px var(--carbono); }

/* ---------- Resumo (our own markup: resources/views/filament/pages/resumo*) ---------- */
/* "Fechamento do mês": the month as a receipt. Cards are paper slips on the counter; the
   total is a receipt torn at both ends, stamped against the average. One column on a phone. */
.pof-resumo { display: flex; flex-direction: column; gap: 1.5rem; transition: opacity .15s ease; }
.pof-resumo-is-loading { opacity: .55; pointer-events: none; }
.pof-resumo-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.pof-resumo-top {
  display: grid; gap: 1.5rem; align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23.75rem), 1fr));
}
.pof-resumo-middle { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.pof-resumo-receipt { flex: 2 1 35rem; min-width: 0; }
.pof-resumo-side { flex: 1 1 20rem; min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }

.pof-resumo-card {
  background: var(--papel); padding: 1.375rem 1.5rem;
  box-shadow: 0 1px 0 var(--carbono), 0 8px 20px rgba(40, 33, 20, .08);
}
.pof-resumo-card-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: .5rem 1rem; margin-bottom: .75rem;
}
.pof-resumo-title {
  margin: 0; font-family: var(--f-display); font-weight: 700; font-stretch: 87.5%;
  font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta);
}
.pof-resumo-muted { color: var(--desbotado); font-size: .8125rem; }
.pof-resumo-money {
  font-family: var(--f-display); font-stretch: 87.5%; font-size: .875rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pof-resumo-link { color: var(--magenta); font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.pof-resumo-link:hover { color: #A3125F; }
.pof-resumo-action {
  display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 .875rem;
  background: var(--magenta); color: #fff; text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-stretch: 87.5%;
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
}
.pof-resumo-action:hover { background: #A3125F; }
.pof-resumo-action:focus-visible, .pof-resumo-link:focus-visible,
.pof-resumo-switcher button:focus-visible, .pof-resumo-strip-col:focus-visible,
.pof-resumo-line-name:focus-visible, .pof-resumo-fatura-name:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }

/* header: the month, which faturas came, and the switcher */
.pof-resumo-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.pof-resumo-header-text { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.pof-resumo-coverage { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; color: var(--desbotado); font-size: .875rem; }
.pof-resumo-coverage-marks { display: inline-flex; gap: .25rem; }
.pof-resumo-coverage-gap { width: 1.5rem; height: 1.5rem; border: 1.5px dashed var(--tracejado); border-radius: 4px; }
.pof-resumo-switcher { display: flex; align-items: center; gap: .5rem; }
.pof-resumo-switcher-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid rgba(18, 19, 21, .18); background: var(--papel); color: var(--tinta); cursor: pointer;
}
.pof-resumo-switcher-btn .fi-icon { width: 1.25rem; height: 1.25rem; }
.pof-resumo-switcher-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--canario) 45%, var(--papel)); }
.pof-resumo-switcher-btn:disabled { background: transparent; border-color: rgba(18, 19, 21, .1); color: rgba(18, 19, 21, .3); cursor: default; }
.pof-resumo-switcher-month { display: flex; flex-direction: column; align-items: center; min-width: 7.5rem; padding: .25rem .875rem; }
.pof-resumo-switcher-label { font-family: var(--f-display); font-weight: 700; font-stretch: 87.5%; font-size: .9375rem; text-transform: uppercase; }
.pof-resumo-switcher-note { font-size: .75rem; color: var(--desbotado); }
.pof-resumo-switcher-latest {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: .75rem; color: var(--magenta); text-decoration: underline; text-underline-offset: 2px;
}

/* the total: a receipt torn at both ends (the shadow sits on the wrapper, since a mask
   would cut it off), with a rubber stamp */
.pof-resumo-total { filter: drop-shadow(0 1px 0 var(--carbono)) drop-shadow(0 12px 16px rgba(40, 33, 20, .14)); }
.pof-resumo-total-paper {
  position: relative; height: 100%; box-sizing: border-box; container-type: inline-size;
  background: var(--papel); padding: 2.25rem 2rem 2.125rem;
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--tooth) * 2) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) 51% repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--tooth) * 2) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) 51% repeat-x;
}
.pof-resumo-kicker {
  font-family: var(--f-display); font-weight: 700; font-stretch: 87.5%;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--desbotado);
}
.pof-resumo-total-value {
  font-family: var(--f-dots); font-weight: 900; line-height: 1.05;
  font-size: clamp(2.5rem, 12cqi, 4.25rem); margin: .625rem 0 .375rem; color: var(--tinta);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pof-resumo-total-note { margin: 0 0 1.125rem; font-size: .9375rem; max-width: 34rem; }
.pof-resumo-ink-abaixo { color: var(--verde); }
.pof-resumo-ink-acima { color: var(--magenta); }
.pof-resumo-ink-na { color: var(--azul); }
.pof-resumo-breakdown { display: grid; gap: .5rem; margin: 0; padding-top: .875rem; border-top: 1.5px dashed var(--tracejado); font-size: .875rem; }
.pof-resumo-breakdown > div { display: flex; justify-content: space-between; gap: .75rem; }
.pof-resumo-breakdown dt { color: var(--desbotado); }
.pof-resumo-breakdown dd { margin: 0; font-family: var(--f-display); font-stretch: 87.5%; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Doto draws the period as a five-dot cross; the separator is its middle dot, lowered
   onto the baseline (the grid's pitch is .1em) and with the cell narrowed. */
.pof-resumo-dot { position: relative; top: .3em; margin-inline: -.15em; }
/* The stamp sits beside the total; on a narrow receipt, beside the note under it,
   rather than on a row of its own. */
.pof-resumo-total-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: start;
  grid-template-areas: "kicker stamp" "value stamp" "note note";
}
.pof-resumo-total-head > .pof-resumo-kicker { grid-area: kicker; }
.pof-resumo-total-head > .pof-resumo-total-value { grid-area: value; }
.pof-resumo-total-head > .pof-resumo-total-note { grid-area: note; }
@container (max-width: 30rem) {
  .pof-resumo-total-head { grid-template-areas: "kicker kicker" "value value" "note stamp"; }
  .pof-resumo-total-head > .pof-resumo-stamp { margin: 0 .25rem 1.125rem .5rem; font-size: .6875rem; }
}
.pof-resumo-stamp {
  grid-area: stamp; align-self: center; justify-self: end;
  margin: .25rem .25rem .75rem; transform: rotate(-9deg);
  border: 3px solid currentColor; outline: 1.5px solid currentColor; outline-offset: 3px;
  padding: .375rem .625rem; opacity: .88; line-height: 1.2; text-align: center;
  font-family: var(--f-display); font-weight: 800; font-stretch: 87.5%;
  font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
}
.pof-resumo-stamp-abaixo { color: var(--verde); }
.pof-resumo-stamp-acima { color: var(--magenta); }
.pof-resumo-stamp-na { color: var(--azul); }
.pof-resumo-stamp-parcial { color: var(--desbotado); }
/* read out, not shown (the total reads "R$ 28.398", not its dot glyph) */
.pof-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* what changed */
.pof-resumo-insights { display: flex; flex-direction: column; }
.pof-resumo-insights .pof-resumo-title { margin-bottom: .5rem; }
.pof-resumo-insight {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .75rem;
  padding: .75rem 0; border-top: 1px dashed rgba(18, 19, 21, .18); font-size: .9375rem;
}
.pof-resumo-badge {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem;
  font-family: var(--f-display); font-weight: 800; font-size: .875rem;
}
.pof-resumo-badge-rosa { background: var(--rosa); color: #A3125F; }
.pof-resumo-badge-menta { background: var(--menta); color: var(--verde); }
.pof-resumo-badge-ceu { background: var(--ceu); color: #1B3A99; }
.pof-resumo-badge-canario { background: var(--canario); color: var(--tinta); }
.pof-resumo-badge-balcao { background: var(--balcao); color: var(--desbotado); }

/* receipt by category: name, dotted leader, amount, change; a thin share bar under it */
.pof-resumo-lines { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.pof-resumo-line { padding: .625rem 0 .5rem; border-bottom: 1px solid rgba(18, 19, 21, .06); }
.pof-resumo-line-row { display: flex; align-items: baseline; gap: .625rem; }
.pof-resumo-dot { flex: none; width: .625rem; height: .625rem; border-radius: 999px; background: var(--pof-cat); transform: translateY(1px); }
.pof-resumo-line-name { font-weight: 600; color: var(--tinta); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
a.pof-resumo-line-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.pof-resumo-leader { flex: 1 1 auto; min-width: 1rem; border-bottom: 2px dotted rgba(18, 19, 21, .28); transform: translateY(-4px); }
.pof-resumo-delta {
  min-width: 4rem; text-align: right; white-space: nowrap;
  font-family: var(--f-display); font-stretch: 87.5%; font-size: .75rem; font-weight: 700;
}
.pof-resumo-delta-acima { color: var(--magenta); }
.pof-resumo-delta-abaixo { color: var(--verde); }
.pof-resumo-delta-na { color: var(--desbotado); }
.pof-resumo-delta-novo { color: var(--azul); text-transform: uppercase; letter-spacing: .04em; }
.pof-resumo-delta-none { min-width: 0; }
.pof-resumo-share { height: 4px; margin: .375rem 0 0 1.25rem; background: rgba(18, 19, 21, .05); }
.pof-resumo-share > span { display: block; height: 100%; width: var(--pof-share); background: var(--pof-cat); }
/* "Sem categoria" is a to-do on hatched paper, not a category */
.pof-resumo-todo {
  display: flex; flex-wrap: wrap; align-items: center; gap: .625rem .875rem;
  margin-top: .625rem; padding: .75rem .875rem;
  background: repeating-linear-gradient(-45deg, rgba(18, 19, 21, .05) 0 6px, transparent 6px 12px);
  border: 1.5px dashed rgba(18, 19, 21, .3);
}
.pof-resumo-todo-name { font-weight: 600; }
.pof-resumo-todo-gap { flex: 1 1 auto; }
.pof-resumo-done { margin-top: .75rem; color: var(--verde); font-size: .875rem; font-weight: 600; }
.pof-resumo-receipt-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: .875rem; padding-top: .75rem; border-top: 3px double var(--tinta);
  font-family: var(--f-display); font-weight: 800; font-stretch: 87.5%; font-variant-numeric: tabular-nums;
}
.pof-resumo-receipt-total > span:first-child { font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; }
.pof-resumo-receipt-total > span:last-child { font-size: 1rem; }

/* the month's faturas */
.pof-resumo-faturas .pof-resumo-title { margin-bottom: .375rem; }
.pof-resumo-fatura-list { margin: 0; padding: 0; list-style: none; }
.pof-resumo-fatura {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .75rem; align-items: baseline;
  padding: .625rem 0; border-top: 1px dashed rgba(18, 19, 21, .18);
}
.pof-resumo-fatura-marks { grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; gap: .375rem; }
.pof-resumo-fatura-name { grid-column: 2; min-width: 0; font-weight: 600; color: var(--tinta); text-decoration: none; }
.pof-resumo-fatura-amount { grid-column: 3; grid-row: 1; justify-self: end; }
.pof-resumo-fatura-due { grid-column: 2; grid-row: 2; }
.pof-resumo-fatura-state { grid-column: 3; grid-row: 2; justify-self: end; text-align: right; white-space: nowrap; }
/* A sentence ("faltam R$ 38,40 nas transações") takes a row of its own, under the name. */
.pof-resumo-fatura-state-short, .pof-resumo-fatura-state-over, .pof-resumo-fatura-state-error, .pof-resumo-fatura-state-unknown {
  grid-column: 2 / -1; grid-row: 3; justify-self: start; text-align: left; white-space: normal; margin-top: .125rem;
}
a.pof-resumo-fatura-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.pof-resumo-fatura-state { font-size: .75rem; font-weight: 600; color: var(--desbotado); }
.pof-resumo-fatura-state-matches { color: var(--verde); }
.pof-resumo-fatura-state-short, .pof-resumo-fatura-state-over, .pof-resumo-fatura-state-error { color: #A3125F; }
.pof-resumo-fatura.is-missing .pof-resumo-fatura-marks { opacity: .45; }
.pof-resumo-fatura.is-missing .pof-resumo-fatura-name { color: var(--desbotado); }

/* installments already committed, month by month */
.pof-resumo-committed .pof-resumo-title { margin-bottom: .375rem; }
.pof-resumo-committed > p { margin-bottom: .875rem; font-size: .9375rem; }
.pof-resumo-committed > p.pof-resumo-muted { margin: .5rem 0 0; font-size: .8125rem; }
.pof-resumo-committed-bars { display: flex; align-items: flex-end; gap: .5rem; height: 5.25rem; margin: 0; padding: 0; list-style: none; }
.pof-resumo-committed-month { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .25rem; height: 100%; }
.pof-resumo-committed-bar { width: 100%; height: var(--pof-h); background: rgba(194, 24, 122, .35); }
.pof-resumo-committed-month.is-next .pof-resumo-committed-bar { background: var(--magenta); }
.pof-resumo-committed-label { font-size: .6875rem; color: var(--desbotado); }
.pof-resumo-committed .pof-resumo-link { display: inline-block; margin-top: .75rem; }

/* month by month: twelve bars, hatched where there's no fatura, with the average as a line */
.pof-resumo-strip { padding-bottom: 1.25rem; }
/* Too narrow for twelve bars, it scrolls; row-reverse makes it open at the end, on this month. */
.pof-resumo-strip-scroll { display: flex; flex-direction: row-reverse; overflow-x: auto; }
.pof-resumo-strip-chart { position: relative; flex: 1 0 42rem; min-width: 42rem; --pof-label: 1.375rem; }
.pof-resumo-strip-months {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .5rem; align-items: end;
  height: calc(var(--pof-bar-max) + 3.25rem); margin: 0; padding: 0; list-style: none;
}
.pof-resumo-strip-month { height: 100%; min-width: 0; }
.pof-resumo-strip-col {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: .375rem;
  width: 100%; height: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: center;
}
button.pof-resumo-strip-col { cursor: pointer; }
button.pof-resumo-strip-col:hover .pof-resumo-strip-bar { background: rgba(18, 19, 21, .38); }
button.pof-resumo-strip-col:hover .pof-resumo-strip-label { color: var(--tinta); }
.pof-resumo-strip-value { font-size: .6875rem; white-space: nowrap; color: var(--tinta); }
.pof-resumo-strip-bar { height: var(--pof-h); background: rgba(18, 19, 21, .22); }
.pof-resumo-strip-label {
  height: 1rem; line-height: 1rem; font-size: .6875rem; color: var(--desbotado);
  font-family: var(--f-display); font-stretch: 87.5%; text-transform: uppercase;
}
.pof-resumo-strip-month.is-current .pof-resumo-strip-value { font-weight: 700; }
.pof-resumo-strip-month.is-current .pof-resumo-strip-bar { background: var(--magenta); }
.pof-resumo-strip-month.is-current .pof-resumo-strip-label { color: var(--magenta); font-weight: 800; }
.pof-resumo-strip-month.is-partial .pof-resumo-strip-bar { box-shadow: inset 0 2px 0 var(--papel), inset 0 4px 0 rgba(18, 19, 21, .3); }
.pof-resumo-strip-month.is-empty .pof-resumo-strip-value { color: rgba(18, 19, 21, .45); white-space: normal; line-height: 1.1; }
.pof-resumo-strip-month.is-empty .pof-resumo-strip-bar {
  height: 1rem; border: 1.5px dashed rgba(18, 19, 21, .3);
  background: repeating-linear-gradient(-45deg, rgba(18, 19, 21, .06) 0 4px, transparent 4px 8px);
}
.pof-resumo-strip-average {
  position: absolute; inset-inline: 0; z-index: 1; pointer-events: none;
  bottom: calc(var(--pof-label) + var(--pof-avg));
  border-top: 1.5px dashed rgba(18, 19, 21, .45);
}
.pof-resumo-strip-legend { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; font-size: .8125rem; color: var(--desbotado); }
.pof-resumo-strip-legend-line { flex: none; width: 1.5rem; border-top: 1.5px dashed rgba(18, 19, 21, .45); }

/* nothing to show yet */
.pof-resumo-empty { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding-block: 1.75rem; }
.pof-resumo-empty p { max-width: 36rem; }

@media (max-width: 40rem) {
  .pof-resumo-card { padding: 1.125rem 1rem; }
  .pof-resumo-line-row { gap: .5rem; }
  .pof-resumo-delta { min-width: 3.25rem; }
  .pof-resumo-total-paper { padding: 2rem 1.25rem 1.875rem; }
  .pof-resumo-switcher { width: 100%; justify-content: space-between; }
}

/* ---------- Resumo: "Enviar novos arquivos" and the files being read ---------- */
.pof-resumo-header-side { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
button.pof-resumo-action { border: 0; cursor: pointer; gap: .5rem; }
.pof-resumo-upload { min-height: 2.75rem; }
.pof-resumo-upload-icon { width: 1.125rem; height: 1.125rem; }
.pof-resumo-link-button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: inherit; }
.pof-resumo-imports {
  display: grid; gap: .625rem; padding: .875rem 1.25rem;
  background: var(--papel); border-left: 4px solid var(--azul);
  box-shadow: 0 1px 0 var(--carbono), 0 8px 20px rgba(40, 33, 20, .08);
}
.pof-resumo-imports-line { display: flex; align-items: center; gap: .75rem; margin: 0; font-size: .9375rem; }
.pof-resumo-imports-line .pof-resumo-badge { flex: none; width: 1.75rem; height: 1.75rem; }
/* "Lendo": a receipt printer's dots, one after the other. */
.pof-resumo-imports-reading {
  flex: none; width: 1.75rem; height: .5rem;
  background: radial-gradient(circle closest-side, var(--azul) 85%, transparent) 0 50% / .625rem .5rem repeat-x;
  animation: pof-reading 1.2s ease-in-out infinite;
}
@keyframes pof-reading { 50% { opacity: .3; } }

/* ---------- Bancos e Cartões (our own markup: resources/views/filament/accounts/) ---------- */
/* Each card or account is a receipt slip torn at the bottom; the list is one column on a
   phone and as many as fit beside each other on wider screens. */
.pof-accounts { display: flex; flex-direction: column; gap: 2rem; }
.pof-accounts-section { display: flex; flex-direction: column; gap: .875rem; }
.pof-accounts-section-head { display: flex; flex-direction: column; gap: .25rem; }
.pof-accounts-section-head .pof-resumo-muted { margin: 0; max-width: 44rem; }
.pof-accounts-count {
  display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; margin-left: .375rem; padding: 0 .375rem;
  background: var(--tinta); color: var(--papel); border-radius: 999px; font-size: .6875rem; letter-spacing: 0;
}
.pof-accounts-list {
  display: grid; gap: 1.25rem 1rem; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
}
.pof-account-card {
  position: relative; display: flex; flex-direction: column; gap: .875rem;
  margin-bottom: var(--tooth); padding: 1.25rem 1.25rem 1.125rem;
  background: var(--papel); box-shadow: 0 1px 0 var(--carbono), 0 10px 18px -14px var(--sombra);
}
.pof-account-card::after {
  content: ""; position: absolute; inset-inline: 0; top: 100%; height: var(--tooth);
  background: var(--papel); -webkit-mask: var(--zz-down); mask: var(--zz-down); pointer-events: none;
}
.pof-account-card-head { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.pof-account-card-marks { display: inline-flex; align-items: center; gap: .375rem; flex: none; }
.pof-account-card-name { display: grid; gap: .125rem; min-width: 0; }
.pof-account-card-title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.pof-account-card-title a { color: var(--tinta); text-decoration: none; }
.pof-account-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pof-account-card-title a:focus-visible, .pof-account-card-cta:focus-visible, .pof-chip-action:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }
.pof-account-card-sub { font-size: .8125rem; color: var(--desbotado); }
.pof-account-card-muted { color: var(--desbotado); font-size: .8125rem; }
/* The facts as receipt lines: label on the left, value on the right. */
.pof-account-card-facts { display: grid; gap: .375rem; margin: 0; padding-top: .75rem; border-top: 1.5px dashed var(--tracejado); font-size: .875rem; }
.pof-account-card-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.pof-account-card-facts dt { color: var(--desbotado); flex: none; }
.pof-account-card-facts dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.pof-account-card-money, .pof-account-card-facts dd {
  font-variant-numeric: tabular-nums;
}
.pof-account-card-money { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 700; white-space: nowrap; }
/* The latest fatura: a stub of its own, on hatched counter paper. */
.pof-account-card-latest {
  display: grid; gap: .25rem; margin: 0; padding: .625rem .75rem;
  background: color-mix(in srgb, var(--balcao) 70%, var(--papel)); font-size: .875rem;
}
.pof-account-card-kicker {
  font-family: var(--f-display); font-weight: 700; font-stretch: 87.5%;
  font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--desbotado);
}
.pof-account-card-latest-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.pof-account-card-latest-name { font-weight: 600; min-width: 0; }
.pof-account-card-latest .pof-resumo-leader { min-width: .75rem; }
.pof-account-card-state { font-weight: 600; font-size: .75rem; text-align: right; }
.pof-account-card-state-matches { color: var(--verde); }
.pof-account-card-state-short, .pof-account-card-state-over { color: #A3125F; }
.pof-account-card-notes { display: flex; flex-wrap: wrap; gap: .375rem; margin: 0; padding: 0; list-style: none; }
.pof-chip {
  display: inline-flex; align-items: center; gap: .375rem; padding: .25rem .5rem;
  font-size: .75rem; font-weight: 600; line-height: 1.3; color: var(--tinta);
}
.pof-chip-ceu { background: var(--ceu); color: #1B3A99; }
.pof-chip-rosa { background: var(--rosa); color: #A3125F; }
.pof-chip-canario { background: var(--canario); }
.pof-chip-tracejado { border: 1.5px dashed var(--tracejado); color: var(--desbotado); }
.pof-chip-action { background: none; border: 0; padding: 0; font: inherit; color: var(--magenta); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pof-account-card-cta {
  align-self: flex-end; margin-top: auto; display: inline-flex; align-items: center; gap: .375rem; min-height: 2.25rem;
  color: var(--magenta); text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-stretch: 87.5%;
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
}
.pof-account-card-cta:hover { color: #A3125F; text-decoration: underline; text-underline-offset: 3px; }

/* The way back to the card or the list (a file's subheading; the account's page on a phone). */
.pof-back-link { color: var(--desbotado); text-decoration: none; }
.pof-back-link:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }
.pof-back-link:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }
.pof-back-link-phone { align-self: flex-start; margin-bottom: -1rem; font-size: .875rem; }
@media (min-width: 40rem) { .pof-back-link-phone { display: none; } }

/* An account's page: its summary, then its files. */
.pof-account-summary { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem 1.5rem; }
.pof-account-summary-marks { display: inline-flex; align-items: center; gap: .5rem; }
.pof-account-summary-marks .pof-bank-logo { width: 2.75rem; height: 2.75rem; }
.pof-account-summary-facts {
  flex: 1 1 24rem; display: grid; gap: .75rem 1.5rem; margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}
.pof-account-summary-facts dt {
  font-family: var(--f-display); font-weight: 700; font-stretch: 87.5%;
  font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--desbotado);
}
.pof-account-summary-facts dd { margin: .125rem 0 0; font-size: .9375rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pof-account-summary .pof-account-card-notes { flex-basis: 100%; }

/* ---------- a file in a list (our own markup: resources/views/filament/statements/row) ---------- */
/* A stub with its month, the file's name and details, and where it stands on the right.
   On a phone, the amount and state go under the name. */
.pof-file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .25rem .875rem; width: 100%; }
.pof-file-tile {
  grid-row: 1 / span 2; display: grid; place-items: center; align-content: center; gap: .0625rem;
  width: 3.25rem; height: 3.25rem; flex: none;
  border: 1.5px solid var(--tinta); background: var(--papel); color: var(--tinta);
  font-family: var(--f-display); font-stretch: 87.5%; text-transform: uppercase; line-height: 1;
}
.pof-file-tile-month { font-weight: 800; font-size: .8125rem; letter-spacing: .04em; }
.pof-file-tile-year { font-size: .625rem; color: var(--desbotado); }
.pof-file-tile-ext { border-style: dashed; border-color: var(--tracejado); color: var(--desbotado); font-weight: 700; font-size: .6875rem; letter-spacing: .06em; }
.pof-file-is-problema .pof-file-tile { background: var(--rosa); border-color: #A3125F; color: #A3125F; }
.pof-file-is-lendo .pof-file-tile { background: var(--ceu); border-color: var(--azul); color: #1B3A99; }
.pof-file-is-aguardando .pof-file-tile { background: var(--canario); }
.pof-file-main { display: grid; gap: .125rem; min-width: 0; }
.pof-file-name { font-weight: 600; color: var(--tinta); overflow-wrap: anywhere; }
.pof-file-details { font-size: .8125rem; color: var(--desbotado); overflow-wrap: anywhere; }
.pof-file-message { font-size: .8125rem; color: #A3125F; }
.pof-file-is-repetido .pof-file-message, .pof-file-is-aguardando .pof-file-message { color: var(--desbotado); }
.pof-file-side { display: grid; justify-items: end; gap: .125rem; text-align: right; }
.pof-file-amount { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pof-file-state { font-size: .75rem; font-weight: 600; white-space: nowrap; color: var(--desbotado); }
.pof-file-state-confere { color: var(--verde); }
.pof-file-state-diferenca, .pof-file-state-problema { color: #A3125F; }
.pof-file-state-lendo { color: var(--azul); }
.pof-file-state-aguardando { color: var(--tinta); }
@media (max-width: 40rem) {
  .pof-file { grid-template-columns: auto minmax(0, 1fr); }
  .pof-file-side { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: .625rem; }
  .pof-account-card { padding: 1.125rem 1rem 1rem; }
  .pof-resumo-header-side { width: 100%; }
  .pof-resumo-upload { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pof-resumo-imports-reading { animation: none; }
}

/* ---------- Compartilhar and the invite page (pof-sharing-*) ---------- */
.pof-sharing-text { max-width: 42rem; font-size: .9375rem; line-height: 1.5; }
.pof-sharing-text + .pof-sharing-text, .pof-sharing-text + .pof-sharing-actions { margin-top: .75rem; }
.pof-sharing-warning { padding: .75rem 1rem; background-color: var(--canario); border-left: 4px solid var(--tinta); }
.pof-sharing-actions { margin-top: 1rem; }
.pof-sharing-link { color: var(--magenta); text-decoration: underline; text-underline-offset: 3px; }
.pof-sharing-link:hover { color: #A3125F; }
.pof-sharing-list { list-style: none; margin: 0; padding: 0; }
.pof-sharing-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding-block: .75rem;
}
.pof-sharing-row + .pof-sharing-row { border-top: 1.5px dashed var(--tracejado); }
.pof-sharing-who { display: flex; flex-direction: column; flex: 1 1 14rem; min-width: 0; }
.pof-sharing-name { font-weight: 600; overflow-wrap: anywhere; }
.pof-sharing-detail { color: var(--desbotado); font-size: .875rem; overflow-wrap: anywhere; }
.pof-sharing-row-actions { margin-inline-start: auto; }
.pof-sharing-copy { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pof-sharing-copy-field { flex: 1 1 20rem; min-width: 0; }
.pof-sharing-copy-field input { font-family: var(--f-display); font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) {
  .fi-btn, .fi-sidebar-item-btn, .pof-color-swatch, .pof-resumo { transition: none; }
}

/* ---------- footer (our own markup: resources/views/filament/footer.blade.php) ---------- */
/* The legal documents and the cookie preferences, small and faded, under every page. */
.pof-footer { padding: 2rem 1rem 1.5rem; }
.pof-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .375rem 1.25rem;
  font-family: var(--f-display); font-stretch: 87.5%; font-size: .68rem;
  letter-spacing: .06em; text-transform: uppercase;
}
.pof-footer-links a { color: var(--desbotado); text-decoration: none; }
.pof-footer-links a:hover { color: var(--tinta); text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px; }

/* ---------- "Você está vendo como" (our own markup: resources/views/filament/impersonation-banner.blade.php) ---------- */
/* While an admin sees the plataforma as someone: a strip of ink above the topbar, hard to miss. */
.pof-impersonation {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem;
  padding: .5rem 1rem; background: var(--tinta); color: var(--papel);
  font-size: .875rem; line-height: 1.35; text-align: center;
}
.pof-impersonation-text { margin: 0; overflow-wrap: anywhere; }
.pof-impersonation-text strong { font-weight: 700; }
.pof-impersonation-note { color: rgba(252, 253, 253, .72); }
.pof-impersonation-form { margin: 0; }
.pof-impersonation-button {
  font-family: var(--f-display); font-weight: 700; font-stretch: 87.5%; font-size: .72rem;
  letter-spacing: .05em; text-transform: uppercase;
  padding: .35rem .75rem; border: 1.5px solid var(--canario); border-radius: var(--radius-sm);
  background: transparent; color: var(--canario); cursor: pointer;
}
.pof-impersonation-button:hover,
.pof-impersonation-button:focus-visible { background: var(--canario); color: var(--tinta); }
