/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.2.15_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.15_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

*, ::before, ::after{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.14 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: Geist, system-ui, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: Geist Mono, ui-monospace, monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.fixed{
  position: fixed;
}
.absolute{
  position: absolute;
}
.relative{
  position: relative;
}
.block{
  display: block;
}
.inline-block{
  display: inline-block;
}
.inline{
  display: inline;
}
.flex{
  display: flex;
}
.inline-flex{
  display: inline-flex;
}
.table{
  display: table;
}
.grid{
  display: grid;
}
.hidden{
  display: none;
}
.transform{
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.resize{
  resize: both;
}
.break-all{
  word-break: break-all;
}
.border{
  border-width: 1px;
}
.uppercase{
  text-transform: uppercase;
}
.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);
}
.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{
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.ease-out{
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

/* ============================================================
   Praça design tokens — design system Jobway
   Cores em OKLCH pra controle perceptual de luminosidade
   ============================================================ */

:root {
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Surfaces — warm neutral */
  --bg: #FAFAF8;
  --bg-sunk: #F4F3F0;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;

  /* Borders */
  --border-subtle: oklch(94% 0.003 80);
  --border: oklch(89% 0.005 80);
  --border-strong: oklch(82% 0.008 80);

  /* Text */
  --text: oklch(20% 0.01 80);
  --text-muted: oklch(46% 0.008 80);
  --text-faint: oklch(64% 0.008 80);
  --text-on-accent: #ffffff;

  /* Accent — indigo */
  --accent: oklch(48% 0.16 265);
  --accent-hover: oklch(42% 0.17 265);
  --accent-bg: oklch(96% 0.025 265);
  --accent-border: oklch(85% 0.06 265);

  /* Status */
  --paid: oklch(50% 0.13 155);
  --paid-bg: oklch(96% 0.035 155);
  --paid-border: oklch(86% 0.06 155);

  --pending: oklch(58% 0.13 75);
  --pending-bg: oklch(96% 0.04 75);
  --pending-border: oklch(86% 0.07 75);

  --overdue: oklch(54% 0.18 25);
  --overdue-bg: oklch(96% 0.03 25);
  --overdue-border: oklch(86% 0.05 25);

  --info: oklch(52% 0.12 220);
  --info-bg: oklch(96% 0.03 220);
  --info-border: oklch(86% 0.05 220);

  --neutral-bg: oklch(95% 0.003 80);
  --neutral-border: oklch(88% 0.005 80);

  /* Bank indicators */
  --sicoob: oklch(50% 0.14 155);
  --sicredi: oklch(58% 0.18 35);
  --mock: oklch(64% 0.008 80);
  --whatsapp: oklch(60% 0.14 155);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 18, 14, 0.04);
  --shadow: 0 1px 2px rgba(20, 18, 14, 0.04), 0 2px 6px rgba(20, 18, 14, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 18, 14, 0.06), 0 1px 2px rgba(20, 18, 14, 0.04);

  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  height: 100%;
  overflow: hidden;
}

/* Safety net: SVGs inline nunca estouram seus containers.
   Aplica só onde não tem container com tamanho explícito. */
svg {
  flex-shrink: 0;
}

/* ============ App shell ============ */
.app-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
}

/* ============ Sidebar ============ */
.sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.tenant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 14px 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}
.tenant-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, oklch(35% 0.15 280), oklch(50% 0.18 320));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
  flex-shrink: 0;
}
.tenant-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.tenant-sub {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 1px;
}
.nav-section {
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 1px;
}
.nav-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding: 0 10px;
  margin-bottom: 6px;
  font-weight: 500;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s;
  text-decoration: none;
}
.nav-item svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}
.nav-item:hover { background: var(--neutral-bg); color: var(--text); }
.nav-item.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}
.nav-item.active svg { opacity: 1; color: var(--accent); }
.nav-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.user-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; border-radius: var(--radius-sm);
}
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: oklch(75% 0.05 60);
  color: oklch(30% 0.05 60);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  flex-shrink: 0;
}
.user-name { font-size: 12.5px; font-weight: 500; line-height: 1.1; }
.user-role { font-size: 11px; color: var(--text-faint); margin-top: 1px; }

