/*
 * Shared Design Tokens - Centralized CSS Custom Properties
 *
 * Brand-level and shared design tokens used by both frontend and backoffice.
 * App-specific tokens should be defined in each app's own token file.
 *
 * Usage: var(--variable-name)
 */

:root {
  /* ============================
   * PRIMARY BRAND COLORS
   * ============================ */

  /* Gold - Primary brand color, used for positive actions and branding */
  --brand-gold: rgb(190, 158, 85);
  --brand-gold-rgb: 190, 158, 85;

  /* Gold light variants - for backgrounds and subtle highlights */
  --brand-gold-light: rgba(var(--brand-gold-rgb), 0.08);
  --brand-gold-lighter: rgba(var(--brand-gold-rgb), 0.12);

  /* Brown - Secondary brand color, used for text, accents, and branding */
  --brand-brown: rgb(91, 72, 56);

  /* ============================
   * FLOW BUTTON COLORS
   * ============================
   * Used for filled buttons that control user flow through the application.
   * These are the main action buttons in forms and dialogs.
   */

  /* Primary/Move Forward - Used for Continuar, Confirmar, Submit */
  --flow-button-primary: rgb(190, 158, 85);
  --flow-button-primary-hover: rgb(170, 140, 75);

  /* Secondary/Halt Flow - Used for Cancelar, Voltar */
  --flow-button-secondary: rgb(180, 180, 180);
  --flow-button-secondary-hover: rgb(160, 160, 160);

  /* Confirm Destructive - Used to confirm Delete, Remove (permanent actions) */
  --flow-button-confirm-destructive: rgb(220, 53, 69);
  --flow-button-confirm-destructive-hover: rgb(200, 35, 51);

  /* ============================
   * GREY SCALE
   * ============================ */

  /* Grey for borders, dividers, and subtle outlines */
  --grey-border: rgb(150, 150, 150);

  /* Grey for secondary/disabled text */
  --grey-text: rgb(150, 150, 150);

  /* Grey for button backgrounds (slightly lighter than border grey) */
  --grey-button: rgb(180, 180, 180);

  /* ============================
   * TEXT COLORS
   * ============================ */

  /* Primary text - main content, headings */
  --text-primary: rgb(60, 60, 60);

  /* Secondary text - labels, subtitles */
  --text-secondary: rgb(80, 80, 80);

  /* Tertiary text - descriptions, hints */
  --text-tertiary: rgb(100, 100, 100);

  /* Muted text - placeholder, disabled */
  --text-muted: rgb(120, 120, 120);

  /* Subtle text - very light, de-emphasized */
  --text-subtle: rgb(150, 150, 150);

  /* ============================
   * BACKGROUND COLORS
   * ============================ */

  /* Page background - main page bg */
  --bg-page: rgb(250, 250, 250);

  /* Card background - cards, panels */
  --bg-card: rgb(255, 255, 255);

  /* Alternate card background - for highlighted items */
  --bg-card-alt: rgb(248, 249, 250);

  /* Secondary background - for inset/alternate sections */
  --bg-secondary: rgb(245, 245, 245);

  /* Subtle background - very light sections */
  --bg-subtle: rgb(252, 253, 254);

  /* Warm background - cream/warm tinted */
  --bg-warm: rgb(255, 250, 240);

  /* Warm highlight background - golden tint */
  --bg-warm-highlight: rgb(255, 248, 235);

  /* Overlay background - semi-opaque page surface for fallback cards */
  --bg-overlay: rgba(255, 255, 255, 0.95);

  /* Shimmer animation RGB for skeleton loading */
  --shimmer-rgb: 200, 200, 200;

  /* Brand light background - light brown tint */
  --bg-brand-light: rgb(232, 223, 209);

  /* Brand gold light background - for selected items, highlights */
  --bg-brand-gold-light: rgba(var(--brand-gold-rgb), 0.2);

  /* Input disabled background */
  --bg-input-disabled: rgb(245, 245, 245);

  /* ============================
   * BORDER COLORS
   * ============================ */

  /* Light border - very subtle */
  --border-light: rgb(240, 240, 240);

  /* Default border - normal borders */
  --border-default: rgb(230, 230, 230);

  /* Medium border - slightly stronger */
  --border-medium: rgb(220, 220, 220);

  /* Strong border - emphasis, hover */
  --border-strong: rgb(200, 200, 200);

  /* Dark border - high contrast */
  --border-dark: rgb(210, 210, 210);

  /* ============================
   * STATUS COLORS
   * ============================ */

  /* Success/positive - green tones */
  --status-success: rgb(73, 171, 73);
  --status-success-dark: rgb(87, 108, 68);
  --status-success-bg: rgb(209, 219, 197);

  /* Error/negative - red tones */
  --status-error: rgb(202, 70, 70);
  --status-error-dark: rgb(178, 51, 51);
  --status-error-bg: rgb(206, 196, 196);

  /* Warning - caution actions */
  --status-warning: rgb(180, 80, 80);
  --status-warning-dark: rgb(125, 89, 89);

  /* Info - informational, links */
  --status-info: rgb(72, 137, 194);
  --status-link: rgb(0, 0, 238);
  --info-blue: rgb(21, 101, 192);
  --info-blue-rgb: 21, 101, 192;

  /* Pending/offline - warning badges */
  --status-offline-bg: rgb(255, 243, 205);
  --status-offline-text: rgb(133, 100, 4);

  /* Neutral badges */
  --badge-neutral-text: rgb(120, 120, 120);
  --badge-neutral-bg: rgb(240, 240, 240);

  /* ============================
   * BRAND VARIANTS
   * ============================ */

  /* Brand brown dark - darker variant */
  --brand-brown-dark: rgb(61, 42, 26);

  /* Brand gold dark - darker variant for cards */
  --brand-gold-dark: rgb(107, 93, 60);

  /* Brand brown RGB for shadows */
  --brand-brown-rgb: 91, 72, 56;

  /* ============================
   * GRADIENT DEFINITIONS
   * ============================ */

  /* Brand gradient - Gold to Brown (used in login page, error pages) */
  --gradient-brand: linear-gradient(rgb(190, 158, 85), rgb(91, 72, 56));

  /* Gold gradient - for cards and highlights */
  --gradient-gold: linear-gradient(45deg, rgb(201, 167, 90), rgb(152, 130, 80));

  /* Brown gradient - for dark backgrounds */
  --gradient-brown: linear-gradient(
    135deg,
    rgb(91, 72, 56) 0%,
    rgb(75, 60, 45) 100%
  );

  /* ============================
   * SPACING SCALE
   * ============================
   * Based on 4px base unit for consistent rhythm.
   * Use these throughout the app for margins, padding, gaps.
   */

  --space-2xs: 2px; /* Micro spacing, inline elements */
  --space-xs: 4px; /* Tight spacing, icons */
  --space-sm: 8px; /* Small gaps, compact elements */
  --space-md: 16px; /* Default spacing, form gaps */
  --space-lg: 24px; /* Section spacing, card padding */
  --space-xl: 32px; /* Large section gaps */
  --space-2xl: 40px; /* Major section separations */
  --space-3xl: 60px; /* Page-level spacing */
  --space-4xl: 80px; /* Extra-large spacing */

  /* ============================
   * TYPOGRAPHY SCALE
   * ============================
   * Consistent font sizes across the app.
   * Prefer px over pt for better cross-browser consistency.
   */

  --text-xs: 12px; /* Fine print, captions */
  --text-sm: 14px; /* Secondary text, subtle info */
  --text-base: 15px; /* Body text, inputs */
  --text-md: 16px; /* Emphasized body, buttons */
  --text-lg: 18px; /* Subheadings */
  --text-xl: 20px; /* Section titles */
  --text-2xl: 24px; /* Page titles */
  --text-3xl: 30px; /* Large display text */

  /* ============================
   * TYPOGRAPHY SEMANTIC TOKENS
   * ============================
   * Use these for consistent sizing by purpose.
   * These map to the base scale above for easy maintenance.
   * ALWAYS prefer these over raw --text-* values.
   */

  /* Page-level typography */
  --font-page-title: var(--text-2xl); /* 24px - Main page titles */
  --font-section-title: var(--text-xl); /* 20px - Major section headings */
  --font-section-subtitle: var(
    --text-lg
  ); /* 18px - Section subheadings, prompts */
  --font-subtitle: var(--text-lg); /* 18px - General subtitle/emphasized text */

  /* Content typography */
  --font-card-title: var(--text-md); /* 16px - Card/panel headings */
  --font-body: var(--text-base); /* 15px - Main body text */
  --font-label: var(--text-sm); /* 14px - Field labels */
  --font-caption: var(--text-xs); /* 12px - Captions, hints */

  /* Navigation typography */
  --font-nav-item: var(--text-base); /* 15px - Primary navigation items */
  --font-nav-item-sub: var(--text-sm); /* 14px - Sub-navigation items */

  /* Tables & Lists typography */
  --font-table-header: var(--text-sm); /* 14px - Table column headers */
  --font-table-cell: var(--text-base); /* 15px - Table cell content */
  --font-list-item-title: var(--text-base); /* 15px - List item primary text */
  --font-list-item-subtitle: var(
    --text-sm
  ); /* 14px - List item secondary text */

  /* Form elements typography */
  --font-field-title: var(--text-base); /* 15px - Field labels/titles */
  --font-field-value: var(--text-base); /* 15px - Field values */
  --font-field-hint: var(--text-sm); /* 14px - Helper text, hints */

  /* Data display typography */
  --font-amount-large: var(--text-xl); /* 20px - Large monetary amounts */
  --font-amount-small: var(--text-md); /* 16px - Compact list amounts */
  --font-currency: var(--text-sm); /* 14px - Currency symbols */

  /* Interactive elements */
  --font-button: var(--text-md); /* 16px - Button text */

  /* ============================
   * BORDER RADIUS SCALE
   * ============================
   * Standardized corner rounding for visual consistency.
   */

  --radius-xs: 3px; /* Subtle rounding, table cells */
  --radius-sm: 5px; /* Inputs, small elements */
  --radius-md: 8px; /* Cards, panels */
  --radius-lg: 12px; /* Large cards, modals */
  --radius-xl: 16px; /* Featured cards, hero elements */
  --radius-2xl: 20px; /* Large rounded containers */
  --radius-full: 9999px; /* Pills, circular buttons */

  /* ============================
   * SHADOW SCALE
   * ============================
   * Consistent elevation system using brand colors.
   */

  /* Subtle shadow - for inputs, small elements */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);

  /* Light shadow - for cards at rest */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);

  /* Medium shadow - for elevated cards, dropdowns */
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);

  /* Large shadow - for modals, popovers */
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

  /* Extra large shadow - for prominent modals */
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

  /* Brand gold shadow - for selected/active gold elements */
  --shadow-brand-gold: 0 8px 24px rgba(var(--brand-gold-rgb), 0.35);

  /* Card shadow - combined subtle shadow for cards */
  --shadow-card:
    0 4px 20px rgba(91, 72, 56, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);

  /* Scrim - semi-transparent overlay for modals, loading covers */
  --scrim: rgba(0, 0, 0, 0.5);
  --scrim-heavy: rgba(100, 100, 100, 0.5);

  /* ============================
   * CARD BACKGROUNDS
   * ============================
   * Standardized card gradient backgrounds.
   */

  /* Standard card gradient - subtle white to off-white */
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);

  /* Card border with brand tint */
  --border-card-brand: rgba(var(--brand-gold-rgb), 0.15);

  /* ============================
   * TRANSITION TIMING
   * ============================
   * Standardized transition durations for consistent micro-interactions.
   * Use these throughout the app for hover effects, focus states, etc.
   */

  /* Fast - for subtle micro-interactions (hover states, focus rings) */
  --transition-fast: 0.15s ease;

  /* Normal - for standard transitions (cards, buttons, inputs) */
  --transition-normal: 0.2s ease;

  /* Slow - for larger/more dramatic transitions (modals, panels) */
  --transition-slow: 0.3s ease;

  /* ============================
   * HOVER TRANSFORMS
   * ============================
   * Standardized hover lift effects for interactive elements.
   */

  /* Small lift - for compact elements (buttons, list items) */
  --hover-lift-sm: translateY(-1px);

  /* ============================
   * FOCUS RINGS
   * ============================
   * Standardized focus ring styles for accessibility.
   */

  /* Brand gold focus ring */
  --focus-ring-gold: 0 0 0 3px rgba(var(--brand-gold-rgb), 0.25);

  /* ============================
   * INPUT FIELD TOKENS
   * ============================
   * Standardized input field dimensions and styling.
   */

  /* Input heights - for consistent form field sizes */
  --input-height-md: 44px;

  /* Input padding */
  --input-padding-x: 12px;
  --input-padding-y: 10px;

  /* Input font size - slightly larger for better readability */
  --input-font-size: var(--text-base);

  /* Input border */
  --input-border-color: var(--grey-border);
  --input-border-color-focus: var(--brand-brown);

  /* Input focus ring */
  --input-focus-ring: var(--focus-ring-gold);

  /* Input error focus ring */
  --input-error-focus-ring: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* =============================================================================
 * DARK MODE OVERRIDES
 * =============================================================================
 *
 * Overrides semantic color tokens for dark mode. Brand identity colors are
 * adjusted for legibility (muted/darkened to ensure white text meets >= 4.5:1
 * contrast) while preserving the warm gold/brown character.
 *
 * Applies automatically when the OS/browser dark mode preference is active.
 */

@media (prefers-color-scheme: dark) {
  :root {
    /* ============================
     * PRIMARY BRAND COLORS
     * ============================ */

    /* Brown lightened for >= 4.5:1 on bg-card */
    --brand-brown: rgb(175, 148, 124);

    /* Gold darkened for white-text legibility (>= 4.5:1 contrast) */
    --brand-gold: rgb(140, 115, 58);
    --brand-gold-rgb: 140, 115, 58;

    /* Brand variants lightened for >= 4.5:1 on their darkest surfaces.
       --brand-brown-dark is the more emphatic variant; kept a clear step
       brighter than --brand-brown so headings/section titles using it
       stand out against --brand-brown-tinted surfaces. */
    --brand-brown-dark: rgb(200, 170, 140);
    --brand-gold-dark: rgb(185, 162, 118);

    /* ============================
     * FLOW BUTTON COLORS
     * ============================ */

    /* Primary action buttons - darkened for white-text legibility (>= 4.5:1) */
    --flow-button-primary: rgb(133, 112, 59);
    --flow-button-primary-hover: rgb(120, 102, 54);

    /* Secondary cancel/back button - dark grey instead of light grey */
    --flow-button-secondary: rgb(65, 60, 55);
    --flow-button-secondary-hover: rgb(82, 76, 70);

    /* ============================
     * GREY SCALE
     * ============================ */

    --grey-border: rgb(90, 84, 78);
    --grey-text: rgb(160, 155, 148);
    --grey-button: rgb(70, 65, 60);

    /* ============================
     * TEXT COLORS
     * ============================ */

    /* Warm off-whites — all readable tiers >= 4.5:1 on bg-card-alt */
    --text-primary: rgb(235, 230, 225);
    --text-secondary: rgb(200, 195, 188);
    --text-tertiary: rgb(165, 160, 152);
    --text-muted: rgb(160, 155, 148);
    --text-subtle: rgb(100, 96, 90);

    /* ============================
     * BACKGROUND COLORS
     * ============================ */

    /* Warm dark surfaces — subtle warmth echoes the brand's gold/brown palette */
    --bg-page: rgb(40, 37, 34);
    --bg-card: rgb(48, 44, 40);
    --bg-card-alt: rgb(55, 50, 45);
    --bg-secondary: rgb(52, 48, 44);
    --bg-subtle: rgb(44, 40, 36);
    --bg-warm: rgb(52, 46, 38);
    --bg-warm-highlight: rgb(68, 58, 42);
    --bg-brand-light: rgb(65, 57, 48);
    --bg-brand-gold-light: rgba(var(--brand-gold-rgb), 0.15);
    --bg-input-disabled: rgb(58, 53, 48);
    --bg-overlay: rgba(48, 44, 40, 0.95);
    --shimmer-rgb: 80, 75, 70;

    /* ============================
     * BORDER COLORS
     * ============================ */

    --border-light: rgb(52, 47, 42);
    --border-default: rgb(62, 56, 50);
    --border-medium: rgb(75, 68, 61);
    --border-strong: rgb(90, 82, 74);
    --border-dark: rgb(105, 96, 87);

    /* ============================
     * STATUS COLORS
     * ============================ */

    /* Status colors brightened for text readability on dark surfaces (>= 4.5:1).
       White-on-these passes >= 3:1 (sufficient for large/bold banner text). */
    --status-success: rgb(72, 165, 72);
    --status-error: rgb(232, 92, 92);
    --status-warning: rgb(215, 105, 105);

    /* Dark variants — used as text/border on the *-bg chips (which flip to
       dark surfaces below) and as solid banners with white text. Values
       preserve the red/green/warning hue while meeting >= 4.5:1 contrast
       against their surfaces. */
    --status-success-dark: rgb(130, 200, 130);
    --status-error-dark: rgb(180, 50, 50);
    --status-warning-dark: rgb(215, 105, 105);

    /* Tinted backgrounds need to flip to dark equivalents */
    --status-success-bg: rgb(28, 52, 28);
    --status-error-bg: rgb(62, 26, 26);

    /* Link blue needs to be brighter to pass contrast on dark surfaces */
    --status-link: rgb(100, 150, 255);
    --info-blue: rgb(100, 160, 233);
    --info-blue-rgb: 100, 160, 233;

    /* Error focus ring - higher opacity for visibility on dark surfaces */
    --input-error-focus-ring: 0 0 0 3px rgba(220, 53, 69, 0.4);

    /* Warning/offline badges */
    --status-offline-bg: rgb(60, 50, 25);
    --status-offline-text: rgb(210, 180, 80);

    /* Neutral badges */
    --badge-neutral-text: rgb(170, 165, 158);
    --badge-neutral-bg: rgb(60, 55, 50);

    /* ============================
     * GRADIENT DEFINITIONS
     * ============================ */

    /* Card gradients become dark surface gradients */
    --gradient-card: linear-gradient(
      145deg,
      rgb(48, 44, 40) 0%,
      rgb(44, 40, 36) 100%
    );

    /* Brand gradient - darkened gold to deep brown for dark-mode surfaces */
    --gradient-brand: linear-gradient(rgb(108, 90, 48), rgb(45, 35, 25));

    /* Gold gradient - darkened for white-text legibility */
    --gradient-gold: linear-gradient(
      45deg,
      rgb(140, 115, 58),
      rgb(108, 90, 48)
    );

    /* Brown gradient - richer dark browns that still read as dark surfaces */
    --gradient-brown: linear-gradient(
      135deg,
      rgb(72, 62, 52) 0%,
      rgb(56, 48, 40) 100%
    );

    /* ============================
     * SHADOW SCALE
     * ============================ */

    /* Shadows need to be stronger on dark surfaces to read clearly */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.55);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.65);
    --shadow-card:
      0 4px 20px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.35);

    /* Warm-tinted scrims on dark surfaces */
    --scrim: rgba(30, 27, 24, 0.7);
    --scrim-heavy: rgba(30, 27, 24, 0.75);

    /* ============================
     * CARD BACKGROUNDS
     * ============================ */

    /* Slightly more visible gold tint on dark card borders */
    --border-card-brand: rgba(var(--brand-gold-rgb), 0.2);

    /* ============================
     * INPUT FIELD TOKENS
     * ============================ */

    /* Use brand gold for focus border — more legible than brown on dark */
    --input-border-color-focus: var(--brand-gold);
  }
}