/* ============ Main content ============ */
.main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0; /* grid child precisa disso pra respeitar a coluna 1fr e não estourar horizontalmente */
  background: var(--bg);
  overflow: hidden;
}
.topbar {
  height: 56px;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.topbar-crumb {
  color: var(--text-faint);
  font-size: 13px;
}
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.content {
  flex: 1;
  min-height: 0;
  padding: 24px 28px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.1s;
  white-space: nowrap;
  letter-spacing: -0.005em;
  text-decoration: none;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary {
  background: var(--text);
  color: white;
  border-color: var(--text);
}
.btn-primary:hover:not(:disabled) { background: oklch(15% 0.01 80); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) { background: var(--neutral-bg); color: var(--text); }
.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger {
  background: var(--surface);
  color: var(--overdue);
  border-color: var(--overdue-border);
}
.btn-danger:hover:not(:disabled) { background: var(--overdue-bg); }
.btn-icon {
  width: 32px; padding: 0;
  justify-content: center;
}
.btn-sm { height: 26px; padding: 0 8px; font-size: 12px; }
.btn-sm svg { width: 12px; height: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ Inputs ============ */
.input {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  width: 100%;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.input::-moz-placeholder { color: var(--text-faint); }
.input::placeholder { color: var(--text-faint); }
textarea.input { height: auto; padding: 8px 10px; min-height: 60px; resize: vertical; }
select.input { padding-right: 28px; -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 8px center; }

.label-text {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.search {
  position: relative;
  width: 260px;
}
.search svg {
  position: absolute;
  left: 9px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--text-faint);
  pointer-events: none;
}
.search input { padding-left: 30px; }

/* ============ Badges ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.003em;
  white-space: nowrap;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.badge-paid    { background: var(--paid-bg);    color: var(--paid);    border-color: var(--paid-border); }
.badge-pending { background: var(--pending-bg); color: var(--pending); border-color: var(--pending-border); }
.badge-overdue { background: var(--overdue-bg); color: var(--overdue); border-color: var(--overdue-border); }
.badge-info    { background: var(--info-bg);    color: var(--info);    border-color: var(--info-border); }
.badge-neutral { background: var(--neutral-bg); color: var(--text-muted); border-color: var(--neutral-border); }

.badge-paid .badge-dot    { background: var(--paid); }
.badge-pending .badge-dot { background: var(--pending); }
.badge-overdue .badge-dot { background: var(--overdue); }
.badge-info .badge-dot    { background: var(--info); }
.badge-neutral .badge-dot { background: var(--text-faint); }

.bank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}
.bank-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.bank.sicoob .bank-dot  { background: var(--sicoob); }
.bank.sicredi .bank-dot { background: var(--sicredi); }
.bank.mock .bank-dot { background: var(--mock); }

/* ============ Cards ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center;
}
.card-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.008em;
}
.card-sub { font-size: 12px; color: var(--text-faint); margin-top: 1px; }
.card-body { padding: 16px 18px; }
.card-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }

/* ============ KPI ============ */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.kpi-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex; align-items: center; gap: 5px;
}
.kpi-label svg { width: 12px; height: 12px; opacity: 0.6; }
.kpi-value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.kpi-value .currency { color: var(--text-faint); font-size: 14px; font-weight: 500; margin-right: 2px; }
.kpi-value .cents { font-size: 18px; color: var(--text-faint); }
.kpi-delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 500;
  margin-top: 8px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.kpi-delta.up { color: var(--paid); }
.kpi-delta.down { color: var(--overdue); }
.kpi-delta svg { width: 12px; height: 12px; }
.kpi-spark { margin-top: 10px; height: 28px; }

/* ============ Table ============ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-2);
}
.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--surface-2); }
.td-num { font-variant-numeric: tabular-nums; }
.td-mono { font-family: var(--font-mono); font-size: 12.5px; }
.td-muted { color: var(--text-muted); }
.td-amount { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.row-action {
  opacity: 0;
  transition: opacity 0.1s;
}
.table tr:hover .row-action { opacity: 1; }

/* ============ Filter chips ============ */
.filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  background: var(--bg);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.chip svg { width: 12px; height: 12px; opacity: 0.6; }
.chip.active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}
.chip-count {
  margin-left: 2px;
  font-size: 11px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.chip.active .chip-count { color: rgba(255,255,255,0.65); }

/* ============ Tabs ============ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 28px;
  background: var(--bg);
}
.tab {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
}
.tab.active { color: var(--text); border-bottom-color: var(--text); }

/* ============ Timeline ============ */
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}
.tl-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 24px;
  bottom: -4px;
  width: 1.5px;
  background: var(--border);
}
.tl-step:last-child::before { display: none; }
.tl-step.done::before { background: var(--paid); }
.tl-marker {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.tl-marker svg { width: 12px; height: 12px; color: var(--text-faint); }
.tl-step.done .tl-marker {
  background: var(--paid);
  border-color: var(--paid);
}
.tl-step.done .tl-marker svg { color: white; }
.tl-step.current .tl-marker {
  background: var(--accent-bg);
  border-color: var(--accent);
}
.tl-step.current .tl-marker svg { color: var(--accent); }
.tl-content { padding-top: 4px; }
.tl-title { font-size: 13px; font-weight: 500; }
.tl-meta { font-size: 12px; color: var(--text-faint); margin-top: 2px; font-variant-numeric: tabular-nums; }
.tl-detail {
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  word-break: break-all;
}

/* ============ Pill switch ============ */
.pill-switch {
  display: inline-flex;
  background: var(--neutral-bg);
  border-radius: 8px;
  padding: 2px;
  border: 1px solid var(--border-subtle);
}
.pill-switch button {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.pill-switch button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ============ Definition list ============ */
.dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  row-gap: 8px;
  -moz-column-gap: 14px;
       column-gap: 14px;
  font-size: 13px;
}
.dl dt { color: var(--text-faint); }
.dl dd { color: var(--text); margin: 0; font-variant-numeric: tabular-nums; }

/* ============ Detail header ============ */
.detail-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}
.detail-amount {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.detail-amount .currency { color: var(--text-faint); font-size: 18px; font-weight: 500; margin-right: 3px; }
.detail-meta { color: var(--text-muted); font-size: 13px; margin-top: 6px; }

/* ============ Misc helpers ============ */
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 4px; }
.spacer { flex: 1; }
.text-mono { font-family: var(--font-mono); font-size: 12.5px; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-num { font-variant-numeric: tabular-nums; }
.h-divider { height: 1px; background: var(--border-subtle); margin: 14px 0; }

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--border);
  border-bottom-width: 1.5px;
  border-radius: 4px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

/* ============ WhatsApp preview ============ */
.wa-frame {
  background: oklch(95% 0.01 155);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  border: 1px solid var(--border-subtle);
}
.wa-bubble {
  background: oklch(96% 0.04 145);
  border: 1px solid oklch(88% 0.05 145);
  border-radius: 10px;
  border-top-right-radius: 2px;
  padding: 10px 12px;
  max-width: 280px;
  margin-left: auto;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
  white-space: pre-wrap;
}
.wa-time {
  display: block;
  text-align: right;
  font-size: 10.5px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ============ Empty/placeholder ============ */
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

/* ============ Animações ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50% { box-shadow: 0 0 0 6px transparent; opacity: 0.5; }
}
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.anim-fade-up    { animation: fadeInUp 0.4s ease-out both; }
.anim-fade-in    { animation: fadeIn 0.3s ease-out both; }
.anim-scale-in   { animation: scaleIn 0.3s ease-out both; }
.anim-delay-1    { animation-delay: 0.08s; }
.anim-delay-2    { animation-delay: 0.16s; }
.anim-delay-3    { animation-delay: 0.24s; }
.pulse-dot { animation: pulseDot 2s infinite; }

/* Onboarding stepper */
.onb-wrap {
  max-width: 720px;
  margin-inline: auto;
  padding-top: 8px;
}
.onb-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 24px 0 32px;
  position: relative;
}
.onb-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 8px;
  z-index: 1;
}
.onb-step::before {
  content: '';
  position: absolute;
  top: 23px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: -1;
}
.onb-step:first-child::before { display: none; }
.onb-step.done::before { background: var(--paid); }
.onb-step-marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.onb-step-marker svg { width: 20px; height: 20px; }
.onb-step.done .onb-step-marker {
  background: var(--paid);
  border-color: var(--paid);
  color: white;
  box-shadow: 0 4px 12px oklch(50% 0.13 155 / 0.25);
}
.onb-step.current .onb-step-marker {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-bg), 0 8px 24px oklch(48% 0.16 265 / 0.18);
  transform: scale(1.05);
  animation: scaleIn 0.4s ease-out both;
}
.onb-step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
  text-align: center;
  max-width: 130px;
  letter-spacing: -0.005em;
}
.onb-step.done .onb-step-label   { color: var(--paid); }
.onb-step.current .onb-step-label { color: var(--text); font-weight: 600; }

/* Onboarding hero card */
.onb-hero {
  background: linear-gradient(135deg, var(--accent-bg) 0%, var(--surface-2) 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  position: relative;
  overflow: hidden;
}
.onb-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, oklch(48% 0.16 265 / 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.onb-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--accent-border);
  box-shadow: 0 8px 24px oklch(48% 0.16 265 / 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
}
.onb-hero-icon svg { width: 26px; height: 26px; }
.onb-hero h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 6px;
}
.onb-hero p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.55;
  max-width: 480px;
}

/* Mini status row no hero */
.onb-mini {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.onb-mini-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
}
.onb-mini-item svg { width: 12px; height: 12px; }
.onb-mini-item.done { color: var(--paid); border-color: var(--paid-border); background: var(--paid-bg); }
.onb-mini-item.pending { color: var(--pending); border-color: var(--pending-border); background: var(--pending-bg); }