/*
 * Frontend Design Tokens
 *
 * Imports shared design tokens and adds frontend-specific tokens.
 * Shared tokens are defined in shared/styles/designTokens.css.
 *
 * Usage: var(--variable-name)
 */

:root {
  /* ============================
   * INITIATE DOMAIN ACTION BUTTON COLORS
   * ============================
   * Used for outlined buttons that initiate domain-specific actions
   * within a page (e.g., financial operations on accounts).
   */

  /* Initiate positive actions - Reforçar DP, Utilizar CCC, Aprovar */
  --initiate-domain-action-positive: rgb(76, 145, 80);

  /* Initiate caution actions - Mobilizar DP, Cancelar operation, Pendentes indicator */
  --initiate-domain-action-caution: rgb(180, 80, 80);

  /* ============================
   * TRANSPARENT BUTTON COLORS
   * ============================
   * Used for outline/transparent buttons that are secondary actions.
   */

  /* Light variant - for use on dark/colored backgrounds */
  --transparent-button-light-border: white;
  --transparent-button-light-text: white;

  /* Neutral variant - for use on light backgrounds */
  --transparent-button-neutral-border: rgb(150, 150, 150);
  --transparent-button-neutral-text: rgb(150, 150, 150);

  /* Branded variant - for use when brand emphasis needed */
  --transparent-button-branded-border: rgb(91, 72, 56);
  --transparent-button-branded-text: rgb(91, 72, 56);

  /* ============================
   * FILLED ACTION BUTTON COLORS
   * ============================
   * Used for filled action buttons that don't fit flow control pattern.
   */

  /* Brand brown - primary action variant */
  --filled-action-button-brand-brown-bg: rgb(91, 72, 56);
  --filled-action-button-brand-brown-text: white;

  /* Brand gold - accent action variant */
  --filled-action-button-brand-gold-bg: rgb(190, 158, 85);
  --filled-action-button-brand-gold-text: white;

  /* White - for use on colored backgrounds (e.g., login) */
  --filled-action-button-white-bg: white;
  --filled-action-button-white-text: rgb(91, 72, 56);

  /* ============================
   * MODAL DISMISS BUTTON COLORS
   * ============================
   * Used for modal dismiss/acknowledge buttons.
   */

  --modal-dismiss-button-gradient: linear-gradient(
    135deg,
    rgb(91, 72, 56) 0%,
    rgb(75, 60, 48) 100%
  );
  --modal-dismiss-button-text: white;

  /* ============================
   * POPUP CHOICE BUTTON COLORS
   * ============================
   * Used for popup confirmation/decline buttons.
   * Shares the brand-brown fill with filled action buttons to stay visually
   * consistent; aliased so dark-mode overrides propagate automatically.
   */

  --popup-choice-confirm-bg: var(--filled-action-button-brand-brown-bg);
  --popup-choice-confirm-text: white;

  /* ============================
   * OFFLINE STATUS COLORS
   * ============================ */

  /* Offline indicator - golden brown for cached/offline state */
  --status-offline-text: rgb(133, 100, 4);
  --status-offline-bg: rgba(255, 193, 7, 0.15);
  --status-offline-border: rgba(255, 193, 7, 0.3);

  /* ============================
   * FINANCIAL INDICATOR COLORS
   * ============================ */

  /* Compra (buy) - red tone */
  --financial-compra: rgb(189, 57, 40);

  /* Venda (sell) - green tone */
  --financial-venda: rgb(54, 143, 68);

  /* ============================
   * REFERENCE STATUS COLORS
   * ============================ */

  /* Activo (active) - green */
  --referencia-activo: rgb(0, 150, 0);

  /* Utilizado (used) - blue */
  --referencia-utilizado: rgb(0, 0, 150);

  /* Cancelado/Expirado (cancelled/expired) - red */
  --referencia-cancelado: rgb(150, 0, 0);

  /* ============================
   * FRONTEND-SPECIFIC GRADIENTS
   * ============================ */

  /* DP card gradient - for deposit product cards */
  --gradient-dp-card: linear-gradient(
    to bottom,
    rgb(245, 240, 230),
    rgb(235, 230, 220)
  );

  /* Public page gradient - for login-successor standalone pages (non-branded
     public flow pages shown before the main app shell loads) */
  --gradient-public-page: linear-gradient(
    rgb(210, 200, 185),
    rgb(125, 115, 100)
  );

  /* ============================
   * FORM LAYOUT SPACING
   * ============================
   * Semantic spacing tokens for consistent form layouts.
   * Use these for all form field and section spacing.
   */

  --form-field-spacing: var(
    --space-md
  ); /* 16px - Between fields within the same section */
  --form-section-spacing: var(
    --space-xl
  ); /* 32px - Between major form sections (e.g., Conta a debitar, Para quem) */
  --form-title-content-spacing: var(
    --space-sm
  ); /* 8px - Between section title and first content element */
  --form-button-spacing: var(--space-2xl); /* 40px - Above action buttons */
  --section-header-content-spacing: var(
    --space-lg
  ); /* 24px - Between section header (e.g., entity name) and form content below */

  /* ============================
   * PAGE TITLE SPACING
   * ============================
   * Semantic spacing tokens for page title layout.
   * These control the spacing around page titles and subtitles.
   */

  --mobile-page-title-top-spacing: var(
    --space-lg
  ); /* 24px - Above page title on mobile (safe area after iPhone notch margin) */
  --mobile-page-title-content-spacing: var(
    --space-lg
  ); /* 24px - Between page title/subtitle and content on mobile */
  --desktop-page-title-content-spacing: var(
    --space-4xl
  ); /* 80px - Between page title/subtitle and content on desktop */

  /* ============================
   * LAYOUT CONSTANTS
   * ============================
   * Fixed layout dimensions for consistent positioning.
   * Used for centering modals and overlays on desktop.
   */

  /* Desktop side navigator width */
  --desktop-navigator-width: 300px;

  /* Mobile bottom navigator layout constants */
  --mobile-bottom-navigator-height: 94px;
  --mobile-bottom-navigator-clearance: 120px;
}

/* =============================================================================
 * FRONTEND-SPECIFIC DARK MODE OVERRIDES
 * =============================================================================
 *
 * Shared dark mode overrides come from shared/styles/designTokens.css.
 * Only frontend-specific tokens are overridden here.
 */

@media (prefers-color-scheme: dark) {
  :root {
    /* ============================
     * TRANSPARENT BUTTON COLORS
     * ============================ */

    /* Neutral variant - readable against dark surfaces */
    --transparent-button-neutral-border: rgb(120, 114, 108);
    --transparent-button-neutral-text: rgb(120, 114, 108);

    /* Branded variant - lightened brown for legibility on dark */
    --transparent-button-branded-border: rgb(155, 130, 108);
    --transparent-button-branded-text: rgb(155, 130, 108);

    /* ============================
     * FILLED ACTION BUTTON COLORS
     * ============================ */

    /* White button variant becomes a dark surface button on dark backgrounds */
    --filled-action-button-white-bg: rgb(35, 31, 27);
    --filled-action-button-white-text: var(--text-primary);

    /* Gold button - tracks --brand-gold so the dark-mode gold shift
       (140, 115, 58) propagates automatically. */
    --filled-action-button-brand-gold-bg: var(--brand-gold);

    /* Brown button text - warm off-white instead of pure white */
    --filled-action-button-brand-brown-text: var(--text-primary);

    /* Modal/popup button text - warm off-white to match brown button pattern */
    --modal-dismiss-button-text: var(--text-primary);
    --popup-choice-confirm-text: var(--text-primary);

    /* ============================
     * OFFLINE STATUS COLORS
     * ============================ */

    /* Offline indicator - brightened for dark backgrounds */
    --status-offline-text: rgb(205, 168, 52);
    --status-offline-bg: rgba(255, 193, 7, 0.12);
    --status-offline-border: rgba(255, 193, 7, 0.22);

    /* ============================
     * REFERENCE STATUS COLORS
     * ============================ */

    --referencia-activo: rgb(58, 185, 58);
    --referencia-utilizado: rgb(70, 130, 220);
    --referencia-cancelado: rgb(195, 58, 58);

    /* ============================
     * FRONTEND-SPECIFIC GRADIENTS
     * ============================ */

    --gradient-dp-card: linear-gradient(
      to bottom,
      rgb(58, 51, 43),
      rgb(50, 45, 38)
    );

    --gradient-public-page: linear-gradient(var(--bg-card-alt), var(--bg-page));
  }
}

/*
 * Layout Patterns - Centralized CSS for common layout utility classes
 *
 * This module provides reusable layout classes that were previously duplicated
 * across multiple page-specific CSS files.
 *
 * Usage:
 *   1. This file is imported globally in index.js
 *
 *   2. Import the layoutClasses object in your JS component:
 *      import { layoutClasses } from '@/styles/layoutPatterns';
 *
 *   3. Use the classes in your JSX:
 *      <div className={showSection ? '' : layoutClasses.hide}>...</div>
 *
 * Available classes:
 * - layout-hide: Hide an element (display: none !important)
 * - layout-containerSectionTitle: Flex container for section titles (centered)
 * - layout-sectionTitle: Standard section title styling
 */

/* ============================
 * VISIBILITY UTILITY
 * ============================ */

/*
 * Hide an element completely
 * Uses !important to ensure it overrides other display properties
 */
.layout-hide {
  display: none !important;
}

/* ============================
 * PAGE CONTENT WRAPPERS
 * ============================ */

/*
 * Standard page content column layout
 * Flexbox column with centered alignment, full width
 * Use for wrapping page content that needs flex column centering
 */
.layout-pageContentColumn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ============================
 * MOBILE SECTION TITLE
 * ============================ */

/*
 * Container for section titles (mobile)
 * Centers the title horizontally
 */
.layout-containerSectionTitle {
  display: flex;
  justify-content: center;
}

/*
 * Standard section title styling (mobile)
 * Uses brand brown color with bold weight
 */
.layout-sectionTitle {
  font-size: var(--font-card-title);
  color: var(--brand-brown);
  font-weight: bold;
  margin-bottom: var(--form-title-content-spacing);
}

/* ============================
 * DESKTOP FORM SECTION CLASSES
 * ============================
 * Standardized desktop form section styling that was previously
 * duplicated across desktopTextInput.css, desktopNumericInput.css,
 * desktopDropdown.css, etc.
 */

/*
 * Desktop form section container - standard width for form fields
 */
.layout-desktop-form-section {
  width: 360px;
}

/*
 * Top margin for form sections
 */
.layout-desktop-form-section-mt {
  margin-top: var(--space-sm);
}

/*
 * Bottom margin for form sections
 */
.layout-desktop-form-section-mb {
  margin-bottom: var(--space-2xl);
}

/*
 * Available balance display styling
 */
.layout-saldo-disponivel {
  margin-left: 11px;
  margin-top: 5px;
  color: var(--grey-text);
  font-size: var(--font-caption);
}

/* ============================
 * MOBILE FORM SECTION CLASSES
 * ============================
 * Standardized mobile form section styling that was previously
 * duplicated across mobileTextInput.css, mobileNumericInput.css,
 * mobileDropdown.css, etc.
 */

/*
 * Mobile input field container
 */
.layout-mobile-input-container {
  width: 100%;
}

/*
 * Mobile input bottom margin
 */
.layout-mobile-input-mb {
  margin-bottom: var(--space-md);
}

/* ============================
 * FORM LAYOUT COMPONENTS
 * ============================
 * Gap-based form layout classes for consistent spacing.
 * Use these instead of margin-bottom on individual fields.
 * Benefits: Works with conditional rendering, single source of truth.
 */

/*
 * Form fields container - vertical stack with consistent spacing
 * Use this to wrap multiple form fields for automatic gap-based spacing.
 * Does NOT have width: 100% - shrinks to fit content so parent can center it.
 * Does NOT center children - fields left-align to each other within the section.
 */
.layout-form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--form-field-spacing);
}

/*
 * Form buttons container - adds spacing above action buttons
 */
.layout-form-buttons {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: var(--form-button-spacing);
}

/*
 * Form section separator - for larger gaps between form sections
 * Provides SECTION-LEVEL spacing only (between major sections like "De", "Para quem", etc.)
 * Does NOT provide field-to-field spacing - use FormFieldGroup for that.
 * Does NOT have width: 100% - shrinks to fit content so parent can center it.
 * Does NOT center children - fields left-align to each other within the section.
 */
.layout-form-section {
  display: flex;
  flex-direction: column;
}

.layout-form-section:not(:first-child) {
  margin-top: var(--form-section-spacing);
}

/* When form section immediately follows a section header, don't add extra top margin.
 * The SectionHeader's margin-bottom provides the spacing. */
.section-header + .layout-form-section {
  margin-top: 0;
}

/* ============================
 * LAYOUT UTILITY CLASSES
 * ============================ */

/*
 * Full width container
 */
.layout-w-full {
  width: 100%;
}

/* ============================
 * FOOTNOTE/HELPER TEXT CLASSES
 * ============================
 */

/*
 * Footnote text styling
 */
.layout-footnote {
  font-size: var(--font-caption);
  color: var(--text-muted);
  margin-top: var(--space-md);
  font-style: italic;
  text-align: center;
  padding: 0 var(--space-md);
  box-sizing: border-box;
}

/* ============================
 * MODAL/OVERLAY UTILITY CLASSES
 * ============================
 * Standardized modal and overlay patterns.
 */

/*
 * Modal overlay for page content - centers modal relative to the page content area
 * (offset by the 300px sidebar on desktop). Backdrop still covers full viewport.
 * Uses padding-left to shift the centering point to the right of the sidebar.
 */
.layout-modal-overlay-page-content {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--scrim);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  /* Offset centering to account for 300px sidebar - modal centers in remaining space */
  padding-left: 300px;
  box-sizing: border-box;
}

/* ============================
 * LIST ITEM UTILITY CLASSES
 * ============================
 * Common patterns for clickable list items.
 */

/*
 * List item with card style (for desktop)
 */
.layout-list-item-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  background-color: var(--bg-brand-gold-light);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: background-color 0.2s;
}

.layout-list-item-card:hover {
  background-color: var(--bg-warm);
}

/* =============================================================================
   System Banner Styles (shared by OfflineBanner, MaintenanceWarningBanner, etc.)
   ============================================================================= */

/* Animation keyframes */
@keyframes SBdIUopcZIyjJHnaM__H {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes d1zSlYb03072rJvlRNaS {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}

/* Banner Container */
.XCNBvgrBCFeo0nHv6o14 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: SBdIUopcZIyjJHnaM__H 300ms ease-out forwards;
  box-shadow: var(--shadow-md);
}

/* Hiding state - slides up before unmounting */
.XCNBvgrBCFeo0nHv6o14.O7ZcRAiD2umyGEkhT1Qw {
  animation: d1zSlYb03072rJvlRNaS 300ms ease-in forwards;
}

/* Variant: error (offline) - red */
.s1mf4ZTHHVtAPAHtt81M {
  background-color: var(--status-error);
  color: white;
}

/* Variant: success (online) - green */
.vWIdu6hzTtn1vxJrf_dw {
  background-color: var(--status-success);
  color: white;
}

/* Variant: warning (maintenance) - amber/orange */
.ulJGZQ1rZiVQsMubFDHL {
  background-color: var(--status-warning, #f59e0b);
  color: white;
}

/* Content wrapper */
.guRhkgkFl9q47wmq2TeY {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 600px;
  width: 100%;
}

/* Icon container */
.jzZgr401iI8G93J21Prn {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jzZgr401iI8G93J21Prn svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* Message text area */
.c3Sn08shO3gEczUOExCh {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Title text */
.lWtNaBOhYHoal1IKxRzj {
  font-weight: 600;
  font-size: var(--font-subtitle);
  line-height: 1.3;
}

/* Subtitle text */
.w68cErclZbNGx5WVMKje {
  font-size: var(--font-body);
  opacity: 0.9;
  line-height: 1.3;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .XCNBvgrBCFeo0nHv6o14 {
    padding: var(--space-xs) var(--space-sm);
  }

  .guRhkgkFl9q47wmq2TeY {
    gap: var(--space-xs);
  }

  .lWtNaBOhYHoal1IKxRzj {
    font-size: var(--font-body);
  }

  .w68cErclZbNGx5WVMKje {
    font-size: var(--font-caption);
  }
}

.z6pYhfOPvea8JSPb4O5K {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: var(--space-lg);
  padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  pointer-events: none;
}

.SDfT9o_cAFMz_Y1e8a4k {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: 420px;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--transition-normal, 0.2s),
    transform var(--transition-normal, 0.2s);
  overflow: hidden;
  position: relative;
}

.eJlvEh9skho7lcPLAgbQ {
  opacity: 1;
  transform: translateY(0);
}

.eERMWcAwQBPdKwXcnSPr {
  background-color: var(--status-error);
}

.brwgVAMAUdHChYK4wyUr {
  background-color: var(--status-info);
}

.XOeek2axjeKt6HFJsRMp {
  background-color: var(--status-success);
}

.aqWRYUokl45ORJJip3wH {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.aqWRYUokl45ORJJip3wH svg {
  width: 24px;
  height: 24px;
  color: white;
}

.bRGfw0V2BouXCI106p9a {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs, 4px);
}

.FhqBMKamrTCyAueFzYUj {
  color: white;
  font-size: var(--font-subtitle);
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.PioKbfmTxcLVpKuDYm8d {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-body);
  line-height: 1.4;
  word-break: break-word;
}

.OMoLWlhrBN_mPVq9RqkL {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(0, 0, 0, 0.15);
}

.Ps9nuZg8yGJL0tAzOouq {
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  transform-origin: left;
  transition: transform linear;
}

@keyframes uvId1eNyl7pL_AFGG3Th {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

@media (max-width: 480px) {
  .z6pYhfOPvea8JSPb4O5K {
    bottom: calc(
      var(--mobile-bottom-navigator-height, 0px) -
        env(safe-area-inset-bottom, 0px)
    );
    padding: var(--space-md);
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  }

  .SDfT9o_cAFMz_Y1e8a4k {
    max-width: 100%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
  }

  .FhqBMKamrTCyAueFzYUj,
  .PioKbfmTxcLVpKuDYm8d {
    font-size: var(--font-body);
  }
}

* {
  cursor: default;
}

* :not(.d0iyGNSbT7y4O19R4hOv) {
  /* disable text flicker */
  user-select: none;
  -webkit-touch-callout: none;
  -ms-user-select: none;
}

.dBb3N_5pQFUY__rP4Cis {
  background: var(--gradient-brand);
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mCgceHkNYskDoGfzsiFu {
  padding-top: 120px;
  display: flex;
  justify-content: center;
}

.M50NtypSP3mAnugit25Q {
  display: flex;
  justify-content: center;
  padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
}

@media screen and (min-width: 600px) {
  .mCgceHkNYskDoGfzsiFu {
    padding-top: 40px;
  }
}

.K8igMsvJbWTDceQt740b {
  height: 120px;
  width: 260px;
}

.r1G4K2Ed3frW2mEbO8Jf {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.HzLGK2xPEOngdr9dq6fb {
  max-width: 300px;
  display: flex;
  flex-direction: column;
  padding-left: 10%;
  padding-right: 10%;
  flex: 1;
}

.sArSITAzviEvRDOGj7PM,
.LZXjZ5MA77dy8Xx8qQ0B {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: Ufwjrgd1fRhe2dU0eUbK 1s;
  background-color: var(--scrim);
}

.kVMA9u4E2cnYwKfjbcNm,
.eguc4mV_s06yA1QbpLhq {
  text-align: center;
}

@keyframes Ufwjrgd1fRhe2dU0eUbK {
  from {
    background-color: transparent;
  }
  to {
    background-color: var(--scrim);
  }
}

.IOiO5HVKcMt1zQyW_Acv,
.xm3Ybj8fL3IEyDFPmoV8 {
  width: 70%;
  animation: tnoU1k9Y78tIdLX5ggRq 1s;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.IOiO5HVKcMt1zQyW_Acv {
  height: 30%;
}

.xm3Ybj8fL3IEyDFPmoV8 {
  height: 300px;
}

@keyframes tnoU1k9Y78tIdLX5ggRq {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.xg25bYp4s6BFsO46Q0Sm,
.nOCvW2tEhGaK23RUl9fs {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.xg25bYp4s6BFsO46Q0Sm {
  height: 80%;
}

.nOCvW2tEhGaK23RUl9fs {
  height: 90%;
}

.HEh4xyVqOujVwfWVMd9v,
.SlLLnxiN2d41r5bVfATd {
  font-weight: bold;
}

/* Quick login setup modal title - centered */
.QmUPjALV81jBeGekC7cv {
  font-weight: bold;
  text-align: center;
  margin-bottom: var(--space-md);
}

.HEAlxxp30SnLoUvjXPWh {
  width: 100%;
}

.OTVIQ9HPFl_A3wjFeVp5 {
  width: 100%;
  display: flex;
  justify-content: center;
}

.j7I5azSsjmhYiFgX9OtF {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.d0iyGNSbT7y4O19R4hOv {
  width: 100%;
  font-size: var(--font-section-title);
  color: white;
  border-radius: 0px;
  background-color: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  border-width: thin;
  border-color: white;
  box-sizing: border-box;
  margin-bottom: 8px;
  cursor: text;
}

.d0iyGNSbT7y4O19R4hOv::placeholder {
  font-size: var(--font-section-title);
  color: var(--border-strong);
}

.d0iyGNSbT7y4O19R4hOv:focus {
  outline: none;
}

/* Entrar button layout/sizing - styling comes from FilledButton module */
/* Double class selector for higher specificity to override base button width */
.JMt0j9xBfzfX6F5T3Pwf.JMt0j9xBfzfX6F5T3Pwf {
  margin-top: var(--space-md);
  cursor: pointer;
  width: 100%;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Override button text size to match input fields */
.JMt0j9xBfzfX6F5T3Pwf div {
  font-size: var(--font-section-title);
}

.RFk31RERAzE3QtMcz1sQ {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  width: 250px;
}

.vG2CPoCLuwSiCE33nMYG {
  color: white;
  text-decoration: none;
  width: 50%;
}

.hxJ3NFL0opA9W5x5ycAg {
  margin-top: 10px;
}

.SU6Bihsto7Ssx399bsKZ {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.Z_JCc8gyMFAFxLmfhkQ1 {
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.beVKMYfqKTV3O3h_G_Bn {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1000px;
  justify-content: space-around;
}

.VgvKoOdiLy5ipFFktsba {
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.YbeaZ5LuaTl2dU3z8FTL {
  word-wrap: break-word;
  color: var(--brand-gold);
  height: 36px;
  margin-top: 5px;
  text-align: center;
  cursor: pointer;
}

.BNKopcNIRZmvRTI9uI2R {
  position: absolute;
  width: 100%;
  top: 100%;
  height: 0%;
  background-color: var(--status-error);
  transition: 0.5s;
  justify-content: center;
  display: flex;
  align-items: center;
}

.PdJu4s1qqq8C3AeV40Ia {
  cursor: pointer;
}

/* Container for PIN pad with biometric button */
.zE1Smuq90vokKvJpx9iB {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Container for biometric-only login (no PIN) */
.vq527uLQisLpE0BjXdCW {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-md);
}

/* Fallback link to use password instead of biometric */
.rF1ThlkSdkTJgA4zaKMH {
  margin-top: var(--space-md);
}

.qCPVkxQT6MuVkZDdpJMz {
  color: white;
  text-decoration: underline;
  cursor: pointer;
  font-size: var(--font-label);
  opacity: 0.8;
}

.qCPVkxQT6MuVkZDdpJMz:hover {
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  /* Bottom-link labels switch from brand-gold (which darkens in dark mode
     and dims against the darker gradient background) to the warm off-white
     text-primary so labels stay clearly readable. Icons remain gold to
     preserve brand identity. */
  .YbeaZ5LuaTl2dU3z8FTL {
    color: var(--text-primary);
  }
}

.Jj1RFMx8abprsZBrKtcS {
  --biometric-button-size: 216px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.D2hMivT1Js331aAhJ6J2 {
  width: var(--biometric-button-size);
  height: var(--biometric-button-size);
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  transition:
    opacity var(--transition-normal),
    transform var(--transition-normal);
}

.D2hMivT1Js331aAhJ6J2:focus {
  outline: none;
}

.D2hMivT1Js331aAhJ6J2:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.65);
}

.D2hMivT1Js331aAhJ6J2:not(:disabled):active {
  transform: scale(0.96);
  opacity: 0.85;
}

@media (hover: hover) and (pointer: fine) {
  .D2hMivT1Js331aAhJ6J2:not(:disabled):hover {
    opacity: 0.9;
  }
}

.BeBz7kNDKbP2LGYKVx7i {
  width: var(--biometric-button-size);
  height: var(--biometric-button-size);
  display: block;
  flex: 0 0 auto;
  fill: currentColor;
  object-fit: contain;
  pointer-events: none;
  stroke: currentColor;
  -webkit-user-drag: none;
}

.IgRFEt8AtICD02dHrDap {
  color: white;
  font-size: var(--font-caption);
  opacity: 0.8;
  text-align: center;
  margin-top: var(--space-lg);
}

.ANyK_K6ETRUr_cxIvDgW {
  opacity: 0.5;
  cursor: not-allowed;
}

.ANyK_K6ETRUr_cxIvDgW:active {
  transform: none;
}

/**
 * Filled Button Styles (Unified mobile/desktop)
 *
 * Filled action buttons for various UI patterns.
 * Using doubled class selectors for higher specificity to override base button styles.
 */

/* =============================================================================
   BUTTON TYPE VARIANTS
   ============================================================================= */

/* Brand brown variant */
.Sr7zpxpc4G5DjG45BDYB.Sr7zpxpc4G5DjG45BDYB {
  background-color: var(--filled-action-button-brand-brown-bg);
}

.zflFgG4nvT6f8nQ7VqZs.zflFgG4nvT6f8nQ7VqZs {
  color: var(--filled-action-button-brand-brown-text);
}

/* Brand gold variant */
.rvW9V_wsWtFh_0U5FkAg.rvW9V_wsWtFh_0U5FkAg {
  background-color: var(--filled-action-button-brand-gold-bg);
}

.SoFHehCPe7_y6MbZgZ7V.SoFHehCPe7_y6MbZgZ7V {
  color: var(--filled-action-button-brand-gold-text);
}

/* White variant - for colored backgrounds */
.Fh2C7ZrswWUdcxwtu0KM.Fh2C7ZrswWUdcxwtu0KM {
  background-color: var(--filled-action-button-white-bg);
}

.HsJWcfSzoSQ8Rmjd3p7b.HsJWcfSzoSQ8Rmjd3p7b {
  color: var(--filled-action-button-white-text);
}

/**
 * Base Button Styles (Unified mobile/desktop)
 *
 * Core button styling shared across all button variants.
 * Uses CSS feature queries for hover effects on desktop devices.
 */

/* =============================================================================
   BASE BUTTON STYLES
   ============================================================================= */

.T2TtbdzV81pwWqzQ0XkO {
  min-width: 120px;
  width: fit-content;
  height: 35px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  white-space: nowrap;
  font-size: var(--font-button);
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

/* =============================================================================
   DESKTOP HOVER EFFECTS
   Only applied on devices that support hover (not touch devices)
   ============================================================================= */

@media (hover: hover) {
  .T2TtbdzV81pwWqzQ0XkO:hover {
    transform: var(--hover-lift-sm);
    box-shadow: var(--shadow-md);
  }
}

/* =============================================================================
   TEXT STYLING
   ============================================================================= */

.Z42T0dC1RZbyxRHWCPnO {
  color: white;
  cursor: pointer;
}

/* =============================================================================
   DISABLED STATE
   ============================================================================= */

._s2jTPc3og6yjsa3R7du {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Prevent hover effects on disabled buttons */
@media (hover: hover) {
  ._s2jTPc3og6yjsa3R7du:hover {
    transform: none;
    box-shadow: none;
  }
}

/* =============================================================================
   LOADING STATE (SPINNER)
   ============================================================================= */

.NOi30IbgnjMo78cwxxnP {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.BK3SFNG5ZYkHdY_Fg4aR {
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.lzHIr8GcCX27EQkn0Un1 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 18px;
  min-width: 240px;
  padding-bottom: 40px;
}

.mihhC1rETrWyXVdBykQG {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  border: 2px solid white;
  box-sizing: border-box;
}

.XLqd80zvcbjsrK62zhMA {
  background-color: white;
}

.g9XVYkivyfL2ifQ8Y4Ab {
  display: flex;
  width: 100%;
  max-width: 380px;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding: 0 10px;
}

.Sl_VJJtay_0VOyrnq53e {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 12px;
}

.WEYVgmdMX0sG6N_hla7O {
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wMlg4wQyivKgSN1_Ez_5 {
  height: 68px;
  width: 68px;
  color: white;
  background: none;
  border: none;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wMlg4wQyivKgSN1_Ez_5:active {
  background-color: rgba(200, 200, 200, 0.3);
}

.o_BpuLW5mqz_t8w7Ndow {
  opacity: 0.45;
  cursor: not-allowed;
}

.o_BpuLW5mqz_t8w7Ndow:active {
  background-color: transparent;
}

.nWJZ0A_wXyLs7W3V4elw {
  height: 68px;
  width: 100px;
}

.ioTGXfRpalo2Vjbos_rt {
  width: 36px;
  height: auto;
}

/**
 * Flow Button Styles (Unified mobile/desktop)
 *
 * Semantic flow control buttons for actions like "Continuar", "Confirmar", "Cancelar".
 * Using doubled class selectors for higher specificity to override base button styles.
 */

/* =============================================================================
   BUTTON TYPE VARIANTS
   ============================================================================= */

/* Primary/Move Forward - for "Continuar", "Confirmar", "Submeter" buttons */
.jo3Vcz6rvxrG9OOVZ58f.jo3Vcz6rvxrG9OOVZ58f {
  background-color: var(--flow-button-primary);
}

.micCEJGerSQpZMMRgpQq.micCEJGerSQpZMMRgpQq {
  color: white;
}

/* Secondary/Halt Flow - for "Cancelar", "Voltar" buttons */
.uMH7r8KWD6SaBs2OZpPy.uMH7r8KWD6SaBs2OZpPy {
  background-color: var(--flow-button-secondary);
}

.QRrlZ5ir_FugaJlxviq0.QRrlZ5ir_FugaJlxviq0 {
  color: white;
}

/* Confirm Destructive - for "Remover", "Eliminar" buttons */
.pxUbZmy9GB3xyzcq9_p3.pxUbZmy9GB3xyzcq9_p3 {
  background-color: var(--flow-button-confirm-destructive);
}

.UtJqdOZAmIGR9UAkIfog.UtJqdOZAmIGR9UAkIfog {
  color: white;
}

/* =============================================================================
   LAYOUT - Wrapper for centering buttons
   ============================================================================= */

/* Wrapper container for centering (used on both mobile and desktop) */
.QWXq8nV9FNvq_LqgqLV7 {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Positioned at bottom of page (mobile only) */
.PuV5My1_gpYctsZ9qsWT {
  position: absolute;
  top: calc(85vh - 94px);
  right: 0px;
}

/* Popup Choice Button Styles - works for both mobile and desktop */

.oYDpQqnuXsbIIoes8a6O {
  min-width: 120px;
  height: 35px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

/* Hover effects only for devices that support hover (desktop) */
@media (hover: hover) {
  .oYDpQqnuXsbIIoes8a6O:hover {
    transform: var(--hover-lift-sm);
    box-shadow: var(--shadow-md);
  }
}

.x4pyEO9ksGi6krSGHVEX {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: var(--space-sm);
}

.x4pyEO9ksGi6krSGHVEX svg {
  width: 100%;
  height: 100%;
}

.QvZncbr04fOJgH2ks0nY {
  font-size: var(--font-button);
  font-weight: 600;
  cursor: pointer;
}

/* Confirm variant - solid filled with brand color */
.V9bYbmQKLORd_k27qGOw {
  background-color: var(--popup-choice-confirm-bg);
  border: none;
}

.V9bYbmQKLORd_k27qGOw .QvZncbr04fOJgH2ks0nY {
  color: var(--popup-choice-confirm-text);
}

.V9bYbmQKLORd_k27qGOw .x4pyEO9ksGi6krSGHVEX {
  color: var(--popup-choice-confirm-text);
}

/* Decline variant - secondary grey */
.sSkagd2ZFOwZoF2wDjIs {
  background-color: var(--flow-button-secondary);
  border: none;
}

@media (hover: hover) {
  .sSkagd2ZFOwZoF2wDjIs:hover {
    background-color: var(--flow-button-secondary-hover);
  }
}

.sSkagd2ZFOwZoF2wDjIs .QvZncbr04fOJgH2ks0nY {
  color: white;
}

.sSkagd2ZFOwZoF2wDjIs .x4pyEO9ksGi6krSGHVEX {
  color: white;
}

/* Destructive variant - red for delete/remove actions */
.YJjZkxdFqdAxZuE3JqdW {
  background-color: var(--popup-choice-destructive-bg, #880808);
  border: none;
}

@media (hover: hover) {
  .YJjZkxdFqdAxZuE3JqdW:hover {
    background-color: var(--popup-choice-destructive-bg-hover, #660606);
  }
}

.YJjZkxdFqdAxZuE3JqdW .QvZncbr04fOJgH2ks0nY {
  color: white;
}

/* Dismiss variant - gradient for single-button acknowledgment modals */
.kudekyTNoegG_eu2mtOa {
  background: var(--modal-dismiss-button-gradient);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-xl);
  height: auto;
  min-width: unset;
  box-shadow: var(--shadow-sm);
}

@media (hover: hover) {
  .kudekyTNoegG_eu2mtOa:hover {
    box-shadow: var(--shadow-md);
  }
}

.kudekyTNoegG_eu2mtOa .QvZncbr04fOJgH2ks0nY {
  color: var(--modal-dismiss-button-text);
  font-size: var(--font-body);
  letter-spacing: 0.3px;
}

/* Base loading cover - always covers entire viewport */
.C_IiwQBtnk2eNU5ZyiAn {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 300;
  background-color: var(--scrim-heavy);
  justify-content: center;
  align-items: center;
}

/* Desktop logged-in loading cover - full viewport background, but content centered on page content area */
.S7b4kQKFevE7I8e6JMdU {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 300;
  background-color: var(--scrim-heavy);
  justify-content: center;
  align-items: center;
  /* Offset content centering to account for left nav */
  padding-left: var(--desktop-navigator-width);
  box-sizing: border-box;
}

.A4ZQbfcPQBU1kLPGGidM {
  display: flex;
}

.klcTwtiuFOAQfhAwc6uY {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.fuxp_zz0pJQOWWnEG1yg {
  color: white;
  font-size: var(--font-card-title);
  font-weight: 500;
  text-align: center;
  padding: 12px 24px;
  background-color: var(--scrim);
  border-radius: 8px;
  max-width: 300px;
}

.wEPCSb1Ch8TaHUQIVkpc {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
}

.L8vODBqxr_dmzmv6Np5p {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* App initialization splash screen */
.W5jmZmuIXiMRr0osnyac {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 10000;
  background: var(--gradient-brand);
  flex-direction: column;
}

.H8NZl9piTvy6AXdPeJk1 {
  padding-top: 120px;
  display: flex;
  justify-content: center;
}

/* Desktop variant - applied via useView() in component */
.RS7OG1zzQ5MwceYEWLJ6 {
  padding-top: 40px;
}

.fTbH7PUUM3Mh01HanvNQ {
  height: 120px;
  width: 260px;
}

.e971mF8dAPK0KFMn1E6P {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Loading fallback for lazy-loaded pages */
.WmMDSYDLyTCTrZefO5mh {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 300;
  background-color: var(--bg-page);
  justify-content: center;
  align-items: center;
}

.Q3zQLT4ROVptKqL3hS3F {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--gradient-brand);
  z-index: 10000;
  overflow: hidden;
}

.E944oKCPlqU4b4gf0RPs {
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.xFy6V4EwTDv71PSiQzwD {
  background: var(--bg-overlay);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-xl);
  max-width: 280px;
  width: 80%;
  animation: xiAo1pUBazYmAWKMrutw 0.5s ease-out;
}

/* Desktop styles */
@media (min-width: 768px) {
  .xFy6V4EwTDv71PSiQzwD {
    padding: 50px var(--space-2xl);
    max-width: 500px;
    width: 90%;
    border-radius: var(--radius-2xl);
  }
}

@keyframes xiAo1pUBazYmAWKMrutw {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fQvlk8va6mZ8zK9GN125 {
  width: 45px;
  height: 45px;
  margin: 0 auto var(--space-md);
  background: var(--brand-brown);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: n5QpjqIYYqCKLO8d4JAi 2s ease-in-out infinite;
}

@media (min-width: 768px) {
  .fQvlk8va6mZ8zK9GN125 {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
  }
}

@keyframes n5QpjqIYYqCKLO8d4JAi {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--brand-brown-rgb), 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(var(--brand-brown-rgb), 0);
  }
}

.nOB6uXahn5_uXCWuUh1n {
  width: 26px;
  height: 26px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
}

@media (min-width: 768px) {
  .nOB6uXahn5_uXCWuUh1n {
    width: 45px;
    height: 45px;
  }
}

.hq1aTE8aiZwY6Vb_cQQC {
  font-size: var(--font-card-title);
  color: var(--brand-brown);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .hq1aTE8aiZwY6Vb_cQQC {
    font-size: var(--font-page-title);
    margin-bottom: 20px;
    line-height: 1.4;
  }
}

.Rdo0AyAIEf2jOedgbovm {
  font-size: var(--font-caption);
  color: var(--text-tertiary);
  margin-bottom: 15px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .Rdo0AyAIEf2jOedgbovm {
    font-size: var(--font-card-title);
    margin-bottom: 30px;
    line-height: 1.5;
  }
}

/* Error fallback action buttons */
.dozASQFNw7uQWEAq9fFL {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  width: 100%;
}

@media (min-width: 768px) {
  .dozASQFNw7uQWEAq9fFL {
    gap: var(--space-md);
    margin-top: var(--space-lg);
  }
}

.CFnLglhu6ET1Fqin9eEG {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  background: var(--brand-brown);
  color: #fff;
  font-size: var(--font-caption);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.CFnLglhu6ET1Fqin9eEG:hover {
  opacity: 0.88;
}

.CFnLglhu6ET1Fqin9eEG:active {
  opacity: 0.75;
}

@media (min-width: 768px) {
  .CFnLglhu6ET1Fqin9eEG {
    font-size: var(--font-label);
    padding: var(--space-md) var(--space-lg);
  }
}

.GV965RuNmgiQMtGWwzDA {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1.5px solid var(--brand-brown);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--brand-brown);
  font-size: var(--font-caption);
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.GV965RuNmgiQMtGWwzDA:hover {
  background-color: rgba(var(--brand-brown-rgb), 0.06);
}

.GV965RuNmgiQMtGWwzDA:active {
  opacity: 0.75;
}

@media (min-width: 768px) {
  .GV965RuNmgiQMtGWwzDA {
    font-size: var(--font-label);
    padding: var(--space-md) var(--space-lg);
  }
}

.odPs5nyaklxGAYiSPQBX {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}

.i_xXQDH2xcS9V09RzG_E {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.q65UWL4VEDVw3tW4a98_ {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}

.jTZ8lbG2LhkEC2iBwNCT {
  display: none;
}

.QhbDIVp7WNBc0nw7oLex {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.N59aEygBX279K_sPHlzP {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.K4jdgAq8UhNXvrwuaxyH {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.yzRfPex8R3Kqxnv_UjyZ {
  font-size: 24px;
  font-weight: 700;
  color: var(--status-error);
  margin-bottom: 20px;
}

.Vh5sJjmFhaUvwXV_5qOw {
  display: inline-block;
  padding: 10px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--flow-button-primary);
  color: white;
  transition: background 0.2s;
}

.Vh5sJjmFhaUvwXV_5qOw:hover {
  background: var(--flow-button-primary-hover);
}

